/* 7caelo — the page is an ascent: bright morning to the seventh sky.
   Palette: haze #F7FAFF / day #EAF2FF / mid #BBD3FB / dusk #39468C
            night #1D2557 / deep #12183F / ink #16224A / starlight #F5F3EC
            azure #3D7BFF → violet #7A5CFF (accent gradient) · gold #F2B94F */

:root {
  --haze: #f7faff;
  --day: #eaf2ff;
  --day-2: #d9e8ff;
  --mid: #bbd3fb;
  --dusk-deep: #39468c;
  --dusk-2: #2a3573;
  --night: #1d2557;
  --deep: #12183f;
  --ink: #16224a;
  --ink-soft: #45598f;
  --starlight: #f5f3ec;
  --starlight-soft: #c6c9d8;
  --azure: #3d7bff;
  --violet: #7a5cff;
  --grad: linear-gradient(96deg, var(--azure), var(--violet));
  --coral: #ff9a6b;
  --sun: #d99b2e;
  --sun-bright: #f2b94f;
  --paper: #ffffff;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Albert Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --nav-h: 76px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--haze);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--azure); color: #ffffff; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--haze);
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(2.05rem, 3.8vw, 2.95rem); line-height: 1.12; }
h3 { font-size: 1.3rem; font-weight: 650; line-height: 1.3; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: #2e5fd9;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 18px;
  background: rgba(61, 123, 255, 0.1);
  border: 1px solid rgba(61, 123, 255, 0.18);
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; }
}

.dark { color: var(--starlight); }
.dark .eyebrow {
  color: var(--sun-bright);
  background: rgba(242, 185, 79, 0.12);
  border-color: rgba(242, 185, 79, 0.25);
}
.dark h2 { color: var(--starlight); }

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 40px);
}

.container.narrow { max-width: 800px; }

.band { padding: clamp(72px, 11vw, 130px) 0; position: relative; }

/* Sky bands: each gradient ends where the next begins */
.band-hero     { background: linear-gradient(180deg, var(--haze), var(--day)); }
.band-services { background: linear-gradient(180deg, var(--day), var(--day-2)); }
.band-approach { background: linear-gradient(180deg, var(--day-2), var(--mid)); }
.band-story    { background: linear-gradient(180deg, var(--dusk-deep), var(--dusk-2)); }
.band-note     { background: linear-gradient(180deg, var(--dusk-2), var(--night)); }
.band-contact  { background: linear-gradient(180deg, var(--night), var(--deep)); }

.section-intro {
  max-width: 680px;
  margin-top: 16px;
  font-size: 1.2rem;
  color: inherit;
}

.footnote {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 34px;
}
.dark .footnote { color: var(--starlight-soft); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 250, 255, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(22, 34, 74, 0.08);
}
.nav.night { color: var(--starlight); }
.nav.night.scrolled {
  background: rgba(18, 24, 63, 0.76);
  border-bottom-color: rgba(245, 243, 236, 0.12);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(20px, 4.5vw, 40px);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Wordmark: the striped 7 is the word's own 7; the o is a slowly turning
   ring carrying the same sky colors */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.52rem;
  letter-spacing: -0.017em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.mark7 { flex-shrink: 0; }

.wordmark .mark7,
.lockup-big .mark7 {
  height: 0.98em;
  width: auto;
}

.logo-o {
  display: inline-block;
  width: 0.59em;
  height: 0.59em;
  margin-left: 0.045em;
  vertical-align: -0.02em;
  border-radius: 50%;
  background: conic-gradient(#f2b94f 0deg, #f2b94f 80deg, #3d7bff 160deg, #7a5cff 230deg, #f2b94f 280deg, #f2b94f 360deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 53%, #000 55%);
  mask: radial-gradient(circle closest-side, transparent 53%, #000 55%);
  animation: o-spin 7s linear infinite;
}

@keyframes o-spin {
  to { transform: rotate(360deg); }
}

/* One-shot logo build: the sky bars rise ground-up (gold lands last) and the
   word slides in. Replayed on page load and on link/button clicks by toggling
   .play on every .logo-host (nav wordmark, hero mark, contact lockup). */
.play .mark7 rect { animation: bar-in 0.5s ease both; }
.play .mark7 rect:nth-child(1) { animation-delay: 0.72s; }
.play .mark7 rect:nth-child(2) { animation-delay: 0.6s; }
.play .mark7 rect:nth-child(3) { animation-delay: 0.48s; }
.play .mark7 rect:nth-child(4) { animation-delay: 0.36s; }
.play .mark7 rect:nth-child(5) { animation-delay: 0.24s; }
.play .mark7 rect:nth-child(6) { animation-delay: 0.12s; }
.play .mark7 rect:nth-child(7) { animation-delay: 0s; }
.play .wordmark-text { animation: word-in 0.55s ease 0.4s both; }

@keyframes bar-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes word-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 31px;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  border: 0;
  box-shadow: 0 8px 22px rgba(74, 100, 255, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(74, 100, 255, 0.42);
  filter: saturate(1.12);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(22, 34, 74, 0.28);
  box-shadow: none;
  padding: 14.5px 29.5px;
}
.btn-ghost:hover {
  border-color: var(--azure);
  color: var(--azure);
  box-shadow: none;
  filter: none;
}

.btn-small { padding: 12px 24px; font-size: 0.95rem; }

/* ---------- Hero ---------- */

.band-hero {
  padding-top: calc(var(--nav-h) + clamp(64px, 10vw, 120px));
  overflow: hidden;
}
.band-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 52% at 82% 24%, rgba(255, 154, 107, 0.34), transparent 70%),
    radial-gradient(38% 44% at 8% 86%, rgba(61, 123, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.hero { position: relative; z-index: 1; }

.hero h1 { max-width: 32ch; }

.lede {
  max-width: 650px;
  margin-top: 24px;
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-mark {
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: clamp(24px, 5vw, 48px);
  width: min(24vw, 300px);
  pointer-events: none;
  filter: drop-shadow(0 26px 44px rgba(22, 34, 74, 0.16));
}
.hero-mark .mark7 {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 34, 74, 0.08);
  border-radius: 20px;
  padding: 38px 34px;
  box-shadow: 0 6px 24px rgba(22, 34, 74, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 123, 255, 0.45);
  box-shadow: 0 16px 36px rgba(22, 34, 74, 0.12);
}
.card h3 { margin-bottom: 14px; }
.card p { font-size: 1.08rem; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin-top: 44px;
  max-width: 840px;
}

.step {
  display: flex;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid rgba(22, 34, 74, 0.14);
}
.step:last-child { border-bottom: 1px solid rgba(22, 34, 74, 0.14); }

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  min-width: 52px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-bottom: 8px; }
.step p { max-width: 54ch; }

/* ---------- Cloud layer ---------- */

.cloud-layer {
  position: relative;
  height: clamp(320px, 46vh, 480px);
  background: linear-gradient(180deg, var(--mid) 0%, #8ca2de 55%, #4e5aa6 100%);
  overflow: hidden;
}

.cloud-caption {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 34, 74, 0.55);
  white-space: nowrap;
}

.clouds {
  position: absolute;
  left: -4%;
  width: 108%;
}
.clouds-high {
  bottom: 38%;
  height: 150px;
  fill: #ffffff;
  animation: sway 26s ease-in-out infinite alternate;
}
.clouds-low {
  bottom: -2px;
  height: 230px;
  fill: var(--dusk-deep);
  animation: sway 34s ease-in-out infinite alternate-reverse;
}

@keyframes sway {
  from { transform: translateX(-1.6%); }
  to   { transform: translateX(1.6%); }
}

/* ---------- Story ---------- */

.story-text {
  font-size: 1.3rem;
  margin-top: 22px;
  max-width: 58ch;
}
.story-text em { font-style: italic; }

/* ---------- Letter ---------- */

.letter {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(34px, 6vw, 64px);
  transform: rotate(-0.45deg);
  box-shadow: 0 30px 70px rgba(5, 8, 30, 0.5);
  overflow: hidden;
}
.letter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad);
}

.letter-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2e5fd9;
  margin-bottom: 16px;
}

