/* ============================================================
   Neville Tech Solutions — v3
   Coastal dusk, with editorial confidence.
   Palette + content from v1; type scale, mono labels, colour
   blocking, and hard-offset shadows from the /redesign/ study.
   ============================================================ */

:root {
  /* Palette */
  --navy-950: #061729;
  --navy-900: #0A2240;
  --navy-800: #0E2E52;
  --navy-700: #14395F;
  --navy-600: #1C4C7A;
  --navy-500: #24608F;
  --steel: #2E77A8;
  --orange: #E87D22;
  --orange-deep: #C25F0F;
  --orange-soft: #F4A96A;
  --orange-block: #E87D22;
  --orange-block-deep: #CE6A12;
  --burnt: #7A3405;
  --paper: #F8F9FB;
  --sand: #E7EBF0;      /* deepened from #f2ecdf so sections read as separate rooms */
  --sand-deep: #D5DDE6;
  --ink: #14202E;
  --ink-soft: #4A5A6E;
  --line: #D2DAE3;

  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Outfit", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 76rem;
  --radius: 1.25rem;
  --shadow-soft: 0 1px 2px rgba(10, 34, 64, .05), 0 8px 28px rgba(10, 34, 64, .08);
  --shadow-lift: 0 2px 4px rgba(10, 34, 64, .07), 0 22px 48px rgba(10, 34, 64, .16);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 100;
  background: var(--orange); color: var(--navy-950);
  padding: .6rem 1.1rem; border-radius: .5rem; font-weight: 600;
  text-decoration: none; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

::selection { background: var(--orange); color: var(--navy-950); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: .3rem; }

/* ---------- Type ---------- */
/* Eyebrows go mono — the single cheapest "designed" signal in the redesign. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 1.4rem;
}
.eyebrow-pin {
  width: 1.6rem; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
}
.eyebrow-light { color: var(--orange-soft); }

/* Bigger, tighter — the main fix for "muted". Fraunces carries display sizes
   well; opsz is pushed up so the large cuts stay crisp. */
.section-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 120;
  font-weight: 640;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -.028em;
  color: var(--navy-900);
  text-wrap: balance;
}
.section-title em {
  font-style: italic; font-weight: 420;
  color: var(--navy-600);
}

.section-lede {
  max-width: 44rem; margin-top: 1.5rem;
  font-size: 1.125rem; color: var(--ink-soft);
}

.section-head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.85rem; border-radius: 999px;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background .25s var(--ease-out), color .25s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-orange {
  background: linear-gradient(160deg, var(--orange-soft), var(--orange) 45%, var(--orange-deep));
  color: var(--navy-950);
  box-shadow: 0 2px 6px rgba(194, 95, 15, .35), 0 10px 26px rgba(194, 95, 15, .25);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(194, 95, 15, .4), 0 16px 36px rgba(194, 95, 15, .32); }

.btn-glass {
  background: rgba(248, 249, 251, .12); color: #FFFFFF;
  border: 1px solid rgba(248, 249, 251, .35);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(248, 249, 251, .22); transform: translateY(-2px); }

