/* ============================================================================
   devnambiar.com v3.1 — "Studio-Grade" · Warm Editorial Spatial
   Identity preserved (Fraunces / Space Grotesk / JetBrains Mono / warm paper /
   terracotta). Escape the AI lane via art direction, integrated imagery,
   per-section motion. Tokens only in components.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; padding: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;

  --paper: #F4F1EA; --paper2: #ECE7DD; --paper3: #E4DED1;
  --ink: #191713; --ink2: #57534A; --ink3: #6E6759;
  --terra: #C2410C;
  --terra-deep: color-mix(in srgb, var(--terra) 78%, #000);
  --terra-tint: color-mix(in srgb, var(--terra) 8%, transparent);
  --terra-tint2: color-mix(in srgb, var(--terra) 15%, transparent);
  --sage: #6B7F5E; --gold: #B98A2F;
  --line: rgba(25,23,19,.12); --line2: rgba(25,23,19,.22);
  --glass: rgba(255,255,255,.55); --glass-border: rgba(255,255,255,.8);
  --glass-shadow: 0 20px 60px -20px rgba(30,25,15,.18);
  --clay: #FFFFFF;
  --clay-shadow: 0 18px 40px -14px rgba(30,25,15,.22), inset 0 2px 6px rgba(255,255,255,.9), inset 0 -3px 8px rgba(30,25,15,.06);
  --lift-shadow: 0 40px 90px -30px rgba(30,25,15,.35);
  --duotone-shadow: #2a1206; --duotone-light: #f6ead9;

  --e-out: cubic-bezier(.16,1,.3,1);
  --e-spring: cubic-bezier(.34,1.32,.5,1);
  --z-kart: 9; --z-raise: 6; --z-nav: 100; --z-overlay: 200;

  transition: background .5s ease, color .5s ease;
}

body[data-theme="dark"] {
  --paper: #12100D; --paper2: #1A1713; --paper3: #221D17;
  --ink: #F3EFE7; --ink2: #ABA396; --ink3: #948E82;
  --terra: #E8632C;
  --terra-deep: color-mix(in srgb, var(--terra) 80%, #fff);
  --line: rgba(243,239,231,.14); --line2: rgba(243,239,231,.24);
  --glass: rgba(255,255,255,.05); --glass-border: rgba(255,255,255,.12);
  --glass-shadow: 0 20px 60px -20px rgba(0,0,0,.55);
  --clay: #1E1A15;
  --clay-shadow: 0 18px 40px -14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  --lift-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  --duotone-shadow: #1a0d05; --duotone-light: #e9d7bd;
}

::selection { background: var(--terra); color: #F4F1EA; }
img { max-width: 100%; }

/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}
body[data-theme="dark"]::before { mix-blend-mode: screen; opacity: .04; }
main, footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- typography */
.kicker { display: inline-flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); }
.kicker::before { content: ""; display: block; width: 34px; height: 1px; background: currentColor; }
.mono { font-family: 'JetBrains Mono', monospace; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; text-wrap: balance; margin: 0; }
.display2 { font-weight: 560; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.015em; color: var(--ink); }
em.accent { font-style: italic; font-weight: 420; color: var(--terra); }
p { text-wrap: pretty; }

/* ------------------------------------------------------------------- layout */
.section { position: relative; padding: clamp(72px, 9vw, 118px) clamp(24px, 5vw, 80px); overflow: hidden; }
.wrap { max-width: 1560px; margin: 0 auto; }
.wrap-narrow { max-width: 1100px; margin: 0 auto; }
.band-1 { background: var(--paper); }
.band-2 { background: var(--paper2); }
.sec-head { margin-bottom: 48px; }
.sec-head .display2 { margin-top: 18px; }
.sec-note { font-size: 15px; line-height: 1.6; color: var(--ink3); max-width: 46ch; }

/* material tiers */
.glass { background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--glass-shadow); }
.clay  { background: var(--clay); box-shadow: var(--clay-shadow); }
.chip  { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.chip-glass { border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--glass-shadow); color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); flex: none; }
.dot.pulse { animation: dn-pulse 2s ease-out infinite; }
.status { border-color: var(--terra); color: var(--terra); }

