/* ---------- Tokens (dark theme) ---------- */
:root {
  color-scheme: dark;
  --bg: #0B0E1A;
  --bg2: #10142A;
  --surface: #161C35;
  --surface2: #1E2648;
  --text: #EEF2FF;
  --soft: rgba(238, 242, 255, .72);
  --line: rgba(255, 255, 255, .1);
  --accent: #FF7A4D;
  --accent2: #FF4D8D;
  --mustard: #F5B841;
  --sky: #7CC4F2;
  --mint: #5EEAD4;
  --violet: #A78BFA;
  --ivory: #F2EBDD;
  --navy: #1F2E5C;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: min(1400px, 88vw);
  --gutter: clamp(18px, 4vw, 48px);
  /* One left edge for every section: content aligns to a 1200px column, backgrounds stay full-bleed */
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --grad: linear-gradient(90deg, var(--accent), var(--accent2));
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* Cross-document View Transitions: a container morphs into its project page */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 clamp(17px, 0.3vw + 15px, 19px)/1.65 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
h3 { font-size: 1.15rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
pre { font: 500 13px/1.5 var(--mono); white-space: pre-wrap; margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--mustard)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--accent2); }
.cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor.is-visible { opacity: 1; }
.cursor-ring, .cursor-dot { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor-ring { width: 30px; height: 30px; border: 1.5px solid rgba(255,255,255,.8); }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.cursor-label { position: absolute; left: 24px; top: 14px; font: 800 11px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); background: var(--text); padding: 6px 8px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor-ring { width: 54px; height: 54px; background: rgba(255,122,77,.12); border-color: var(--accent); }
.cursor.is-hover .cursor-dot { opacity: 0; }
.cursor.is-hover .cursor-label:not(:empty) { opacity: 1; }
.has-cursor, .has-cursor * { cursor: none !important; }

/* ---------- Robotic arm (desktop with a mouse; hero only) ---------- */
.arm { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; overflow: visible; filter: drop-shadow(0 0 6px rgba(255,122,77,.35)); transition: opacity .45s var(--ease); }
.arm[hidden] { display: none; }
.arm.is-away { opacity: 0; }
.arm .seg { stroke: #DDE4FF; stroke-width: 9; stroke-linecap: round; }
.arm .rail { stroke: var(--surface2); stroke-width: 5; stroke-linecap: round; }
.arm .mount { fill: var(--surface2); stroke: rgba(255,255,255,.25); }
.arm .joint { fill: var(--mustard); stroke: var(--bg); stroke-width: 3; }
.arm .tipdot { fill: var(--accent); }
.arm .jaw { stroke: #DDE4FF; stroke-width: 6; stroke-linecap: round; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--pad); background: rgba(11, 14, 26, .78); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 46px; height: 46px; flex-shrink: 0; overflow: visible; filter: drop-shadow(0 6px 14px rgba(124, 58, 237, .5)); transition: transform .5s var(--ease), filter .5s; }
.logo:hover .mark { transform: translateY(-3px) rotate(-5deg) scale(1.06); filter: drop-shadow(0 8px 22px rgba(255, 77, 141, .65)); }
.mark .fd { fill: #FFD27A; filter: drop-shadow(0 0 3px #FFD27A); animation: fd-move 2.6s linear infinite; animation-delay: var(--d, 0s); }
.logo:hover .mark .fd { animation-duration: 1.1s; }
.mark .lamp { fill: #7CE39B; filter: drop-shadow(0 0 4px #7CE39B); animation: blink 1.6s ease-in-out infinite; }
@keyframes fd-move { 0% { transform: translateX(-2px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(50px); opacity: 0; } }
.logo-word { font: 900 22px/1 "Archivo", Manrope, sans-serif; letter-spacing: -.03em; color: var(--text); display: inline-flex; align-items: baseline; }
.logo-tail { font: 600 13px/1 var(--mono); letter-spacing: 0; margin-left: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: clamp(14px, 2.6vw, 34px); }
.links a { font: 700 15px/1 Manrope, sans-serif; text-decoration: none; padding: 8px 0; position: relative; color: var(--soft); transition: color .3s; }
.links a:hover { color: var(--text); }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:hover::after { transform: scaleX(1); }
.nav-back { font: 800 14px/1 Manrope, sans-serif; text-decoration: none; color: var(--soft); }
@media (max-width: 820px) { .links { display: none; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 11px 22px; border-radius: 999px; background: var(--grad); color: #fff; font: 800 15px/1 Manrope, sans-serif; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(255,77,141,.7); transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255,77,141,.85); filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.3); box-shadow: none; }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); filter: none; }
.btn-small { min-height: 38px; padding: 9px 16px; font-size: 15.5px; }
.btn[hidden] { display: none; }

/* ---------- Shared type and layout ---------- */
.eyebrow { font: 800 12px/1.2 Manrope, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.muted { color: var(--soft); font-size: 15.5px; }
.section { padding: clamp(72px, 9vw, 128px) var(--pad); position: relative; overflow: hidden; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 18px; }
.section-head p:last-child { color: var(--soft); font-size: 1.07rem; margin: 0; max-width: 620px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* Ambient glow on every light-to-dark section */
.section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 0%, rgba(167,139,250,.10), transparent 40%), radial-gradient(circle at 0% 100%, rgba(255,122,77,.08), transparent 40%); }
.section > * { position: relative; }

/* ---------- Tool logos (one component, used everywhere) ---------- */
.tools { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tool { --brand: #7C86A8; position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--surface2); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); font: 700 14px/1 Manrope, sans-serif; color: var(--text); white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background .35s; }
.tool-logo { position: relative; width: 34px; height: 34px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--brand) 30%, transparent); transition: transform .4s var(--ease); }
.tool-logo img { width: 19px; height: 19px; display: block; }
.tool-logo.mono { background: var(--brand); color: #fff; font: 800 10.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; box-shadow: none; }

/* Hover: the chip lights up in its brand colour, then each tool plays its own effect */
.tool:hover { transform: translateY(-3px); border-color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, var(--surface2)); box-shadow: 0 0 0 1px var(--brand), 0 16px 36px -14px color-mix(in srgb, var(--brand) 90%, transparent); }
.tool:hover .tool-logo { transform: scale(1.1); }
.tool:hover .tool-name { color: #fff; }
.tool-name { transition: color .3s; }

.tool:hover[data-fx="spin"] .tool-logo img { animation: fx-spin 1.6s linear infinite; }
.tool:hover[data-fx="pulse"] .tool-logo { animation: fx-pulse 1s ease-in-out infinite; }
.tool:hover[data-fx="tilt"] .tool-logo { animation: fx-tilt .9s ease-in-out infinite; }
.tool:hover[data-fx="beat"] .tool-logo { animation: fx-beat .8s ease-in-out infinite; }
.tool:hover[data-fx="wobble"] .tool-logo { animation: fx-wobble 1s ease-in-out infinite; }
.tool:hover[data-fx="bars"] .tool-logo img, .tool:hover[data-fx="bars"] .tool-logo.mono { animation: fx-bars .9s ease-in-out infinite; }
.tool:hover[data-fx="bob"] .tool-logo { animation: fx-bob .9s ease-in-out infinite; }
.tool:hover[data-fx="swoosh"] .tool-logo { animation: fx-swoosh 1.1s ease-in-out infinite; }
.tool:hover[data-fx="float"] .tool-logo { animation: fx-float 1.4s ease-in-out infinite; }
.tool:hover[data-fx="flip"] .tool-logo { animation: fx-flip 1.2s var(--ease) infinite; }
.tool:hover[data-fx="blink"] .tool-logo.mono { animation: fx-blink .9s steps(2, start) infinite; }
.tool[data-fx="shine"] .tool-logo { overflow: hidden; }
.tool:hover[data-fx="shine"] .tool-logo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.9) 50%, transparent 70%); background-size: 250% 100%; animation: fx-shine 1.1s linear infinite; }
.tool:hover[data-fx="sparkle"] .tool-logo::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, var(--brand) 0 2px, transparent 3px), radial-gradient(circle at 80% 20%, #FFD27A 0 2px, transparent 3px), radial-gradient(circle at 15% 85%, #FFD27A 0 2px, transparent 3px); animation: fx-spark .9s ease-out infinite; pointer-events: none; }
.tool:hover[data-fx="tick"] .tool-logo::after { content: "✓"; position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #2EA043; color: #fff; font: 800 11px/16px Manrope, sans-serif; text-align: center; animation: fx-pop .5s var(--ease) both; }

@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-pulse { 50% { transform: scale(1.16); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 30%, transparent); } }
@keyframes fx-tilt { 50% { transform: rotate(-12deg) translateY(-2px); } }
@keyframes fx-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
@keyframes fx-wobble { 50% { transform: rotate(9deg) skew(-4deg); } }
@keyframes fx-bars { 50% { transform: scaleY(.6); } }
@keyframes fx-bob { 50% { transform: translateY(-5px); } }
@keyframes fx-swoosh { 50% { transform: translateX(4px) skewX(-8deg); } }
@keyframes fx-float { 50% { transform: translateY(-4px); filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); } }
@keyframes fx-flip { to { transform: rotateY(360deg); } }
@keyframes fx-blink { to { visibility: hidden; } }
@keyframes fx-shine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes fx-spark { 0% { opacity: 0; transform: scale(.6) rotate(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25) rotate(40deg); } }
@keyframes fx-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Factory floor (home hero) ---------- */
.floor { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 85% 15%, rgba(255,122,77,.28), transparent 60%), radial-gradient(50% 60% at 5% 95%, rgba(167,139,250,.22), transparent 60%), var(--bg); color: var(--text); min-height: min(100vh, 900px); display: flex; flex-direction: column; }
.floor::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 60% 30%, #000, transparent 70%); }
.floor-copy { position: relative; z-index: 2; padding: clamp(40px, 6vw, 80px) var(--pad) 0; }
.floor .eyebrow { color: var(--mustard); }
.floor h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin-bottom: 22px; color: var(--text); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); max-width: 560px; color: var(--soft); }
.audience { display: inline-flex; padding: 4px; margin: 28px 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.audience-btn { font: 800 14px/1 Manrope, sans-serif; color: var(--soft); background: transparent; border: 0; padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.audience-btn.is-active { background: var(--grad); color: #fff; }
.audience-note { font-size: 16.5px; color: var(--soft); min-height: 1.6em; }
.audience-note a { color: var(--text); font-weight: 800; }

/* Conveyor belt */
.belt { position: relative; margin-top: auto; height: clamp(200px, 30vh, 270px); }
.belt-rail { position: absolute; left: 0; right: 0; bottom: 22px; height: 30px; background: var(--surface2); border-top: 3px solid rgba(255,255,255,.12); box-shadow: 0 14px 0 -6px rgba(0,0,0,.4); }
.belt-rail::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 3px, transparent 3px 34px); animation: rollers 1.4s linear infinite; }
.belt-track { position: absolute; left: 0; bottom: 52px; display: flex; width: max-content; animation: belt 46s linear infinite; }
.belt:hover .belt-track, .belt:focus-within .belt-track { animation-play-state: paused; }
.belt:hover .belt-rail::before, .belt:focus-within .belt-rail::before { animation-play-state: paused; }
.belt-group { display: flex; gap: 28px; padding-right: 28px; }
@keyframes belt { to { transform: translateX(-50%); } }
@keyframes rollers { to { background-position: 34px 0; } }

/* Containers (corrugated boxes) */
.box { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; flex-shrink: 0; width: 240px; height: 128px; padding: 14px 16px; border-radius: 6px; text-decoration: none; color: #fff; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 6px, rgba(0,0,0,.07) 6px 12px), var(--c, var(--navy)); box-shadow: inset 0 0 0 3px rgba(0,0,0,.14), 0 20px 30px -16px rgba(0,0,0,.8); transition: translate .45s var(--ease), box-shadow .45s var(--ease); translate: 0 0; }
.box:hover, .box.is-hover { translate: 0 -12px; box-shadow: inset 0 0 0 3px rgba(0,0,0,.14), 0 0 0 1px rgba(255,255,255,.4), 0 34px 44px -18px rgba(0,0,0,.9); }
.box.is-grabbing { translate: 0 -64px; }
.box b { font: 900 clamp(1.25rem, 2vw, 1.6rem)/1 "Archivo", Manrope, sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.box small { font: 700 12px/1.25 Manrope, sans-serif; opacity: .92; letter-spacing: .03em; }
.box .lamp { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #7CE39B; box-shadow: 0 0 10px #7CE39B; animation: blink 2.4s ease-in-out infinite; }
.box-navy { --c: #2B3F7E; }
.box-mustard { --c: var(--mustard); color: #1A1D2B; }
.box-sky { --c: var(--sky); color: #0B1A2C; }
.box-ivory { --c: var(--ivory); color: #1A1D2B; }
.box-accent { --c: var(--accent2); }
.box-mustard .lamp, .box-sky .lamp, .box-ivory .lamp { background: #1E8E4E; box-shadow: 0 0 10px #1E8E4E; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Stats strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-block: 1px solid var(--line); color: var(--text); padding: 0 var(--pad); position: relative; overflow: hidden; }
.strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(124,196,242,.14), transparent 45%); pointer-events: none; }
.strip > div { position: relative; padding: clamp(26px, 3vw, 40px) clamp(18px, 2.4vw, 32px); border-right: 1px solid var(--line); }
.strip > div:first-child { padding-left: 0; }
.strip > div:last-child { border-right: 0; }
.strip strong { display: block; font: 900 clamp(1.6rem, 3vw, 2.4rem)/1.1 "Archivo", Manrope, sans-serif; letter-spacing: -.02em; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { font-size: 15.5px; color: var(--soft); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(2) { border-right: 0; } .strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .strip > div:nth-child(3) { padding-left: 0; } }

/* ---------- Work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; counter-reset: batch; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; counter-increment: batch; transition: opacity .8s var(--ease) var(--d, 0ms), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.card::before { content: "BATCH " counter(batch, decimal-leading-zero); position: absolute; top: 18px; right: 22px; font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--soft); opacity: .6; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); box-shadow: 0 30px 60px -30px rgba(255,77,141,.45); }
.card:hover::after { transform: scaleX(1); }
.card .tag { font: 800 11px/1.5 Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--mustard); margin-bottom: 16px; padding-right: 84px; }
.card h3 { margin-bottom: 14px; font-size: 1.4rem; }
.card .summary { color: var(--soft); font-size: 16.5px; }
.metric { color: var(--text); background: var(--surface2); border-radius: 12px; padding: 12px 14px; font-size: 15.5px; margin: 0 0 16px; }
.metric strong { font-weight: 900; color: var(--accent); }
.card .more { margin-top: auto; padding-top: 16px; font: 800 13px/1 Manrope, sans-serif; color: var(--accent); }
.card .more::after { content: " →"; transition: margin-left .3s var(--ease); }
.card:hover .more::after { margin-left: 6px; }

/* ---------- Services ---------- */
.section-alt { background: var(--bg2); padding: clamp(72px, 9vw, 128px) var(--pad); position: relative; overflow: hidden; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service { display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: opacity .8s var(--ease) var(--d, 0ms), transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s; }
.service:hover { transform: translateY(-4px); border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 24px 50px -28px rgba(255,77,141,.7); }
.service-no { font: 600 12px/1 var(--mono); color: var(--mustard); }
.service h3 { font-size: 1.1rem; }
.service p { margin: 0; color: var(--soft); font-size: 16px; }
.service-go { margin-top: auto; font: 800 13px/1 Manrope, sans-serif; color: var(--accent); }

/* ---------- Journey (shift log) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); max-width: 760px; }
.timeline li { position: relative; padding: 0 0 36px 4px; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sky); }
.timeline li.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,122,77,.2), 0 0 18px var(--accent); }
.timeline .when { display: block; font: 800 12px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin-bottom: 8px; }
.timeline h3 { margin-bottom: 6px; font-size: 1.3rem; }
.timeline p { color: var(--soft); margin: 0; }
.outside { margin-top: 12px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); max-width: 560px; }
.outside .eyebrow { color: var(--sky); margin-bottom: 8px; }
.outside p:last-child { margin: 0; }

/* ---------- Toolkit (blueprint wall) ---------- */
.tools-wall { background: var(--bg2); color: var(--text); padding: clamp(72px, 9vw, 128px) var(--pad); position: relative; overflow: hidden; }
.tools-wall::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%); }
.tools-wall > * { position: relative; }
.tools-wall .eyebrow { color: var(--sky); }
.tools-wall .section-head p:last-child { color: var(--soft); }
.marquee { overflow: hidden; margin: 0 calc(var(--pad) * -1) 52px; padding: 16px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee-group { display: flex; gap: 14px; padding-right: 14px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Flowing three-column layout: 13 categories pack without empty slots */
.tool-grid { columns: 3 320px; column-gap: 18px; }
.tool-cat { break-inside: avoid; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.tool-cat:hover { transform: translateY(-4px); border-color: rgba(124,196,242,.5); box-shadow: 0 24px 50px -30px rgba(124,196,242,.5); }
.tool-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.tool-cat h3 { font-size: 1.2rem; }
.tool-cat .count { font: 600 12px/1 var(--mono); color: var(--sky); white-space: nowrap; }
.tool-cat .tools { margin-top: 18px; }
@media (max-width: 900px) { .tool-grid { columns: 1; } }

/* ---------- Career journey: zig-zag timeline ---------- */
.zig { position: relative; list-style: none; margin: 0; padding: 0; }
.zig::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: linear-gradient(180deg, var(--sky), var(--accent), var(--mustard)); opacity: .55; }
.zig-item { position: relative; width: 50%; padding: 0 44px 52px; }
.zig-item.left { left: 0; }
.zig-item.right { left: 50%; }
.zig-item::before { content: ""; position: absolute; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--t); box-shadow: 0 0 0 5px color-mix(in srgb, var(--t) 18%, transparent), 0 0 14px var(--t); }
.zig-item.left::before { right: -8px; }
.zig-item.right::before { left: -8px; }
.zig-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s; }
.zig-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; border-radius: 3px; background: var(--t); }
.zig-item.right .zig-card::before { left: auto; right: 0; }
.zig-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--t) 55%, transparent); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--t) 80%, transparent); }
.zig-item.left .zig-card { text-align: right; }
.zig-item.left .zig-card::before { left: auto; right: 0; }
.zig-item.left .zig-meta, .zig-item.left .zig-learnt { justify-content: flex-end; }
.zig-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.zig-type { font: 800 11px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--t); padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--t) 14%, transparent); }
.zig-period { font: 600 13px/1 var(--mono); color: var(--soft); }
.zig-card h3 { font-size: 1.22rem; margin-bottom: 6px; }
.zig-org { font-weight: 700; color: var(--soft); font-size: 16px; margin: 0 0 10px; }
.zig-did { margin: 0 0 12px; padding: 0 0 0 18px; color: var(--soft); font-size: 16px; }
.zig-item.left .zig-did { padding: 0 18px 0 0; }
.zig-did li { margin: 4px 0; }
.zig-learnt { font-size: 15.5px; color: var(--text); margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.zig-learnt b { font: 800 11px/1.9 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--t); }
.zig-img { margin: 14px 0 0; }
.zig-img img { width: 100%; max-height: 240px; object-fit: cover; object-position: center top; border-radius: 12px; border: 1px solid var(--line); display: block; }
.zig-img figcaption { font-size: 12.5px; color: var(--soft); margin-top: 6px; }
@media (max-width: 760px) {
  .zig::before { left: 12px; }
  .zig-item, .zig-item.left, .zig-item.right { width: 100%; left: 0; padding: 0 0 36px 44px; }
  .zig-item::before, .zig-item.left::before, .zig-item.right::before { left: 4px; right: auto; top: 22px; }
  .zig-item.left .zig-card { text-align: left; }
  .zig-item.left .zig-card::before { left: 0; right: auto; }
  .zig-item.left .zig-meta, .zig-item.left .zig-learnt { justify-content: flex-start; }
  .zig-item.left .zig-did { padding: 0 0 0 18px; }
}

