/* =========================================================
   Damson Kevin Tumusiime — Personal site
   Monochrome editorial look (matching the B&W portrait)
   with a single warm gold accent.
   ========================================================= */

:root {
  --ink: #111110;
  --ink-soft: #2a2927;
  --paper: #f3efe7;
  --paper-2: #e9e3d7;
  --muted: #6d6a63;
  --line: rgba(17, 17, 16, 0.14);
  --gold: #e8b04b;
  --gold-deep: #b9832a;

  /* Fixed colours: dark bands (work, marquee, footer) and text on gold */
  --band: #111110;
  --band-fg: #f3efe7;
  --on-gold: #111110;
  --header-bg: rgba(243, 239, 231, 0.82);
  --shadow: rgba(17, 17, 16, 0.45);

  color-scheme: light;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- Dark theme ---------------- */
[data-theme="dark"] {
  --ink: #f1ece2;
  --ink-soft: #cfc9bd;
  --paper: #121211;
  --paper-2: #1b1a18;
  --muted: #9a958b;
  --line: rgba(241, 236, 226, 0.14);
  --gold-deep: #e0a845;

  --band: #1b1a18;
  --header-bg: rgba(18, 18, 17, 0.82);
  --shadow: rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* Smooth colour change when switching themes */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, fill 0.4s ease !important;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

em { font-style: italic; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

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

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--band);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------------- Theme toggle ---------------- */
.nav-menu { margin-left: auto; }
.theme-toggle {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 1.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold-deep); transform: rotate(-12deg); }
.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
/* Light mode shows the moon (switch to dark); dark mode shows the sun */
.theme-toggle .icon-sun { opacity: 0; transform: translateY(120%) rotate(90deg); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; color: var(--gold); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: translateY(-120%) rotate(-90deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1.5px;
  background: var(--gold-deep);
}

.hero-title {
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  font-weight: 350;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; }
.hero-title em {
  font-weight: 300;
  color: var(--gold-deep);
  padding-left: clamp(1rem, 6vw, 5rem);
}

.hero-role {
  margin: 1.75rem 0 0.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}
.role-static { color: var(--muted); }
.role-rotator {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--ink);
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lede {
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 1rem 0 2rem;
}
.hero-lede a {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

/* Portrait */
.hero-portrait {
  margin: 0;
  position: relative;
  perspective: 1000px;
}
.portrait-frame {
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px var(--shadow);
  transition: transform 0.6s var(--ease);
  transform-style: preserve-3d;
}
.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.05);
  transition: transform 1.2s var(--ease);
}
.hero-portrait:hover .portrait-frame img { transform: scale(1.04); }

.portrait-badge {
  position: absolute;
  left: -1.5rem;
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
}
.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3fae5a;
  box-shadow: 0 0 0 4px rgba(63, 174, 90, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(63, 174, 90, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(63, 174, 90, 0.05); }
}

.portrait-stamp {
  position: absolute;
  top: 1rem;
  right: -1.75rem;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border-radius: 50%;
}
.portrait-stamp svg {
  position: absolute;
  inset: 0;
  animation: spin 18s linear infinite;
}
.portrait-stamp text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  fill: var(--on-gold);
}
.stamp-core {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--on-gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Marquee ---------------- */
.marquee {
  background: var(--band);
  color: var(--band-fg);
  overflow: hidden;
  padding: 1.1rem 0;
  transform: rotate(-1.2deg);
  margin: 0 -2rem;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-style: italic;
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.section-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-deep);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 3rem;
}
.about-lead {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 900px;
}
.about-lead strong { font-weight: 500; background: linear-gradient(transparent 62%, rgba(232, 176, 75, 0.55) 0); }
.about-body { grid-column: 1 / span 7; color: var(--ink-soft); }
.about-body p { margin: 0 0 1.25rem; }

.facts {
  grid-column: 9 / -1;
  margin: 0;
  display: grid;
  gap: 0;
  align-self: start;
  border-top: 1px solid var(--ink);
}
.facts div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}
.facts dd { margin: 0.25rem 0 0; font-weight: 600; }

/* Work */
.work { background: var(--band); color: var(--band-fg); }
.work .section-head { border-color: rgba(243, 239, 231, 0.18); }
.work .section-num { color: var(--gold); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.work-card {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  border: 1px solid rgba(243, 239, 231, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%);
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 176, 75, 0.16), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.work-card:hover,
.work-card:focus-visible { transform: translateY(-6px); border-color: rgba(232, 176, 75, 0.6); }
.work-card:hover::before,
.work-card:focus-visible::before { opacity: 1; }

.work-index {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(243, 239, 231, 0.08);
}
.work-role {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
}
.work-card h3 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.work-card p.work-meta { font-size: 0.85rem; color: rgba(243, 239, 231, 0.5); margin-bottom: 1rem; }
.work-card p { color: rgba(243, 239, 231, 0.72); margin: 0 0 1.5rem; }

.tags {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tags li {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(243, 239, 231, 0.22);
  border-radius: 999px;
}
.card-link {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--gold);
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Podcast */
.podcast-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.podcast-art {
  position: relative;
  min-height: 360px;
  background: var(--gold);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  overflow: hidden;
}
.art-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--on-gold);
}
.wave {
  position: absolute;
  inset: 2rem 2rem auto;
  height: 45%;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wave span {
  flex: 1;
  background: var(--on-gold);
  border-radius: 3px;
  height: var(--h, 30%);
  transform-origin: center;
  animation: bounce 1.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  animation-play-state: var(--play, running);
}
@keyframes bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.podcast-copy { padding: clamp(2rem, 4vw, 3.5rem); align-self: center; }
.podcast-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0.75rem 0 1rem;
}
.podcast-copy h2 span {
  display: block;
  font-size: 0.45em;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0;
}
.podcast-copy > p { color: var(--ink-soft); margin: 0 0 2rem; }

