/* ==========================================================================
   twodash.co — tech lab
   ========================================================================== */

:root {
  --bg: #0a0a09;
  --bg-2: #121211;
  --fg: #f1efe8;
  --muted: #8b8a84;
  --dim: #4a4945;
  --line: rgba(241, 239, 232, 0.12);
  --brand: #2e5bff;         /* brand surface colour */
  --brand-ink: #ffffff;     /* text on brand surfaces */
  --brand-tint: #2e5bff40;  /* highlighter band */
  --accent: #7b96ff;        /* accent used as text/lines */
  --logo-tile: var(--brand);
  --logo-dash: #ffffff;
  --grain: 0.06;
  color-scheme: dark;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-2: #ebe8df;
  --fg: #0a0a09;
  --muted: #5f5e59;
  --dim: #b8b5ab;
  --line: rgba(10, 10, 9, 0.12);
  --accent: #1f45d6;
  --brand-tint: #c9d5ff;
  --grain: 0.09;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4f2ec; --bg-2: #ebe8df; --fg: #0a0a09; --muted: #5f5e59; --dim: #b8b5ab;
    --line: rgba(10, 10, 9, 0.12); --accent: #1f45d6; --brand-tint: #c9d5ff; --grain: 0.09;
    color-scheme: light;
  }
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
main { overflow-x: clip; }
body {
  background: var(--bg);
  transition: background-color .5s var(--ease), color .5s var(--ease);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.accent-text { color: var(--accent); }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--gutter); }

/* grain overlay ----------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 90;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); }
  40% { transform: translate(3%,-6%); } 60% { transform: translate(-7%,2%); }
  80% { transform: translate(4%,5%); }
}

/* cursor ------------------------------------------------------------------ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
  display: none;
}
body.has-cursor .cursor { display: grid; place-items: center; }
.cursor span {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-ink); opacity: 0; transition: opacity .2s;
}
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--brand); }
.cursor.is-label span { opacity: 1; }

/* loader / page transition ------------------------------------------------ */
.curtain {
  position: fixed; inset: 0; z-index: 95;
  background: var(--brand);
  transform-origin: top;
  transform: scaleY(1);
  transition: transform .9s var(--ease);
  display: flex; align-items: flex-end; padding: var(--gutter);
  color: var(--brand-ink);
}
.curtain .mono { font-size: 13px; }
body.is-loaded .curtain { transform: scaleY(0); }
body.is-leaving .curtain { transform-origin: bottom; transform: scaleY(1); transition-duration: .6s; }

/* nav --------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, padding .4s var(--ease), color .4s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: 14px;
}
.logo { display: inline-flex; align-items: center; }
.logo-svg { height: 30px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; transition: border-color .3s, transform .6s var(--ease);
}
.theme-btn:hover { border-color: var(--fg); transform: rotate(40deg); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-status { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.menu-btn { display: none; background: none; border: 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 79; background: var(--brand); color: var(--brand-ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: var(--gutter); padding-bottom: 48px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.mobile-menu a { font-size: clamp(48px, 16vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
body.menu-open .nav { color: var(--brand-ink); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; --logo-tile: #ffffff; --logo-dash: var(--brand); }
body.menu-open .theme-btn { border-color: rgba(255,255,255,.35); }

/* hero -------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 32px;
  overflow: hidden;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 20%, transparent) 0%, transparent 40%, color-mix(in srgb, var(--bg) 88%, transparent) 100%);
}
.hero > *:not(canvas) { position: relative; z-index: 2; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 48px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta b { font-weight: 400; color: var(--fg); }
.hero-meta span { color: var(--muted); }

.mega {
  font-weight: 700;
  font-size: clamp(56px, 13.2vw, 260px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.mega .row { display: block; overflow: hidden; padding-bottom: .04em; }
.mega .row > span { display: inline-block; }
.mega .outline { color: var(--accent); }
:root[data-theme="light"] .mega .outline { color: var(--brand); }
.mega .indent { padding-left: 1.2em; }

/* split-text reveal */
.split .wd { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; transform: translateY(110%) rotate(6deg); transition: transform 1.1s var(--ease); }
.is-in .split .ch, .split.is-in .ch { transform: none; }

