:root {
  --bg: #0f0f0e;
  --surface: #181817;
  --surface-2: #1f1f1e;
  --line: #2a2a28;
  --line-soft: #333331;
  --text: #f1f1ee;
  --text-2: #a8a8a3;
  --text-3: #8a8a85;
  --muted: #6b6b67;
  --accent: #b9f24a;
  --accent-ink: #3f5a10;
  --text-1: #d6d6d1;
  --glass: rgba(24, 24, 23, 0.92);
  --focus: var(--accent);
  --radius: 12px;
  --max: 1328px;
  --gutter: clamp(20px, 4vw, 56px);
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; min-width: 0; }
html, body { overflow-x: clip; }
html { color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Nav */
.nav-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--gutter) 0; }
.nav-wrap .brand { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 11px 14px 11px 16px; border-radius: 8px; min-height: 44px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .25s cubic-bezier(.2,.7,.2,1), color .25s cubic-bezier(.2,.7,.2,1), border-color .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s cubic-bezier(.2,.7,.2,1);
}
.btn:hover { color: var(--bg); background: #fff; box-shadow: 0 14px 26px -16px rgba(241,241,238,.4); }
.btn:active { background: var(--text-1); box-shadow: none; transition-duration: .1s; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-soft); background: var(--surface-2); box-shadow: none; }
.btn.ghost:active { background: var(--surface); }
.chip {
  width: 22px; height: 22px; border-radius: 5px; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .35s cubic-bezier(.22,1,.3,1.06), background-color .25s ease;
}
.chip svg { width: 12px; height: 12px; color: var(--bg); transition: color .25s ease; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .25s cubic-bezier(.2,.7,.2,1), color .25s cubic-bezier(.2,.7,.2,1), border-color .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.98); }
}

/* Hero */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero h1 { font-size: clamp(44px, min(6.1vw, 12vh), 88px); line-height: 1.0; font-weight: 700; letter-spacing: -0.04em; margin: 0 0 28px; text-wrap: balance; }
.hero p { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 520px; margin: 0; }

/* Sections */
.section { padding: 24px 0 0; }
.label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; margin: 0 0 28px; letter-spacing: 0; }
.label::before { content: ""; width: 10px; height: 10px; background: var(--accent); transform: skewX(-12deg); display: inline-block; }

.work { padding: 64px 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 170px; position: relative; overflow: hidden; }
.work-card > * { position: relative; }
.work-card:hover { color: inherit; border-color: var(--line-soft); }
.work-card .tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.work-card h3 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.work-card .meta { font-size: 13px; color: var(--text-3); margin-top: auto; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step .n { width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 15px; color: var(--text-2); max-width: 60ch; }

/* CTA + footer */
.cta { margin: 32px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.cta h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 10px; text-wrap: balance; }
.cta p { margin: 0; color: var(--text-2); max-width: 60ch; }
.cta .side { display: flex; flex-direction: column; gap: 22px; align-self: center; }
.cta .side .k { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.cta .who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); }
.cta .who:hover { color: var(--text-2); }
.cta .who .who-mark { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); flex-shrink: 0; }
.cta .who .who-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cta .who span { display: flex; flex-direction: column; gap: 1px; }
.cta .who b { color: var(--text); font-size: 14px; font-weight: 600; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form { display: grid; gap: 18px; margin-top: 28px; max-width: 480px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: 13px; font-weight: 600; color: var(--text-1); }
.form label .req { color: var(--accent); font-weight: 600; }
.form label .opt { color: var(--text-3); font-weight: 400; }
.form .hint { margin: -2px 0 0; font-size: 12.5px; color: var(--text-3); }
.form input, .form textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; min-height: 44px; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185,242,74,.18); }
.form .field.has-error input, .form .field.has-error textarea { border-color: #e2735c; }
.form .field-error { margin: -2px 0 0; font-size: 12.5px; color: #e2735c; }
.form .form-fields { display: grid; gap: 18px; }
.form button[type="submit"] { justify-self: start; margin-top: 4px; }
.form-status { font-size: 14px; margin: 0; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #e2735c; }
footer { padding: 48px 0 40px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
footer .links { display: flex; gap: 8px; }
footer .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
footer .brand { min-height: 44px; }

/* Article (case study, about) */
.article-head { padding: 88px 0 40px; max-width: 900px; }
.article-head .kicker { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 20px; }
.article-head h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 24px; text-wrap: balance; }
.article-head .lede { font-size: 20px; color: var(--text-2); line-height: 1.5; max-width: 720px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 40px 0 0; }
.facts div { background: var(--surface); padding: 18px 20px; font-size: 14px; }
.facts div b { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.prose { max-width: 720px; font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; margin: 64px 0 18px; }
.prose h3 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 6px; }
.prose .when { font-size: 14px; color: var(--text-3); margin: 0 0 14px; }
.prose p { margin: 0 0 18px; color: var(--text-1); }
.prose ul { padding-left: 20px; margin: 0 0 18px; color: var(--text-1); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.results li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; color: var(--text) !important; }
.results b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.figure { margin: 28px 0 32px; max-width: 1000px; }
.figure img { border-radius: 10px; border: 1px solid var(--line); }
.figure figcaption { font-size: 13px; color: var(--text-3); margin-top: 10px; max-width: 72ch; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin: 28px 0; color: var(--text-1); font-size: 17px; }
.callout::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 12px; }
.partner { margin: 72px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px; max-width: 900px; }
.partner h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -0.03em; }
.partner p { margin: 0 0 20px; color: var(--text-2); }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 72px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 56px; }
  .hero h1 { margin-bottom: 24px; }
  .facts { grid-template-columns: 1fr; }
  .results li { grid-template-columns: 1fr; gap: 6px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 28px; margin-top: 48px; }
  .partner { padding: 24px; }
  footer { flex-direction: column; }
}

