/* =========================================================================
   Skud Labs: desert-night theme with light "paper" panels.
   The page ground stays the night sky (hero) descending to black sand
   (footer). Content-heavy sections (services, pricing, FAQ) sit on light
   panels inset on that ground; work, about and contact stay dark. Panels
   redefine the color tokens, so components adapt by surface.
   See docs/DESIGN.md for palette, frozen assets and motion rules.
   ========================================================================= */

/* ---- Fonts (offline woff2; display type only) ---------------------------- */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-v53-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-v53-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";       /* neon script flourish */
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-v23-latin-700.woff2") format("woff2");
}

:root {
  /* Palette (brief tokens) */
  --eerie-black:  #1B1B1B;
  --gunmetal:     #112431;
  --seasalt:      #FAFBFC;
  --olivine:      #A0B389;
  --navajo-white: #FEDDAA;
  --jet:          #353535;
  --body-text:    #8B8B8C;

  /* Semantic tokens: dark surface (the default) */
  --fg:        var(--seasalt);           /* headings */
  --muted:     #aeb4b8;                  /* body copy (AA on the dark sky) */
  --faint:     #959ca1;                  /* captions */
  --line:      rgba(160,179,137,0.22);   /* hairlines (faint olivine) */
  --surface:   rgba(160,179,137,0.06);   /* translucent card fill */
  --accent:    var(--olivine);           /* key strokes, checks */
  --eyebrow:   var(--olivine);           /* eyebrows, plan names */
  --icon:      var(--olivine);           /* line icons */
  --btn-bg:    var(--olivine);
  --btn-bg-hover: #aebd99;
  --btn-fg:    var(--eerie-black);
  --btn-glow:  rgba(160,179,137,.55);
  --focus:     var(--navajo-white);      /* warm focus ring */

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --panel-inset: clamp(0.5rem, 1.6vw, 1.25rem);
  /* how far the hero scene reaches up behind the nav; keep it taller than
     the tallest header (two rows at tablet width, about 8rem) */
  --scene-lift: 16rem;

  /* Type scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Oswald", var(--font-sans);  /* condensed display: headings, eyebrows, wordmark */
  --fs-eyebrow: 0.8125rem;
  --fs-body:    1.0625rem;
  --fs-subhead: clamp(1.0625rem, 0.9rem + 0.7vw, 1.3rem);
  --fs-h2:      clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  --fs-h1:      clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* page descends from the hero's night sky toward "black sand" at the footer */
  background: linear-gradient(180deg, #0e1a23 0%, #0d1820 35%, #0a141b 68%, #070d12 100%);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Shared bits --------------------------------------------------------- */

.eyebrow {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

a { color: inherit; }

:where(a, button, .btn, .btn-text, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-cta {
  padding: 0.95rem 1.6rem;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--btn-glow), 0 6px 28px -10px var(--btn-glow);
}
.btn-cta:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn-cta:disabled { opacity: 0.6; cursor: default; transform: none; }

.btn-text {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.btn-text:hover { border-color: var(--fg); }

/* an inline button that reads as a link ("Try mine" in a card) */
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--icon);
  cursor: pointer;
}

/* shared inline line icon */
.ic {
  flex: none;
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--icon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Header / nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color .3s ease, box-shadow .3s ease;
}
/* transparent over the hero's open sky; gains a blurred backdrop once scrolled */
.site-header.scrolled {
  background: rgba(10, 18, 24, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: -16px;   /* let the logo sit left of the content gutter */
}
.wordmark img {
  display: block;
  height: 72px;
  width: auto;
}

/* neon script flourish, overlapping the wordmark (Oak Harbor homage, our palette) */
.neon {
  position: absolute;
  bottom: -16px;
  left: 188px;
  display: flex;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--seasalt);
  transform: rotate(-7deg);
  pointer-events: none;
  white-space: nowrap;
}
.neon span { animation: neonGlow 3.2s linear infinite; }
.neon span:nth-child(1) { animation-delay: 0.2s; }
.neon span:nth-child(2) { animation-delay: 1.1s; }
.neon span:nth-child(3) { animation-delay: 0.5s; }
.neon span:nth-child(4) { animation-delay: 2.3s; }
.neon span:nth-child(6) { animation-delay: 0.8s; }
.neon span:nth-child(7) { animation-delay: 2.0s; }
.neon span:nth-child(8) { animation-delay: 1.5s; }
.neon span:nth-child(9) { animation-delay: 0.4s; }
.neon span:nth-child(10) { animation-delay: 2.6s; }
.neon span:nth-child(11) { animation-delay: 1.3s; }

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
}

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

/* The landing (hero + credibility strip) is pulled up by --scene-lift and
   padded back down by the same amount: its content stays in place while
   the night scene behind it starts above the nav, so the sky runs up behind
   the sticky header with no band under it. */
.landing {
  position: relative;
  margin-top: calc(-1 * var(--scene-lift));
  padding-top: var(--scene-lift);
}

.hero {
  position: relative;
  /* well short of the fold so the land sits close under the copy and the
     credibility strip shows in the first desktop viewport (Kyle,
     2026-11-08); hero-scene.js crops the near land rather than shrink it */
  min-height: min(75vh, 47rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Night scene behind the nav, the hero and the credibility strip.
   assets/js/hero-scene.js adds its layers once per layout, back to front:
     sky canvas      gradient, Milky Way and star field (WebGL)
     .hero-twinkle   a few bright stars that twinkle
     .comet-1/2      shooting comets on long loops (CSS)
     .satellite      the frozen satellite on its slow arc (CSS)
     land canvas     the contour desert, over the comets and satellite
     .hero-grain     static film grain against banding
   The scene holds still apart from those CSS motions (no parallax). Its own
   background is the night sky that shows before the canvases fade in and
   without JS. */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #04070b 0%, #07101a 40%, #11222a 72%, #0d1921 100%);
}
.hero-layer {
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-scene.is-drawn .hero-layer { opacity: 1; }
.hero-twinkle { animation: twinkle 5.5s ease-in-out infinite; }
.hero-grain {
  width: 100%;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}
.hero-scene.is-drawn .hero-grain { opacity: 0.035; }

/* --- comets: thin streak translated across a long loop, mostly dormant.
       Positioned from the hero's top edge, below the lifted part. --- */
.comet {
  position: absolute;
  top: var(--scene-lift);
  left: 0;
  width: 150px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(250,251,252,0), rgba(254,221,170,.85));
  filter: drop-shadow(0 0 5px rgba(254,221,170,.7));
  opacity: 0;
  will-change: transform, opacity;
}
.comet-1 { animation: comet1 10s ease-in 1s infinite; }
.comet-2 { width: 110px; animation: comet2 14s ease-in 3s infinite; }

/* --- satellite: slow drift across the back, a few seconds after the comets --- */
.satellite {
  position: absolute;
  top: calc(var(--scene-lift) + 6.5rem);
  left: 0;
  width: 34px;
  height: 34px;
  background: url("../img/satellite.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(160, 179, 137, 0.45));
  opacity: 0;
  will-change: transform, opacity;
  animation: orbit 34s linear 6s infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 6rem) var(--gutter) clamp(1.75rem, 3vw, 2.5rem);
  flex: 1;
  display: flex;
  align-items: flex-start;   /* lift the hero content up into the sky */
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}

.hero-copy { min-width: 0; max-width: 36rem; }

.headline {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: 0.005em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--fg);
}
.headline-cat {
  display: block;
  font-size: 0.44em;
  line-height: 1;
  letter-spacing: 0.07em;
  color: var(--olivine);
  margin-bottom: 0.4rem;
}
.subhead {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-subhead);
  line-height: 1.5;
  color: #c3c9cc;
  max-width: 42ch;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.reassurance {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* nudge the hero cluster rightward for breathing room from the copy
   (desktop only; reset when the grid stacks at <=860px) */
.hero-art { align-self: center; min-width: 0; padding-left: clamp(1.5rem, 4vw, 4.5rem); }

/* ---- Hero offering cluster (websites · chatbots · automation) ------------- */
.hero-cluster {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 1.75rem);
}
.hero-piece { will-change: transform; }
/* laptop + assistant side by side on top, automation tile beneath.
   Gentle low-amplitude float so the tiles don't crowd as they drift. */
.cluster-top {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.75rem, 2.5vw, 1.4rem);
  width: 100%;
}
.cluster-top .hero-piece { min-width: 0; }
.cluster-top .piece-web  { flex: 1.8 1 0; }  /* lead with the website: big laptop */
.cluster-top .piece-chat { flex: 1 1 0; }    /* assistant a bit smaller */
.piece-web  { z-index: 3; animation: heroFloat 7s ease-in-out infinite; }
.piece-chat { z-index: 2; animation: heroFloat 8s ease-in-out -2.6s infinite; }
.piece-auto { width: 70%; z-index: 1; animation: heroFloat 7.5s ease-in-out -4.6s infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero-laptop { position: relative; }
.sp-hero {
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(254,221,170,0.22), transparent 60%),
    linear-gradient(135deg, #102230 0%, #143a48 55%, #1f5040 100%);
}
.sp-hero .sp-btn { background: var(--olivine); color: #16241c; }

/* chatbot tile: a small chat window */
.chatbox {
  border-radius: 14px;
  background: linear-gradient(180deg, #122230, #0e1a23);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -22px rgba(0,0,0,0.7);
  overflow: hidden;
}
.chatbox-top {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--fg);
  border-bottom: 1px solid var(--line);
  background: rgba(160,179,137,0.06);
}
.cb-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--olivine); box-shadow: 0 0 8px var(--olivine); }
.chatbox-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.7rem; }
.chat {
  font-size: 0.62rem; line-height: 1.3;
  padding: 0.38rem 0.55rem; border-radius: 10px; max-width: 88%;
}
.chat-in  { align-self: flex-start; background: rgba(255,255,255,0.1);  color: #e8ecee; border-bottom-left-radius: 3px; }
.chat-out { align-self: flex-end;  background: var(--olivine); color: #16241c; border-bottom-right-radius: 3px; }

/* automation tile: the frozen flow illustration */
.auto-art { display: block; width: 100%; height: auto; }

/* ---- Laptop chassis (hero, work) ------------------------------------------ */
.laptop { display: block; width: 100%; }
.laptop-screen {
  display: block;
  border: 0.5rem solid #1b2632;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #1b2632;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.7);
  overflow: hidden;
}
.laptop-base {
  display: block;
  height: 0.7rem;
  margin: 0 -6%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #2b3a49, #131c25);
  position: relative;
}
.laptop-base::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16%; height: 4px;
  border-radius: 0 0 5px 5px;
  background: rgba(0,0,0,0.45);
}

/* drawn site previews inside a screen */
.site-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.05rem;
  color: #fff;
}
.sp-bar { position: absolute; top: 0.6rem; left: 0.75rem; display: flex; gap: 0.28rem; }
.sp-bar i { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: rgba(255,255,255,0.55); }
.sp-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  line-height: 1.12;
}
.sp-btn {
  align-self: flex-start;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.94);
  color: #1b2632;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */

/* content container: dark sections use it directly, panels wrap it */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}

/* light "paper" panel inset on the night ground, with a graph-paper grid
   that fades toward the edges. Redefines the surface tokens. */
.panel {
  --fg:        #142430;
  --muted:     #46535c;
  --faint:     #5c6870;
  --line:      rgba(20,36,48,0.12);
  --surface:   #ffffff;
  --accent:    #56693f;
  --eyebrow:   #4b5f36;
  --icon:      #56693f;
  --btn-bg:    #56693f;
  --btn-bg-hover: #4a5b36;
  --btn-fg:    #ffffff;
  --btn-glow:  rgba(86,105,63,.35);
  --focus:     #2f5e8c;
  position: relative;
  isolation: isolate;
  margin: var(--panel-inset);
  border-radius: clamp(20px, 3vw, 32px);
  background: #f3f0e8;
  color: var(--muted);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20,36,48,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,36,48,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
}

.statement {
  margin: 0 0 var(--space-5);
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.03;
  letter-spacing: 0.005em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--fg);
}

.statement-support {
  margin: 0 0 var(--space-7);
  max-width: 56ch;
  font-size: var(--fs-subhead);
  line-height: 1.5;
  color: var(--muted);
}

/* nav-jump landing offset (clears the sticky header) */
:where(#services, #work, #pricing, #about, #faq, #contact, #book) { scroll-margin-top: 8.5rem; }

/* ---- Scroll-reveal ------------------------------------------------------- */
/* Only hide targets when JS is present AND motion is welcome, so no-JS and
   reduced-motion users always see fully rendered content. */
@media (prefers-reduced-motion: no-preference) {
  .js :is(
    .section > .eyebrow,
    .section > .statement,
    .section > .statement-support,
    .card,
    .tells-block,
    .case,
    .work-card,
    .plan-feature,
    .step,
    .about-photo,
    .about-copy,
    .audience,
    .faq-item
  ) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1);
  }
  .js :is(
    .section > .eyebrow,
    .section > .statement,
    .section > .statement-support,
    .card,
    .tells-block,
    .case,
    .work-card,
    .plan-feature,
    .step,
    .about-photo,
    .about-copy,
    .audience,
    .faq-item
  ).in {
    opacity: 1;
    transform: none;
  }

  /* gentle stagger for items revealed together in a row */
  .js :is(.card-grid, .steps) > *:nth-child(2) { transition-delay: .08s; }
  .js :is(.card-grid, .steps) > *:nth-child(3) { transition-delay: .16s; }
  .js .card-grid > *:nth-child(4) { transition-delay: .24s; }
  .js .card-grid > *:nth-child(5) { transition-delay: .32s; }
  .js .card-grid > *:nth-child(6) { transition-delay: .40s; }
}

