@charset "UTF-8";
/* JD Launchworks — Direction C "Signal lines". Tokens and motion spec documented in DESIGN.md. */

:root {
  --bg: #0b0d10;
  --bg-2: #13161b;
  --bg-3: #1a1e25;
  --line: #262b33;
  --line-2: #3a414c;
  --tx: #eef1f5;
  --tx-2: #a3acb7;
  --accent: #3dd68c;
  --accent-2: #8ae6b8;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --gutter: 48px;
  --section: clamp(40px, 5vw, 68px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.6;
  color: var(--tx);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2 { font-weight: 600; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
p { color: var(--tx-2); }
.fine { font-size: .875rem; line-height: 1.6; color: var(--tx-2); max-width: 72ch; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 20; padding: .75rem 1rem; background: var(--tx); color: var(--bg); border-radius: 6px; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; min-height: 44px; }
.brand span { font-weight: 600; }
.brand img { display: block; flex: none; }
.brand-ridge { margin-bottom: 4px; }
nav { display: flex; gap: .25rem; margin-left: auto; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .8rem; font-size: .9375rem; color: var(--tx-2); text-decoration: none; border-radius: 999px; transition: color .15s, background-color .15s; }
nav a:hover { color: var(--tx); background: var(--bg-2); }
.language { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; text-decoration: none; transition: background-color .15s, border-color .15s; }
.language:hover { background: var(--bg-2); border-color: var(--tx-2); }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 52px; padding: .8rem 1.45rem; background: var(--tx); color: var(--bg); border: 0; border-radius: 999px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s; }
.button:hover { transform: translateY(-2px); background: #fff; }
.button .arrow { color: inherit; transition: transform .25s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--accent); transition: text-underline-offset .2s var(--ease), color .2s; }
.text-link:hover { text-underline-offset: 3px; color: #fff; }
.arrow { color: var(--accent); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(80svh, 780px); display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 13, 16, .9) 40%, rgba(11, 13, 16, .1) 80%); }
.hero-copy { padding-block: clamp(56px, 7vw, 96px); }
.eyebrow { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-2); margin-bottom: 1.5rem; }
.hero h1 { max-width: 15ch; margin-bottom: 1.5rem; }
.hl-w { white-space: nowrap; } /* letters of one word never separate; lines break only at real spaces */
.hero-intro { font-size: 1.15rem; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-block: 2.25rem 1.25rem; }

/* Entrance motion: only when the head script set .motion (JS on, reduced motion off). CSS only, so it cannot be
   left half-run by a script error, and the hidden state exists only inside the keyframes: if animations do not run,
   everything is simply visible. Sequence (about 2 s): the hero lines draw left to right (motion.js, 0–600 ms); from
   520 ms each headline letter fades in over 380 ms, one every --st (18–25 ms, set per language by build.py); the intro
   follows as the headline completes. The buttons are never animated. */
