/* ==========================================================================
   Cracked Creative
   Layout: a 12-column grid on a near-black field. Faint column guides stay
   visible behind the content. Headlines are set huge and snap to column
   lines; everything else is left-aligned to the grid.
   ========================================================================== */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans.woff2") format("woff2-variations"), url("../fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --bg: #05070d;          /* near-black */
  --panel: #0b1220;       /* dark navy panels */
  --blue: #2d6bff;        /* electric blue: logo, buttons, links */
  --blue-hover: #2458e0;
  --deep: #0f2c6b;        /* hover fills */
  --ice: #9db8ff;         /* small accents */
  --white: #ffffff;
  --text: #eef2fa;
  --muted: #8c98b0;
  --line: rgba(157, 184, 255, 0.13);
  --line-strong: rgba(157, 184, 255, 0.3);
  --guide: rgba(157, 184, 255, 0.06);

  /* Type */
  --font: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-mega: clamp(52px, 12.4vw, 200px);
  --t-giant: clamp(52px, 10.4vw, 172px);
  --t-h2: clamp(34px, 4.4vw, 68px);
  --t-h3: clamp(21px, 1.8vw, 28px);
  --t-lead: clamp(19px, 1.55vw, 24px);
  --t-body: 17px;
  --t-small: 14px;

  /* Layout */
  --max: 1440px;
  --pad: clamp(16px, 3.4vw, 48px);
  --gap: clamp(12px, 1.7vw, 24px);
  --section: clamp(80px, 8.5vw, 136px);
  --header: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

/* ---------- Grid ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.guides { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.3s; }
.guides .wrap, .guides .grid { height: 100%; }
.guides span { height: 100%; border-left: 1px solid var(--guide); }
.guides span:last-child { border-right: 1px solid var(--guide); }
.show-grid .guides span { border-color: rgba(45, 107, 255, 0.35); background: rgba(45, 107, 255, 0.04); }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Logo mark ---------- */
.mark { display: block; }
.mark svg { width: 100%; height: auto; }
.watermark { position: absolute; z-index: 0; pointer-events: none; color: var(--blue); opacity: 0.09; will-change: transform; }
.watermark svg { width: 100%; height: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--blue); color: var(--white);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:hover { background: var(--blue-hover); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ice); }
.btn--dark { background: var(--bg); color: var(--white); }
.btn--dark:hover { background: var(--panel); }
.btn--block { width: 100%; min-height: 58px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color 0.2s, text-decoration-color 0.2s; }
.link:hover { color: var(--ice); text-decoration-color: var(--ice); }
.link svg { width: 15px; height: 15px; }

