/* samjeans.com — cinematic maximalist design system. Plain CSS, no build step. */
:root {
  --bg: #050506;
  --bg-2: #0c0c10;
  --ink: #f2efe9;
  --ink-2: #c8c4bc;
  --muted: #86827a;
  --line: rgba(242,239,233,.12);
  --accent: #7c6cff;        /* ultraviolet */
  --aqua: #19d3a2;          /* viridian aqua */
  --orange: #ff5a1f;        /* occasional accent only */
  --sky: #2bb3ff;           /* bright blue */
  --accent-2: #2f55ff;      /* electric blue */
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d7d1 35%, #8d8b86 50%, #f4f2ec 62%, #a09d97 100%);
  --heat: linear-gradient(90deg, #7c6cff, #2bb3ff, #19d3a2, #2f55ff, #b39dff, #7c6cff);
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --body: "Space Grotesk", "Inter", system-ui, sans-serif;
  --accent-serif: "Instrument Serif", Georgia, serif;
  --max: 1240px;
  --r: 4px;
}
:root[data-theme="light"], :root[data-theme="dark"] { --bg: #050506; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #050506; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--aqua); color: #000; }

/* Atmosphere: grain, grid, two slow light fields */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blobs::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(242,239,233,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(242,239,233,.05) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%); }
.blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); will-change: transform; transform: translateZ(0); }
.blob.a { background: radial-gradient(circle at 40% 40%, rgba(124,108,255,.5), transparent 60%); top: -40vmax; left: -25vmax; animation: drift1 40s ease-in-out infinite alternate; }
.blob.b { background: radial-gradient(circle at 50% 50%, rgba(25,211,162,.32), transparent 60%); top: 30vh; right: -45vmax; animation: drift2 48s ease-in-out infinite alternate; }
.blob.c { background: radial-gradient(circle at 50% 50%, rgba(43,179,255,.38), transparent 62%); bottom: -45vmax; left: 20vw; animation: drift3 56s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(16vw, 18vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-24vw, 24vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(20vw, -18vh) scale(1.15); } }

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: -0.02em; margin: 0 0 .4em; text-wrap: balance; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(3.2rem, 9.5vw, 8rem); }
h2 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); letter-spacing: -0.01em; line-height: 1.08; }
p { margin: 0 0 1em; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.serif { font-family: var(--accent-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; text-transform: none; }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.chrome::after { content: attr(data-text); position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.95) 50%, transparent 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 7s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { background-position: 150% 0; } 45%, 100% { background-position: -150% 0; } }
.heat { background: var(--heat); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .24em; font-size: .7rem; font-weight: 700; color: var(--aqua); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--aqua); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5,5,6,.8); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 16px var(--orange); animation: blink 3s steps(1) infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .9rem; padding: 10px 13px; white-space: nowrap; border-radius: var(--r); transition: color .15s, background .15s; letter-spacing: .01em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(242,239,233,.07); }
.nav a.btn { margin-left: 10px; color: #000; background: var(--ink); }
.nav a.btn:hover { background: var(--accent); color: #000; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 14px; font: inherit; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: var(--ink); color: #000; text-decoration: none; font-weight: 700; font-family: var(--display);
  border: 1px solid var(--ink); cursor: pointer; font-size: .95rem; letter-spacing: 0; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #000; box-shadow: 0 20px 50px -18px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(242,239,233,.35); }
.btn.ghost:hover { background: rgba(242,239,233,.08); border-color: var(--ink); box-shadow: none; color: var(--ink); }
.btn.hot { background: var(--accent); border-color: var(--accent); color: #000; }
.btn.hot:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 20px 50px -18px rgba(242,239,233,.6); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(5px); }

/* Hero */
.hero { padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 56px; align-items: end; }
.hero .wrap > * { min-width: 0; }
.hero h1 { overflow-wrap: anywhere; }
body:not(.home) .hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); }
.hero h1 { margin-bottom: .3em; }
.hero h1 .line { display: block; }
.hero .rotator { display: inline-block; position: relative; vertical-align: bottom; min-width: 4.4ch; }
.hero .rotator span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(35%); filter: blur(6px); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1), filter .6s; white-space: nowrap; }
.hero .rotator span.on { position: relative; opacity: 1; transform: none; filter: none; }
.hero .lede { font-size: clamp(1.08rem, 1.55vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; align-items: center; }

/* Spec panel */
.spec { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(242,239,233,.06), rgba(242,239,233,.02)); backdrop-filter: blur(14px); border-radius: var(--r); padding: 26px 28px; position: relative; overflow: hidden; }
.spec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.spec .label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .22em; font-size: .66rem; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 14px; }
.spec .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.spec .row span { color: var(--ink-2); font-size: .92rem; }
.spec .row strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; line-height: 1; }
.spec .row strong.hot { color: var(--aqua); }
.spec .pulse { position: absolute; right: 24px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(25,211,162,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(25,211,162,0); } 100% { box-shadow: 0 0 0 0 rgba(25,211,162,0); } }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: rgba(242,239,233,.025); }
.marquee .track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); display: flex; align-items: center; gap: 56px; text-transform: uppercase; }
.marquee .item::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { padding: clamp(72px, 10vw, 136px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.section-head p { max-width: 48ch; color: var(--ink-2); margin: 0; font-size: 1.05rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Work cards */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.piece {
  grid-column: span 6; position: relative; border-radius: var(--r); padding: 34px; overflow: hidden; isolation: isolate;
  background: rgba(242,239,233,.035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, background .4s;
}
.piece::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(124,108,255,.18), transparent 45%); }
.piece:hover { transform: translateY(-5px); border-color: rgba(242,239,233,.3); }
.piece:hover::before { opacity: 1; }
.piece .pub { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .22em; color: var(--sky); font-weight: 700; }
.piece h3 a { color: var(--ink); text-decoration: none; }
.piece h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.piece blockquote { margin: 0; font-family: var(--accent-serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.22; color: var(--ink); }
.piece blockquote::before { content: "“"; color: var(--accent); margin-right: 1px; }
.piece .meta { margin-top: auto; font-size: .92rem; color: var(--muted); }
.piece .bignum { position: absolute; right: 22px; top: 14px; font-family: var(--display); font-weight: 700; font-size: 6.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,.16); pointer-events: none; letter-spacing: -0.05em; }
.piece.feature { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: clamp(36px, 5vw, 72px);
  background: linear-gradient(120deg, rgba(124,108,255,.32), rgba(5,5,6,.2) 55%, rgba(25,211,162,.2)); border-color: rgba(242,239,233,.22); }
.piece.feature h3 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.piece.feature blockquote { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.piece.c1 { background: linear-gradient(160deg, rgba(124,108,255,.16), rgba(242,239,233,.02)); }
.piece.c2 { background: linear-gradient(160deg, rgba(25,211,162,.14), rgba(242,239,233,.02)); }
.piece.c3 { background: linear-gradient(160deg, rgba(242,239,233,.08), rgba(242,239,233,.02)); }
.piece.c4 { background: linear-gradient(160deg, rgba(47,85,255,.18), rgba(242,239,233,.02)); }
.piece.c5 { background: linear-gradient(160deg, rgba(124,108,255,.22), rgba(242,239,233,.02)); }
.piece.c6 { background: linear-gradient(160deg, rgba(255,90,31,.12), rgba(242,239,233,.02)); }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  grid-column: span 1; border-radius: var(--r); padding: 32px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  text-decoration: none; color: var(--ink); position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: rgba(242,239,233,.035);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(242,239,233,.12), transparent 45%); }
.tile:hover { transform: translateY(-5px); border-color: rgba(242,239,233,.35); }
.tile:hover::before { opacity: 1; }
.tile h3 { color: inherit; font-size: clamp(1.4rem, 2.1vw, 1.8rem); }
.tile p { color: inherit; opacity: .78; margin: 0; }
.tile .go { font-family: var(--mono); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 10px; }
.tile .go::after { content: "→"; transition: transform .25s; }
.tile:hover .go::after { transform: translateX(8px); }
.tile .k { font-family: var(--display); font-weight: 700; font-size: 5rem; line-height: 1; opacity: .12; position: absolute; right: 18px; top: 10px; letter-spacing: -0.05em; }
.tile.wide { grid-column: span 4; }
.tile.hot { background: var(--accent); color: #0b0a14; border-color: var(--accent); }
.tile.hot p { opacity: .85; }
.tile.hot::before { background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%); }
.tile.bone { background: var(--ink); color: #000; border-color: var(--ink); }
.tile.bone::before { background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(124,108,255,.35), transparent 45%); }
.tile.blue { background: var(--accent-2); color: var(--ink); border-color: var(--accent-2); }
.tile.blue::before { background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.3), transparent 45%); }

