/* =========================================================
   Seta Ichiru | Composer & Music Producer
   Premium dark cinematic portfolio
   ---------------------------------------------------------
   Architecture (top -> bottom):
     1. Design tokens (CSS variables)
     2. Reset / base
     3. Typography
     4. Buttons / links / utilities
     5. Header / nav
     6. Hero
     7. Services (editorial asymmetric)
     8. Selected Works
     9. News
    10. About
    11. Contact (form + states)
    12. Footer
    13. Reveal motion
    14. Responsive
   ---------------------------------------------------------
   WordPress conversion note:
   Most selectors are section-based (.hero, .works, .about),
   so converting these to template parts (front-page.php,
   template-parts/section-*.php) is a 1:1 mapping.
   ========================================================= */


/* ====================================================
   1. DESIGN TOKENS
   ==================================================== */
:root {
  /* --- Palette: ink black + warm parchment, restrained red accent --- */
  --ink-900: #0a0907;          /* page background, deepest */
  --ink-850: #0d0b09;          /* alt background */
  --ink-800: #14110d;          /* surface */
  --ink-750: #1a1612;          /* surface alt (cards) */
  --ink-700: #221d17;          /* raised surface */
  --ink-600: #2c2620;          /* borders strong */
  --ink-500: #3a332b;          /* borders */
  --ink-400: #524940;          /* dividers, faint */

  --bone-100: #ece8de;         /* primary text, warm off-white */
  --bone-200: #d8d2c3;         /* slightly dimmer text */
  --bone-300: #b6ad9a;         /* muted */
  --bone-400: #8a8275;         /* faint */
  --bone-500: #5e574c;         /* placeholder / disabled */

  /* Restrained brand red — sampled from the Rising Sun logo, deepened. */
  --rs-red: #c8262e;
  --rs-red-hi: #d83740;        /* hover */
  --rs-red-dim: #8b1b22;

  /* Optional champagne gold, used sparingly */
  --gold: #c9a35b;

  /* Functional */
  --error: #d96a72;
  --success: #b3c79a;

  /* --- Typography --- */
  --font-display: 'Boska', 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --font-jp: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;

  /* --- Spacing scale (8px base) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  /* --- Type sizes (fluid) --- */
  --text-xs: clamp(11px, 0.72rem + 0.05vw, 12px);
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: clamp(18px, 1rem + 0.4vw, 22px);
  --text-xl: clamp(24px, 1.4rem + 1vw, 32px);
  --text-2xl: clamp(32px, 1.8rem + 2vw, 52px);
  --text-3xl: clamp(44px, 2.4rem + 3.4vw, 88px);
  --text-hero: clamp(48px, 3rem + 5vw, 120px);

  /* --- Layout --- */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* --- Easing / motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;

  /* --- Borders / radii --- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* --- Page chrome --- */
  --header-h: 76px;
}

/* ====================================================
   2. RESET / BASE
   ==================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--bone-100);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11', 'palt';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle film grain via SVG noise + radial vignette. */
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(200, 38, 46, 0.05), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 163, 91, 0.025), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea, button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--rs-red-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--bone-100);
  color: var(--ink-900);
  padding: 10px 16px;
  z-index: 100;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 16px; }

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

/* ====================================================
   3. TYPOGRAPHY
   ==================================================== */
.display-hero,
.display-section {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--bone-100);
  margin: 0;
  text-wrap: balance;
}
.display-hero {
  font-size: var(--text-hero);
  letter-spacing: -0.03em;
  line-height: 0.96;
}
.display-hero em {
  font-style: italic;
  font-weight: 400;
  color: var(--bone-200);
}
.display-section {
  font-size: var(--text-2xl);
  line-height: 1.04;
}
.display-section .amp {
  font-style: italic;
  font-weight: 400;
  color: var(--bone-300);
}

.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bone-300);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--rs-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 38, 46, 0.12);
}

.section-no {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-400);
  font-weight: 500;
  font-family: var(--font-body);
}