/* ---------- Flexible display type ---------- */
.mega {
  font-size: var(--t-mega);
  font-weight: 760;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: nowrap;
}
.giant { font-size: var(--t-giant); font-weight: 740; line-height: 0.88; letter-spacing: -0.035em; text-transform: uppercase; }
[data-flex] .fw { display: inline-block; white-space: nowrap; }
[data-flex] .fc {
  display: inline-block;
  font-variation-settings: "wdth" var(--w, 100), "wght" var(--g, 760);
  transition: font-variation-settings 0.5s var(--ease);
}
[data-flex].is-intro .fc { transition-duration: 1s; transition-delay: calc(var(--i) * 32ms); }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: var(--section); border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.sec-head { row-gap: 20px; align-items: start; }
.sec-head__label { grid-column: 1 / span 3; padding-top: 0.55em; font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.sec-head__title { grid-column: 4 / span 7; font-size: var(--t-h2); font-weight: 600; font-stretch: 104%; line-height: 1.02; letter-spacing: -0.025em; }
.sec-head__title--wide { grid-column: 4 / span 9; }
.sec-head__aside { grid-column: 11 / span 2; justify-self: end; align-self: end; }
.sec-head__lead { grid-column: 4 / span 6; font-size: var(--t-lead); line-height: 1.4; color: var(--muted); }
.sec-body { margin-top: clamp(40px, 5vw, 72px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.site-header.is-scrolled { background: rgba(5, 7, 13, 0.86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { width: 40px; color: var(--blue); flex: none; transition: color 0.2s, transform 0.4s var(--ease); }
.brand:hover { transform: rotate(-8deg); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a { position: relative; font-size: 15px; font-weight: 500; padding-block: 6px; color: var(--text); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; font-weight: 600; }
.menu-btn__icon { display: grid; gap: 5px; width: 18px; }
.menu-btn__icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--bg); padding: calc(env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px)); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; overflow-y: auto; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.menu__close { min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; font-size: 15px; }
.menu__links { margin-top: 24px; border-top: 1px solid var(--line); }
.menu__links a { display: block; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: clamp(40px, 11vw, 88px); font-weight: 700; font-stretch: 100%; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; transition: color 0.2s, font-stretch 0.4s var(--ease); }
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--blue); }
.menu__info { margin-top: 32px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.menu__info a { color: var(--text); font-weight: 600; }
.menu__foot { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.menu__mark { position: absolute; right: -14vw; bottom: -10vh; width: 70vw; max-width: 720px; opacity: 0.07; color: var(--blue); pointer-events: none; }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); transition: background-color 0.2s, box-shadow 0.2s; }
.social a:hover { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.social svg { width: 16px; height: 16px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header) + env(safe-area-inset-top, 0px) + clamp(28px, 4.5vw, 72px)); padding-bottom: var(--section); }
.hero__mark { right: -9vw; top: 4%; width: min(62vw, 980px); rotate: -8deg; }
.hero__head { position: relative; z-index: 1; }
.hero__title { display: grid; font-size: calc(min(100vw - 2 * var(--pad), var(--max) - 2 * var(--pad)) / 8.7); }
.hero__l2 { justify-self: end; }
.hero__sub { position: absolute; left: 0; bottom: 0.4em; width: calc((100% - 11 * var(--gap)) / 12 * 3.6 + 3 * var(--gap)); font-size: var(--t-lead); font-weight: 500; line-height: 1.3; color: var(--text); }
.hero__body { position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 80px); row-gap: 40px; }
.hero__intro { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 28px; }
.hero__intro > p { color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__facts { display: grid; gap: 22px; padding-top: 24px; border-top: 1px solid var(--line); }
.vet { display: flex; align-items: baseline; gap: 14px; }
.vet b { font-size: 44px; font-weight: 720; font-stretch: 110%; line-height: 1; letter-spacing: -0.03em; }
.vet > span { font-size: 15px; font-weight: 500; color: var(--muted); max-width: 14ch; line-height: 1.3; }
.follow { display: grid; gap: 10px; }
.follow > span { font-size: var(--t-small); color: var(--muted); }

/* showcase */
.showcase { grid-column: 5 / span 8; min-width: 0; }
.screen { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.screen__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #0e1626; border-bottom: 1px solid var(--line); }
.screen__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3550; }
.screen__bar span { margin-left: 10px; min-width: 0; max-width: 60%; height: 18px; padding: 0 10px; border-radius: 6px; background: rgba(157, 184, 255, 0.08); font-size: 11px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen__view { position: relative; aspect-ratio: 1512 / 809; overflow: hidden; }
.screen__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.showcase .screen__view img { opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.showcase .screen__view img.is-active { opacity: 1; transform: none; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 18px; }
.tab { position: relative; display: grid; gap: 2px; padding-top: 14px; text-align: left; color: var(--muted); transition: color 0.2s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--text); }
.tab__name { font-size: 16px; font-weight: 600; line-height: 1.25; }
.tab__kind { font-size: 13px; color: var(--muted); }
.tab__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-strong); overflow: hidden; }
.tab__bar i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] .tab__bar i { animation: tab-progress var(--dur, 5.5s) linear forwards; }
.showcase.is-paused .tab__bar i { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }

/* ---------- Stats ---------- */
.stats { margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.stat { grid-column: span 3; padding: 28px 0 0; display: grid; gap: 10px; align-content: start; }
.stat + .stat { padding-left: var(--gap); border-left: 1px solid var(--line); margin-left: calc(var(--gap) * -1); }
.stat__num { font-size: clamp(56px, 7.4vw, 118px); font-weight: 700; font-stretch: 112%; line-height: 0.9; letter-spacing: -0.04em; }
.stat__num small { font-size: 0.5em; font-weight: 600; letter-spacing: 0; vertical-align: 0.6em; margin-left: 0.04em; color: var(--blue); }
.stat__label { font-size: 15px; color: var(--muted); }

/* ---------- Work rows (cursor preview) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-block: clamp(20px, 2.4vw, 34px); }
.row__name { grid-column: 1 / span 6; font-size: clamp(30px, 4vw, 62px); font-weight: 650; font-stretch: 100%; line-height: 1; letter-spacing: -0.03em; transition: font-stretch 0.45s var(--ease), color 0.25s, transform 0.45s var(--ease); }
.row__desc { grid-column: 7 / span 4; font-size: 15px; line-height: 1.5; color: var(--muted); }
.row__meta { grid-column: 11 / span 2; justify-self: end; text-align: right; font-size: 15px; line-height: 1.4; color: var(--muted); }
.row__meta b { display: block; font-weight: 600; color: var(--text); }
.row__link:hover .row__name, .row__link:focus-visible .row__name { color: var(--blue); font-stretch: 116%; }
.rows__more { display: flex; justify-content: flex-end; margin-top: 28px; }
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(280px, 26vw, 420px); pointer-events: none; opacity: 0; scale: 0.92; transition: opacity 0.25s, scale 0.35s var(--ease); will-change: transform; }
.preview.is-on { opacity: 1; scale: 1; }
.preview .screen { box-shadow: 0 0 0 1px var(--line-strong), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }

/* ---------- Statement ---------- */
.statement { overflow: hidden; }
.statement__mark { right: -6vw; top: 50%; width: min(46vw, 700px); translate: 0 -50%; rotate: 10deg; opacity: 0.08; }
.statement__quote { position: relative; z-index: 1; grid-column: 1 / span 10; font-size: clamp(30px, 4.3vw, 66px); font-weight: 500; font-stretch: 100%; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.statement__by { position: relative; z-index: 1; grid-column: 1 / span 6; margin-top: 36px; display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.statement__by .mark { width: 34px; color: var(--blue); flex: none; }
.statement__by b { display: block; font-weight: 600; color: var(--text); }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; min-height: clamp(84px, 10vw, 150px); padding-block: 10px; }
.svc__word { grid-column: 1 / span 7; font-size: clamp(44px, 7.6vw, 124px); font-weight: 760; font-stretch: 100%; line-height: 0.9; letter-spacing: -0.035em; text-transform: uppercase; transition: font-stretch 0.5s var(--ease), color 0.25s; }
.svc__desc { grid-column: 8 / span 3; font-size: 16px; line-height: 1.4; color: var(--muted); transition: color 0.25s; }
.svc__thumb { grid-column: 11 / span 2; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.45s var(--ease); }
.svc__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.svc__link:hover .svc__word, .svc__link:focus-visible .svc__word { color: var(--blue); font-stretch: 125%; }
.svc__link:hover .svc__desc, .svc__link:focus-visible .svc__desc { color: var(--text); }
.svc__link:hover .svc__thumb, .svc__link:focus-visible .svc__thumb { opacity: 1; transform: none; }

/* ---------- Founder ---------- */
.founder { row-gap: var(--gap); }
.founder__card { position: relative; grid-column: 1 / span 6; grid-row: span 2; min-height: clamp(420px, 40vw, 620px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: clamp(24px, 3vw, 44px); background: var(--panel); border-radius: 4px; }
.founder__card > :not(.watermark) { position: relative; z-index: 1; }
.founder__card > .founder__photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.founder__card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.6) 30%, rgba(5, 7, 13, 0) 62%); pointer-events: none; }
.founder__role { font-size: var(--t-small); font-weight: 600; color: var(--ice); }
.founder__name { font-size: clamp(42px, 5.2vw, 84px); font-weight: 720; font-stretch: 108%; line-height: 0.92; letter-spacing: -0.035em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 500; color: var(--text); }
.tile { grid-column: span 3; display: grid; gap: 12px; align-content: start; }
.tile__img { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--panel); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__cap { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.tile__cap b { font-weight: 600; }
.tile__cap span { color: var(--muted); }
a.tile .tile__cap b { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Blue band ---------- */
.band { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding-block: clamp(80px, 9vw, 150px); }
.band__mark { right: -4vw; top: 50%; width: min(42vw, 640px); color: var(--white); opacity: 0.14; translate: 0 -50%; rotate: -12deg; }
.band__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 3vw, 44px); }
.band__title { color: var(--white); }