/* ---- Credibility strip --------------------------------------------------- */
/* sits at the foot of the hero scene, below the land: hero-scene.js fades
   the land out above the first .cred-item, so the padding-top is the land's
   room under the hero and the text reads on solid night ground. The borders
   stay transparent to keep the band's height. */
.cred-band {
  position: relative;
  z-index: 1;
  border-block: 1px solid transparent;
  padding-top: clamp(4rem, 9vw, 8rem);
}
.cred-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) var(--gutter);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem, 4vw, 3rem);
}
.cred-item { display: flex; flex-direction: column; gap: 0.3rem; }
.cred-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--navajo-white);
}
.cred-label { font-size: 0.95rem; line-height: 1.4; color: var(--muted); }

/* ---- Card grid (services, plans, work) ----------------------------------- */
.card-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.card, .work-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover, .work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(160,179,137,0.45);
  box-shadow: 0 18px 40px -24px rgba(160,179,137,0.55);
}
.panel .card {
  box-shadow: 0 1px 2px rgba(20,36,48,0.05), 0 10px 30px -18px rgba(20,36,48,0.22);
}
.panel .card:hover {
  border-color: rgba(86,105,63,0.4);
  box-shadow: 0 2px 4px rgba(20,36,48,0.05), 0 22px 44px -22px rgba(20,36,48,0.32);
}
/* card content sits above the cursor spotlight; badges keep their own position */
.card > :not(.plan-badge), .work-card > * { position: relative; z-index: 1; }