.btn-line {
  background: transparent; color: var(--navy-700);
  border: 1.5px solid var(--navy-600);
}
.btn-line:hover { background: var(--navy-700); color: var(--paper); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-block: 1rem;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), padding .35s var(--ease-out);
  color: #FFFFFF;
}
.site-header.scrolled {
  background: rgba(6, 23, 41, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(248, 249, 251, .08), 0 12px 30px rgba(6, 23, 41, .25);
  padding-block: .6rem;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: inherit;
}
/* Brand lockup — reproduces the official Neville Tech artwork (NT-dark.png):
   the N of the mark doubles as the N of NEVILLE, so the wordmark begins at
   "EVILLE". Metrics are measured from the artwork: EVILLE's cap tops out at
   24% of the mark's height, TECH SOLUTIONS' baseline lands on the navy
   stem's foot, and both lines share the same width. */
.brand { gap: .2rem; align-items: flex-start; }
.brand-mark { color: #FFFFFF; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; margin-top: 8px; }
.brand-text b {
  font-family: var(--font-text); font-weight: 700;
  font-size: 1.3rem; letter-spacing: .14em; line-height: .82;
  color: #FFFFFF;
}
.brand-text em {
  font-family: var(--font-text); font-style: normal; font-weight: 600;
  font-size: .58rem; letter-spacing: .05em; text-transform: uppercase;
  color: #FFFFFF; margin-top: 3px;
}

.nav-menu {
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
}
.nav-menu a {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  color: rgba(255, 255, 255, .85);
  transition: color .2s;
}
.nav-menu a:hover { color: var(--orange-soft); }
.nav-cta {
  padding: .55rem 1.2rem; border-radius: 999px;
  background: linear-gradient(160deg, var(--orange-soft), var(--orange) 45%, var(--orange-deep));
  color: var(--navy-950) !important; font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(194, 95, 15, .35);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(194, 95, 15, .45); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  background:
    radial-gradient(120% 90% at 78% 8%, #17456F 0%, transparent 55%),
    linear-gradient(178deg, #0A2038 0%, #0C2846 34%, #0E3052 55%, #0A2240 100%);
  color: #FFFFFF;
  padding-top: clamp(7.5rem, 14vh, 10rem);
}

.hero-sky { position: absolute; inset: 0; pointer-events: none; }

.hero-sun {
  position: absolute; top: 9%; right: 14%;
  width: clamp(180px, 24vw, 340px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 196, 118, .5) 0%, rgba(232, 125, 34, .16) 42%, transparent 70%);
  filter: blur(2px);
  animation: sun-breathe 9s ease-in-out infinite;
}
@keyframes sun-breathe {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Landscape kept — it's the coastal identity — but pulled back in contrast
   so the enlarged headline is unambiguously the loudest thing here. */
.hills { position: absolute; inset-inline: 0; width: 100%; }
.hills path { fill: currentColor; }
.hills-far  { bottom: 32%; height: 34%; color: #17456F; opacity: .38; }
.hills-mid  { bottom: 26%; height: 30%; color: #0E3052; opacity: .7; }
.hills-near { bottom: 22%; height: 22%; color: #0A2240; opacity: .92; }

.hero-water {
  position: absolute; inset-inline: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, #0C2846 0%, #061729 100%);
}
.shimmer {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 196, 118, .42), transparent);
  animation: shimmer-drift 7s ease-in-out infinite;
}
.shimmer.s1 { top: 18%; left: 58%; width: 16%; animation-delay: 0s; }
.shimmer.s2 { top: 34%; left: 64%; width: 10%; animation-delay: 1.4s; }
.shimmer.s3 { top: 52%; left: 55%; width: 20%; animation-delay: 2.8s; }
.shimmer.s4 { top: 70%; left: 66%; width: 8%;  animation-delay: 4.2s; }
.shimmer.s5 { top: 44%; left: 12%; width: 12%; animation-delay: 3.5s; opacity: .5; }
@keyframes shimmer-drift {
  0%, 100% { opacity: .15; transform: translateX(0) scaleX(.7); }
  50% { opacity: .7; transform: translateX(-14px) scaleX(1); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(5rem, 12vh, 8.5rem);
}

.hero-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 640;
  font-size: clamp(3.1rem, 7.4vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic; font-weight: 560;
  color: rgba(255, 255, 255, .72);
}

/* The answer line carries the one amber moment in the hero. */
.hero-answer {
  font-family: var(--font-display);
  font-style: italic; font-weight: 420;
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: .5rem 0 1.6rem;
  background: linear-gradient(115deg, var(--orange-soft) 15%, var(--orange) 52%, var(--orange-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
  max-width: 33rem;
  margin-bottom: 2.1rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }

.trust-line {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .01em;
  color: rgba(255, 255, 255, .58);
}
.trust-line span { display: inline-flex; align-items: center; gap: .5rem; }
.trust-line span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange); flex: none;
}

/* --- Hero chat card --- */
.hero-chat { display: flex; flex-direction: column; gap: 1.1rem; }

.chat-card {
  background: rgba(248, 249, 251, .07);
  border: 1px solid rgba(248, 249, 251, .18);
  border-radius: 1.4rem;
  padding: 1.15rem 1.15rem 1.3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Hard offset shadow — borrowed from the redesign, kept to the pinned
     artifacts only so the rest of the page stays soft. */
  box-shadow: 16px 16px 0 rgba(4, 16, 29, .42);
  transform: rotate(1.2deg);
}

.chat-head {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: .85rem; margin-bottom: .95rem;
  border-bottom: 1px solid rgba(248, 249, 251, .12);
}
.chat-avatar {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange-deep));
  color: var(--navy-950); font-weight: 600; font-size: .82rem;
}
.chat-who { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.chat-who b {
  font-family: var(--font-mono); font-weight: 400; font-size: .68rem;
  letter-spacing: .02em; color: rgba(255, 255, 255, .55);
}

.chat-body { display: flex; flex-direction: column; gap: .55rem; min-height: 11.5rem; }

.chat-msg {
  max-width: 85%;
  padding: .55rem .95rem;
  border-radius: 1.1rem;
  font-size: .93rem; line-height: 1.45;
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.chat-msg.shown { opacity: 1; transform: none; }
.chat-msg.from-client {
  align-self: flex-start;
  background: rgba(248, 249, 251, .14);
  border-bottom-left-radius: .3rem;
  color: rgba(255, 255, 255, .95);
}
.chat-msg.from-don {
  align-self: flex-end;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange) 60%, var(--orange-deep));
  color: var(--navy-950); font-weight: 500;
  border-bottom-right-radius: .3rem;
}
.chat-typing {
  align-self: flex-end;
  display: inline-flex; gap: .28rem;
  padding: .7rem .95rem;
  border-radius: 1.1rem; border-bottom-right-radius: .3rem;
  background: rgba(232, 125, 34, .28);
}
.chat-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange-soft);
  animation: typing-bounce 1.1s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-caption {
  text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: 1.02rem; line-height: 1.5;
  color: rgba(255, 255, 255, .75);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-sand { background: var(--sand); }

.section-night {
  position: relative;
  background:
    radial-gradient(100% 80% at 20% 0%, #103A63 0%, transparent 60%),
    linear-gradient(178deg, var(--navy-900), var(--navy-950));
  color: #F4F7FA;
}
.section-night .section-title { color: #F4F7FA; }
.section-night .section-title em { color: var(--orange-soft); }

.night-ridge { position: absolute; top: -1px; inset-inline: 0; width: 100%; height: clamp(30px, 5vw, 70px); transform: translateY(-99%); }
.section-night .night-ridge path { fill: var(--navy-900); }
.site-footer .night-ridge path { fill: var(--navy-950); }

/* Plans gets a full colour block — it's the money section, it's allowed
   to interrupt. This is the redesign's idea, in the coastal palette. */
.section-orange {
  background: linear-gradient(178deg, var(--orange-block) 0%, var(--orange-block-deep) 100%);
  color: var(--navy-950);
}
/* The brand orange is far more saturated than the ochre this block used to be,
   so only dark text clears AA on it — the burnt accent dropped to 2.81:1.
   Italic already distinguishes the em, so colour doesn't need to. */
.section-orange .section-title { color: var(--navy-900); }
.section-orange .section-title em { color: var(--navy-950); }
.section-orange .eyebrow { color: var(--navy-950); }
.section-orange .eyebrow-pin { background: var(--navy-950); }
.section-orange .section-lede { color: rgba(6, 23, 41, .8); }

/* ---------- Work ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.4vw, 2.75rem);
}

.work-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius);
  transition: transform .35s var(--ease-out);
}
.work-card:hover { transform: translateY(-6px); }

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: box-shadow .35s var(--ease-out);
  background: #fff;
}
.work-card:hover .frame { box-shadow: var(--shadow-lift); }

.frame-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem;
  background: linear-gradient(180deg, #F2F5F8, #E2E8EF);
  border-bottom: 1px solid var(--line);
}
.frame-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #d3cab6; }
.frame-bar i:nth-child(1) { background: #e58f7e; }
.frame-bar i:nth-child(2) { background: #e8c063; }
.frame-bar i:nth-child(3) { background: #93bf8f; }
.frame-bar span {
  margin-left: .5rem;
  font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft);
  background: #fff; border-radius: 99px; padding: .14rem .8rem;
  border: 1px solid var(--line);
}

.shot {
  aspect-ratio: 16 / 10.5;
  display: block; width: 100%;
  object-fit: cover; object-position: top;
}

.work-meta { padding: 1.5rem .4rem 0; }
.work-index {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; color: var(--orange-deep);
  margin-bottom: .5rem;
}
.work-meta h3 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--navy-900);
}
.work-desc { margin-top: .6rem; color: var(--ink-soft); font-size: .98rem; max-width: 34rem; }
.work-visit {
  margin-top: .9rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-700);
  display: inline-flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .3rem;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out), gap .25s var(--ease-out);
}
.work-card:hover .work-visit { color: var(--orange-deep); border-color: var(--orange); gap: .75rem; }

.work-footer {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  text-align: center;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 420;
  color: var(--navy-800);
}
.work-footer em { color: var(--orange-deep); }

/* ---------- The little jobs (task stage) ---------- */
.jobs { overflow: hidden; }

.jobs-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.jobs-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 30rem; }

.task-stage {
  position: relative;
  min-height: 30rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.task {
  display: flex; flex-direction: column; gap: .5rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.05rem 1.1rem;
  box-shadow: 7px 8px 0 rgba(14, 46, 82, .1);
  transform: rotate(var(--rot, 0deg));
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
/* Choreography (JS adds .js-anim so no-script visitors still see the cards):
   each card pops in on its own beat, everything holds, the cards sweep
   away — staggered — and the payoff lands. The script then clears .in and
   .complete (both states are opacity 0 for the cards, so the reset is
   invisible) and the cycle loops. */
.js-anim .task {
  opacity: 0;
  transform: translateY(24px) scale(.92) rotate(var(--rot, 0deg));
}
.js-anim .task.in {
  opacity: 1;
  transform: rotate(var(--rot, 0deg));
}
.task strong {
  font-weight: 600; font-size: .95rem; line-height: 1.3;
  color: var(--navy-900);
}
.task small {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em;
  color: var(--ink-soft);
}
.task-icon {
  display: grid; place-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange-deep));
  color: var(--navy-950); font-size: .82rem; font-weight: 600;
}

.handled {
  position: absolute; inset: 0;
  display: grid; place-content: center; align-content: center;
  text-align: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.handled-label {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: .6rem;
}
.handled-line {
  font-family: var(--font-display); font-weight: 640;
  font-size: clamp(3rem, 9vw, 6.5rem); line-height: .95;
  letter-spacing: -.035em;
  color: var(--navy-900);
}
.handled-note {
  margin-top: 1.1rem;
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--navy-600);
}

.task-stage.complete .task,
.js-anim.task-stage.complete .task {
  opacity: 0;
  transform: translateY(-12px) scale(.88);
  transition-delay: calc(var(--exit, 0) * 90ms);
}
.task-stage.complete .handled {
  opacity: 1; transform: none;
  transition-delay: .55s;
}

.t-one   { --exit: 0; }
.t-two   { --exit: 1; }
.t-three { --exit: 2; }
.t-four  { --exit: 3; }
.t-five  { --exit: 4; }
.t-six   { --exit: 5; }

/* Scattered, rotated layout only where there's room for it —
   avoids the overlapping-card problem at narrow widths. */
@media (min-width: 56rem) {
  .task-stage { display: block; min-height: 38rem; }
  .task {
    position: absolute; width: 15.5rem;
  }
  .t-one   { left: 4%;   top: 2%;   --rot: -6deg; }
  .t-two   { right: 5%;  top: 8%;   --rot: 5deg; }
  .t-three { left: 20%;  top: 34%;  --rot: 7deg; }
  .t-four  { right: 19%; top: 42%;  --rot: -4deg; }
  .t-five  { left: 2%;   top: 68%;  --rot: -2deg; }
  .t-six   { right: 3%;  top: 74%;  --rot: 6deg; }
}

/* ---------- Plans ---------- */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2rem);
  align-items: start;
}

.plan {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(122, 52, 5, .18);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 10px 30px rgba(122, 52, 5, .14);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.plan:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(122, 52, 5, .2); }

.plan-star {
  background: linear-gradient(175deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-700);
  color: #F4F7FA;
  box-shadow: 0 14px 36px rgba(6, 23, 41, .35), 0 34px 70px rgba(6, 23, 41, .28);
  transform: scale(1.035);
  z-index: 2;
}
.plan-star:hover { transform: scale(1.035) translateY(-5px); }

.plan-flag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange) 55%, var(--orange-deep));
  color: var(--navy-950); font-weight: 700; font-size: .74rem;
  letter-spacing: .06em;
  padding: .35rem 1.1rem; border-radius: 99px;
  box-shadow: 0 4px 14px rgba(6, 23, 41, .3);
}

