/* ==========================================================================
   korodi.us — public site
   Colour tokens come from /style.css, which is generated from the admin
   theme settings and emits both a dark and a light ramp. Nothing in this
   file hardcodes a colour; everything references a token so the whole site
   recolours when the preset or mode changes.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky nav is 64px; keep anchored headings clear of it. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- decor */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-decor .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.orb-1 {
  width: 620px; height: 620px;
  top: -240px; right: -160px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
}
.orb-2 {
  width: 520px; height: 520px;
  top: 44%; left: -220px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 68%);
}
.grid-overlay {
  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;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-actions { display: flex; align-items: center; gap: 6px; }

.icon-link, .theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.icon-link:hover, .theme-toggle:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.icon-link svg, .theme-toggle svg { width: 18px; height: 18px; }

/* Show the moon in light mode and the sun in dark mode. */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ----------------------------------------------------------------- hero */

.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.hero-greeting .accent { color: var(--accent-2); }

.hero-headline {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subhead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 26px;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.84rem;
}
.meta-chip svg { width: 14px; height: 14px; }
.meta-chip.available { color: var(--accent-3); border-color: color-mix(in srgb, var(--accent-3) 40%, var(--border)); }
.meta-chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 22%, transparent);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 20px -8px var(--accent);
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px var(--accent); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); }

/* terminal */

.terminal {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}
.term-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-body {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.85;
  color: var(--text-muted);
  overflow-x: auto;
}
.c-prompt { color: var(--accent-2); }
.c-path { color: var(--accent); }
.c-out { color: var(--text); }
.cursor { color: var(--accent-3); animation: blink 1.15s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- stats */

.stats { padding: 12px 0 clamp(40px, 6vw, 72px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-label { color: var(--text-muted); font-size: 0.86rem; margin-top: 6px; }

/* ------------------------------------------------------------- sections */

.section { padding: clamp(52px, 8vw, 92px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }
.section-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  opacity: 0.8;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 700; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.about-text p { color: var(--text-muted); margin: 0 0 18px; max-width: 68ch; }
.about-text p:last-child { margin-bottom: 0; }
.about-photo img { border-radius: var(--radius); border: 1px solid var(--border); }

/* --------------------------------------------------------------- skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.skill-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.skill-cat {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.tag-sm { font-size: 0.72rem; padding: 4px 9px; }

/* ----------------------------------------------------------- experience */

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
  opacity: 0.5;
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -30px; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.tl-role { font-size: 1.1rem; font-weight: 600; }
.tl-dates { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }
.tl-company { color: var(--accent-2); font-size: 0.92rem; margin: 4px 0 12px; }
.tl-bullets { margin: 0; padding-left: 18px; color: var(--text-muted); }
.tl-bullets li { margin-bottom: 8px; }

/* ------------------------------------------------------------- projects */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-chip {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
}
.project-card.is-hidden { display: none; }

.project-media {
  position: relative;
  aspect-ratio: 40 / 21;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.project-media img,
.project-media .cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-cat {
  position: absolute;
  left: 14px; top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-title { font-size: 1.12rem; font-weight: 650; margin-bottom: 4px; }
.project-title a { color: var(--text); }
.project-title a:hover { color: var(--accent-2); text-decoration: none; }
.project-sub { color: var(--accent-2); font-size: 0.85rem; margin: 0 0 12px; }
.project-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.project-date { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 500;
}
.project-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.project-link:hover { text-decoration: none; }
.project-link:hover svg { transform: translateX(3px); }

.empty-note {
  padding: 40px 0;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------- case study (detail) */

.case-hero { padding: 40px 0 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }

.case-head { max-width: 76ch; }
.case-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.case-eyebrow .pill {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, var(--border));
  color: var(--accent-2);
}
.case-title { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 800; text-wrap: balance; }
.case-sub { color: var(--text-muted); font-size: 1.08rem; margin: 12px 0 0; }

.case-cover {
  margin: 34px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 40 / 21;
  background: var(--surface-2);
}
.case-cover img, .case-cover .cover-art { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  align-items: start;
  padding: clamp(36px, 6vw, 60px) 0 clamp(52px, 8vw, 90px);
}

.case-body h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 34px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.case-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.case-body p { color: var(--text-muted); margin: 0; max-width: 70ch; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 32px 0 0;
}
.metric {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 750;
  color: var(--accent-2);
  line-height: 1.15;
}
.metric-label { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }

.case-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 22px;
}
.aside-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.aside-card h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.aside-links { display: grid; gap: 10px; }
.aside-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }

.case-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 0 clamp(52px, 8vw, 90px);
}
.case-nav-item {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.case-nav-item:hover { border-color: var(--border-strong); transform: translateY(-2px); text-decoration: none; }
.case-nav-item.next { text-align: right; }
.case-nav-dir {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  display: block;
  margin-bottom: 6px;
}
.case-nav-title { color: var(--text); font-weight: 600; font-size: 0.98rem; }

.notice {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------- certs */

.cert-list { display: grid; gap: 12px; }
.cert-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cert-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--accent-2);
}
.cert-icon svg { width: 19px; height: 19px; }
.cert-title { font-size: 0.99rem; font-weight: 600; }
.cert-meta { color: var(--text-muted); font-size: 0.86rem; margin-top: 2px; }
.cert-note { color: var(--accent-3); font-size: 0.8rem; margin-top: 4px; }

/* -------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-blurb { color: var(--text-muted); margin: 0 0 22px; }
.contact-links { display: grid; gap: 12px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.contact-link svg { width: 17px; height: 17px; color: var(--accent-2); flex-shrink: 0; }
a.contact-link:hover { color: var(--text); text-decoration: none; }

.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.contact-form button { justify-content: center; }
.form-status { font-size: 0.88rem; margin: 0; min-height: 1.2em; }
.form-status.ok { color: var(--accent-3); }
.form-status.err { color: #ff6b6b; }

/* Honeypot: hidden from humans, tempting to naive bots. Not display:none,
   because some bots skip those; off-screen with no tab stop instead. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--border); padding: 30px 0; background: var(--bg-alt); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { color: var(--text-faint); display: grid; place-items: center; width: 30px; height: 30px; }
.footer-socials a:hover { color: var(--accent-2); }
.footer-socials svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------- reveal */

/* Only hide content when JavaScript is actually running to reveal it again.
   Without the `js` class (JS blocked, failed, or still loading) everything
   stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .case-layout { grid-template-columns: 1fr; gap: 32px; }
  .case-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-inner { gap: 10px; }
  .brand-name { display: none; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav-item.next { text-align: left; }
  .projects-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: 4px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .bg-decor, .footer-socials, .contact-form, .case-nav { display: none; }
  body { background: #fff; color: #000; }
}