/* imagery grade */
.graded { position: relative; overflow: hidden; }
.graded > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* images: full colour, no filter, integrated (no grayscale/duotone) */
.graded.duotone > img { filter: none; }
.graded.duotone::after, .graded.duotone::before { display: none; }
.veil-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 22px; z-index: 2; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #F4F1EA; }
.veil-cap::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: -60px; z-index: -1; background: linear-gradient(to top, rgba(20,16,10,.78), transparent); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; transition: background .3s ease, color .3s ease, transform .3s var(--e-out), border-color .3s ease; will-change: transform; }
.btn-primary { background: var(--ink); color: var(--paper); padding: 16px 28px; box-shadow: var(--clay-shadow); }
.btn-primary:hover { background: var(--terra); transform: translateY(-3px); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink); padding: 15px 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { color: var(--terra); border-color: var(--terra); transform: translateY(-3px); }
.btn-terra { background: var(--terra); color: #F4F1EA; padding: 17px 30px; box-shadow: var(--clay-shadow); }
.btn-terra:hover { background: var(--terra-deep); transform: translateY(-3px); }
.arrow { transition: transform .3s var(--e-out); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
.link { color: var(--terra); text-decoration: none; border-bottom: 1px solid var(--terra); }

.skip { position: absolute; left: -9999px; top: 0; z-index: var(--z-overlay); padding: 12px 20px; background: var(--terra); color: #F4F1EA; border-radius: 0 0 14px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-decoration: none; }
.skip:focus { left: 0; }

/* --------------------------------------------------------------------- nav */
.nav { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: var(--z-nav); display: flex; align-items: center; gap: 20px; padding: 9px 10px 9px 22px; border-radius: 100px; transition: padding .3s ease, box-shadow .3s ease, top .3s ease; }
.nav.shrunk { top: 14px; padding: 7px 9px 7px 20px; box-shadow: 0 14px 40px -18px rgba(30,25,15,.4); }
.nav-brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap; }
.nav-brand span { color: var(--terra); }
.nav-links { display: flex; align-items: center; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a { color: var(--ink2); text-decoration: none; transition: color .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--terra); }
.nav-cta { display: inline-flex; align-items: center; background: var(--ink); color: var(--paper); border-radius: 100px; padding: 10px 18px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .3s ease; white-space: nowrap; }
.nav-cta:hover { background: var(--terra); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; padding: 0; flex: none; transition: transform .5s var(--e-out); }
.theme-btn:hover { transform: rotate(180deg); }

/* ============================ MOTION ==================================== */
[data-rise] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--e-out), transform .8s var(--e-out); }
[data-rise][data-on] { opacity: 1; transform: none; }
[data-blur] { opacity: 0; transform: translateY(20px); filter: blur(10px); transition: opacity .9s var(--e-out), transform .9s var(--e-out), filter .9s var(--e-out); }
[data-blur][data-on] { opacity: 1; transform: none; filter: none; }
[data-wipe] { clip-path: inset(0 0 100% 0); opacity: .001; transition: clip-path 1s var(--e-out), opacity .6s ease; }
[data-wipe][data-on] { clip-path: inset(0 0 0 0); opacity: 1; }
[data-pop] { opacity: 0; transform: scale(.92) translateY(22px); transition: opacity .6s ease, transform .7s var(--e-out); }
[data-pop][data-on] { opacity: 1; transform: none; }
[data-slidex] { opacity: 0; transform: translateX(var(--sx, 40px)); transition: opacity .8s var(--e-out), transform .9s var(--e-out); }
[data-slidex][data-on] { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--e-out), transform .7s var(--e-out); }
[data-stagger][data-on] > * { opacity: 1; transform: none; }
[data-stagger][data-on] > *:nth-child(1){transition-delay:.00s}[data-stagger][data-on] > *:nth-child(2){transition-delay:.07s}[data-stagger][data-on] > *:nth-child(3){transition-delay:.14s}[data-stagger][data-on] > *:nth-child(4){transition-delay:.21s}[data-stagger][data-on] > *:nth-child(5){transition-delay:.28s}[data-stagger][data-on] > *:nth-child(6){transition-delay:.35s}[data-stagger][data-on] > *:nth-child(7){transition-delay:.42s}[data-stagger][data-on] > *:nth-child(8){transition-delay:.49s}
[data-draw] path, [data-draw] circle, [data-draw] line, [data-draw] ellipse, [data-draw] polyline { stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.7s var(--e-out) .15s; }
[data-draw][data-on] path, [data-draw][data-on] circle, [data-draw][data-on] line, [data-draw][data-on] ellipse, [data-draw][data-on] polyline { stroke-dashoffset: 0; }
.tilt { transition: transform .35s var(--e-out), box-shadow .35s ease, border-color .3s ease; will-change: transform; }

