/* 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(6, 1fr); gap: 14px; grid-auto-flow: dense; }
.tile {
  grid-column: span 2; 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); }
  .tile, .tile.wide { grid-column: span 1; }
  .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; }