/* Beyond the work: certificate + campus photos */
.beyond { margin: 64px 0 40px; }
.beyond-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 26px; }
.gallery { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; align-items: start; }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(255,122,77,.45); }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 5; }
.gallery-item.big img { aspect-ratio: 1.45 / 1; object-fit: contain; background: #fff; }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font: 700 13px/1.3 Manrope, sans-serif; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; color: var(--soft); }
.fact-list li { padding-left: 14px; position: relative; }
.fact-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr; } }

/* ---------- Folder toolkit: hover a folder to open its tools ---------- */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px 20px; }
.folder { position: relative; outline: none; }
.folder:hover, .folder:focus-visible, .folder:focus-within { z-index: 20; }
.folder-face {
  position: relative; height: 150px; padding: 18px 18px 14px; border-radius: 6px 16px 16px 16px; margin-top: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--f) 22%, var(--surface2)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--f) 45%, transparent);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
/* folder tab */
.folder-face::before { content: ""; position: absolute; left: -1px; top: -15px; width: 42%; height: 16px; border-radius: 8px 8px 0 0; background: color-mix(in srgb, var(--f) 60%, var(--surface2)); border: 1px solid color-mix(in srgb, var(--f) 45%, transparent); border-bottom: 0; }
.folder:hover .folder-face, .folder:focus-visible .folder-face, .folder:focus-within .folder-face { transform: translateY(-4px); border-color: var(--f); box-shadow: 0 22px 40px -24px var(--f); }
.folder-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.folder-top h3 { font-size: 1.05rem; line-height: 1.2; }
.folder-top .count { font: 700 12px/1 var(--mono); color: var(--f); white-space: nowrap; }
.folder-stack { display: flex; align-items: center; }
.folder-stack img, .folder-stack .mini { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--surface); padding: 5px; margin-left: -8px; object-fit: contain; }
.folder-stack > :first-child { margin-left: 0; }
.folder-stack .mini { display: grid; place-items: center; background: var(--f); color: #fff; font: 800 9px/1 var(--mono); padding: 0; text-transform: uppercase; }
.folder-hint { font: 700 11px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.folder:hover .folder-hint, .folder:focus-within .folder-hint { color: var(--f); }

/* The sheet slides out of the folder and disappears when you leave it */
.folder-sheet {
  position: absolute; left: 0; right: 0; top: 14px; z-index: 2; list-style: none; margin: 0; padding: 62px 16px 16px;
  min-width: 100%; min-height: 200px; z-index: 5; border-radius: 16px; background: #141A33; border: 1px solid color-mix(in srgb, var(--f) 60%, transparent);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--f) 20%, transparent);
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  opacity: 0; transform: translateY(-10px) scale(.97); transform-origin: top center; pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.folder:hover .folder-sheet, .folder:focus-visible .folder-sheet, .folder:focus-within .folder-sheet { opacity: 1; transform: none; pointer-events: auto; }
/* While the sheet is open, the folder's own labels step aside so nothing shows through */
.folder:hover .folder-face > *, .folder:focus-within .folder-face > * { opacity: 0; transition: opacity .2s; }
.folder-sheet .tool { font-size: 13px; }
.folder-sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--f) 18%, transparent), transparent 60%); pointer-events: none; }