.section-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
  max-width: 760px;
}
.section-head--inline {
  margin-bottom: var(--space-8);
}
.section-lede {
  color: var(--bone-200);
  font-size: var(--text-lg);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}
.jp-inline {
  font-family: var(--font-jp);
  color: var(--bone-300);
  font-size: 0.92em;
  margin-left: 0.4em;
}

/* ====================================================
   4. BUTTONS / LINKS / UTILITIES
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 16px 26px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--rs-red);
  color: var(--bone-100);
  border-color: var(--rs-red);
}
.btn-primary:hover {
  background: var(--rs-red-hi);
  border-color: var(--rs-red-hi);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(216, 55, 64, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--bone-100);
  border-color: var(--ink-500);
}
.btn-ghost:hover {
  border-color: var(--bone-300);
  background: rgba(236, 232, 222, 0.04);
}

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--bone-100);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink-500);
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.link-arrow:hover {
  color: var(--rs-red-hi);
  border-color: var(--rs-red);
}
.link-arrow span { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

.muted { color: var(--bone-300); }
.small { font-size: var(--text-sm); }
.xsmall { font-size: var(--text-xs); }

/* ====================================================
   5. HEADER / NAV
   ==================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 9, 7, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10, 9, 7, 0.82);
  border-bottom-color: var(--ink-700);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bone-100);
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-400);
  margin-top: 2px;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  gap: var(--space-8);
}
.primary-nav a {
  font-size: var(--text-sm);
  color: var(--bone-200);
  letter-spacing: 0.06em;
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-base) var(--ease-out);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--rs-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.primary-nav a:hover { color: var(--bone-100); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-100);
  transition: all var(--dur-base) var(--ease-out);
}
.nav-cta:hover {
  border-color: var(--rs-red);
  color: var(--bone-100);
  background: rgba(200,38,46, 0.12);
}
.nav-cta .arrow { transition: transform var(--dur-base) var(--ease-out); }
.nav-cta:hover .arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--bone-100);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  background: var(--ink-900);
  padding: var(--space-12) var(--gutter);
  overflow-y: auto;
}
.mobile-nav ul { display: grid; gap: var(--space-6); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  color: var(--bone-100);
}
.mobile-nav .mobile-cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rs-red-hi);
  margin-top: var(--space-4);
}

/* ====================================================
   6. HERO
   ==================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(var(--space-16), 10vw, var(--space-32))) 0 clamp(var(--space-16), 10vw, var(--space-24));
  overflow: hidden;
}
.hero::before {
  /* subtle red flare upper-right */
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle at center, rgba(200, 38, 46, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { max-width: 64ch; }
.hero-jp {
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.05vw + 0.8rem, 19px);
  color: var(--bone-200);
  line-height: 1.85;
  margin: var(--space-8) 0 var(--space-6);
  letter-spacing: 0.02em;
}
.hero-en {
  color: var(--bone-300);
  font-size: var(--text-md);
  line-height: 1.65;
  margin: 0 0 var(--space-10);
  max-width: 52ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-mark { position: relative; }
.mark-frame {
  position: relative;
  background: linear-gradient(180deg, var(--ink-750), var(--ink-800));
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-8), 3vw, var(--space-12));
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(236, 232, 222, 0.04),
    0 30px 60px -30px rgba(0,0,0,0.8);
}
.mark-frame::before {
  /* hairline inner frame */
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--ink-600);
  pointer-events: none;
}
.mark-frame img {
  width: 78%;
  max-height: 80%;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.mark-frame--portrait {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
  background:
    linear-gradient(180deg, rgba(236, 232, 222, 0.04), transparent 32%),
    linear-gradient(180deg, var(--ink-750), var(--ink-850));
}
.mark-frame--portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 7, 0.02) 40%, rgba(10, 9, 7, 0.72) 100%),
    radial-gradient(circle at 18% 12%, rgba(200, 38, 46, 0.14), transparent 34%);
  pointer-events: none;
}
.mark-frame--portrait .hero-portrait-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 24%;
  opacity: 0.9;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
}
.hero-brand-signature {
  position: absolute;
  top: 22px;
  right: 22px;
  width: clamp(42px, 5vw, 68px) !important;
  height: auto;
  opacity: 0.78 !important;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.65)) !important;
  z-index: 2;
}
.mark-meta {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-400);
  z-index: 2;
}
.mark-kanji {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  color: var(--rs-red);
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
  padding-top: var(--space-8);
  border-top: 1px solid var(--ink-700);
  position: relative;
  z-index: 1;
}
.hero-credits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-300);
}
.hero-credits li { position: relative; }
.hero-credits li + li::before {
  content: "";
  position: absolute;
  left: calc(var(--space-8) * -0.5);
  top: 50%;
  width: 3px; height: 3px;
  background: var(--ink-500);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-foot-note {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-400);
}

