/* ────────────────────────────────────────────
   THEME TOKENS — dark is the default
   ──────────────────────────────────────────── */
:root {
  --bg: #121215;
  --bg-raised: #1a1a1f;
  --ink: #f2f0ec;
  --ink-soft: #a4a1a0;
  --ink-faint: #828086; /* ≥4.5:1 on --bg for small text (WCAG AA) */
  --line: rgba(242, 240, 236, 0.1);
  --accent: #ff5c39;
  --grain-opacity: 0.35;
  --cursor-goo: #ff5c39;
  --cursor-blend: exclusion;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f2ee;
  --bg-raised: #ffffff;
  --ink: #121215;
  --ink-soft: #55534f;
  --ink-faint: #6b6761;  /* ≥4.5:1 on --bg for small text (WCAG AA) */
  --line: rgba(18, 18, 21, 0.12);
  --accent: #c03a0c;     /* darkened from #e8491f so accent text passes AA on light bg */
  --grain-opacity: 0.5;
  --cursor-goo: #e8491f; /* goo is decorative, not text — the brighter accent reads better */
  --cursor-blend: multiply;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.45s ease, color 0.45s ease;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #121215; }

/* film-grain overlay for atmosphere */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 999;
  opacity: calc(var(--grain-opacity) * 0.12);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding-left: max(clamp(20px, 5vw, 48px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 48px), env(safe-area-inset-right));
}

/* skip link — visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ────────────────────────────────────────────
   HEADER
   ──────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: auto; display: block; }
/* hover: the mark fills with accent from the bottom, like liquid rising */
.logo .logo-fill {
  color: var(--accent);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo:hover .logo-fill { clip-path: inset(0 0 0 0); }
.logo span {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); margin-left: auto; }
.header-controls { display: flex; align-items: center; gap: 10px; }
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
nav a:hover { color: var(--accent); }
nav a.active { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="light"] .icon-sun { display: none; }
.icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────── */
.hero {
  border-top: none;
  min-height: calc(100svh - 71px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8vh;
  padding-bottom: 10vh;
  position: relative;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}
h1 {
  font-family: "Fraunces", serif;
  font-weight: 340;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--accent);
}
.hero-sub {
  margin-top: 34px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero-tags {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.hero-tags span + span::before { content: "·"; margin-right: 12px; color: var(--ink-faint); }

/* big watermark hexagon behind hero */
.hero-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 480px);
  opacity: 0.045;
  pointer-events: none;
}