/* ---------- Clients ---------- */
.clients { gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.client { grid-column: span 2; display: grid; place-items: center; aspect-ratio: 1.45; background: var(--bg); padding: 12%; transition: background-color 0.25s; }
.client:hover { background: var(--panel); }
.client img { width: 100%; max-height: 52px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.72; transition: opacity 0.25s; }
.client img.is-tall { max-height: 74px; }
.client:hover img { opacity: 1; }
.client .wordmark { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: clamp(15px, 1.5vw, 22px); letter-spacing: -0.02em; opacity: 0.8; }
.client .wordmark svg { width: 1em; height: 1em; }
.clients-wrap { grid-template-columns: 1fr; }

/* ---------- Hairline cell grids (why, facts, info) ---------- */
.cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cell { background: var(--bg); padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.cell__icon { width: 30px; height: 30px; color: var(--blue); }
.cell__title { font-size: var(--t-h3); font-weight: 650; line-height: 1.15; letter-spacing: -0.015em; }
.cell__sub { font-size: var(--t-small); font-weight: 600; color: var(--ice); }
.cell__body { color: var(--muted); line-height: 1.55; }
.cell__foot { font-size: 13px; font-weight: 600; color: var(--muted); }
.why .cell { grid-column: span 4; }
.why .cell--badge { grid-row: span 2; background: var(--blue); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; min-height: 320px; }
.cell--badge .badge-mark { width: 64px; color: var(--white); position: relative; z-index: 1; }
.cell--badge .badge-word { position: relative; z-index: 1; font-size: clamp(40px, 4.6vw, 72px); font-weight: 760; font-stretch: 110%; line-height: 0.9; letter-spacing: -0.035em; text-transform: uppercase; }
.cell--badge .watermark { right: -30%; bottom: -26%; width: 110%; color: var(--white); opacity: 0.12; rotate: 14deg; }

/* ---------- Build log ---------- */
.log { row-gap: 40px; }
.post { grid-column: span 3; display: grid; gap: 14px; align-content: start; min-width: 0; }
.post--feature { grid-column: span 6; }
.post__img { height: clamp(220px, 24vw, 360px); border-radius: 4px; overflow: hidden; background: var(--panel); }
.post__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 0.8s var(--ease); }
.post--feature .post__img img { object-position: center; }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--muted); }
.post__title { font-size: clamp(20px, 1.6vw, 26px); font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; }
.post--feature .post__title { font-size: clamp(24px, 2.4vw, 38px); }
.post__title a:hover { color: var(--ice); }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(72px, 8vw, 130px); }
.footer__mark { right: -10vw; bottom: -18vw; width: min(64vw, 1000px); opacity: 0.07; rotate: -14deg; }
.footer__cta { position: relative; z-index: 1; display: inline-block; color: var(--text); transition: color 0.25s; }
.footer__cta:hover { color: var(--blue); }
.footer__grid { position: relative; z-index: 1; margin-top: clamp(48px, 6vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); row-gap: 40px; }
.footer__col { grid-column: span 3; display: grid; gap: 12px; align-content: start; }
.footer__col--wide { grid-column: span 5; }
.footer__col--links { grid-column: span 4; }
.footer__h { font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.footer__col p { line-height: 1.55; }
.footer__email { font-size: clamp(22px, 2.3vw, 36px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; transition: color 0.2s; }
.footer__email:hover { color: var(--blue); }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer__links a { font-weight: 500; transition: color 0.2s; }
.footer__links a:hover { color: var(--ice); }
.footer__bottom { position: relative; z-index: 1; margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid var(--line); }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: var(--t-small); color: var(--muted); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand .mark { width: 30px; color: var(--blue); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-top: calc(var(--header) + env(safe-area-inset-top, 0px) + clamp(48px, 7vw, 120px)); padding-bottom: clamp(56px, 6vw, 96px); }
.page-hero__mark { right: -8vw; top: 10%; width: min(50vw, 760px); rotate: -10deg; }
.page-hero__title { position: relative; z-index: 1; }
.page-hero__row { position: relative; z-index: 1; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); row-gap: 20px; align-items: start; }
.page-hero__row > p { grid-column: 4 / span 6; font-size: var(--t-lead); line-height: 1.4; color: var(--muted); }
.page-hero__row > .page-hero__label { grid-column: 1 / span 3; font-size: var(--t-small); color: var(--muted); padding-top: 0.3em; }

/* About: who we are */
.who__side { grid-column: 1 / span 3; display: grid; gap: 32px; align-content: start; }
.who__main { grid-column: 4 / span 9; display: grid; gap: 32px; min-width: 0; }
.who__title { font-size: var(--t-h2); font-weight: 600; font-stretch: 104%; line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; }
.who__lead { font-size: var(--t-lead); line-height: 1.45; color: var(--muted); max-width: 46ch; }
.who__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; background: var(--panel); }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.minis .screen__bar { height: 24px; }
.minis .screen__bar span { display: none; }
.who__under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.who__under p { font-size: 18px; font-weight: 600; max-width: 34ch; line-height: 1.35; }
.stats--3 .stat { grid-column: span 3; }
.stats--3 { grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: 0; }

