﻿/* ================================================
   KOYA â€” Portfolio Styles
   ================================================ */

/* ===== Page loader (cinematic intro) ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
  overflow: hidden;
  isolation: isolate;
}

/* Diagonal curtain halves â€” slightly tilted seam, magazine-cover energy */
.page-loader-half {
  position: absolute;
  inset: 0;
  background: #f0eee9;
  transition: transform 1.15s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}
.page-loader-half--top {
  /* Above the diagonal seam */
  clip-path: polygon(0 0, 100% 0, 100% 46%, 0 64%);
}
.page-loader-half--bottom {
  /* Below the diagonal seam */
  clip-path: polygon(0 64%, 100% 46%, 100% 100%, 0 100%);
}
html[data-theme="dark"] .page-loader-half { background: #111110; }

/* Gold seam line â€” a thin rotated bar following the diagonal between the two halves */
.page-loader-seam {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 55%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(201,162,39,0.85) 18%,
    rgba(201,162,39,0.85) 82%,
    transparent 100%);
  transform: rotate(-5.6deg) scaleX(0);
  transform-origin: center;
  opacity: 0.85;
  animation: loader-seam-draw 1.1s cubic-bezier(0.77, 0, 0.18, 1) 0.55s forwards;
  overflow: hidden;
  z-index: 1;
}
@keyframes loader-seam-draw {
  to { transform: rotate(-5.6deg) scaleX(1); }
}
/* Continuous light glint traveling along the seam */
.page-loader-seam-glint {
  position: absolute;
  inset: -2px 0;
  background: linear-gradient(to right,
    transparent 35%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 65%);
  filter: blur(1.5px);
  transform: translateX(-100%);
  animation: loader-glint 2.6s ease-in-out 1.6s infinite;
}
@keyframes loader-glint {
  0%   { transform: translateX(-30%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

/* Corner vignette â€” subtle darkening at edges */
.page-loader-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center,
    transparent 35%,
    rgba(0,0,0,0.18) 100%);
  transition: opacity 0.5s ease;
}
html[data-theme="dark"] .page-loader-vignette {
  background: radial-gradient(ellipse at center,
    transparent 35%,
    rgba(0,0,0,0.55) 100%);
}

/* Cinematic letterbox bars */
.page-loader-letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 5.5vh;
  background: #000;
  z-index: 3;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1) 0.1s;
}
.page-loader-letterbox--top    { top: 0;    }
.page-loader-letterbox--bottom { bottom: 0; }

/* Subtle film grain overlay â€” inline SVG noise */
.page-loader-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: loader-grain 0.6s steps(4) infinite;
}
html[data-theme="dark"] .page-loader-grain {
  opacity: 0.1;
  mix-blend-mode: screen;
}
@keyframes loader-grain {
  0%   { background-position: 0 0; }
  25%  { background-position: -7px 4px; }
  50%  { background-position: 5px -3px; }
  75%  { background-position: -3px 8px; }
  100% { background-position: 0 0; }
}

/* Centered content */
.page-loader-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  z-index: 2;
  transition: opacity 0.55s ease 0.05s, transform 0.85s cubic-bezier(0.77, 0, 0.18, 1);
}

/* Top eyebrow row */
.page-loader-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b6860;
  opacity: 0;
  transform: translateY(-8px);
  animation: loader-eyebrow-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
html[data-theme="dark"] .page-loader-eyebrow { color: #9a9790; }
.page-loader-eyebrow-mark {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: #c9a227;
}
.page-loader-eyebrow-rule {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: #6b6860;
  opacity: 0.5;
}
.page-loader-eyebrow-meta {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: #1a1a1a;
}
html[data-theme="dark"] .page-loader-eyebrow-meta { color: #f0efe9; }
@keyframes loader-eyebrow-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Cycling phrases (Saul Bass title cards) */
.page-loader-phrases {
  position: relative;
  height: 1.6em;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  letter-spacing: -0.005em;
  color: #6b6860;
  margin-bottom: 0.25rem;
}
html[data-theme="dark"] .page-loader-phrases { color: #9a9790; }
.phrase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  animation: loader-phrase 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  /* Each phrase sits in the cycle for ~0.6s, total cycle ~2s before mark settles */
  animation-delay: calc(0.35s + var(--i) * 0.55s);
  animation-fill-mode: forwards;
}
@keyframes loader-phrase {
  0%   { opacity: 0; transform: translateY(10px); }
  18%  { opacity: 1; transform: translateY(0); }
  60%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* Big brand mark â€” matches nav logo shape */
.page-loader-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(7rem, 18vw, 14rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
  color: #1a1a1a;
  margin: 0;
}
html[data-theme="dark"] .page-loader-mark { color: #f0efe9; }
.mark-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20%) scale(0.94);
  animation: loader-mark-letter 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}
.mark-dot {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  background: #c9a227;
  border-radius: 50%;
  margin-bottom: 0.12em;
  opacity: 0;
  transform: scale(0.3);
  animation: loader-mark-dot 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 1.95s forwards;
}
@keyframes loader-mark-letter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loader-mark-dot {
  to { opacity: 1; transform: scale(1); }
}

/* Foot row */
.page-loader-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: clamp(220px, 30vw, 360px);
  margin-top: 0.85rem;
  opacity: 0;
  animation: loader-foot-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}
.page-loader-meta {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6b6860;
  white-space: nowrap;
}
html[data-theme="dark"] .page-loader-meta { color: #9a9790; }
.page-loader-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    #c9a227 var(--loader-progress, 0%),
    rgba(201, 162, 39, 0.18) var(--loader-progress, 0%)
  );
  transition: background 0.15s linear;
}
.page-loader-percent {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: #c9a227;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@keyframes loader-foot-in {
  to { opacity: 1; }
}

/* Dismissal â€” diagonal split */
.page-loader.is-done .page-loader-half--top    { transform: translate(-3%, -110%); }
.page-loader.is-done .page-loader-half--bottom { transform: translate( 3%,  110%); }
.page-loader.is-done .page-loader-seam {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.page-loader.is-done .page-loader-grain,
.page-loader.is-done .page-loader-vignette { opacity: 0; transition: opacity 0.4s ease; }
.page-loader.is-done .page-loader-letterbox--top    { transform: translateY(-100%); }
.page-loader.is-done .page-loader-letterbox--bottom { transform: translateY( 100%); }
.page-loader.is-done .page-loader-content {
  opacity: 0;
  transform: scale(1.06);
  transition-duration: 0.55s, 0.7s;
}
/* Tiny impact shake on the brand mark right at the moment of dismiss */
.page-loader.is-done .page-loader-mark {
  animation: loader-impact 0.35s ease;
}
@keyframes loader-impact {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, 2px); }
  80%  { transform: translate(1px, -1px); }
  100% { transform: translate(0, 0); }
}

/* Lock body scroll while loader is up */
body.is-loading { overflow: hidden; }

/* Reduced motion: skip the show */
@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none !important; }
}

/* ===== Variables ===== */
:root {
  --bg: #f0eee9;
  --bg-alt: #faf9f6;
  --surface: #fff;
  --text: #1a1a1a;
  --text-muted: #6b6860;
  --accent: #c9a227;
  --accent-hover: #b08e1e;
  --border: #e4e1db;
  --font-display: "Fraunces", Georgia, serif;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Utility ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.label--light { color: var(--accent); }
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-heading--light { color: #fff; }
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 32em;
  margin-bottom: 2.5rem;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--full { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  background: transparent;
  transition: background 0.4s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 249, 246, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
html[data-theme="dark"] .nav.scrolled {
  background: rgba(17, 17, 16, 0.72);
}

/* Reading progress hairline at the very top */
.nav-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.nav.scrolled .nav-progress { opacity: 0.85; }

/* Logo â€” minimalist "k." mark (italic serif + gold dot) */
.nav-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--text);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  pointer-events: none;
}
.nav.scrolled .nav-logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo-text { display: inline-block; }
.nav-logo-dot {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 0.12em;
  transition: transform 0.25s ease;
}
.nav-logo:hover .nav-logo-dot { transform: scale(1.15); }

/* Nav links â€” editorial */
.nav-links {
  display: flex;
  gap: 1.85rem;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.35rem 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.nav-link-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--accent);
  opacity: 0.55;
  transition: opacity 0.25s ease;
}
.nav-link-text {
  position: relative;
  transition: transform 0.25s ease;
}
/* Hover indicator: small dot below text */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover .nav-link-num { opacity: 1; }
.nav-links a:hover::after {
  opacity: 0.85;
  transform: translateX(-50%) scale(1);
}
/* Active (scroll-spy) â€” number turns full gold + dot persists */
.nav-links a.is-active {
  color: var(--text);
}
.nav-links a.is-active .nav-link-num { opacity: 1; }
.nav-links a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* CTA â€” ghost pill with italic accent */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-cta-text em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.nav-cta-arrow {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-left: 0.05rem;
  transition: transform 0.25s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.18);
}
.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }

/* Theme toggle */
.theme-toggle {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}
.theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--moon { display: inline; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: none;
  z-index: 201;
}
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.mobile-overlay-link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}
.mobile-overlay.open .mobile-overlay-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-overlay.open .mobile-overlay-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-overlay.open .mobile-overlay-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-overlay-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-overlay.open .mobile-overlay-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-overlay.open .mobile-overlay-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-overlay.open .mobile-overlay-link:nth-child(6) { transition-delay: 0.3s; }
.mobile-overlay-link:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--bg);
  overflow: hidden;
}

/* Grid background â€” hero only, sits above aurora */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

/* ===== Site-wide aurora / animated gradient mesh ===== */
.site-aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  filter: blur(70px) saturate(1.2);
}
.aurora-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.5;
  mix-blend-mode: multiply;
  will-change: transform;
}
.aurora-blob--1 {
  width: 46vw; height: 46vw;
  top: -12vw; left: -8vw;
  background: radial-gradient(circle at 30% 30%, #f5d76a 0%, rgba(245,215,106,0) 65%);
  animation: auroraDrift1 22s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 42vw; height: 42vw;
  top: 8vw; right: -10vw;
  background: radial-gradient(circle at 50% 50%, #e8a3c1 0%, rgba(232,163,193,0) 65%);
  animation: auroraDrift2 26s ease-in-out infinite alternate;
}
.aurora-blob--3 {
  width: 40vw; height: 40vw;
  top: 38vh; left: 12vw;
  background: radial-gradient(circle at 50% 50%, #a8c8e8 0%, rgba(168,200,232,0) 65%);
  animation: auroraDrift3 28s ease-in-out infinite alternate;
}
.aurora-blob--4 {
  width: 34vw; height: 34vw;
  top: 60vh; right: 4vw;
  background: radial-gradient(circle at 50% 50%, #c9a227 0%, rgba(201,162,39,0) 65%);
  opacity: 0.32;
  animation: auroraDrift4 30s ease-in-out infinite alternate;
}
.aurora-blob--5 {
  width: 38vw; height: 38vw;
  bottom: -8vw; left: -6vw;
  background: radial-gradient(circle at 50% 50%, #b8e0b8 0%, rgba(184,224,184,0) 65%);
  opacity: 0.4;
  animation: auroraDrift5 32s ease-in-out infinite alternate;
}
.aurora-blob--6 {
  width: 36vw; height: 36vw;
  bottom: -10vw; right: 18vw;
  background: radial-gradient(circle at 50% 50%, #d8b4f0 0%, rgba(216,180,240,0) 65%);
  opacity: 0.4;
  animation: auroraDrift6 34s ease-in-out infinite alternate;
}
@keyframes auroraDrift1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.15); }
}
@keyframes auroraDrift2 {
  0%   { transform: translate(0,0) scale(1.05); }
  100% { transform: translate(-7vw, 8vw) scale(0.92); }
}
@keyframes auroraDrift3 {
  0%   { transform: translate(0,0) scale(0.95); }
  100% { transform: translate(10vw, -6vw) scale(1.1); }
}
@keyframes auroraDrift4 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-9vw, -8vw) scale(1.2); }
}
@keyframes auroraDrift5 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(7vw, -10vw) scale(1.1); }
}
@keyframes auroraDrift6 {
  0%   { transform: translate(0,0) scale(1.1); }
  100% { transform: translate(-8vw, -6vw) scale(0.95); }
}
html[data-theme="dark"] .site-aurora {
  filter: blur(80px) saturate(1.4);
}
html[data-theme="dark"] .aurora-blob {
  mix-blend-mode: screen;
  opacity: 0.4;
}
html[data-theme="dark"] .aurora-blob--1 {
  background: radial-gradient(circle at 30% 30%, #b48a18 0%, rgba(180,138,24,0) 65%);
}
html[data-theme="dark"] .aurora-blob--2 {
  background: radial-gradient(circle at 50% 50%, #6b3a78 0%, rgba(107,58,120,0) 65%);
}
html[data-theme="dark"] .aurora-blob--3 {
  background: radial-gradient(circle at 50% 50%, #1f4a78 0%, rgba(31,74,120,0) 65%);
}
html[data-theme="dark"] .aurora-blob--4 {
  background: radial-gradient(circle at 50% 50%, #c9a227 0%, rgba(201,162,39,0) 65%);
  opacity: 0.25;
}
html[data-theme="dark"] .aurora-blob--5 {
  background: radial-gradient(circle at 50% 50%, #2a5a3a 0%, rgba(42,90,58,0) 65%);
  opacity: 0.35;
}
html[data-theme="dark"] .aurora-blob--6 {
  background: radial-gradient(circle at 50% 50%, #5a3a78 0%, rgba(90,58,120,0) 65%);
  opacity: 0.35;
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
}

/* Sections need transparent backgrounds so the aurora shows through */
.hero,
.about,
.work,
.skills,
.testimonials,
.contact {
  background: transparent;
}
/* Body keeps the base color so aurora has something to blend with */
body { background: var(--bg); }

/* ===== Theme-aware hero illustration ===== */
.hero-illustration {
  position: absolute;
  width: clamp(140px, 18vw, 240px);
  height: auto;
  top: clamp(5rem, 12vh, 9rem);
  right: clamp(1rem, 5vw, 4rem);
  z-index: 1;
  color: var(--text);
  opacity: 0.5;
  pointer-events: none;
  animation: illoFloat 9s ease-in-out infinite alternate;
}
.hero-illustration--dark { display: none; }
html[data-theme="dark"] .hero-illustration--light { display: none; }
html[data-theme="dark"] .hero-illustration--dark { display: block; }
html[data-theme="dark"] .hero-illustration { opacity: 0.7; }
@keyframes illoFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illustration { animation: none; }
}
@media (max-width: 900px) {
  .hero-illustration { display: none !important; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}

/* Name â€” outline + fill layered */
.hero-name {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3rem, 17vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
}
.hero-name-outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}
.hero-name-fill {
  position: absolute;
  inset: 0;
  color: var(--text);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.hero-name.visible .hero-name-fill {
  clip-path: inset(0 0 0 0);
}

/* Info row â€” role + badge inline */
.hero-info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.hero-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.hero-info-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 2.5rem;
}
.hero-tagline em {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}
.hero-cycle-word {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}
.hero-cycle.is-out .hero-cycle-word {
  opacity: 0;
  transform: translateY(8px);
}

/* CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap 0.25s ease, color 0.25s ease;
}
.hero-cta:hover {
  gap: 0.75rem;
  color: var(--accent-hover);
}
.hero-cta-icon {
  transition: transform 0.25s ease;
}
.hero-cta:hover .hero-cta-icon {
  transform: translateY(3px);
}

/* Scroll */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  opacity: 0.4;
}
.hero-scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.7s ease forwards;
  animation-delay: calc(0.2s + var(--i, 0) * 0.12s);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== About â€” Bento layout ===== */
.about {
  background: var(--bg);
}

.about-bento {
  display: grid;
  grid-template-columns: 340px 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1rem;
}

/* Shared card style */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* Photo card â€” spans 2 rows, just the photo */
.about-card--photo {
  grid-row: 1 / 3;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  align-self: start;
  aspect-ratio: 3 / 4;
  max-height: 560px;
}
.about-photo-frame {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}
.about-card--photo:hover .about-photo-frame img {
  transform: scale(1.04);
}

/* Heading card â€” spans 3 columns */
.about-card--heading {
  grid-column: 2 / -1;
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-card--heading::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.about-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.about-heading-highlight {
  color: var(--accent);
  position: relative;
}
.about-heading-highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
}
.about-heading-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 1.25rem;
}
.about-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22c55e;
}
.about-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

/* Meta row â€” ties status + "read more" together */
.about-meta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.about-meta-sep {
  width: 1px;
  height: 14px;
  background: var(--border, rgba(255, 255, 255, 0.18));
}

/* "More about me" â€” inline text trigger */
.about-more-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  line-height: 1.2;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.about-more-toggle:hover,
.about-more-toggle:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}
.about-more-toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.about-more-toggle:hover .about-more-toggle-arrow {
  transform: translateX(3px);
}
.about-more-toggle[aria-expanded="true"] .about-more-toggle-arrow {
  transform: rotate(90deg);
}

.about-more-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border, rgba(255, 255, 255, 0.12));
  animation: aboutMoreFade 0.4s ease both;
}
.about-more-panel[hidden] {
  display: none;
}
.about-more-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 540px;
}
.about-more-lead em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
}
.about-more-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
}
.about-more-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}
.about-more-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.about-more-key {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.about-more-val {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

@keyframes aboutMoreFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .about-more-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Detail cards â€” row 2, columns 2-4 */
.about-card--detail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.about-detail-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--accent);
  opacity: 0.85;
}
.about-card--detail h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}
.about-card--detail p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Quote card â€” full-width testimonial, editorial style */
.about-card--quote {
  grid-column: 1 / -1;
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.8vw, 2.25rem);
  overflow: hidden;
  isolation: isolate;
}
/* Accent stripe â€” matches Now strip */
.about-card--quote::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 3px 0 0 3px;
}
/* Soft accent glow top-right */
.about-card--quote::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Huge watermark quote mark behind content */
.about-quote-watermark {
  position: absolute;
  top: -2.5rem;
  right: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10rem, 22vw, 18rem);
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
html[data-theme="dark"] .about-quote-watermark { opacity: 0.10; }