/* Band */
.band { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 160px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .9;
  background: radial-gradient(60% 80% at 10% 20%, rgba(124,108,255,.55), transparent 60%), radial-gradient(50% 70% at 90% 30%, rgba(25,211,162,.4), transparent 60%), radial-gradient(70% 60% at 50% 100%, rgba(43,179,255,.5), transparent 60%);
  background-size: 200% 200%; animation: bandmove 24s ease-in-out infinite alternate; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(5,5,6,.35); z-index: 0; }
@keyframes bandmove { to { background-position: 100% 100%, 0% 100%, 100% 0%; } }
@keyframes spin { to { transform: rotate(360deg); } }
.band .wrap { position: relative; z-index: 1; }
.band .statement { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 6.2rem); line-height: .94; letter-spacing: -0.04em; margin: 0 0 .5em; max-width: 15ch; }
.band p { color: var(--ink); max-width: 56ch; font-size: 1.1rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat { background: rgba(5,5,6,.55); border: 1px solid rgba(242,239,233,.2); border-radius: var(--r); padding: 24px; backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.stat strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; }
.stat span { font-size: .9rem; color: var(--ink-2); display: block; margin-top: 8px; }

/* Testimonials */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.quotes::-webkit-scrollbar { height: 4px; } .quotes::-webkit-scrollbar-thumb { background: rgba(242,239,233,.25); }
.quote { scroll-snap-align: start; background: rgba(242,239,233,.04); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.quote::before { content: "★★★★★"; color: var(--orange); letter-spacing: .2em; font-size: .8rem; }
.quote p { font-family: var(--accent-serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; margin: 0; }
.quote cite { font-style: normal; font-size: .86rem; color: var(--muted); margin-top: auto; }
.quote cite strong { color: var(--ink); font-weight: 700; display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 2px; }

/* Pull, prose, lists */
.pull { border-left: 2px solid var(--aqua); padding: 6px 0 6px 26px; font-family: var(--accent-serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.28; margin: 28px 0 10px; }
.prose { max-width: 72ch; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .5em; }
.prose a { color: var(--ink); text-decoration-color: var(--sky); text-underline-offset: 3px; }
.prose a:hover { color: var(--sky); }
.prose strong { color: var(--ink); }
.worklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.worklist li { display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding-left .25s; }
.worklist li:hover { padding-left: 12px; }
.worklist .pub { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .2em; color: var(--sky); font-weight: 700; }
.worklist a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.worklist a:hover { color: var(--sky); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 4px; }
.worklist .when { font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* Service page bits */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; max-width: 70ch; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { counter-increment: s; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; background: rgba(242,239,233,.035); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--aqua); letter-spacing: -0.04em; }
.step h3 { font-size: 1.3rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag { font-family: var(--mono); font-weight: 700; font-size: .72rem; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(242,239,233,.25); color: var(--ink); text-transform: uppercase; letter-spacing: .12em; }
.tag.hot { background: var(--orange); border-color: var(--orange); color: #000; }
.tag.bone { background: var(--ink); border-color: var(--ink); color: #000; }

/* Forms */
form { display: grid; gap: 16px; }
label { font-weight: 500; font-size: .95rem; display: grid; gap: 6px; color: var(--ink-2); }
input, textarea, select { font: inherit; padding: 14px 16px; border: 1px solid rgba(242,239,233,.22); border-radius: var(--r); background: rgba(242,239,233,.05); color: var(--ink); width: 100%; }
select option { color: #000; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 170px; resize: vertical; }
.hint { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--aqua); }
.site-footer .big { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 13vw, 11rem); line-height: .85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,.22); width: 100%; margin-bottom: 36px; text-transform: uppercase; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .piece { grid-column: span 12; }
  .piece.feature { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 18px; right: 18px; top: 74px; flex-direction: column; align-items: stretch; gap: 2px; background: rgba(8,8,10,.97); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav a.btn { margin: 8px 0 0; justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .worklist li { grid-template-columns: 1fr; gap: 4px; }
  .quotes { grid-auto-columns: 86%; }
  .step { grid-template-columns: 1fr; }
  .piece { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Angular HUD corner brackets */
.piece::after, .tile::after, .spec::after, .quote::after, .stat::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1px 14px no-repeat;
  opacity: .55; transition: opacity .3s, inset .3s;
}
.piece:hover::after, .tile:hover::after, .quote:hover::after { opacity: 1; inset: 5px; }
.tile.hot::after, .tile.bone::after { background-image: linear-gradient(#000,#000), linear-gradient(#000,#000), linear-gradient(#000,#000), linear-gradient(#000,#000); }
.tile.blue::after { background-image: linear-gradient(var(--ink),var(--ink)), linear-gradient(var(--ink),var(--ink)), linear-gradient(var(--ink),var(--ink)), linear-gradient(var(--ink),var(--ink)); }
.spec .pulse { z-index: 2; }

/* Video cards */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video { position: relative; display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: rgba(242,239,233,.04); text-decoration: none; color: var(--ink); aspect-ratio: 16/10; isolation: isolate; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s; }
.video img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,0) 30%, rgba(5,5,6,.92) 100%); z-index: 1; }
.video .vmeta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.video h3 { font-size: 1.15rem; margin: 0; line-height: 1.15; }
.video .views { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); font-weight: 700; }
.video .dur { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--muted); }
.video:hover { transform: translateY(-5px); border-color: rgba(242,239,233,.35); }
.video:hover img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }
.video.more { background: linear-gradient(135deg, rgba(124,108,255,.35), rgba(47,85,255,.25)); }
.video.more::after { background: none; }
.video.more .vmeta { top: 0; justify-content: center; }
@media (max-width: 980px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .videos { grid-template-columns: 1fr; } .video { aspect-ratio: 16/9; } }

/* Case study */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 32px 0; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: rgba(242,239,233,.035); position: relative; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sky); }
.kpi strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.03em; }
.kpi span { display: block; margin-top: 8px; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 980px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* Article pages */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 40; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--sky), var(--aqua)); }
.ahero { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.ahero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.1); transform: scale(1.04); animation: kb 30s ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.ahero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,.35) 0%, rgba(5,5,6,.2) 35%, rgba(5,5,6,.92) 85%, var(--bg) 100%); }
.ahero-inner { position: relative; z-index: 1; padding-top: 40vh; padding-bottom: 56px; }
.ahero h1 { max-width: 16ch; }
.standfirst { font-family: var(--accent-serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.3; max-width: 36ch; color: var(--ink); margin: 0 0 18px; }
.ameta { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ahero-credit { position: absolute; right: 20px; bottom: 12px; z-index: 1; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--muted); margin: 0; }
.ahero-credit a { color: var(--muted); }
.article { padding: clamp(48px, 7vw, 96px) 0; }
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 72ch); gap: 56px; justify-content: center; }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc .label { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.toc a { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.toc a:hover { color: var(--aqua); }
.article-body { font-size: 1.15rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.35em; }
.article-body p.lead::first-letter { font-family: var(--display); font-size: 4.2em; line-height: .8; float: left; margin: .08em .12em 0 0; color: var(--aqua); }
.article-body h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 2em; }
.article-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 1.8em; color: var(--sky); }
.article-body h2 { padding-top: 1.2em; border-top: 1px solid var(--line); }
.article-body h2 .num { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .22em; color: var(--aqua); margin-bottom: 12px; }
.article-body p { margin-bottom: 1.5em; }
.article-body a { color: var(--ink); text-decoration-color: var(--aqua); }
.article-body a:hover { color: var(--aqua); }
.aq { margin: 2em 0; padding: 0 0 0 26px; border-left: 2px solid var(--accent); font-family: var(--accent-serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; }
.aq p { margin-bottom: .8em; }
.aq cite { display: block; font-family: var(--mono); font-style: normal; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.afig { margin: 2.4em 0; }
.afig img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.afig.wide { width: min(100vw - 40px, 1100px); margin-left: 50%; transform: translateX(-50%); }
.afig figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.afig .credit { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.afig .credit a { color: var(--muted); }
.ratio { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
hr.end { border: 0; height: 1px; background: var(--line); margin: 3em 0 1.5em; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post { display: block; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 380px; text-decoration: none; color: var(--ink); isolation: isolate; }
.post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,.1), rgba(5,5,6,.95)); }
.post .pmeta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 1; }
.post h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 8px 0; }
.post:hover img { transform: scale(1.05); }
@media (max-width: 980px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } .afig.wide { width: 100%; margin-left: 0; transform: none; } .posts { grid-template-columns: 1fr; } .ahero { min-height: 60vh; } }