/* About: founder facts */
.facts .cell { grid-column: span 4; }
.facts .cell__body { color: var(--text); }

/* About: process */
.steps { position: relative; padding-top: 34px; }
.steps ol { row-gap: 44px; }
.steps__track { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-strong); }
.steps__track i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step { grid-column: span 3; display: grid; gap: 12px; align-content: start; transition: opacity 0.4s; }
.step__num { font-size: clamp(48px, 5.4vw, 88px); font-weight: 700; font-stretch: 112%; line-height: 0.9; letter-spacing: -0.04em; color: var(--muted); transition: color 0.4s; }
.step.is-on .step__num { color: var(--blue); }
.step__title { font-size: var(--t-h3); font-weight: 650; line-height: 1.15; }
.step p { color: var(--muted); }

/* About: toolkit */
.tools .cell { grid-column: span 4; }
.tools .cell__sub { color: var(--ice); }
.tools .chips { margin-block: 4px; }
.tools .chip { min-height: 28px; font-size: 13px; padding: 0 12px; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; font-weight: 600; color: var(--text); transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.filter span { margin-left: 6px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { box-shadow: inset 0 0 0 1px var(--ice); }
.filter[aria-pressed="true"] { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--white); }
.filter[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.82); }
.filter-status { margin-top: 14px; font-size: var(--t-small); color: var(--muted); }
.page-hero__row > .filters-wrap { grid-column: 4 / span 9; }

.project { position: relative; padding-block: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 20px); transition: opacity 0.35s; }
.project.is-out { opacity: 0; }
.project__head { align-items: end; row-gap: 12px; }
.project__title { grid-column: 1 / span 10; font-size: clamp(40px, 6.6vw, 108px); font-weight: 740; font-stretch: 104%; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.project__count { grid-column: 11 / span 2; justify-self: end; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project__count b { color: var(--text); font-weight: 600; }
.project__body { margin-top: clamp(28px, 3vw, 44px); row-gap: 32px; align-items: start; }
.project__media { grid-column: 1 / span 8; display: grid; gap: var(--gap); min-width: 0; }
.project__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.project__pair .img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--panel); }
.project__pair .img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project__info { grid-column: 9 / span 4; display: grid; gap: 22px; align-content: start; min-width: 0; }
.project__status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16); }
.status--soon::before { background: var(--ice); box-shadow: 0 0 0 4px rgba(157, 184, 255, 0.18); }
.project__desc { color: var(--text); line-height: 1.6; }
.scope { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.scope li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.scope li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--blue); }