.about-card--quote > *:not(.about-quote-watermark) {
  position: relative;
  z-index: 1;
}

/* Header row */
.about-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}
.about-quote-head-left {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.about-quote-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.about-quote-eyebrow-icon {
  color: var(--accent);
  font-size: 0.85rem;
}
.about-quote-counter {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.about-quote-counter span { color: var(--accent); }
.about-quote-stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Quote text */
.about-quote-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.4rem;
  max-width: 56ch;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.about-card--quote.is-fading .about-quote-text,
.about-card--quote.is-fading .about-quote-name,
.about-card--quote.is-fading .about-quote-role,
.about-card--quote.is-fading .about-quote-avatar {
  opacity: 0;
  transform: translateY(4px);
}

/* Footer row */
.about-quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.about-quote-author {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.about-quote-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.3);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.about-quote-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.about-quote-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: opacity 0.35s ease;
}
.about-quote-role {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: opacity 0.35s ease;
}
.about-quote-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}
.about-quote-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.about-quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.about-quote-dot.is-active {
  background: var(--accent);
  width: 18px;
  border-radius: 999px;
}
.about-quote-more {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  transition: gap 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.about-quote-more:hover { gap: 0.6rem; }
@media (max-width: 600px) {
  .about-quote-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .about-quote-foot { gap: 1rem; }
  .about-quote-watermark { font-size: 9rem; top: -1.5rem; }
}

/* Stats strip â€” full width bottom row */
.about-card--stats {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 2rem;
  background: var(--text);
  border-color: var(--text);
}
.about-stat {
  flex: 1;
  text-align: center;
}
.about-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--accent);
  line-height: 1.2;
}
.about-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}
.about-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Dark mode override for stats bar */
html[data-theme="dark"] .about-card--stats {
  background: #0a0a09;
  border-color: #222;
}
html[data-theme="dark"] .about-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ===== Work ===== */
.work {
  background: var(--bg);
  position: relative;
}

/* Header: title + meta side-by-side */
.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.work-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.work-heading-dot { color: var(--accent); }
.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}
.work-meta-count {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.work-meta-num { color: var(--accent); }
.work-meta-sep { color: var(--text-muted); margin: 0 0.25rem; }
.work-meta-total { color: var(--text-muted); }
.work-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* The list */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.work-list li {
  border-bottom: 1px solid var(--border);
}

/* Each row */
.wkx {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto auto 36px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: padding 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
  overflow: hidden;
}
.wkx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,162,39,0.06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.wkx > * { position: relative; z-index: 1; }
.wkx:hover {
  padding-left: 2rem;
  padding-right: 2rem;
}
.wkx:hover::before { opacity: 1; }

/* Number */
.wkx-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.wkx:hover .wkx-num { color: var(--accent); }

/* Title block */
.wkx-main { min-width: 0; }
.wkx-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  color: var(--text);
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.wkx:hover .wkx-title {
  color: var(--accent);
  transform: translateX(4px);
}
.wkx-featured {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  white-space: nowrap;
}
.wkx-wip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #29c46a;
  padding: 0.25rem 0.55rem 0.25rem 0.5rem;
  border: 1px solid rgba(41, 196, 106, 0.55);
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.wkx-soon {
  cursor: default;
  opacity: 0.55;
}
.wkx-soon:hover {
  background: transparent;
  transform: none;
}
.wkx-soon .wkx-arrow {
  transform: none;
}
.wkx-wip-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #29c46a;
  box-shadow: 0 0 0 0 rgba(41, 196, 106, 0.7);
  animation: wkx-wip-pulse 1.8s ease-out infinite;
}
@keyframes wkx-wip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(41, 196, 106, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(41, 196, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 196, 106, 0); }
}
.wkx-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Tags */
.wkx-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 220px;
}
.wkx-tags span {
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.wkx:hover .wkx-tags span {
  color: var(--text);
  border-color: var(--accent);
}

/* Year */
.wkx-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  min-width: 3.5rem;
  text-align: right;
}

/* Arrow */
.wkx-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  transform: translateX(-6px);
  opacity: 0.5;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, color 0.3s ease;
  text-align: center;
}
.wkx:hover .wkx-arrow {
  transform: translateX(0);
  opacity: 1;
  color: var(--accent);
}

/* Floating cursor thumbnail */
.work-thumb {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.18);
  background: var(--surface);
}
.work-thumb.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive â€” collapse to 2-row layout on tablet */
@media (max-width: 900px) {
  .wkx {
    grid-template-columns: 50px 1fr 28px;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    padding: 1.25rem 0.5rem;
  }
  .wkx:hover { padding-left: 1rem; padding-right: 1rem; }
  .wkx-num { grid-row: 1; }
  .wkx-main { grid-row: 1; grid-column: 2; }
  .wkx-arrow { grid-row: 1; grid-column: 3; }
  .wkx-tags {
    grid-row: 2;
    grid-column: 2 / -1;
    justify-content: flex-start;
    max-width: none;
  }
  .wkx-year { display: none; }
  .work-thumb { display: none; }
}

/* ===== Skills â€” sticky split + service packages ===== */
.skills {
  background: var(--bg);
  position: relative;
  z-index: 1;
}

/* ---- Editorial menu (table of contents) ---- */
.skills-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.skills-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.skills-eyebrow-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  line-height: 1;
}
.skills-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1rem;
}
.skills-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.skills-title-dot { color: var(--accent); }
.skills-lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.skills-menu {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  border-top: 1px dashed var(--border);
}
.menu-row {
  border-bottom: 1px dashed var(--border);
}
.menu-row-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  width: 100%;
  padding: 1.65rem 0.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: color 0.25s ease, padding 0.25s ease;
}
.menu-row-head:hover { color: var(--accent); padding-left: 1rem; }
.menu-row-head:hover .menu-leader { opacity: 0.7; }
.menu-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 2.25rem;
}
.menu-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.menu-leader {
  flex: 1;
  align-self: flex-end;
  border-bottom: 2px dotted var(--text-muted);
  opacity: 0.35;
  margin: 0 0.5rem 0.55rem;
  min-width: 1rem;
  transition: opacity 0.25s ease;
}
.menu-price {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.menu-price strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.menu-mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent);
  width: 1.5rem;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  line-height: 0.8;
}
.menu-row.is-open .menu-mark { transform: rotate(45deg); }

/* Animated body via grid-template-rows trick */
.menu-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}
.menu-row-body > .menu-row-inner {
  overflow: hidden;
  min-height: 0;
}
.menu-row.is-open .menu-row-body { grid-template-rows: 1fr; }

.menu-row-inner { padding: 0.25rem 0 2.5rem 3.5rem; }
.menu-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.menu-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.menu-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-col ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.menu-col ul li::before {
  content: "Â·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  top: 0.05rem;
}
.menu-stack {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.4rem !important;
}
.menu-stack li {
  padding: 0.32rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.menu-stack li::before { display: none; }
.menu-stack li {
  padding-left: 0.8rem;
}

.menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--border);
}
.menu-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.menu-meta strong { color: var(--text); font-weight: 600; }
.menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.menu-cta span { color: var(--accent); transition: transform 0.25s ease; }
.menu-cta:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.18);
}
.menu-cta:hover span { transform: translateX(3px); }

/* "Most popular" badge */
.menu-badge {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 999px;
  vertical-align: 0.45em;
}

@media (max-width: 700px) {
  .menu-row-head {
    flex-wrap: wrap;
    gap: 0.6rem 0.85rem;
    padding: 1.25rem 0;
  }
  .menu-row-head:hover { padding-left: 0; }
  .menu-leader { display: none; }
  .menu-name { font-size: 1.5rem; }
  .menu-price { order: 5; flex-basis: 100%; padding-left: 2.85rem; }
  .menu-mark { margin-left: auto; }
  .menu-row-inner { padding-left: 0; padding-bottom: 2rem; }
  .menu-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .menu-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .menu-cta { width: 100%; justify-content: center; }
}

/* Header */
.srv-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.srv-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.srv-title-dot { color: var(--accent); }
.srv-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 38ch;
  justify-self: end;
}

/* Split layout */
.srv-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