.card-ic {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: var(--space-5);
  border-radius: 12px;
  background: rgba(160,179,137,0.10);
  border: 1px solid var(--line);
}
.panel .card-ic { background: rgba(86,105,63,0.08); border-color: rgba(86,105,63,0.22); }
.card-ic svg {
  position: absolute; inset: 0; margin: auto;
  width: 26px; height: 26px;
  fill: none; stroke: var(--icon);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
/* twilight icon swap on hover */
.card-ic .ic-night { opacity: 0; transform: scale(.55) rotate(-25deg); }
.card:hover .ic-day { opacity: 0; transform: scale(.55) rotate(25deg); }
.card:hover .ic-night { opacity: 1; transform: none; }

.card-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.card-copy { margin: 0; color: var(--muted); line-height: 1.55; }

/* cursor "moonlight" spotlight on cards (hover-capable pointers only) */
@media (hover: hover) and (pointer: fine) {
  .card::after, .work-card::after {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    border-radius: inherit;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(160,179,137,.16), transparent 60%);
    opacity: 0; transition: opacity .3s ease;
    pointer-events: none;
  }
  .card:hover::after, .work-card:hover::after { opacity: 1; }
}

/* ---- Services: the four automation tells --------------------------------- */
.tells-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px dashed rgba(20,36,48,0.2);
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
}
.tells-lead {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.tells {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
}
.tell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.4;
  font-size: 0.98rem;
}
.tell .ic { width: 22px; height: 22px; }
.tell strong { color: var(--fg); font-weight: 600; }

/* ---- Work ------------------------------------------------------------------ */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.case-shot { text-decoration: none; transition: transform .25s ease; }
.case-shot:hover { transform: translateY(-4px); }
.case-shot .laptop-screen { aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.85); }
.case-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-tag {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olivine);
}
.case-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
  line-height: 1.05;
  color: var(--fg);
}
.case-body { margin: 0 0 var(--space-5); line-height: 1.6; max-width: 46ch; }
.case .case-list { margin-bottom: var(--space-6); }
.case-link { font-size: 1.02rem; }
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin: 0; }


.work-subhead {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--navajo-white);
}
.work-card { display: flex; flex-direction: column; }
.work-tag {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olivine);
}
.work-outcome {
  margin: 0 0 var(--space-3);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--fg);
}
.work-body { margin: 0; line-height: 1.55; }