.plan-index {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; color: var(--orange-deep);
  margin-bottom: .8rem;
}
.plan-star .plan-index { color: var(--orange-soft); }

.plan-name {
  font-family: var(--font-display); font-weight: 560; font-size: 1.5rem;
  letter-spacing: -.01em;
}
.plan-price {
  font-family: var(--font-display); font-weight: 640;
  font-size: clamp(2.7rem, 4vw, 3.3rem); line-height: 1.05; margin-top: .35rem;
  letter-spacing: -.03em;
  color: var(--navy-800);
}
.plan-star .plan-price { color: var(--orange-soft); }
.plan-price span {
  font-family: var(--font-mono); font-weight: 400; font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink-soft); margin-left: .4rem;
}
.plan-star .plan-price span { color: rgba(244, 247, 250, .6); }

.plan-for { margin-top: .7rem; font-size: .95rem; color: var(--ink-soft); }
.plan-star .plan-for { color: rgba(244, 247, 250, .75); }

.plan-list { list-style: none; margin: 1.5rem 0 1.9rem; display: grid; gap: .65rem; flex: 1; }
.plan-list li {
  position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.5;
}
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .85rem; height: .5rem;
  border-left: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: rotate(-48deg);
}
.plan-star .plan-list li::before { border-color: var(--orange); }
.plan-plus { font-weight: 600; }
.plan-plus::before { border-color: var(--orange-deep) !important; }