/* Motion (motion.js adds .js on <html>; .reduce when the user prefers reduced motion) */
.js:not(.reduce) [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .7s cubic-bezier(.2,.7,.2,1), translate .7s cubic-bezier(.2,.7,.2,1); }
.js:not(.reduce) [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js:not(.reduce) .hero h1 { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.js:not(.reduce) .hero p { animation: rise .8s .12s cubic-bezier(.2,.7,.2,1) both; }
.js:not(.reduce) .hero .figure-cutout { animation: rise .9s .22s cubic-bezier(.2,.7,.2,1) backwards; }
.js:not(.reduce) .article-head > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.js:not(.reduce) .article-head > *:nth-child(2) { animation-delay: .08s; }
.js:not(.reduce) .article-head > *:nth-child(3) { animation-delay: .16s; }
.js:not(.reduce) .article-head > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; translate: 0 16px; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover .chip { transform: translateX(4px); }
  .btn:active .chip { transform: translateX(2px); }
}
.figure img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.figure:hover img { transform: scale(1.01); }
.em { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size .5s ease .3s; }
.js:not(.reduce) .is-in .em, .js:not(.reduce) .hero .em, .js:not(.reduce) .article-head .em { background-size: 100% 2px; }

/* Background: soft lime glow plus grain, fixed behind everything (body[data-bg="glow"]). */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg::before, .bg::after { content: ""; position: absolute; inset: 0; }
/* grain: film noise + vignette, static */
/* grid: fine dot grid that fades out toward the edges */
/* glow: one lime radial light behind the hero plus grain, slow breathing */
body[data-bg="glow"] .bg::before { background: radial-gradient(52% 42% at 22% 8%, rgba(185,242,74,.18), transparent 70%), radial-gradient(40% 32% at 88% 18%, rgba(241,241,238,.06), transparent 70%); animation: breathe 14s ease-in-out infinite alternate; }
body[data-bg="glow"] .bg::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); opacity: .06; }
@keyframes breathe { from { transform: translate3d(0,0,0) scale(1); opacity: .9; } to { transform: translate3d(2%, 1.5%, 0) scale(1.06); opacity: 1; } }
/* aurora: two blurred blobs drifting slowly, lime and cold blue, very low opacity */
@keyframes driftA { from { transform: translate3d(-4%, -2%, 0) scale(1); } to { transform: translate3d(8%, 12%, 0) scale(1.15); } }
@keyframes driftB { from { transform: translate3d(6%, 4%, 0) scale(1.1); } to { transform: translate3d(-8%, 16%, 0) scale(0.95); } }
.reduce .bg::before, .reduce .bg::after { animation: none !important; }