/* ---- Plans & pricing ----------------------------------------------------- */
.plan-badge {
  position: absolute; top: -0.7rem; right: var(--space-5); z-index: 2;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--olivine); color: #14201a;
  white-space: nowrap;
}
.plan-name {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.price {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1;
  color: var(--fg);
}
.price-unit {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.plan-meta { margin: 0 0 var(--space-5); font-size: 0.92rem; color: var(--faint); }

/* Subscription banner */
.plan-feature {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.5rem, 3vw, 2.25rem);
  border: 1.5px solid rgba(86,105,63,0.45);
  border-radius: 18px;
  background:
    radial-gradient(130% 180% at 0% 0%, rgba(160,179,137,0.18), transparent 55%),
    #ffffff;
  box-shadow: 0 2px 4px rgba(20,36,48,0.05), 0 26px 50px -30px rgba(20,36,48,0.35);
}
.plan-feature-main { flex: 1 1 340px; min-width: 0; }
.plan-feature-desc { margin: var(--space-2) 0 0; line-height: 1.55; max-width: 56ch; }
.plan-feature-price { flex: none; text-align: right; }
.plan-feature-price .price { margin-bottom: 0.2rem; }
.plan-feature-price .plan-meta { margin: 0; }
.plan-feature-cta { margin-top: var(--space-4); }
.plan-feature .plan-feature-list {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2) var(--space-5);
}
.plan-or {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.82rem; font-weight: 600; color: var(--faint);
}
/* visible overflow lets the "New" badge sit on the card's top edge */
.plan-card { display: flex; flex-direction: column; overflow: visible; }
.plan-card--feature { border-color: rgba(86,105,63,0.45); }
.plan-card .plan-list { margin-bottom: var(--space-5); }
.plan-cta { margin-top: auto; width: 100%; text-align: center; padding: 0.8rem 1rem; }
.plan-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.plan-list li {
  position: relative; padding-left: 1.6rem;
  color: var(--muted); line-height: 1.45;
}
.plan-list li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.4em;
  width: 0.7rem; height: 0.38rem;
  border-left: 2px solid var(--icon);
  border-bottom: 2px solid var(--icon);
  transform: rotate(-45deg);
}
.plan-fine {
  margin: var(--space-5) 0 0;
  font-size: 0.92rem; color: var(--faint); line-height: 1.55; max-width: 72ch;
}
.plan-fine strong { color: var(--fg); font-weight: 600; }

/* how bigger builds work: three numbered steps with a drawn connector */
.process {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.process-title {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--fg);
}
.steps {
  --steps-gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--steps-gap);
}
.step { position: relative; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 54px;
  right: calc(-1 * var(--steps-gap));
  height: 2px;
  background: linear-gradient(90deg, rgba(86,105,63,0.45), transparent);
}
.step-num {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-4);
  border-radius: 999px;
  border: 1.5px solid rgba(86,105,63,0.55);
  background: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent);
}
.step-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--fg);
}
.step-copy { margin: 0; font-size: 0.98rem; line-height: 1.5; }