/* Sticky left column */
.srv-sticky {
  position: sticky;
  top: 6rem;
  align-self: start;
}
.srv-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 10rem);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
}
.srv-panel {
  position: absolute;
  inset: 0;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.srv-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.srv-panel > * { position: relative; }

.srv-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.srv-panel-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.srv-panel-price {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.srv-panel-price strong {
  font-weight: 800;
  color: var(--text);
}
.srv-panel-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.srv-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.srv-panel-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 28ch;
}
.srv-panel-stack {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.srv-panel-stack li {
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.srv-panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.srv-panel-meta strong {
  color: var(--text);
  font-weight: 700;
}

/* ===== Mini-mockups inside the sticky panel ===== */
.srv-mock {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

/* --- Wireframe (Design Sprint) --- */
.srv-mock--design { background: var(--bg-alt); }
.srv-mock-wire {
  position: absolute;
  inset: 12% 14%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8%;
}
.wf-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.wf-line--lg { width: 70%; }
.wf-line--sm { width: 45%; height: 6px; opacity: 0.7; }
.wf-hero {
  border-radius: 8px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  position: relative;
}
.wf-hero::after {
  content: "";
  position: absolute;
  top: 30%; left: 12%;
  width: 35%; height: 8px;
  background: var(--accent);
  opacity: 0.45;
  border-radius: 4px;
}
.wf-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wf-card {
  border-radius: 6px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  min-height: 24px;
}
.wf-pen {
  position: absolute;
  top: 22%;
  right: 16%;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
  animation: wfPen 6s ease-in-out infinite;
}
@keyframes wfPen {
  0%, 100% { transform: translate(0, 0) rotate(-45deg); }
  50% { transform: translate(-30px, 8px) rotate(-45deg); }
}

/* --- Browser (Full Build) --- */
.srv-mock--build { background: var(--bg-alt); }
.srv-mock-browser {
  position: absolute;
  inset: 8%;
  border-radius: 10px;
  overflow: hidden;
  background: #f0eee9;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-rows: 24px 1fr;
}
.bw-bar {
  background: #d8d4cc;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  position: relative;
}
.bw-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #b8b3aa;
}
.bw-dot:nth-child(1) { background: #e87262; }
.bw-dot:nth-child(2) { background: #f5c14a; }
.bw-dot:nth-child(3) { background: #5fb86d; }
.bw-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 9px;
  color: #6b6860;
  background: #faf9f6;
  padding: 2px 12px;
  border-radius: 4px;
}
.bw-body {
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  background: #faf9f6;
}
.bw-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bw-logo { width: 24px; height: 8px; background: #1a1a1a; border-radius: 2px; }
.bw-link { width: 18px; height: 5px; background: #c8c4bc; border-radius: 2px; }
.bw-cta {
  margin-left: auto;
  width: 28px; height: 10px;
  background: var(--accent);
  border-radius: 4px;
}
.bw-hero {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
}
.bw-hero-line { height: 8px; border-radius: 3px; background: #1a1a1a; }
.bw-hero-line--lg { width: 80%; }
.bw-hero-line--md { width: 55%; height: 5px; background: #8a857c; }
.bw-hero-btn {
  width: 32px; height: 10px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 4px;
}
.bw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bw-tile {
  background: #ece8e0;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.bw-tile::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 4px;
  width: 60%; height: 4px;
  background: #8a857c;
  border-radius: 2px;
}
.bw-tile:nth-child(1)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,162,39,0.4), transparent);
}

/* --- Discord (Bot or Tool) --- */
.srv-mock--bot { background: #2b2d31; }
.srv-mock-discord {
  position: absolute;
  inset: 0;
  padding: 14px;
  font-family: var(--font-body);
}
.dc-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}
.dc-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a227, #b08e1e);
  position: relative;
}
.dc-avatar::after {
  content: "R";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.dc-body { min-width: 0; }
.dc-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.dc-name {
  font-weight: 600;
  font-size: 12px;
  color: #f2f3f5;
}
.dc-bot-tag {
  font-size: 8px;
  font-weight: 700;
  background: #5865f2;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.dc-time {
  font-size: 9px;
  color: #949ba4;
}
.dc-cmd {
  font-size: 11px;
  color: #dbdee1;
  background: #313338;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.dc-cmd-slash { color: #5865f2; font-weight: 700; }
.dc-cmd em { color: #5865f2; font-style: normal; background: rgba(88,101,242,0.18); padding: 0 4px; border-radius: 3px; }
.dc-embed {
  display: grid;
  grid-template-columns: 4px 1fr;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
  border: 1px solid #1f2024;
}
.dc-embed-bar { background: var(--accent); }
.dc-embed-body { padding: 8px 10px; }
.dc-embed-title {
  font-size: 11px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 3px;
}
.dc-embed-desc {
  font-size: 10px;
  color: #b5bac1;
  margin-bottom: 6px;
}
.dc-embed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dc-embed-fields > div {
  display: flex;
  flex-direction: column;
}
.dc-embed-fields span {
  font-size: 8px;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dc-embed-fields strong {
  font-size: 10px;
  color: #f2f3f5;
  font-weight: 500;
}
.dc-buttons {
  display: flex;
  gap: 6px;
}
.dc-buttons button {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
  border: none;
  background: #5865f2;
  color: #fff;
  cursor: default;
}
.dc-buttons .dc-btn--ghost {
  background: transparent;
  color: #b5bac1;
  border: 1px solid #4e5058;
}

/* Progress dots */
.srv-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.srv-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, transform 0.3s ease;
}
.srv-progress-dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Right scrolling cards */
.srv-scroll {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.srv-card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  scroll-margin-top: 7rem;
}
.srv-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}
.srv-card--feature {
  border-color: var(--accent);
  box-shadow: 0 18px 50px rgba(201, 162, 39, 0.08);
}
.srv-card-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}
.srv-card-price {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.srv-card-price strong {
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
}
.srv-card-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.srv-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.srv-card-badge {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.srv-card-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.srv-card-list {
  margin: 0 0 1.25rem;
}
.srv-card-list-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.srv-card-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.srv-card-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}
.srv-card-list li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}
.srv-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.srv-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.srv-card-stack span {
  padding: 0.22rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.srv-card-cta {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s ease;
}
.srv-card-cta:hover { gap: 0.7rem; }

/* Proof link inside each card */
.srv-card-proof {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem -1rem -1rem;
  padding: 0.85rem clamp(1.5rem, 2.5vw, 2rem);
  background: linear-gradient(90deg, rgba(201,162,39,0.08), transparent);
  border-top: 1px solid var(--border);
  border-radius: 0 0 18px 18px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.3s ease;
}
.srv-card-proof:hover {
  background: linear-gradient(90deg, rgba(201,162,39,0.15), transparent);
}
.srv-card-proof-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.srv-card-proof-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.srv-card-proof-arrow {
  font-size: 0.95rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.srv-card-proof:hover .srv-card-proof-arrow {
  transform: translateX(4px);
}

/* Bottom CTA bar */
.srv-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.srv-cta > div {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.srv-cta-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
.srv-cta-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.srv-cta-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.srv-cta-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.srv-cta-date strong {
  color: var(--text);
  font-weight: 700;
}
.srv-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}
.srv-cta .arrow { transition: transform 0.2s ease; }
.srv-cta .btn:hover .arrow { transform: translateX(3px); }

/* Responsive */
@media (max-width: 900px) {
  .srv-header { grid-template-columns: 1fr; }
  .srv-subtitle { justify-self: start; }
  .srv-split { grid-template-columns: 1fr; }
  .srv-sticky { position: static; }
  .srv-stage { aspect-ratio: 5 / 4; max-height: 420px; }
  .srv-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ===== Testimonials ===== */
.testimonials {
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding: clamp(5rem, 12vw, 9rem) 0;
  overflow: hidden;
  text-align: center;
}
.testimonials-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.04) 0%, transparent 65%);
  pointer-events: none;
}
.testimonials-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.testimonials-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.tm-stat {
  text-align: center;
  padding: 0 1.25rem;
}
.tm-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text);
  line-height: 1.2;
}
.tm-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.tm-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* Quote area */
.tm-quote-area {
  position: relative;
  padding: 2rem 0;
}
.tm-quote-mark {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}
.tm-quote {
  margin: 0;
  padding: 0;
  border: none;
}
.tm-quote-text {
  font-family: var(--font-display);

  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1.75rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tm-quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-style: normal;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tm-author-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}

/* Fading transition */
.tm-quote.fading .tm-quote-text,
.tm-quote.fading .tm-quote-author {
  opacity: 0;
  transform: translateY(10px);
}

/* Navigation: progress dots + counter */
.tm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.tm-dots {
  display: flex;
  gap: 0.5rem;
}
.tm-dot {
  position: relative;
  width: 32px;
  height: 3px;
  padding: 0;
  border: none;
  background: var(--border);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease;
}
.tm-dot:hover {
  background: var(--text-muted);
  opacity: 0.4;
}
.tm-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.15s ease;
}
.tm-dot.active .tm-dot-progress {
  animation: tmProgress 5s linear forwards;
}
@keyframes tmProgress {
  from { width: 0; }
  to { width: 100%; }
}
.tm-counter {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.5;
}
.tm-counter span {
  color: var(--text);
  opacity: 1;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: var(--border);
}

/* ===== Contact ===== */
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Oversized italic watermark */
.contact-watermark {
  position: absolute;
  top: clamp(1rem, 3vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(10rem, 26vw, 20rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.contact-watermark-dot { color: var(--accent); opacity: 1; }
html[data-theme="dark"] .contact-watermark { opacity: 0.06; }

.contact-shell { position: relative; z-index: 1; }
@keyframes contact-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Section header ---- */
.contact-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.contact-eyebrow-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  line-height: 1;
}
.contact-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.contact-heading-dot { color: var(--accent); }
.contact-lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ---- Two-column grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* ===== Aside (left) â€” compact ===== */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}
.contact-aside-head { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-aside-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.contact-locale {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.contact-locale svg { color: var(--accent); }
.contact-locale-sep { opacity: 0.5; }
#contact-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0;
}
.contact-aside-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  margin-right: 0.35rem;
}
.contact-aside-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Inline availability pill */
.contact-availability-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.contact-availability-pill em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.contact-availability-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ec27e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46, 194, 126, 0.6);
  animation: contact-pulse 2s ease-out infinite;
}
@keyframes contact-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 194, 126, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(46, 194, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 194, 126, 0); }
}