@media (max-width: 1100px) and (min-width: 681px) { .nav a { padding: 9px 9px; font-size: .84rem; } .nav a.btn { padding: 11px 14px; } }

/* Service tile colours (deliberately off-palette) */
.tile.t1 { background: #7c6cff; color: #0b0a14; border-color: #7c6cff; }
.tile.t2 { background: #19d3a2; color: #06231b; border-color: #19d3a2; }
.tile.t3 { background: #ff5a1f; color: #1a0800; border-color: #ff5a1f; }
.tile.t4 { background: #2f55ff; color: #f2efe9; border-color: #2f55ff; }
.tile.t5 { background: #ffc43d; color: #231800; border-color: #ffc43d; }
.tile.t6 { background: #e8334a; color: #fff2f3; border-color: #e8334a; }
.tile.t7 { background: #0fb5c9; color: #04272c; border-color: #0fb5c9; }
.tile.t8 { background: #2bb3ff; color: #06202e; border-color: #2bb3ff; }
.tile.t9 { background: #f2efe9; color: #0b0a14; border-color: #f2efe9; }
.tile[class*=" t"]::before { background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%); }
.tile[class*=" t"]::after { background-image: linear-gradient(currentColor,currentColor), linear-gradient(currentColor,currentColor), linear-gradient(currentColor,currentColor), linear-gradient(currentColor,currentColor); opacity: .5; }
.tile[class*=" t"] p { opacity: .82; }

/* Logo marquee */
.marquee.logos .item { gap: 56px; }
.marquee.logos .item img { height: 30px; width: auto; max-width: 190px; object-fit: contain; filter: brightness(0) invert(1); opacity: .88; display: inline-block; }
.marquee.logos .item img.avatar { height: 40px; width: 40px; border-radius: 50%; filter: none; margin-right: 12px; border: 1px solid var(--line); }
.marquee.logos .item img[src*="imi.png"] { height: 22px; }
.marquee.logos .item img[src*="epicor.png"] { height: 16px; }
.marquee.logos .item img[src*="independent.svg"] { height: 20px; max-width: 220px; }
.marquee.logos .item img[src*="panasonic.svg"] { height: 20px; }
.marquee.logos .item img[src*="hbk.svg"] { height: 34px; }
.marquee.logos .item img[src*="fmb.svg"] { height: 36px; }
.marquee.logos .item img[src*="cerebrum.svg"] { height: 34px; }
.marquee.logos .item:hover img { opacity: 1; }

/* Client list (side panes) */
.clientlist { margin: 0; }
.clientlist dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin: 0 0 6px; }
.clientlist dd { margin: 0 0 20px; color: var(--ink-2); line-height: 1.55; }
.clientlist dd a { color: var(--ink); }

/* ===== Light theme ===== */
:root {
  --bg: #f6f7fb; --bg-2: #ffffff; --ink: #0d1020; --ink-2: #3b4160; --muted: #6b7190; --line: rgba(13,16,32,.1);
  --accent: #5b3dff; --accent-2: #1744ff; --aqua: #00b3a4; --sky: #1f7bff; --orange: #ff6a1a;
  --chrome: linear-gradient(180deg, #0d1020 0%, #3b4160 50%, #0d1020 100%);
  --heat: linear-gradient(90deg, #5b3dff, #1f7bff, #00b3a4, #1744ff, #5b3dff);
}
:root[data-theme="light"], :root[data-theme="dark"] { --bg: #f6f7fb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #f6f7fb; } }
body { background: var(--bg); color: var(--ink); }
body::before { opacity: .04; mix-blend-mode: multiply; }
::selection { background: var(--sky); color: #fff; }
.blobs::after { background-image: linear-gradient(rgba(13,16,32,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(13,16,32,.05) 1px, transparent 1px); }
.blob { opacity: .9; mix-blend-mode: normal; }
.blob.a { background: radial-gradient(circle at 40% 40%, rgba(91,61,255,.22), transparent 60%); }
.blob.b { background: radial-gradient(circle at 50% 50%, rgba(0,179,164,.18), transparent 60%); }
.blob.c { background: radial-gradient(circle at 50% 50%, rgba(31,123,255,.2), transparent 62%); }
.site-header.scrolled { background: rgba(246,247,251,.85); }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(13,16,32,.06); }
.nav a.btn { background: var(--ink); color: #fff; }
.nav a.btn:hover { background: var(--accent); color: #fff; }
.menu-toggle { color: var(--ink); }
.btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 20px 50px -18px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(13,16,32,.3); }
.btn.ghost:hover { background: rgba(13,16,32,.05); border-color: var(--ink); color: var(--ink); }
.btn.hot { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.hot:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.brand .dot { background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.eyebrow { color: var(--sky); } .eyebrow::before { background: var(--sky); }
.marquee { background: #fff; }
.marquee .item { color: var(--ink); }
.marquee .item::after { background: var(--accent); }
.marquee.logos .item img { filter: brightness(0); opacity: .75; }
.piece, .quote, .tile, .step, .kpi, .post, .video { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(13,16,32,.04), 0 12px 32px -20px rgba(13,16,32,.18); }
.piece:hover, .tile:hover, .quote:hover { border-color: rgba(13,16,32,.25); box-shadow: 0 2px 4px rgba(13,16,32,.05), 0 24px 48px -24px rgba(13,16,32,.28); }
.piece::before { background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(91,61,255,.08), transparent 45%); }
.piece.feature { background: linear-gradient(120deg, #eef0ff, #ffffff 55%, #e6fbf8); border-color: rgba(13,16,32,.12); }
.piece.c1, .piece.c2, .piece.c3, .piece.c4, .piece.c5, .piece.c6 { background: #fff; }
.piece .bignum { -webkit-text-stroke: 1px rgba(13,16,32,.1); }
.piece blockquote { color: var(--ink); } .piece blockquote::before { color: var(--accent); }
.piece .pub, .worklist .pub, .video .views { color: var(--sky); }
.tile::after, .piece::after, .quote::after, .spec::after, .stat::after { opacity: .35; }
.tile.t1 { background: #5b3dff; color: #fff; border-color: #5b3dff; }
.tile.t2 { background: #00b3a4; color: #04201d; border-color: #00b3a4; }
.tile.t3 { background: #ff6a1a; color: #1f0a00; border-color: #ff6a1a; }
.tile.t4 { background: #1744ff; color: #fff; border-color: #1744ff; }
.tile.t5 { background: #ffc43d; color: #231800; border-color: #ffc43d; }
.tile.t6 { background: #ff2d7a; color: #fff; border-color: #ff2d7a; }
.tile.t7 { background: #12c2e9; color: #04262c; border-color: #12c2e9; }
.tile.t8 { background: #0d1020; color: #fff; border-color: #0d1020; }
.tile[class*=" t"]::before { background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.3), transparent 45%); }
.band { background: #0d1020; color: #f6f7fb; }
.band::before { opacity: .7; background: radial-gradient(60% 80% at 10% 20%, rgba(91,61,255,.6), transparent 60%), radial-gradient(50% 70% at 90% 30%, rgba(0,179,164,.45), transparent 60%), radial-gradient(70% 60% at 50% 100%, rgba(31,123,255,.55), transparent 60%); }
.band::after { background: rgba(13,16,32,.25); }
.band .statement, .band h2, .band p, .band .eyebrow, .band a:not(.btn) { color: #f6f7fb; }
.band .eyebrow::before { background: #f6f7fb; }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn:hover { background: var(--sky); border-color: var(--sky); color: #fff; }
.band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.band .btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.band .stat { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.band .stat strong, .band .stat span { color: #f6f7fb; }
.band .stat::before { background: var(--aqua); }
.band .kpi { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.band .kpi strong, .band .kpi span { color: #f6f7fb; }
.quote::before { color: var(--orange); }
.quote cite strong { color: var(--ink); }
.pull { border-left-color: var(--accent); color: var(--ink-2); }
.spec { background: #fff; border-color: var(--line); box-shadow: 0 12px 32px -20px rgba(13,16,32,.18); }
.spec::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.spec .row { border-top-color: var(--line); } .spec .row span { color: var(--ink-2); }
.spec .row strong.hot { color: var(--accent); }
.kpi::before { background: var(--sky); }
.step::before { color: var(--accent); }
.faq summary::after { color: var(--accent); }
.faq p { color: var(--ink-2); }
.tag { border-color: rgba(13,16,32,.2); color: var(--ink); }
.tag.hot { background: var(--orange); color: #fff; border-color: var(--orange); }
input, textarea, select { background: #fff; border-color: rgba(13,16,32,.18); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline-color: var(--sky); border-color: var(--sky); }
.site-footer { border-top-color: var(--line); color: var(--muted); }
.site-footer a { color: var(--ink-2); } .site-footer a:hover { color: var(--accent); }
.site-footer .big { -webkit-text-stroke: 1px rgba(13,16,32,.15); }
.worklist li { border-bottom-color: var(--line); } .worklist { border-top-color: var(--line); }
.worklist a { color: var(--ink); } .worklist a:hover { color: var(--sky); text-decoration-color: var(--sky); }
.prose a { color: var(--accent); text-decoration-color: var(--accent); } .prose a:hover { color: var(--sky); }
.clientlist dt { color: var(--sky); } .clientlist dd { color: var(--ink-2); }
.jump a { color: var(--ink-2); border-color: var(--line); } .jump a:hover { color: var(--ink); border-color: var(--sky); }
.client { border-top-color: var(--line); } .client .head .kv { color: var(--sky); }
.video { background: #0d1020; } .video .dur { color: rgba(255,255,255,.7); } .video h3 { color: #fff; }
.video.more { background: linear-gradient(135deg, #5b3dff, #1744ff); } .video.more h3, .video.more .views, .video.more .dur { color: #fff; }
.post::after { background: linear-gradient(180deg, rgba(13,16,32,.05), rgba(13,16,32,.9)); } .post h3, .post .small, .post .eyebrow { color: #fff; }
.ahero-shade { background: linear-gradient(180deg, rgba(13,16,32,.3) 0%, rgba(13,16,32,.15) 35%, rgba(13,16,32,.88) 85%, var(--bg) 100%); }
.ahero h1, .standfirst, .ameta, .ahero .eyebrow { color: #fff; }
.ahero .eyebrow::before { background: #fff; }
.ahero-credit, .ahero-credit a { color: rgba(255,255,255,.75); }
.article-body p.lead::first-letter { color: var(--accent); }
.article-body h3 { color: var(--sky); } .article-body h2 .num { color: var(--accent); }
.aq { border-left-color: var(--accent); } .afig img { border-color: var(--line); }
.toc { border-left-color: var(--line); } .toc a { color: var(--ink-2); } .toc a:hover { color: var(--sky); }
.progress span { background: linear-gradient(90deg, var(--accent), var(--sky), var(--aqua)); }
.stat { background: #fff; border-color: var(--line); }
.nav { background: transparent; }
@media (max-width: 680px) { .nav { background: #fff; border-color: var(--line); box-shadow: 0 16px 40px -20px rgba(13,16,32,.3); } }

/* ===== Vivid layer: fixes, tints, geometry ===== */
@keyframes rail { to { background-position: 200% 0; } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--rz, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--rz, 0deg) + 2deg)); } }
@keyframes slowspin { to { transform: rotate(360deg); } }
@keyframes dashspin { to { transform: rotate(-360deg); } }

/* fixes */
.stat strong span { font-size: inherit; color: inherit; display: inline; margin: 0; }
.stat > span { font-size: .9rem; }
.piece .bignum { top: 10px; right: 18px; font-size: 5.6rem; -webkit-text-stroke: 1.5px rgba(13,16,32,.14); }
.piece .eyebrow, .piece h3 { padding-right: 110px; }
.piece.feature .eyebrow, .piece.feature h3 { padding-right: 0; }
.tile .k { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .14em; opacity: .85; top: 16px; right: 16px; padding: 4px 8px; border: 1px solid currentColor; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.hero .rotator.heat { background: none; color: var(--ink); -webkit-text-fill-color: initial; animation: none; }
.hero .rotator span { background: var(--heat); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; animation: shimmer 8s linear infinite; }
.hero .rotator span.on { filter: none; }
.piece.feature { grid-template-columns: 1.15fr .85fr; }

/* header rail */
.site-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, #5b3dff, #1f7bff, #12c2e9, #00b3a4, #ffc43d, #ff6a1a, #ff2d7a, #5b3dff); background-size: 200% 100%; animation: rail 14s linear infinite; }
.site-header { position: sticky; }

/* background */
.blob.a { background: radial-gradient(circle at 40% 40%, rgba(31,123,255,.3), transparent 60%); }
.blob.b { background: radial-gradient(circle at 50% 50%, rgba(0,179,164,.3), transparent 60%); }
.blob.c { background: radial-gradient(circle at 50% 50%, rgba(18,194,233,.34), transparent 62%); }

/* section tints and geometry */
section { position: relative; }
section > .wrap { position: relative; z-index: 1; }
main > section.tint-a { background: linear-gradient(180deg, rgba(31,123,255,.07), rgba(18,194,233,.13)); }
main > section.tint-b { background: linear-gradient(180deg, rgba(0,179,164,.09), rgba(255,196,61,.12)); }
main > section.tint-c { background: linear-gradient(180deg, rgba(31,123,255,.08), rgba(255,45,122,.08)); }
main > section[class*="tint-"] { clip-path: polygon(0 0, 100% 2.2vw, 100% 100%, 0 calc(100% - 2.2vw)); padding-top: clamp(84px, 11vw, 150px); padding-bottom: clamp(84px, 11vw, 150px); }
main > section[class*="tint-"]::before { content: ""; position: absolute; right: -9vw; top: -6vw; width: 34vw; height: 34vw; border: 2px solid rgba(91,61,255,.18); clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%); animation: slowspin 90s linear infinite; pointer-events: none; z-index: 0; }
main > section.tint-b::before { border-color: rgba(0,179,164,.28); }
main > section.tint-c::before { border-color: rgba(31,123,255,.22); }
main > section[class*="tint-"]::after { content: ""; position: absolute; left: -3vw; bottom: 5vw; width: 13vw; height: 13vw; background: linear-gradient(135deg, rgba(18,194,233,.45), rgba(91,61,255,.45)); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); animation: floaty 9s ease-in-out infinite; pointer-events: none; z-index: 0; }
main > section.tint-b::after { background: linear-gradient(135deg, rgba(255,196,61,.6), rgba(0,179,164,.5)); }
main > section.tint-c::after { background: linear-gradient(135deg, rgba(255,106,26,.55), rgba(255,45,122,.45)); }

/* hero art */
.hero-art { position: relative; height: clamp(240px, 32vw, 460px); --a: #5b3dff; --b: #12c2e9; --c: #ff6a1a; --d: #00b3a4; }
.hero-art i { position: absolute; display: block; }
.hero-art .p1 { right: 4%; top: 6%; width: 58%; height: 64%; --rz: -6deg; background: linear-gradient(135deg, var(--a), var(--b)); clip-path: polygon(0 0, 86% 0, 100% 14%, 100% 100%, 14% 100%, 0 86%); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--a) 60%, transparent); animation: floaty 10s ease-in-out infinite; }
.hero-art .p2 { left: 6%; bottom: 8%; width: 38%; height: 42%; --rz: 8deg; background: linear-gradient(135deg, var(--d), var(--b)); clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%); opacity: .95; animation: floaty 12s ease-in-out infinite reverse; }
.hero-art .p3 { left: 18%; top: 10%; width: 46%; height: 10px; background: var(--c); transform: rotate(-32deg); transform-origin: left center; }
.hero-art .p4 { right: 2%; bottom: 6%; width: 16%; height: 16%; background: var(--a); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .9; animation: floaty 8s ease-in-out infinite; }
.hero-art .ring { left: 36%; top: 28%; width: 40%; aspect-ratio: 1; height: auto; border: 3px dashed rgba(13,16,32,.55); border-radius: 50%; animation: dashspin 40s linear infinite; }
.hero-art .grid { inset: -6% -4%; background-image: radial-gradient(rgba(13,16,32,.22) 1.2px, transparent 1.3px); background-size: 22px 22px; z-index: -1; mask-image: radial-gradient(circle at 60% 50%, #000 40%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 60% 50%, #000 40%, transparent 75%); }
.hero-art .tag { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: #fff; color: var(--ink); padding: 8px 12px; border: 1px solid var(--ink); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.hero-art .t1 { right: 0; top: 0; }
.hero-art .t2 { left: 0; bottom: 0; }
body.home .hero-art { height: clamp(300px, 36vw, 540px); }
@media (max-width: 980px) { .hero-art { height: 260px; max-width: 520px; } }
@media (max-width: 680px) { .hero-art { display: none; } }
.hero .wrap > div:first-child { position: relative; z-index: 1; }

/* cards */
.piece { border-top: 5px solid var(--pc, var(--accent)); }
.piece.c1 { --pc: #1f7bff; background: linear-gradient(180deg, rgba(31,123,255,.10), #fff 60%); }
.piece.c2 { --pc: #00b3a4; background: linear-gradient(180deg, rgba(0,179,164,.12), #fff 60%); }
.piece.c3 { --pc: #ff6a1a; background: linear-gradient(180deg, rgba(255,106,26,.12), #fff 60%); }
.piece.c4 { --pc: #1744ff; background: linear-gradient(180deg, rgba(23,68,255,.10), #fff 60%); }
.piece.c5 { --pc: #ff2d7a; background: linear-gradient(180deg, rgba(255,45,122,.10), #fff 60%); }
.piece.c6 { --pc: #12c2e9; background: linear-gradient(180deg, rgba(18,194,233,.14), #fff 60%); }
.piece .eyebrow, .piece .pub { color: var(--pc, var(--sky)); }
.piece .eyebrow::before { background: var(--pc, var(--sky)); }
.piece blockquote::before { color: var(--pc, var(--accent)); }
.piece.feature { --pc: #1f7bff; border-top-width: 6px; border-image: linear-gradient(90deg, #1f7bff, #12c2e9, #00b3a4) 1; background: linear-gradient(120deg, #e4f1ff, #ffffff 48%, #dffbf5); }

/* quotes */
.quote { border-top: 4px solid var(--qc, var(--accent)); }
.quotes .quote:nth-child(5n+1) { --qc: #12c2e9; background: linear-gradient(180deg, rgba(18,194,233,.12), #fff 70%); }
.quotes .quote:nth-child(5n+2) { --qc: #00b3a4; background: linear-gradient(180deg, rgba(0,179,164,.11), #fff 70%); }
.quotes .quote:nth-child(5n+3) { --qc: #1f7bff; background: linear-gradient(180deg, rgba(31,123,255,.10), #fff 70%); }
.quotes .quote:nth-child(5n+4) { --qc: #ffc43d; background: linear-gradient(180deg, rgba(255,196,61,.16), #fff 70%); }
.quotes .quote:nth-child(5n+5) { --qc: #ff6a1a; background: linear-gradient(180deg, rgba(255,106,26,.11), #fff 70%); }
.quote::before { color: var(--qc, var(--orange)); }

/* steps, kpis, stats */
.steps .step:nth-child(5n+1) { --sc: #5b3dff; } .steps .step:nth-child(5n+2) { --sc: #00b3a4; } .steps .step:nth-child(5n+3) { --sc: #1f7bff; } .steps .step:nth-child(5n+4) { --sc: #ff6a1a; } .steps .step:nth-child(5n+5) { --sc: #ff2d7a; }
.step { border-left: 5px solid var(--sc, var(--accent)); }
.step::before { color: var(--sc, var(--accent)); }
.kpis .kpi:nth-child(4n+1) { --kc: #5b3dff; } .kpis .kpi:nth-child(4n+2) { --kc: #00b3a4; } .kpis .kpi:nth-child(4n+3) { --kc: #ff6a1a; } .kpis .kpi:nth-child(4n+4) { --kc: #1f7bff; }
.kpi::before { background: var(--kc, var(--sky)); }
.kpi strong { color: var(--kc, var(--ink)); }
.stats .stat:nth-child(4n+1) { --kc: #12c2e9; } .stats .stat:nth-child(4n+2) { --kc: #00b3a4; } .stats .stat:nth-child(4n+3) { --kc: #ffc43d; } .stats .stat:nth-child(4n+4) { --kc: #ff6a1a; }
.stat::before { background: var(--kc, var(--aqua)); }
.band .stat::before { background: var(--kc, var(--aqua)); }
.band .stat strong { color: var(--kc, #fff); }

/* pull quotes in proof columns */
.pull { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky); box-shadow: 0 12px 32px -22px rgba(13,16,32,.25); padding: 18px 22px; margin: 0 0 10px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.pull + .small { margin: 0 0 22px 4px; }
.pull:nth-of-type(2) { border-left-color: var(--aqua); }
.pull:nth-of-type(3) { border-left-color: var(--orange); }
.worklist .pub { background: rgba(31,123,255,.1); color: var(--accent-2); padding: 3px 8px; font-size: .72rem; }

/* bands: ink with cool light, no purple wash */
.band { background: #0b1230; clip-path: polygon(0 0, 100% 2.2vw, 100% 100%, 0 calc(100% - 2.2vw)); padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(96px, 12vw, 180px); border: 0; }
.band::before { opacity: 1; background: radial-gradient(45% 70% at 88% 18%, rgba(18,194,233,.55), transparent 60%), radial-gradient(55% 55% at 8% 92%, rgba(0,179,164,.5), transparent 60%), linear-gradient(115deg, rgba(23,68,255,.55), transparent 55%); animation: none; }
.band::after { background: none; }
.band .wrap::before { content: ""; position: absolute; right: -2vw; top: -8vw; width: 26vw; height: 26vw; border: 2px solid rgba(255,255,255,.18); clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%); animation: slowspin 80s linear infinite; pointer-events: none; z-index: -1; }
.band .wrap::after { content: ""; position: absolute; right: 24vw; top: -2vw; width: 7vw; height: 7vw; background: linear-gradient(135deg, #ffc43d, #ff6a1a); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: floaty 9s ease-in-out infinite; pointer-events: none; z-index: -1; opacity: .9; }
.band .wrap { position: relative; z-index: 1; }
.band .eyebrow { color: #12c2e9; } .band .eyebrow::before { background: #12c2e9; }

/* marquee */
.marquee .item:nth-child(4n+1)::after { background: #5b3dff; } .marquee .item:nth-child(4n+2)::after { background: #00b3a4; } .marquee .item:nth-child(4n+3)::after { background: #ff6a1a; } .marquee .item:nth-child(4n+4)::after { background: #1f7bff; }

/* footer */
.site-footer { position: relative; border-top: 0; padding-top: 72px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #5b3dff, #1f7bff, #12c2e9, #00b3a4, #ffc43d, #ff6a1a, #ff2d7a); }
.site-footer .big { -webkit-text-stroke: 1.5px rgba(91,61,255,.35); }

/* misc */
.jump a { background: #fff; } .jump a:nth-child(4n+1):hover { border-color: #5b3dff; } .jump a:nth-child(4n+2):hover { border-color: #00b3a4; } .jump a:nth-child(4n+3):hover { border-color: #ff6a1a; }
.faq details[open] { border-left: 4px solid var(--sky); padding-left: 16px; }
.section-head h2 .serif { position: relative; }
@media (prefers-reduced-motion: reduce) { .hero-art i, .band .wrap::before, .band .wrap::after, main > section[class*="tint-"]::before, main > section[class*="tint-"]::after, .site-header::before { animation: none !important; } }

/* six tiles */
.bento { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) and (min-width: 681px) { .bento { grid-template-columns: repeat(2, 1fr); } }
.tile { min-height: 260px; }

/* footer wordmark: small */
.site-footer .big { font-size: 1.1rem; letter-spacing: .18em; line-height: 1; color: var(--ink); -webkit-text-stroke: 0; margin-bottom: 20px; }