/* ---- About ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.about-body { margin: 0 0 var(--space-5); line-height: 1.65; max-width: 54ch; }
.about-body em { color: var(--fg); font-style: italic; }
.about-stats {
  list-style: none; margin: var(--space-5) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
}
.about-stats li {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--navajo-white);
  padding-left: var(--space-4);
  border-left: 2px solid rgba(160,179,137,0.4);
}

.audience {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.audience-lead { margin: 0 0 var(--space-4); font-size: 1.05rem; color: var(--fg); }
.chips {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  max-width: 60rem;
}
.chips li {
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--fg);
}
.callout {
  display: flex; gap: var(--space-4); align-items: flex-start;
  max-width: 52rem;
  margin: 0;
  padding: var(--space-5);
  border: 1px solid rgba(160,179,137,0.35);
  border-radius: 14px;
  background: rgba(160,179,137,0.07);
  line-height: 1.5;
}
.callout .ic { margin-top: 2px; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-list { max-width: 52rem; border-top: 1px solid var(--line); }
.faq-aside {
  position: sticky;
  top: 8rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20,36,48,0.05), 0 16px 36px -22px rgba(20,36,48,0.3);
}
.faq-aside-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--fg);
}
.faq-aside-copy { margin: 0; line-height: 1.55; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: var(--space-5) 2.5rem var(--space-5) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1;
  color: var(--icon);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
  margin: 0;
  padding: 0 2.5rem var(--space-6) 0;
  line-height: 1.65;
  max-width: 62ch;
}

/* ---- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.contact-method {
  display: flex; align-items: flex-start; gap: var(--space-4);
  width: 100%; text-align: left;
  padding: var(--space-5);
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  color: inherit; text-decoration: none; font: inherit; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-method:hover {
  transform: translateY(-3px);
  border-color: rgba(160,179,137,0.45);
  box-shadow: 0 16px 36px -24px rgba(160,179,137,0.55);
}
.contact-method--primary {
  border-color: rgba(160,179,137,0.5);
  background: linear-gradient(135deg, rgba(160,179,137,0.16), rgba(160,179,137,0.05));
}
.contact-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(160,179,137,0.1); border: 1px solid var(--line);
}
.contact-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-method-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.contact-method-label {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.04em; color: var(--fg); font-size: 1.05rem;
}
.contact-method-val { color: var(--muted); line-height: 1.4; font-size: 0.95rem; overflow-wrap: anywhere; }

.contact-form {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--fg);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(174,180,184,0.55); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: transparent; }
.contact-form .btn-cta { align-self: flex-start; }
.form-attach { margin: 0; font-size: 0.88rem; color: var(--olivine); }
.form-attach[hidden] { display: none; }
.form-note { margin: 0; font-size: 0.88rem; color: var(--faint); }
.form-note a { color: var(--olivine); }

/* honeypot: kept in the DOM for bots, removed from view and the a11y tree */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* form submit feedback (JS toggles [hidden] + .is-ok / .is-err) */
.form-status { margin: 0; font-size: 0.92rem; line-height: 1.4; }
.form-status.is-ok { color: var(--olivine); }
.form-status.is-err { color: var(--navajo-white); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: #060b10; }
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(1.5rem, 3vw, 2rem);
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-6);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 30rem; }
.footer-mark img { display: block; height: 56px; width: auto; }
.footer-tag {
  margin: 0; color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: 0.01em; line-height: 1.4;
}
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 0.3rem; }
.footer-contact-h {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--olivine);
}
.footer-contact a, .footer-loc {
  font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: 0.01em;
  color: var(--fg); text-decoration: none;
}
.footer-contact a:hover { color: var(--olivine); }
.footer-loc { color: var(--muted); }
.footer-bottom {
  max-width: var(--maxw);
  margin-inline: auto;
  /* extra bottom room so the floating chat button doesn't cover the copyright */
  padding: clamp(1.1rem, 2.5vw, 1.6rem) var(--gutter) clamp(4.5rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
}
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-5); margin: 0; padding: 0; }
.footer-links a {
  text-decoration: none; color: var(--muted);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600;
}
.footer-links a:hover { color: var(--fg); }
.footer-fine {
  margin: 0; color: var(--faint);
  font-family: var(--font-display); letter-spacing: 0.08em; font-size: 0.8rem;
}

/* =========================================================================
   AMBIENT LAYER (desert-night drift behind the dark sections)
   ========================================================================= */

/* content sits above the ambient layer; header already at z-20 */
main, .site-footer { position: relative; z-index: 1; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  will-change: transform;
}
.orb-1 {
  width: 380px; height: 380px; left: 4%; top: 24%;
  background: radial-gradient(circle, var(--olivine), transparent 70%);
  opacity: .20; animation: drift1 19s ease-in-out infinite;
}
.orb-2 {
  width: 300px; height: 300px; right: 6%; top: 54%;
  background: radial-gradient(circle, var(--navajo-white), transparent 70%);
  opacity: .15; animation: drift2 23s ease-in-out infinite;
}
.orb-3 {
  width: 260px; height: 260px; left: 40%; bottom: 4%;
  background: radial-gradient(circle, var(--olivine), transparent 70%);
  opacity: .16; animation: drift3 16s ease-in-out infinite;
}
.dust {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 30%, rgba(250,251,252,.95), transparent),
    radial-gradient(2px 2px at 76% 20%, rgba(254,221,170,.9), transparent),
    radial-gradient(1.7px 1.7px at 50% 62%, rgba(250,251,252,.8), transparent),
    radial-gradient(1.8px 1.8px at 88% 72%, rgba(250,251,252,.75), transparent),
    radial-gradient(1.7px 1.7px at 28% 82%, rgba(254,221,170,.75), transparent),
    radial-gradient(1.9px 1.9px at 64% 46%, rgba(250,251,252,.85), transparent),
    radial-gradient(1.6px 1.6px at 18% 55%, rgba(250,251,252,.6), transparent),
    radial-gradient(1.6px 1.6px at 92% 38%, rgba(254,221,170,.6), transparent);
  opacity: .9;
  animation: dustDrift 40s ease-in-out infinite;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(130px, -60px); }
  50%  { transform: translate(70px, -150px); }
  75%  { transform: translate(-80px, -70px); }
  100% { transform: translate(0, 0); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(-150px, 60px); }
  60%  { transform: translate(-60px, 150px); }
  100% { transform: translate(0, 0); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(120px, -50px); }
  66%  { transform: translate(-90px, -110px); }
  100% { transform: translate(0, 0); }
}
@keyframes dustDrift { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(18px, -90px); } }

