/* =========================================================
   Subhan Ihsan — QA Portfolio
   Editorial QA aesthetic. Dark default, warm light mode.
   ========================================================= */

:root {
  /* Palette — dark (default) */
  --bg: #0b0b0d;
  --bg-2: #111114;
  --bg-3: #16171b;
  --surface: #131418;
  --surface-2: #191b20;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f4f6;
  --text-dim: #a8a9b0;
  --muted: #6b6c75;
  --accent: oklch(0.85 0.19 138);          /* electric lime — pass color */
  --accent-soft: oklch(0.85 0.19 138 / 0.14);
  --accent-line: oklch(0.85 0.19 138 / 0.32);
  --accent-ink: #0a0e07;
  --warn: oklch(0.82 0.16 70);              /* warm amber */
  --info: oklch(0.78 0.13 250);             /* soft blue */
  --rose: oklch(0.74 0.16 25);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 20px 60px -20px oklch(0.85 0.19 138 / 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --max: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* Type */
  --font-sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
}

:root[data-theme="light"] {
  --bg: #f3efe8;
  --bg-2: #ece7dd;
  --bg-3: #e3ddd0;
  --surface: #fbf8f2;
  --surface-2: #f6f1e6;
  --line: rgba(20, 18, 14, 0.09);
  --line-2: rgba(20, 18, 14, 0.16);
  --text: #1a1814;
  --text-dim: #54514a;
  --muted: #807c72;
  --accent: oklch(0.55 0.16 138);
  --accent-soft: oklch(0.55 0.16 138 / 0.12);
  --accent-line: oklch(0.55 0.16 138 / 0.35);
  --accent-ink: #f3efe8;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 40px -12px rgba(60, 50, 30, 0.18);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 24px 60px -24px oklch(0.55 0.16 138 / 0.4);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Selection */
::selection { background: var(--accent); color: var(--accent-ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  top: 0; left: 0;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  border-color: var(--accent);
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Layout helpers */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 14px 0 18px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.section-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 48px;
  text-wrap: pretty;
}
section { padding: clamp(72px, 10vh, 130px) 0; position: relative; }
section + section { border-top: 1px solid var(--line); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: color-mix(in oklab, var(--bg-2) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  font-size: 13px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text);
  border-right: 1px solid var(--line);
  margin-right: 2px;
}
.nav-brand .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-ink); background: var(--accent); }
.nav-tools { display: flex; gap: 4px; padding-left: 4px; border-left: 1px solid var(--line); margin-left: 2px; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--bg-3); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
  margin-left: 4px;
  transition: transform 0.2s, filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.05); }
.nav-cta::after { content: "→"; transition: transform 0.2s; }
.nav-cta:hover::after { transform: translateX(3px); }

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.menu-btn span {
  width: 14px; height: 1.5px; background: var(--text);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--text);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta, .nav-tools { display: none; }
  .nav-brand { border-right: 0; margin-right: 0; }
  .menu-btn { display: flex; }
}

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 80px var(--pad-x) 32px;
}
.mobile-sheet.open { display: flex; }
.mobile-sheet a {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-sheet a span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-right: 10px;
  font-weight: 400;
}

