/* Davar Labs — editorial monochrome.
   Black and white, Poppins in three weights, huge uppercase headlines with tight tracking,
   rotated section labels on the left edge and a dot progress rail on the right.
   Uppercase is reserved for display type; body copy stays sentence case for readability. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --ink: #0a0a0a;
  --ink-2: #555555;      /* body on white: 7.4:1 */
  --muted: #6b6b6b;      /* captions on white: 5.3:1 */
  --line: #e4e4e1;
  --dark: #0a0a0a;
  --on-dark: #ffffff;
  --on-dark-2: #b9b9b9;  /* body on black: 10:1 */
  --focus: #2f6bff;

  --f: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Libre Baskerville", Georgia, serif;
  --maxw: 1180px;
  --gut: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must never override the hidden attribute */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--f); font-size: 16px; line-height: 1.7;
  letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display { font-size: clamp(40px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.05em; text-transform: uppercase; max-width: 13ch; }
.title { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -0.035em; text-transform: uppercase; max-width: 20ch; margin-bottom: 18px; }
.eyebrow { font-size: 13px; font-weight: 400; letter-spacing: .14em; color: var(--muted); margin-bottom: 22px; }
.eyebrow::after { content: " …"; }
.sub, .body { font-size: 17px; max-width: 60ch; }
.sub { margin-bottom: clamp(36px, 5vw, 56px); }
.body + .body { margin-top: 14px; }
.muted { color: var(--muted); }
.rule { display: block; width: 100px; height: 3px; background: currentColor; margin: 34px 0; }

/* Rotated label on the left edge of each section (decorative) */
.side { position: absolute; left: clamp(14px, 2.2vw, 34px); top: clamp(96px, 12vw, 140px); margin: 0;
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .side { display: none; } }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-inline: clamp(16px, 3vw, 40px); color: var(--on-dark); transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.top.solid { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; color: inherit; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { display: inline-grid; }
.logo-word { font-weight: 600; font-size: 24px; letter-spacing: -0.05em; text-transform: uppercase; }
.logo-sub { justify-self: end; font-family: var(--f-serif); font-style: italic; font-size: 12px; letter-spacing: .04em; margin-top: 2px; }
.menu { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.menu a { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; padding: 8px 0; border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.menu a:hover, .menu a.on { opacity: 1; border-color: currentColor; }
@media (max-width: 1020px) { .menu { display: none; } }
.top-end { display: flex; align-items: center; gap: 12px; }
/* Language selector: trigger shows the current language, the panel lists all three by name */
.lang { position: relative; }
.lang-trigger { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 11px; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid currentColor; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.lang-trigger:hover { background: rgba(127,127,127,.12); }
.lang-globe { width: 15px; height: 15px; }
.lang-chev { width: 11px; height: 11px; transition: transform .2s var(--ease); }
.lang-trigger[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; margin: 0; padding: 6px; list-style: none; z-index: 60;
  background: #fff; color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 14px 34px -14px rgba(0,0,0,.35); }
.lang-list[hidden] { display: none; }
.lang-list button { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px;
  padding: 0 12px; cursor: pointer; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 14px; text-align: left; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--bg-soft); outline: none; }
.lang-short { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.lang-list button[aria-pressed="true"] { font-weight: 600; }
.lang-list button[aria-pressed="true"] .lang-short { color: var(--ink); }
.lang-list button[aria-pressed="true"] .lang-short::before { content: "✓ "; }
@media (max-width: 560px) { .top .btn-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.top:not(.solid) .btn-solid { background: #fff; color: var(--ink); }
.top:not(.solid) .btn-solid:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-line { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-line:hover { border-color: #fff; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn .wa { flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 44px); }

/* ---------- Dot rail ---------- */
.dots { position: fixed; right: clamp(10px, 1.6vw, 26px); top: 50%; transform: translateY(-50%); z-index: 30; display: grid; gap: 2px;
  color: #fff; mix-blend-mode: difference; }
.dots a { width: 22px; height: 22px; display: grid; place-items: center; }
.dots a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; transition: transform .2s, opacity .2s; }
.dots a.on::before { opacity: 1; transform: scale(1.5); }
.dots a:hover::before { opacity: .8; }
@media (max-width: 900px) { .dots { display: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding-block: clamp(80px, 11vw, 150px); }
.sec-soft { background: var(--bg-soft); }
.dark { background: var(--dark); color: var(--on-dark-2); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark .eyebrow, .dark .side, .dark .muted { color: #9a9a9a; }
.dark .rule { color: #fff; }

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 120px 80px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 85% 40%, rgba(255,255,255,.07), transparent 70%); }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .lede, .contact .lede { font-size: clamp(16px, 1.5vw, 18px); max-width: 52ch; color: var(--on-dark-2); }
.assure { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.assure li::before { content: "— "; color: #777; }
.foot-note { position: absolute; left: var(--gut); bottom: 24px; font-size: 12px; color: #777; }
@media (max-width: 980px) { .foot-note { display: none; } }

/* VSL */
.vsl { margin: 0; }
.vsl-frame { position: relative; aspect-ratio: 16 / 9; background: #161616; overflow: hidden; }
.vsl-frame video { width: 100%; height: 100%; object-fit: cover; }
.vsl-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.1)); color: #fff; font: inherit; }
.vsl-play .disc { width: 78px; height: 78px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.vsl-play .disc svg { width: 26px; height: 26px; margin-left: 3px; }
.vsl-play:hover .disc { background: #fff; color: var(--ink); transform: scale(1.05); }
.vsl-hint { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* Credentials name wall */
.cred { border-bottom: 1px solid var(--line); }
.cred-row { display: flex; align-items: center; gap: 18px 40px; padding-block: 34px; }
.cred-label { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
/* The carousel: two identical sets side by side, slid left by one set's width, so the loop is seamless. */
.cred-marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cred-track { display: flex; width: max-content; animation: cred-scroll 28s linear infinite; }
.cred-set { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.cred-marquee:hover .cred-track,
.cred-marquee:focus-within .cred-track { animation-play-state: paused; }
.cw { white-space: nowrap; }
@keyframes cred-scroll { to { transform: translateX(-50%); } }
@media (max-width: 720px) {
  .cred-row { flex-direction: column; align-items: stretch; gap: 16px; padding-block: 26px; }
  .cred-set { gap: 44px; padding-right: 44px; }
  .cred-track { animation-duration: 22s; }
}
/* Without motion: one static row that wraps, and no duplicate. */
@media (prefers-reduced-motion: reduce) {
  .cred-track { animation: none; width: auto; }
  .cred-marquee { -webkit-mask-image: none; mask-image: none; }
  .cred-set { flex-wrap: wrap; gap: 18px 36px; padding-right: 0; }
  .cred-set[aria-hidden="true"] { display: none; }
}
.cw { color: var(--ink); opacity: .55; transition: opacity .2s; line-height: 1; }
.cw:hover { opacity: 1; }
.cw-siemens { font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.cw-tp { font-weight: 300; font-size: 19px; letter-spacing: -0.01em; }
.cw-ardan { font-weight: 600; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; }
.cw-frizata { font-family: var(--f-serif); font-style: italic; font-size: 22px; }
.cw-beast { font-weight: 600; font-size: 20px; letter-spacing: -0.04em; text-transform: uppercase; }

/* Old way vs new */
.vs { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.vs-col { padding: 30px 0; }
.vs-new { padding-left: clamp(0px, 4vw, 48px); }
@media (min-width: 761px) { .vs-new { border-left: 1px solid var(--line); } }
.vs-head { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.vs-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs-col li { padding-left: 30px; position: relative; font-size: 16px; }
.vs-old li { color: var(--muted); text-decoration: line-through; text-decoration-color: #c8c8c8; }
.vs-old li::before { content: "×"; position: absolute; left: 0; color: var(--muted); }
.vs-new li { color: var(--ink); font-weight: 400; }
.vs-new li::before { content: "→"; position: absolute; left: 0; font-weight: 600; }

/* Split header + giant numeral */
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.stat { display: flex; align-items: flex-end; gap: 14px; color: var(--ink); }
.stat-num { font-size: clamp(76px, 10vw, 136px); font-weight: 600; line-height: .8; letter-spacing: -0.06em; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; max-width: 15ch; line-height: 1.4; padding-bottom: 4px; }
.dark .stat { color: #fff; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px clamp(0px, 2.4vw, 32px) 8px 0; }
@media (min-width: 861px) { .step + .step { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid #d9d9d5; } }
.step-n { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.step h3, .stack h3, .cap h3 { font-size: 18px; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1.3; margin-bottom: 10px; }
.step p, .stack p, .cap p { font-size: 15px; }

/* Value stack */
.stack { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); max-width: 860px; }
.stack li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.stack-n { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--muted); padding-top: 3px; }
.stack .stack-g { background: var(--ink); color: var(--on-dark-2); padding: 26px 18px; margin-top: 12px; border: 0; }
.stack-g h3 { color: #fff; }
.stack-g .stack-n { color: #fff; font-size: 20px; padding-top: 0; }

/* Guarantee */
.guar { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
@media (max-width: 860px) { .guar { grid-template-columns: 1fr; } }
.stat-xl .stat-num { font-size: clamp(96px, 15vw, 210px); }
.stat-xl { flex-direction: column; align-items: flex-start; gap: 18px; }

/* Founder */
.founder { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } .portrait { order: -1; } }
.punch { margin-top: 22px; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.55; max-width: 60ch; }
.why { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--f-serif); font-style: italic; font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 60ch; }
.portrait { position: relative; width: min(100%, 440px); justify-self: center; aspect-ratio: 1 / 1.08; }
.halftone { position: absolute; left: -8%; top: 22%; width: 62%; height: 70%;
  background-image: radial-gradient(#bdbdbd 1px, transparent 1.3px); background-size: 9px 9px; }
.avatar { position: absolute; right: 0; top: 0; width: 82%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a3a3a, #0a0a0a 70%); color: #fff; font-size: clamp(90px, 14vw, 150px); font-weight: 600; letter-spacing: -0.05em;
  filter: grayscale(1); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.portrait .stat { position: absolute; left: 6%; bottom: 7%; }
.portrait .stat-num { text-shadow: 4px 4px 0 #fff, -4px -4px 0 #fff, 4px -4px 0 #fff, -4px 4px 0 #fff; }
.founder-name { position: absolute; right: 0; bottom: -6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* Work grid — monochrome, colour only on hover */
.works { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-left: 1px solid #d9d9d5; }
@media (max-width: 880px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } }
@media (max-width: 880px) and (min-width: 561px) { .work-beast { grid-column: 1 / -1; } }
.work { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 30px); background: var(--bg-soft);
  border-right: 1px solid #d9d9d5; border-bottom: 1px solid #d9d9d5; transition: background .2s var(--ease); }
.work:hover { background: #fff; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mono { width: 40px; height: 40px; display: grid; place-items: center; flex: none; background: var(--ink); color: #fff; font-weight: 600; font-size: 17px;
  transition: background .2s var(--ease); }
.work:hover .mono { background: var(--mono-c, var(--ink)); }
.work-cat { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.work h3 { font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase; }
.work p { font-size: 14.5px; line-height: 1.65; flex: 1; }
.work-beast > p { flex: none; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 400; color: var(--ink-2); border: 1px solid #d0d0cc; padding: 2px 8px; }
.work p.int-label { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: -6px; }
.work-tags.int .tag { font-size: 10.5px; padding: 1px 6px; }
.work-link span { font-size: .7em; color: var(--muted); display: inline-block; transition: transform .2s; }
.work-link:hover span { transform: translate(2px, -2px); color: var(--ink); }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr; } }
.cap { padding: 26px 24px 10px 0; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid #d9d9d5; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-size: 16px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 15.5px; max-width: 70ch; }

/* Contact */
.contact { padding-block: clamp(100px, 14vw, 180px); }
.dark .final-date { color: #fff; }
.final-date::after { content: none; }
.contact-meta { margin-top: 28px; font-size: 13px; color: #8a8a8a; }
.contact-meta a:hover { color: #fff; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 30px var(--gut);
  font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.foot .logo { color: var(--ink); }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; inset: auto 0 0 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .28s var(--ease); }
  .sticky-cta.on { transform: none; }
  .sticky-cta .btn { width: 100%; }
}

/* Ad-tracking consent bar (built by track.js). White with an ink border, so it reads the same over
   dark and light sections. On phones it rides above the sticky CTA (69px tall) while that is shown. */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: #fff; color: var(--ink);
  border: 1px solid var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 13px; line-height: 1.5; transition: bottom .28s var(--ease); }
.consent-text { flex: 1 1 300px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .sticky-cta.on ~ .consent { bottom: calc(81px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
button.foot-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* One entrance for the hero; nothing else animates */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .hero .vsl { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3), .hero-copy > :nth-child(4) { animation-delay: .14s; }
.hero-copy > :nth-child(n+5) { animation-delay: .22s; }
.hero .vsl { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .hero-copy > *, .hero .vsl { animation: none; } }

/* Hero headline sized to its column so the longest word never runs into the video */
.hero .display { font-size: clamp(38px, 4.5vw, 68px); max-width: none; }
.hero .rule { margin: 26px 0; }
.hero .cta-row { margin-top: 28px; }

/* Phones and tablets: headline, then the VSL, then the pitch — the video stays near the top */
@media (max-width: 980px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; }
  .hero-copy .display { order: 2; }
  .hero .vsl { order: 3; margin-top: 28px; }
  .hero-copy .rule { order: 4; }
  .hero-copy .lede { order: 5; }
  .hero-copy .hero-cta { order: 6; }
  .hero-copy .assure { order: 7; }
}
.vsl-frame { border: 1px solid #2a2a2a; }
/* Phones play the 9:16 cut (main.js); 4:5 keeps the hero short and the reel's text sits inside that crop. */
@media (max-width: 640px) { .vsl-frame { aspect-ratio: 4 / 5; } }
.vsl-play { background: rgba(0,0,0,.5); }
.vsl-play:hover { background: rgba(0,0,0,.35); }

/* ---------- Contact + project brief ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.contact .display { font-size: clamp(36px, 4.4vw, 62px); max-width: 12ch; }
.contact-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--on-dark); font-size: 15px; }
.contact-points li::before { content: "→ "; color: #777; }
.contact-alt { margin-top: 34px; font-size: 13px; letter-spacing: .08em; color: #9a9a9a; }
.contact-alt + .cta-row { margin-top: 12px; }

.brief { background: #fff; color: var(--ink-2); padding: clamp(22px, 3.4vw, 40px); scroll-margin-top: 90px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief-steps { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.brief-steps li { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--line); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: border-color .2s, color .2s; }
.brief-steps li span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 10px; flex: none; }
.brief-steps li.on { border-color: var(--ink); color: var(--ink); }
.brief-steps b { font-weight: 600; }
@media (max-width: 480px) { .brief-steps b { display: none; } }
.brief-progress { font-size: 12px; color: var(--muted); margin-bottom: 18px; }

.brief-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.step-title { padding: 0; margin-bottom: 4px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field em, .group em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 11px 13px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #cfcfca; border-radius: 0; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.bad input, .field.bad textarea { border-color: #c62828; box-shadow: 0 0 0 1px #c62828; }

.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #cfcfca; font-size: 14px; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.group.bad .chip span { border-color: #c62828; }
.hint { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

.brief-error { margin-top: 18px; padding: 10px 12px; font-size: 14px; color: #8e1b1b; background: #fdecec; border-left: 3px solid #c62828; }
.brief-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.brief-nav .js-next, .brief-nav .js-send { margin-left: auto; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: #cfcfca; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.js-send[disabled] { opacity: .6; cursor: progress; }

.brief-done { text-align: center; padding: 30px 0 10px; outline: none; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border: 2px solid var(--ink); font-size: 28px; color: var(--ink); }
.brief-done h3 { font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 10px; }
.brief-done p { max-width: 42ch; margin: 0 auto 22px; }

/* ---------- Cost guide (guia.html) ---------- */
.guide-page .guide-hero { padding-top: clamp(120px, 14vw, 170px); }
.guide-title { font-size: clamp(36px, 5.6vw, 76px); max-width: 16ch; }
.estimator { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 960px) { .estimator { grid-template-columns: 1fr; } }
.est-inputs { display: grid; gap: 36px; }
.est-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.est-group legend { padding: 0; margin-bottom: 16px; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.est-group legend em { display: block; margin-top: 4px; font-style: normal; font-weight: 400; text-transform: none; letter-spacing: .01em; font-size: 13px; color: var(--muted); }
.est-n { color: var(--muted); margin-right: 6px; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .picks { grid-template-columns: 1fr; } }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-box { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid #cfcfca; background: #fff; transition: border-color .15s; }
.pick-box b { font-size: 15px; font-weight: 600; color: var(--ink); }
.pick-box small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pick:hover .pick-box { border-color: var(--ink); }
.pick input:checked + .pick-box { background: var(--ink); border-color: var(--ink); }
.pick input:checked + .pick-box b { color: #fff; }
.pick input:checked + .pick-box small { color: #bdbdbd; }
.pick input:focus-visible + .pick-box, .tick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.ticks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }
.tick { display: flex; cursor: pointer; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick span { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid #cfcfca; font-size: 14px; color: var(--ink); transition: border-color .15s; }
.tick span::before { content: ""; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--ink); background: #fff center / 12px no-repeat; }
.tick:hover span { border-color: var(--ink); }
.tick input:checked + span { border-color: var(--ink); font-weight: 600; }
.tick input:checked + span::before { background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }

.est-result { position: sticky; top: 96px; background: var(--ink); color: var(--on-dark-2); padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; }
@media (max-width: 960px) { .est-result { position: static; } }
.est-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; }
.est-empty { font-size: 16px; color: #fff; }
.est-figs { margin: 0; display: grid; gap: 16px; }
.est-figs div { border-top: 1px solid #2c2c2c; padding-top: 12px; }
.est-figs dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; }
.est-figs dd { margin: 4px 0 0; color: #fff; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.fig-cost { font-size: clamp(26px, 3vw, 36px); }
.fig-time, .fig-month { font-size: 19px; }
.est-store, .est-note { font-size: 12.5px; line-height: 1.55; color: #9a9a9a; }
.est-mail { margin-top: 8px; padding-top: 18px; border-top: 1px solid #2c2c2c; display: grid; gap: 12px; }
.est-mail-t { color: #fff; font-weight: 600; font-size: 15px; }
.est-mail-p { font-size: 13px; margin-top: -6px; }
.est-mail .field { color: #fff; }
.est-mail .field input { background: #141414; border-color: #3a3a3a; color: #fff; }
.est-mail .field input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.est-mail .btn-solid { background: #fff; color: var(--ink); }
.est-mail .btn-solid:hover { background: transparent; color: #fff; border-color: #fff; }
.est-done { color: #fff; font-weight: 600; }

.tips { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); margin-top: clamp(24px, 3vw, 40px); }
.tips-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tips, .tips-3 { grid-template-columns: 1fr; } }
.tip { padding: 26px 22px 8px 0; }
.tip-n { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.tip h3 { font-size: 16px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
.tip p { font-size: 14.5px; }
.guide-cta .display { font-size: clamp(32px, 4.6vw, 62px); max-width: 18ch; }
.foot-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.menu a[aria-current="page"] { opacity: 1; border-color: currentColor; }

/* ---------- Plans (recurring upsell) ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); max-width: 1000px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3.4vw, 40px); background: #fff; border: 1px solid #d9d9d5; border-top: 0; }
.plan h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; text-transform: uppercase; }
.plan-for { font-size: 15px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding-block: 12px; border-block: 1px solid #e4e4e1; color: var(--ink); }
.plan-price b { font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan-from, .plan-per { font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-list li { position: relative; padding-left: 24px; font-size: 15px; }
.plan-list li::before { content: "→"; position: absolute; left: 0; font-weight: 600; color: var(--ink); }
.plan-list .plan-inherit { padding-left: 0; font-weight: 600; color: var(--ink); }
.plan-list .plan-inherit::before { content: none; }
.plan .btn { align-self: flex-start; }
.btn-line-dark { color: var(--ink); border-color: var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: #fff; }
.plan-top { background: var(--ink); color: var(--on-dark-2); border-color: var(--ink); }
.plan-top h3, .plan-top .plan-price, .plan-top .plan-list li::before, .plan-top .plan-inherit { color: #fff; }
.plan-top .plan-price { border-color: #2c2c2c; }
.plan-top .plan-from, .plan-top .plan-per { color: #9a9a9a; }
.plan-tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: #fff; padding: 4px 10px; }
.plans-note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 70ch; }

/* Marketing consent checkbox (forms) */
.optin { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.optin input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.est-mail .optin { color: #9a9a9a; }
.est-mail .optin input { accent-color: #fff; }

/* Legal pages (privacidad, terminos): Spanish and English on one page, plain reading column. */
.legal-nav { display: flex; gap: 20px; font-size: 14px; }
.legal-nav a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 760px; padding-block: 120px 80px; }
.legal article + article { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.legal h1, .legal .legal-h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin-bottom: 28px; }
.legal h2, .legal h3 { font-size: 19px; margin: 40px 0 12px; }
.legal article > h2.legal-h1 { margin-top: 0; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code { font-size: 14px; }
.legal-date { font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 22px; }