.plan-btn { width: 100%; }

.plans-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  display: grid; gap: .5rem;
  color: rgba(6, 23, 41, .82);
}
.plans-note strong { color: var(--navy-950); }
.plans-note a { color: var(--navy-950); font-weight: 600; text-underline-offset: .2em; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.step-label {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.step-num {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(4rem, 7.6vw, 6rem); line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(160deg, var(--orange-soft), var(--orange-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: .5rem;
}
.step h3 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -.015em;
  color: var(--navy-900); margin-bottom: .6rem;
}
.step p { color: var(--ink-soft); font-size: .99rem; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2rem);
  align-items: start;
}
.quote {
  position: relative;
  background: rgba(248, 249, 251, .05);
  border: 1px solid rgba(248, 249, 251, .12);
  border-radius: var(--radius);
  padding: 2.6rem 1.75rem 1.75rem;
}
.quote::before {
  content: "\201C";
  position: absolute; top: .5rem; left: 1.2rem;
  font-family: var(--font-display); font-style: italic;
  font-size: 3.8rem; line-height: 1;
  color: var(--orange); opacity: .85;
}
.quote blockquote {
  font-size: .99rem; line-height: 1.65;
  color: rgba(244, 247, 250, .88);
}
.quote figcaption { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .25rem; }
.quote b { font-weight: 600; color: var(--orange-soft); }
.quote span {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .02em;
  color: rgba(244, 247, 250, .55);
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-copy p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 38rem; }
.about-copy p:first-of-type { margin-top: 1.5rem; }
.about-aside {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: 1.12rem; color: var(--navy-600) !important;
  border-left: 3px solid var(--orange);
  padding-left: 1.1rem;
}

.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fact {
  background: linear-gradient(175deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  color: #F4F7FA;
  display: flex; flex-direction: column; gap: .45rem;
  box-shadow: var(--shadow-soft);
}
.fact-wide { grid-column: 1 / -1; }
.fact b {
  font-family: var(--font-display); font-weight: 640;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--orange-soft);
}
.fact span {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1.5;
  color: rgba(244, 247, 250, .7);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-copy p { margin-top: 1.5rem; color: var(--ink-soft); max-width: 30rem; }

.contact-details { margin-top: 1.9rem; display: grid; gap: .7rem; justify-items: start; }
.contact-details a {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: -.015em;
  color: var(--navy-800); text-decoration: none;
  border-bottom: 2px solid var(--orange);
  transition: color .2s, border-color .2s;
}
.contact-details a:hover { color: var(--orange-deep); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-lift);
  display: grid; gap: 1.15rem;
}
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-mono); font-weight: 500; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-800);
}
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: .7rem;
  padding: .7rem .9rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 125, 34, .22);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { justify-self: start; padding-inline: 2.4rem; }
