/* ==========================================================================
   Muhammed Unais — Portfolio
   Design system: Fraunces (display) + Manrope (body) + IBM Plex Mono (data/labels)
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable where possible) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.woff2") format("woff2-variations"),
       url("../fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic.woff2") format("woff2-variations"),
       url("../fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.woff2") format("woff2-variations"),
       url("../fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: hsl(240 8% 5%);
  --bg-soft: hsl(240 7% 7%);
  --surface: hsl(240 6% 10%);
  --surface-hi: hsl(240 6% 13%);
  --border: hsl(240 10% 100% / 0.09);
  --border-strong: hsl(240 10% 100% / 0.18);

  --text: hsl(48 20% 95%);
  --text-muted: hsl(240 6% 66%);
  --text-faint: hsl(240 5% 45%);

  --accent: hsl(263 85% 70%);
  --accent-strong: hsl(263 85% 78%);
  --accent-soft: hsl(263 85% 70% / 0.12);
  --accent-ink: hsl(263 40% 12%);
  --signal: hsl(32 80% 62%);
  --signal-soft: hsl(32 80% 62% / 0.14);


  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-s: 10px;
  --radius-l: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: hsl(45 30% 97%);
    --bg-soft: hsl(44 26% 94%);
    --surface: hsl(43 24% 91%);
    --surface-hi: hsl(42 22% 87%);
    --border: hsl(240 10% 10% / 0.10);
    --border-strong: hsl(240 10% 10% / 0.20);

    --text: hsl(240 12% 10%);
    --text-muted: hsl(240 8% 33%);
    --text-faint: hsl(240 6% 48%);

    --accent: hsl(263 62% 46%);
    --accent-strong: hsl(263 65% 38%);
    --accent-soft: hsl(263 62% 46% / 0.10);
    --accent-ink: hsl(45 30% 97%);
    --signal: hsl(28 70% 40%);
    --signal-soft: hsl(28 70% 40% / 0.12);

  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: hsl(240 8% 5%);
  --bg-soft: hsl(240 7% 7%);
  --surface: hsl(240 6% 10%);
  --surface-hi: hsl(240 6% 13%);
  --border: hsl(240 10% 100% / 0.09);
  --border-strong: hsl(240 10% 100% / 0.18);
  --text: hsl(48 20% 95%);
  --text-muted: hsl(240 6% 66%);
  --text-faint: hsl(240 5% 45%);
  --accent: hsl(263 85% 70%);
  --accent-strong: hsl(263 85% 78%);
  --accent-soft: hsl(263 85% 70% / 0.12);
  --accent-ink: hsl(263 40% 12%);
  --signal: hsl(32 80% 62%);
  --signal-soft: hsl(32 80% 62% / 0.14);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: hsl(45 30% 97%);
  --bg-soft: hsl(44 26% 94%);
  --surface: hsl(43 24% 91%);
  --surface-hi: hsl(42 22% 87%);
  --border: hsl(240 10% 10% / 0.10);
  --border-strong: hsl(240 10% 10% / 0.20);
  --text: hsl(240 12% 10%);
  --text-muted: hsl(240 8% 33%);
  --text-faint: hsl(240 6% 48%);
  --accent: hsl(263 62% 46%);
  --accent-strong: hsl(263 65% 38%);
  --accent-soft: hsl(263 62% 46% / 0.10);
  --accent-ink: hsl(45 30% 97%);
  --signal: hsl(28 70% 40%);
  --signal-soft: hsl(28 70% 40% / 0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--text); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--accent);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
  max-width: 42ch;
}
.accent-word { color: var(--accent); font-style: italic; font-family: var(--font-display); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: max(1.1rem, env(safe-area-inset-top)) 0 1.1rem;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: hsl(240 8% 5% / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  padding: max(0.75rem, env(safe-area-inset-top)) 0 0.75rem;
}
:root[data-theme="light"] .site-header.is-scrolled { background: hsl(45 30% 97% / 0.78); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .site-header.is-scrolled { background: hsl(45 30% 97% / 0.78); }
}
.site-header .container { display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem; }

.nav-desktop { display: none; }
@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .nav-desktop a {
    position: relative;
    padding: 0.3rem 0;
    color: var(--text-muted);
    transition: color 0.25s var(--ease);
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right 0.3s var(--ease);
  }
  .nav-desktop a:hover, .nav-desktop a.is-active { color: var(--text); }
  .nav-desktop a:hover::after, .nav-desktop a.is-active::after { right: 0; }
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.theme-toggle, .menu-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--border-strong); background: var(--surface); transform: translateY(-1px); }
.theme-toggle:active, .menu-toggle:active { transform: scale(0.94); }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }

/* Default (no explicit data-theme, no media support): dark ground, show moon */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: grid; }
@media (min-width: 860px) { .menu-toggle { display: none; } }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--gutter) + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) calc(var(--gutter) + env(safe-area-inset-bottom)) calc(var(--gutter) + env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav li:first-child { border-top: 1px solid var(--border); }
.mobile-nav ul a {
  display: block;
  padding: 0.55em 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 10vw, 3rem);
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s var(--ease);
}
.mobile-nav li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-nav li:nth-child(2) a { transition-delay: 0.1s; }
.mobile-nav li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-nav li:nth-child(4) a { transition-delay: 0.2s; }
.mobile-nav li:nth-child(5) a { transition-delay: 0.25s; }
.mobile-nav.is-open ul a { opacity: 1; transform: translateX(0); }
.mobile-nav ul a:active { color: var(--accent); }
.mobile-nav .mobile-nav-foot {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.3s;
}
.mobile-nav.is-open .mobile-nav-foot { opacity: 1; }
.mobile-nav .mobile-nav-foot a:active { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: var(--border-strong); }
.btn svg { width: 15px; height: 15px; }