/* About: cutout figure, no card — floats on the page's own lime glow */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: end; }
.figure-cutout { position: relative; max-width: 340px; margin-inline: auto; display: flex; justify-content: center; }
.figure-cutout::before {
  content: ""; position: absolute; inset: -10% -26% -6%; z-index: 0; pointer-events: none;
  background: radial-gradient(56% 46% at 50% 30%, rgba(185,242,74,.30), transparent 72%);
}
.figure-cutout img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 34px rgba(0,0,0,.55)); }
.figure-cutout .tag {
  position: absolute; z-index: 2; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap;
  background: rgba(15,15,14,.82); backdrop-filter: blur(6px); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.figure-cutout .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@media (max-width: 1024px) { .about-head { grid-template-columns: minmax(0, 1fr); } .figure-cutout { max-width: 300px; } }

/* Hero canvas + mark */
.hero { position: relative; }
.hero-canvas { position: absolute; inset: -40px 0 0 0; width: 100%; height: calc(100% + 40px); z-index: -1; pointer-events: none; }
.hero > *:not(.hero-canvas) { position: relative; }
.mark { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.nav-wrap .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; flex-shrink: 0; }
footer .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
footer .mark { width: 18px; height: 18px; opacity: .9; }
.cta { position: relative; overflow: hidden; }
.cta .mark-bg { position: absolute; right: -40px; bottom: -70px; width: 320px; height: 320px; opacity: .06; pointer-events: none; }
@media (max-width: 640px) { .cta .mark-bg { width: 220px; height: 220px; right: -60px; bottom: -60px; } }

/* Keyboard focus, selection, scrollbar: browser surfaces themed from the palette */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
html { scrollbar-color: var(--line-soft) var(--bg); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }


/* Skip link */
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.skip:focus { top: 16px; outline-offset: 2px; color: var(--bg); }

/* Hero proof card: two numbers and the line between them */

/* ---- Effects ported from Magic UI / SmoothUI / Unlumen UI, vanilla ---- */

/* 1. Border beam: a light travelling around the hero card's border */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.beam { isolation: isolate; }
.beam::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 62%, rgba(185, 242, 74, .35) 74%, var(--accent) 84%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: beam 5s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }

/* 2. Spotlight: the work cards light up where the pointer is */
.work-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 242, 74, .13), transparent 62%); }
.work-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 242, 74, .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
@media (hover: hover) { .work-card:hover::before, .work-card:hover::after { opacity: 1; } }