/* "How bigger builds work" connector line-draw */
@media (prefers-reduced-motion: no-preference) {
  .step:not(:last-child)::before { transform: scaleX(0); transform-origin: left; transition: transform .7s ease .15s; }
  .step.in:not(:last-child)::before { transform: scaleX(1); }
}

/* =========================================================================
   SITE ASSISTANT (launcher + chat panel; behavior in assets/js/main.js)
   ========================================================================= */
.chat-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 40;
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 52px; padding: 0 1.2rem 0 1rem;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--olivine); color: #14201a;
  font: 600 0.98rem var(--font-sans);
  box-shadow: 0 0 0 1px rgba(160,179,137,0.5), 0 14px 34px -10px rgba(0,0,0,0.6);
  transition: transform .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; fill: none; stroke: #14201a; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab[aria-expanded="true"] { display: none; }

.chat-panel {
  position: fixed; right: 16px; bottom: 16px;
  z-index: 60;
  width: 390px; max-width: calc(100vw - 32px);
  height: min(620px, calc(100vh - 32px));
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: #0f1c25;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.85);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 0.6rem 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(160,179,137,0.07);
}
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { margin: 0; font: 600 1rem/1.2 var(--font-display); letter-spacing: 0.03em; color: var(--fg); }
.chat-head small { display: block; font-size: 0.76rem; color: var(--faint); }
.chat-icon-btn {
  flex: none; width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.chat-icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--fg); }
.chat-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.msg {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.93rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-bot { align-self: flex-start; background: rgba(255,255,255,0.08); color: #e8ecee; border-bottom-left-radius: 4px; }
.msg-bot a { color: var(--navajo-white); font-weight: 600; }
.msg-user { align-self: flex-end; background: var(--olivine); color: #16241c; border-bottom-right-radius: 4px; }
.chat-quick { align-self: flex-end; max-width: 92%; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.chat-quick-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.chat-quick button {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(160,179,137,0.5); border-radius: 999px;
  background: transparent; color: var(--fg);
  font: inherit; font-size: 0.86rem; line-height: 1.35; text-align: right; cursor: pointer;
}
.chat-quick button:hover { background: rgba(160,179,137,0.12); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.75rem 0.9rem; border-radius: 14px; background: rgba(255,255,255,0.08); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.chat-compose { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line); }
/* overflow stays hidden until the text passes max-height (autosize in
   main.js): a scrollbar on a one-line box narrows it and wraps the
   placeholder onto a second, clipped line */
.chat-compose textarea {
  flex: 1; resize: none;
  height: 52px; min-height: 52px; max-height: 140px;
  overflow-y: hidden;
  padding: 0.85rem 0.8rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,0.05); color: var(--fg);
  /* 16px or more: iOS Safari zooms into smaller fields */
  font: inherit; font-size: 16px; line-height: 1.35;
}
.chat-compose textarea::placeholder { font-size: 0.9rem; color: rgba(174,180,184,0.6); }
.chat-compose textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.chat-send { align-self: flex-end; height: 52px; padding: 0 1rem; font-size: 0.95rem; }
.chat-foot {
  margin: 0; padding: 0 1rem 0.75rem;
  display: flex; justify-content: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--faint);
}
.chat-foot a { color: var(--olivine); font-weight: 600; text-decoration: none; }
.chat-foot a:hover { text-decoration: underline; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* the one-row nav (logo, six links, CTA) needs about 1,020px: below that
   the links move to a second row and the logo shrinks */
@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; gap: var(--space-3) var(--space-4); padding-block: var(--space-4); }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: var(--space-3) var(--space-6);
    flex-wrap: wrap;
  }
  .nav-cta { margin-left: auto; }
  .wordmark { margin-left: -6px; }
  .wordmark img { height: 54px; }
  .neon { left: 141px; bottom: -12px; font-size: 1.4rem; }
}

