/* ============================================
   Shashank Sekhar VS — Portfolio
   Editorial / refined-luxury aesthetic
   ============================================ */

:root {
  --bg: #0a0a0d;
  --bg-alt: #15171b;
  --bg-raised: #1b1e23;
  --ink: #f1efec;
  --ink-soft: #aeb2b8;
  --ink-faint: #74787f;
  --accent: #6f8dff;
  --accent-soft: #8fa3d9;
  --accent-2: #7fe6c8;
  --line: rgba(241, 239, 236, 0.1);
  --line-strong: rgba(241, 239, 236, 0.2);
  --paper-shadow: rgba(0, 0, 0, 0.55);

  --font-display: "Fraunces", serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  /* motion tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 500ms;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a { color: inherit; text-decoration: none; }

/* focus states — keyboard accessibility */
a:focus-visible,
button:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* press feedback — every interactive element should feel touched */
.btn,
.nav-cta,
.tab,
.entry-link,
.contact-link,
.mark {
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.btn:active,
.nav-cta:active {
  transform: scale(0.96);
}
.entry-link:active,
.contact-link:active {
  transform: scale(0.98);
}
.mark:active {
  transform: scale(0.94);
}

/* subtle grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}

/* ---------- animated background field ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
  will-change: transform;
}
.bg-blob-1 {
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  top: -18%;
  left: -12%;
  background: radial-gradient(circle at 30% 30%, rgba(111, 141, 255, 0.32), rgba(111, 141, 255, 0) 70%);
  animation: driftA 34s var(--ease-in-out) infinite alternate;
}
.bg-blob-2 {
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  max-height: 640px;
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle at 60% 60%, rgba(127, 230, 200, 0.22), rgba(127, 230, 200, 0) 70%);
  animation: driftB 40s var(--ease-in-out) infinite alternate;
}
.bg-blob-3 {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  top: 35%;
  left: 55%;
  background: radial-gradient(circle at 50% 50%, rgba(111, 141, 255, 0.16), rgba(111, 141, 255, 0) 70%);
  animation: driftC 46s var(--ease-in-out) infinite alternate;
}
@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, 8vh) scale(1.12); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-7vw, -6vh) scale(1.08); }
}
@keyframes driftC {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4vw, 6vh) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none; }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.mark-dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 2.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.nav a {
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-base) var(--ease-out);
}
.nav a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  border: 1px solid var(--line-strong);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger hero children on load */
.hero > [data-reveal]:nth-of-type(1) { transition-delay: 0ms; }
.hero > [data-reveal]:nth-of-type(2) { transition-delay: 70ms; }
.hero > [data-reveal]:nth-of-type(3) { transition-delay: 140ms; }
.hero > [data-reveal]:nth-of-type(4) { transition-delay: 210ms; }
.hero > [data-reveal]:nth-of-type(5) { transition-delay: 280ms; }

/* ---------- staggered group reveals ---------- */
/* children fade/rise individually once their shared container becomes visible */
.stat-grid > .stat,
.about-stats > .stat,
.persona-grid > .persona-card,
.numbered-grid > .numbered-card,
.proj-cols > .proj-col,
.swatch-row > .swatch,
.skill-groups > .skill-group,
.timeline > li,
.journey-table tbody tr {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.stat-grid.is-visible > .stat,
.about-stats.is-visible > .stat,
.persona-grid.is-visible > .persona-card,
.numbered-grid.is-visible > .numbered-card,
.proj-cols.is-visible > .proj-col,
.swatch-row.is-visible > .swatch,
.skill-groups.is-visible > .skill-group,
.timeline.is-visible > li,
.journey-table-wrap.is-visible .journey-table tbody tr {
  opacity: 1;
  transform: translateY(0);
}
.stat-grid > .stat:nth-child(1), .about-stats > .stat:nth-child(1), .persona-grid > .persona-card:nth-child(1),
.numbered-grid > .numbered-card:nth-child(1), .proj-cols > .proj-col:nth-child(1), .swatch-row > .swatch:nth-child(1),
.skill-groups > .skill-group:nth-child(1), .timeline > li:nth-child(1), .journey-table tbody tr:nth-child(1) { transition-delay: 0ms; }
.stat-grid > .stat:nth-child(2), .about-stats > .stat:nth-child(2), .persona-grid > .persona-card:nth-child(2),
.numbered-grid > .numbered-card:nth-child(2), .proj-cols > .proj-col:nth-child(2), .swatch-row > .swatch:nth-child(2),
.skill-groups > .skill-group:nth-child(2), .timeline > li:nth-child(2), .journey-table tbody tr:nth-child(2) { transition-delay: 45ms; }
.stat-grid > .stat:nth-child(3), .about-stats > .stat:nth-child(3), .persona-grid > .persona-card:nth-child(3),
.numbered-grid > .numbered-card:nth-child(3), .proj-cols > .proj-col:nth-child(3), .swatch-row > .swatch:nth-child(3),
.skill-groups > .skill-group:nth-child(3), .timeline > li:nth-child(3), .journey-table tbody tr:nth-child(3) { transition-delay: 90ms; }
.stat-grid > .stat:nth-child(4), .swatch-row > .swatch:nth-child(4), .numbered-grid > .numbered-card:nth-child(4),
.journey-table tbody tr:nth-child(4) { transition-delay: 135ms; }
.stat-grid > .stat:nth-child(5), .swatch-row > .swatch:nth-child(5), .journey-table tbody tr:nth-child(5) { transition-delay: 180ms; }
.stat-grid > .stat:nth-child(6), .swatch-row > .swatch:nth-child(6), .journey-table tbody tr:nth-child(6) { transition-delay: 225ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .stat-grid > .stat, .about-stats > .stat, .persona-grid > .persona-card,
  .numbered-grid > .numbered-card, .proj-cols > .proj-col, .swatch-row > .swatch,
  .skill-groups > .skill-group, .timeline > li, .journey-table tbody tr {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 4rem;
  max-width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
.hero-name .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
.hero-roles .slash { color: var(--ink-faint); }

.hero-copy {
  max-width: 42ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.6rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero-figure {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  color: var(--ink);
  opacity: 0.9;
  display: none;
  animation: heroFloat 7s ease-in-out infinite;
}
@media (min-width: 980px) {
  .hero-figure { display: block; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

/* animated neural-network hero visual */
.neural-viz {
  width: 340px;
  height: 340px;
  color: var(--accent);
  overflow: visible;
}
.neural-viz .diagram-group {
  transform-box: fill-box;
  transform-origin: 160px 160px;
  animation: neuralSpin 46s linear infinite;
}
.neural-viz .edge {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.14;
  fill: none;
}
.neural-viz .edge-active {
  stroke: var(--accent-2);
  stroke-width: 1.5;
  opacity: 0.75;
  fill: none;
  stroke-dasharray: 6 9;
  animation: signalFlow 2.8s linear infinite;
}
.neural-viz .node {
  fill: var(--accent);
  opacity: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3.4s ease-in-out infinite;
}
.neural-viz .node-out {
  fill: var(--accent-2);
}
.neural-viz .ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 0.6;
}
.neural-viz .ring-dashed {
  stroke-dasharray: 3 7;
  stroke-width: 0.8;
  transform-box: fill-box;
  transform-origin: 160px 160px;
  animation: neuralSpinReverse 28s linear infinite;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.22); opacity: 1; }
}
@keyframes signalFlow {
  to { stroke-dashoffset: -150; }
}
@keyframes neuralSpin {
  to { transform: rotate(360deg); }
}
@keyframes neuralSpinReverse {
  to { transform: rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .neural-viz .node, .neural-viz .edge-active, .neural-viz .diagram-group,
  .neural-viz .ring-dashed, .hero-figure { animation: none; }
}

/* ---------- known technologies ---------- */
.tech {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem var(--gutter);
  border-top: 1px solid var(--line);
}
.tech::before {
  content: "";
  position: absolute;
  inset: -1rem 0 0 0;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 35%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 65% 65% at 50% 35%, black 0%, transparent 78%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.tech > * { position: relative; z-index: 1; }
.tech-sub {
  max-width: 46ch;
  color: var(--ink-soft);
  margin-top: -0.5rem;
  margin-bottom: 2.75rem;
}
.tech-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.tech-group-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.15rem;
}
.tech-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.25rem;
}
.tech-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2.1rem 1rem 1.6rem;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tech-grid.is-visible > .tech-item { opacity: 1; transform: translateY(0); }
.tech-grid > .tech-item:nth-child(1) { transition-delay: 0ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(2) { transition-delay: 30ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(3) { transition-delay: 60ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(4) { transition-delay: 90ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(5) { transition-delay: 120ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(6) { transition-delay: 150ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(7) { transition-delay: 180ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(8) { transition-delay: 210ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(9) { transition-delay: 240ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(10) { transition-delay: 270ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(11) { transition-delay: 300ms, 0ms, 0ms, 0ms; }
.tech-grid > .tech-item:nth-child(12) { transition-delay: 330ms, 0ms, 0ms, 0ms; }

.tech-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.tech-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.3) opacity(0.6);
  transition: filter var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tech-fallback {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  transition: color var(--dur-base) var(--ease-out);
}
.tech-item .tech-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tech-item:hover {
    border-color: color-mix(in srgb, var(--tint, var(--accent)) 55%, var(--line-strong));
    box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--tint, var(--accent)) 45%, transparent);
    transform: translateY(-4px);
  }
  .tech-item:hover .tech-icon {
    border-color: color-mix(in srgb, var(--tint, var(--accent)) 50%, transparent);
    background: color-mix(in srgb, var(--tint, var(--accent)) 14%, var(--bg-raised));
  }
  .tech-item:hover .tech-icon img,
  .tech-item:hover .tech-fallback {
    filter: none;
    transform: scale(1.08);
    color: var(--tint, var(--ink));
  }
  .tech-item:hover .tech-name { color: var(--ink); }
}

/* ---------- about ---------- */
.about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem var(--gutter);
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 4rem;
  align-items: start;
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) {
  .about { grid-template-columns: 220px 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 260px; }
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.03);
}
.about-photo.photo-fallback img { display: none; }
.about-photo.photo-fallback::before {
  content: "SS";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--ink-faint);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 1.25rem;
}

.about-lede {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 1.5rem;
}

.about-body {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 56ch;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  align-content: start;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  transition: border-color var(--dur-base) var(--ease-out);
}
.stat:hover { border-top-color: var(--accent); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .stat:hover .stat-num { transform: translateY(-2px); }
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.35;
}

/* ---------- work ---------- */
.work {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem var(--gutter);
  border-top: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 2.5rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tab {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.9rem 1.1rem;
  color: var(--ink-faint);
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.tab.active { color: var(--ink); }
.tab.active::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: panelIn 420ms var(--ease-out);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-panel .entry:nth-child(1) { transition-delay: 40ms; }
.tab-panel .entry:nth-child(2) { transition-delay: 90ms; }
.tab-panel .entry:nth-child(3) { transition-delay: 140ms; }

.entry {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: padding-left var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry:hover { padding-left: 0.75rem; border-left-color: var(--accent); }

.entry-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-soft);
  padding-top: 0.3rem;
}

.entry-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.entry-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.6rem;
  vertical-align: middle;
  transform: translateY(-2px);
}

.entry-body p {
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 0 0 1.25rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
}

/* ---------- experience / education split ---------- */
.split {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 4rem; }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }

.tl-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}
.timeline h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.timeline p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  max-width: 46ch;
}

.skills-label { margin-top: 3rem; }
.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.skill-group {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.skill-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  width: 70px;
  flex-shrink: 0;
}

/* ---------- contact ---------- */
.contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem var(--gutter) 8rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.contact-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6rem);
  margin: 0 0 1.5rem;
  color: var(--accent);
}

.contact-copy {
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 620px) {
  .contact-links { grid-template-columns: 1fr; }
}
.contact-link {
  background: var(--bg);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: background 0.25s ease;
}
.contact-link:hover { background: var(--bg-alt); }
.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.contact-icon {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}
.contact-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.3) opacity(0.6);
  transition: filter var(--dur-base) var(--ease-out);
}
.contact-icon-svg svg {
  color: var(--ink-faint);
  transition: color var(--dur-base) var(--ease-out);
}
.contact-icon .tech-fallback {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  transition: color var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-link:hover .contact-icon {
    transform: scale(1.15);
    border-color: color-mix(in srgb, var(--tint, var(--accent)) 55%, transparent);
    background: color-mix(in srgb, var(--tint, var(--accent)) 16%, var(--bg-raised));
  }
  .contact-link:hover .contact-icon img { filter: none; }
  .contact-link:hover .contact-icon-svg svg { color: var(--tint, var(--accent)); }
  .contact-link:hover .contact-icon .tech-fallback { color: var(--tint, var(--ink)); }
}
.cl-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.cl-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem var(--gutter) 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}
@media (max-width: 620px) {
  .site-footer { flex-direction: column; gap: 0.5rem; }
}