/* 5. Number flow: each digit is a column that rolls to its value */
.roll { display: inline-flex; align-items: baseline; }
.roll .d { display: inline-block; height: 1.06em; line-height: 1.06; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.roll .d span { display: block; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.roll .d span i { display: block; height: 1.06em; font-style: normal; }
.roll .s { display: inline-block; line-height: 1.06; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 6. Before / after slide in the case pages */
.ba { position: relative; width: 100%; max-width: 720px; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); user-select: none; touch-action: none; margin: 28px 0 12px; font-family: var(--font); }
.ba .pane { position: absolute; inset: 0; padding: 22px 26px; display: flex; flex-direction: column; justify-content: space-between; }
.ba .pane.after { background: var(--accent); color: var(--bg); clip-path: inset(0 0 0 var(--cut, 55%)); }
.ba .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; }
.ba .after .k { color: var(--accent-ink); }
.ba .big { font-size: clamp(40px, 7vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ba .rows { display: grid; gap: 3px; font-size: 14px; line-height: 1.4; color: var(--text-1); }
.ba .after .rows { color: var(--accent-ink); }
.ba .rows b { font-weight: 600; color: inherit; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 55%); width: 2px; background: var(--text); transform: translateX(-1px); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; border-radius: 50%; background: var(--text) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l-5 6 5 6M15 6l5 6-5 6'/></svg>") center / 18px no-repeat; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.ba input[type=range]:focus-visible + .handle::after { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .ba { aspect-ratio: 3 / 2; } .ba .pane { padding: 16px 18px; } }

@media (prefers-reduced-motion: reduce) {
  .beam::after { animation: none; }
  .roll .d span { transition: none; }
}

/* Nav: the mail address as a plain link, no second button competing with the hero */

/* Work cards carry their headline number */
.work-card .num { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); margin: 8px 0 4px; }
.work-card .num .sr { position: absolute; }

/* Before / after: the after panel reads from the right, so it is visible at any cut */
.ba .pane.after { align-items: flex-end; text-align: right; }
.ba .after .rows { justify-items: end; }

/* ---- Section tabs (ported from Unlumen's motion tabs menu): a floating pill, icon-only when idle, label when active ---- */
body { padding-bottom: 120px; }

/* Panels: one at a time, direction-aware entrance */
.panel { padding: 8px 0 0; min-height: 320px; }
.panel[hidden] { display: none; }
.js:not(.reduce) .panel.from-right { animation: panel-right .4s cubic-bezier(.2,.8,.2,1) both; }
.js:not(.reduce) .panel.from-left { animation: panel-left .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes panel-right { from { opacity: 0; translate: 28px 0; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes panel-left { from { opacity: 0; translate: -28px 0; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

/* About panel */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; margin-bottom: 48px; }
.about-intro h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; text-wrap: balance; }
.about-intro p { color: var(--text-2); max-width: 60ch; margin: 0 0 22px; font-size: 17px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 26px; border-left: 1px solid var(--line-soft); }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: skewX(-8deg); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline .when { display: block; font-size: 12px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.timeline b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 52ch; }
.creds { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 8px; }
.creds li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.creds b { font-weight: 600; }
.creds span { color: var(--text-3); }
@media (max-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .about-stats { max-width: 440px; } }

/* FAQ accordion (ported from Unlumen's motion FAQs accordion): one open at a time, height animated */
.faq-label { margin-top: 44px; }
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s ease; }
.faq-item.is-open { border-color: var(--line-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; border-radius: 12px; }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: var(--accent); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--bg); transform: translate(-50%, -50%); border-radius: 1px; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon { transform: rotate(135deg); }
.faq-a { height: 0; overflow: hidden; transition: height .45s cubic-bezier(.2,.8,.2,1); }
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 62ch; }

/* Dock: a glass capsule pinned to the bottom. Sections are text; a lime pill glides under the current one, a soft pill follows the cursor between items (fine pointers), contact actions are icons. */
.dock { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 20; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.dock-inner { position: relative; isolation: isolate; pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 5px; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--line-soft); border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.dock-item { position: relative; z-index: 1; height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .005em; text-decoration: none; white-space: nowrap; transition: color .25s ease, transform .22s cubic-bezier(.3,1.5,.5,1); }
.dock-item:hover { color: var(--text); }
.dock-item:active { transform: scale(.94); }
.dock-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dock-item.is-current, .dock-item.is-current:hover { color: var(--bg); background: var(--accent); }
.dock-inner.has-pill .dock-item.is-current { background: transparent; }
.dock-label { display: inline-block; }
.dock-item svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-item[data-dock="home"] svg, .dock-item[data-dock="about"] svg, .dock-item[data-dock="work"] svg, .dock-item[data-dock="how-it-works"] svg { display: none; }
.dock-item[data-dock="book"] { color: var(--accent); }
.dock-item[data-dock="book"]:hover { color: var(--text); }
.dock-sep { width: 1px; height: 18px; background: var(--line-soft); margin: 0 4px; flex-shrink: 0; }
.dock-pill, .dock-hover { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 999px; opacity: 0; }
.dock-pill { background: var(--accent); box-shadow: 0 4px 18px rgba(185,242,74,.22); }
.dock-hover { background: rgba(241,241,238,.08); }
.dock-pill.is-on, .dock-hover.is-on { opacity: 1; }
.js:not(.reduce) .dock-pill.is-ready { transition: transform .55s cubic-bezier(.3,1.2,.4,1), width .4s cubic-bezier(.2,.9,.3,1), opacity .2s ease; }
.js:not(.reduce) .dock-hover { transition: transform .35s cubic-bezier(.25,1,.35,1), width .3s cubic-bezier(.25,1,.35,1), opacity .2s ease; }
.js:not(.reduce) .dock-hover.snap { transition: none; }
.js:not(.reduce) .dock-item.hop .dock-label { animation: dock-pop .5s cubic-bezier(.3,1.4,.5,1); }
.js:not(.reduce) .dock-inner { animation: dock-in .7s .3s cubic-bezier(.2,.9,.25,1.05) backwards; }
.js:not(.reduce) .dock-item, .js:not(.reduce) .dock-sep { animation: dock-item-in .5s calc(.5s + var(--i, 0) * 55ms) cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes dock-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes dock-in { from { opacity: 0; translate: 0 26px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes dock-item-in { from { opacity: 0; translate: 0 10px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 21; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 16px; font-size: 13px; color: var(--text-1); box-shadow: 0 14px 40px rgba(0,0,0,.5); transition: opacity .3s ease, transform .3s ease; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .toast { bottom: 84px; font-size: 12.5px; padding: 9px 14px; } }
/* Narrow windows and tablets: contact actions collapse to icon-only circles (labels stay for screen readers) so the full capsule always fits. */
@media (max-width: 900px) {
  .dock-item[data-dock="book"], .dock-item[data-dock="wa"], .dock-item[data-dock="in"] { width: 40px; padding: 0; }
  .dock-item[data-dock="book"] .dock-label, .dock-item[data-dock="wa"] .dock-label, .dock-item[data-dock="in"] .dock-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The "Case studies" / "Casos de éxito" dock label only fits from ~480px up (measured); narrower windows fall back to the short "Cases" / "Casos" so the capsule never overflows. */
.dock-label-short { display: none; }
@media (max-width: 640px) {
  .dock-label-short { display: inline; }
  .dock-label-long { display: none; }
}
/* Phones: tighter capsule; sections and contact icons shrink with the viewport so all seven fit down to 320px. */
@media (max-width: 640px) {
  .dock { bottom: 10px; padding: 0 10px; }
  .dock-inner { padding: 4px; gap: 1px; }
  .dock-item { height: 38px; padding: 0 clamp(7px, 2.2vw, 11px); font-size: clamp(11px, 3.1vw, 13px); }
  .dock-item[data-dock="book"], .dock-item[data-dock="wa"], .dock-item[data-dock="in"] { width: 34px; }
  .dock-sep { margin: 0 2px; }
  .dock-item[data-dock="home"] { display: none; }
}
@media (max-width: 360px) {
  .dock { padding: 0 8px; }
  .dock-item { padding: 0 6px; }
  .dock-item[data-dock="book"], .dock-item[data-dock="wa"], .dock-item[data-dock="in"] { width: 32px; }
  .dock-sep { margin: 0 1px; }
}
@media (max-width: 330px) {
  .dock-item { padding: 0 5px; font-size: 10.5px; }
  .dock-item[data-dock="book"], .dock-item[data-dock="wa"], .dock-item[data-dock="in"] { width: 30px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-icon, .dock-item { transition: none; }
}

/* About page: LinkedIn recommendation */
.prose .quote { margin: 40px 0; padding: 24px 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.prose .quote::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 16px; }
.prose .quote p { margin: 0 0 12px; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.35; color: var(--text); }
.prose .quote footer { font-size: 14px; color: var(--text-3); }
.prose .quote footer a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.prose .timeline { margin: 8px 0 0; } .prose .timeline li { margin: 0; } .prose .timeline p { font-size: 16px; }
.prose .creds { margin: 8px 0 0; } .prose .creds li { margin: 0; }


/* Case-study cards, v2 (anatomy ported from Unlumen's Team Stack): chart on top, one featured card, CTA pill */
.work-card { padding: 16px 20px 20px; gap: 10px; }
.work-card .fig { position: relative; margin: 0 0 6px; padding: 14px 14px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.work-card .mini { display: block; width: 100%; height: 64px; overflow: visible; }
.work-card .mini .b { fill: rgba(241,241,238,.16); }
.work-card .mini .l { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.work-card .mini .d { fill: var(--accent); }
.work-card .fig-k { display: block; margin-top: 8px; font-size: 11px; color: var(--text-3); letter-spacing: .01em; }
.work-card .tag { margin-top: 4px; }
.work-card .num { margin: 2px 0 2px; }
.work-card > .pill { position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-grid; grid-template-columns: 36px 0fr; align-items: center; height: 36px; border-radius: 999px; background: var(--text); color: var(--bg); transition: grid-template-columns .5s cubic-bezier(.22,1,.3,1.06), background .25s ease; }
.work-card .pill .ic { width: 36px; height: 36px; display: grid; place-items: center; }
.work-card .pill svg { width: 14px; height: 14px; }
.work-card .pill .pill-l { min-width: 0; overflow: hidden; white-space: nowrap; }
.work-card .pill .pill-l span { display: block; padding-right: 14px; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .3s ease .05s; }
.work-card:hover .pill { grid-template-columns: 36px 1fr; background: var(--accent); color: var(--bg); }
.work-card:hover .pill .pill-l span { opacity: 1; }
.work-card.featured { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.work-card.featured:hover { border-color: var(--accent); }
.work-card.featured .tag { color: var(--accent-ink); }
.work-card.featured .num { color: var(--bg); }
.work-card.featured h3 { color: var(--bg); }
.work-card.featured .meta, .work-card.featured .fig-k { color: rgba(15,15,14,.62); }
.work-card.featured .fig { background: rgba(15,15,14,.08); border-color: rgba(15,15,14,.10); }
.work-card.featured .mini .b { fill: rgba(15,15,14,.72); }
.work-card.featured .mini .l { stroke: var(--bg); }
.work-card.featured .mini .d { fill: var(--bg); }
.work-card.featured::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 62%); }
.work-card.featured::after { display: none; }
.work-card.featured > .pill { background: var(--bg); color: var(--accent); }
.work-card.featured:hover .pill { background: var(--bg); color: var(--accent); }
@media (min-width: 1025px) {
  .work-card.featured, .work-card.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto 1fr auto; column-gap: 28px; align-items: start; padding: 22px 24px 24px; }
  .work-card.featured .fig, .work-card.wide .fig { grid-column: 2; grid-row: 1 / -1; align-self: stretch; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px; }
  .work-card.featured .mini, .work-card.wide .mini { height: 128px; }
  .work-card.featured .num { font-size: 56px; }
  .work-card.featured h3, .work-card.wide h3 { font-size: 24px; }
  .work-card.featured .meta, .work-card.wide .meta { margin-top: 12px; }
}
/* Portrait on /about/ is the same square crop as the home */
.portrait.square { aspect-ratio: 1; }
.portrait.square img { object-position: center; }

/* Hero portrait: the same no-card cutout used on About, so the person shows up floating on the
   hero's own particle/glow background instead of boxed in a frame. */
.hero .figure-cutout { max-width: 420px; }
@media (max-width: 1024px) { .hero .figure-cutout { max-width: 320px; } }
@media (max-width: 640px) { .hero .figure-cutout { max-width: 260px; } }

/* About panel: the numbers card (the hero owns the photo, this block owns the numbers) */
.about-stats { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px 6px; }
.about-stats .k { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.about-stats .astat { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.about-stats .astat:first-of-type { border-top: 0; }
.about-stats .astat b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--text); position: relative; }
.about-stats .astat > span { font-size: 13px; color: var(--text-3); line-height: 1.4; }

/* Case pages: key phrase in the lede, metrics in lime */
.lede .key { color: var(--text); font-weight: 600; }
.lede .key .n { color: var(--accent); }

/* Sections on the home: the dock switches them; each panel names itself */
.panels { margin-top: 8px; }
.panel-head { margin: 8px 0 26px; }
.panel-head h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 8px; }
.panel-head p { margin: 0; color: var(--text-2); max-width: 60ch; }
/* What the fee includes: under the hero, and restated in .cta on case pages */
.includes { margin: 8px 0 48px; }
.trust { font-size: 13px; line-height: 1.5; color: var(--text-3); max-width: 540px; margin: 0 0 20px; }
.price { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price li { font-size: 13.5px; line-height: 1.45; color: var(--text-2); padding-top: 12px; border-top: 1px solid var(--line); }
.price b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
@media (max-width: 640px) { .price { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
/* Case pages: price in the partner block, next case */
.partner-price { color: var(--text-1); font-weight: 600; margin: -6px 0 20px; }
.case-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 14px; }
.case-nav a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.case-nav a:hover { color: var(--text); }
.nav-meta { margin: 0; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.nav-meta a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.lang-toggle { color: var(--text-1); font-weight: 700; font-size: 13px; text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.lang-toggle:hover { color: var(--accent); }
@media (max-width: 640px) { .nav-meta span:nth-of-type(2), .nav-meta span:nth-of-type(3) { display: none; } .nav-meta { font-size: 12px; } }
@media (max-width: 400px) { .nav-meta span:nth-of-type(1), .nav-meta span:nth-of-type(4) { display: none; } }

/* Book a call: a ghost button with a lime calendar chip next to the primary CTAs */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chip svg.ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Industries: static outline chips, staggered in */
.industries { margin: -8px 0 0; }
.industries .k { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.tags, .prose .tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .prose .tags li { margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-1); font-size: 13.5px; font-weight: 600; line-height: 1.2; transition: border-color .25s ease, color .25s ease; }
.tags li::before, .prose .tags li::before { content: none; }
@media (hover: hover) { .tags li:hover { border-color: var(--line-soft); color: var(--text); } }
.js:not(.reduce) .industries .tags li { animation: rise .6s calc(.2s + var(--i, 0) * 45ms) cubic-bezier(.2,.7,.2,1) backwards; }
.js:not(.reduce) [data-reveal] .tags li { opacity: 0; translate: 0 10px; transition: opacity .5s calc(var(--i, 0) * 45ms) ease, translate .5s calc(var(--i, 0) * 45ms) cubic-bezier(.2,.7,.2,1), border-color .25s ease, color .25s ease; }
.js:not(.reduce) [data-reveal].is-in .tags li { opacity: 1; translate: 0 0; }