/* Slim cards â€” single line */
.contact-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.25s ease;
}
.contact-card-icon {
  color: var(--accent);
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
}
.contact-card-value { flex: 1; min-width: 0; }
.contact-card-arrow {
  color: var(--accent);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
}
.contact-card:hover .contact-card-arrow { opacity: 1; transform: translateX(0); }

/* "What happens next" steps */
.contact-aside-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.contact-aside-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.contact-aside-section-num {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  margin-right: 0.25rem;
}
.contact-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0; padding: 0;
}
.contact-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  position: relative;
  padding-left: 0;
}
.contact-step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 1.5rem;
}
.contact-step-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.contact-step-text em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--text);
}

/* P.S. note */
.contact-ps {
  position: relative;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.contact-ps-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-right: 0.45rem;
  letter-spacing: 0.02em;
}

/* Inline socials â€” no label, just a row */
.contact-socials {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.contact-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.contact-social-pill img { flex-shrink: 0; opacity: 0.7; }
.contact-social-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.contact-social-pill:hover img { opacity: 1; }

/* ============================================ */
/* ===== Letter form (right) ===== */
/* ============================================ */
.contact-letter {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  /* Subtle ruled-paper line on the inner left margin */
  background-image: linear-gradient(to right, transparent calc(2.25rem - 1px), rgba(201, 162, 39, 0.18) 2.25rem, transparent calc(2.25rem + 1px));
}
html[data-theme="dark"] .contact-letter {
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  background-image: linear-gradient(to right, transparent calc(2.25rem - 1px), rgba(201, 162, 39, 0.22) 2.25rem, transparent calc(2.25rem + 1px));
}
@media (max-width: 600px) {
  .contact-letter { background-image: none; }
}

/* Letter header */
.contact-letter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-letter-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

/* Letter body */
.contact-letter-greeting {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.contact-letter-greeting em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.contact-letter-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-letter-line {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 2;
  color: var(--text);
  letter-spacing: -0.005em;
}
.contact-letter-mute {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-left: 0.4rem;
  vertical-align: 1px;
}
.contact-letter-period { color: var(--accent); font-weight: 700; }

/* Inline blank inputs (Mad Libs style) */
.contact-blank {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  margin: 0 0.15rem;
}
.contact-blank input {
  font-family: var(--font-display);
  font-style: italic;
  font-size: inherit;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--accent);
  border-radius: 0;
  padding: 0 0.25rem 2px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-blank input::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
  font-style: italic;
}
.contact-blank input:hover { background: rgba(201, 162, 39, 0.05); }
.contact-blank input:focus {
  border-bottom-color: var(--accent);
  background: rgba(201, 162, 39, 0.08);
}
.contact-blank input:not(:placeholder-shown) { color: var(--accent); }
.contact-blank--sm input { width: 7rem; }
.contact-blank--md input { width: 11rem; }
.contact-blank--lg input { width: 14rem; }
@media (max-width: 600px) {
  .contact-blank, .contact-blank input { width: auto; }
  .contact-blank--sm input { width: 6rem; }
  .contact-blank--md input { width: 9rem; }
  .contact-blank--lg input { width: 11rem; }
}

/* Project chips (checkboxes styled) */
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: none;
  padding: 0;
  margin: 0;
}
.contact-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem 0.55rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.contact-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.contact-chip-mark {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}
.contact-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.contact-chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.contact-chip:has(input:checked) .contact-chip-mark {
  background: #fff;
  color: var(--accent);
  transform: rotate(45deg);
}
.contact-chip:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Big message textarea */
.contact-letter-message {
  width: 100%;
  min-height: 140px;
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-letter-message::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}
.contact-letter-message:hover { border-bottom-color: var(--text-muted); }
.contact-letter-message:focus { border-bottom-color: var(--accent); }

/* Foot â€” signoff + send */
.contact-letter-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}
.contact-letter-signoff {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.contact-letter-signoff-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}
.contact-letter-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
}
.contact-letter-rule {
  width: 8rem;
  max-width: 100%;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.4;
  margin-top: 0.25rem;
}

/* Send button â€” wax-seal flavor */
.contact-send {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.contact-send::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.contact-send:hover::after { transform: translateX(100%); }
.contact-send:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.32);
}
.contact-send-seal {
  display: inline-flex;
  width: 40px; height: 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-send-seal svg {
  width: 100%; height: 100%;
  animation: contact-spin 18s linear infinite;
}
.contact-send-text { letter-spacing: -0.005em; }
.contact-send-arrow {
  font-family: var(--font-display);
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}
.contact-send:hover .contact-send-arrow { transform: translateX(4px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-aside { position: static; }
  .contact-letter-foot { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .contact-send { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .contact-letter-line { line-height: 2.1; }
  .contact-letter-greeting { font-size: 1.5rem; }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

/* Big italic watermark */
.footer-watermark {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.footer-watermark-dot { color: var(--accent); opacity: 1; }
html[data-theme="dark"] .footer-watermark { opacity: 0.06; }

.footer-shell { position: relative; z-index: 1; }

/* ---- Top: sign-off + CTA ---- */
.footer-top {
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px dashed var(--border);
}
.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-eyebrow-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  line-height: 1;
}
.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.footer-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.footer-heading-dot { color: var(--accent); }

/* ---- Middle: meta grid ---- */
.footer-meta {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.footer-col-label {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

/* Brand col */
.footer-col--brand { gap: 1rem; max-width: 320px; }
.footer-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--text);
  transition: color var(--transition);
}
.footer-logo:hover { color: var(--accent); }
.footer-logo-text { display: inline-block; }
.footer-logo-dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 0.12em;
  transition: transform 0.25s ease;
}
.footer-logo:hover .footer-logo-dot { transform: scale(1.15); }
.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.footer-locale {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.footer-locale svg { color: var(--accent); }

/* Link lists */
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-list a:hover {
  color: var(--accent);
  transform: translateX(3px);
}
.footer-list a span { font-size: 0.75rem; opacity: 0.7; }

/* Currently col */
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.footer-status em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.footer-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ec27e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46, 194, 126, 0.6);
  animation: contact-pulse 2s ease-out infinite;
}
.footer-now {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- Bottom strip ---- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease, gap 0.2s ease;
}
.footer-top-link span {
  color: var(--accent);
  transition: transform 0.25s ease;
  display: inline-block;
}
.footer-top-link:hover {
  color: var(--text);
  gap: 0.55rem;
}
.footer-top-link:hover span {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-meta { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-meta { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ===== Dark mode ===== */
html[data-theme="dark"] {
  --bg: #111110;
  --bg-alt: #1a1918;
  --surface: #222120;
  --text: #f0efe9;
  --text-muted: #9a9790;
  --border: #333230;
}
html[data-theme="dark"] .nav.scrolled {
  background: rgba(17, 17, 16, 0.92);
}
html[data-theme="dark"] .theme-toggle {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme="dark"] .social-icon img {
  filter: brightness(0) invert(0.75);
}
html[data-theme="dark"] .wkx-tags span {
  background: var(--surface);
}
html[data-theme="dark"] .work-thumb {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .contact-social-pill img {
  filter: brightness(0) invert(0.8);
}
html[data-theme="dark"] .contact-social-pill:hover img {
  filter: brightness(0) invert(1);
}
html[data-theme="dark"] .srv-card {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .srv-card--feature {
  box-shadow: 0 18px 50px rgba(201, 162, 39, 0.12);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-bento {
    grid-template-columns: 1fr 1fr;
  }
  .about-card--photo {
    grid-row: 1;
    grid-column: 1 / -1;
    max-height: 360px;
  }
  .about-card--heading {
    grid-column: 1 / -1;
  }
  .about-card--stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-name {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }
  .hero-tagline br { display: none; }
  .hero-info-sep { display: none; }
  .hero-info-row { gap: 0.6rem; }
  .testimonials-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tm-stat {
    padding: 0 0.75rem;
  }
  .tm-quote-text {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .work-header { gap: 1rem; }
  .work-meta { align-items: flex-start; text-align: left; }
  .about-bento {
    grid-template-columns: 1fr;
  }
  .about-card--photo {
    grid-row: auto;
    grid-column: auto;
    max-height: 300px;
  }
  .about-card--heading {
    grid-column: auto;
  }
  .about-card--stats {
    grid-column: auto;
    flex-direction: column;
    gap: 1rem;
  }
  .about-stat-divider {
    width: 60px;
    height: 1px;
  }
}

/* ============================================ */
/* ===== Mail Room (private inbox) ===== */
/* ============================================ */
body.mailroom-page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ---- Auth gate ---- */
.mr-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}
.mr-gate[hidden] { display: none; }
.mr-gate-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.06);
}
.mr-gate-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mr-gate-eyebrow-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.mr-gate-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.mr-gate-title-dot { color: var(--accent); }
.mr-gate-lede {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}
.mr-gate-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mr-gate-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.mr-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mr-gate-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,162,39,0.28); }
.mr-gate-btn-arrow { transition: transform 0.25s ease; }
.mr-gate-btn:hover .mr-gate-btn-arrow { transform: translateX(3px); }
.mr-gate-error {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: #c44;
}
.mr-gate-back {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.mr-gate-back:hover { color: var(--accent); }

/* ---- App shell ---- */
.mr-app { display: block; }
.mr-app[hidden] { display: none; }
.mr-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(240,238,233,0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .mr-head { background: rgba(17,17,16,0.78); }

.mr-head-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text);
  flex-shrink: 0;
}
.mr-head-logo-dot {
  width: 0.24em; height: 0.24em;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 0.12em;
  display: inline-block;
}
.mr-head-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-left: 0.5rem;
}
.mr-head-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mr-head-eyebrow-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
}
.mr-head-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.mr-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.mr-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mr-btn-ghost:hover { border-color: var(--accent); color: var(--text); background: var(--surface); }
.mr-btn-primary {
  padding: 0.7rem 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mr-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---- Greeting strip ---- */
.mr-greeting {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.5s ease, border-color 0.5s ease;
}
/* Inbox-zero â€” gentle gold glow & ornament */
.mr-greeting.is-zero {
  background: linear-gradient(180deg, rgba(201,162,39,0.05), transparent 80%);
  border-bottom-color: rgba(201,162,39,0.35);
}
.mr-greeting.is-zero .mr-greeting-time {
  color: var(--accent);
}
.mr-greeting.is-zero .mr-greeting-phrase {
  color: var(--text);
  font-weight: 600;
}
.mr-greeting.is-zero::before {
  content: "âœ¦";
  position: absolute;
  top: 50%;
  left: clamp(0.4rem, 1.5vw, 1rem);
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0;
  animation: mr-zero-twinkle 2.4s ease-in-out infinite;
}
@keyframes mr-zero-twinkle {
  0%, 100% { opacity: 0.3; transform: translateY(-50%) rotate(0deg); }
  50%      { opacity: 0.85; transform: translateY(-50%) rotate(45deg); }
}
.mr-greeting.is-zero .mr-greeting-text { padding-left: 1.75rem; }
.mr-greeting-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mr-greeting-time {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.mr-greeting-phrase {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.mr-greeting-stats {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mr-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 5.5rem;
}
.mr-stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.mr-stat-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .mr-greeting { grid-template-columns: 1fr; }
  .mr-greeting-stats { justify-content: flex-start; }
  .mr-stat { min-width: auto; flex: 1; }
}

/* ---- Mood tags on rows ---- */
.mr-row-mood {
  padding: 0.18rem 0.55rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  white-space: nowrap;
}
.mr-row-mood.mr-mood--dream {
  color: var(--accent);
  border-color: rgba(201,162,39,0.4);
  background: rgba(201,162,39,0.08);
}
.mr-row-mood.mr-mood--dream::before { content: "âœ¦ "; }
.mr-row-mood.mr-mood--longread::before { content: "Â§ "; }
.mr-row-mood.mr-mood--quick::before { content: "âŒƒ "; }
.mr-row-mood.mr-mood--waiting {
  color: #c47a4a;
  border-color: rgba(196, 122, 74, 0.35);
  background: rgba(196, 122, 74, 0.08);
}
.mr-row-mood.mr-mood--waiting::before { content: "â—” "; }
.mr-row-mood.mr-mood--ai::before { content: "âœ¶ "; }

/* Lift on row hover (subtle physicality) */
.mr-row { transition: background 0.2s ease, padding 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease; }
.mr-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  z-index: 1;
}

/* ---- Two-pane layout ---- */
.mr-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 0;
  min-height: calc(100vh - 4.5rem);
}
.mr-sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4.5rem);
  position: sticky;
  top: 4.5rem;
}
.mr-sidebar-head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px dashed var(--border);
}
.mr-sidebar-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.85rem;
}
.mr-sidebar-search svg { color: var(--text-muted); flex-shrink: 0; margin-right: 0.5rem; }
.mr-sidebar-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
}
.mr-sidebar-search input::placeholder { color: var(--text-muted); opacity: 0.6; }