/* ====================================================
   7. SERVICES (editorial asymmetric)
   ==================================================== */
.services {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0;
  border-top: 1px solid var(--ink-700);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
}
.services .display-section { font-size: var(--text-2xl); max-width: 16ch; }

.practice-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--space-6);
  row-gap: clamp(var(--space-12), 6vw, var(--space-20));
}
/* Editorial asymmetric placement */
.practice {
  position: relative;
  padding-top: var(--space-8);
  border-top: 1px solid var(--ink-700);
}
.practice--01 { grid-column: 1 / span 7; }
.practice--02 { grid-column: 7 / span 6; padding-left: var(--space-10); }
.practice--03 { grid-column: 2 / span 6; padding-left: var(--space-10); }
.practice--04 { grid-column: 7 / span 6; }

.practice-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--rs-red);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
}
.practice-title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 1.3rem + 1vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bone-100);
  display: grid;
  gap: 6px;
}
.practice-title .jp {
  font-family: var(--font-jp);
  font-size: 0.55em;
  color: var(--bone-300);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.practice-body {
  color: var(--bone-200);
  font-size: var(--text-md);
  line-height: 1.7;
  max-width: 48ch;
  margin: 0 0 var(--space-5);
}
.practice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.practice-tags li {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-300);
  padding: 5px 11px;
  border: 1px solid var(--ink-600);
  border-radius: 999px;
}

/* ====================================================
   8. SELECTED WORKS
   ==================================================== */
.works {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0;
  border-top: 1px solid var(--ink-700);
}

.works-list {
  display: grid;
  gap: var(--space-2);
}
.work {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr 1.4fr;
  gap: var(--space-8);
  align-items: start;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--ink-700);
  position: relative;
  transition: background var(--dur-base) var(--ease-out);
}
/* `.work { display: grid }` above would otherwise override the browser's
   default `[hidden] { display: none }` rule, since author CSS always wins
   over the user-agent stylesheet regardless of selector specificity. */
.work[hidden] { display: none; }
.work:last-child { border-bottom: 1px solid var(--ink-700); }
.work:hover { background: rgba(236, 232, 222, 0.015); }
.work:hover .work-rule { width: 100%; }

.work-rule {
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 0;
  background: var(--rs-red);
  transition: width var(--dur-slow) var(--ease-out);
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.work-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 1vw + 0.9rem, 28px);
  color: var(--bone-100);
  letter-spacing: 0;
  text-transform: none;
}
.work-type { color: var(--bone-400); }

.work-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1vw + 1rem, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone-100);
  display: grid;
  gap: 4px;
}
.work-en { display: block; }
.work-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.58em;
  color: var(--bone-300);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.work-role {
  color: var(--bone-200);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
}
.work-role-bilingual {
  display: grid;
  gap: 8px;
}
.work-role-bilingual p {
  margin: 0;
}
.work-role-jp {
  font-family: var(--font-jp);
  color: var(--bone-300);
}
.work-role a,
.news-body a {
  color: var(--rs-red-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.work-role a:hover,
.news-body a:hover {
  color: var(--bone-100);
}

.work-credits {
  display: grid;
  gap: 4px;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--bone-300);
  text-align: right;
}
.work-credits li { white-space: nowrap; }

.work--feature {
  grid-template-columns: 1.5fr 1fr 2fr 1.4fr;
  padding: var(--space-12) 0;
}
.work--feature .work-title { font-size: clamp(26px, 1.3vw + 1.1rem, 38px); }
.work--feature .work-role { font-size: var(--text-md); }

.works-more {
  margin-top: clamp(var(--space-8), 5vw, var(--space-12));
  display: flex;
  justify-content: center;
}
.works-more-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.works-foot {
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--bone-300);
}

