/* =====================================================================
   Senthill Sundaram — portfolio styles
   Zero-build, dependency-free. Dark theme by default, light theme via
   [data-theme="light"] (toggle persists in localStorage).
   ===================================================================== */

:root {
  /* palette */
  --c-primary: #5b7cff;
  --c-primary-2: #8aa0ff;
  --c-accent: #2dd4bf;
  --c-amber: #f5a623;
  --c-green: #34d399;
  --c-red: #f0554a;

  /* surfaces (dark) */
  --bg: #070b14;
  --bg-2: #0b1120;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #e8eaf0;
  --ink-2: #aab1c2;
  --ink-3: #78809a;
  --glow: rgba(91, 124, 255, 0.35);
  --grid-line: rgba(255, 255, 255, 0.045);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);

  /* type */
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r: 18px;
  --r-sm: 10px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.18);
  --ink: #0f172a;
  --ink-2: #3b4457;
  --ink-3: #6b7387;
  --glow: rgba(91, 124, 255, 0.22);
  --grid-line: rgba(15, 23, 42, 0.05);
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.25);
  --c-primary: #3d5cf5;
  --c-accent: #0ea5a0;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0 0 1rem; }
a { color: var(--c-primary-2); text-decoration: none; }
a:hover { color: var(--c-accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }
img, svg { display: inline-block; vertical-align: middle; }
.mono { font-family: var(--f-mono); font-size: .85em; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-primary); color: #fff; padding: .5rem .9rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-amber)); transition: width .08s linear; }

/* ---------- aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora .blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; animation: drift 26s var(--ease) infinite alternate; }
:root[data-theme="light"] .aurora .blob { opacity: .35; mix-blend-mode: multiply; }
.aurora .b1 { background: radial-gradient(circle at 30% 30%, var(--c-primary), transparent 60%); top: -20vmax; left: -15vmax; }
.aurora .b2 { background: radial-gradient(circle at 60% 40%, var(--c-accent), transparent 60%); top: 20vmax; right: -25vmax; animation-delay: -8s; animation-duration: 32s; }
.aurora .b3 { background: radial-gradient(circle at 50% 50%, var(--c-amber), transparent 60%); bottom: -30vmax; left: 20vmax; animation-delay: -16s; animation-duration: 38s; opacity: .3; }
.aurora .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; font-weight: 800; box-shadow: 0 6px 18px -6px var(--glow); }
.brand .dot { color: var(--c-accent); }
.nav-links { display: flex; gap: .25rem; }
.nav-links a { padding: .5rem .8rem; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--panel-strong); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--line-strong); background: var(--panel-strong); }
.icon-btn svg { width: 18px; height: 18px; }
#themeToggle .i-sun { display: none; }
:root[data-theme="light"] #themeToggle .i-sun { display: block; }
:root[data-theme="light"] #themeToggle .i-moon { display: none; }
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; font-family: var(--f-display); font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--c-primary), #7c5cff); box-shadow: 0 10px 30px -10px var(--glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 40px -12px var(--glow); }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 250% 100%; animation: sheen 4s linear infinite; pointer-events: none; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.btn-ghost { color: var(--ink); background: var(--panel); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); background: var(--panel-strong); }

/* ---------- pills / chips / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.pill-live { border-color: color-mix(in srgb, var(--c-green) 40%, transparent); color: var(--c-green); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-green) 60%, transparent); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-green) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags span { font-family: var(--f-mono); font-size: .72rem; padding: .25rem .6rem; border-radius: 6px; background: var(--panel-strong); border: 1px solid var(--line); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .75rem; }
.chips span { padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-weight: 500; font-size: .9rem; transition: transform .2s var(--ease), border-color .2s; }
.chips span:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.chips-accent span { border-color: color-mix(in srgb, var(--c-accent) 40%, transparent); background: color-mix(in srgb, var(--c-accent) 10%, transparent); color: var(--ink); }

/* ---------- cards ---------- */
.card {
  position: relative; border-radius: var(--r); padding: 1.5rem;
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c-primary) 14%, transparent), transparent 40%); opacity: 0; transition: opacity .35s; }
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card-title { font-size: 1.05rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c-accent) 30%, transparent); margin-bottom: 1rem; }
.tilt { transform-style: preserve-3d; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-num { display: inline-block; margin-bottom: .6rem; color: var(--c-accent); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: .6rem; background: linear-gradient(90deg, var(--ink), var(--ink-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: .85rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.greeting { font-family: var(--f-mono); color: var(--c-accent); margin-bottom: .35rem; }
.hero-name { font-size: clamp(2.6rem, 7vw, 4.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 1rem; }
.grad { background: linear-gradient(90deg, var(--c-primary-2), var(--c-accent) 60%, var(--c-amber)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient-x 8s ease infinite; }
@keyframes gradient-x { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-role { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--ink); margin-bottom: 1.25rem; min-height: 1.6em; display: flex; align-items: center; gap: .5rem; }
.hero-role .mono { color: var(--c-primary-2); font-size: 1em; }
.caret { width: 2px; height: 1.1em; background: var(--c-accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 40rem; margin-bottom: 1.75rem; }
.hero-lead strong { color: var(--c-accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: .3rem; }
.hero-stats span { font-size: .82rem; color: var(--ink-3); line-height: 1.35; display: block; }

.hero-card { padding: 1.35rem; }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.kanban .col { padding: .6rem; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); min-height: 118px; }
.kanban h4 { font-size: .68rem; font-family: var(--f-mono); font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .55rem; }
.kanban .col span { display: block; height: 10px; border-radius: 4px; background: var(--panel-strong); margin-bottom: .45rem; width: 100%; animation: slide-in .8s var(--ease) both; }
.kanban .col span.w90 { width: 90%; } .kanban .col span.w80 { width: 80%; } .kanban .col span.w70 { width: 70%; } .kanban .col span.w60 { width: 60%; } .kanban .col span.w50 { width: 50%; } .kanban .col span.w40 { width: 40%; }
.kanban .col span.accent { background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); }
.kanban .col span.ok { background: color-mix(in srgb, var(--c-green) 55%, transparent); }
.kanban .col span:nth-child(3) { animation-delay: .15s; } .kanban .col span:nth-child(4) { animation-delay: .3s; }
@keyframes slide-in { from { transform: translateX(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.facts { margin: 0; display: grid; gap: .55rem; }
.facts div { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; font-size: .9rem; }
.facts dt { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
.facts dd { margin: 0; color: var(--ink); }
.scroll-hint { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--line-strong); border-radius: 14px; display: none; }
.scroll-hint span { position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--c-accent); animation: hint 1.8s ease infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-height: 760px) and (min-width: 900px) { .scroll-hint { display: block; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.about-copy p { font-size: 1.05rem; color: var(--ink-2); }
.about-cards { display: grid; gap: 1rem; }
.about-cards h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.about-cards p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- experience timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 2.25rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--c-primary), var(--c-accent), transparent); opacity: .6; }
.tl-item { position: relative; }
.tl-marker { position: absolute; left: -2.25rem; top: 1.6rem; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c-primary-2); display: grid; place-items: center; }
.tl-marker span { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.tl-item:first-child .tl-marker { border-color: var(--c-green); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-green) 18%, transparent); }
.tl-item:first-child .tl-marker span { background: var(--c-green); }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.tl-head h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.tl-org { color: var(--ink-2); margin: 0; font-weight: 500; }
.sep { color: var(--ink-3); margin: 0 .3rem; }
.bullets { display: grid; gap: .5rem; }
.bullets li { position: relative; padding-left: 1.2rem; color: var(--ink-2); font-size: .97rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); transform: rotate(45deg); }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: start; }
.skills-col { display: grid; gap: 1.25rem; }
.skill-list { display: grid; gap: .95rem; }
.skill-list li span { display: block; font-weight: 500; margin-bottom: .4rem; font-size: .95rem; }
.skill-list li i { display: block; height: 6px; border-radius: 6px; background: var(--panel-strong); overflow: hidden; position: relative; }
.skill-list li i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0); transform: scaleX(0); transform-origin: left; border-radius: inherit; background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-amber)); background-size: 200% 100%; animation: gradient-x 8s linear infinite; transition: transform 1.2s var(--ease); }
.in-view .skill-list li i::after { transform: scaleX(1); }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-visual { height: 190px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent), var(--bg-2); border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 1rem 1.25rem; position: relative; }
.work-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%); }
.viz { width: 100%; height: 100%; max-height: 150px; position: relative; z-index: 1; }
.viz .nodes circle { fill: var(--bg-2); stroke: var(--accent); stroke-width: 2; }
.viz .nodes .hub { fill: var(--accent); }
.viz .traces path { fill: none; stroke-width: 2; stroke-dasharray: 90; stroke-dashoffset: 90; animation: trace 2.4s var(--ease) infinite; }
.viz .traces path:nth-child(2) { animation-delay: .2s; } .viz .traces path:nth-child(3) { animation-delay: .4s; } .viz .traces path:nth-child(4) { animation-delay: .6s; } .viz .traces path:nth-child(5) { animation-delay: .8s; }
@keyframes trace { 0% { stroke-dashoffset: 90; opacity: .2; } 50% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -90; opacity: .2; } }
.viz .bars rect { fill: color-mix(in srgb, var(--accent) 45%, transparent); transform-origin: bottom; transform: scaleY(0); }
.in-view .viz .bars rect { animation: grow 1s var(--ease) forwards; }
.viz .bars rect:nth-child(2) { animation-delay: .08s; } .viz .bars rect:nth-child(3) { animation-delay: .16s; } .viz .bars rect:nth-child(4) { animation-delay: .24s; } .viz .bars rect:nth-child(5) { animation-delay: .32s; } .viz .bars rect:nth-child(6) { animation-delay: .4s; } .viz .bars rect:nth-child(7) { animation-delay: .48s; }
@keyframes grow { to { transform: scaleY(1); } }
.viz .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.in-view .viz .line { animation: draw 1.6s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kanban-svg .col { fill: var(--panel-strong); stroke: var(--line); }
.kanban-svg .ticket { fill: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.kanban-svg .ticket.done { fill: color-mix(in srgb, var(--c-green) 60%, transparent); }
.kanban-svg .ticket.move { fill: var(--accent); animation: move 3s var(--ease) infinite; }
@keyframes move { 0%, 20% { transform: translateX(0); } 50%, 70% { transform: translateX(98px); } 100% { transform: translateX(0); } }
.terminal { width: 100%; font-family: var(--f-mono); font-size: .78rem; line-height: 1.7; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; position: relative; z-index: 1; }
.terminal p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal .prompt { color: var(--accent); }
.terminal .ok { color: var(--c-green); }
.terminal .blink { animation: blink 1s steps(1) infinite; }
.work-body { padding: 1.4rem 1.5rem 1.5rem; }
.work-body .pill { margin-bottom: .8rem; }
.work-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.work-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- education ---------- */
.edu-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.25rem; align-items: start; }
.edu-list { display: grid; gap: .9rem; }
.edu-list li { padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.edu-list strong { display: block; font-family: var(--f-display); font-size: 1rem; }
.edu-list span { color: var(--ink-3); font-size: .85rem; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.cert-grid li { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.cert-grid li:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.cert-grid b { flex: none; min-width: 64px; text-align: center; font-family: var(--f-mono); font-size: .7rem; font-weight: 600; padding: .35rem .5rem; border-radius: 6px; color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); }
.cert-grid span { font-size: .88rem; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: start; }
.contact-side { display: grid; gap: .75rem; }
.contact-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.contact-row:not(.static):hover { border-color: var(--line-strong); transform: translateX(4px); color: var(--ink); }
.contact-row small { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.contact-row strong { font-weight: 500; font-size: .95rem; word-break: break-word; }
.contact-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c-primary) 14%, transparent); color: var(--c-primary-2); }
.contact-ic svg { width: 18px; height: 18px; }
.contact-side .btn { justify-self: start; margin-top: .5rem; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.contact-form input, .contact-form textarea { width: 100%; padding: .8rem .95rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 20%, transparent); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-foot p { margin: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-thanks { margin: 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-green) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c-green) 40%, transparent); color: var(--c-green); font-weight: 500; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 1.75rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ink-2); font-size: .9rem; }
.footer p { margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .about-grid, .skills-grid, .edu-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: .75rem 1.25rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem .9rem; font-size: 1.05rem; }
  .burger { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .tl-head { flex-direction: column; }
}
@media (max-width: 560px) {
  .wrap { width: min(1140px, 100% - 2rem); }
  .form-row { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .timeline { padding-left: 1.75rem; }
  .tl-marker { left: -1.75rem; }
  .card { padding: 1.2rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .skill-list li i::after { transform: scaleX(1); }
  .viz .bars rect { transform: none; }
  .viz .line { stroke-dashoffset: 0; }
  .aurora .blob { opacity: .35; }
}

/* ---------- community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.community-grid h3 { font-size: 1.1rem; margin: .9rem 0 .2rem; }
.community-grid .tl-org { margin: 0 0 .6rem; }
.community-grid p:last-child { margin: 0; color: var(--ink-2); font-size: .95rem; }