.mr-sidebar-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.mr-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mr-tab:hover { color: var(--text); }
.mr-tab.is-active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.mr-tab-count {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0.05rem 0.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--accent);
}

/* List */
.mr-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  overflow-y: auto;
  flex: 1;
}
.mr-row {
  position: relative;
  padding: 0.85rem 1rem 0.95rem;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
  transition: background 0.2s ease, padding 0.2s ease;
}
.mr-row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.25s ease;
}
.mr-row:hover { background: var(--surface); }
.mr-row.is-active { background: var(--surface); }
.mr-row.is-active::before { height: 60%; }
.mr-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.mr-row-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mr-row.is-unread .mr-row-name::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0.5rem;
  vertical-align: 2px;
}
.mr-row.is-starred .mr-row-name::before {
  content: "â˜…";
  color: var(--accent);
  margin-right: 0.3rem;
  font-size: 0.85em;
}
.mr-row-date {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.mr-row-mid {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mr-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.mr-row-tag {
  padding: 0.15rem 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: 999px;
}
.mr-row-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}
.mr-row-status {
  position: absolute;
  top: 0.6rem;
  right: 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2ec27e;
}
.mr-list-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.mr-list-empty em { font-family: var(--font-display); font-style: italic; color: var(--text); }

/* Reader pane */
.mr-reader {
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow-y: auto;
  height: calc(100vh - 4.5rem);
}
.mr-empty {
  max-width: 380px;
  margin: 4rem auto;
  text-align: center;
  color: var(--text-muted);
}
.mr-empty-mark {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.mr-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.mr-empty-text { font-family: var(--font-display); font-style: italic; line-height: 1.55; }

/* The opened letter â€” paper card */
.mr-letter {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  animation: mr-letter-open 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes mr-letter-open {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
html[data-theme="dark"] .mr-letter {
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

/* Sender header */
.mr-letter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}
.mr-sender {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.mr-sender-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,162,39,0.18), rgba(201,162,39,0.05));
  border: 1px solid rgba(201,162,39,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
}
.mr-sender-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mr-sender-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.mr-sender-email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 0.2s ease;
}
.mr-sender-email:hover { border-bottom-color: currentColor; }

.mr-letter-stamps {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  text-align: right;
}
.mr-letter-stamp-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
}
.mr-letter-stamp-ago {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mr-letter-stamp-replied {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2ec27e;
  background: rgba(46,194,126,0.1);
  border: 1px solid rgba(46,194,126,0.3);
  border-radius: 999px;
}

/* Two-column body grid */
.mr-letter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  margin-bottom: 1.75rem;
  padding-left: 2rem;
  background-image: linear-gradient(to right, transparent calc(0.25rem - 1px), rgba(201,162,39,0.18) 0.25rem, transparent calc(0.25rem + 1px));
}
html[data-theme="dark"] .mr-letter-grid {
  background-image: linear-gradient(to right, transparent calc(0.25rem - 1px), rgba(201,162,39,0.22) 0.25rem, transparent calc(0.25rem + 1px));
}
.mr-letter-main { min-width: 0; }
.mr-letter-body {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  letter-spacing: -0.005em;
}
.mr-letter-body p { margin: 0 0 1.25rem; }
.mr-letter-body p:last-child { margin-bottom: 0; }
.mr-letter-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.5em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 -0.05em;
  color: var(--accent);
}