@media (hover: none) { .folder:not(:focus-within) .folder-hint::after { content: " · tap"; } }

/* ---------- Contact ---------- */
.section-dark { background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 70%); color: var(--text); padding: clamp(72px, 9vw, 128px) var(--pad); position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 100%, rgba(255,77,141,.18), transparent 45%); }
.section-dark > * { position: relative; }
.section-dark .eyebrow { color: var(--mustard); }
.section-dark .section-head p:last-child { color: var(--soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; font: 800 12px/1 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border: 0; margin: 0; padding: 0; }
input, select, textarea { font: 600 15px/1.3 Manrope, sans-serif; color: var(--text); background: var(--surface2); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; transition: border-color .3s, box-shadow .3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,77,.2); }
.field input, .field select, .field textarea { font-weight: 600; text-transform: none; letter-spacing: 0; }
.field textarea { resize: vertical; min-height: 120px; }
fieldset.field { display: flex; flex-wrap: wrap; gap: 12px 22px; }
fieldset.field legend { width: 100%; padding: 0; margin-bottom: 6px; }
fieldset.field label { display: flex; align-items: center; gap: 8px; font: 600 15px/1 Manrope, sans-serif; text-transform: none; letter-spacing: 0; color: var(--text); }
fieldset.field input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.draft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.draft[hidden] { display: none; }
.draft pre { color: var(--text); font: 500 14px/1.6 Manrope, sans-serif; white-space: pre-wrap; margin-bottom: 14px; }
.draft .eyebrow { color: var(--sky); }
.contact-side { display: grid; align-content: start; gap: 14px; }
.contact-side a { font: 800 18px/1.2 Manrope, sans-serif; text-decoration: none; color: var(--text); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 2px solid var(--accent); width: max-content; padding-bottom: 4px; }
.contact-side a[hidden] { display: none; }
.contact-side .muted { color: var(--soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font: 700 15px/1.5 Manrope, sans-serif; color: var(--mint); min-height: 1.5em; }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 30px var(--pad); font-size: 15.5px; color: var(--soft); border-top: 1px solid var(--line); background: var(--bg); }
.footer p { margin: 0; }
.footer a { font-weight: 800; color: var(--text); }

