/* ============================================================
   Hero layouts — unified "focal + anchor" system
   ------------------------------------------------------------
   Anchored ambient UI (music, stat card) stays in the SAME
   position across both modes. Only the focal trio (name +
   portrait + sub) rearranges. This keeps the user's mental
   model consistent when toggling between modes.
   ============================================================ */

.hero--centered,
.hero--split { padding: 120px var(--outer-gutter) 96px; }

/* Focal area: contains name, portrait, sub. Layout switches per mode. */
.hero-focal {
  position: relative;
  z-index: 5;
  width: 100%;
  align-self: center;
  display: grid;
}

/* Centered: 3-column layout
   ─────────────────────────────────────────────────────────────────
   [ music ]  [ portrait ]  [ subtitle ]
              [ NAME     ]  [ CTA      ]
   Music in left column, portrait+name stacked center, sub+CTA right. */
.hero-focal--centered {
  grid-template-columns: minmax(220px, 1fr) auto minmax(280px, 1fr);
  grid-template-areas:
    "music portrait sub"
    "music name     sub";
  align-items: center;
  justify-items: center;
  column-gap: 48px;
  row-gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero-focal--centered .hero-focal-col   { display: contents; }
.hero-focal--centered .hero-focal-music { grid-area: music; width: min(360px, 100%); justify-self: end; }
.hero-focal--centered .hero-portrait    { grid-area: portrait; margin: 0; }
.hero-focal--centered .hero-name {
  grid-area: name;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.32em;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  text-align: center;
  white-space: nowrap;
}
.hero-focal--centered .hero-sub  {
  grid-area: sub;
  justify-self: start;
  align-self: center;
  max-width: 36ch;
  text-align: left;
}
.hero-focal--centered .hero-cta-row { justify-content: flex-start; }
.hero-focal--centered .hero-portrait .hero-seal-mini {
  position: absolute; bottom: 10%; right: -8%;
}

/* Side: 2 columns, each a flex stack with justify-content space-between.
   Both columns share top edge AND bottom edge (align-items: stretch).
   ─────────────────────────────────────────────
   ┌──────────────┬──────────────┐
   │ HAFIF HIZLI. │ [portrait]   │  ← both tops aligned
   │              │              │
   │   ↕ gap      │  subtitle    │
   │              │              │
   │ [music ▶]    │ [CTAs]       │  ← both bottoms aligned
   └──────────────┴──────────────┘ */
.hero-focal--split {
  grid-template-columns: auto auto;
  grid-auto-rows: 1fr;
  align-items: stretch;
  justify-content: center;
  column-gap: 60px;
  max-width: min(1240px, 100%);
  margin: 0 auto;
  align-self: stretch;
  min-height: 0;
  padding: 24px 0;
}
.hero-focal--split .hero-focal-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.hero-focal--split .hero-name {
  text-align: left;
  max-width: 14ch;
}
.hero-focal--split .hero-portrait {
  width: clamp(280px, 28vw, 420px);
  margin: 0;
}
.hero-focal--split .hero-sub {
  max-width: 46ch;
  text-align: left;
}
.hero-focal--split .hero-cta-row { justify-content: flex-start; }
.hero-focal--split .hero-focal-music {
  position: relative;
  right: auto; bottom: auto; left: auto; top: auto;
  width: min(340px, 28vw);
}
.hero-focal--split .hero-portrait .hero-seal-mini {
  position: absolute; top: 16%; right: -6%;
}

/* Stat card anchor — top-right (centered) or top-left (side, mirror).
   Music is now part of the focal grid (left col centered, bottom-right side). */
.hero-anchor {
  position: absolute;
  z-index: 6;
  pointer-events: auto;
}
.hero-anchor--stat {
  top: 132px;
  right: var(--outer-gutter);
}
.hero--split .hero-anchor--stat {
  right: auto;
  left: var(--outer-gutter);
}

/* Music player inside focal */
.hero-focal-music .music-player {
  position: relative;
  left: auto; bottom: auto;
  max-width: none;
  width: 100%;
}

/* Scroll mouse indicator — absolute positioned, guaranteed bottom-center
   in both layout modes (so it isn't affected by focal grid placement). */
.scroll-mouse {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--paper-300);
  z-index: 5;
  cursor: pointer;
  transition: color var(--dur-base);
}
.scroll-mouse:hover { color: var(--accent); }
.scroll-mouse-body {
  width: 22px; height: 36px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  opacity: 0.85;
}
.scroll-mouse-wheel {
  width: 2px; height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scroll-wheel 1.8s cubic-bezier(.5,.05,.5,.95) infinite;
}
.scroll-mouse-label {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  61%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-mouse-wheel { animation: none; }
}