.motion .hl-letters span[style] { animation: letter .38s ease-out both; animation-delay: calc(var(--i) * var(--st) + 520ms); }
.motion .reveal { animation: fade .5s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes letter { from { opacity: 0; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* Standard strip */
.standard { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.standard-label { font-size: .8125rem; text-transform: uppercase; color: var(--tx-2); }
.standard ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.standard li { display: flex; gap: .6rem; align-items: baseline; font-size: 1rem; line-height: 1.35; }
.standard li .mono { font-size: 1rem; font-weight: 600; color: var(--accent); flex: none; }

/* Sections */
.section { padding-block: var(--section); }
.section-tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem; font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; color: var(--tx); margin-bottom: 1.25rem; }
.kicker-alt { color: var(--tx-2); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-heading p { font-size: 1.0625rem; max-width: 44ch; }

/* Services + scope sheet */
.services-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.services-top h2 { margin-bottom: 1rem; }
.services-intro { font-size: 1.0625rem; max-width: 40ch; }
.sheet { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem 1.2rem; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-2); }
.sheet-head p { font-size: .75rem; text-transform: uppercase; color: var(--tx); }
.sheet-head .sheet-tag { color: var(--accent); }
.sheet-title { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; color: var(--tx); margin-block: 1rem .5rem; }
.sheet-rows > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--line); }
.sheet-rows dt { font-family: var(--mono); font-size: .8125rem; color: var(--tx-2); }
.sheet-rows dd { font-size: .9375rem; color: var(--tx); }
.sheet-foot { font-size: .875rem; margin-top: .9rem; }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto; gap: 0 16px; }
.offer { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 1.6rem 1.6rem 1.3rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .3s var(--ease); }
.offer:hover { border-color: var(--line-2); transform: translateY(-3px); }
.offer h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.offer-desc { font-size: 1rem; margin-bottom: 1.5rem; }
.offer-spec { display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); align-self: start; }
.offer-spec dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--tx-2); margin-bottom: .2rem; }
.offer-spec dd { font-size: .9375rem; color: var(--tx); }
.offer-price dd { font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.offer .text-link { margin-top: 1.1rem; align-self: end; justify-self: start; }
#services .fine { margin-top: 1.5rem; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
/* Screenshots of each concept build: the desktop view, with the phone view overlapping its lower right corner.
   Both are links to the full-size file; work.js opens them in a dialog. */
.work-shots { position: relative; padding: 0 clamp(44px, 10%, 92px) 30px 0; }
.shot { display: block; text-decoration: none; color: inherit; }
.shot-desktop { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.shot-desktop img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.shot-phone { position: absolute; right: 0; bottom: 0; width: clamp(84px, 24%, 140px); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 4px var(--bg), 0 18px 40px -12px rgba(0, 0, 0, .75); transition: transform .3s var(--ease), border-color .2s; }
.shot-phone img { width: 100%; height: auto; aspect-ratio: 360 / 779; }
.shot:hover { border-color: var(--tx-2); }
.shot-phone:hover { transform: translateY(-3px); }
.shot:focus-visible { outline-offset: 4px; border-radius: 12px; }
.work-more .work-shots { margin-bottom: 1.4rem; }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.work-kind { font-size: .75rem; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.work h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.work-spec > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding-block: .65rem; border-top: 1px solid var(--line); }
.work-spec dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--tx-2); padding-top: .2rem; }
.work-spec dd { font-size: .9375rem; color: var(--tx); }
.work .text-link { margin-top: .75rem; }
.work-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.work-more { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 1000px) { .work-feature { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
/* Design preview dialog (work.js): the screenshot, with a silent looping recording over it where one exists. */
.preview { width: min(1100px, 100vw - 24px); max-height: calc(100svh - 24px); padding: clamp(.9rem, 2vw, 1.4rem); border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); color: var(--tx); overflow: auto; }
.preview.preview-phone { width: min(520px, 100vw - 24px); }
.preview::backdrop { background: rgba(5, 6, 8, .88); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.preview-title { font-size: clamp(1.05rem, 2.4vw, 1.4rem); letter-spacing: -.02em; margin: 0; }
.preview-close { flex: none; background: var(--bg-2); }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .9rem; }
.preview-views { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.preview-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--tx); font: inherit; font-size: .875rem; cursor: pointer; }
.preview-toggle[hidden] { display: none; }
.preview-toggle:hover { background: var(--bg-2); }
/* Icon drawn in CSS: two bars for Pause, a triangle for Play. */
.toggle-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.preview-toggle.is-paused .toggle-icon { border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; }
.preview-view { min-height: 40px; padding: .4rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--tx-2); font: inherit; font-size: .875rem; cursor: pointer; }
.preview-view:hover { color: var(--tx); }
.preview-view[aria-pressed="true"] { background: var(--tx); color: var(--bg); font-weight: 600; }
.preview-stage { position: relative; display: grid; place-items: center; margin-top: .9rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
/* --media-max is set by work.js so the title, Close and view buttons stay on screen; 62svh is the fallback.
   The screenshot alone sets the stage size, so the recording over it can never change the layout. */
.preview-stage img { display: block; width: 100%; height: auto; max-height: var(--media-max, 62svh); object-fit: contain; }
.preview-phone .preview-stage img { width: auto; max-width: 100%; }
/* The recording sits exactly over the screenshot (same aspect ratio). It stays invisible until a frame is playing,
   so the screenshot shows instead of a black or blank frame; it then fades in, which also softens each loop restart. */
.preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity .3s ease; }
.preview-video.is-pending { opacity: 0; transition: none; }
.preview .copy-button { margin-top: 0; }
/* Phones: tighter spacing so Close and the view buttons stay on screen with the largest possible preview. */
@media (max-width: 560px) {
  .preview { padding: .8rem; }
  .preview-bar { margin-top: .6rem; }
  .preview-stage { margin-top: .6rem; }
  .preview-view, .preview-toggle { min-height: 40px; padding: .35rem .85rem; }
}

