/* ---------- Fonts (self-hosted Nunito Sans) ---------- */
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 200; font-display: swap; src: url("fonts/nunito-sans-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/nunito-sans-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/nunito-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/nunito-sans-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/nunito-sans-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/nunito-sans-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/nunito-sans-latin-900-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #141414;
  --ink-2: #111111;
  --body: #2a2a2a;
  --gray: #6b6b6b;
  --line: #e4e4e4;
  --rule: #6b6b6b;
  --violet: #9b6bff;
  --bg: #ffffff;
  --max: 1200px;
  --gutter: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }

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

/* ---------- Icons ---------- */
.ico { display: inline-block; flex: none; }
.ico-up { width: 16px; height: 16px; }
.ico-right { width: 24px; height: 24px; }

/* ---------- Nav ---------- */
.nav .wrap { height: 120px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 32px; font-style: italic; line-height: 1; white-space: nowrap; }
.logo .im { font-weight: 200; letter-spacing: -0.07em; }
.logo .gc { font-weight: 900; letter-spacing: -0.02em; }
.links { display: flex; align-items: center; gap: 20px; font-size: 16px; }
.links a, .contacts a { display: inline-flex; align-items: center; gap: 2px; position: relative; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.links a:hover::after, .links a:focus-visible::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 48px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--ink);
  font-size: 14px; font-weight: 800; letter-spacing: 0.02em;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-secondary { color: var(--ink-2); letter-spacing: 0; }
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--violet); text-transform: uppercase; }
.overline { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--gray); text-transform: uppercase; }
.meta-k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--gray); text-transform: uppercase; }
.meta-v { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Home: hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 536px) minmax(0, 586px);
  justify-content: space-between; align-items: center; gap: 48px;
  padding-top: 60px; padding-bottom: 60px;
}
.hello { display: block; font-size: 56px; font-style: italic; font-weight: 300; letter-spacing: -0.06em; line-height: 1.36; }
.title { margin: 0; font-style: italic; }
.title .big { display: block; font-size: 128px; line-height: 102px; letter-spacing: -0.05em; font-weight: 900; }
.title .im { font-weight: 200; letter-spacing: -0.13em; margin-right: 0.12em; }
.desc { margin-top: 24px; font-size: 20px; line-height: 32px; }
.hero .ctas { margin-top: 40px; }

/* ---------- Home: featured work ---------- */
.featured .wrap { padding-top: 60px; padding-bottom: 60px; }
.featured .overline { margin-bottom: 24px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 590px) minmax(0, 586px); justify-content: space-between;
  gap: 24px; margin-top: 60px; align-items: start;
}
.feature h2 { margin: 16px 0 0; font-size: 40px; line-height: 46px; font-weight: 800; }
.feature .summary { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--gray); }
.feature .meta { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.feature .btn { margin-top: 40px; }
.feature-img { border-radius: 6px; overflow: hidden; transition: transform .3s ease; }
.feature-img:hover { transform: translateY(-4px); }

/* ---------- Footer ---------- */
.footer .wrap { padding-top: 0; padding-bottom: 60px; }
.footer.no-rule .wrap { padding-top: 60px; }
.footer .rule { margin-bottom: 60px; }
.footer h2 { margin: 0; font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.36; }
.contacts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 16px; font-size: 16px; color: var(--ink-2); }
.contacts a { border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.contacts a:hover { border-color: currentColor; }

/* ---------- Case page ---------- */
.case-hero .wrap { padding-top: 60px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 40px; }
.case-hero .eyebrow { font-size: 12px; }
.case-title { margin: 0; font-size: 120px; line-height: 108px; font-weight: 900; font-style: italic; letter-spacing: -0.04em; }
.lead { font-size: 24px; line-height: 36px; color: var(--body); max-width: 760px; }

.case-meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.case-meta div { display: flex; flex-direction: column; gap: 6px; }
.case-meta .v { font-size: 16px; line-height: 23px; font-weight: 700; color: var(--ink-2); }

.figure { padding-top: 60px; padding-bottom: 60px; }
.figure img, .figure video, .pair img { width: 100%; border-radius: 6px; }

.row { display: grid; grid-template-columns: var(--label, 384px) minmax(0, 1fr); gap: 24px; padding-top: 60px; padding-bottom: 60px; }
.row.narrow { --label: 282px; }
.label { display: flex; flex-direction: column; gap: 8px; }
.num { font-size: 13px; font-weight: 900; color: var(--violet); letter-spacing: -0.02em; }
.label h2 { margin: 0; font-size: 32px; line-height: 34px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.body { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 28px; }
.body.loose { gap: 20px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 60px; padding-bottom: 60px; }
.stat { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.stat strong { font-size: 40px; line-height: 48px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; }
.stat span { font-size: 16px; line-height: 24px; color: var(--gray); }

.research { display: flex; flex-direction: column; gap: 60px; }
.pull { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; font-style: italic; letter-spacing: -0.02em; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quotes figure { margin: 0; border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.quotes blockquote { margin: 0; font-size: 17px; line-height: 26px; font-style: italic; font-weight: 500; }
.quotes figcaption { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--gray); }

.decision-1 { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 24px; }
.big-num { font-size: 96px; line-height: 90px; font-weight: 900; font-style: italic; color: var(--violet); letter-spacing: -0.04em; text-align: right; }
.decision h3 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.01em; }
.decision .body { padding-top: 8px; }
.decision-1 .body { padding-top: 0; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.pair figcaption { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--gray); }
.pair-wrap { padding-top: 60px; padding-bottom: 60px; }
.pair-wrap.tight { padding-top: 0; }
.video-wrap { padding-top: 24px; padding-bottom: 60px; }

.next .wrap { padding-top: 60px; padding-bottom: 60px; }
.next-card { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 40px 0; display: flex; flex-direction: column; gap: 12px; }
.next-card strong { font-size: 48px; line-height: 60px; font-weight: 900; font-style: italic; letter-spacing: -0.03em; color: var(--gray); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .title .big { font-size: 104px; line-height: 86px; }
  .case-meta { padding: 24px 0; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .hero .visual { order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .feature { grid-template-columns: 1fr; margin-top: 40px; }
  .feature-img { order: -1; }
  .row, .row.narrow { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; padding-bottom: 32px; }
  .row.decision .big-num { text-align: left; }
  .case-title { font-size: 88px; line-height: 82px; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .quotes { grid-template-columns: 1fr; }
  .figure, .pair-wrap { padding-top: 32px; padding-bottom: 32px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav .wrap { height: 80px; }
  .logo { font-size: 26px; }
  .links { gap: 14px; font-size: 14px; }
  .links .hide-sm { display: none; }
  .hello { font-size: 40px; }
  .title .big { font-size: 64px; line-height: 56px; }
  .desc { font-size: 18px; line-height: 28px; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .feature h2 { font-size: 32px; line-height: 38px; }
  .footer h2 { font-size: 44px; }
  .case-title { font-size: 60px; line-height: 58px; }
  .lead { font-size: 20px; line-height: 30px; }
  .label h2 { font-size: 28px; line-height: 32px; }
  .pull { font-size: 24px; line-height: 32px; }
  .pair { grid-template-columns: 1fr; }
  .decision-1 { grid-template-columns: 1fr; gap: 8px; }
  .decision-1 .big-num { text-align: left; }
  .big-num { font-size: 72px; line-height: 70px; }
  .next-card strong { font-size: 34px; line-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.video-wrap video { display: block; width: 100%; height: auto; border-radius: 6px; background: #0b1f3a; }