/* ---------- Batch record (project pages) ---------- */
.batch-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(48px, 7vw, 92px) var(--pad) 40px; background: radial-gradient(50% 80% at 90% 10%, rgba(255,122,77,.16), transparent 60%); }
.batch-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); margin-bottom: 20px; }
.batch-hero .lede { color: var(--soft); font-size: 1.12rem; max-width: 560px; }
.batch-hero .tools { margin-top: 26px; }
.batch-visual { display: grid; place-items: center; min-height: 280px; }
.batch-box { width: min(100%, 420px); height: 240px; justify-content: space-between; padding: 26px; translate: none; }
.batch-box:hover { translate: none; }
.batch-box b { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.batch-box small { font-size: 15.5px; }
.batch-box .lamp { top: 20px; right: 20px; }
.batch-stamp { position: absolute; right: 24px; bottom: 24px; }
.stamp { display: inline-block; font: 900 15px/1 "Archivo", Manrope, sans-serif; letter-spacing: .18em; color: #34D399; border: 3px solid #34D399; border-radius: 8px; padding: 8px 12px; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s; text-shadow: 0 0 12px rgba(52,211,153,.6); }
.stamp.is-in { transform: rotate(-8deg) scale(1); opacity: .95; }
.batch-body { padding: 0 var(--pad) 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.sheet h2 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -.02em; }
.sheet p { color: var(--soft); margin: 0; }
.sheet .eyebrow { margin-bottom: 10px; font-size: 11px; }
.sheet.wide { grid-column: 1 / -1; }
.sheet .tools { margin-top: 18px; }
.sheet .metric-big { font: 900 clamp(2rem, 4vw, 3rem)/1.05 "Archivo", Manrope, sans-serif; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 8px 0 6px; }

/* Pipeline diagram: stages light up as they enter view */
.pipe { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); position: relative; }
.node { position: relative; padding: 20px 14px 6px; opacity: .3; transform: translateY(8px); transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.node::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface2); border: 2px solid var(--soft); }
.node::after { content: ""; position: absolute; top: 7px; left: 16px; right: 0; height: 2px; background: var(--line); }
.node:last-child::after { display: none; }
.node.lit { opacity: 1; transform: none; }
.node.lit::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255,122,77,.2), 0 0 14px var(--accent); }
.node.lit::after { background: var(--grad); }
.node b { display: block; font: 800 16px/1.2 Manrope, sans-serif; margin-bottom: 4px; color: var(--text); }
.node span { font-size: 15.5px; color: var(--soft); }
.pipe-note { font-size: 13px; color: var(--soft); margin-top: 16px; }
.next-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px var(--pad) 72px; }
.next-box a { font: 800 17px/1.2 Manrope, sans-serif; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

/* ---------- Pipeline track: one continuous line from first stage to last ---------- */
.pipe { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); position: relative; }
.pipe::before { content: ""; position: absolute; top: 7px; left: 8px; height: 2px; width: calc((var(--n, 4) - 1) * 100% / var(--n, 4)); border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--mustard)); opacity: .45; }
.node { padding: 30px 18px 0 0; }
.node::after { display: none; }
@media (max-width: 900px) {
  .pipe { grid-template-columns: 1fr; }
  .pipe::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .node { padding: 0 0 26px 36px; }
  .node::before { top: 0; left: 0; }
}

