/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/chakra-petch-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/chakra-petch-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/chakra-petch-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/chakra-petch-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/chakra-petch-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/chakra-petch-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-400-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-400-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Scorpio ----------
   Built from the mark: monochrome, two tones (white half / grey half), hard diagonal cuts.
   Corners are chamfered (--cut) the way the logo's ends are sliced. */
:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --bg-3: #19191d;
  --line: #222226;
  --line-2: #303036;
  --white: #f4f4f5;
  --grey: #8e8e93;
  --muted: #a1a1aa;
  --dim: #5c5c63;
  --live: #4ade80;
  --display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 4vw, 48px);
  --page-top: clamp(48px, 9vh, 96px); /* nav to the first line of every page */
  --title-gap: 20px;                  /* small label to big title */
  --cut: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--line-2) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--white);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* faint diagonal hairlines across the whole page, the same angle as the mark's cuts */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 27px, rgba(255, 255, 255, .018) 27px 28px);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--white); color: var(--bg); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.g { color: var(--grey); }
.label { font: 12px/1.4 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .14em; }
.label i, .tag i, .side-kicker i { font-style: normal; color: var(--line-2); margin: 0 4px; }

/* chamfered shape: top-left and bottom-right corners cut off */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* ---------- Buttons ---------- */
.btn {
  --c: 10px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px;
  font: 600 14px var(--display); text-transform: uppercase; letter-spacing: .1em;
  background: var(--white); color: var(--bg);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--bg-3); color: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 12px; }
.chip {
  padding: 7px 12px; cursor: pointer; background: var(--bg-3); border: 1px solid var(--line-2);
  font: 12px var(--mono); color: var(--muted); transition: color .2s, border-color .2s;
}
.chip:hover { color: var(--white); border-color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px max(var(--pad), calc((100% - 1240px) / 2 + var(--pad)));
  background: rgba(11, 11, 13, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 13, .88); }