/* Sidebar */
.mr-letter-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.5rem;
  border-left: 1px dashed var(--border);
  align-self: stretch;
}
.mr-aside-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mr-aside-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mr-aside-val {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.mr-aside-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.mr-aside-chips span {
  padding: 0.28rem 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 999px;
}
.mr-aside-moods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* Dear-writer card (sender history) */
.mr-aside-history {
  padding: 0.85rem 0.95rem;
  background: var(--bg-alt);
  border: 1px dashed rgba(201,162,39,0.35);
  border-radius: 10px;
  position: relative;
}
.mr-aside-history::before {
  content: "âœ¦";
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.5;
}
.mr-aside-history .mr-aside-label {
  margin-bottom: 0.5rem;
}
.mr-history-rank {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.mr-history-rank em { font-style: italic; color: var(--accent); }
.mr-history-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.mr-history-meta em {
  font-style: italic;
  font-weight: 600;
  color: var(--text);
}
.mr-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.65rem;
}
.mr-history-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mr-history-item:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}
.mr-history-when {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.mr-history-what {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-history-status {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mr-history-status.is-replied { color: #2ec27e; }
.mr-history-status.is-open    { color: var(--text-muted); opacity: 0.6; }

/* Sidebar action buttons */
.mr-aside-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mr-aside-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mr-aside-btn:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
  transform: translateX(2px);
}
.mr-aside-btn.is-on {
  border-color: var(--accent);
  background: rgba(201,162,39,0.08);
  color: var(--accent);
}
.mr-aside-btn-icon {
  font-style: normal;
  width: 1.25rem;
  text-align: center;
  color: var(--accent);
  flex-shrink: 0;
}
.mr-aside-btn--danger:hover {
  border-color: #c44;
  background: rgba(196,68,68,0.08);
  color: #c44;
}
.mr-aside-btn--danger:hover .mr-aside-btn-icon { color: #c44; }

/* Stats footer in sidebar */
.mr-aside-stats {
  flex-direction: row !important;
  gap: 0.5rem !important;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.mr-aside-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
  padding: 0.55rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mr-aside-stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.mr-aside-stat-label {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Responsive: stack sidebar below body on narrow widths */
@media (max-width: 900px) {
  .mr-letter-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
    background-image: none;
  }
  .mr-letter-aside {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px dashed var(--border);
  }
  .mr-letter-stamps { align-items: flex-start; text-align: left; }
}

/* Inline reply composer */
.mr-reply {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 14px;
  position: relative;
}
.mr-reply-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border);
}
.mr-reply-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mr-reply-eyebrow-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.mr-reply-recipient {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.mr-reply-recipient em {
  font-weight: 600;
  color: var(--text);
  font-style: italic;
}
.mr-reply-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.mr-reply-tpl {
  padding: 0.4rem 0.85rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mr-reply-tpl:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.mr-reply-text {
  width: 100%;
  padding: 0.95rem 1.05rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  min-height: 160px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mr-reply-text::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
  font-style: italic;
}
.mr-reply-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.mr-reply-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.mr-reply-status {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.mr-reply-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mr-reply-draft {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mr-reply-draft:not(:empty) { opacity: 0.85; }
.mr-reply-draft::before {
  content: "â€¢";
  margin-right: 0.4rem;
  color: var(--accent);
}
.mr-reply-actions {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.mr-reply-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.mr-reply-copy-icon { color: var(--accent); transition: transform 0.25s ease; flex-shrink: 0; }
.mr-reply-copy:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201,162,39,0.14);
}
.mr-reply-copy:hover .mr-reply-copy-icon { transform: translateY(-1px) rotate(-3deg); }
.mr-reply-copy:active { transform: translateY(0); }
/* Briefly flash gold-filled on successful copy */
.mr-reply-copy.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.mr-reply-copy.is-copied .mr-reply-copy-icon { color: #fff; }
.mr-reply-toast {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: #fff;
  background: var(--text);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mr-reply-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mr-letter-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}
.mr-letter-foot-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mr-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mr-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201,162,39,0.32); }
.mr-cta-arrow { transition: transform 0.25s ease; }
.mr-cta:hover .mr-cta-arrow { transform: translateX(4px); }

/* ---- Modals ---- */
.mr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.mr-modal[hidden] { display: none; }
.mr-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.mr-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 40px 100px rgba(0,0,0,0.25);
  z-index: 1;
}
.mr-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.mr-modal-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mr-modal-close {
  width: 2rem; height: 2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.mr-modal-close:hover { background: var(--bg-alt); color: var(--text); }
.mr-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.mr-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mr-modal-grid label > span {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mr-modal-grid label em {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  opacity: 0.7;
}
.mr-modal-grid input,
.mr-modal-grid textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mr-modal-grid input:focus,
.mr-modal-grid textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.mr-modal-grid textarea { resize: vertical; min-height: 110px; font-family: var(--font-display); line-height: 1.55; }
.mr-modal-full { grid-column: 1 / -1; }
.mr-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

#mr-paste textarea {
  width: 100%;
  padding: 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  resize: vertical;
}
.mr-paste-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.55;
}
.mr-paste-hint code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.825em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
}
.mr-paste-error {
  margin-top: 0.65rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: #c44;
  background: rgba(196, 68, 68, 0.08);
  border: 1px solid rgba(196, 68, 68, 0.22);
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .mr-layout { grid-template-columns: 1fr; }
  .mr-sidebar { position: static; height: auto; max-height: 50vh; border-right: none; border-bottom: 1px solid var(--border); }
  .mr-reader { height: auto; }
  .mr-modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mr-head { flex-wrap: wrap; }
  .mr-head-actions { width: 100%; justify-content: flex-start; }
  .mr-head-actions .theme-toggle { display: none; }
}

/* ===== Project page ===== */
.project-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.pj-main { flex: 1; }

/* Hero â€” text-based, matches main site hero */
.pj-hero {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 45vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}
.pj-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  opacity: 0.6;
}
.pj-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  padding: 6rem clamp(1.25rem, 5vw, 3rem) 2rem;
}
.pj-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
  margin-bottom: 1.5rem;
}
.pj-back:hover { color: var(--accent-hover); }
.pj-hero-center {
  text-align: center;
}
.pj-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.pj-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: -0.04em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 0.85;
  margin-bottom: 0.5rem;
}
.pj-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Info bar */
.pj-info-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.pj-info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.pj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pj-stack-tag {
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 999px;
}
.pj-live-btn {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  transition: color var(--transition);
}
.pj-live-btn:hover { color: var(--accent-hover); }

/* Article */
.pj-article {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 3rem;
}

/* Section grid: label left, content right */
.pj-section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.pj-section-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}
.pj-section-label h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  position: sticky;
  top: 5rem;
}

/* Overview paragraphs */
.pj-overview-p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.pj-overview-p:first-child {
  font-size: 1.1875rem;
  color: var(--text);
  font-weight: 500;
}
.pj-overview-p:last-child { margin-bottom: 0; }

/* Features â€” numbered rows */
.pj-features {
  border-top: 1px solid var(--border);
}
.pj-feature {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease;
}
.pj-feature:hover {
  background: var(--bg-alt);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  border-radius: var(--radius-sm);
}
.pj-feature-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.6875rem;
  color: var(--text-muted);
  opacity: 0.35;
  padding-top: 0.15rem;
}
.pj-feature h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.15rem;
  transition: color 0.2s ease;
}
.pj-feature:hover h3 {
  color: var(--accent);
}
.pj-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Gallery */
.pj-section--wide {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pj-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.pj-gallery-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.pj-gallery-arrow {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.pj-gallery-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Shared carousel */
.pj-gallery,
.pj-related {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.pj-gallery::-webkit-scrollbar,
.pj-related::-webkit-scrollbar { display: none; }
.pj-gallery:active,
.pj-related:active { cursor: grabbing; }

.pj-gallery-item {
  flex: 0 0 clamp(280px, 45vw, 400px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  aspect-ratio: 16 / 10;
}
.pj-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pj-gallery-item:hover img {
  transform: scale(1.03);
}

/* Related cards */
.pj-related-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pj-related-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.pj-related-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.pj-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pj-related-name {
  display: block;
  padding: 0.6rem 0.75rem 0.1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}
.pj-related-meta {
  display: block;
  padding: 0 0.75rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .pj-section-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pj-section-label h2 {
    position: static;
  }
  .pj-feature {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pj-feature-num { display: none; }
}

/* ===== Floating featured project card (hero) ===== */
.hero-featured {
  position: absolute;
  bottom: clamp(5rem, 10vh, 7rem);
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: clamp(220px, 22vw, 280px);
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: featuredFloat 6s ease-in-out infinite alternate;
}
.hero-featured:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}
.hero-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.hero-featured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.hero-featured-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.hero-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-featured:hover .hero-featured-thumb img {
  transform: scale(1.06);
}
.hero-featured-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.15rem 0.1rem;
}
.hero-featured-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--text);
}
.hero-featured-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.hero-featured-arrow {
  font-size: 1.05rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.hero-featured:hover .hero-featured-arrow {
  transform: translateX(4px);
}
@keyframes featuredFloat {
  0%   { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-10px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-featured { animation: none; }
}
@media (max-width: 1100px) {
  .hero-featured {
    position: static;
    width: min(360px, 100%);
    margin: 2rem auto 0;
    animation: none;
  }
}

/* ===== About â€” Now strip (folded into bento) ===== */
.about-card--now {
  grid-column: 1 / -1;
  position: relative;
  padding: clamp(1.25rem, 2vw, 1.6rem) clamp(1.25rem, 2.5vw, 1.85rem);
  overflow: hidden;
}
.about-card--now::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 3px 0 0 3px;
}
.about-now-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}
.about-now-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
.about-now-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}
.about-now-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.about-now-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.75rem;
}
.about-now-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  position: relative;
}
.about-now-item + .about-now-item::before {
  content: "";
  position: absolute;
  left: -0.875rem;
  top: 0.1rem;
  bottom: 0.1rem;
  width: 1px;
  background: var(--border);
}
.about-now-icon {
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.about-now-item-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.about-now-item-value {
  display: block;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text);
}
.about-now-item-value em {
  font-style: italic;
  color: var(--text-muted);
}
.now-roster {
  color: var(--accent);
  font-weight: 700;
  position: relative;
}
.now-roster::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
}
@media (max-width: 900px) {
  .about-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .about-now-item + .about-now-item::before { display: none; }
}
@media (max-width: 520px) {
  .about-now-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT PAGE — long-form editorial essay
   ============================================ */
.about-page {
  background: var(--bg);
  color: var(--text);
}
.ab {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.5rem 6rem;
  position: relative;
}

/* Reading progress bar */
.ab-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.ab-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--accent), rgba(201, 162, 39, 0.4));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.05s linear;
}

/* Reveal on scroll */
.ab-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ab-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ab-reveal { opacity: 1; transform: none; transition: none; }
}