/* ---------- Work groups: label column on the left, cards on the right ---------- */
.work-group { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; margin-bottom: 80px; padding-top: 56px; border-top: 1px solid var(--line); }
.work-group:first-of-type { border-top: 0; padding-top: 0; }
.work-group:last-child { margin-bottom: 0; }
.group-label { position: static; display: grid; gap: 6px; justify-items: start; }
.group-label .group-dot { margin-bottom: 6px; }
.group-label h3 { font-size: 1.45rem; }
.group-label p { margin: 0; font-size: 16px; color: var(--soft); }
.group-label small { font: 700 12px/1 var(--mono); color: var(--mustard); letter-spacing: .04em; margin-top: 4px; }
.work-group .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .work-group { grid-template-columns: 1fr; gap: 20px; } .group-label { position: static; } .work-group .cards { grid-template-columns: 1fr; } }
.group-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 0 0 22px; }
.group-title small { margin-left: auto; font: 700 12px/1 var(--mono); color: var(--soft); letter-spacing: .04em; }
.group-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--g); box-shadow: 0 0 14px var(--g); flex-shrink: 0; }

/* ---------- Impact: bold outcome stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 22px 0 22px; }
.stat { background: var(--surface2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; transition: transform .4s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-3px); border-color: rgba(255,122,77,.5); }
.stat-value { display: block; font: 900 clamp(2rem, 3.6vw, 2.8rem)/1 "Archivo", Manrope, sans-serif; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.stat span { font-size: 15.5px; color: var(--soft); line-height: 1.5; }
.impact-result { font-size: 1.05rem; color: var(--text) !important; line-height: 1.6; }
.impact-result strong { font-weight: 900; color: var(--accent); }
.sources { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.sources .eyebrow { margin-bottom: 8px; }
.sources ul { margin: 0 0 10px; padding-left: 18px; font-size: 13.5px; }
.sources li { margin: 4px 0; }
.sources a { color: var(--sky); }
.sources-note { font-size: 12.5px; color: var(--soft); margin: 0; }

/* ---------- v3: function-style nav, journey page, hover details ---------- */
.links a.fn { font: 600 14px/1 var(--mono); letter-spacing: 0; color: var(--soft); }
.links a.fn:hover { color: var(--mint); }
.links a.fn::after { display: none; }
.links a.fn:hover { text-shadow: 0 0 12px rgba(94,234,212,.45); }
.mark { width: 36px; height: 36px; filter: none; }
.logo:hover .mark { filter: drop-shadow(0 4px 12px rgba(255,77,141,.45)); }
.logo-tail { font: 600 15px/1 var(--mono); display: inline-block; min-width: 21ch; white-space: nowrap; }
.logo-tail::after { content: "▍"; margin-left: 1px; color: var(--mint); animation: caret 1s steps(2, start) infinite; }
@keyframes caret { to { visibility: hidden; } }