/* Contact */
.contact-grid { row-gap: 48px; align-items: start; }
.contact-aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 22px; }
.contact-aside__title { font-size: clamp(28px, 2.7vw, 42px); font-weight: 650; line-height: 1.06; letter-spacing: -0.025em; }
.contact-aside > p { color: var(--muted); }
.next { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); counter-reset: n; }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.next li::before { counter-increment: n; content: "0" counter(n); font-size: 15px; font-weight: 700; font-stretch: 112%; color: var(--blue); padding-top: 1px; }
.next b { display: block; font-weight: 600; line-height: 1.3; }
.next span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.email-box { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.email-box small { font-size: var(--t-small); color: var(--muted); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.email-row a { font-size: 20px; font-weight: 650; overflow-wrap: anywhere; user-select: all; }
.copy-btn { min-height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 600; transition: background-color 0.2s; }
.copy-btn:hover { background: var(--deep); }

.form-panel { grid-column: 6 / span 7; position: relative; min-width: 0; padding: clamp(24px, 3.4vw, 52px); background: var(--panel); border-radius: 4px; overflow: hidden; }
.form-panel__mark { right: -12%; top: -10%; width: 50%; opacity: 0.08; rotate: 12deg; }
.form-panel > :not(.watermark) { position: relative; z-index: 1; }
.form-panel__title { font-size: clamp(30px, 3vw, 46px); font-weight: 650; line-height: 1.05; letter-spacing: -0.025em; }
.form-panel .note { margin-top: 10px; font-size: var(--t-small); color: var(--muted); }
.form { margin-top: 30px; display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label { font-size: var(--t-small); font-weight: 600; color: var(--text); }
.field__label .req { color: var(--ice); }
.field__hint { font-size: 13px; color: var(--muted); }
.input, .textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; padding: 15px 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.input::placeholder, .textarea::placeholder { color: #66728b; }
.input:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.28); }
.input:disabled { opacity: 0.45; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field.has-error .input, .field.has-error .textarea { border-color: #ff6b6b; }
.field .err { display: none; font-size: 13.5px; color: #ff8e8e; }
.field.has-error .err { display: block; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.svc-legend { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; }
.svc-count { font-size: 13px; color: var(--ice); font-variant-numeric: tabular-nums; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; font-weight: 500; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; user-select: none; }
.toggle span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); transition: background-color 0.2s, box-shadow 0.2s; }
.toggle:hover span { box-shadow: inset 0 0 0 1px var(--ice); }
.toggle input:checked + span { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--white); }
.toggle input:checked + span::before { background: var(--white); box-shadow: none; }
.toggle input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: 14px 16px; border-radius: 4px; font-size: 15px; line-height: 1.5; }
.form__status.is-error { display: block; background: rgba(255, 107, 107, 0.12); color: #ffb4b4; }
.form-success { display: none; padding-block: clamp(30px, 5vw, 70px); }
.form-success.is-visible { display: grid; gap: 16px; justify-items: start; }
.form-success .mark { width: 54px; color: var(--blue); }
.form-success h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.05; }
.form-success p { color: var(--muted); max-width: 46ch; }

.info { margin-top: clamp(56px, 6vw, 96px); }
.info .cell { grid-column: span 3; }
.info a:hover { color: var(--ice); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .hero__intro { grid-column: 1 / span 5; }
  .showcase { grid-column: 6 / span 7; }
  .row__name { grid-column: 1 / span 7; }
  .row__desc { grid-column: 8 / span 3; }
  .why .cell { grid-column: span 6; }
  .why .cell--badge { grid-column: 1 / -1; grid-row: auto; min-height: 220px; flex-direction: row; align-items: flex-end; }
  .project__media { grid-column: 1 / -1; }
  .project__info { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .project__info > .scope { grid-column: 2; grid-row: 1 / span 3; border-top: 0; padding-top: 0; }
  .contact-aside { grid-column: 1 / span 5; }
  .form-panel { grid-column: 6 / span 7; }
}
@media (max-width: 991px) {
  :root { --header: 64px; }
  .nav__links, .nav .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .guides .grid span:nth-child(n + 7) { display: none; }
  .sec-head__label, .sec-head__title, .sec-head__title--wide, .sec-head__lead { grid-column: 1 / -1; }
  .sec-head__label { padding-top: 0; }
  .sec-head__aside { grid-column: 1 / -1; justify-self: start; }
  .hero__l2 { justify-self: start; }
  .hero__sub { position: static; width: auto; max-width: 24ch; margin-top: 24px; }
  .hero__intro, .showcase { grid-column: 1 / -1; }
  .hero__body { margin-top: 32px; }
  .stat { grid-column: span 3; padding-bottom: 24px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; margin-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .row__link { grid-template-columns: 1fr; row-gap: 8px; }
  .row__name, .row__desc, .row__meta { grid-column: 1; }
  .row__meta { justify-self: start; text-align: left; display: flex; gap: 10px; }
  .row__meta b { display: inline; }
  .statement__quote, .statement__by { grid-column: 1 / -1; }
  .svc__link { grid-template-columns: 1fr; row-gap: 6px; padding-block: 18px; }
  .svc__word, .svc__desc { grid-column: 1; }
  .svc__thumb { display: none; }
  .founder__card { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .tile { grid-column: span 3; }
  .client { grid-column: span 2; }
  .post, .post--feature { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide, .footer__col--links { grid-column: 1 / -1; }
  .page-hero__row > p, .page-hero__row > .page-hero__label, .page-hero__row > .filters-wrap { grid-column: 1 / -1; }
  .who__side, .who__main { grid-column: 1 / -1; }
  .who__side { grid-template-columns: minmax(0, 320px); }
  .stats--3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stats--3 .stat { grid-column: span 2; }
  .stats--3 .stat:nth-child(3) { padding-left: var(--gap); border-left: 1px solid var(--line); margin-left: calc(var(--gap) * -1); border-top: 0; }
  .facts .cell, .tools .cell { grid-column: span 3; }
  .step { grid-column: span 3; }
  .steps { row-gap: 40px; }
  .project__title { grid-column: 1 / -1; }
  .project__count { grid-column: 1 / -1; justify-self: start; order: -1; }
  .project__info { grid-template-columns: 1fr; }
  .project__info > .scope { grid-column: 1; grid-row: auto; border-top: 1px solid var(--line); padding-top: 18px; }
  .contact-aside, .form-panel { grid-column: 1 / -1; }
  .contact-aside { position: static; }
  .info .cell { grid-column: span 3; }
  .cells { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .why .cell { grid-column: span 3; }
}
@media (max-width: 640px) {
  :root { --t-body: 16px; }
  .hero__title { font-size: calc((100vw - 2 * var(--pad)) / 5.35); text-wrap: wrap; }
  .hero__l1 { max-width: 100%; }
  .stat { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; margin-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .stats--3 .stat { grid-column: 1 / -1; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .tile { grid-column: 1 / -1; }
  .tile__img { aspect-ratio: 16 / 10; }
  .client { grid-column: span 3; }
  .facts .cell, .tools .cell, .why .cell, .info .cell { grid-column: 1 / -1; }
  .why .cell--badge { flex-direction: column; align-items: flex-start; gap: 40px; }
  .step { grid-column: 1 / -1; }
  .steps__track { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .minis { grid-template-columns: 1fr; }
  .minis .screen:nth-child(n + 2) { display: none; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .who__side { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}