.hero-sub {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 36px;
}
.hero-sub p { max-width: 460px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); }
.hero-sub p strong { color: var(--fg); font-weight: 500; }

/* buttons ----------------------------------------------------------------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px; border-radius: 999px;
  background: var(--b); color: var(--brand-ink);
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  border: 0; position: relative; overflow: hidden; isolation: isolate;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: translateY(101%); border-radius: 50% 50% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn:hover { color: var(--bg); }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { color: var(--bg); }
.magnetic { will-change: transform; transition: transform .5s var(--ease); }

/* marquee ----------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  background: var(--bg);
}
.marquee.brand-bar { background: var(--brand); color: var(--brand-ink); border: 0; transform: rotate(-2deg) scale(1.05); margin-block: 60px; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-size: clamp(36px, 6vw, 88px); font-weight: 700; letter-spacing: -0.05em; text-transform: uppercase;
  padding-right: 0.5em; display: inline-flex; align-items: center; gap: .5em; line-height: 1;
}
.marquee-track span::after { content: "✦"; font-size: .45em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections ---------------------------------------------------------------- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 200px) var(--gutter); }
.sec-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start;
  margin-bottom: clamp(48px, 7vw, 100px);
}
.sec-label { display: flex; gap: 14px; align-items: center; }
.sec-label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.h2 {
  font-size: clamp(40px, 6.4vw, 112px); font-weight: 700; line-height: .92; letter-spacing: -0.055em;
}
.h2 em { font-style: normal; color: var(--accent); }
.h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.lead { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -0.015em; color: var(--muted); max-width: 720px; }
.lead strong { color: var(--fg); font-weight: 500; }

/* manifesto scrub text */
.scrub {
  font-size: clamp(34px, 5.2vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em;
  max-width: 1500px;
}
.scrub .w { color: var(--dim); transition: color .4s; }
.scrub .w.on { color: var(--fg); }
.scrub .w.hl.on { color: var(--accent); }

/* reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* work -------------------------------------------------------------------- */
.feature {
  display: block; position: relative;
  border-radius: 28px; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.feature-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 28px; border-bottom: 1px solid var(--line);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.pill.live { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.feature-body { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 560px; }
.feature-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.feature-name { font-size: clamp(52px, 7.5vw, 130px); font-weight: 700; letter-spacing: -0.05em; line-height: .85; }
.feature-name span { color: var(--accent); }
.feature-copy p { color: var(--muted); font-size: 18px; max-width: 440px; }
.feature-visual { position: relative; overflow: hidden; border-left: 1px solid var(--line); background: #0d0d0c; --line: rgba(241,239,232,.12); --muted: #8b8a84; }
.feature:hover .mock { transform: scale(1.03) rotate(-1deg); }

/* grayblock mock */
.mock {
  position: absolute; inset: 36px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 10px; transition: transform 1.2s var(--ease);
}
.cam {
  position: relative; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, #2a2a27 0%, #151514 60%);
  border: 1px solid var(--line);
}
.cam::before { /* head + shoulders silhouette */
  content: ""; position: absolute; left: 50%; bottom: -14%; width: 64%; aspect-ratio: 1; translate: -50% 0;
  background:
    radial-gradient(circle at 50% 28%, #3b3b37 0 17%, transparent 17.5%),
    radial-gradient(ellipse 50% 40% at 50% 92%, #33332f 0 99%, transparent 100%);
}
.cam .tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.cam .tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.cam.me { border-color: color-mix(in srgb, var(--brand) 70%, transparent); }
.cam.timer { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.cam.timer::before { display: none; }
.cam.timer div { text-align: center; }
.cam.timer b { display: block; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.05em; font-weight: 700; line-height: 1; }
.cam.drift { outline: 2px solid #ff5a3a; outline-offset: -2px; }
.nudge {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  background: #f1efe8; color: #0a0a09; border-radius: 14px 14px 4px 14px;
  padding: 12px 14px; font-size: 13px; max-width: 220px; line-height: 1.3;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  animation: bob 4s ease-in-out infinite;
}
.nudge small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6b6b64; margin-bottom: 4px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.next-slot {
  margin-top: 20px; border: 1px dashed color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 28px;
  padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  transition: border-color .4s, background-color .4s;
}
.next-slot:hover { border-color: var(--accent); border-style: solid; background: var(--bg-2); }
.next-slot .h3 { font-size: clamp(28px, 3.4vw, 52px); font-weight: 700; letter-spacing: -0.05em; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.slot {
  border: 1px dashed rgba(241,239,232,.2); border-radius: 28px; padding: 28px;
  min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.slot .redact { display: flex; flex-direction: column; gap: 10px; }
.slot .redact i { display: block; height: 22px; background: #1d1d1b; border-radius: 4px; }
.slot .redact i:nth-child(1) { width: 60%; height: 42px; }
.slot .redact i:nth-child(2) { width: 85%; } .slot .redact i:nth-child(3) { width: 45%; }
.slot:hover .redact i { background: repeating-linear-gradient(90deg, #1d1d1b 0 10px, #242422 10px 20px); }

/* process ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 28px 40px 0; border-right: 1px solid var(--line); position: relative; }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step .num { font-size: clamp(64px, 7vw, 120px); font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--dim); margin-bottom: 40px; transition: color .5s, -webkit-text-stroke-color .5s; }
.step:hover .num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 10px; font-weight: 600; }
.step p { color: var(--muted); font-size: 16px; }

/* services list ----------------------------------------------------------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 80px 1fr 1fr 60px; align-items: center; gap: 24px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--brand);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.svc:hover::before { transform: scaleY(1); }
.svc:hover { color: var(--brand-ink); }
.svc:hover p, .svc:hover .mono { color: var(--brand-ink); }
.svc h3 { font-size: clamp(30px, 3.6vw, 60px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; transition: transform .5s var(--ease); }
.svc:hover h3 { transform: translateX(12px); }
.svc p { color: var(--muted); max-width: 440px; transition: color .3s; }
.svc .ar { font-size: 32px; justify-self: end; transition: transform .5s var(--ease); }
.svc:hover .ar { transform: rotate(-45deg); }

/* big cta ----------------------------------------------------------------- */
.cta { padding: clamp(96px, 14vw, 200px) var(--gutter) 60px; text-align: left; }
.cta-link { display: block; }
.cta-link .mega { font-size: clamp(56px, 12.5vw, 260px); transition: color .5s; }
.cta-link:hover .mega { color: var(--accent); }
.cta-link .mega .arrow { display: inline-block; transition: transform .8s var(--ease); }
.cta-link:hover .mega .arrow { transform: rotate(-45deg); }

/* footer ------------------------------------------------------------------ */
.footer { padding: 40px var(--gutter) 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 80px; }
.footer-grid h4 { margin-bottom: 16px; color: var(--muted); font-weight: 400; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-word {
  font-size: 22.5vw; font-weight: 700; letter-spacing: -0.075em; line-height: .75;
  color: color-mix(in srgb, var(--fg) 6%, var(--bg));
  white-space: nowrap; margin-left: -0.04em; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--muted); flex-wrap: wrap; }

/* inner-page hero --------------------------------------------------------- */
.page-hero { padding: 180px var(--gutter) 80px; position: relative; }
.page-hero .mega { font-size: clamp(56px, 12vw, 220px); }
.crumbs { display: flex; gap: 10px; margin-bottom: 36px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* case study -------------------------------------------------------------- */
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-inline: var(--gutter); }
.meta-grid div { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.meta-grid div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.meta-grid b { font-weight: 500; font-size: 18px; }
.case-visual {
  margin: 60px var(--gutter) 0; border-radius: 28px; overflow: hidden; position: relative;
  aspect-ratio: 16 / 9; background: #0d0d0c; border: 1px solid var(--line);
  --line: rgba(241,239,232,.12); --muted: #8b8a84;
}
.case-visual .mock { inset: clamp(16px, 4vw, 56px); gap: clamp(6px, 1vw, 14px); }
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.two-col + .two-col { margin-top: clamp(64px, 8vw, 120px); }
.body-copy { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -0.01em; max-width: 820px; }
.body-copy p + p { margin-top: 1em; }
.body-copy .muted { color: var(--muted); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  border: 1px solid var(--line); border-radius: 24px; padding: 32px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--bg-2); transition: border-color .4s, transform .6s var(--ease);
}
.feat:hover { border-color: var(--accent); transform: translateY(-6px); }
.feat .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.feat p { color: var(--muted); margin-top: 10px; }
.next-case { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 48px var(--gutter) 96px; }

/* about ------------------------------------------------------------------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode {
  border-radius: 28px; padding: clamp(28px, 4vw, 56px); min-height: 520px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.mode.brand-card { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.mode.brand-card .muted { color: rgba(255,255,255,.75); }
.mode h3 { font-size: clamp(48px, 6vw, 104px); font-weight: 700; letter-spacing: -0.06em; line-height: .88; }
.mode ul { list-style: none; border-top: 1px solid currentColor; }
.mode li { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); display: flex; justify-content: space-between; }
.rules { counter-reset: r; border-top: 1px solid var(--line); }
.rule {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 24px; padding: 40px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.rule::before { counter-increment: r; content: "0" counter(r); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.rule h3 { font-size: clamp(28px, 3.4vw, 56px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.rule p { color: var(--muted); font-size: 18px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stack-row span { padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line); font-size: 18px; transition: background .3s, color .3s; }
.stack-row span:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engage .feat { min-height: 340px; }
.engage .tag-mono { color: var(--accent); }
@media (max-width: 1000px) { .engage { grid-template-columns: 1fr; } }

/* contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 100px); }
.contact-side { display: flex; flex-direction: column; gap: 40px; }
.contact-side .big-mail { font-size: clamp(26px, 2.8vw, 44px); font-weight: 600; letter-spacing: -0.04em; border-bottom: 2px solid var(--accent); align-self: flex-start; }
.contact-side .big-mail:hover { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 36px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { color: var(--muted); }
.field input, .field textarea, .field select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0 16px; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; outline: none;
  border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 140px; font-size: clamp(19px, 1.6vw, 24px); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg);
  font-size: 16px; transition: all .3s; cursor: pointer; user-select: none;
}
.chips label:hover { border-color: var(--fg); }
.chips input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff6b4a; }
.budget[hidden] { display: none; }

/* 404 --------------------------------------------------------------------- */
.lost { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 60px; gap: 40px; }
.lost .mega { font-size: clamp(120px, 34vw, 560px); }

/* responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .feature-body { grid-template-columns: 1fr; }
  .feature-visual { border-left: 0; border-top: 1px solid var(--line); min-height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feat-grid { grid-template-columns: 1fr; }
  .modes, .contact-grid { grid-template-columns: 1fr; }
  .mode { min-height: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-status { display: none; }
  .nav-right { gap: 12px; }
  .logo-svg { height: 26px; }
  .menu-btn { display: inline-flex; }
  .hero-meta { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .mega .indent { padding-left: 0; }
  .sec-head, .two-col { grid-template-columns: 1fr; gap: 20px; }
  .slots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-right: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .svc { grid-template-columns: 1fr 40px; gap: 10px; padding: 26px 0; }
  .svc .mono { grid-column: 1 / -1; }
  .svc p { grid-column: 1 / 2; }
  .svc .ar { grid-row: 2; grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid div:nth-child(3) { padding-left: 0; border-left: 0; }
  .meta-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rule { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .mock { inset: 16px; gap: 6px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .case-visual { aspect-ratio: 4 / 5; }
  .nudge { right: 10px; bottom: 10px; max-width: 180px; font-size: 12px; }
  .page-hero { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv, .split .ch { opacity: 1; transform: none; }
}