.journey-page { padding: clamp(72px, 9vw, 128px) var(--pad) clamp(72px, 9vw, 128px); }
.journey-page .section-head { margin-bottom: 48px; }
.journey-title { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-bottom: 18px; letter-spacing: -.03em; }
/* Keep the journey in the same column as the other sections, not spread across the page */
/* Same content width as the home sections, so both edges line up */
.journey-page .zig, .journey-page .beyond, .journey-page .facts-grid, .journey-page .outside { max-width: none; }
.journey-page .zig-item { padding: 0 26px 30px; }
.journey-page .zig-card { padding: 18px 20px; }
.journey-page .zig-card h3 { font-size: 1.08rem; }
.journey-page .zig-org { font-size: 13.5px; }
.journey-page .beyond { margin: 56px 0 32px; }
.journey-page .beyond-title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 20px; }
.journey-page .gallery { gap: 14px; }
@media (max-width: 760px) { .journey-page .zig-item { padding: 0 0 30px 44px; } .journey-page .zig, .journey-page .beyond, .journey-page .facts-grid, .journey-page .outside { max-width: none; } }
.beyond-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 26px; }
.journey-teaser .btn { margin-top: 8px; }

/* Short cards; the details unfold on hover or keyboard focus */
.zig-card { cursor: default; outline: none; }
.zig-card:focus-visible { box-shadow: 0 0 0 2px var(--t); }
.zig-hint { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); opacity: .7; margin-top: 2px; }
.zig-card:hover .zig-hint, .zig-card:focus-within .zig-hint { display: none; }
.zig-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease); }
.zig-more-in { min-height: 0; overflow: hidden; }
.zig-card:hover .zig-more, .zig-card:focus-within .zig-more { grid-template-rows: 1fr; opacity: 1; }
.zig-more-in > * { margin-top: 12px; }
.zig-more-in > :first-child { margin-top: 14px; }
@media (hover: none) { .zig-hint::after { content: " · tap"; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .batch-hero { grid-template-columns: 1fr; }
  .batch-body { grid-template-columns: 1fr; }
  .box { width: 210px; height: 116px; }
}

/* ---------- Small phones: keep the nav inside the screen ---------- */
@media (max-width: 520px) {
  .nav { gap: 10px; padding: 12px 14px; }
  .mark { width: 30px; height: 30px; }
  .logo-word { font-size: 17px; }
  .logo-tail { font-size: 12px; min-width: 0; }
  .nav .btn-small { min-height: 34px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
}

/* ---------- Journey v4: chapter tabs and horizontal tracks ---------- */
.facts-grid { align-items: start; }
.chapter-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 26px; }
.chapter-tab { font: inherit; text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--soft); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.chapter-tab:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.chapter-tab small { display: block; font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--mustard); margin-bottom: 8px; }
.chapter-tab b { display: block; font: 800 15px/1.2 Manrope, sans-serif; color: var(--text); }
.chapter-tab.is-active { border-color: var(--accent); background: linear-gradient(135deg, rgba(255,122,77,.18), rgba(255,77,141,.08)), var(--surface); }
.chapter-summary { color: var(--soft); margin: 0 0 18px; max-width: 680px; }
.chapter-panel[hidden] { display: none; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.jcard { flex: 0 0 300px; scroll-snap-align: start; min-height: 230px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--t); border-radius: var(--radius); padding: 20px; outline: none; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.jcard:hover, .jcard:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--t) 55%, transparent); box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--t) 80%, transparent); }
.jcard h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.jcard .zig-org { font-size: 13.5px; margin: 0; }
.jcard .zig-hint { margin-top: auto; padding-top: 12px; }
.jcard:hover .zig-hint, .jcard:focus-visible .zig-hint { display: none; }
.jcard .zig-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease); }
.jcard:hover .zig-more, .jcard:focus-visible .zig-more { grid-template-rows: 1fr; opacity: 1; }
.jcard .zig-more-in > * { margin-top: 10px; }
.jcard .zig-more-in > :first-child { margin-top: 12px; }
.jcard .zig-did { padding-left: 16px; font-size: 14px; }
.jcard .zig-learnt { font-size: 13.5px; }
.jcard .zig-img img { max-height: 160px; }
.track-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.tr-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 800 22px/1 Manrope, sans-serif; cursor: pointer; transition: border-color .3s, transform .3s var(--ease); }
.tr-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 900px) { .chapter-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jcard { flex-basis: 82%; } }

