/* ===== Fonts (self-hosted, OFL) ===== */
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-VariableFont_wght.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --bg: #121212;
  --bg-2: #1a1a1a;
  --ink: #ece1cb;
  --ink-2: rgba(236, 225, 203, .62);
  --line: rgba(236, 225, 203, .16);
  --wine: #6b1b26;
  --dark: #121212;
  --m: clamp(16px, 2.6vw, 44px);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Onest", system-ui, sans-serif;
  --s-small: clamp(.8125rem, .78rem + .15vw, .9375rem);
  --s-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --s-lead: clamp(1.25rem, 1rem + 1.1vw, 2.125rem);
  --s-head: clamp(3.25rem, 1.5rem + 7.4vw, 9.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--dark); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: var(--m); }

/* ===== Loader ===== */
.loader { display: none; }
.js .loader {
  display: flex; position: fixed; inset: 0; z-index: 100; background: var(--bg);
  justify-content: space-between; align-items: flex-end; padding: var(--m);
}
.loader__line { font-size: var(--s-small); color: var(--ink-2); align-self: flex-start; }
.loader__num { font: 700 clamp(6rem, 22vw, 22rem)/.8 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ===== Cursor & grain ===== */
.cursor { display: none; }
@media (pointer: fine) {
  .js .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 90;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--ink); mix-blend-mode: difference; pointer-events: none;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
  }
  .js .cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; }
  .cursor__label { font: 500 13px/1.1 var(--text); color: var(--dark); opacity: 0; text-align: center; padding: 6px; transition: opacity .2s; }
  .cursor.is-big .cursor__label { opacity: 1; }
}
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{background-position:0 0} 25%{background-position:-40px 30px} 50%{background-position:30px -50px} 75%{background-position:-30px -30px} 100%{background-position:0 0} }

/* ===== Bar ===== */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px var(--m); color: var(--ink);
  transition: background-color .4s, padding .4s;
}
.bar.is-solid { background: rgba(18, 18, 18, .92); padding-block: 12px; }
.bar__mark { font: 700 22px/1 var(--display); letter-spacing: .02em; display: inline-block; }
.bar__nav { display: flex; gap: clamp(16px, 2.4vw, 40px); font-size: var(--s-small); }
.bar__nav a, .bar__cta { position: relative; }
.bar__nav a::after, .bar__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.bar__nav a:hover::after, .bar__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.bar__right { display: flex; align-items: center; gap: 20px; font-size: var(--s-small); }
.lang { display: flex; gap: 2px; }
.lang button { padding: 6px 8px; font-size: 13px; opacity: .5; transition: opacity .2s; }
.lang button[aria-pressed="true"] { opacity: 1; }
.bar__cta { display: inline-block; }
.snd { display: inline-flex; align-items: flex-end; gap: 3px; height: 32px; padding: 8px 6px; }
.snd span { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; transform: scaleY(.25); transition: transform .3s; }
.snd.is-on span { animation: eq 1s ease-in-out infinite alternate; }
.snd.is-on span:nth-child(2) { animation-delay: -.4s; }
.snd.is-on span:nth-child(3) { animation-delay: -.7s; }
.snd.is-on span:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }

/* ===== Hero ===== */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.hero__stage { position: absolute; inset: 0; }
.hero__word {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 1;
  display: flex; justify-content: center; flex-wrap: nowrap;
  font: 700 var(--hero-size, 17vw)/.84 var(--display); letter-spacing: -.005em; text-transform: uppercase;
  transform: translateY(-46%) scaleY(var(--sy, 1.32)); transform-origin: 50% 50%;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.hero__word span { display: inline-block; will-change: transform; }
.hero__word--fill { color: var(--ink); }
.hero__word--line { z-index: 3; color: transparent; -webkit-text-stroke: max(1.5px, .12vw) var(--ink); }
.hero__person {
  position: absolute; z-index: 2; left: 50%; bottom: 0; height: 90%; aspect-ratio: 1280 / 1173;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hero__person img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.corner { position: absolute; z-index: 4; font-size: var(--s-body); line-height: 1.3; }
.corner--tl { top: calc(var(--m) + 64px); left: var(--m); }
.corner--tr { top: calc(var(--m) + 64px); right: var(--m); }
.corner--bl { bottom: var(--m); left: var(--m); }
.corner--br { bottom: var(--m); right: var(--m); text-align: right; }
.hero__arrow svg { transition: transform .5s var(--ease); }
.hero__arrow:hover svg { transform: translateX(10px); }

/* ===== Manifesto ===== */
.manifesto { padding-block: clamp(120px, 18vw, 240px) clamp(100px, 14vw, 200px); }
.manifesto__title { font: 700 var(--s-head)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; max-width: 14ch; }
.manifesto__text {
  margin-top: clamp(40px, 6vw, 96px); margin-left: auto; max-width: 30ch;
  font: 500 var(--s-lead)/1.3 var(--text); letter-spacing: -.01em;
}
.scrub .w { opacity: .18; transition: none; }
html:not(.js) .scrub .w { opacity: 1; }

/* ===== iPhone compare (manifesto) ===== */
.manifesto__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; margin-top: clamp(40px, 6vw, 96px); }
.manifesto__row .manifesto__text {
  margin: 0; max-width: 22ch; justify-self: start;
  font: 500 clamp(1.625rem, 1rem + 2.1vw, 3.25rem)/1.18 var(--text); letter-spacing: -.02em;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.phonebox { justify-self: center; --w: clamp(240px, 21vw, 310px); width: var(--w); }

/* hardware: titanium frame, black bezel, side buttons */
.iphone {
  position: relative; width: var(--w); aspect-ratio: 71.6 / 146.6; border-radius: calc(var(--w) * .17);
  padding: calc(var(--w) * .035);
  background: linear-gradient(135deg, #9d9da2 0%, #e6e6e8 18%, #8b8b90 40%, #d9d9dc 62%, #7c7c81 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 80px rgba(0, 0, 0, .55), 0 12px 24px rgba(0, 0, 0, .35);
}
.iphone::before { content: ""; position: absolute; inset: calc(var(--w) * .012); border-radius: calc(var(--w) * .158); background: #050505; }
.iphone__btn { position: absolute; width: calc(var(--w) * .014); border-radius: 2px; background: linear-gradient(90deg, #6e6e73, #c7c7cc); }
.iphone__btn--action { left: calc(var(--w) * -.012); top: 18%; height: 5%; }
.iphone__btn--up { left: calc(var(--w) * -.012); top: 27%; height: 9%; }
.iphone__btn--down { left: calc(var(--w) * -.012); top: 38.5%; height: 9%; }
.iphone__btn--power { right: calc(var(--w) * -.012); top: 30%; height: 14%; background: linear-gradient(270deg, #6e6e73, #c7c7cc); }

/* the screen */
.cmp {
  position: relative; z-index: 1; width: 100%; height: 100%; container-type: inline-size; border-radius: calc(var(--w) * .135); overflow: hidden;
  background: #000; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; --x: 50%;
  isolation: isolate;
}
.cmp__pane { position: absolute; inset: 0; }
.cmp__new { clip-path: inset(0 0 0 var(--x)); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .9); pointer-events: none; z-index: 6; box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.cmp__knob {
  position: absolute; top: 50%; left: 50%; width: 15cqw; height: 15cqw; margin: -7.5cqw 0 0 -7.5cqw; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #111; font: 700 5.5cqw/1 var(--display);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: scale .3s var(--ease);
}
.cmp.is-drag .cmp__knob, .cmp:hover .cmp__knob { scale: 1.12; }
.cmp__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cmp:has(.cmp__range:focus-visible) .cmp__knob { outline: 3px solid var(--ink); outline-offset: 3px; }
.phonebox__cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 30px; font-size: var(--s-small); color: var(--ink-2); }
.phonebox__cap span { transition: opacity .3s; }

/* iOS home screen */
.ios { position: absolute; inset: 0; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Onest", system-ui, sans-serif; }
.ios__wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ios__island { position: absolute; z-index: 5; top: 3.2cqw; left: 50%; width: 31cqw; height: 9cqw; margin-left: -15.5cqw; border-radius: 99px; background: #000; }
.ios__home { position: absolute; z-index: 5; bottom: 2.2cqw; left: 50%; width: 36cqw; height: 1.4cqw; margin-left: -18cqw; border-radius: 99px; background: rgba(255, 255, 255, .85); }
.ios__status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 15cqw; padding: 2cqw 8cqw 0 11cqw; font-size: 4.6cqw; font-weight: 600; letter-spacing: -.01em; }
.ios__sys { display: flex; align-items: center; gap: 1.5cqw; }
.ios__sys svg { height: 3.4cqw; width: auto; fill: currentColor; }
.ios__sys svg:last-child { height: 3.9cqw; }
.ios__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 4.4cqw; padding: 4cqw 5.5cqw 0; }
.app { display: grid; justify-items: center; gap: 1.4cqw; }
.app b {
  width: 16.5cqw; aspect-ratio: 1; border-radius: 22.5%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--a), var(--b));
  box-shadow: inset 0 .4cqw .6cqw rgba(255, 255, 255, .25), 0 .6cqw 1.6cqw rgba(0, 0, 0, .18);
}
.app b svg { width: 52%; height: 52%; }
.app small { font-size: 2.85cqw; font-weight: 500; letter-spacing: .01em; white-space: nowrap; text-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .45); }
.ios__grid--crowd { grid-template-columns: repeat(8, 1fr); row-gap: 2.6cqw; padding: 2.5cqw 3cqw 0; }
.ios__grid--crowd .app b { width: 9.6cqw; border-radius: 24%; box-shadow: inset 0 .25cqw .4cqw rgba(255, 255, 255, .25); }
.ios__grid--crowd .app b svg { width: 56%; height: 56%; stroke-width: 2.4; }
.ios__dots { position: absolute; left: 0; right: 0; bottom: 31cqw; display: flex; justify-content: center; gap: 1.8cqw; }
.ios__dots i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.ios__dots i.on { background: #fff; }
.ios__search {
  position: absolute; left: 50%; bottom: 29cqw; transform: translateX(-50%); display: flex; align-items: center; gap: 1.6cqw;
  padding: 1.8cqw 4.4cqw; border-radius: 99px; font-size: 3.6cqw; font-weight: 600;
  background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.ios__search svg { width: 3.8cqw; height: 3.8cqw; }
.ios__dock {
  position: absolute; left: 3.6cqw; right: 3.6cqw; bottom: 6.5cqw; height: 22.5cqw; border-radius: 10cqw;
  display: flex; justify-content: space-around; align-items: center; padding: 0 2.5cqw;
  background: rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
@media (prefers-reduced-transparency: reduce) { .ios__dock, .ios__search { background: rgba(60, 60, 67, .9); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 900px) {
  .manifesto__row { grid-template-columns: 1fr; }
  .phonebox { order: 2; --w: min(66vw, 270px); }
  .manifesto__row .manifesto__text { max-width: 20ch; }
}

/* ===== Band ===== */
.band { background: var(--wine); padding-block: clamp(28px, 4vw, 56px); overflow: hidden; }
.band__track { display: flex; width: max-content; }
.band__row {
  display: flex; align-items: center; gap: .35em; padding-right: .35em; white-space: nowrap;
  font: 700 clamp(4rem, 12vw, 12rem)/.95 var(--display); text-transform: uppercase;
}
.band__row i { font-style: normal; font-size: .4em; }
.band__row .o { color: transparent; -webkit-text-stroke: max(1.5px, .1vw) var(--ink); }

/* ===== Stats ===== */
.stats { padding-block: clamp(110px, 14vw, 200px); }
.stats__title { font: 500 var(--s-lead)/1.2 var(--text); color: var(--ink-2); margin-bottom: clamp(32px, 5vw, 72px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.stat dt { font: 700 clamp(4.5rem, 10vw, 10rem)/.9 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat dd { margin-top: 14px; max-width: 22ch; color: var(--ink-2); }

/* ===== Work (rows with round logos) ===== */
.work { padding-block: clamp(110px, 13vw, 200px) clamp(80px, 10vw, 140px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.work__title { font: 700 var(--s-head)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.work__hint { color: var(--ink-2); }
.proj { counter-reset: none; }
.row {
  position: relative; display: grid; grid-template-columns: clamp(64px, 7vw, 104px) minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(16px, 2.4vw, 40px); align-items: center; padding-block: clamp(16px, 1.8vw, 26px);
  border-top: 1px solid var(--line); transition: opacity .4s var(--ease);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; }
.proj { position: relative; z-index: 0; }
.row__logo { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.row__name { font: 600 clamp(1.75rem, 1rem + 2.4vw, 3.5rem)/1 var(--display); text-transform: uppercase; transition: translate .5s var(--ease), color .3s; }
.row__kind { margin-top: 6px; font-size: var(--s-small); color: var(--ink-2); transition: color .3s; }
.row__text { color: var(--ink-2); font-size: var(--s-small); line-height: 1.55; max-width: 52ch; transition: color .3s; }
.row__link { justify-self: end; font-size: var(--s-small); white-space: nowrap; transition: color .3s; }
.row__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .proj:hover .row { opacity: .45; }
  .proj .row:hover { opacity: 1; }
  .row:hover::before { transform: scaleY(1); transform-origin: top; }
  .row:hover .row__name, .row:hover .row__kind, .row:hover .row__text, .row:hover .row__link { color: var(--dark); }
  .row:hover .row__name { translate: 10px 0; }
}

/* ===== Pit (physics) ===== */
.pit { position: relative; height: min(92svh, 860px); min-height: 520px; background: var(--bg-2); overflow: hidden; }
.pit__title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; pointer-events: none;
  font: 700 clamp(3rem, 10.5vw, 12rem)/.9 var(--display); text-transform: uppercase; color: transparent;
  -webkit-text-stroke: max(1.5px, .1vw) var(--ink-2); padding-inline: var(--m);
}
.pit__hint { position: absolute; top: var(--m); left: var(--m); font-size: var(--s-small); color: var(--ink-2); z-index: 2; }
.pit__box { position: absolute; inset: 0; touch-action: pan-y; }
.ball { width: clamp(76px, 9vw, 150px); aspect-ratio: 1; border-radius: 50%; display: inline-block; margin: 6px; user-select: none; -webkit-user-drag: none; }
.pit__box { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; padding: 90px var(--m) var(--m); }
.pit.is-live .pit__box { display: block; padding: 0; }
.pit.is-live .ball { position: absolute; left: 0; top: 0; margin: 0; cursor: grab; touch-action: none; will-change: transform; }
.pit.is-live .ball:active { cursor: grabbing; }

/* ===== Results ===== */
.results { padding-block: clamp(120px, 14vw, 220px); }
.results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 80px); }
.results__title { font: 700 var(--s-head)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; max-width: 12ch; }
.results__lead { color: var(--ink-2); max-width: 30ch; }
.res { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
.res__card.res__card--wide { grid-column: 1 / -1; background: var(--wine); }
.res__card--wide .res__when, .res__card--wide dd { color: rgba(236, 225, 203, .78); }
.res__card--wide dl { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.res__when { margin-top: 6px; font-size: var(--s-small); color: var(--ink-2); }
@media (max-width: 900px) { .res__card--wide dl { grid-template-columns: 1fr 1fr; } }
.res__card { background: var(--bg-2); padding: clamp(24px, 2.6vw, 40px); border-radius: 28px; }
.res__logo { width: 72px; height: 72px; border-radius: 50%; }
.res__card h3 { margin-top: 18px; font: 600 clamp(1.5rem, 1.1rem + 1vw, 2.25rem)/1 var(--display); text-transform: uppercase; }
.res__card dl { margin-top: 20px; display: grid; gap: 18px; }
.res__card dt { font: 700 clamp(2.5rem, 1.6rem + 2.6vw, 4.5rem)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.res__card dd { color: var(--ink-2); font-size: var(--s-small); margin-top: 2px; }

/* ===== Services ===== */
.services { position: relative; padding-block: clamp(120px, 14vw, 220px) clamp(80px, 10vw, 160px); }
.services__title { font: 700 var(--s-head)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: clamp(32px, 5vw, 80px); }
.svc__row {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px;
  padding-block: clamp(18px, 2vw, 30px); border-top: 1px solid var(--line);
  transition: opacity .4s var(--ease);
}
.svc__row:last-child { border-bottom: 1px solid var(--line); }
.svc__row h3 { font: 600 clamp(2.25rem, 1rem + 4.2vw, 5.5rem)/1 var(--display); text-transform: uppercase; transition: transform .6s var(--ease); }
.svc__row p { color: var(--ink-2); max-width: 36ch; justify-self: end; text-align: right; }
.svc:hover .svc__row { opacity: .35; }
.svc .svc__row:hover { opacity: 1; }
.svc__row:hover h3 { transform: translateX(clamp(10px, 2vw, 32px)); }
/* ===== Stack ===== */
.stack { overflow: hidden; padding-block: clamp(30px, 4vw, 60px); background: var(--bg-2); }
.stack__track { display: flex; width: max-content; }
.stack__row { white-space: nowrap; font: 600 clamp(2rem, 5vw, 5rem)/1 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--ink-2); padding-right: .4em; }

/* ===== About (inverted) ===== */
.about { background: var(--ink); color: var(--dark); }
.about__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); padding-block: clamp(120px, 13vw, 200px); align-items: start; }
.about__pic { position: sticky; top: 110px; aspect-ratio: 1; border-radius: 50%; }
.about__pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about__title { font: 700 var(--s-head)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.about__lead { margin-top: clamp(28px, 3vw, 48px); font: 500 var(--s-lead)/1.3 var(--text); letter-spacing: -.01em; max-width: 30ch; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(48px, 6vw, 96px); }
.about__cols h3 { font: 600 clamp(1.5rem, 1.1rem + 1vw, 2.25rem)/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.about__cols h3:not(:first-child) { margin-top: 36px; }
.about__cols ul:not(.tags) li { padding-block: 10px; border-bottom: 1px solid rgba(18, 18, 18, .16); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 20px; border-radius: 999px; background: var(--dark); color: var(--ink); font-weight: 500; }

/* ===== CV ===== */
.cv { padding-block: clamp(120px, 14vw, 220px); }
.cv__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 96px); }
.cv__title { font: 700 var(--s-head)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.cv__dl { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--dark); font-weight: 500; transition: background .3s, color .3s;
}
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--dark); }
.cv__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); }
.tl__h { font: 600 clamp(1.5rem, 1.1rem + 1vw, 2.25rem)/1 var(--display); text-transform: uppercase; margin-bottom: 24px; }
.tl__list { position: relative; padding-left: 28px; }
.tl__list::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl__list::after { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 1)); }
.tl__list li { position: relative; padding-bottom: 36px; }
.tl__list li::before { content: ""; position: absolute; left: -28px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tl__when { font-size: var(--s-small); color: var(--ink-2); }
.tl__what { margin-top: 4px; font: 600 clamp(1.375rem, 1rem + 1vw, 2rem)/1.15 var(--display); text-transform: uppercase; }
.tl__note { margin-top: 8px; color: var(--ink-2); max-width: 44ch; }

/* ===== Contact ===== */
.contact { background: var(--wine); }
.contact__inner { padding-block: clamp(120px, 14vw, 220px) clamp(90px, 10vw, 140px); display: grid; grid-template-columns: 1fr auto; gap: 40px 48px; align-items: end; }
.contact__title { grid-column: 1 / -1; font: 700 clamp(2.75rem, 12.4vw, 13rem)/.88 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.contact__lead { font: 500 var(--s-lead)/1.3 var(--text); max-width: 24ch; }
.contact__big {
  display: grid; place-items: center; width: clamp(160px, 16vw, 240px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--dark); font-weight: 600; text-align: center; padding: 20px; line-height: 1.2;
  transition: scale .5s var(--ease);
}
.contact__big:hover { scale: 1.06; }
.contact__links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(24px, 4vw, 64px); }
.contact__links li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(236, 225, 203, .3); }
.contact__links span { font-size: var(--s-small); color: var(--ink-2); }
.contact__links a { font: 600 clamp(1.125rem, .9rem + .7vw, 1.625rem)/1.2 var(--display); }
.contact__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Footer ===== */
.foot { position: relative; overflow: hidden; background: var(--bg); padding-top: 28px; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--s-small); color: var(--ink-2); flex-wrap: wrap; }
.foot__row a:hover { color: var(--ink); }
.foot__word {
  font: 700 var(--foot-size, 17.6vw)/.8 var(--display); text-transform: uppercase; letter-spacing: -.005em; white-space: nowrap; text-align: center;
  margin-top: 4vw; margin-bottom: -2vw; user-select: none;
}

/* ===== Motion helpers ===== */
.split .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.split .ln > span { display: inline-block; will-change: transform; }

/* ===== Tablet / phone ===== */
@media (max-width: 900px) {
  .bar__nav { display: none; }
  .hero__word .br { display: none; }
  .hero__word { --sy: 1.55; }
  .hero__person { height: 64%; }
  .corner--tl, .corner--tr { top: calc(var(--m) + 54px); }
  .corner { font-size: 14px; }
  .corner--bl, .corner--br { max-width: 46%; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .row { grid-template-columns: 64px 1fr; row-gap: 10px; }
  .row__text { grid-column: 1 / -1; }
  .row__link { grid-column: 1 / -1; justify-self: start; }
  .row__link:empty { display: none; }
  .res { grid-template-columns: 1fr; }
  .svc__row { grid-template-columns: 1fr; gap: 8px; }
  .svc__row p { justify-self: start; text-align: left; }
  .about__inner { grid-template-columns: 1fr; }
  .about__pic { position: relative; top: 0; width: min(78vw, 360px); }
  .about__cols { grid-template-columns: 1fr; }
  .cv__cols { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__links { grid-template-columns: 1fr 1fr; }
}
.hero__word .br { display: none; }
@media (max-width: 520px) {
  .contact__links { grid-template-columns: 1fr; }
  .ball { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  * { transition-duration: .01ms !important; }
}