/* ============ HERO ============ */
.hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.7;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.hero-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  position: relative;
  animation: dot-pulse 1.5s ease-in-out infinite;
}
.hero-status .dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-ring 1.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes dot-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}
.hero-status strong { color: var(--text); font-weight: 500; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 7.8vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: "";
  position: absolute;
  bottom: 0.05em; left: 0; right: 0;
  height: 0.07em;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 2px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-2); }
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn.primary:hover { filter: brightness(1.05); }
.btn .arrow { display: inline-block; transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero stats inline */
.hero-meta {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-meta-item {
  flex: 1;
  padding-right: 22px;
}
.hero-meta-item + .hero-meta-item {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.hero-meta-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.hero-meta-num small {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 500;
}
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Right column: live test runner + portrait card stack */
.hero-stage {
  display: grid;
  gap: 18px;
  position: relative;
}

/* Test runner panel */
.runner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  box-shadow: var(--shadow-1);
}
.runner-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.runner-bar .lights { display: flex; gap: 6px; }
.runner-bar .lights .light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-2);
  border: 0;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0, 0, 0, 0);
  transition: color .15s ease, transform .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.runner-bar .lights .light svg {
  width: 10px;
  height: 10px;
  display: block;
}
.runner-bar .lights .light-close { background: #ff5f57; }
.runner-bar .lights .light-min   { background: #febc2e; }
.runner-bar .lights .light-max   { background: #28c840; }
.runner:hover .runner-bar .lights .light,
.runner-bar .lights .light:focus-visible {
  color: rgba(0, 0, 0, 0.65);
}
.runner-bar .lights .light:hover { filter: brightness(1.08); }
.runner-bar .lights .light:active { transform: scale(0.92); }
.runner-bar .lights .light:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.runner-bar .file {
  margin-left: 12px;
  color: var(--text-dim);
  font-size: 12px;
}
.runner-bar .file b { color: var(--text); font-weight: 500; }
.runner-bar .badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.runner-bar .badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(80, 200, 120, 0.55); }
  50%      { opacity: 0.35; box-shadow: 0 0 0 5px rgba(80, 200, 120, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .runner-bar .badge::before { animation: none; }
}
.runner-body {
  padding: 18px 18px 4px;
  min-height: 260px;
  position: relative;
}
.runner-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
}
.runner-line .ic {
  width: 14px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.runner-line.pass .ic { color: var(--accent); }
.runner-line.run .ic { color: var(--info); }
.runner-line.fail .ic { color: var(--rose); }
.runner-line.head { color: var(--text); font-weight: 500; padding-bottom: 8px; }
.runner-line .name { color: var(--text); }
.runner-line .ms { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.runner-line .indent { display: inline-block; width: 14px; }
.runner-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 12px;
  color: var(--text-dim);
}
.runner-summary .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: 11.5px;
  font-weight: 600;
}
.runner-summary .pill.warn {
  background: oklch(0.82 0.16 70 / 0.14);
  color: var(--warn);
  border-color: oklch(0.82 0.16 70 / 0.32);
}
.runner-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Runner window state transitions */
.runner { transition: opacity 0.2s ease, transform 0.2s ease; }
.runner.is-hiding {
  opacity: 0;
  transform: scale(0.93) translateY(-6px);
  pointer-events: none;
}
.runner.is-hidden { display: none; }
.runner.is-restoring {
  opacity: 0;
  transform: scale(0.93) translateY(-6px);
}
.runner.is-maximized .runner-body { min-height: 450px; }

/* Minimized dock icon */
.runner-dock {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  -webkit-tap-highlight-color: transparent;
  width: fit-content;
  transition: background 0.15s ease, transform 0.15s ease;
}
.runner-dock.is-visible {
  display: inline-flex;
  animation: dock-in 0.28s ease forwards;
}
.runner-dock:hover { background: var(--bg-2); transform: translateY(-1px); }
.runner-dock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28c840;
  flex-shrink: 0;
}
@keyframes dock-in {
  from { opacity: 0; transform: scale(0.88) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Portrait card */
.portrait {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
}
.portrait-avatar {
  width: 88px; height: 88px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.portrait-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.portrait-info .pi-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.portrait-info .pi-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.portrait-cert {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
}
.portrait-cert b {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-item .glyph {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.marquee-item .star {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - 28px)); }
}

/* ============ SKILLS ============ */
#skills { background: var(--bg); }
.skills-wrap {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .skills-wrap { grid-template-columns: 1fr; gap: 32px; } }
.skills-intro .section-title { margin-bottom: 22px; }
.skills-side {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.skills-side h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.skills-side ul { list-style: none; }
.skills-side li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-dim);
}
.skills-side li:last-child { border-bottom: 0; }
.skills-side li b { color: var(--accent); font-weight: 600; }

.skill-cats {
  display: grid;
  gap: 14px;
}
.skill-cat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.skill-cat:hover { border-color: var(--line-2); }
.skill-cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.skill-cat-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.skill-cat-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 1;
}
.skill-cat-tools {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.skill-cat-toggle {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: transform 0.3s, background 0.2s;
  font-family: var(--font-mono);
  font-size: 14px;
}
.skill-cat.open .skill-cat-toggle { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.skill-cat-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.skill-cat.open .skill-cat-body { grid-template-rows: 1fr; }
.skill-cat-body > div { overflow: hidden; }
.skill-cat-inner {
  padding: 0 20px 20px;
  display: grid;
  gap: 10px;
}
.skill-tool {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  align-items: center;
  gap: 14px;
}
.skill-tool-name { font-size: 14px; font-weight: 500; }
.skill-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), oklch(0.78 0.18 165));
  border-radius: inherit;
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skill-tool-pct {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-2); }
.svc:hover::before { opacity: 1; }
.svc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.svc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.svc-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.svc.featured { background: var(--surface-2); border-color: var(--accent-line); }
.svc.featured .svc-tag {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
}
.svc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.svc-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.svc-price small {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.svc-desc { color: var(--text-dim); font-size: 14.5px; margin-bottom: 24px; min-height: 64px; }
.svc-list { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.svc-list li {
  display: flex; gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.svc-list li::before {
  content: "✓";
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}
.svc-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 14px;
  background: var(--bg-2);
  transition: background 0.2s, border-color 0.2s;
}
.svc-cta:hover { background: var(--bg-3); border-color: var(--line-2); }
.svc.featured .svc-cta {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.svc.featured .svc-cta:hover { filter: brightness(1.05); }
.svc-cta::after { content: "→"; transition: transform 0.2s; }
.svc-cta:hover::after { transform: translateX(3px); }

/* ============ PROJECTS ============ */
#projects { background: var(--bg-2); }
.projects-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.proj {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s, border-color 0.35s;
  text-decoration: none;
  color: inherit;
}
.proj:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.proj::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.proj:hover::after { opacity: 1; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.proj-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proj-arrow {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.proj:hover .proj-arrow {
  transform: rotate(-45deg);
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.proj h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: auto;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.proj p { font-size: 13.5px; color: var(--text-dim); position: relative; z-index: 1; }
.proj-tech {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.proj-tech span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

/* Bento sizing */
.proj.span-3 { grid-column: span 3; }
.proj.span-2 { grid-column: span 2; }
.proj.span-4 { grid-column: span 4; }
.proj.tall { grid-row: span 2; }
.proj.feat {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: var(--accent-line);
}
.proj.feat h3 { font-size: 38px; }
.proj.feat .proj-shape {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
@media (max-width: 1100px) {
  .projects-bento { grid-template-columns: repeat(4, 1fr); }
  .proj.feat { grid-column: span 4; }
  .proj.span-4 { grid-column: span 4; }
  .proj.span-3 { grid-column: span 4; }
  .proj.span-2 { grid-column: span 2; }
}
@media (max-width: 700px) {
  .projects-bento { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .proj, .proj.feat, .proj.span-4, .proj.span-3, .proj.span-2 { grid-column: span 1; grid-row: span 1; }
  .proj.feat h3 { font-size: 28px; }
}

.all-projects {
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.all-projects-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.all-projects-label b { color: var(--accent); }
.all-projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.all-projects-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.2s;
}
.all-projects-list span:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* Work deliverables */
.work-samples {
  margin-top: 32px;
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.work-samples-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-samples-label span { color: var(--accent); }
.work-samples-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.work-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.work-card-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.work-card-icon svg { width: 18px; height: 18px; }
.work-card-body { flex: 1; }
.work-card-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}
.work-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.work-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  align-self: flex-start;
  cursor: pointer;
}
.work-card-btn span { display: inline-block; transition: transform 0.15s ease; }
.work-card-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.work-card-btn:hover span { transform: translateX(2px); }
@media (max-width: 1100px) {
  .work-samples-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .work-samples-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ TESTIMONIALS ============ */
.tcarousel {
  position: relative;
  margin-top: 40px;
}
.tcarousel-stage {
  position: relative;
  min-height: 320px;
  display: grid;
}
.testi {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 44px 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.testi.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 800px) {
  .testi { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}
.testi-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.015em;
  position: relative;
  text-wrap: pretty;
}
.testi-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.5em; left: -0.4em;
  font-family: var(--font-serif);
  font-size: 5em;
  color: var(--accent-soft);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.testi-quote span { position: relative; z-index: 1; }
.testi-meta {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 800px) { .testi-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }
.testi-author {
  display: flex; gap: 12px; align-items: center;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--info));
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.testi-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
}
.testi-project {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}
.testi-project-list {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--line);
  line-height: 1.6;
}
.testi-project-list span { color: var(--muted); }

.tcarousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}
.tcarousel-progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.tcarousel-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.tcarousel-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 60px;
}
.tcarousel-counter b { color: var(--text); font-weight: 500; }
.tcarousel-btns { display: flex; gap: 6px; }
.tc-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tc-btn:hover { background: var(--bg-3); color: var(--text); border-color: var(--line-2); }

/* ============ CONTACT ============ */
#contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info-list {
  display: grid;
  gap: 4px;
  margin-top: 32px;
}
.contact-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s;
}
.contact-link:hover { padding-left: 14px; }
.contact-link-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: background 0.2s, color 0.2s;
}
.contact-link:hover .contact-link-icon {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.contact-link-meta { display: flex; flex-direction: column; gap: 2px; }
.contact-link-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-link-val {
  font-size: 15px;
  font-weight: 500;
}
.contact-link-arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.contact-link:hover .contact-link-arrow { color: var(--accent); transform: translateX(4px); }

.contact-right {
  display: grid;
  gap: 18px;
  align-content: start;
}
.next-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: 22px 24px;
  font-family: var(--font-mono);
}
.next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.next-prompt { color: var(--accent); }
.next-meta { color: var(--muted); }
.next-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.next-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.next-num {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.next-list li b {
  display: block;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 3px;
}
.next-list li p {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}
.contact-form {
  align-self: start;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 4px;
  position: relative;
  box-shadow: var(--shadow-1);
}
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 600px) { .contact-form-row { grid-template-columns: 1fr; } }

.field {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
}
.contact-form-row .field + .field { border-left: 1px solid var(--line); }
@media (max-width: 600px) { .contact-form-row .field + .field { border-left: 0; } }

.field label {
  position: absolute;
  left: 14px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.18s ease, color 0.18s ease;
}
.field.has-label-top label,
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.85);
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 26px 14px 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: transparent; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: color-mix(in oklab, var(--accent-soft) 35%, transparent);
}

.field select option {
  background: var(--bg-2);
  color: var(--text);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 60%, calc(100% - 14px) 60%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field.field--select label {
  transform: translateY(-10px) scale(0.85);
  color: var(--muted);
}
.field.field--select:focus-within label { color: var(--accent); }

.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
  display: block;
}
.field.field--textarea { border-bottom: 0; }

/* row of icons / submit row */
.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.contact-form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-form-note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px 11px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.005em;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 8px 24px -10px var(--accent);
}
.submit-btn .arrow {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,0.16);
  font-size: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.submit-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.submit-btn:hover .arrow { transform: translateX(3px); background: rgba(0,0,0,0.24); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }
.form-msg {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  display: none;
}
.form-msg.success { display: block; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.form-msg.error { display: block; background: oklch(0.74 0.16 25 / 0.14); color: var(--rose); border: 1px solid oklch(0.74 0.16 25 / 0.32); }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; } }
.footer-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 0.9;
}
.footer-mark span { color: var(--accent); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.footer-links {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.footer-links a {
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.footer-links a:hover { color: var(--accent); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