/* ---------- Personal: bookshelf ---------- */
.personal-page { padding: clamp(72px, 9vw, 128px) var(--pad); }
.personal-page .section-head { margin-bottom: 40px; }
.bookshelf { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.shelves { display: grid; gap: 0; }
.spines { list-style: none; margin: 0; padding: 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; min-height: 250px; }
.shelf-board { height: 16px; margin: 0 -6px 46px; border-radius: 4px; background: linear-gradient(180deg, #7a5638, #4a321f); box-shadow: 0 14px 22px -14px rgba(0,0,0,.9), inset 0 2px 0 rgba(255,255,255,.12); }
.spine { position: relative; width: 66px; height: 236px; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,0) 20%, rgba(0,0,0,.32)), var(--cover, none) center / cover no-repeat, var(--s); display: flex; align-items: center; justify-content: center; padding: 14px 6px; color: #fff; outline: none; cursor: default; transition: transform .45s var(--ease), box-shadow .45s; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 10px 18px -12px rgba(0,0,0,.8); }
.spine:hover, .spine:focus-visible, .spine.is-picked { transform: translateY(-16px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 26px 30px -14px rgba(0,0,0,.9), 0 0 0 2px var(--s); }
.spine-title { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 13px/1.25 Manrope, sans-serif; letter-spacing: -.01em; max-height: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(0,0,0,.45); padding: 5px 3px; border-radius: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.spines .spine-note { display: none; }
.book-panel { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; min-height: 280px; }
.book-panel-body { animation: bookIn .45s var(--ease); }
@keyframes bookIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.book-cover { display: block; width: 150px; height: 225px; object-fit: cover; border-radius: 8px; margin: 0 0 16px; background: var(--surface2); box-shadow: 0 18px 30px -16px rgba(0,0,0,.9); }
.book-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.book-body small { display: block; color: var(--soft); font-size: 13px; margin-bottom: 14px; }
.book-body p { font-size: 15px; color: var(--soft); margin: 0 0 10px; }
.book-body p strong { color: var(--text); }
.book-body a { font: 800 13px/1 Manrope, sans-serif; color: var(--sky); }
.spine-kicker { font: 800 10.5px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 0 0 12px !important; }
@media (max-width: 900px) { .bookshelf { grid-template-columns: 1fr; } .book-panel { position: static; } }
@media (max-width: 600px) { .spines { gap: 6px; } .spine { width: 54px; height: 210px; } }

/* ---------- IIT Hyderabad Applied AI: programme highlights ---------- */
.programme { margin: 56px 0 40px; }
.programme-lede { color: var(--soft); max-width: 640px; margin: 0 0 26px; font-size: 1.02rem; }
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .4s var(--ease), border-color .3s; }
.prog-card:hover { transform: translateY(-3px); border-color: rgba(255,122,77,.45); }
.prog-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.prog-card ul, .prog-card ol { margin: 0; padding-left: 18px; color: var(--soft); font-size: 15px; display: grid; gap: 8px; }
.prog-card .tools { margin-top: 0; }
.prog-meta { font-size: 13.5px; color: var(--soft); margin: 18px 0 0; }
.prog-meta a { color: var(--sky); }
@media (max-width: 900px) { .prog-grid { grid-template-columns: 1fr; } }

/* Services: featured AI agents block */
.ai-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 28px; border-radius: var(--radius); border: 1px solid rgba(255,122,77,.4); background: linear-gradient(135deg, rgba(255,122,77,.14), rgba(167,139,250,.12)), var(--surface); margin-bottom: 8px; }
.ai-feature h3 { font-size: 1.5rem; margin-bottom: 10px; }
.ai-feature p { color: var(--soft); margin: 0; font-size: 15.5px; }
.ai-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.ai-points li::before { content: "▸ "; color: var(--accent); }
@media (max-width: 900px) { .ai-feature { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal, .node { opacity: 1; transform: none; }
  .stamp { opacity: .95; transform: rotate(-8deg); }
  .arm { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}