.listen-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.listen {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.listen svg { width: 20px; height: 20px; fill: currentColor; }
.listen:hover { transform: translateY(-3px); }
.listen.spotify:hover { background: #1db954; }
.listen.apple:hover { background: #9933cc; }
.listen.youtube:hover { background: #e62117; }

/* Expertise */
.expertise-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.expertise-list li { border-bottom: 1px solid var(--line); }
.exp-item {
  width: 100%;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.exp-n { font-weight: 700; font-size: 0.8rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.exp-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform 0.45s var(--ease), color 0.3s;
}
.exp-item:hover .exp-name { transform: translateX(12px); font-style: italic; }
.exp-plus {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background 0.3s, transform 0.45s var(--ease);
}
.exp-plus::before,
.exp-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.exp-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.exp-item[aria-expanded="true"] .exp-plus { background: var(--gold); border-color: var(--gold); color: var(--on-gold); transform: rotate(45deg); }

.exp-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.exp-detail > p {
  overflow: hidden;
  margin: 0;
  padding-left: 5rem;
  max-width: 46rem;
  color: var(--ink-soft);
}
.exp-item[aria-expanded="true"] + .exp-detail { grid-template-rows: 1fr; }
.exp-item[aria-expanded="true"] + .exp-detail > p { padding-bottom: 1.6rem; }

/* Education */
.education { background: var(--paper-2); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.edu-card {
  background: var(--paper);
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.edu-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0.6;
}
.edu-kind {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gold-deep);
}
.edu-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.75rem 0 0.5rem; }
.edu-card p { margin: 0; color: var(--muted); }

/* Certifications */
.certs { margin-top: clamp(3rem, 6vw, 5rem); }
.certs-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.75rem; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cert-group {
  background: var(--paper);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.cert-group h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.5rem; }
.cert-issuer { font-size: 0.78rem; color: var(--muted); margin: 0 0 1rem; }
.cert-group ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.92rem; }
.cert-group li { margin-bottom: 0.45rem; }
.cert-group li::marker { color: var(--gold-deep); }

/* Contact form */
.contact { padding-bottom: clamp(2rem, 5vw, 4rem); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  margin: 0 0 1.25rem;
}
.contact-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-form .field { display: grid; gap: 0.45rem; }
.contact-form .field:first-of-type,
.contact-form .field:has(textarea) { grid-column: 1 / -1; }
.contact-form label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-form .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(232, 176, 75, 0.25);
}
.contact-form button { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.is-success { color: var(--gold-deep); }
.form-status.is-error { color: #c0392b; }
[data-theme="dark"] .form-status.is-error { color: #ff8a7a; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* CTA */
.cta { text-align: center; }
.cta-title {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 2.5rem;
}
.cta-title em { color: var(--gold-deep); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--band);
  color: var(--band-fg);
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2rem;
}
.footer-inner { display: grid; gap: 2.75rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.footer-tag { margin: 0.4rem 0 0; color: rgba(243, 239, 231, 0.6); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(243, 239, 231, 0.2);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(243, 239, 231, 0.14);
  font-size: 0.85rem;
  color: rgba(243, 239, 231, 0.55);
}
.footer-bottom p { margin: 0; }
.to-top { text-decoration: none; }
.to-top:hover { color: var(--gold); }

/* ---------------- Reveal on scroll (JS-driven) ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 440px; margin-inline: auto; width: 100%; }
  .about-body, .facts { grid-column: 1 / -1; }
  .work-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .podcast-card { grid-template-columns: 1fr; }
  .podcast-art { min-height: 280px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; margin-left: 0.5rem; }
  .theme-toggle { margin-left: auto; }
  .nav-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
    z-index: -1;
  }
  .nav-menu.open { transform: none; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border: 0; padding-top: 1rem; }
  .nav-menu a { display: block; padding: 1rem 0; font-size: 1.15rem; }
  .nav-menu a:not(.nav-cta)::after { display: none; }
  .nav-cta { display: inline-block !important; }

  .portrait-badge { left: 0.5rem; }
  .portrait-stamp { right: 0.25rem; width: 96px; height: 96px; }
  .portrait-stamp text { font-size: 8.5px; letter-spacing: 1.8px; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 2.5rem 1fr auto; }
  .exp-detail > p { padding-left: 3.5rem; }
}

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