/* staggered load-in */
.reveal-load { opacity: 0; transform: translateY(24px); animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.32s; } .d4 { animation-delay: 0.46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ────────────────────────────────────────────
   SECTIONS (shared)
   ──────────────────────────────────────────── */
section { padding: clamp(72px, 12vh, 130px) 0; border-top: 1px solid var(--line); }
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-faint);
  text-transform: lowercase;
}
.label-mark { width: 13px; height: auto; color: var(--accent); flex: none; }
h2 {
  font-family: "Fraunces", serif;
  font-weight: 340;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* scroll-in reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ────────────────────────────────────────────
   ABOUT
   ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about-text p + p { margin-top: 1.2em; }
.about-text { color: var(--ink-soft); }
.about-text strong { color: var(--ink); font-weight: 500; }

.craft-hint {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.craft-list { list-style: none; display: flex; flex-direction: column; }
.craft-list li {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.craft-list li:first-child { border-top: 1px solid var(--line); }
.craft-list button {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 18px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 15.5px;
  cursor: pointer;
  transition: color 0.25s ease;
}
.craft-list button > span { transition: transform 0.25s ease; }
.craft-list button.is-active > span { transform: translateX(8px); }
.craft-list button:hover { color: var(--accent); }
.craft-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.craft-list button.is-active { color: var(--accent); }
.craft-list li:has(button.is-active) { border-bottom-color: var(--accent); }

/* copy swap when a craft topic is selected (desktop) */
.craft-copy { transition: opacity 0.3s ease, transform 0.3s ease; }
.craft-copy.is-fading { opacity: 0; transform: translateY(10px); }

/* accordion panels — hidden on desktop, JS fills them from the same content */
.craft-panel { display: none; }

/* "+" indicator: rotates to "×" on the active topic; desktop shows it only when active */
.craft-list button::after {
  content: "+";
  display: block;
  margin-left: auto;
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.3s ease;
}
.craft-list button.is-active::after { transform: rotate(45deg); }

@media (max-width: 720px) {
  .craft-list button.is-active > span { transform: none; } /* no indent shift in accordion mode */
  .craft-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .craft-panel > div { overflow: hidden; }
  .craft-panel.open { grid-template-rows: 1fr; }
  .craft-panel h3 {
    font-family: "Fraunces", serif;
    font-weight: 340;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 2px 0 12px;
  }
  .craft-panel p { color: var(--ink-soft); font-size: 15px; }
  .craft-panel p + p { margin-top: 0.9em; }
  .craft-panel strong { color: var(--ink); font-weight: 500; }
  .craft-panel > div > :last-child { padding-bottom: 20px; }
}

/* ────────────────────────────────────────────
   METHOD / HOW I WORK
   ──────────────────────────────────────────── */
.method-nav {
  margin-top: 48px;
  display: none; /* carousel controls are mobile-only; desktop shows the full grid */
  gap: 10px;
  justify-content: flex-end;
}
.method-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.method-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.method-arrow:disabled { opacity: 0.35; cursor: default; }
.method-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.method-carousel {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  padding: 6px 4px 10px; /* room for the hover lift and focus rings */
}
.method-carousel::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .method-nav { display: flex; }
  .method-carousel {
    margin-top: 20px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .method-carousel .method-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }
}

.method-progress {
  display: none;
  margin-top: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
@media (max-width: 720px) { .method-progress { display: block; } }
.method-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.method-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 3.5vw, 40px);
  transition: transform 0.3s ease;
}
.method-card:hover { transform: translateY(-3px); }
.method-card > * { position: relative; z-index: 1; }
/* cursor spotlight: soft glow + border highlight that track the pointer */
.method-card::before,
.method-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.method-card::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.method-card::after {
  border: 1px solid transparent;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent), transparent 70%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.method-card:hover::before { opacity: 1; }
.method-card:hover::after { opacity: 0.8; }
.method-card h3 {
  font-family: "Fraunces", serif;
  font-weight: 340;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.method-card p { color: var(--ink-soft); font-size: 15px; }

/* ────────────────────────────────────────────
   BRANDS
   ──────────────────────────────────────────── */
.brand-intro { color: var(--ink-soft); max-width: 62ch; }

/* the tile band is the section's background; content sits on top */
#brands {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 78vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#brands .wrap { position: relative; z-index: 1; width: 100%; }
/* soft scrim over the band where the copy sits, so text stays readable */
#brands::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(90% 75% at 30% 46%, var(--bg) 12%, color-mix(in srgb, var(--bg) 55%, transparent) 48%, transparent 72%);
}

/* tilted tile band (TileScroll-style): rows drift horizontally on scroll */
.tiles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.6; /* recede behind the copy; scrim protects the text zone */
}
.tiles__wrap {
  position: absolute;
  width: 170%;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) rotate(22.5deg);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 26px);
}
.tiles__line {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  justify-content: center;
  will-change: transform;
}
.tile {
  flex: none;
  width: clamp(150px, 17vw, 230px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.tile .brand { max-width: 62%; }
[data-theme="light"] .tiles { opacity: 0.45; } /* light logos read stronger; keep them quieter */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* logos are normalized to monochrome via filters (masks are blocked on file://);
   per-logo heights are tuned inline so all marks carry the same optical weight */
.brand {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) invert(1) opacity(0.65);
}
[data-theme="light"] .brand { filter: grayscale(1) opacity(0.55); }

/* ────────────────────────────────────────────
   EXPERIENCE
   ──────────────────────────────────────────── */
.xp-list {
  --xp-gap: clamp(32px, 4vw, 56px);
  --xp-spine: calc(160px + var(--xp-gap) / 2); /* x-position of the timeline */
  max-width: 820px;
  margin-inline: auto; /* center the timeline; balances the section's whitespace */
}
.xp-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--xp-gap);
  padding-bottom: 56px;
  /* opacity/filter drive the hover focus; transform keeps the scroll-reveal rise */
  transition: opacity 0.45s ease, filter 0.45s ease,
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.xp-item:last-child { padding-bottom: 8px; }
/* depth-of-field focus: the hovered role stays sharp, the rest recede gently */
.xp-list:hover .xp-item:not(:hover) {
  opacity: 0.55;
}
.xp-item:hover .xp-when { color: var(--accent); }
/* the spine — per-item segments join into one continuous line */
.xp-item::before {
  content: "";
  position: absolute;
  left: var(--xp-spine);
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: var(--line);
}
.xp-item:first-child::before { top: 15px; }
.xp-item:last-child::before { bottom: calc(100% - 15px); }
/* the node */
.xp-item::after {
  content: "";
  position: absolute;
  left: var(--xp-spine);
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--accent);
  transition: background 0.3s ease;
}
.xp-item:hover::after { background: var(--accent); }
/* current role: filled node with a soft halo */
.xp-item:first-child::after {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.xp-when {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  transition: color 0.3s ease;
}
.xp-role {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 2px;
}
.xp-org { color: var(--accent); font-size: 15px; margin-bottom: 12px; }
.xp-desc { color: var(--ink-soft); font-size: 15.5px; }

.xp-more { margin-top: 44px; text-align: center; }
.xp-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 26px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.xp-more a svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.xp-more a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.xp-more a:hover svg { transform: translate(2px, -2px); }

/* ────────────────────────────────────────────
   CONTACT
   ──────────────────────────────────────────── */
.contact-quip { color: var(--ink-soft); max-width: 52ch; margin: -6px 0 18px; }
.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 10px 0 40px;
}
.copy-email {
  border: 1px solid var(--line);
  background: none;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.copy-email:hover, .copy-email.copied { border-color: var(--accent); color: var(--accent); }
.contact-email {
  font-family: "Fraunces", serif;
  font-weight: 340;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  position: relative;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.contact-email::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { transform: scaleX(1); }

.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social-row a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-row a:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.colophon {
  margin-top: 56px;
  max-width: 62ch;
  color: var(--ink-faint);
  font-size: 13.5px;
}

/* ────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-inner svg { width: 20px; height: auto; opacity: 0.6; }

/* ────────────────────────────────────────────
   GOOEY CURSOR TRAIL (Codrops GooeyCursor d4)
   ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99; /* above content, below the sticky header */
  mix-blend-mode: var(--cursor-blend);
  --columns: 22; /* larger cells keep the hexagon silhouette through the goo blur */
  --size: calc(100vw / var(--columns));
}
.cursor__inner {
  display: grid;
  grid-template-columns: repeat(var(--columns), var(--size));
}
.cursor__inner-box {
  width: var(--size);
  height: var(--size);
  background: var(--cursor-goo);
  opacity: 0;
  /* pointy-top hexagon, same silhouette as the logo mark */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.cursor svg { position: absolute; width: 0; height: 0; }

/* ────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .xp-item { grid-template-columns: 1fr; gap: 6px; padding-left: 26px; padding-bottom: 44px; }
  .xp-item::before, .xp-item::after { left: 4px; }
  .xp-when { text-align: left; }
  .hero-mark { display: none; }
  /* keep nav links reachable on small screens; drop the logo wordmark instead */
  .logo span { display: none; }
  nav { gap: 14px; }
  nav a { font-size: 13px; }
  #method h2 br { display: none; } /* let the heading wrap naturally on small screens */
}

/* small phones: two-row header — brand + controls on top, full nav below */
@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; row-gap: 4px; padding-top: 12px; padding-bottom: 10px; }
  .header-controls { margin-left: auto; }
  nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
  }
  nav a { font-size: 13px; }
}

/* touch input: comfortable targets regardless of screen size */
@media (pointer: coarse) {
  .lang-toggle, .theme-toggle { height: 44px; min-width: 44px; }
  nav a { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-load { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .craft-copy, .craft-panel, .craft-list button::after, .craft-list button > span, .method-card, .method-progress span, .logo .logo-fill { transition: none !important; }
}