/* entry -> project page link */
.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, gap 0.25s ease;
}
.entry-link:hover { border-color: var(--accent); gap: 0.6rem; }
.entry-body h3 a { color: inherit; }
.entry-body h3 a:hover { color: var(--accent); }

/* ============================================
   PROJECT DETAIL PAGES
   ============================================ */

.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6.5rem var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

.proj-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
  border-bottom: 1px solid var(--line);
}
.proj-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.proj-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.proj-dek {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 2.25rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.meta-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.proj-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.proj-section:last-of-type { border-bottom: none; }
.proj-section-head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 2rem;
}
.proj-lede {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  max-width: 56ch;
  margin: 0 0 1.5rem;
}
.proj-body {
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 1.25rem;
}
.proj-body strong { color: var(--ink); }

.proj-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .proj-cols { grid-template-columns: 1fr; }
}
.proj-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}
.proj-col p, .proj-col li {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.proj-col ul { margin: 0; padding-left: 1.1rem; }

/* stat grid reuse of .stat, new wrapper */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 1.5rem;
}

/* tech stack groups reuse .skill-group/.tags */
.stack-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 46ch;
  border-left: 2px solid var(--accent);
  padding-left: 1.75rem;
  margin: 0;
}

/* persona cards */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) {
  .persona-grid { grid-template-columns: 1fr; }
}
.persona-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px var(--paper-shadow);
    border-color: var(--line-strong);
  }
}
.persona-emoji { font-size: 1.8rem; }
.persona-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.75rem 0 0.2rem;
}
.persona-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 1rem;
}
.persona-card p { color: var(--ink-soft); font-size: 0.9rem; }
.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
}
.persona-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}
.persona-card h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 1rem 0 0.5rem;
}
.persona-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.88rem; }