.icon-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.icon-link:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.icon-link svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Section shell ---------- */
.section { position: relative; border-top: 1px solid var(--border); }
.section-pad { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: 720px;
}
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; }
.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 2rem 4rem;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.55fr 1fr; align-items: end; gap: 4rem; }
}
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.6rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }

.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}
.hero-portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.08);
  transition: transform 0.6s var(--ease);
}
.hero-portrait-frame:hover img { transform: scale(1.03); }
.hero-portrait-tag {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 28px; background: linear-gradient(var(--text-faint), transparent); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.4; } }

/* ---------- About ---------- */
.about-shell { position: relative; overflow: hidden; }
.about-bg-word {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-8%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 15vw, 12rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(240px, 0.85fr) 1.15fr; align-items: start; }
}

.about-media { min-width: 0; }
.about-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.08);
}

.about-copy-col { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.about-greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--text);
}
.about-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.about-copy p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted); line-height: 1.65; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-copy .lead-line { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--text); font-weight: 500; line-height: 1.4; }

.about-venture {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 0.25rem;
}
.about-venture .eyebrow { margin-bottom: 0.5rem; }
.about-venture h4 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
.about-venture p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.25rem; max-width: 56ch; }
.venture-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.venture-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.venture-links a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.venture-links svg { width: 14px; height: 14px; }

/* ---------- Capabilities ---------- */
.cap-list { border-top: 1px solid var(--border); }
.cap-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease);
}
@media (min-width: 760px) {
  .cap-row { grid-template-columns: 4rem 1fr; }
}
.cap-row:hover { background: var(--surface); }
.cap-index { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-faint); padding-top: 0.2rem; }
.cap-main { display: flex; flex-direction: column; gap: 0.6rem; max-width: 62ch; }
.cap-row h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 500; transition: color 0.25s var(--ease); }
.cap-row:hover h3 { color: var(--accent); }
.cap-row p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; }

/* ---------- Work / Projects ---------- */
.work-list { border-top: 1px solid var(--border); }
.work-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background-color 0.3s var(--ease);
}
@media (min-width: 760px) {
  .work-row { grid-template-columns: 4rem 1fr auto; align-items: center; gap: 2rem; }
}
.work-row:hover { background: var(--surface); }
.work-index { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-faint); padding-top: 0.2rem; }
.work-main { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.work-row h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  transition: color 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}
.work-row:hover h3 { color: var(--accent); }
.work-row p { color: var(--text-muted); max-width: 62ch; font-size: 0.98rem; line-height: 1.6; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.work-visual {
  display: none;
}
@media (min-width: 760px) {
  .work-visual {
    display: block;
    width: 132px;
    height: 96px;
    border-radius: var(--radius-s);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-soft);
  }
  .work-visual canvas { width: 100%; height: 100%; }
}

/* ---------- Toolkit ---------- */
.toolkit-list { border-top: 1px solid var(--border); }
.toolkit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
  .toolkit-row {
    grid-template-columns: minmax(170px, 240px) 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}
.toolkit-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-muted);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip:hover { background: var(--accent-soft); color: var(--accent); transform: translateY(-2px); }

/* ---------- Experience ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-rail::before {
  content: "";
  position: absolute;
  top: 6px; bottom: -3rem;
  width: 1px;
  background: var(--border);
}
.timeline-item:last-child .timeline-rail::before { display: none; }
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  margin-top: 4px;
  flex-shrink: 0;
}
.timeline-content h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.3rem; }
.timeline-content .role-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--signal);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.timeline-content p { color: var(--text-muted); max-width: 60ch; line-height: 1.65; }

/* ---------- Contact / Footer ---------- */
.contact-inner { text-align: left; }
.contact-headline {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 18ch;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.contact-details {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-details a:hover { color: var(--accent); }
.contact-details .label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 0.4rem; }

.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-faint);
}
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; align-items: center; }
}
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials .icon-link { width: 36px; height: 36px; }
.footer-socials .icon-link svg { width: 15px; height: 15px; }
.footer-note { font-family: var(--font-mono); }