/* ====================================================
   9. NEWS
   ==================================================== */
.news {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0;
  border-top: 1px solid var(--ink-700);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
}

.news-list {
  display: grid;
  gap: var(--space-2);
}
.news-item {
  display: grid;
  grid-template-columns: 200px 120px 1fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--ink-700);
  align-items: start;
}
.news-item:last-child { border-bottom: 1px solid var(--ink-700); }

.news-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--bone-200);
  letter-spacing: 0.04em;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  align-self: start;
  padding: 5px 11px;
  border: 1px solid var(--rs-red-dim);
  color: var(--rs-red-hi);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.news-title {
  grid-column: 3;
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1vw + 0.8rem, 26px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--bone-100);
  display: grid;
  gap: 4px;
}
.news-title .jp {
  font-family: var(--font-jp);
  font-size: 0.7em;
  color: var(--bone-300);
  font-weight: 400;
}
.news-body {
  grid-column: 3;
  color: var(--bone-200);
  font-size: var(--text-base);
  line-height: 1.65;
  margin: 0;
  max-width: 62ch;
}

/* ====================================================
   10. ABOUT
   ==================================================== */
.about {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0;
  border-top: 1px solid var(--ink-700);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

/* Portrait frame — swap placeholder for real image */
.portrait-frame {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  margin: 0;
}
.portrait-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(200,38,46,0.06), transparent 50%),
    linear-gradient(180deg, var(--ink-750), var(--ink-800));
  border: 1px solid var(--ink-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.portrait-placeholder::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--ink-600);
  pointer-events: none;
}
.portrait-placeholder::after {
  /* corner registration mark */
  content: "";
  position: absolute;
  top: 22px; right: 22px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--rs-red);
  border-right: 1px solid var(--rs-red);
}
.portrait-kanji {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  color: var(--bone-100);
  line-height: 1;
  opacity: 0.85;
}
.portrait-kanji + .portrait-kanji {
  margin-top: -0.15em;
  opacity: 0.6;
  color: var(--rs-red);
}
.portrait-hint {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-500);
  font-family: var(--font-body);
}
/* If a real <img> is dropped in: */
.portrait-frame img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border: 1px solid var(--ink-600);
  object-position: 50% 28%;
  filter: grayscale(100%) contrast(1.04) brightness(0.96);
  box-shadow:
    inset 0 1px 0 rgba(236, 232, 222, 0.04),
    0 30px 60px -36px rgba(0,0,0,0.85);
}
.portrait-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--bone-100);
  letter-spacing: 0.04em;
}
.portrait-caption .muted { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-400); }

.about-copy { max-width: 64ch; }
.about-lede {
  font-family: var(--font-display);
  font-size: clamp(22px, 1vw + 1rem, 28px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--bone-100);
  margin: var(--space-4) 0 var(--space-8);
  letter-spacing: -0.005em;
}
.about-jp {
  font-family: var(--font-jp);
  color: var(--bone-200);
  font-size: var(--text-md);
  line-height: 2;
  margin: 0 0 var(--space-6);
  letter-spacing: 0.02em;
}
.about-en {
  color: var(--bone-300);
  font-size: var(--text-md);
  line-height: 1.7;
  margin: 0 0 var(--space-6);
}

.about-mantra {
  margin: var(--space-10) 0;
  padding: var(--space-6) 0 var(--space-6) var(--space-8);
  border-left: 1px solid var(--rs-red);
}
.about-mantra p {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 1vw + 1rem, 26px);
  color: var(--bone-100);
  line-height: 1.35;
}
.about-mantra cite {
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-400);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-8);
  margin: var(--space-10) 0 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--ink-700);
}
.about-facts > div { display: grid; gap: 4px; }
.about-facts dt {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-400);
}
.about-facts dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--bone-100);
}