@media (max-width: 960px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-shot { max-width: 640px; }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 8vw, 3rem);
    align-items: stretch;
  }
  .hero-copy { max-width: none; }
  .hero-art { padding-left: 0; }
  .hero-cluster { max-width: 400px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 2.5rem); }
  .about-photo { max-width: 280px; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-aside { position: static; }
}

@media (max-width: 700px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:not(:last-child)::before { display: none; }
  .plan-feature-price { text-align: left; }
}

@media (max-width: 620px) {
  /* a two-row header would cover a fifth of a phone screen: let it scroll away */
  .site-header { position: relative; }
  /* six links fit one row from about 360px */
  .nav-links { gap: var(--space-3) 0.85rem; }
  .nav-links a { font-size: 0.74rem; letter-spacing: 0.08em; }
  .hero { min-height: 0; }

  .cred-inner { grid-template-columns: minmax(0,1fr); gap: var(--space-5); }
  .tells { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { justify-content: flex-start; }
  .footer-contact { align-items: flex-start; text-align: left; }

  .orb { display: none; }
  .dust { opacity: .3; }

  .chat-panel {
    right: 0; left: 0; bottom: 0;
    width: auto; max-width: none;
    height: min(85dvh, 640px);
    border-radius: 16px 16px 0 0;
  }
}

/* logo and the CTA share one row down to about 360px */
@media (max-width: 430px) {
  .nav { column-gap: var(--space-3); }
  .wordmark img { height: 48px; }
  .neon { left: 125px; bottom: -11px; font-size: 1.25rem; }
  .nav-cta { padding: 0.6rem 0.95rem; font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .cta-row { gap: var(--space-4); }
}

/* =========================================================================
   MOTION: GPU-friendly transform/opacity only
   ========================================================================= */

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

/* comets travel diagonally down-and-across, then stay dormant most of the loop */
@keyframes comet1 {
  0%   { transform: translate(-12vw, 8vh) rotate(20deg);  opacity: 0; }
  2%   { opacity: 1; }
  11%  { opacity: 1; }
  16%  { transform: translate(58vw, 34vh) rotate(20deg);  opacity: 0; }
  100% { transform: translate(58vw, 34vh) rotate(20deg);  opacity: 0; }
}
@keyframes comet2 {
  0%   { transform: translate(40vw, -6vh) rotate(28deg);  opacity: 0; }
  3%   { opacity: 0.9; }
  10%  { opacity: 0.9; }
  15%  { transform: translate(96vw, 26vh) rotate(28deg);  opacity: 0; }
  100% { transform: translate(96vw, 26vh) rotate(28deg);  opacity: 0; }
}

/* satellite drifts in a slow shallow arc across the sky, gently banking */
@keyframes orbit {
  0%   { transform: translate(-8vw, 7vh)   rotate(-6deg); opacity: 0; }
  6%   { opacity: 0.9; }
  50%  { transform: translate(52vw, -3vh)  rotate(4deg);  opacity: 0.9; }
  94%  { opacity: 0.9; }
  100% { transform: translate(112vw, 9vh)  rotate(10deg); opacity: 0; }
}

/* neon sign: mostly crisp, briefly buzzes into a colored bloom (staggered per letter) */
@keyframes neonGlow {
  0%, 100% {
    color: var(--navajo-white);
    filter: blur(0.6px);
    text-shadow:
      0 0 5px rgba(160, 179, 137, 0.95),
      0 0 11px rgba(160, 179, 137, 0.85),
      0 0 22px rgba(160, 179, 137, 0.6),
      0 0 32px rgba(254, 221, 170, 0.45);
  }
  7%, 93% {
    color: var(--seasalt);
    filter: blur(0);
    text-shadow: 0 0 4px rgba(160, 179, 137, 0.45);
  }
}

/* Reduced motion: calm static starfield, no comets/satellite/float, steady neon */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-twinkle { animation: none; }
  .hero-layer { transition: none; }
  .comet, .satellite { display: none; }
  .hero-piece { animation: none; }
  .orb, .dust { animation: none; }
  .typing i { animation: none; opacity: .7; }
  .neon span {
    animation: none;
    color: var(--navajo-white);
    text-shadow: 0 0 5px rgba(160, 179, 137, 0.8), 0 0 12px rgba(160, 179, 137, 0.5);
  }
}