.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo svg { width: 30px; height: 30px; transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.06); }
.logo span { font: 700 18px/1 var(--display); letter-spacing: .14em; }
.nav-links { display: flex; gap: 2px; font: 13px var(--mono); }
.nav-links a { position: relative; padding: 7px 12px; color: var(--muted); transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.on { color: var(--white); }
.nav-links a:hover::after, .nav-links a.on::after { transform: none; }
.nav-links .nav-cta-m { display: none; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; position: relative; width: 40px; height: 38px; background: var(--bg-3); border: 1px solid var(--line-2); cursor: pointer; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn i:first-child { top: 14px; } .menu-btn i:nth-child(2) { top: 21px; }
.nav.open .menu-btn i:first-child { top: 17.5px; transform: rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { top: 17.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - 67px); max-width: 1240px; margin-inline: auto; padding: var(--page-top) var(--pad) 96px;
}
.tag { display: flex; width: fit-content; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.tick { width: 18px; height: 2px; background: var(--white); transform: skewX(-45deg); }
.hero-title { margin-top: var(--title-gap); font: 700 clamp(48px, 7.4vw, 112px)/.92 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) .15s forwards; }
.hero-title .ln-g { color: var(--grey); }
.hero-title .ln-g > span { animation-delay: .25s; }
@keyframes rise { to { transform: none; } }
.hero-sub { max-width: 520px; margin-top: 28px; color: var(--muted); font-size: 18px; line-height: 1.6; opacity: 0; animation: fade .8s var(--ease) .5s forwards; }
.hero-sub a { color: var(--white); border-bottom: 1px solid var(--grey); transition: border-color .2s; }
.hero-sub a:hover { border-color: var(--white); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; opacity: 0; animation: fade .8s var(--ease) .6s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the mark: two halves fly in from opposite corners and lock; main.js pulls them apart a little toward the pointer */
.hero-mark { position: relative; align-self: center; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; display: grid; place-items: center; }
.hero-mark::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .08), transparent);
}
.hero-mark svg { position: relative; width: 74%; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); }
.ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.ring.r2 { inset: 14%; border-style: dashed; border-color: var(--line-2); animation: spin 50s linear infinite; }
.ring.r1::after {
  content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; background: var(--white);
  transform: rotate(45deg); box-shadow: 0 0 14px rgba(255, 255, 255, .5);
}
.ring.r1 { animation: spin 80s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.par { transition: transform .1s linear; }
.half { opacity: 0; }
.half-w { animation: lock-w 1.1s var(--ease) .25s forwards; }
.half-g { animation: lock-g 1.1s var(--ease) .25s forwards; }
@keyframes lock-w { from { opacity: 0; transform: translate(-46px, -46px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lock-g { from { opacity: 0; transform: translate(46px, 46px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.mark-label {
  position: absolute; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--dim);
  opacity: 0; animation: fade .8s var(--ease) 1.1s forwards;
}
.mark-label::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 8px; vertical-align: middle; background: currentColor; }
.l-w { top: 12%; left: -2%; color: var(--white); }
.l-g { bottom: 12%; right: -2%; color: var(--grey); }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between;
  font: 11px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--dim);
}
.hero-foot i { font-style: normal; color: var(--line-2); margin: 0 4px; }
.scroll-hint b { display: inline-block; font-weight: 400; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Slanted ticker ---------- */
.band { overflow: hidden; background: var(--white); color: var(--bg); transform: rotate(-2deg) scale(1.04); margin: 10px 0 30px; }
.band-track { display: flex; width: max-content; gap: 26px; padding: 14px 0; font: 700 18px var(--display); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; animation: slide 36s linear infinite; }
.band-track b { color: var(--grey); font-size: 11px; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding-top: clamp(96px, 14vh, 150px); scroll-margin-top: 70px; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--title-gap) 40px; align-items: end; margin-bottom: 48px; }
.sec-head .label { grid-column: 1 / -1; }
.sec-head h2 { font: 700 clamp(40px, 6vw, 84px)/.95 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.sec-sub { color: var(--muted); max-width: 460px; justify-self: end; }

/* ---------- Two sides ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side {
  position: relative; overflow: hidden; padding: clamp(26px, 3.4vw, 48px); min-height: 520px; display: flex; flex-direction: column;
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  transition: transform .5s var(--ease);
}
.side-w { background: linear-gradient(160deg, #f4f4f5, #d4d4d8); color: var(--bg); }
.side-g { background: linear-gradient(160deg, #1d1d21, #131316); box-shadow: inset 0 0 0 1px var(--line-2); }
.side:hover { transform: translateY(-4px); }
.side-piece { position: absolute; right: -8%; bottom: -12%; width: 62%; height: auto; aspect-ratio: 240 / 238; opacity: .1; transition: transform .8s var(--ease), opacity .4s; }
.side-w .side-piece { filter: brightness(0); opacity: .07; }
.side:hover .side-piece { transform: translate(-10px, -10px) rotate(-4deg); opacity: .16; }
.side-w:hover .side-piece { opacity: .11; }
.side-kicker { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; opacity: .6; }
.side-w .side-kicker i { color: #a1a1aa; }
.side h3 { margin-top: 18px; font: 700 clamp(40px, 5vw, 68px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.side-lead { margin-top: 14px; max-width: 380px; font-size: 17px; opacity: .75; }
.side-list { position: relative; margin-top: 34px; display: grid; gap: 0; }
.side-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(128, 128, 128, .25); font-size: 15px; }
.side-list b { font: 600 15px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.side-list span { opacity: .72; }
.side-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; align-self: flex-start;
  font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .12em;
}
.side-link span { transition: transform .25s var(--ease); }
.side-link:hover span { transform: translateX(5px); }

/* ---------- JailMine ---------- */
.jm { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.shot {
  position: relative; display: block; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px 10px 26px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.shot-bar i { width: 8px; height: 8px; background: var(--line-2); transform: rotate(45deg); }
.shot-bar span { margin-left: 10px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; filter: grayscale(.35); transition: filter .5s, transform .8s var(--ease); }
.shot:hover img { filter: none; }
.jm-shot { overflow: hidden; }
.jm-logo { position: absolute; right: 4%; bottom: 4%; width: 26% !important; height: auto !important; aspect-ratio: auto !important; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .7)) !important; }
.jm-panel { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 36px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.jm-panel .btn { align-self: flex-start; margin-top: auto; }
.jm-ip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.jm-ip img { width: 40px; height: auto; }
.jm-ip-label { display: block; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.jm-ip strong { font: 600 18px var(--display); letter-spacing: .02em; }
.jm-players { display: block; font: 12px var(--mono); color: var(--live); }
.modes { display: grid; }
.modes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.modes span { font: 600 17px var(--display); text-transform: uppercase; letter-spacing: .05em; }
.modes em { font: 11px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 3px 8px; border: 1px solid var(--line-2); }
.modes em.live { color: var(--live); border-color: rgba(74, 222, 128, .35); }
.modes em.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); vertical-align: 1px; animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.modes .more span { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 12px var(--mono); color: var(--muted); padding: 5px 10px; border: 1px solid var(--line-2); }

/* ---------- Client work ---------- */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case { display: block; }
.case .shot { transition: transform .5s var(--ease); }
.case:hover .shot { transform: translateY(-4px); }
.case:hover .shot img { transform: scale(1.02); }
.case-meta { display: flex; gap: 10px; margin-top: 20px; font: 12px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.case-meta span + span::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.case-title { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font: 700 clamp(28px, 3vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.case-title span { font-size: .6em; color: var(--grey); transition: transform .25s var(--ease), color .2s; }
.case:hover .case-title span { transform: translate(3px, -3px); color: var(--white); }
.case-text { display: block; margin-top: 10px; max-width: 520px; color: var(--muted); }
.next-slot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 28px; padding: 22px 28px;
  border: 1px dashed var(--line-2); transition: border-color .3s, background .3s;
}
.next-slot:hover { border-color: var(--grey); background: var(--bg-2); }
.next-plus { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); font: 300 26px/1 var(--display); transform: rotate(45deg); }
.next-plus { transform: none; }
.next-slot strong { display: block; font: 600 20px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.next-slot span span { color: var(--muted); font-size: 14px; }
.next-arrow { font-size: 24px; transition: transform .25s var(--ease); }
.next-slot:hover .next-arrow { transform: translateX(6px); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px 30px; background: var(--bg-2); transition: background .3s; }
.steps li:first-child { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.steps li:last-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.steps li:hover { background: var(--bg-3); }
.step-n { font: 700 14px var(--display); color: var(--dim); letter-spacing: .1em; }
.steps h3 { margin-top: 30px; font: 700 26px var(--display); text-transform: uppercase; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.stack-line { margin-top: 28px; font: 13px/1.8 var(--mono); color: var(--muted); }
.stack-line .label { margin-right: 8px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.founder-pic { width: 96px; height: 96px; object-fit: cover; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.founder-text { max-width: 720px; margin-top: 10px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--muted); }
.founder-text strong { color: var(--white); font-weight: 600; }
.founder .side-link { margin-top: 14px; padding-top: 0; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(80px, 12vh, 140px); }
.contact-title { margin-top: 18px; font: 700 clamp(52px, 10vw, 150px)/.9 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.contact .sec-sub { justify-self: start; margin-top: 26px; font-size: 18px; }
.contact-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.mail { font: 600 clamp(26px, 4vw, 52px)/1.1 var(--display); letter-spacing: -.01em; border-bottom: 2px solid var(--grey); transition: border-color .2s; }
.mail:hover { border-color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 48px; }

/* project brief form */
.brief {
  display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.brief fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.brief legend, .field > span { display: block; margin-bottom: 12px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span {
  display: inline-block; padding: 9px 14px; font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: color .2s, background .2s, box-shadow .2s;
}
.opts label:hover span { color: var(--white); box-shadow: inset 0 0 0 1px var(--grey); }
.opts input:checked + span { background: var(--white); color: var(--bg); box-shadow: none; }
.opts input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }
.brief-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: 16px/1.5 var(--body); color: var(--white); background: var(--bg);
  border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--white); }
.brief-send { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.brief .btn { border: 0; cursor: pointer; }
.brief-status { font: 13px var(--mono); color: var(--muted); }
.brief-status.ok { color: var(--live); }

.contact-side { display: grid; gap: 22px; justify-items: start; }
.contact-side .contact-row { margin-top: 0; }
.contact-side .mail { font-size: clamp(24px, 2.6vw, 36px); }
.contact-facts { width: 100%; margin-top: 6px; }
.contact-facts li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.contact-facts b { font: 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 400; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.foot-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 26px; font: 12px var(--mono); color: var(--dim); }
.logo-sm svg { width: 22px; height: 22px; }
.logo-sm span { font-size: 14px; color: var(--muted); }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--white); }
.foot-giant {
  pointer-events: none; user-select: none; text-align: center; margin-bottom: -.2em;
  font: 700 clamp(80px, 22vw, 330px)/1 var(--display); letter-spacing: .02em; color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
}

/* ---------- Reveal (diagonal wipe for headings, rise for blocks) ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .wipe { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); transition: clip-path 1s var(--ease); }
.js .wipe.in { clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 110px; }
  .hero-mark { order: -1; width: min(70vw, 340px); }
  .sides, .jm, .work, .contact-grid { grid-template-columns: 1fr; }
  .side { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { clip-path: none !important; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-end .btn-sm { display: none; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    padding: 8px var(--pad) 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 4px; font-size: 15px; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta-m { display: block; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-sub { justify-self: start; }
  .side-list li { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
  .jm-ip { grid-template-columns: auto 1fr; }
  .jm-ip .chip { grid-column: 1 / -1; justify-self: start; }
  .founder { grid-template-columns: 1fr; }
  .next-slot { grid-template-columns: auto 1fr; }
  .next-arrow { display: none; }
  .l-w { left: -6%; } .l-g { right: -6%; }
  .hero-foot .scroll-hint { display: none; }
  /* phones: smaller mark so the headline and "start a project" fit on the first screen */
  .hero { padding-top: 16px; gap: 18px; }
  .hero-mark { width: min(54vw, 210px); }
  .mark-label { display: none; }
  .hero-title { margin-top: var(--title-gap); font-size: clamp(40px, 12.2vw, 56px); }
  .hero-sub { margin-top: 18px; font-size: 16px; }
  .hero-cta { margin-top: 24px; }
  .brief-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Blog: /blog list and /blog/<slug> posts (built by src/build.py)
   ===================================================================== */
.page-blog { min-height: calc(100svh - 200px); }
.blog-top, .post { padding-top: var(--page-top); padding-bottom: clamp(80px, 12vh, 140px); }
.sec-head h1 { font: 700 clamp(44px, 7vw, 104px)/.92 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.u { border-bottom: 1px solid var(--grey); color: var(--white); transition: border-color .2s; }
.u:hover { border-color: var(--white); }

.post-list { border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-row { position: relative; display: grid; grid-template-columns: 170px 1fr auto; gap: 12px 32px; align-items: start; padding: 32px 0; }
.post-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--white); transition: width .5s var(--ease); }
.post-row:hover::before { width: 100%; }
.post-date { display: grid; gap: 4px; padding-top: 8px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.post-date span { color: var(--dim); }
.post-main { display: grid; gap: 10px; }
.post-main strong { font: 700 clamp(26px, 3.2vw, 42px)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; transition: color .2s; }
.post-desc { max-width: 640px; color: var(--muted); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags span { padding: 3px 9px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line-2); }
.post-arrow { padding-top: 2px; font-size: 30px; color: var(--grey); transition: transform .3s var(--ease), color .2s; }
.post-row:hover .post-arrow { transform: translateX(8px); color: var(--white); }
.post-empty { padding: 40px 0; font: 14px var(--mono); color: var(--muted); }

.post-back { display: flex; width: fit-content; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); transition: color .2s; }
.post-back:hover { color: var(--white); }
.post-head { max-width: 900px; margin-top: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.post-head:first-child { margin-top: 0; }
.post-title { margin-top: var(--title-gap); font: 700 clamp(42px, 7vw, 100px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.025em; }
.post-lead { margin-top: 22px; max-width: 680px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.post-by { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.post-by img { width: 36px; height: 36px; object-fit: cover; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.post-by i { font-style: normal; color: var(--line-2); margin: 0 4px; }
.post-by .post-tags { margin-left: auto; }

.prose { max-width: 700px; margin-top: 44px; font-size: 18px; line-height: 1.75; color: #d4d4d8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--white); }
.prose h3 { margin-top: 1.7em; font: 700 21px var(--display); text-transform: uppercase; color: var(--white); }
.prose a { color: var(--white); border-bottom: 1px solid var(--grey); transition: border-color .2s; }
.prose a:hover { border-color: var(--white); }
.prose strong { color: var(--white); font-weight: 600; }
.prose ul { padding: 0; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 9px; height: 2px; background: var(--white); transform: skewX(-45deg); }
.prose ol { padding: 0; counter-reset: n; }
.prose ol li { position: relative; padding-left: 2.2em; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 700 13px var(--display); color: var(--dim); letter-spacing: .08em; }
.prose li + li { margin-top: .5em; }
.prose code { padding: 2px 6px; font: .82em var(--mono); color: var(--white); background: var(--bg-3); }
.prose pre { overflow-x: auto; padding: 18px 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.prose pre code { padding: 0; background: none; font-size: 14px; line-height: 1.6; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--white); font: 600 1.2em/1.45 var(--display); color: var(--white); }
.prose img { width: 100%; height: auto; box-shadow: inset 0 0 0 1px var(--line); }
.post-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; max-width: 700px; margin-top: 60px; padding: 26px 30px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.post-cta p { font: 700 24px var(--display); text-transform: uppercase; }
.post-older { max-width: 700px; }
.foot-links a[aria-current] { color: var(--white); }

@media (max-width: 720px) {
  .post-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .post-date { display: flex; gap: 12px; padding-top: 0; }
  .post-arrow { display: none; }
  .post-by .post-tags { margin-left: 0; width: 100%; }
  .prose { font-size: 17px; }
}

/* spam trap: hidden from people, bots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none;
  font: 600 clamp(17px, 1.8vw, 21px)/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: none; font: 300 26px/1 var(--display); color: var(--grey); transition: transform .3s var(--ease), color .2s; }
.faq-item summary:hover, .faq-item summary:hover span { color: var(--white); }
.faq-item[open] summary span { transform: rotate(45deg); color: var(--white); }
.faq-item p { max-width: 720px; padding: 0 4px 24px; color: var(--muted); font-size: 16px; }

/* note under the brief form */
.brief-note { font: 12px var(--mono); color: var(--dim); }
.brief-note a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.brief-note a:hover { color: var(--white); }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tier { position: relative; display: flex; flex-direction: column; padding: 30px 26px 32px; background: var(--bg-2); transition: background .3s; }
.tier:hover { background: var(--bg-3); }
.tier:first-child { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.tier:last-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.tier-pop, .tier-pop:hover { background: linear-gradient(160deg, #f4f4f5, #d4d4d8); color: var(--bg); }
.tier-kicker { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.tier-kicker i { font-style: normal; margin: 0 4px; color: var(--line-2); }
.tier-pop .tier-kicker { color: #71717a; }
.tier-pop .tier-kicker i { color: #a1a1aa; }
.tier h3 { margin-top: 26px; font: 700 26px var(--display); text-transform: uppercase; }
.tier-price { margin-top: 6px; font: 700 clamp(42px, 4.6vw, 58px)/1 var(--display); letter-spacing: -.02em; }
.tier-price small { margin-right: 8px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--grey); vertical-align: middle; }
.tier-pop .tier-price small { color: #71717a; }
.tier-lead { margin-top: 14px; color: var(--muted); font-size: 15px; }
.tier-list { margin-top: 22px; display: grid; }
.tier-list li { padding: 10px 0; border-top: 1px solid rgba(128, 128, 128, .22); font-size: 15px; color: var(--muted); }
.tier-list li::before { content: "+"; margin-right: 10px; font-family: var(--mono); color: var(--grey); }
.tier-pop .tier-lead, .tier-pop .tier-list li { color: #3f3f46; }
.tier-pop .tier-list li::before { color: #71717a; }
.price-note { margin-top: 20px; font: 13px/1.8 var(--mono); color: var(--muted); }
.price-note b { color: var(--white); font-weight: 600; }

/* price guide */
.guide {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px 48px; align-items: start; margin-top: 64px;
  padding: clamp(22px, 3vw, 36px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.guide h3, .care h3 { margin-top: 10px; font: 700 clamp(28px, 3vw, 40px)/1 var(--display); text-transform: uppercase; }
.guide fieldset { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.guide legend { margin-bottom: 12px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.guide-out { display: grid; gap: 8px; justify-items: start; padding: 24px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.g-tier { font: 700 24px/1.15 var(--display); text-transform: uppercase; }
.g-price { font: 600 17px var(--mono); color: var(--white); }
.g-price:empty { display: none; }
.g-note { font: 12px var(--mono); color: var(--dim); }
.guide-out .btn { margin-top: 8px; border: 0; cursor: pointer; }

/* care plans */
.care { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px 48px; align-items: start; margin-top: 64px; }
.care-head p:last-child { margin-top: 14px; max-width: 380px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.plan { padding: 26px 24px 28px; background: var(--bg-2); transition: background .3s; }
.plan:hover { background: var(--bg-3); }
.plan:first-child { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.plan:last-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.plan-name { font: 600 15px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-price { margin-top: 8px; font: 700 46px/1 var(--display); letter-spacing: -.02em; }
.plan-price small { margin-left: 6px; font: 13px var(--mono); color: var(--grey); letter-spacing: .04em; }

/* included with every project */
.incl-wrap { margin-top: 64px; }
.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 18px; }
.incl li { padding: 22px 22px 24px; background: var(--bg-2); transition: background .3s; }
.incl li:hover { background: var(--bg-3); }
.incl b { display: block; font: 600 17px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.incl span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

@media (max-width: 1000px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { clip-path: none !important; }
  .guide, .care { grid-template-columns: 1fr; }
  .incl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .plans, .incl { grid-template-columns: 1fr; }
  .plan { clip-path: none !important; }
}