/* Background decoration tweaks per mode */
.hero--centered .glass-chip { display: none; }
.hero--centered .hero-vkana { left: 24px; top: 42%; font-size: 11px; }
.hero--centered .hero-kanji {
  top: 50%; left: 50%; right: auto;
  transform: translate(-50%, -50%);
  font-size: clamp(360px, 48vw, 720px);
  opacity: 0.05;
  text-shadow: none;
}


/* Side mode background tweaks */
.hero--split .hero-kanji { right: -4vw; top: 6vh; opacity: 0.06; }
.hero--split .glass-chip { display: none; }

/* Aurora focal point follows the layout so the glow visually anchors
   to whichever element is foreground. Centered → bloom from middle.
   Split  → bloom from the right where the portrait lives. */
.hero--centered .aurora {
  --aurora-fx: 50%;
  --aurora-fy: 52%;
  --aurora-fx-warm: 38%;
  --aurora-fx-cool: 62%;
  --aurora-spread: 38%;
}
.hero--split .aurora {
  --aurora-fx: 72%;
  --aurora-fy: 48%;
  --aurora-fx-warm: 58%;
  --aurora-fx-cool: 84%;
  --aurora-spread: 34%;
}
.hero--centered .lg-orbs span:nth-child(1) { left: 38%; top: 20%; }
.hero--centered .lg-orbs span:nth-child(2) { right: 38%; top: 18%; }
.hero--split    .lg-orbs span:nth-child(1) { left: auto; right: 30%; top: 30%; }
.hero--split    .lg-orbs span:nth-child(2) { right: 8%;  top: 16%; }

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

/* Liquid Glass — hero atmospherics ============================ */

/* hero-sub upgraded to liquid glass card */
.hero-sub.lg-glass {
  padding: 20px 24px;
  border-radius: 22px;
}
.hero-sub.lg-glass p { color: var(--paper-100); }
.hero-focal--centered .hero-sub.lg-glass { padding: 18px 22px; }
.hero-focal--split    .hero-sub.lg-glass { padding: 22px 26px; }

/* Liquid Glass — reusable surface ============================ */
.lg-glass {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.12) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 10px 30px rgba(0,0,0,0.35),
    0 30px 80px rgba(189,79,79,0.20);
}
.lg-glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.28), transparent 60%);
  mix-blend-mode: screen; opacity: 0.6;
}
.lg-glass::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 70%, rgba(255,255,255,0.08) 100%),
    radial-gradient(80% 50% at 50% 110%, rgba(189,79,79,0.20), transparent 70%);
}
.lg-glass > * { position: relative; z-index: 1; }

/* Liquid glass orbs (decorative aurora blobs behind glass) */
.lg-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55;
  animation: orb-float 18s var(--ease-in-out) infinite alternate;
}
.lg-orbs span:nth-child(1) { width: 320px; height: 320px; left: 8%;  top: 30%; background: var(--aurora-ember); }
.lg-orbs span:nth-child(2) { width: 280px; height: 280px; right: 12%; top: 18%; background: var(--aurora-orange); animation-delay: -4s; }
.lg-orbs span:nth-child(3) { width: 220px; height: 220px; left: 42%; bottom: 8%;  background: var(--aurora-amber);  animation-delay: -9s; opacity: 0.45; }
.lg-orbs span:nth-child(4) { width: 180px; height: 180px; right: 32%; bottom: 22%; background: var(--aurora-rose);   animation-delay: -13s; opacity: 0.4; }
@keyframes orb-float {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(40px,-30px) scale(1.1); }
  100% { transform: translate(-30px,40px) scale(0.95); }
}

/* ============================ Music player ============================ */
.music-player {
  position: relative;
  z-index: 5;
  max-width: 460px;
  padding: 14px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  overflow: hidden;  /* contain the cover-image color bleed backdrop */
}
.music-player.is-floating {
  position: absolute;
  left: var(--outer-gutter);
  bottom: 120px;
  margin-bottom: 0;
}
/* Liquid-glass color bleed — the album cover blurs out behind the whole
   player so the player's tint follows the artwork. Sits behind .lg-glass
   gradients but above the underlying hero. */