/* ====================================================
   11. CONTACT
   ==================================================== */
.contact {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0;
  border-top: 1px solid var(--ink-700);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(var(--space-12), 8vw, var(--space-20));
  align-items: start;
}

.contact-intro { position: sticky; top: calc(var(--header-h) + var(--space-8)); }
.contact-lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 1vw + 0.9rem, 26px);
  line-height: 1.4;
  color: var(--bone-100);
  margin: var(--space-4) 0 var(--space-6);
}
.contact-jp {
  font-family: var(--font-jp);
  color: var(--bone-200);
  line-height: 1.9;
  margin: 0 0 var(--space-8);
}

.contact-direct {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--ink-700);
}
.contact-direct li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-4);
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--bone-100);
}
.contact-direct .label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-400);
}
.contact-direct a {
  color: var(--bone-100);
  border-bottom: 1px solid var(--ink-500);
  padding-bottom: 2px;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.contact-direct a:hover { color: var(--rs-red-hi); border-color: var(--rs-red); }

/* Form */
.contact-form {
  display: grid;
  gap: var(--space-6);
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  border-radius: var(--radius-md);
  position: relative;
}
.field { display: grid; gap: var(--space-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-300);
  font-weight: 500;
}
.field .req { color: var(--rs-red-hi); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-500);
  padding: 12px 0;
  font-size: var(--text-base);
  color: var(--bone-100);
  font-family: var(--font-body);
  border-radius: 0;
  transition: border-color var(--dur-base) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--bone-500);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--bone-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rs-red);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field-error {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--error);
  min-height: 14px;
  letter-spacing: 0.04em;
}
.field-error:empty { display: none; }

.select-wrap { position: relative; }
.select-wrap select {
  padding-right: 28px;
  background: transparent;
  cursor: pointer;
}
.select-wrap select option { background: var(--ink-800); color: var(--bone-100); }
.select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bone-400);
  pointer-events: none;
  font-size: 12px;
}

.form-foot {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.form-fine {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--bone-400);
  letter-spacing: 0.04em;
}
.form-fine a { color: var(--bone-200); border-bottom: 1px solid var(--ink-500); padding-bottom: 1px; }
.form-fine a:hover { color: var(--rs-red-hi); border-color: var(--rs-red); }

.contact-form--plugin {
  display: block;
}

.contact-form--empty code {
  color: var(--bone);
  background: rgba(236, 232, 222, 0.08);
  border: 1px solid rgba(236, 232, 222, 0.14);
  border-radius: 6px;
  padding: 0.16rem 0.35rem;
}

.contact-form--plugin .wpcf7-form {
  display: grid;
  gap: 1.05rem;
}

/*
 * Contact Form 7 always adds its own `.wpcf7-form-control` / `.wpcf7-submit`
 * classes to every field, regardless of whether the form's own markup also
 * uses this theme's `.field` wrapper (see the README's recommended form
 * markup). Styling those classes directly means any Contact Form 7 form
 * gets readable, on-brand fields even if it wasn't built with `.field`
 * wrappers — otherwise inputs keep the browser's default light background
 * while inheriting this theme's light body text color, making the text
 * invisible.
 */
.contact-form--plugin .wpcf7-form-control:not(.wpcf7-submit) {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-500);
  padding: 12px 0;
  font-size: var(--text-base);
  color: var(--bone-100);
  font-family: var(--font-body);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-base) var(--ease-out);
}
.contact-form--plugin textarea.wpcf7-form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.contact-form--plugin select.wpcf7-form-control option {
  background: var(--ink-800);
  color: var(--bone-100);
}
.contact-form--plugin .wpcf7-form-control::placeholder {
  color: var(--bone-500);
}
.contact-form--plugin .wpcf7-form-control:hover:not(.wpcf7-submit) {
  border-color: var(--bone-400);
}
.contact-form--plugin .wpcf7-form-control:focus:not(.wpcf7-submit) {
  outline: none;
  border-color: var(--rs-red);
}