@keyframes dn-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes dn-pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--terra) 45%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } }
@keyframes dn-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dn-cue { from { transform: translateY(-100%); } to { transform: translateY(120%); } }
@keyframes dn-blob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(1.08); } }
@keyframes dn-headline-word { from { opacity: 0; transform: translateY(46px) rotate(1.5deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dn-trail { 0% { opacity: .5; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(.2); } }

/* =============================== HERO =================================== */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 46% 54%; align-items: stretch; background: var(--paper); overflow: hidden; }
.hero-blob { position: absolute; top: -260px; left: -160px; width: 820px; height: 820px; border-radius: 50%; background: radial-gradient(circle, var(--terra-tint2) 0%, transparent 62%); animation: dn-blob 16s ease-in-out infinite; pointer-events: none; z-index: 0; }
.hero-mark { position: absolute; top: 3%; left: -2%; font-family: 'Fraunces', serif; font-weight: 600; font-size: 13vw; line-height: .9; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--line2); user-select: none; pointer-events: none; white-space: nowrap; z-index: 1; }
.hero-copy { position: relative; z-index: 3; align-self: center; max-width: 700px; padding: 118px clamp(20px,3vw,48px) 86px clamp(24px,5vw,80px); }
.hero-copy h1 { font-weight: 560; font-size: clamp(42px, 5vw, 92px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); margin: 12px 0 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.hero-role { margin: 22px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--terra); }
.hero-lede { margin: 22px 0 0; font-size: clamp(16px, 1.15vw, 20px); line-height: 1.62; color: var(--ink2); max-width: 60ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.word { display: inline-block; }
/* full-bleed hero photo: no frame, no filter — blended into the page at its left edge */
.hero-media { position: relative; z-index: 2; height: 100svh; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; display: block; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--paper) 0%, transparent 16%); pointer-events: none; }
.float-chip { position: absolute; z-index: var(--z-raise); padding: 12px 18px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; color: var(--ink); white-space: nowrap; animation: dn-float 6s ease-in-out infinite; }
.float-chip.gold b { color: var(--gold); font-weight: 500; }
.scroll-cue { position: absolute; bottom: 34px; left: clamp(20px, 5vw, 96px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; }
.scroll-cue .rail { width: 1px; height: 46px; background: var(--line2); overflow: hidden; }
.scroll-cue .rail > i { display: block; width: 100%; height: 100%; background: var(--terra); animation: dn-cue 1.8s ease-in-out infinite; }
.scroll-cue span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink3); }
.hero-ticker { position: absolute; bottom: 0; left: 0; right: 0; height: 46px; border-top: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; z-index: 3; background: color-mix(in srgb, var(--paper) 55%, transparent); backdrop-filter: blur(6px); }
.hero-ticker > div { display: flex; width: max-content; animation: dn-marquee 34s linear infinite; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .22em; color: var(--ink3); text-transform: uppercase; white-space: nowrap; }

/* =============================== NOW =================================== */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-top: 22px; align-items: stretch; }
.card { border-radius: 26px; padding: clamp(26px, 3vw, 44px); }
.card-live { border-radius: 26px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.card-id { display: flex; align-items: center; gap: 16px; }
.card-logo { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; }
.card-logo.contain { background: #fff; object-fit: contain; padding: 6px; border: 1px solid var(--line); }
.card h3 { font-weight: 560; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; color: var(--ink); }
.role-line { margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.card p.body { margin: 22px 0 0; font-size: 16px; line-height: 1.62; color: var(--ink2); max-width: 78ch; }
.scope { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.acc-btn { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; background: none; border: none; border-bottom: 1px solid var(--terra); padding: 0 0 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); cursor: pointer; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .65s var(--e-out); }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; padding-top: 28px; }
.acc-grid > div { border-top: 1px solid var(--line); padding-top: 16px; }
.acc-grid .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--terra); letter-spacing: .1em; }
.acc-grid h4 { margin-top: 6px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); }
.acc-grid p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink3); }
.tilt-live:hover { transform: translateY(-7px); border-color: var(--terra); }

