/* Hirament site v2. Black, white and grey. Geist + Geist Mono.
   Tokens first; components only ever use tokens. */

:root {
  --bg: #ffffff;
  --panel: #f4f4f4;
  --panel-2: #ececec;
  --text: #0d0d0d;
  --text-2: #3b3b3b;
  --muted: #6f6f6f;
  --faint: #a6a6a6;
  --line: #e4e4e4;
  --line-strong: #cfcfcf;
  --btn-bg: #0d0d0d;
  --btn-fg: #ffffff;
  /* the inverted band */
  --ink: #0b0b0b;
  --ink-panel: #161616;
  --ink-text: #f2f2f2;
  --ink-2: #cfcfcf;
  --ink-muted: #8f8f8f;
  --ink-line: #262626;
  /* device frames */
  --bezel: #0d0d0d;
  --bezel-edge: #2b2b2b;
  --chrome: #f7f7f7; --url-bg: #ffffff;
  --chrome-line: #e3e3e3;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -12px rgba(0,0,0,.18), 0 40px 80px -40px rgba(0,0,0,.22);

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  --pad: 40px;
  --max: 1360px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone.web .screen { --sb: #111a26; --sbt: #fff; }
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b; --panel: #151515; --panel-2: #1d1d1d;
    --text: #f2f2f2; --text-2: #cfcfcf; --muted: #8f8f8f; --faint: #5a5a5a;
    --line: #242424; --line-strong: #333333;
    --btn-bg: #f2f2f2; --btn-fg: #0b0b0b;
    --ink: #161616; --ink-panel: #1e1e1e; --ink-text: #f2f2f2; --ink-2: #cfcfcf; --ink-muted: #8f8f8f; --ink-line: #2c2c2c;
    --bezel: #050505; --bezel-edge: #3a3a3a; --chrome: #1a1a1a; --chrome-line: #2a2a2a; --url-bg: #0f0f0f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 50px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .phone.web .screen { --sb: #111a26; --sbt: #fff; }
:root[data-theme="dark"] {
  --bg: #0b0b0b; --panel: #151515; --panel-2: #1d1d1d;
  --text: #f2f2f2; --text-2: #cfcfcf; --muted: #8f8f8f; --faint: #5a5a5a;
  --line: #242424; --line-strong: #333333;
  --btn-bg: #f2f2f2; --btn-fg: #0b0b0b;
  --ink: #161616; --ink-panel: #1e1e1e; --ink-text: #f2f2f2; --ink-2: #cfcfcf; --ink-muted: #8f8f8f; --ink-line: #2c2c2c;
  --bezel: #050505; --bezel-edge: #3a3a3a; --chrome: #1a1a1a; --chrome-line: #2a2a2a; --url-bg: #0f0f0f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 50px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.mono, .label {
  font-family: var(--mono); font-size: 12px; line-height: 1.4; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.label b { color: var(--text); font-weight: 500; }
.display {
  font-size: clamp(46px, 6.6vw, 104px); line-height: .98; font-weight: 600;
  letter-spacing: -.045em; text-wrap: balance;
}
.h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.body { color: var(--text-2); text-wrap: pretty; }
.two-tone { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.18; font-weight: 500; letter-spacing: -.03em; text-wrap: pretty; }
.two-tone span { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; letter-spacing: -.01em;
  border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover { opacity: .88; }
.btn.secondary { border-color: var(--line-strong); color: var(--text); }
.btn.secondary:hover { border-color: var(--text); }
.btn.small { height: 36px; padding: 0 16px; font-size: 13.5px; }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arrow, a:hover .arrow { transform: translateX(4px); }
.ext::after { content: "\2197"; margin-left: 2px; font-size: .9em; }

.link { text-decoration: none; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.link:hover { border-color: var(--text); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand svg { height: 24px; width: auto; display: block; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu { display: none; }

/* ---------- section scaffolding ---------- */
section { padding: 128px 0; }
.sec-tag { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 64px; }
.sec-head > :first-child { grid-column: 1 / span 7; }
.sec-head > :last-child:not(:first-child) { grid-column: 9 / span 4; }

.ink { background: var(--ink); color: var(--ink-text); --bg: var(--ink); --text: var(--ink-text); --text-2: var(--ink-2); --muted: var(--ink-muted); --line: var(--ink-line); --line-strong: var(--ink-muted); --btn-bg: var(--ink-text); --btn-fg: var(--ink); --panel: var(--ink-panel); }
.ink ::selection { background: var(--ink-text); color: var(--ink); }
.tint { background: var(--panel); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; }
.hero-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.hero-top h1 { grid-column: 1 / span 8; }
.hero-side { grid-column: 9 / span 4; display: grid; gap: 22px; padding-bottom: 10px; }
.tagline { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.hero-side p.body { font-size: 16.5px; }
.hero-rule { margin-bottom: 56px; display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }

.stage {
  position: relative; margin-top: 80px; padding: 72px 6% 72px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 100%;
  background-color: var(--panel);
}
.stage .fig { position: absolute; z-index: 5; top: 14px; }
.stage .fig.tl { left: 16px; }
.stage .fig.tr { right: 16px; }
.stage .d1 { position: relative; width: 62%; z-index: 2; }
.stage .d2 { position: absolute; right: 4%; top: 44px; width: 42%; z-index: 1; }
.stage .d3 { position: absolute; right: 21%; bottom: 44px; width: 15%; z-index: 3; }
.stage-caps { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

/* ---------- device frames ---------- */
.browser { border-radius: 12px; overflow: hidden; background: var(--chrome); border: 1px solid var(--chrome-line); box-shadow: var(--shadow); }
.browser .bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--chrome-line); }
.browser .dots { display: flex; gap: 6px; }
.browser .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser .url { flex: 1; max-width: 320px; margin: 0 auto; height: 20px; border-radius: 6px; background: var(--url-bg); border: 1px solid var(--chrome-line); font: 400 10.5px/18px var(--mono); color: var(--muted); text-align: center; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 8px; }
.browser img { width: 100%; }

.phone {
  position: relative; border-radius: 15.5% / 7.2%; background: var(--bezel); padding: 3.4%;
  box-shadow: 0 0 0 1px var(--bezel-edge), var(--shadow);
}
.phone .screen { border-radius: 12.5% / 5.9%; overflow: hidden; background: #fff; position: relative; }
.phone .screen img { width: 100%; }
/* web screenshots that carry no iPhone status bar get one */
.phone.web .screen { padding-top: 15%; background: var(--sb, #fff); }
.phone.web .screen::before { content: "9:41"; position: absolute; top: 3.2%; left: 11%; font: 600 11px/1 var(--sans); color: var(--sbt, #000); }
.phone.web .screen::after { content: ""; position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 31%; height: 4.2%; border-radius: 999px; background: #000; }
.phone.web.dk .screen { --sb: #0f172a; --sbt: #fff; }

.window { border-radius: 12px; overflow: hidden; border: 1px solid var(--chrome-line); background: var(--bg); box-shadow: var(--shadow); }

/* ---------- capabilities index ---------- */
.caps { counter-reset: cap; border-top: 1px solid var(--line); }
.cap {
  display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: background-color .25s, padding .25s var(--ease);
}
.cap:hover { padding-left: 10px; }
.cap .n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cap h3 { font-size: clamp(26px, 2.7vw, 40px); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.cap p { color: var(--text-2); font-size: 16px; }
.cap .eg { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.caps-foot { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-top: 36px; flex-wrap: wrap; }

/* ---------- work grid (home) ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; }
.work { text-decoration: none; color: inherit; display: grid; gap: 22px; align-content: start; }
.work .plate { position: relative; background: var(--panel); border-radius: 4px; overflow: hidden; display: grid; place-items: center; transition: background-color .3s; }
.work:hover .plate { background: var(--panel-2); }
.work .plate > * { transition: transform .5s var(--ease); }
.work:hover .plate > * { transform: translateY(-6px); }
.work .meta { display: grid; gap: 10px; }
.work .meta .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.work h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; max-width: 26ch; }
.work p { color: var(--text-2); max-width: 54ch; }
.w-a { grid-column: span 8; } .w-a .plate { aspect-ratio: 16 / 10.4; padding: 6% 9% 7% 6%; }
.w-b { grid-column: span 4; } .w-b .plate { aspect-ratio: 8 / 10.4; padding: 7% 0; } .w-b .plate .phone { width: 47%; }
.w-c { grid-column: span 5; } .w-c .plate { aspect-ratio: 10 / 10.4; padding: 0 10%; }
.w-d { grid-column: span 7; } .w-d .plate { aspect-ratio: 14 / 10.4; padding: 7%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; width: 100%; align-items: center; }
.pair .phone:nth-child(2) { transform: translateY(8%); }
.combo { position: relative; width: 100%; }
.combo .phone { position: absolute; right: -6%; top: 24%; width: 17%; }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 96px; border-top: 1px solid var(--line); }
.proof > div { padding: 28px 24px 0 0; display: grid; gap: 10px; }
.proof > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof .big { font-size: clamp(48px, 5.4vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.proof p { color: var(--text-2); font-size: 15.5px; max-width: 34ch; }

.products-strip { margin-top: 96px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; border-top: 1px solid var(--line); padding-top: 28px; }
.products-strip > div:first-child { grid-column: span 4; display: grid; gap: 14px; }
.products-strip ul { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.products-strip li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.products-strip li b { font-weight: 500; }

/* ---------- launch ---------- */
.launch-panel { background: var(--bg); border-radius: 20px; padding: 56px; display: grid; gap: 56px; border: 1px solid var(--line); }
.steps8 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--text); }
.steps8 li { padding: 22px 22px 26px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); position: relative; }
.steps8 li:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.steps8 .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.steps8 h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.steps8 p { font-size: 15px; color: var(--text-2); }
.example { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.example .ex-text { grid-column: span 5; display: grid; gap: 18px; }
.example .ex-list { grid-column: 7 / span 6; }
.ex-list li { display: grid; grid-template-columns: 34px 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ex-list li:first-child { border-top: 1px solid var(--line); }
.ex-list .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.ex-list b { font-weight: 500; }
.ex-list span:last-child { color: var(--text-2); }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process li { border-top: 1px solid var(--text); padding-top: 20px; display: grid; gap: 12px; align-content: start; }
.process h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.process p { color: var(--text-2); font-size: 15.5px; }

/* ---------- studio / about teaser ---------- */
.studio { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.studio > :first-child { grid-column: span 6; display: grid; gap: 24px; }
.studio > :last-child { grid-column: 8 / span 5; }
.facts { border-top: 1px solid var(--line); }
.facts li, .facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts .label { padding-top: 3px; }

/* ---------- contact band ---------- */
.contact { padding: 140px 0 120px; }
.contact .h2 { font-size: clamp(44px, 7vw, 112px); letter-spacing: -.05em; line-height: .96; max-width: 12ch; }
.contact-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; align-items: end; }
.contact-row > :first-child { grid-column: span 6; }
.contact-row > :last-child { grid-column: 8 / span 5; justify-self: end; }
.contact .lead { color: var(--text-2); }

/* ---------- footer ---------- */
.foot { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.foot.ink { border-top-color: var(--ink-line); }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot-grid > :first-child { grid-column: span 5; display: grid; gap: 16px; align-content: start; }
.foot-grid nav { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.foot-grid nav a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.foot-grid nav a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot .brand svg { height: 26px; }
.theme { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.theme button { font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.no-js .theme { display: none; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding: 80px 0 64px; }
.page-head .display { font-size: clamp(46px, 6vw, 92px); max-width: 15ch; }
.page-head .lead { max-width: 60ch; margin-top: 28px; }
.back { display: inline-flex; gap: 8px; text-decoration: none; color: var(--muted); margin-bottom: 40px; }
.back:hover { color: var(--text); }

/* ---------- case page ---------- */
.case-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.case-intro > :first-child { grid-column: span 7; display: grid; gap: 26px; }
.case-intro aside { grid-column: 9 / span 4; }
.factcol { border-top: 1px solid var(--text); }
.factcol > div { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.factcol dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.factcol dd { font-size: 15.5px; line-height: 1.45; }
.factcol dd a { text-underline-offset: 3px; }
.case-cta { display: grid; gap: 10px; margin-top: 24px; justify-items: start; }
.note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.note.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

.screens { padding: 96px 0; }
.screens .strip { display: grid; gap: 24px; align-items: end; }
.strip.phones3 { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 48px; }
.strip.phones2 { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 64px; }
.strip.wide { grid-template-columns: 1fr; max-width: 1180px; margin: 0 auto; }
.strip.mixed { grid-template-columns: minmax(0, 3.4fr) minmax(0, 1fr); align-items: end; gap: 40px; max-width: 1240px; margin: 0 auto; }
figure.shot { display: grid; gap: 14px; }
figure.shot figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.screens .stack { display: grid; gap: 72px; }

.chapters { display: grid; gap: 0; border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.chapter > :first-child { grid-column: span 4; display: grid; gap: 8px; align-content: start; }
.chapter > :last-child { grid-column: 6 / span 7; display: grid; gap: 16px; color: var(--text-2); }
.chapter ul { display: grid; gap: 10px; }
.chapter li { padding-left: 22px; position: relative; }
.chapter li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--muted); }
.chapter b { color: var(--text); font-weight: 500; }

.next-case { display: flex; justify-content: space-between; align-items: center; gap: 24px; text-decoration: none; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-case .h2 { font-size: clamp(30px, 3.4vw, 52px); }
.next-case .arrow { font-size: 40px; }

/* ---------- work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.no-js .filters { display: none; }
.index-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 48px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; align-items: start; }
.index-row .plate { grid-column: span 7; background: var(--panel); border-radius: 4px; display: grid; place-items: center; padding: 7%; overflow: hidden; transition: background-color .3s; }
.index-row:hover .plate { background: var(--panel-2); }
.index-row .txt { grid-column: 9 / span 4; display: grid; gap: 16px; align-content: start; }
.index-row .h3 { font-size: clamp(24px, 2.3vw, 34px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; }
[hidden] { display: none !important; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 24px; }
.product { display: grid; gap: 20px; align-content: start; }
.product .plate { background: var(--panel); border-radius: 4px; aspect-ratio: 16 / 11.5; display: grid; place-items: center; padding: 6%; overflow: hidden; }
.product .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.product .plate > .phone { width: 223px; zoom: .7; }
.product h3 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.product p { color: var(--text-2); max-width: 52ch; }
.product .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- about ---------- */
.essay { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.essay > :first-child { grid-column: span 4; }
.essay > :last-child { grid-column: 6 / span 7; display: grid; gap: 22px; }
.essay .word { font-size: clamp(56px, 7vw, 104px); font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.essay p { color: var(--text-2); font-size: 18px; }
.mark-big svg { width: 120px; height: 120px; display: block; color: var(--text); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principles li { border-top: 1px solid var(--text); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.principles h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.principles p { color: var(--text-2); font-size: 15.5px; }

/* ---------- motion ---------- */
.js .rise { opacity: 0; transform: translateY(12px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .js .rise { opacity: 1; transform: none; } .site-head { position: static; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cap { grid-template-columns: 60px 1fr 1fr; }
  .cap .eg { grid-column: 2 / -1; }
  .steps8 { grid-template-columns: repeat(2, 1fr); }
  .steps8 li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .steps8 li:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  section { padding: 88px 0; }
  .nav, .site-head .btn { display: none; }
  .site-head .wrap { height: 60px; }
  .brand svg { height: 20px; }
  .menu { display: block; margin-left: auto; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease); }
  .menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu nav { position: fixed; left: 0; right: 0; top: 60px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 24px; display: grid; }
  .menu nav a { text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -.03em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu nav .btn { margin-top: 20px; justify-content: center; font-size: 15px; }

  .sec-head, .hero-top, .studio, .example, .case-intro, .chapter, .essay, .contact-row, .foot-grid, .products-strip, .index-row { grid-template-columns: 1fr; }
  .sec-head > *, .hero-top > *, .studio > *, .example > *, .case-intro > *, .chapter > *, .essay > *, .contact-row > *, .foot-grid > *, .products-strip > *, .index-row > * { grid-column: 1 / -1 !important; }
  .sec-head { margin-bottom: 40px; gap: 20px; }
  .hero { padding-top: 40px; }
  .hero-top { gap: 28px; }
  .hero-rule { margin-bottom: 36px; }
  .stage { margin-top: 48px; }
  .hero-rule .label:last-child { display: none; }
  .stage { padding: 48px 5% 40px; }
  .stage .d1 { width: 80%; }
  .stage .d2, .stage .fig.tr { display: none; }
  .stage .d3 { right: 4%; bottom: 24px; width: 26%; }
  .stage-caps { flex-direction: column; gap: 4px; }
  .stage-caps .label:last-child { display: none; }
  .sec-tag > .label:last-child:not(:first-child) { display: none; }
  .cap { grid-template-columns: 44px 1fr; gap: 10px 14px; padding: 24px 0; }
  .cap p, .cap .eg { grid-column: 2; }
  .works { grid-template-columns: 1fr; gap: 56px; }
  .works > * { grid-column: 1 / -1 !important; }
  .w-b .plate, .w-c .plate { aspect-ratio: 1 / 1.05; }
  .w-d .plate { aspect-ratio: 1 / .9; }
  .proof { grid-template-columns: 1fr; margin-top: 64px; }
  .proof > div, .proof > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .products-strip { margin-top: 64px; }
  .products-strip ul { grid-template-columns: 1fr; }
  .launch-panel { padding: 28px 20px; gap: 40px; border-radius: 16px; }
  .steps8 { grid-template-columns: 1fr; }
  .steps8 li, .steps8 li:nth-child(2n) { padding: 18px 0; border-left: 0; }
  .ex-list li { grid-template-columns: 28px 1fr; }
  .ex-list li span:last-child { grid-column: 2; }
  .process, .principles { grid-template-columns: 1fr; gap: 32px; }
  .contact { padding: 96px 0 88px; }
  .contact-row > :last-child { justify-self: start; }
  .foot-grid { gap: 32px; }
  .foot-grid nav { grid-column: auto !important; }
  .foot-bottom { margin-top: 40px; }
  .page-head { padding: 48px 0 40px; }
  .strip.phones3 { grid-template-columns: 1fr; gap: 56px; justify-items: center; }
  .strip.phones3 > *, .strip.phones2 > * { width: 78%; }
  .strip.phones2 { grid-template-columns: 1fr; gap: 56px; justify-items: center; }
  .strip.mixed { grid-template-columns: 1fr; gap: 48px; }
  .strip.mixed > :last-child { width: 70%; justify-self: center; }
  .screens { padding: 64px 0; }
  .screens .stack { gap: 56px; }
  .chapter { padding: 32px 0; gap: 14px; }
  .next-case .arrow { font-size: 28px; }
  .index-row { padding: 36px 0; gap: 20px; }
  .products { grid-template-columns: 1fr; gap: 64px; }
  .product .plate { aspect-ratio: 1 / .9; padding: 6%; }
  .product .plate:has(> .phone) { aspect-ratio: 1 / 1.15; }
  .product .plate > .phone { zoom: .66; }
  .facts li, .facts > div { grid-template-columns: 110px 1fr; }
  .browser .bar { height: 24px; padding: 0 8px; }
  .browser .dots i { width: 6px; height: 6px; }
  .browser .url { height: 15px; font-size: 8px; line-height: 13px; }
}

/* ---------- VESIS SWITCH ----------
   Vesis is shown. To hide it everywhere (home strip and work page) in one edit,
   remove the comment markers around the rule on the next line. */
/* .flag-vesis { display: none !important; } */
