/* =========================================================
   ALXO · shared styles for the inner pages (About, Projects, case studies).
   Same tokens, type, nav, cursor and footer as option-c.html.
   ========================================================= */
:root {
  --ink: #000; --ink-2: #111; --ink-3: #1c1c1c;
  --paper: #f5f0e8;
  --grey: #c8c8c8; --grey-2: #7a7a7a; --grey-3: #333;
  --line: rgba(245, 240, 232, .16); --line-strong: rgba(245, 240, 232, .6);
  --serif: "Libre Caslon Condensed", Georgia, serif;
  --sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --num: "Darker Grotesque", "Urbanist", sans-serif;
  --g: clamp(20px, 3.2vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--paper); color: var(--ink); }

.paper { background: var(--paper); color: var(--ink); --line: rgba(0,0,0,.14); --line-strong: rgba(0,0,0,.7); }
.wrap { padding-left: var(--g) !important; padding-right: var(--g) !important; }
.kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.muted { color: var(--grey-2); }
.paper .muted { color: #6b6660; }

.section-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.section-head h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; }
.section-head > :last-child { text-align: right; }
.h-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 8vw, 136px); line-height: .9; letter-spacing: -.025em; }
.h-xl em { font-style: italic; color: var(--grey-2); }
.h-l { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 76px); line-height: .98; letter-spacing: -.02em; }
.h-l em { font-style: italic; color: var(--grey-2); }
.paper .h-xl em, .paper .h-l em { color: #8a847c; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .16em .28em; margin: -.12em -.16em -.28em; }
.split .w > span { display: inline-block; transform: translateY(150%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.split.in .w > span { transform: none; }
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.2s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

/* Pills and arrows */
.pill { position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--paper); font-size: 15px; font-weight: 500; transition: color .45s var(--ease-out); }
.pill::before { content: ""; position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease-out); z-index: -1; }
.pill:hover { color: var(--ink); }
.pill:hover::before { transform: translate(-50%, -50%) scale(1); }
.pill.solid { background: var(--paper); color: var(--ink); }
.pill.solid::before { background: #2b2b2b; }
.pill.solid:hover { color: var(--paper); }
.paper .pill { border-color: var(--ink); }
.paper .pill::before { background: var(--ink); }
.paper .pill:hover { color: var(--paper); }
.paper .pill.solid { background: var(--ink); color: var(--paper); }
.paper .pill.solid::before { background: #3a3a3a; }
.ar { display: inline-block; width: 1em; height: 1em; vertical-align: -.13em; background: currentColor; -webkit-mask: url("arrow.svg") center / contain no-repeat; mask: url("arrow.svg") center / contain no-repeat; }
.ar.ne { rotate: -45deg; }
.ar.se { rotate: 45deg; }
.ar.w { rotate: 180deg; }
.pill .ar { width: 1.15em; height: 1.15em; vertical-align: -.22em; }
.pill .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.pill:hover .arr { transform: translateX(4px) rotate(-45deg); }
.tlink { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); }
.tlink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Top strip and floating nav */
.strip { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); }
.nav { position: sticky; top: 14px; z-index: 50; width: fit-content; margin: 22px auto 0; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(20,20,20,.72); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .mini { display: grid; place-items: center; width: 74px; margin: 0 4px 0 8px; }
.nav .mini img { height: 15px; width: auto; }
.nav a.l { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; transition: color .35s; isolation: isolate; }
.nav a.l::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--paper); transform: scale(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; z-index: -1; }
.nav a.l:hover, .nav a.l.on { color: var(--ink); }
.nav a.l:hover::before, .nav a.l.on::before { transform: none; opacity: 1; }
.nav .pill { padding: 9px 18px; font-size: 14px; }

/* Page title block shared by the inner pages */
.page-top { padding-top: clamp(40px, 6vw, 90px); }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; color: var(--grey-2); }
.crumbs a:hover { color: var(--paper); }