.cfa-card { border-radius: 22px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.cfa-rail { position: relative; display: flex; justify-content: space-between; margin-top: 30px; padding: 0 4px; }
.cfa-rail .track { position: absolute; top: 9px; left: 12px; right: 12px; height: 1.5px; background: var(--line); }
.cfa-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.cfa-node .bead { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; line-height: 1; }
.cfa-node .bead.done { background: var(--gold); }
.cfa-node .bead.now { border: 2px solid var(--terra); background: var(--clay); animation: dn-pulse 2s ease-out infinite; }
.cfa-node .bead.next { border: 2px solid var(--line); background: var(--clay); opacity: .6; }
.cfa-node .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; text-align: center; }

/* =============================== ABOUT ================================= */
/* About: photo bleeds to the viewport edge, full height, no frame, no filter */
.about-section { padding: 0; }
.about-full { display: grid; grid-template-columns: 46% 54%; align-items: stretch; }
.about-media { position: relative; min-height: 680px; }
.about-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.about-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, var(--paper2) 0%, transparent 14%); pointer-events: none; }
.about-body { padding: clamp(72px, 8vw, 110px) clamp(24px, 5vw, 80px) clamp(72px, 8vw, 110px) clamp(24px, 4vw, 64px); max-width: 900px; }
.about-body p { margin: 22px 0 0; font-size: 17px; line-height: 1.72; color: var(--ink2); max-width: 64ch; }
.about-quote { margin: 30px 0 0; padding: 28px 32px; border-radius: 22px; font-family: 'Fraunces', serif; font-style: italic; font-weight: 420; font-size: 20px; line-height: 1.5; color: var(--ink); }
.fact-rows { margin-top: 30px; display: flex; flex-direction: column; }
.fact-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 4px; border-top: 1px solid var(--line); }
.fact-rows > div:last-child { border-bottom: 1px solid var(--line); }
.fact-rows .k { font-size: 14.5px; color: var(--ink); }
.fact-rows .v { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ============================== TOOLKIT ================================ */
.toolkit-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cap { border-radius: 22px; padding: 30px; position: relative; overflow: hidden; }
.cap svg { color: var(--terra); }
.cap h3 { margin-top: 18px; font-weight: 560; font-size: clamp(19px, 1.7vw, 22px); color: var(--ink); }
.cap p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink3); }
.cap.lead { grid-column: span 3; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.cap.lead h3 { font-size: clamp(26px, 2.6vw, 34px); }
.cap.lead .big { font-family: 'Fraunces', serif; font-weight: 560; font-size: clamp(48px, 6vw, 76px); color: var(--terra); line-height: 1; }
.cap.wide { grid-column: span 3; }
.cap.third { grid-column: span 2; }
.cap.half { grid-column: span 3; }
.tilt-cap:hover { transform: translateY(-6px); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 60px; }
.cols3 .hd { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cols3 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cols3 li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink2); }
.cols3 li:last-child { border-bottom: none; }