/* journey table */
.journey-table-wrap { overflow-x: auto; }
.journey-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.85rem;
}
.journey-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-strong);
}
.journey-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.journey-table td:first-child { color: var(--ink); font-weight: 600; }

/* pain / hmw numbered cards */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}
.numbered-card {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.numbered-card .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 0.5rem;
}
.numbered-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.numbered-card p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* color swatches */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.swatch {
  width: 120px;
}
.swatch-color {
  height: 80px;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .swatch:hover .swatch-color {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 24px var(--paper-shadow);
  }
}
.swatch-name {
  font-size: 0.82rem;
  font-weight: 600;
}
.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.type-specimen {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}
.type-specimen .spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

/* gallery / mockup images */
.proj-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.proj-gallery img {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px var(--paper-shadow);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .proj-gallery img:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 28px 56px var(--paper-shadow);
  }
}
.gallery-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.gallery-caption ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }

/* simple CSS mockups for Frabe (no source images) */
.mockup {
  background: #1A1A2E;
  border-radius: 20px;
  padding: 1.75rem;
  max-width: 300px;
  color: #f2f2f2;
  font-family: var(--font-body);
}
.mockup-sos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.mockup-sos .sos-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff2d55, #d94030);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 0 0 8px rgba(255,45,85,0.15), 0 0 0 16px rgba(255,45,85,0.08);
  animation: sosPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes sosPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255,45,85,0.15), 0 0 0 16px rgba(255,45,85,0.08); }
  50% { box-shadow: 0 0 0 12px rgba(255,45,85,0.22), 0 0 0 24px rgba(255,45,85,0.1); }
}
@media (prefers-reduced-motion: reduce) {
  .mockup-sos .sos-btn { animation: none; }
}
.mockup-helplines {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  width: 100%;
}
.mockup-helplines span {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
}

/* decision cards reuse numbered-card style with accent border */
.decision-card {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}

.proj-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--gutter) 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.proj-nav a:hover { color: var(--accent); }