.form-submit[disabled] { opacity: .6; cursor: wait; transform: none; }

.form-status { font-size: .93rem; min-height: 1.3em; font-weight: 500; }
.form-status.ok { color: var(--navy-600); }
.form-status.err { color: #b3401f; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(178deg, var(--navy-950), #04101D);
  color: rgba(244, 247, 250, .75);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.footer-inner { display: grid; gap: 1rem; justify-items: center; }
.brand-footer { color: #F4F7FA; }
.footer-meta { font-size: .93rem; }
.footer-legal {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: rgba(244, 247, 250, .5);
}
.footer-legal a { color: var(--orange-soft); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chat-msg { opacity: 1; transform: none; }
  /* Show the payoff without the scroll choreography. */
  .task-stage .task { display: none; }
  .task-stage .handled { position: static; opacity: 1; transform: none; }
  .task-stage { min-height: 0; display: block; }
}

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: clamp(4rem, 9vh, 6rem); }
  .hero-chat { max-width: 26rem; }
  .jobs-head { grid-template-columns: 1fr; align-items: start; }
  .plans-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .plan-star { transform: none; }
  .plan-star:hover { transform: translateY(-5px); }
  .steps, .quotes { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .work-grid, .steps, .quotes { grid-template-columns: 1fr; }
  /* Task stage stays 2-up on phones — a single column reads as a tidy list,
     which is the opposite of the point. */
  .task-stage { min-height: 26rem; gap: .75rem; }
  .task { padding: .85rem .9rem; }
  .task strong { font-size: .88rem; }

  /* Mobile nav */
  .nav-toggle {
    display: grid; gap: .34rem; place-content: center;
    width: 2.7rem; height: 2.7rem;
    background: rgba(248, 249, 251, .1);
    border: 1px solid rgba(248, 249, 251, .25);
    border-radius: .7rem; cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) {
    display: block; width: 1.15rem; height: 2px; border-radius: 2px;
    background: #F4F7FA;
    transition: transform .3s var(--ease-out);
  }
  .nav-toggle[aria-expanded="true"] span:not(.sr-only):first-child { transform: translateY(.27rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:not(.sr-only):last-child { transform: translateY(-.27rem) rotate(-45deg); }

  .nav-menu {
    position: absolute; top: calc(100% + .6rem); right: clamp(1.25rem, 4vw, 2.5rem);
    flex-direction: column; align-items: stretch; gap: 0;
    min-width: 13rem;
    background: rgba(6, 23, 41, .96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(248, 249, 251, .14);
    border-radius: 1rem;
    padding: .6rem;
    box-shadow: 0 24px 60px rgba(4, 16, 29, .5);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { display: block; padding: .7rem .9rem; border-radius: .6rem; }
  .nav-menu a:hover { background: rgba(248, 249, 251, .08); }
  .nav-cta { margin-top: .4rem; text-align: center; }
}