/* Process — five step chapters. Fully readable by default; steps.js (GSAP) adds the motion. */
/* Tree: a trunk runs down the left; each chapter branches off it to the right. */
.tree { --gut: clamp(56px, 7vw, 96px); --trunk-x: 10px; position: relative; padding-left: var(--gut); }
.trunk { position: absolute; left: calc(var(--trunk-x) - 1px); top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.trunk-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: top; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
/* Side by side: text on the left, picture on the right (the picture still comes first in the HTML and on phones). */
.chapter > .chapter-media { order: 2; }
.branch { position: absolute; left: calc(var(--trunk-x) - var(--gut)); width: calc(var(--gut) - var(--trunk-x) - 12px); top: calc(50% - 60px); height: 60px; pointer-events: none; }
.branch svg { display: block; width: 100%; height: 100%; overflow: visible; }
.branch path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.bud { position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(61, 214, 140, .18); }
.chapter-media { position: relative; margin: 0; aspect-ratio: 1600 / 1195; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.chapter-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chapter-n { font-size: clamp(4.5rem, 9vw, 8rem); font-weight: 600; line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 1rem; }
.chapter-count { font-size: .8125rem; color: var(--accent); margin-bottom: .6rem; }
.chapter-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1rem; }
.chapter-lead { font-size: 1.0625rem; color: var(--tx); max-width: 46ch; margin-bottom: 1.25rem; }
.chapter-points { list-style: none; padding: 1.1rem 0 0; margin: 0; display: grid; gap: .6rem; border-top: 1px solid var(--line); }
.chapter-points li { position: relative; padding-left: 1.4rem; color: var(--tx-2); max-width: 50ch; }
.chapter-points li::before { content: ''; position: absolute; left: 0; top: .78em; width: .8rem; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(var(--twig, 1)); }
.steps-cta { margin-top: clamp(1.75rem, 3.5vw, 3rem); }
/* Step links: shown with the desktop depth track only, so every step can be opened directly instead of by
   scrolling through the others. On other layouts all five steps are already listed in full. */
.step-nav { display: none; }
.steps-h .step-nav { display: block; position: relative; z-index: 2; padding: 0 var(--gutter) .75rem; }
.step-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.step-nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--tx-2); font-size: .875rem; text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
.step-nav a .mono { font-size: .8125rem; color: var(--accent); }
.step-nav a:hover { color: var(--tx); border-color: var(--tx-2); }
.step-nav a[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.step-nav a[aria-current="step"] .mono { color: var(--bg); }
/* Wide screens with motion (steps.js adds .steps-h): a depth track of five panels, a progress line on top. */
/* Strands run the full width BEHIND the panels: a narrow bundle from the right edge to a vanishing point, then
   widening to the left. Panels come out of the vanishing point and leave to the left. Never drawn over content. */
/* The track is only as tall as the step plus a small margin, so the strands frame the picture and text without
   taking over the screen. The progress line sits at its top edge; the strands start below it. */
.steps-h .chapters-wrap { --panel: min(880px, 60vw); --fan: 9vw; position: relative; width: 100%; overflow: hidden; padding-block: 1.5rem 1rem; }
.steps-h .tree { position: relative; z-index: 1; padding: 2.5rem 0 1.5rem; }
.steps-h .trunk { left: var(--gutter); right: var(--gutter); top: 0; bottom: auto; width: auto; height: 2px; }
.steps-h .trunk-fill { transform-origin: right center; }
.steps-h .branch { display: none; }
/* All five panels share one spot; steps.js moves them in depth. */
/* Resting panels sit a little left of centre (left edge 11vw from the screen edge); the vanishing point stays right. */
.steps-h .chapters { display: grid; gap: 0; justify-content: start; padding-left: 11vw; perspective: 900px; perspective-origin: calc(100% - var(--fan)) 50%; }
.steps-h .chapter { grid-area: 1 / 1; will-change: transform, opacity; }
.step-fan { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.step-fan svg { display: block; width: 100%; height: 100%; }
.step-fan path { fill: none; stroke: var(--line-2); stroke-width: 1; opacity: .7; }
.step-fan path.lit { stroke: rgba(61, 214, 140, .45); opacity: 1; }
.step-fan path.streak { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: .04 .96; opacity: .75; }
.steps-h .chapter { width: var(--panel); transform-origin: 100% 50%; }
/* A soft halo in the section colour keeps the lines from running through the step text. */
.steps-h .chapter-copy { background: var(--bg-2); border-radius: 24px; box-shadow: 0 0 40px 36px var(--bg-2); }
.steps-h .chapter-n { font-size: clamp(3.5rem, 6vw, 6rem); margin-bottom: .6rem; }

/* About + FAQ */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); border-top: 1px solid var(--line); }
.about h2 { margin-bottom: 1rem; }
.about-lead { font-size: 1.25rem; color: var(--tx); letter-spacing: -.01em; margin-bottom: 1.25rem; }
.about p:not(.kicker):not(.about-lead) { font-size: 1.0625rem; max-width: 52ch; }
.not-found h1, .not-found h2 { margin-bottom: 1rem; }
.not-found p:not(.eyebrow) { max-width: 52ch; }
.not-found .actions { margin-top: 1.5rem; }
.not-found section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.about-points { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .7rem; max-width: 52ch; }
.about-points li { position: relative; padding-left: 1.4rem; color: var(--tx-2); }
.about-points li::before { content: ''; position: absolute; left: 0; top: .8em; width: .8rem; height: 1px; background: var(--accent); }
.faq h3 { margin-bottom: 1rem; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding-block: .75rem; font-weight: 500; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 1.25rem; color: var(--accent); transition: transform .25s var(--ease); flex: none; }
details[open] > summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1rem; font-size: .9375rem; max-width: 60ch; }

/* Contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.contact h2 { margin-bottom: 1.25rem; }
.contact-copy p { max-width: 46ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin-block: 1.25rem .5rem; }
.email-row .copy-button { margin-top: 0; }
.email { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 7px; overflow-wrap: anywhere; }
.email:hover { text-decoration-thickness: 2px; }
.contact-meta { font-size: .8125rem; }
.contact-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); }
.contact-panel h3 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: .25rem; }
label { display: block; font-size: .875rem; font-weight: 500; margin: 1.1rem 0 .4rem; color: var(--tx); }
input, textarea { width: 100%; max-width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid #5d6672; border-radius: 10px; background: var(--bg-2); color: var(--tx); font-size: 1rem; transition: border-color .15s; }
input:hover, textarea:hover { border-color: #7b8593; }
input:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #8b95a1; }
textarea { resize: vertical; min-height: 8rem; }
#email-brief .button { width: 100%; margin-block: 1.25rem .75rem; }
#email-status:empty { display: none; }
#email-status { margin-top: 1rem; padding: .75rem 1rem; background: var(--bg-3); border-left: 3px solid var(--accent); border-radius: 6px; font-size: .9375rem; color: var(--tx); }
.copy-button { min-height: 44px; margin-top: .75rem; padding: .6rem 1.1rem; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.copy-button:hover { background: var(--bg-3); }
/* Prepared message: address, subject and text are read-only fields, so they can always be selected and copied. */
.prepared { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.prepared h4 { font-size: 1.1rem; letter-spacing: -.01em; }
.prepared input, .prepared textarea { background: var(--bg-3); }
.copy-row { display: flex; gap: .5rem; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }
.copy-row .copy-button { margin-top: 0; flex: none; }
.prepared-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.prepared-actions .copy-button { margin-top: 0; }
.prepared-actions .button { max-width: 100%; white-space: normal; text-align: center; } /* long Spanish label fits 320px */

/* Privacy + footer */
/* Privacy: a short note beside the email helper, and the full policy pages (privacy.html / privacidad.html). */
.privacy-note { margin-top: .75rem; }
.privacy-note a, .policy a:not(.text-link) { color: var(--tx); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.policy { max-width: 72ch; }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.policy h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); letter-spacing: -.02em; margin: 2.5rem 0 .75rem; }
.policy p, .policy li { color: var(--tx-2); line-height: 1.7; }
.policy p + p, .policy ul + p, .policy p + ul { margin-top: .75rem; }
.policy ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.policy-date { font-size: .8125rem; color: var(--tx-2); margin-bottom: 1.5rem; }
.policy-date .pending { background: #5c4a00; color: #fff3c4; padding: 0 .3em; border-radius: 4px; }
.policy-intro { font-size: 1.1rem; color: var(--tx) !important; }
.policy-back { margin-top: 3rem; }
.site-footer { padding-bottom: 2rem; }
.ridge { width: 100%; height: 32px; overflow: visible; }
.ridge path { fill: none; stroke: var(--line-2); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-row p { font-size: .875rem; }
.footer-row p a { display: inline-flex; align-items: center; min-height: 44px; }

[hidden] { display: none !important; }

/* Tablet */
@media (max-width: 1000px) {
  :root { --gutter: 32px; }
  .header-row { gap: 1rem; }
  nav a { padding-inline: .55rem; }
  .hero::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 13, 16, .7) 50%, rgba(11, 13, 16, .05) 100%); }
  .standard { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .standard ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sheet { max-width: 560px; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }
  .offer { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .offer-spec { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .offer .text-link { align-self: flex-start; }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .chapter > .chapter-media { order: 0; aspect-ratio: 16 / 9; } /* shorter crops keep the stacked steps compact */
  .chapters { gap: clamp(2rem, 5vw, 3rem); }
  .branch { top: 0; }
  .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .header-row { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: .5rem; }
  .brand-ridge { width: 38px; height: auto; }
  .language { margin-left: auto; font-size: .875rem; padding-inline: .85rem; }
  nav { order: 3; width: 100%; margin: 0 0 0 -.55rem; gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; }
  .hero { align-items: end; min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 13, 16, .35) 0%, rgba(11, 13, 16, .82) 45%, var(--bg) 100%); }
  /* Tight top spacing so the whole primary button shows in the first view, even at 320×740. */
  .hero-copy { padding-block: 28px 36px; }
  .eyebrow { font-size: .75rem; margin-bottom: .9rem; }
  .hero h1 { font-size: clamp(2.05rem, 9.2vw, 2.6rem); max-width: none; margin-bottom: 1rem; }
  .hero-intro { font-size: 1.0625rem; }
  .actions { margin-block: 1.5rem .25rem; gap: .5rem 1.5rem; }
  .actions .button { width: 100%; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .offer-spec { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding: 1.2rem 1.1rem 1rem; }
  .sheet-rows > div { grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; }
  .work-spec > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .chapter-n { font-size: 2.75rem; margin-bottom: .35rem; }
  .chapter-points { gap: .4rem; padding-top: .9rem; }
  .tree { --gut: 34px; --trunk-x: 6px; }
  .branch { width: calc(var(--gut) - var(--trunk-x) - 8px); height: 44px; }
  .steps-cta .button { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  nav { margin-left: 0; justify-content: space-between; }
  nav a { padding-inline: 0; }
  .standard ol { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
@media (max-width: 340px) {
  .sheet-rows > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .button, .language, .sheet, .offer, .chapter-media, .contact-panel, .shot-desktop, .shot-phone, .step-nav a { border: 1px solid CanvasText; }
  .step-nav a[aria-current="step"] { background: Highlight; color: HighlightText; }
  .chapter-n { color: CanvasText; -webkit-text-stroke: 0; }
  .hero-lines { display: none !important; }
  .trunk-fill, .bud { background: CanvasText; }
  .branch path { stroke: CanvasText; }
}

@media print {
  .site-header nav, .contact-panel, .ridge, .hero-lines, .trunk, .branch { display: none; }
  :root, body { background: #fff; color: #000; }
}