.music-bg {
  position: absolute;
  inset: -20px;  /* slight bleed past edges so the blur doesn't show seams */
  background: url("assets/music-cover.webp") center/cover no-repeat;
  filter: blur(40px) saturate(1.4);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.music-cover {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.18) inset;
}
.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.music-info { display: flex; flex-direction: column; min-width: 0; }
.music-eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(244,241,234,0.6); font-weight: 600; margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.music-eyebrow .live {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--aurora-orange); box-shadow: 0 0 8px var(--aurora-orange);
  animation: pulse-live 1.4s ease-in-out infinite;
}
@keyframes pulse-live { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.music-title { font-weight: 600; font-size: 15px; color: var(--paper-50); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { font-size: 12px; color: rgba(244,241,234,0.65); font-weight: 400; margin-top: 2px; }

.music-progress {
  margin-top: 10px;
  display: flex; align-items: center; gap: 10px;
  grid-column: 1 / -1;
}
.music-time { font-size: 10px; color: rgba(244,241,234,0.6); font-variant-numeric: tabular-nums; font-weight: 500; min-width: 30px; }
.music-time.r { text-align: right; }
.music-bar {
  flex: 1; height: 4px; border-radius: 999px;
  background: rgba(244,241,234,0.18);
  position: relative; overflow: hidden;
}
.music-bar::before {
  content: ""; position: absolute; inset: 0;
  width: var(--p, 42%);
  background: linear-gradient(90deg, var(--paper-50), rgba(244,241,234,0.7));
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(244,241,234,0.4);
}
.music-bar::after {
  content: ""; position: absolute; top: 50%; left: var(--p, 42%);
  transform: translate(-50%, -50%); width: 12px; height: 12px;
  background: var(--paper-50); border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.music-controls {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
}
.music-btns { display: flex; align-items: center; gap: 6px; }
.music-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(244,241,234,0.06);
  border: 1px solid rgba(244,241,234,0.12);
  color: var(--paper-50);
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.music-btn:hover { background: rgba(244,241,234,0.14); }
.music-btn:active { transform: scale(0.94); }
.music-btn.play {
  width: 46px; height: 46px;
  background: var(--paper-50);
  color: var(--ink-900);
  box-shadow: 0 6px 18px rgba(244,241,234,0.25);
  border-color: transparent;
}
.music-btn.play:hover { background: #fff; }
.music-eq { display: inline-flex; align-items: end; gap: 2px; height: 14px; }
.music-eq span {
  width: 2px; background: var(--paper-50); border-radius: 1px;
  animation: eq 1.1s ease-in-out infinite;
  animation-play-state: paused;
}
.music-eq.is-playing span { animation-play-state: running; }
.music-eq span:nth-child(1) { height: 30%; animation-delay: -0.1s; }
.music-eq span:nth-child(2) { height: 70%; animation-delay: -0.3s; }
.music-eq span:nth-child(3) { height: 50%; animation-delay: -0.5s; }
.music-eq span:nth-child(4) { height: 90%; animation-delay: -0.7s; }
@keyframes eq { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* Floating glass chips that decorate the hero */
.glass-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--paper-50);
  background: rgba(244,241,234,0.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(244,241,234,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 22px rgba(0,0,0,0.3);
  z-index: 4;
  animation: chip-float 8s var(--ease-in-out) infinite alternate;
}
.glass-chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--aurora-orange); box-shadow: 0 0 8px var(--aurora-orange); }
.glass-chip svg { width: 14px; height: 14px; }
@keyframes chip-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Liquid glass card variant — wraps an existing element */
.lg-card {
  background: rgba(244,241,234,0.06);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(244,241,234,0.16);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.lg-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}

/* Liquid glass on paper (light bg) */
.lg-glass-paper {
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(11,13,15,0.08);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 6px 16px rgba(39,36,32,0.12);
}

/* Skills cards get a subtle glass treatment */
.skill-block.lg { padding: 22px; border-top: none !important; }
.skill-block.lg { background: rgba(255,255,255,0.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(11,13,15,0.06); border-radius: 16px; }

/* Hero stat card already glassy — push it harder */
.hero-stat-card.lg-strong {
  background: rgba(244,241,234,0.06);
  border: 1px solid rgba(244,241,234,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 38px rgba(0,0,0,0.4), 0 0 60px rgba(230,177,167,0.22);
}
/* Text-headline variant of the stat card — the "num" slot holds a word
   rather than a metric, so dial the size down to keep the card compact. */
.hero-stat-card--text .num { font-size: 26px; letter-spacing: -.015em; }
.hero-stat-card--text { max-width: 280px; }

/* Contact section — warm sunset gradient using the active palette tones ====== */
.contact .aurora--soft {
  background:
    radial-gradient(60% 60% at 20% 30%, color-mix(in srgb, var(--aurora-ember)  55%, transparent), transparent 60%),
    radial-gradient(50% 50% at 85% 25%, color-mix(in srgb, var(--aurora-amber)  42%, transparent), transparent 60%),
    radial-gradient(70% 70% at 60% 95%, color-mix(in srgb, var(--aurora-orange) 45%, transparent), transparent 60%),
    radial-gradient(40% 40% at 10% 90%, color-mix(in srgb, var(--aurora-rose)   45%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(39,36,32,0.0), rgba(39,36,32,0.4));
  filter: blur(2px);
}
.contact { background: #1a0a06 !important; }
.contact .lg-card { background: rgba(244,241,234,0.05); }

/* Form fields get more glass */
.contact-form input,
.contact-form textarea {
  background: rgba(244,241,234,0.04) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244,241,234,0.16) !important;
}

/* Submit-button disabled state while sending */
.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  filter: saturate(0.7);
}

/* Status feedback under the form */
.contact-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: var(--t-small);
  line-height: 1.5;
  border: 1px solid transparent;
}
.contact-status--ok {
  background: color-mix(in srgb, var(--aurora-amber) 14%, rgba(244,241,234,0.05));
  border-color: color-mix(in srgb, var(--aurora-amber) 40%, transparent);
  color: var(--paper-50);
}
.contact-status--err {
  background: color-mix(in srgb, var(--accent) 18%, rgba(244,241,234,0.05));
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--paper-50);
}

/* Section spacing under hero (centered) */
.hero + .reveal .about { padding-top: var(--space-7); }
.hero + .reveal { padding-top: 0; }

/* Accent color cascade */
.logo-name span,
.hero-name .acc,
.footer-name span { color: var(--accent) !important; }

/* Buttons */
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(0.92); }

/* Status dot */
.site-footer .status .dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* Project image placeholder — visual blocks (no images yet) */
.project { align-items: start; }

/* ============================ Hero Japanese accents ============================ */
.hero-kanji {
  position: absolute;
  right: -2vw; top: 8vh;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(280px, 38vw, 560px);
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none; user-select: none;
  z-index: 1;
  letter-spacing: -.02em;
  text-shadow: 0 0 80px rgba(189,79,79,0.32);
}
.hero-vkana {
  position: absolute;
  left: var(--outer-gutter);
  top: 38%;
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: .35em;
  color: rgba(244, 241, 234, 0.45);
  z-index: 4;
  font-weight: 500;
  display: flex; flex-direction: column;
  pointer-events: none; user-select: none;
}
.hero-vkana::before {
  content: ""; display: block;
  width: 1px; height: 28px;
  background: var(--accent);
  margin: 0 auto 14px;
  opacity: 0.7;
}
.hero-vkana .sep { color: var(--accent); margin: 6px auto; }
.hero-seal-mini {
  position: absolute;
  top: 24%; right: var(--outer-gutter);
  width: 64px; height: 64px;
  border: 1.5px solid var(--accent);
  background: rgba(230, 51, 25, 0.08);
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 32px;
  color: var(--accent);
  transform: rotate(-6deg);
  z-index: 4;
  box-shadow: 0 0 24px rgba(230,51,25,0.25), inset 0 0 0 2px rgba(11,13,15,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  user-select: none;
}
.hero-seal-mini span { display: block; line-height: 1; }

/* ============================ Skills icons ============================ */
.skill-head { gap: 14px !important; align-items: center !important; }
.skill-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 65%, #E6B1A7));
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(189,79,79,0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}
.skill-icon svg { width: 20px; height: 20px; }
.skill-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.skill-head-text .num {
  font-size: var(--t-micro); letter-spacing: .2em; color: var(--accent);
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.skill-kanji {
  font-family: var(--font-jp); font-weight: 700; font-size: 13px;
  letter-spacing: 0; color: var(--fg-muted); opacity: 0.7;
}

/* ============================ Timeline categories ============================ */
.timeline li { grid-template-columns: 220px 1fr 80px !important; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.timeline li:hover::before { opacity: 1; }
.timeline li[data-cat="work"]::before   { background: var(--accent); }
.timeline li[data-cat="edu"]::before    { background: var(--aurora-amber); }
.timeline li[data-cat="cert"]::before   { background: var(--aurora-rose); }
.timeline li[data-cat="course"]::before { background: var(--aurora-orange); }

.t-year { display: flex !important; gap: 12px; align-items: flex-start; }
.t-cat-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(11,13,15,0.05);
  border: 1px solid var(--hairline);
  color: var(--fg-muted);
  flex-shrink: 0;
}
.t-cat-icon svg { width: 16px; height: 16px; }
.timeline li[data-cat="work"]   .t-cat-icon { color: var(--accent);          background: color-mix(in oklab, var(--accent) 10%, transparent); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.timeline li[data-cat="edu"]    .t-cat-icon { color: #C9956F;              background: rgba(255, 211, 185, 0.20); border-color: rgba(255, 211, 185, 0.45); }
.timeline li[data-cat="cert"]   .t-cat-icon { color: var(--aurora-rose);     background: rgba(65, 95, 120, 0.14); border-color: rgba(65, 95, 120, 0.35); }
.timeline li[data-cat="course"] .t-cat-icon { color: #B07B72;              background: rgba(230, 177, 167, 0.20); border-color: rgba(230, 177, 167, 0.45); }

.t-year-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-cat {
  display: inline-block; align-self: flex-start;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11,13,15,0.06);
  color: var(--fg-muted);
}
.t-cat--work   { background: color-mix(in oklab, var(--accent) 14%, transparent) !important; color: var(--accent) !important; }
.t-cat--edu    { background: rgba(255, 211, 185, 0.28) !important; color: #8A5A2E !important; }
.t-cat--cert   { background: rgba(65, 95, 120, 0.18) !important; color: #2F4A60 !important; }
.t-cat--course { background: rgba(230, 177, 167, 0.28) !important; color: #8A4B45 !important; }
.t-year-num {
  font-size: var(--t-small); font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.t-mark { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.t-kanji {
  font-family: var(--font-jp); font-weight: 900; font-size: 24px;
  color: var(--accent); opacity: 0.85; line-height: 1;
}
.t-idx { color: var(--paper-300); font-size: 11px; letter-spacing: .2em; font-weight: 600; }

/* Tweak — ensure section.skills allows wider head when icon present */
.skills-grid { gap: 28px !important; grid-template-columns: repeat(3, 1fr) !important; }
.skill-block { padding-top: 24px !important; }

/* ============================================================
   Global Layout Modes — main.layout-{centered|split}
   ------------------------------------------------------------
   SAME elements visible in both modes; only POSITION differs.
   - "split"    = current asymmetric/editorial defaults (base CSS)
   - "centered" = symmetric, single-column, breathing room
   This block holds the .layout-centered overrides per section.
   ============================================================ */

/* ---------- Section heads ---------- */
.layout-centered .section-head {
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.layout-centered .section-head .eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.layout-centered .section-head h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.layout-centered .section-kanji {
  left: 50%;
  right: auto;
  top: 12%;
  transform: translateX(-50%);
  opacity: 0.05;
}

.layout-split .section-head { text-align: left; }

/* ---------- About ---------- */
.layout-centered .about-grid {
  display: block !important;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.layout-centered .about-grid > div:first-child {
  margin-bottom: 32px;
}
.layout-centered .about-grid .lead {
  text-align: center;
  max-width: 42ch;
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}
.layout-centered .about-body {
  max-width: 82ch;
  margin: 0 auto;
  text-align: center;
}
.layout-centered .about-body p + p { margin-top: 18px; }

/* ---------- Skills ---------- */
.layout-centered .skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1200px;
  margin: 0 auto;
  gap: 36px 48px !important;
}
.layout-centered .skill-block {
  border-top-color: color-mix(in oklab, var(--accent) 25%, transparent);
}

/* ---------- Work ---------- */
.layout-centered .work-list {
  max-width: 1200px;
  margin: 0 auto;
  gap: 64px !important;
}
.layout-centered .project,
.layout-centered .project.project--alt {
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  justify-items: center;
  text-align: center;
}
.layout-centered .project-meta {
  display: flex !important;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
}
.layout-centered .project-body { max-width: 82ch; }
.layout-centered .project-stack { justify-content: center; }
.layout-centered .project-metrics {
  display: grid;
  grid-template-columns: repeat(3, auto) !important;
  justify-content: center;
  gap: 28px 56px;
  margin-top: 6px;
}

/* ---------- Experience timeline (centered zigzag) ---------- */
.layout-centered .timeline {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.layout-centered .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: color-mix(in oklab, var(--accent) 28%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.layout-centered .timeline li {
  grid-template-columns: 1fr 1fr !important;
  gap: 0 80px !important;
  position: relative;
  padding: 18px 0 !important;
}
.layout-centered .timeline li:hover::before { left: 50%; transform: translateX(-50%); }
.layout-centered .timeline li .t-year   { flex-direction: row; }
.layout-centered .timeline li:nth-child(odd)  .t-year { grid-column: 1; justify-self: end; flex-direction: row-reverse; }
.layout-centered .timeline li:nth-child(odd)  .t-body { grid-column: 2; text-align: left; }
.layout-centered .timeline li:nth-child(even) .t-year { grid-column: 2; justify-self: start; }
.layout-centered .timeline li:nth-child(even) .t-body { grid-column: 1; text-align: right; }
.layout-centered .timeline li:nth-child(even) .t-body h3,
.layout-centered .timeline li:nth-child(odd)  .t-body h3 { font-size: 1.05rem; }
/* t-mark stays visible — repositioned as a chip on the spine */
.layout-centered .timeline li .t-mark {
  position: absolute;
  left: 50%; top: 22px;
  transform: translateX(-50%);
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: var(--paper-50);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(11,13,15,0.08);
}
.layout-centered .timeline li .t-kanji { font-size: 14px !important; line-height: 1; }
.layout-centered .timeline li .t-idx { font-size: 10px !important; }

/* ---------- Contact ---------- */
.layout-centered .contact-grid {
  grid-template-columns: 1fr !important;
  max-width: 1100px;
  margin: 0 auto;
  gap: 28px !important;
}
.layout-centered .contact-aside {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.layout-centered .contact-direct { text-align: left; }
.layout-centered .contact-social { justify-self: end; }

/* ============================================================
   Project link — pill CTA inside project cards
   ============================================================ */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 8px 14px;
  font-family: var(--font-jp), inherit;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  transition: gap var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.project-link:hover {
  gap: 10px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: var(--accent);
}
.project-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   Certifications section — card grid with PDF/credential links
   ============================================================ */
.certifications {
  padding: 0 var(--outer-gutter) var(--space-9);
  position: relative;
  background: var(--paper-50);
}
.cert-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cert-grid > li { min-width: 0; }
.cert-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base), background var(--dur-fast);
  min-height: 100%;
}
a.cert-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transform: translateY(-2px);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 24px -10px rgba(11,13,15,0.18);
}
a.cert-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cert-card--static { cursor: default; }
.cert-year {
  font-family: var(--font-jp), inherit;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
}
.cert-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cert-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.cert-issuer {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cert-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-family: var(--font-jp), inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--dur-fast);
}
a.cert-card:hover .cert-cta { gap: 8px; }

/* ============================================================
   Education — inside the About section (light theme)
   ============================================================ */
.about-edu {
  margin-top: 40px;
  max-width: 1100px;
}
.about-edu-head {
  margin: 0 0 14px;
  font-size: var(--t-eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.about-edu-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 22px 26px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.about-edu-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 6px 20px -10px rgba(11,13,15,0.18);
}
.about-edu-meta { display: flex; align-items: flex-start; min-width: 0; }
.about-edu-year {
  font-family: var(--font-jp), inherit;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.about-edu-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.about-edu-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.about-edu-issuer {
  margin: 4px 0 0;
  font-size: var(--t-body);
  color: var(--fg);
  font-weight: 500;
}
.about-edu-detail {
  margin: 10px 0 6px;
  font-size: var(--t-body);
  color: var(--accent);
  font-weight: 600;
}
.about-edu-summary {
  margin: 0;
  font-size: var(--t-small);
  color: var(--fg-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ============================================================
   Centered-layout variant for Certifications
   ============================================================ */
.layout-centered .cert-grid {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.layout-centered .about-edu { margin-left: auto; margin-right: auto; }
.layout-centered .about-edu-card {
  grid-template-columns: 1fr;
  gap: 8px;
  text-align: center;
  justify-items: center;
}
.layout-centered .about-edu-meta { justify-content: center; }
.layout-centered .about-edu-body { align-items: center; text-align: center; }

/* ============================================================
   Responsive — Tablet (≤1024px) and Mobile (≤640px)
   Hero gets per-breakpoint treatment, not blind stacking.
   ============================================================ */

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  /* Hero: allow vertical growth so the music player below the fold isn't
     clipped by the desktop `height: 100vh` + `overflow: hidden` combo.
     We still need overflow:hidden to contain aurora bleed, so we only
     relax the height constraint. */
  .hero {
    height: auto !important;
    min-height: 100vh;
  }

  /* Background decorations: tone down */
  .hero-kanji { font-size: clamp(220px, 50vw, 400px) !important; right: -8vw !important; opacity: 0.06 !important; }
  .hero-vkana { display: none !important; }
  .hero-seal-mini { width: 52px !important; height: 52px !important; font-size: 26px !important; }

  /* Non-hero grids */
  .about-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .skills-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .project { grid-template-columns: 1fr !important; gap: 16px !important; }
  .project-metrics { grid-template-columns: repeat(3, 1fr) !important; }
  .timeline li { grid-template-columns: 100px 1fr 40px !important; gap: 16px !important; }
  .t-year { flex-wrap: wrap; }
  .t-kanji { font-size: 18px !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .footer-inner { grid-template-columns: 1fr 1fr !important; }
  .site-nav { display: none; }

  /* Hero: BOTH modes converge to vertical (portrait → name → sub → music).
     Tablet doesn't have horizontal room for 3-col / editorial split, so we
     unify the experience while keeping DOM order legible. */
  .hero--centered,
  .hero--split {
    padding: 100px var(--outer-gutter) 56px;
  }
  .hero-focal--centered,
  .hero-focal--split {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-rows: auto;
    grid-template-areas:
      "portrait"
      "name"
      "sub"
      "music";
    justify-items: center;
    text-align: center;
    column-gap: 0;
    row-gap: 20px;
    max-width: 640px;
    margin: 0 auto;
    align-self: center;
    padding: 0;
  }
  /* Flatten col wrappers so inner items become direct grid children */
  .hero-focal--centered .hero-focal-col,
  .hero-focal--split .hero-focal-col { display: contents; }
  /* Re-attach grid-area for items at tablet (side normally has no areas set) */
  .hero-focal--split .hero-name      { grid-area: name; }
  .hero-focal--split .hero-portrait  { grid-area: portrait; }
  .hero-focal--split .hero-sub       { grid-area: sub; }
  .hero-focal--split .hero-focal-music { grid-area: music; }
  .hero-focal--split .hero-portrait {
    grid-row: auto;
    justify-self: center;
    align-self: center;
  }
  .hero-focal--centered .hero-portrait,
  .hero-focal--split .hero-portrait {
    width: clamp(240px, 38vw, 360px);
    margin: 0;
  }
  .hero-focal--centered .hero-name,
  .hero-focal--split .hero-name {
    align-items: center;
    text-align: center;
    font-size: clamp(2.8rem, 8vw, 5rem);
    flex-direction: column;
    white-space: normal;
    max-width: none;
    gap: 0;
  }
  .hero-focal--centered .hero-sub,
  .hero-focal--split .hero-sub {
    text-align: center;
    max-width: 56ch;
    justify-self: center;
  }
  .hero-focal--centered .hero-cta-row,
  .hero-focal--split .hero-cta-row {
    justify-content: center;
  }
  .hero-focal--centered .hero-portrait .hero-seal-mini,
  .hero-focal--split .hero-portrait .hero-seal-mini {
    top: auto !important;
    bottom: 8% !important;
    right: -4% !important;
  }

  /* Music: out of absolute slot, into "music" grid area */
  .hero-focal--centered .hero-focal-music,
  .hero-focal--split .hero-focal-music {
    grid-area: music;
    position: relative;
    right: auto; left: auto; bottom: auto; top: auto;
    width: min(440px, 92%);
    margin: 8px auto 0;
    justify-self: center;
  }

  /* Stat: anchor becomes inline below */
  .hero-anchor--stat {
    position: relative;
    top: auto; right: auto; bottom: auto; left: auto;
    width: max-content;
    margin: 0 auto;
  }
  .music-player.is-floating { position: relative; left: auto; bottom: auto; margin: 0; }

  /* Hide scroll-mouse cue on tablet — bottom-bar "scroll ↓" suffices */
  .scroll-mouse { display: none; }

  /* Centered-mode section variants collapse to single column */
  .layout-centered .skills-grid {
    grid-template-columns: 1fr !important;
    max-width: 560px;
    gap: 24px !important;
  }
  .layout-centered .project-metrics {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px 24px !important;
  }
  /* Timeline zigzag flattens to left-rail on tablet for legibility */
  .layout-centered .timeline { max-width: 640px; }
  .layout-centered .timeline::before { left: 18px; }
  .layout-centered .timeline li {
    grid-template-columns: 80px 1fr !important;
    gap: 0 32px !important;
    padding: 12px 0 0 36px !important;
  }
  .layout-centered .timeline li:nth-child(odd)  .t-year,
  .layout-centered .timeline li:nth-child(even) .t-year { grid-column: 1; justify-self: start; flex-direction: row; text-align: left; }
  .layout-centered .timeline li:nth-child(odd)  .t-body,
  .layout-centered .timeline li:nth-child(even) .t-body { grid-column: 2; text-align: left; }
  .layout-centered .timeline li .t-mark { left: 18px; transform: translateX(-50%); top: 16px; }

  /* Contact aside back to vertical stack on tablet */
  .layout-centered .contact-aside {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .layout-centered .contact-direct { text-align: center; }
  .layout-centered .contact-social { justify-self: center; }

  /* ── Overflow-X safety on tablet ──────────────────────────────
     Long unbreakable strings (kanji, long titles, long URLs) must
     wrap inside their grid cell instead of forcing the cell wider. */
  .timeline li, .project, .about-grid, .skills-grid,
  .contact-grid, .footer-inner, .hero-focal { min-width: 0; }
  .t-body, .t-body h3, .t-body p,
  .project-title, .project-desc, .project-role, .project-meta,
  .contact-direct, .contact-direct a, .contact-direct span,
  .hero-sub, .hero-sub p, .hero-name { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
  .chip { max-width: 100%; }

  /* Form row collapses to single column so labels/inputs don't squeeze */
  .contact-form .row-2 { grid-template-columns: 1fr !important; gap: 14px; }

  /* Hero eyebrow row may wrap if both eyebrows can't sit on one line */
  .hero-eyebrow-row { flex-wrap: wrap; gap: 6px 18px; }

  /* Hero bottom-bar safety — allow wrap on narrow tablets */
  .hero-bottom-bar { flex-wrap: wrap; gap: 4px 12px; }

  /* Education card collapses to single column on tablet */
  .about-edu-card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  /* Certs grid auto-fills, already responsive via minmax(280px, 1fr) */
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr !important; }
  .footer-inner { grid-template-columns: 1fr !important; }
  .glass-chip { display: none; }

  /* Mobile: drop min-height so the hero hugs its content. The 100vh floor
     leaves a tall empty band below the music player on phones since stacked
     content rarely reaches a full viewport height. */
  .hero { min-height: 0 !important; }

  /* Hero: tighter padding, smaller portrait, stack everything */
  .hero--centered,
  .hero--split {
    padding: 88px 20px 32px;
    gap: 18px;
  }
  .hero-focal--centered,
  .hero-focal--split {
    row-gap: 14px;
  }
  .hero-focal--centered .hero-name,
  .hero-focal--split .hero-name {
    font-size: clamp(2.6rem, 12vw, 4rem);
    letter-spacing: -.03em;
  }
  .hero-focal--centered .hero-portrait,
  .hero-focal--split .hero-portrait {
    width: clamp(200px, 60vw, 280px);
  }
  .hero-focal--centered .hero-sub p,
  .hero-focal--split .hero-sub p {
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
  }

  /* CTAs become full-width with 48px touch target (UX: ≥44px) */
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 18px auto 0 !important;
    gap: 10px !important;
  }
  .hero-cta-row .btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
  }

  /* Hide stat card on mobile — saves space, music player is the
     priority ambient element */
  .hero-anchor--stat { display: none; }
  .hero-focal--centered .hero-focal-music,
  .hero-focal--split .hero-focal-music {
    width: 100%;
    max-width: 360px;
    margin: 12px auto 0;
  }

  /* Eyebrow row: stack vertically for narrow screens */
  .hero-eyebrow-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero-bottom-bar {
    font-size: 10px !important;
    letter-spacing: .14em !important;
  }

  /* ── Overflow-X safety on mobile ──────────────────────────────
     At ≤640px the tablet rules above still apply (inherited). These
     overrides further collapse grids that are still too wide. */

  /* Timeline (side-rail): drop the date column to its own row.
     320px viewport with 100+1fr+40 + gap 16 was too cramped for
     long job titles like "PT. Daya Intiguna Yasa". */
  .timeline li {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 18px 0 !important;
  }
  .t-mark { align-items: flex-start; text-align: left; }

  /* Timeline (centered zigzag → left-rail) — tighter, still has spine */
  .layout-centered .timeline { max-width: 100%; }
  .layout-centered .timeline::before { left: 12px; }
  .layout-centered .timeline li {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 14px 0 14px 28px !important;
  }
  .layout-centered .timeline li:nth-child(odd)  .t-year,
  .layout-centered .timeline li:nth-child(even) .t-year,
  .layout-centered .timeline li:nth-child(odd)  .t-body,
  .layout-centered .timeline li:nth-child(even) .t-body {
    grid-column: 1;
    justify-self: stretch;
    text-align: left;
  }
  .layout-centered .timeline li .t-mark {
    left: 12px !important;
    top: 14px !important;
    padding: 3px 8px;
    align-items: center;
  }

  /* Project metrics: 3-col is too tight at 320px → 2-col */
  .project-metrics { grid-template-columns: repeat(2, 1fr) !important; gap: 12px 16px !important; }
  .layout-centered .project-metrics { grid-template-columns: repeat(2, auto) !important; gap: 14px 20px !important; }

  /* Contact form already row-2: 1fr by tablet rule — ensure inputs full width */
  .contact-form input, .contact-form textarea { max-width: 100%; }
  .contact-form .row-2 { gap: 12px !important; margin-bottom: 12px; }

  /* Section heads: reduce kanji on mobile so it doesn't peek beyond
     padding box. Already uses clamp(80px, 14vw, 200px) → at 320px =
     45px (floored to 80px min) — peek into padding only, no overflow. */
  .section-head h2 { max-width: 100%; }
  .section-head { padding-right: 0; }

  /* Footer columns tighter spacing */
  .footer-inner { gap: 24px !important; }
  .footer-col { min-width: 0; }
  .footer-col a, .footer-name { overflow-wrap: anywhere; }

  /* Music player width safety on mobile */
  .music-player { max-width: 100%; }
  .music-info { min-width: 0; }
  .music-title, .music-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