/* Stats (count up) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stats div { padding: 22px 20px 6px 0; }
.stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--num); font-weight: 600; font-size: clamp(60px, 7vw, 116px); line-height: .85; letter-spacing: -.02em; }
.stats span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-2); }

/* Contact band at the bottom of every inner page */
.ask { padding: clamp(70px, 8vw, 130px) 0 clamp(50px, 6vw, 90px); }
.ask-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(30px, 5vw, 90px); align-items: end; margin-top: 44px; }
.ask .intro { max-width: 44ch; color: var(--grey); font-size: 17px; margin-top: 22px; }
.mail { display: inline-block; font-family: var(--serif); font-style: italic; font-size: clamp(36px, 4.6vw, 76px); line-height: 1; padding-bottom: 6px; background: linear-gradient(var(--paper), var(--paper)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease-out); }
.mail:hover { background-size: 100% 2px; }
.reach { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Footer: colophon, giant wordmark and the star */
footer { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(50vw + 30px); padding-bottom: 26px; }
footer > :not(.g-star) { position: relative; z-index: 1; mix-blend-mode: difference; }
.colophon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 30px 0 50px; border-top: 1px solid var(--line-strong); }
.colophon h6 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-2); font-weight: 500; margin-bottom: 14px; }
.colophon a, .colophon p { display: block; font-size: 15px; margin-bottom: 6px; }
.colophon a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.colophon a:hover { background-size: 100% 1px; }
.colophon .note { color: var(--grey-2); font-size: 14px; }
.giant { overflow: hidden; }
.giant .g-in { position: relative; transform: translateY(var(--gy, 30%)); }
.giant img { width: 100%; height: auto; }
.g-star { position: absolute; left: 50%; bottom: 0; z-index: 0; width: 100vw; aspect-ratio: 1; translate: -50% 50%; background: var(--paper); -webkit-mask: url("cursor-star.svg") center / contain no-repeat; mask: url("cursor-star.svg") center / contain no-repeat; animation: g-spin 90s linear infinite; pointer-events: none; }
@keyframes g-spin { to { rotate: 360deg; } }
/* phones: a bigger star so the footer game sits on cream, clear of its scalloped edge */
@media (max-width: 720px) { .g-star { width: var(--gs-w, 220vw); } }
.fine { display: flex; justify-content: space-between; padding-top: 18px; font-size: 13px; color: var(--grey); }

/* Cursor */
.cur, .cur-x { position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; display: none; }
.cur-x { z-index: 1000; mix-blend-mode: difference; transition: opacity .3s; }
.has-cur .cur, .has-cur .cur-x { display: block; }
.cur-x .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; transition: transform .45s var(--ease-out); }
.cur-x .star { position: absolute; width: 50px; height: 50px; margin: -25px 0 0 -25px; overflow: visible; transform: scale(0) rotate(-90deg); transition: transform .6s var(--ease-out); background: #fff; -webkit-mask: url("cursor-star.svg") center / contain no-repeat; mask: url("cursor-star.svg") center / contain no-repeat; }
.cur-x.link .dot { transform: scale(0); }
.cur-x.link .star { transform: none; }
.cur-x.lab { opacity: 0; }
.cur b { position: absolute; width: 108px; height: 108px; margin: -54px 0 0 -54px; display: grid; place-items: center; isolation: isolate; color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; transform: scale(0); transition: transform .5s var(--ease-out); }
.cur b::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); -webkit-mask: url("cursor-star.svg") center / contain no-repeat; mask: url("cursor-star.svg") center / contain no-repeat; animation: spin 14s linear infinite; }
.cur.lab b { transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.has-cur, .has-cur a, .has-cur button, .has-cur [data-cursor] { cursor: none; }

@media (max-width: 1024px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .ask-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .strip .hide-m { display: none; }
  .nav a.l.hide-m { display: none; }
  .nav { gap: 0; }
  .nav a.l { padding: 8px 12px; }
  .nav .pill { white-space: nowrap; padding: 9px 14px; }
  .nav .mini { width: 56px; margin: 0 0 0 4px; }
  .section-head { grid-template-columns: 1fr 1fr; }
  .section-head > :first-child { display: none; }
}
@media (max-width: 560px) {
  .stats div { padding-right: 10px; }
  .stats div + div { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .split .w > span, .rv { transform: none; opacity: 1; transition: none; }
  .g-star { animation: none; }
}

/* Film grain over the whole site: a small noise tile that jumps to a new spot ten times a second */
body::after { content: ""; position: fixed; inset: -160px; z-index: 2147483000; pointer-events: none; background: url("noise.png") 0 0 / 160px 160px; opacity: var(--grain, .08); animation: grain .8s steps(1) infinite; will-change: transform; }
@keyframes grain { 0% { transform: translate(0, 0); } 12.5% { transform: translate(-37px, 52px); } 25% { transform: translate(61px, -24px); } 37.5% { transform: translate(-83px, -71px); } 50% { transform: translate(29px, 97px); } 62.5% { transform: translate(-112px, 18px); } 75% { transform: translate(94px, 66px); } 87.5% { transform: translate(-15px, -109px); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* Scrollbar: a slim cream bar on black that brightens when you grab it */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(245, 240, 232, .3); background-clip: padding-box; border: 3px solid transparent; border-radius: 99px; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(245, 240, 232, .6); }
::-webkit-scrollbar-thumb:active { background-color: #f5f0e8; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: rgba(245, 240, 232, .4) #000; } }