/* ============================== ROADMAP =============================== */
.timeline { margin-top: 56px; display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 170px 24px 1fr; gap: 0 24px; padding-bottom: 44px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--ink3); text-align: right; padding-top: 2px; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail .line { position: absolute; top: 6px; bottom: -44px; width: 1.5px; background: var(--line); }
.tl-row:last-child .tl-rail .line { display: none; }
.tl-node { position: relative; width: 13px; height: 13px; border-radius: 50%; background: var(--terra); z-index: 1; margin-top: 4px; }
.tl-node.live { animation: dn-pulse 2s ease-out infinite; }
.tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-head img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; flex: none; }
.tl-head img.cover { object-fit: cover; padding: 0; border: none; }
.tl-head h3 { font-weight: 560; font-size: clamp(20px, 2vw, 24px); color: var(--ink); }
.tag { padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em; color: var(--ink3); }
.tag.live { border-color: var(--terra); color: var(--terra); }
.tl-body { margin: 12px 0 0; max-width: 680px; font-size: 15px; line-height: 1.65; color: var(--ink2); }
.tl-body strong { color: var(--ink); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.proj { border-radius: 22px; padding: 30px; position: relative; }
.proj .tag { position: absolute; top: 24px; right: 24px; }
.proj .plabel { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.proj h3 { margin: 12px 0 0; font-weight: 560; font-size: 22px; color: var(--ink); }
.proj p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink3); }
.proj-logos { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.proj-logos img { height: 40px; width: auto; border-radius: 7px; object-fit: contain; background: #fff; padding: 3px 6px; }
.tilt-proj:hover { transform: translateY(-6px); }
/* featured AI India card — live/glass tier, spans full width */
.proj-featured { grid-column: 1 / -1; border-radius: 26px; padding: clamp(28px, 3.4vw, 44px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; text-decoration: none; color: inherit; position: relative; overflow: hidden; }
.proj-featured:hover { transform: translateY(-6px); border-color: var(--terra); }
.proj-featured .pf-copy h3 { font-size: clamp(26px, 3vw, 38px); margin-top: 14px; }
.proj-featured .pf-copy p { color: var(--ink2); font-size: 15.5px; max-width: 60ch; margin-top: 12px; }
.pf-stats { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.pf-stats .s b { font-family: 'Fraunces', serif; font-weight: 560; font-size: 30px; color: var(--terra); display: block; line-height: 1; }
.pf-stats .s span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.pf-visual { position: relative; height: 220px; }

/* =============================== BEYOND =============================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 130px; gap: 20px; }
.bento > * { border-radius: 22px; }
.b-tile { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.b-tile .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.b-tile h3 { font-weight: 560; font-size: 24px; line-height: 1.2; color: var(--ink); }
.b-tile p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink3); }
.b-photo { position: relative; overflow: hidden; }
.b-photo img { transition: transform .6s var(--e-out); }
.b-photo:hover img { transform: scale(1.05); }
.b-photo .veil-cap { transform: translateY(120%); transition: transform .45s var(--e-out); }
.b-photo:hover .veil-cap { transform: none; }
.kart-card { position: relative; }
.kart-park { position: absolute; right: 20px; top: 18px; opacity: 0; transition: opacity .6s ease; }

/* cheese pull */
#dn-cheese { cursor: pointer; }
#dn-cheese .dn-bread-top { transition: transform .85s cubic-bezier(.34,1.3,.5,1); transform-origin: 88% 100%; }
#dn-cheese:hover .dn-bread-top { transform: translateY(-56px) rotate(-8deg); }
#dn-cheese .dn-pull { opacity: 0; transition: opacity .45s ease .1s; }
#dn-cheese:hover .dn-pull { opacity: 1; }
#dn-cheese .dn-str { transform: scaleY(.06); transform-origin: top; transition: transform .9s cubic-bezier(.22,1.4,.36,1); display: flex; flex-direction: column; align-items: center; }
#dn-cheese:hover .dn-str { transform: scaleY(1); }
#dn-cheese .dn-str:nth-child(1) { transition-delay: .04s; }
#dn-cheese .dn-str:nth-child(2) { transition-delay: .16s; }
#dn-cheese .dn-str:nth-child(3) { transition-delay: 0s; }
#dn-cheese .dn-str:nth-child(4) { transition-delay: .22s; }
#dn-cheese .dn-str:nth-child(5) { transition-delay: .1s; }
@keyframes dn-cheese-wobble { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.93); } }
#dn-cheese:hover .dn-str { animation: dn-cheese-wobble 2.4s ease-in-out .9s infinite; }

/* =============================== CONNECT ============================== */
.connect-card { border-radius: 34px; padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.connect-card .glow { position: absolute; top: -120px; right: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--terra-tint2) 0%, transparent 65%); pointer-events: none; }
.connect-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 4vw, 72px); align-items: start; }
.connect-side { display: flex; flex-direction: column; gap: 14px; }
.connect-side .btn { justify-content: center; }
.seg-track { display: flex; gap: 6px; margin-top: 32px; padding: 6px; border-radius: 100px; }
.seg { flex: 1; padding: 12px 18px; border-radius: 100px; border: none; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--ink2); transition: background .3s ease, color .3s ease; white-space: nowrap; }
.seg-on { background: var(--terra); color: #F4F1EA; }
.pitch { margin: 26px 0 0; font-family: 'Fraunces', serif; font-style: italic; font-weight: 420; font-size: 19px; line-height: 1.5; color: var(--ink); }
.intent-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cta-row { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 36px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; }
.footer-links a { color: var(--ink2); text-decoration: none; transition: color .25s ease; }
.footer-links a:hover { color: var(--terra); }
.footer-links .sep { color: var(--line2); }

footer.foot { padding: 40px clamp(20px, 4vw, 48px) 60px; background: var(--paper2); overflow: hidden; }
.foot-mark { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(60px, 11vw, 168px); line-height: .95; letter-spacing: -.02em; text-align: center; color: transparent; -webkit-text-stroke: 1.5px var(--line2); user-select: none; }
.foot-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); flex-wrap: wrap; }