/* Section markers (roman numeral kickers) */
.ab-section-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.ab-section-mark-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.ab-section-mark--center {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Top bar */
.ab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.ab-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}
.ab-back:hover { color: var(--accent); gap: 0.7rem; }
.ab-back-arrow { transition: transform 0.25s ease; }
.ab-back:hover .ab-back-arrow { transform: translateX(-3px); }
.ab-dateline { font-variant-numeric: tabular-nums; }

/* Title block */
.ab-title-block {
  text-align: center;
  margin-bottom: 4rem;
}
.ab-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.ab-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  color: var(--text);
}
.ab-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.ab-title-dot { color: var(--accent); }
.ab-byline {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin: 0;
}
.ab-byline strong { color: var(--text); font-weight: 700; }

/* Cover image — photographic plate */
.ab-cover {
  margin: 0 -2rem 4rem;
  padding: 1.25rem;
  position: relative;
}
.ab-cover-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
  border-radius: 2px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.ab-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 1.2s ease, filter 1.2s ease;
}
.ab-cover:hover .ab-cover-frame img { transform: scale(1.02); }

/* Subtle vignette */
.ab-cover-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
}

/* Printer's crop marks — at corners of outer .ab-cover */
.ab-crop {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 2;
  pointer-events: none;
}
.ab-crop::before, .ab-crop::after {
  content: "";
  position: absolute;
  background: var(--accent);
  opacity: 0.7;
}
.ab-crop::before { top: 0; left: 0; width: 1px; height: 100%; }
.ab-crop::after  { top: 0; left: 0; height: 1px; width: 100%; }
.ab-crop--tl { top: 0; left: 0; }
.ab-crop--tr { top: 0; right: 0; transform: scaleX(-1); }
.ab-crop--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.ab-crop--br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* EXIF stamp top-right */
.ab-cover-stamp {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  z-index: 3;
}
.ab-cover-stamp-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* Plate caption */
.ab-cover-cap {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.ab-cover-cap-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ab-cover-cap-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--border);
}
.ab-cover-cap-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}
.ab-cover-cap-text em { font-style: italic; color: var(--accent); font-weight: 500; }
.ab-cover-cap-meta {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .ab-cover { padding: 0.75rem; }
  .ab-cover-cap { grid-template-columns: auto 1fr; gap: 0.5rem 0.75rem; }
  .ab-cover-cap-rule, .ab-cover-cap-meta { display: none; }
  .ab-cover-stamp { font-size: 0.55rem; padding: 0.25rem 0.45rem; }
}

/* Essay */
.ab-essay {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}
.ab-essay p {
  margin: 0 0 1.5rem;
}
.ab-essay p em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.ab-lede {
  font-size: 1.35rem !important;
  line-height: 1.55 !important;
}
.ab-drop {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: 4.8rem;
  line-height: 0.85;
  margin: 0.35rem 0.55rem 0 0;
  color: var(--accent);
}
.ab-smallcaps {
  font-variant-caps: all-small-caps;
  font-feature-settings: "smcp", "c2sc";
  letter-spacing: 0.08em;
  font-weight: 600;
  font-style: normal;
}

/* Marginalia (desktop only) */
.ab-has-margin { position: relative; }
.ab-margin {
  display: none;
}
@media (min-width: 1100px) {
  .ab-margin {
    display: block;
    position: absolute;
    top: 0.4rem;
    right: calc(100% + 2.5rem);
    width: 200px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: right;
  }
  .ab-margin--right {
    right: auto;
    left: calc(100% + 2.5rem);
    text-align: left;
  }
  .ab-margin-rule {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    margin: 0 0 0.6rem auto;
  }
  .ab-margin--right .ab-margin-rule {
    margin: 0 auto 0.6rem 0;
  }
}

/* End-of-essay ornament */
.ab-end-ornament {
  text-align: center;
  margin: 3rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.5em;
}

/* Pullquote */
.ab-pull {
  position: relative;
  margin: 3.5rem -2.5rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.ab-pull-mark {
  position: absolute;
  top: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  background: var(--bg);
  padding: 0 0.75rem;
  pointer-events: none;
}
.ab-pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 auto;
  max-width: 36ch;
}
.ab-pull-em { color: var(--accent); }

/* Sections after essay */
.ab-facts, .ab-now {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.ab-facts-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
}
.ab-dot { color: var(--accent); }

.ab-facts-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.ab-facts-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.ab-facts-list > div:first-child { border-top: 1px dashed var(--border); }
.ab-facts-list dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.ab-facts-list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}
.ab-facts-list dd em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.ab-now-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ab-now-list li {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}
.ab-now-list li:first-child { border-top: 1px dashed var(--border); }
.ab-now-list li > span {
  display: inline-block;
  width: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  vertical-align: baseline;
}
.ab-now-list em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-weight: 500;
}

/* Signoff */
.ab-signoff {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.ab-signoff-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 38ch;
}
.ab-signoff-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.85rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 30px -10px rgba(201, 162, 39, 0.45);
}
.ab-signoff-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(201, 162, 39, 0.6);
}
.ab-signoff-cta span { transition: transform 0.25s ease; }
.ab-signoff-cta:hover span { transform: translateX(3px); }
.ab-signoff-sign {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.ab-signoff-mark {
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.3rem;
}

/* Responsive */
@media (max-width: 720px) {
  .ab { padding-top: 5.5rem; }
  .ab-cover { margin-left: -1rem; margin-right: -1rem; }
  .ab-pull { margin-left: -1rem; margin-right: -1rem; }
  .ab-facts-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .ab-facts-list dt { color: var(--accent); }
  .ab-now-list li > span { display: block; margin-bottom: 0.15rem; width: auto; }
  .ab-essay { font-size: 1.1rem; }
  .ab-lede { font-size: 1.2rem !important; }
  .ab-drop { font-size: 3.5rem; }
}
@media (max-width: 480px) {
  .ab-bar { flex-direction: column; gap: 0.75rem; align-items: flex-start; padding-bottom: 2.5rem; }
}

/* =====================================================================
   Phone-friendly overrides (<=480px)
   Consolidated tweaks so the site stays usable on small phones.
   ===================================================================== */
@media (max-width: 480px) {
  /* Container & sections — give content a touch more breathing room */
  .container-wide { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }

  /* Hero — tighter framing, smaller name, in-flow featured card */
  .hero { padding: 5rem 1.25rem 3rem; }
  .hero-tagline { font-size: 1rem; max-width: 100%; padding: 0 0.25rem; }
  .hero-tagline br { display: none; }
  .hero-info-row { gap: 0.6rem; }
  .hero-info-sep { display: none; }
  .hero-featured {
    width: 100%;
    max-width: 340px;
    margin: 1.5rem auto 0;
  }

  /* Nav CTA already hidden; ensure hamburger has a comfortable touch zone */
  .hamburger { width: 2.75rem; height: 2.75rem; }

  /* About bento — keep photo proportional */
  .about-card--photo { max-height: 260px; }
  .about-card--photo .about-photo-frame { aspect-ratio: 4 / 5; max-height: 260px; }

  /* About quote dots — enlarge tap zone without changing visual */
  .about-quote-dot {
    padding: 14px;
    width: auto;
    height: auto;
    background-clip: content-box;
    -webkit-background-clip: content-box;
    box-sizing: content-box;
  }
  .about-quote-dot.is-active { width: 18px; }
  .about-quote-dots { gap: 0; }

  /* Stats strip — let three stats fit without crushing */
  .about-card--stats { flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem; }
  .about-stat-divider { display: none; }

  /* Work list — tighter at very small widths */
  .wkx { grid-template-columns: 40px 1fr 24px; gap: 0.4rem 0.75rem; padding: 1rem 0.4rem; }
  .wkx-num { font-size: 0.7rem; }
  .wkx-title { font-size: 1.05rem; }
  .wkx-desc { font-size: 0.85rem; }
  .wkx-tags { font-size: 0.7rem; gap: 0.35rem; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* Skills menu — stack price below name, easier to scan */
  .menu-row-head {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding: 1rem 0.75rem;
  }
  .menu-price { margin-left: auto; }
  .menu-mark { flex-shrink: 0; }

  /* Contact — inline blanks become full-width on phones */
  .contact-blank,
  .contact-blank input,
  .contact-blank--sm input,
  .contact-blank--md input,
  .contact-blank--lg input {
    display: block;
    width: 100%;
    margin: 0.25rem 0;
  }
  .contact-letter-line { line-height: 1.7; }
  .contact-letter { padding: 1.25rem 1rem; }

  /* Contact chips — meet 44px tap target with comfortable gaps */
  .contact-chips { gap: 0.6rem; }
  .contact-chip {
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  /* Contact send button — full width and tall enough to tap */
  .contact-send { min-height: 48px; padding: 0.85rem 1.25rem; }

  /* Footer — single column with comfortable spacing */
  .footer-meta { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .footer-heading { font-size: clamp(2rem, 9vw, 3rem); }

  /* Prevent the aurora blobs from causing horizontal scroll */
  body { overflow-x: hidden; }
}

/* Extra-small phones (<=360px) — last-resort tightening */
@media (max-width: 360px) {
  .container-wide { padding: 0 1rem; }
  .hero-name { font-size: clamp(2.5rem, 16vw, 4rem); }
}