.letter h2 { margin-bottom: 18px; color: var(--ink); }
.letter p + p { margin-top: 14px; }

.signature {
  font-style: italic;
  font-weight: 500;
  margin-top: 26px;
}

/* ---------- Contact ---------- */

.band-contact { overflow: hidden; }

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--starlight);
  opacity: 0.75;
  pointer-events: none;
}

.tw { animation: twinkle 4.2s ease-in-out infinite; }
.tw-2 { animation-delay: 1.4s; }
.tw-3 { animation-delay: 2.7s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.contact { position: relative; text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; }

.lockup-big {
  display: flex;
  align-items: center;
  gap: 0.1em;
  width: fit-content;
  margin: 0 auto 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  letter-spacing: -0.017em;
  line-height: 1;
  color: var(--starlight);
  filter: drop-shadow(0 14px 34px rgba(4, 8, 28, 0.55));
}

.contact-email { margin-top: 40px; }
.contact-email a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  letter-spacing: -0.01em;
  color: var(--starlight);
  text-decoration: none;
  padding-bottom: 6px;
  background-image: linear-gradient(96deg, var(--sun-bright), var(--coral));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  transition: color 0.18s ease, background-size 0.18s ease;
}
.contact-email a:hover {
  color: var(--sun-bright);
  background-size: 100% 5px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--deep);
  border-top: 1px solid rgba(243, 239, 228, 0.12);
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer .wordmark { font-size: 1.28rem; }

.footer-domains {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
}
.footer-domains a {
  color: var(--starlight-soft);
  text-decoration: none;
}
.footer-domains a:hover { color: var(--starlight); }
.footer-domains span { color: var(--starlight-soft); }

.footer-line {
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--starlight-soft);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.cards .card:nth-child(2) { transition-delay: 0.08s; }
.cards .card:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark a:focus-visible { outline-color: var(--sun-bright); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-mark {
    position: static;
    width: 76px;
    margin: 30px 0 0 clamp(20px, 4.5vw, 40px);
    filter: none;
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 22px;
    background: var(--haze);
    border-bottom: 1px solid rgba(20, 35, 56, 0.1);
    box-shadow: 0 18px 30px rgba(20, 35, 56, 0.12);
  }
  .nav.night .nav-links {
    background: var(--deep);
    border-bottom-color: rgba(243, 239, 228, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 1.02rem; }
  .nav-toggle { display: flex; }
  .nav .btn-small { margin-left: auto; }
  .nav-toggle { margin-left: 0; }

  .cards { grid-template-columns: 1fr; }
  .step { gap: 18px; }
}

@media (max-width: 480px) {
  .nav .btn-small { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .clouds-high, .clouds-low, .tw, .logo-o,
  .play .mark7 rect, .play .wordmark-text { animation: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
