/* Elan's Tech World — site styles
   Palette: daylight white, navy ink, subway-cobalt, taxi-yellow. Type: Bricolage Grotesque (+ Geist Mono for real code only). */

:root {
  --paper: #ffffff;
  --sky: #eef3ff;
  --sky-2: #dfe8ff;
  --ink: #0d1b3e;
  --ink-2: #47557a;
  --ink-3: #7b87a6;
  --line: #dbe2f1;
  --cobalt: #2251ff;
  --cobalt-deep: #1534c4;
  --sun: #ffc233;
  --sun-deep: #f0a800;
  --mint: #19c37d;
  --code: #0b1633;

  --f: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-lg: 0 2px 4px rgba(13, 27, 62, .04), 0 18px 40px -12px rgba(13, 27, 62, .18), 0 60px 120px -40px rgba(34, 81, 255, .28);
  --shadow-md: 0 1px 2px rgba(13, 27, 62, .06), 0 12px 30px -14px rgba(13, 27, 62, .25);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Buttons & links ── */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .2s, box-shadow .35s var(--ease), border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); box-shadow: 0 10px 24px -10px rgba(240, 168, 0, .7); }
.btn--sun:hover { --bg: #ffcd52; box-shadow: 0 16px 30px -12px rgba(240, 168, 0, .8); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: #fff; }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: 0 1.8em; font-size: 1.08rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; color: var(--cobalt); text-decoration: none; }
.link-arrow::after { content: ''; width: .9em; height: .9em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sky); color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.tag--new { background: var(--sun); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink-2); background: #fff; }
.chips--lg li { padding: 10px 16px; font-size: 1rem; color: var(--ink); }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .45s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand__name { font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; font-stretch: 90%; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--sky); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sky); }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__phone { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.site-header__phone:hover { color: var(--ink); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0; background: #fff; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul a { display: block; padding: 10px 0; font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; letter-spacing: -0.024em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav__contact { display: grid; gap: 14px; margin-top: 32px; }
.mobile-nav__contact a:not(.btn) { text-align: center; font-weight: 600; color: var(--ink-2); }

@media (max-width: 1020px) {
  .nav, .site-header__phone { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 520px) {
  :root { --header-h: 66px; }
  .site-header__actions .btn { display: none; }
  .brand__name { font-size: 1.05rem; }
  .brand img { width: 38px; height: 38px; }
}

/* ── Sections (shared) ── */
section { position: relative; }
.split-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.split-head--top { align-items: start; margin-bottom: 0; }
.split-head h2, .work-hs__head h2, .process h2, .handmade h2, .page-hero__title + * h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-stretch: 90%; letter-spacing: -0.028em; }
.split-head > p { color: var(--ink-2); font-size: 1.15rem; max-width: 52ch; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }

/* ── Hero ── */
.hero { padding-top: clamp(28px, 4.5vw, 64px); background:
  radial-gradient(1200px 520px at 85% 8%, rgba(34, 81, 255, .10), transparent 60%),
  radial-gradient(900px 420px at 0% 40%, rgba(255, 194, 51, .16), transparent 60%),
  var(--paper); }
.hero__title {
  font-size: clamp(2.7rem, 7vw, 7rem);
  font-weight: 740;
  font-stretch: 86%;
  line-height: .93;
  letter-spacing: -0.032em;
}
@media (min-width: 700px) { .hero__title .line { white-space: nowrap; } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(24px, 3.5vw, 44px); }
.hero__lede { max-width: 56ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .hero__ctas { width: 100%; } .hero__ctas .btn { flex: 1 1 0; padding: 0 1em; min-height: 54px; font-size: 1rem; } }

/* ── Live build window ── */
.lb-stage { margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(64px, 9vw, 120px); perspective: 1800px; }
.lb {
  position: relative;
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13, 27, 62, .06);
  overflow: hidden;
  transform-origin: 50% 0%;
  will-change: transform;
}
.lb__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: #f6f8fd; border-bottom: 1px solid var(--line); }
.lb__dots { display: inline-flex; gap: 7px; flex: none; }
.lb__dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lb__dots i:nth-child(2) { background: #febc2e; }
.lb__dots i:nth-child(3) { background: #28c840; }
.lb__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.lb__tabs::-webkit-scrollbar { display: none; }
.lb__tab { position: relative; flex: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; overflow: hidden; transition: color .2s, background-color .2s; }
.lb__tab:hover { color: var(--ink); background: #fff; }
.lb__tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(13, 27, 62, .08), 0 0 0 1px var(--line); }
.lb__tab::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; }
.lb__tab[aria-selected="true"]::after { transform: scaleX(var(--p, 0)); }

.lb__body { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); min-height: 0; }
.lb__code { background: var(--code); color: #c9d4f2; display: flex; flex-direction: column; min-width: 0; }
.lb__file { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-family: var(--mono); font-size: .78rem; color: #7f8db6; }
.lb__file-name { color: #e6ecff; padding: 4px 10px; background: rgba(255, 255, 255, .06); border-radius: 6px; }
.lb__status { display: inline-flex; align-items: center; gap: 8px; }
.lb__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 194, 51, .6); animation: pulse 1.4s infinite; }
.lb.is-done .lb__status i { background: var(--mint); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 194, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0); } }
.lb__code pre { margin: 0; padding: 18px 20px 22px; flex: 1; overflow: hidden; font-family: var(--mono); font-size: clamp(.7rem, 1vw, .9rem); line-height: 1.75; white-space: pre; tab-size: 2; }
.lb__code code { font-family: inherit; display: block; min-height: 22em; }
.lb__code .c { color: #6c7aa3; font-style: italic; }
.lb__code .s { color: #8fb1ff; }
.lb__code .p { color: #e6ecff; }
.lb__code .v { color: #ffd166; }
.lb__code .k { color: #ff9cc5; }
.lb__code .n { color: #7ee2b8; }
.lb__code .sw { display: inline-block; width: .82em; height: .82em; margin-right: .45em; border-radius: 3px; vertical-align: -0.08em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transform: scale(0); animation: pop .35s var(--ease) forwards; }
@keyframes pop { to { transform: scale(1); } }
.lb__code .caret { display: inline-block; width: .55em; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--sun); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lb__preview { position: relative; display: flex; flex-direction: column; background: #fff; min-width: 0; }
.lb__url { display: flex; align-items: center; gap: 8px; margin: 10px 14px; padding: 7px 14px; border-radius: 999px; background: #f2f5fb; font-size: .86rem; font-weight: 550; color: var(--ink-2); min-height: 32px; }
.lb__lock { width: 10px; height: 12px; border: 2px solid var(--ink-3); border-radius: 3px; position: relative; flex: none; }
.lb__lock::before { content: ''; position: absolute; left: 0; top: -7px; width: 6px; height: 6px; border: 2px solid var(--ink-3); border-bottom: 0; border-radius: 5px 5px 0 0; }
.lb__screen { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.lb__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; clip-path: inset(0 100% 0 0); transition: none; }
.lb__screen img.is-on { clip-path: inset(0 0 0 0); z-index: 1; transition: filter .6s var(--ease), transform .8s var(--ease), opacity .6s; }
.lb.is-building .lb__screen img.is-on { filter: blur(10px) saturate(.4); transform: scale(1.04); opacity: .55; }
.lb__screen::after { content: 'Building…'; position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%) scale(.9); padding: 10px 18px; border-radius: 999px; background: rgba(13, 27, 62, .82); color: #fff; font-weight: 650; font-size: .95rem; opacity: 0; transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.lb.is-building .lb__screen::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lb__screen img.is-in { z-index: 2; animation: wipe 1.05s var(--ease) forwards; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lb__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; z-index: 3; background: var(--sun); box-shadow: 0 0 24px 6px rgba(255, 194, 51, .55); opacity: 0; pointer-events: none; }
.lb__scan.is-run { animation: scan 1.05s var(--ease) forwards; }
@keyframes scan { 0% { opacity: 1; left: 0; } 92% { opacity: 1; } 100% { opacity: 0; left: 100%; } }
.lb-note { margin-top: 18px; color: var(--ink-3); font-size: .95rem; max-width: 70ch; }

@media (max-width: 860px) {
  .lb__body { grid-template-columns: 1fr; }
  .lb__preview { order: -1; }
  .lb__code pre { padding: 14px 16px; }
  .lb__code code { min-height: 13.5em; max-height: 13.5em; overflow: hidden; }
  .lb__file { display: none; }
}

/* ── Browser chrome & device frames ── */
.device { border-radius: var(--r-m); overflow: hidden; background: #fff; box-shadow: var(--shadow-md), 0 0 0 1px rgba(13, 27, 62, .07); }
.device--xl { border-radius: var(--r-l); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13, 27, 62, .06); }
.chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f6f8fd; border-bottom: 1px solid var(--line); }
.chrome span { width: 10px; height: 10px; border-radius: 50%; background: #d6dcea; }
.chrome em { margin-left: 10px; font-style: normal; font-size: .78rem; font-weight: 550; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device img { width: 100%; }
.phone { position: relative; border-radius: 34px; padding: 9px; background: #0d1b3e; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 26px; width: 100%; }
.phone::before { content: ''; position: absolute; top: 17px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: #0d1b3e; border-radius: 0 0 12px 12px; z-index: 1; opacity: 0; }

/* ── Work: horizontal scroll ── */
.work-hs { padding-block: clamp(72px, 10vw, 140px) 0; background: var(--sky); overflow: hidden; }
.work-hs__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.work-hs__head p { color: var(--ink-2); max-width: 52ch; font-size: 1.1rem; }
.hs { padding-bottom: clamp(72px, 10vw, 140px); }
.hs__track { display: flex; gap: clamp(20px, 3vw, 44px); padding-inline: var(--gutter); width: max-content; }
.hs__panel { width: min(1080px, 80vw); flex: none; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.hs__media { display: block; border-radius: var(--r-m); overflow: hidden; background: #fff; box-shadow: var(--shadow-md), 0 0 0 1px rgba(13, 27, 62, .07); text-decoration: none; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.hs__media:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.hs__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hs__count { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.hs__text h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-stretch: 90%; letter-spacing: -0.024em; }
.hs__text h3 a { text-decoration: none; }
.hs__text h3 a:hover { color: var(--cobalt); }
.hs__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.hs__meta span { font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink-2); }
.hs__text > p:not(.hs__meta):not(.hs__count) { color: var(--ink-2); margin-bottom: 20px; }
.hs__panel--end { width: min(560px, 80vw); grid-template-columns: 1fr; }
.hs__end { padding: clamp(28px, 4vw, 52px); border-radius: var(--r-l); background: var(--ink); color: #fff; }
.hs__end-big { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 760; font-stretch: 87%; line-height: .95; letter-spacing: -0.024em; margin-bottom: 18px; }
.hs__end p:not(.hs__end-big) { color: #c4cde6; margin-bottom: 28px; }

@media (max-width: 899px) {
  .work-hs__head { grid-template-columns: 1fr; }
  .hs__track { display: grid; width: auto; gap: 56px; }
  .hs__panel, .hs__panel--end { width: auto; grid-template-columns: 1fr; }
}

/* ── Services rows (home) ── */
.services-list { padding-block: clamp(80px, 11vw, 150px); }
.svc-rows { border-top: 2px solid var(--ink); }
.svc-rows a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 12px 40px; align-items: baseline; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: padding .45s var(--ease), background-color .3s; }
.svc-rows a:hover { padding-inline: 20px; background: var(--sky); }
.svc-rows__t { font-size: clamp(1.6rem, 3.2vw, 2.7rem); font-weight: 720; font-stretch: 90%; letter-spacing: -0.024em; line-height: 1.05; }
.svc-rows__d { color: var(--ink-2); max-width: 48ch; }
.svc-rows__p { font-weight: 650; color: var(--cobalt); white-space: nowrap; }
@media (max-width: 760px) { .svc-rows a { grid-template-columns: 1fr; } }

/* ── Process ── */
.process { padding-block: clamp(80px, 10vw, 140px); background: var(--ink); color: #fff; }
.process h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .22); }
.steps__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 750; margin-bottom: 18px; }
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.steps p { color: #c4cde6; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps--compact { grid-template-columns: 1fr; gap: 14px; }
.steps--compact li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding-top: 0; border-top: 0; }
.steps--compact .steps__n { margin: 0; width: 34px; height: 34px; font-size: .95rem; }
.steps--compact p { color: var(--ink-2); padding-top: 4px; }

/* ── Hand-coded ── */
.handmade { padding-block: clamp(80px, 11vw, 150px); }
.handmade__in > h2 { max-width: 16ch; margin-bottom: clamp(36px, 5vw, 60px); }
.handmade__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-bottom: 40px; }
.handmade__grid > div { padding: 28px; border-radius: var(--r-l); background: var(--sky); }
.handmade__grid > div:nth-child(2) { background: #fff4d6; }
.handmade__grid > div:nth-child(3) { background: var(--ink); color: #fff; }
.handmade__grid > div:nth-child(3) p { color: #c4cde6; }
.handmade__grid h3 { font-size: 1.7rem; font-stretch: 90%; margin-bottom: 10px; letter-spacing: -0.024em; }
.handmade__grid p { color: var(--ink-2); }
@media (max-width: 860px) { .handmade__grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.home-faq { padding-block: 0 clamp(80px, 11vw, 150px); }
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 650; letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); transition: background-color .2s, transform .4s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq__item[open] summary i { background: var(--sun); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 68ch; }

/* ── Footer ── */
.site-footer { background: var(--cobalt); color: #fff; padding-top: clamp(72px, 10vw, 130px); overflow: hidden; }
.site-footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(56px, 7vw, 90px); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.site-footer__cta h2 { font-size: clamp(2.4rem, 6vw, 5.4rem); font-stretch: 87%; letter-spacing: -0.024em; line-height: .95; max-width: 13ch; }
.site-footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer .btn--line { --fg: #fff; border-color: #fff; }
.site-footer .btn--line:hover { --bg: #fff; --fg: var(--cobalt); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding-block: 48px; }
.site-footer__about { color: #dfe6ff; max-width: 36ch; }
.site-footer h3 { font-size: .95rem; font-weight: 650; color: #b9c8ff; margin-bottom: 12px; letter-spacing: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__word { font-size: clamp(3.2rem, 13.6vw, 13.5rem); font-weight: 780; font-stretch: 84%; letter-spacing: -0.034em; line-height: .8; white-space: nowrap; color: rgba(255, 255, 255, .14); margin: 8px 0 -0.06em; user-select: none; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .25); color: #c9d5ff; font-size: .92rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ── Page hero (inner pages) ── */
.page-hero { padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); background: radial-gradient(1000px 420px at 90% 0%, rgba(34, 81, 255, .09), transparent 60%), radial-gradient(800px 380px at 0% 60%, rgba(255, 194, 51, .14), transparent 60%); }
.page-hero--tight { padding-bottom: 24px; }
.page-hero__title { font-size: clamp(3rem, 10vw, 9rem); font-weight: 760; font-stretch: 86%; letter-spacing: -0.034em; line-height: .9; max-width: 14ch; }
.page-hero--tight .page-hero__title, .nf .page-hero__title { font-size: clamp(2.6rem, 7vw, 6.2rem); }
.page-hero__lede { margin-top: clamp(20px, 3vw, 32px); max-width: 60ch; font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--ink-2); }
.nf .hero__ctas { margin-top: 32px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; transition: background-color .2s, box-shadow .2s; }
.jump a:hover { background: var(--sun); box-shadow: 0 0 0 1px var(--sun); }

/* ── Portfolio index ── */
.pf-list { padding-block: clamp(32px, 5vw, 64px) clamp(80px, 10vw, 140px); }
.pf-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.pf-row:first-child { border-top: 0; }
.pf-row--flip .pf-row__media { order: 2; }
.pf-row__media { position: relative; display: block; text-decoration: none; padding-right: 6%; padding-bottom: 6%; }
.pf-row--flip .pf-row__media { padding-right: 0; padding-left: 6%; }
.pf-row__media .device { transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.pf-row__media:hover .device { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.phone--float { position: absolute; right: 0; bottom: 0; width: 22%; min-width: 92px; padding: 6px; border-radius: 22px; transition: transform .7s var(--ease); }
.phone--float img { border-radius: 17px; }
.pf-row--flip .phone--float { right: auto; left: 0; }
.pf-row__media:hover .phone--float { transform: translateY(-14px) rotate(-2deg); }
.pf-row__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pf-row__meta > span:not(.tag) { font-weight: 600; color: var(--ink-2); }
.pf-row__meta > span:not(.tag) + span:not(.tag)::before { content: '/'; margin-right: 8px; color: var(--line); }
.pf-row h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); font-stretch: 88%; letter-spacing: -0.028em; margin-bottom: 16px; }
.pf-row h2 a { text-decoration: none; }
.pf-row h2 a:hover { color: var(--cobalt); }
.pf-row__text > p { color: var(--ink-2); margin-bottom: 20px; max-width: 46ch; }
.pf-row .chips { margin-bottom: 24px; }
@media (max-width: 860px) { .pf-row { grid-template-columns: 1fr; } .pf-row--flip .pf-row__media { order: 0; padding-left: 0; padding-right: 6%; } .pf-row--flip .phone--float { left: auto; right: 0; } }

/* ── Case study ── */
.cs-hero { padding-block: clamp(36px, 6vw, 80px) clamp(36px, 5vw, 64px); background: radial-gradient(900px 400px at 92% 0%, color-mix(in srgb, var(--c3) 18%, transparent), transparent 65%), radial-gradient(800px 380px at 0% 70%, rgba(34, 81, 255, .08), transparent 60%); }
.crumbs { display: flex; gap: 10px; color: var(--ink-3); font-weight: 600; margin-bottom: 24px; }
.crumbs a { text-decoration: none; color: var(--cobalt); }
.cs-hero__title { font-size: clamp(2.8rem, 8.4vw, 8rem); font-weight: 760; font-stretch: 86%; letter-spacing: -0.034em; line-height: .9; max-width: 16ch; }
.cs-hero__lede { margin-top: 24px; max-width: 58ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: clamp(32px, 4vw, 48px) 0 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .85rem; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.cs-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

.cs-stage { padding-bottom: clamp(64px, 9vw, 120px); }
.cs-stage__in { position: relative; padding-right: clamp(0px, 7vw, 110px); }
.phone--stage { position: absolute; right: var(--gutter); bottom: -36px; width: clamp(120px, 21vw, 270px); }
@media (max-width: 700px) { .cs-stage__in { padding-right: var(--gutter); } .phone--stage { position: relative; right: auto; bottom: auto; width: 56%; margin: -60px 0 0 auto; } }

.cs-story { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.cs-story__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); }
.cs-story h2 { font-size: 1rem; font-weight: 650; color: var(--cobalt); margin-bottom: 18px; letter-spacing: 0; }
.cs-story__brief { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.ticks li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%230d1b3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (max-width: 860px) { .cs-story__in { grid-template-columns: 1fr; } }

.browse { padding-block: clamp(64px, 9vw, 120px); background: var(--ink); color: #fff; }
.browse__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 32px; }
.browse__head h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-stretch: 88%; letter-spacing: -0.024em; }
.browse__head p { color: #c4cde6; max-width: 46ch; }
.browse__frame { border-radius: var(--r-l); overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 40px 120px -40px rgba(34, 81, 255, .55); margin-inline: auto; transition: max-width .7s var(--ease); max-width: 100%; }
.browse__frame[data-mode="phone"] { max-width: 430px; }
.browse__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #f6f8fd; border-bottom: 1px solid var(--line); }
.browse__url { flex: 1; min-width: 0; padding: 6px 14px; border-radius: 999px; background: #eaeef7; font-size: .85rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browse__modes { display: inline-flex; padding: 3px; border-radius: 999px; background: #eaeef7; }
.browse__modes button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.browse__modes button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(13, 27, 62, .12); }
.browse__open { font-size: .85rem; font-weight: 600; color: var(--cobalt); text-decoration: none; white-space: nowrap; }
.browse__viewport { position: relative; height: min(78vh, 860px); background: var(--sky); }
.browse__frame[data-mode="phone"] .browse__viewport { height: min(80vh, 820px); }
.browse__viewport iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.browse__start { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; overflow: hidden; }
.browse__start img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .55; filter: saturate(.9) blur(1px); transform: scale(1.02); transition: opacity .4s, transform .8s var(--ease); }
.browse__start:hover img { opacity: .4; transform: scale(1.04); }
.browse__play { position: absolute; inset: 0; display: grid; place-items: center; }
.browse__play span { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 1.1rem; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); transition: transform .4s var(--ease); }
.browse__play span::before { content: ''; width: 0; height: 0; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.browse__start:hover .browse__play span { transform: scale(1.06); }
.browse__loading { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; color: var(--ink-3); font-weight: 600; transition: opacity .5s; }
.browse__loading.is-gone { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .browse__open { display: none; } .browse__viewport { height: 70vh; } }

.cs-gallery { padding-block: clamp(72px, 10vw, 130px) clamp(40px, 6vw, 80px); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.shot--wide { grid-column: 1 / -1; }
.shot figcaption { margin-top: 14px; color: var(--ink-2); font-weight: 550; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

.cs-phones { padding-block: clamp(56px, 8vw, 110px); background: var(--sky); overflow: hidden; }
.cs-phones__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.cs-phones__text h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-stretch: 88%; letter-spacing: -0.024em; margin-bottom: 18px; }
.cs-phones__text p { color: var(--ink-2); max-width: 44ch; }
.cs-phones__row { display: flex; gap: clamp(16px, 3vw, 36px); justify-content: center; }
.cs-phones__row .phone { width: min(280px, 44%); }
.cs-phones__row .phone:nth-child(2) { transform: translateY(48px); }
@media (max-width: 860px) { .cs-phones__in { grid-template-columns: 1fr; } }

.cs-brand { padding-block: clamp(72px, 10vw, 130px); }
.cs-brand h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-stretch: 88%; letter-spacing: -0.024em; margin-bottom: clamp(28px, 4vw, 48px); }
.cs-brand__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; grid-row: span 2; }
.swatches li { display: flex; flex-direction: column; border-radius: var(--r-m); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.swatches__chip { display: block; aspect-ratio: 1 / 1.05; background: var(--sw); }
.swatches__name { padding: 12px 14px 0; font-weight: 650; }
.swatches code { padding: 2px 14px 14px; font-family: var(--mono); font-size: .85rem; color: var(--ink-3); }
.specimens { display: grid; gap: 12px; }
.specimens li { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-radius: var(--r-m); background: var(--sky); }
.specimens__aa { font-size: 3.2rem; line-height: 1; min-width: 1.6em; }
.specimens__name { font-size: 1.4rem; }
.stack { padding: 22px; border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); }
.stack h3 { font-size: 1rem; font-weight: 650; color: var(--ink-3); margin-bottom: 12px; letter-spacing: 0; }
@media (max-width: 860px) { .cs-brand__grid { grid-template-columns: 1fr; } }

.cs-next { background: var(--sun); }
.cs-next__in { display: grid; gap: 8px; padding-block: clamp(56px, 8vw, 110px); text-decoration: none; }
.cs-next__label { font-weight: 650; }
.cs-next__name { font-size: clamp(2.6rem, 8vw, 7.4rem); font-weight: 760; font-stretch: 86%; letter-spacing: -0.034em; line-height: .9; transition: transform .6s var(--ease); }
.cs-next__in:hover .cs-next__name { transform: translateX(14px); }
.cs-next__meta { color: rgba(13, 27, 62, .7); font-weight: 600; }

/* ── Services page ── */
.svc { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: var(--header-h); }
.svc--tint { background: var(--sky); }
.svc__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc__head { position: sticky; top: calc(var(--header-h) + 32px); }
.svc__head h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-stretch: 87%; letter-spacing: -0.032em; line-height: .92; margin-bottom: 20px; }
.svc__lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); margin-bottom: 28px; max-width: 46ch; }
.price { display: grid; gap: 10px; margin: 0 0 28px; }
.price > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 18px; border-radius: var(--r-m); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.price dt { font-weight: 600; color: var(--ink-2); }
.price dd { margin: 0; font-weight: 750; font-size: 1.25rem; grid-row: span 2; align-self: center; text-align: right; }
.price .price__t { grid-row: auto; grid-column: 1; font-size: .9rem; font-weight: 500; color: var(--ink-3); text-align: left; }
.svc__body h3 { font-size: 1rem; font-weight: 650; color: var(--cobalt); margin: 0 0 14px; letter-spacing: 0; }
.svc__body h3:not(:first-child) { margin-top: 40px; }
.svc__proof { margin-top: 32px; color: var(--ink-2); }
.svc__proof a { color: var(--cobalt); font-weight: 600; }
@media (max-width: 860px) { .svc__in { grid-template-columns: 1fr; } .svc__head { position: static; } }

/* ── Why us ── */
.short-answer, .reasons, .compare-sec, .areas, .commit { padding-block: clamp(64px, 9vw, 120px); }
.short-answer h2, .reasons h2, .compare-sec h2, .areas h2, .commit h2, .founder h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-stretch: 88%; letter-spacing: -0.024em; margin-bottom: clamp(28px, 4vw, 48px); max-width: 18ch; }
.short-answer { padding-top: 0; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.qa > div { padding: 26px 28px; border-radius: var(--r-l); background: var(--sky); }
.qa dt { font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.qa dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }
.reasons { background: var(--ink); color: #fff; }
.reason-list { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.reason-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 48px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.reason-list h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-stretch: 90%; letter-spacing: -0.024em; grid-row: span 2; }
.reason-list p { color: #c4cde6; }
.reason-list__proof { color: var(--sun) !important; font-weight: 550; }
.reason-list a { color: inherit; }
@media (max-width: 760px) { .reason-list li { grid-template-columns: 1fr; } }
.compare-sec__lede { color: var(--ink-2); margin: -24px 0 32px; }
.table-scroll { overflow-x: auto; border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 1.05rem; background: #f8faff; }
.compare thead small { display: block; font-weight: 500; color: var(--ink-3); font-size: .85rem; }
.compare tbody th { font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.compare td { color: var(--ink-2); }
.compare .is-us { background: #fff6dc; color: var(--ink); font-weight: 650; }
.compare thead .is-us { background: var(--sun); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.fine { margin-top: 14px; color: var(--ink-3); font-size: .9rem; }
.founder { padding-block: clamp(64px, 9vw, 120px); background: var(--sky); }
.founder__in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder__mark img { width: 100%; max-width: 340px; border-radius: 40px; background: #fff; box-shadow: var(--shadow-lg); }
.founder p { color: var(--ink-2); font-size: 1.15rem; margin-bottom: 18px; max-width: 58ch; }
.founder .btn { margin-top: 12px; }
@media (max-width: 760px) { .founder__in { grid-template-columns: 1fr; } .founder__mark img { max-width: 180px; } }
.areas__lede { color: var(--ink-2); margin: -24px 0 36px; }
.areas__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.areas h3 { font-size: 1.5rem; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.areas li { padding: 5px 0; color: var(--ink-2); }
@media (max-width: 860px) { .areas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.commit { padding-top: 0; }
.commit__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.commit__list li { padding: 26px; border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); }
.commit__list h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.commit__list p { color: var(--ink-2); }
@media (max-width: 960px) { .commit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .commit__list { grid-template-columns: 1fr; } }

/* ── Contact ── */
.contact { padding-block: clamp(24px, 4vw, 48px) clamp(80px, 10vw, 140px); }
.contact__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-md), 0 0 0 1px var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(34, 81, 255, .14); }
.field .is-invalid, .field input:user-invalid { border-color: #d93a3a; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pick label { cursor: pointer; position: relative; }
.pick input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.pick input:checked + span { background: var(--sun); border-color: var(--sun); }
.pick input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.pick span:hover { transform: translateY(-1px); border-color: var(--ink-3); }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { color: var(--ink-3); font-size: .92rem; }
.form__status { font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #12865a; }
.form__status.is-err { color: #c92a2a; }
.form.is-sent > :not(.form__status) { display: none; }
.form.is-sent .form__status { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.25; color: var(--ink); }
.contact__side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact__card { padding: 30px; border-radius: var(--r-l); background: var(--cobalt); color: #fff; }
.contact__card h2, .contact__next h2 { font-size: 1.1rem; letter-spacing: 0; margin-bottom: 10px; }
.contact__big { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 760; font-stretch: 90%; letter-spacing: -0.024em; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__card p { color: #dfe6ff; margin-bottom: 18px; }
.contact__card li { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.contact__card a { text-decoration: none; }
.contact__card a:hover { text-decoration: underline; }
.contact__next { padding: 28px; border-radius: var(--r-l); background: var(--sky); }
@media (max-width: 900px) { .contact__in { grid-template-columns: 1fr; } .contact__side { position: static; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ── Load sequence (pure CSS so nothing waits on a script) ── */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero__title .line > span { animation: rise 1.15s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .07s; }
.hero__title .line:nth-child(3) > span { animation-delay: .14s; }
.hero__row { animation: fadeUp .9s var(--ease) .32s both; }
.lb-stage { animation: fadeUp 1.2s var(--ease) .48s both; }
.page-hero__title, .cs-hero__title { animation: fadeUp .9s var(--ease) both; }
.page-hero__lede, .cs-hero__lede { animation: fadeUp .9s var(--ease) .12s both; }

/* Work reel: scrollable by hand until the scroll-driven version takes over */
@media (min-width: 900px) {
  .hs { overflow-x: auto; scrollbar-width: none; }
  .hs::-webkit-scrollbar { display: none; }
  .hs.is-pinned { overflow: visible; }
}

/* ── Motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