.contact-form--plugin .wpcf7-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 16px 26px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--rs-red);
  color: var(--bone-100);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.contact-form--plugin .wpcf7-submit:hover {
  background: var(--rs-red-hi);
}

.contact-form--plugin .wpcf7-spinner {
  margin-top: 0.75rem;
}

.contact-form--plugin .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: #ff9aa0;
  font-size: 0.84rem;
}

.contact-form--plugin .wpcf7-response-output {
  margin: 1rem 0 0;
  border-radius: var(--radius-sm);
  color: var(--bone);
}

/* Form states */
.form-state {
  border: 1px solid var(--ink-600);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--ink-750);
}
.form-state .state-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1vw + 0.7rem, 24px);
  font-weight: 500;
  color: var(--bone-100);
}
.form-state .state-body {
  margin: 0;
  color: var(--bone-200);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.form-state--success { border-color: rgba(179, 199, 154, 0.35); }
.form-state--success .state-title { color: var(--success); }
.form-state--error { border-color: rgba(217, 106, 114, 0.45); }
.form-state--error .state-title { color: var(--error); }

/* Submitting state */
.contact-form.is-submitting .btn-primary { opacity: 0.6; pointer-events: none; }
.contact-form.is-submitting .btn-primary .btn-label::after {
  content: " ...";
}

/* ====================================================
   12. FOOTER
   ==================================================== */
.site-footer {
  border-top: 1px solid var(--ink-700);
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0 var(--space-10);
  background: var(--ink-900);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: var(--space-10);
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--bone-100);
  line-height: 1.3;
}
.footer-name .muted { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer-nav a {
  font-size: var(--text-sm);
  color: var(--bone-200);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.footer-nav a:hover { border-color: var(--rs-red); }

.footer-meta { text-align: right; display: grid; gap: 4px; }
.footer-meta a { color: var(--bone-100); border-bottom: 1px solid var(--ink-500); padding-bottom: 1px; }
.footer-meta a:hover { color: var(--rs-red-hi); border-color: var(--rs-red); }
.footer-mantra {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--bone-300) !important;
  margin-top: var(--space-2) !important;
}

/* ====================================================
   13. REVEAL MOTION
   ==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/*
 * In-page anchor scrolling is handled in main.js via scrollIntoView(),
 * not CSS `scroll-behavior: smooth`. That CSS property has a long-standing
 * WebKit/Safari bug where anchor jumps combined with a fixed header and
 * scroll-triggered observers can overshoot to the bottom of the page.
 * scroll-margin-top keeps anchored sections clear of the fixed header.
 */
section[id] {
  scroll-margin-top: var(--header-h);
}

/* ====================================================
   14. RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .practice--01 { grid-column: 1 / -1; }
  .practice--02 { grid-column: 1 / -1; padding-left: 0; }
  .practice--03 { grid-column: 1 / -1; padding-left: 0; }
  .practice--04 { grid-column: 1 / -1; }

  .work {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .work-meta { grid-column: 1; }
  .work-credits { grid-column: 2; text-align: right; }
  .work-title { grid-column: 1 / -1; }
  .work-role { grid-column: 1 / -1; }

  .news-item { grid-template-columns: 1fr; gap: var(--space-3); }
  .news-tag { justify-self: start; }
  .news-title { grid-column: 1; }
  .news-body { grid-column: 1; }

  .about-grid { grid-template-columns: 1fr; }
  .portrait-frame { position: static; max-width: 460px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .primary-nav,
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .hero { padding-top: calc(var(--header-h) + var(--space-12)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 360px; margin-top: var(--space-4); }

  .display-hero { font-size: clamp(40px, 12vw, 64px); }

  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-credits { gap: var(--space-5); }

  .field-row { grid-template-columns: 1fr; }

  .contact-direct li { grid-template-columns: 1fr; gap: 2px; }

  .about-facts { grid-template-columns: 1fr; }
}

/* tabular numerals for years/dates */
.work-year, .news-date, .work-credits { font-variant-numeric: tabular-nums; }