/* ================================ KART ================================= */
.kart-layer { position: fixed; left: 0; bottom: 10px; z-index: var(--z-kart); pointer-events: none; will-change: transform; opacity: 0; }
.kart-trail { position: fixed; bottom: 14px; z-index: 8; pointer-events: none; height: 4px; border-radius: 100px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--terra) 55%, transparent)); opacity: 0; }

/* ============================ RESPONSIVE ============================== */
@media (max-width: 1200px) {
  .hero-mark { font-size: 17vw; }
}
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
  .toolkit-bento { grid-template-columns: repeat(4, 1fr); }
  .cap.lead { grid-column: span 4; grid-row: auto; }
  .cap.wide, .cap.half { grid-column: span 2; }
  .cap.third { grid-column: span 2; }
  .proj-featured { grid-template-columns: 1fr; }
  .pf-visual { height: 160px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { display: none; }
  .hero-copy { padding: 104px 24px 56px; max-width: none; }
  .hero-inline-photo { display: block; margin: 30px -24px 0; height: 52vh; }
  .hero-inline-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
  .about-full { grid-template-columns: 1fr; }
  .about-media { min-height: 58vh; }
  .about-media::before { background: linear-gradient(0deg, var(--paper2) 0%, transparent 12%); }
  .connect-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .cols3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { gap: 12px; padding: 8px 8px 8px 18px; }
  .kart-layer, .kart-trail { display: none; }
  .toolkit-bento { grid-template-columns: 1fr 1fr; }
  .cap.lead, .cap.wide, .cap.third, .cap.half { grid-column: span 1; }
  .cap.lead { grid-column: span 2; }
  .bento { display: flex; flex-direction: column; }
  .bento > figure { height: 300px; }
  .bento .b-tile { min-height: 230px; }
  .kart-park { position: relative; right: auto; top: auto; margin-top: 14px; }
  .tl-row { grid-template-columns: 74px 18px 1fr; gap: 0 12px; }
}
@media (max-width: 620px) {
  .projects { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .pf-stats { gap: 18px; }
}
@media (max-width: 480px) {
  .seg { padding: 11px 8px; font-size: 10px; letter-spacing: .04em; white-space: normal; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
  .footer-links { gap: 14px 18px; }
}
.hero-inline-photo { display: none; }

/* ============================================================
   EXPANSION COMPONENTS  (for future content on this page)
   Playbooks   -> reuse existing .stack-grid / .stack-item
   Workflows   -> reuse existing .flow / .flow-step / .flow-arrow
   Quarterly   -> use .qlog / .q-item below
   See the commented scaffold in ai-india-portfolio.html.
   ============================================================ */
.qlog { display: grid; gap: 0; margin-top: 8px; }
.q-item { display: grid; grid-template-columns: 156px 1fr; gap: 0 30px; padding: 26px 0; border-top: 1px solid var(--line); }
.q-item:last-child { border-bottom: 1px solid var(--line); }
.q-when { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); padding-top: 4px; }
.q-item h4 { margin: 0; font-family: 'Fraunces', serif; font-weight: 560; font-size: 21px; line-height: 1.15; color: var(--ink); }
.q-item p { margin: 9px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink2); max-width: 640px; }
.q-tags { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.q-tag { padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
@media (max-width: 720px) { .q-item { grid-template-columns: 1fr; gap: 6px; } }
