/* ===========================================
   Shungo Torii — Video Creative Director
   Cinematic Portfolio · Light Theme
   =========================================== */

:root {
  /* Warm off-white palette */
  --bg-0: #f4f2ee;
  --bg-1: #ebe8e3;
  --bg-2: #e3dfd8;
  --bg-3: #d9d5cd;
  --paper: #faf8f4;
  --line: rgba(20, 18, 16, 0.10);
  --line-strong: rgba(20, 18, 16, 0.22);

  --ink-0: #121110;       /* body ink */
  --ink-1: #333230;
  --ink-2: #6a6862;
  --ink-3: #98958d;
  --ink-4: #b8b4a9;

  --accent: #8a6a3a;      /* deep bronze */
  --accent-2: #b89968;    /* champagne highlight */
  --danger: #b7392a;

  --font-jp: "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  --font-jp-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-en-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-0);
}

body {
  font-family: var(--font-jp-sans);
  font-weight: 300;
  color: var(--ink-0);
  background: var(--bg-0);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

/* subtle film-grain across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- utility ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.section-title .accent { color: var(--accent); font-style: italic; }
.section-title-jp {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--ink-2);
  letter-spacing: 0.14em;
  margin-top: 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.section-head .left { max-width: 780px; }
.section-head .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.section-head .right .idx {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}

section {
  padding: clamp(90px, 11vw, 160px) 0;
  position: relative;
}

/* fade-up reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.2s var(--ease-cine), transform 1.2s var(--ease-cine);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* mask reveal for large titles */
.mask-line {
  display: block;
  overflow: hidden;
}
.mask-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.4s var(--ease-cine);
}
.mask-line.in > span {
  transform: translateY(0);
}
.mask-line.d1 > span { transition-delay: 0.1s; }
.mask-line.d2 > span { transition-delay: 0.25s; }
.mask-line.d3 > span { transition-delay: 0.4s; }

/* ===========================================
   HEADER
   =========================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease-smooth),
              backdrop-filter 0.5s var(--ease-smooth),
              padding 0.4s var(--ease-smooth),
              border-color 0.5s var(--ease-smooth);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(244, 242, 238, 0.82);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding: 14px var(--gutter);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
}
.brand .brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink-0);
  display: grid;
  place-items: center;
  font-family: var(--font-en-display);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-0);
}
.brand .brand-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand .brand-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-0);
}
.brand .brand-en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink-1);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
  font-weight: 500;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-cine);
}
.nav a:hover { color: var(--ink-0); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 16px;
  height: 1px;
  background: var(--ink-0);
  transition: transform 0.4s var(--ease-cine);
}
.hamburger.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(244, 242, 238, 0.99);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-cine);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-en-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-0);
}

/* ===========================================
   HERO
   =========================================== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: stretch;
  background: var(--bg-0);
}
.hero__inner {
  position: relative;
  width: 100%;
  padding: 120px var(--gutter) 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
}

.hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero__topbar .l, .hero__topbar .r {
  display: flex; gap: 24px;
}

.hero__main {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.hero__text {
  padding-right: 20px;
}
.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
}
.hero__eyebrow::before {
  content: "";
  width: 48px; height: 1px;
  background: var(--accent);
}

.hero__name-jp {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(44px, 5.2vw, 82px);
  letter-spacing: 0.22em;
  color: var(--ink-0);
  line-height: 1;
  margin-bottom: 8px;
}
.hero__name-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.5em;
  color: var(--ink-2);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero__role {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  margin-bottom: 20px;
}
.hero__role .accent { font-style: italic; color: var(--accent); }

.hero__tagline {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 32px);
  color: var(--ink-0);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  line-height: 1.5;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__sub {
  font-family: var(--font-jp-sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
}

.hero__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #111;
}
.hero__media video,
.hero__media .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media .poster {
  background-image: url("assets/hero-poster.jpg");
  background-size: cover;
  background-position: center;
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
}

.hero__media-tag {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__media-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d43a2a;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero__media-caption {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.hero__media-caption .runtime {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.hero__scroll .line {
  width: 60px;
  height: 1px;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.hero__scroll .line::after {
  content: "";
  position: absolute;
  left: -30%; top: 0;
  width: 30%; height: 100%;
  background: var(--accent);
  animation: scrollDown 2.4s var(--ease-cine) infinite;
}
@keyframes scrollDown {
  0% { left: -30%; }
  100% { left: 100%; }
}
.hero__meta-right {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  display: flex;
  gap: 24px;
  text-transform: uppercase;
}
.hero__meta-right .k { color: var(--ink-3); }
.hero__meta-right .v { color: var(--ink-0); margin-left: 8px; }

/* ===========================================
   SELECTED WORKS
   =========================================== */
.works-filter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.works-filter button {
  padding: 10px 20px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease-smooth);
  font-weight: 500;
}
.works-filter button:hover { color: var(--ink-0); border-color: var(--line-strong); }
.works-filter button.active {
  color: var(--bg-0);
  background: var(--ink-0);
  border-color: var(--ink-0);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 24px;
}
.work-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 16 / 10;
  transition: opacity 0.5s var(--ease-cine);
}
.work-card:nth-child(6n+1) { grid-column: span 7; }
.work-card:nth-child(6n+2) { grid-column: span 5; }
.work-card:nth-child(6n+3) { grid-column: span 5; }
.work-card:nth-child(6n+4) { grid-column: span 7; }
.work-card:nth-child(6n+5) { grid-column: span 6; }
.work-card:nth-child(6n+6) { grid-column: span 6; }

.work-card.hidden { display: none; }

.work-card__thumb {
  position: absolute; inset: 0;
  overflow: hidden;
}
.work-card__thumb .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.6s var(--ease-cine);
  transform: scale(1.02);
}
.work-card:hover .work-card__thumb .img { transform: scale(1.09); }

.work-card__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.82) 100%);
  transition: background 0.6s var(--ease-cine);
}
.work-card:hover .work-card__thumb::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.9) 100%);
}

.work-card__meta {
  position: absolute;
  left: 28px; right: 28px; bottom: 26px;
  z-index: 2;
  color: #fff;
}
.work-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  font-weight: 500;
}
.work-card__cat .dot { width: 4px; height: 4px; background: var(--accent-2); border-radius: 50%; }
.work-card__cat .year { color: rgba(255,255,255,0.7); }

.work-card__title {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.work-card__title-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.work-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
}
.work-card__foot .roles { color: rgba(255,255,255,0.65); }
.work-card__view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease-cine), transform 0.5s var(--ease-cine);
  color: var(--accent-2);
  font-weight: 500;
}
.work-card:hover .work-card__view {
  opacity: 1;
  transform: translateX(0);
}
.work-card__view::after {
  content: "→";
  font-family: var(--font-en);
}

.work-card__idx {
  position: absolute;
  top: 20px; left: 28px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.85);
}
.work-card__duration {
  position: absolute;
  top: 20px; right: 28px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #fff;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(4px);
}

.work-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-cine), transform 0.6s var(--ease-cine);
  z-index: 2;
}
.work-card:hover .work-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-card__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}

/* ===========================================
   MODAL
   =========================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-cine);
  overflow-y: auto;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal__panel {
  max-width: 1280px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  transform: translateY(30px);
  transition: transform 0.7s var(--ease-cine);
  margin: auto;
}
.modal.open .modal__panel { transform: translateY(0); }

.modal__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal__video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.modal__video .placeholder-player {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
.modal__video .placeholder-player::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.28);
}
.modal__video .play-btn {
  position: relative;
  z-index: 2;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease-cine), background 0.3s;
}
.modal__video .play-btn:hover { background: rgba(0,0,0,0.55); transform: scale(1.05); }
.modal__video .play-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.modal__body {
  padding: 48px clamp(28px, 4vw, 64px) 64px;
}
.modal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.modal__cat {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.modal__title {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.modal__title-jp {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}
.modal__close {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  position: relative;
}
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  width: 16px; height: 1px;
  background: var(--ink-0);
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { background: var(--ink-0); }
.modal__close:hover::before,
.modal__close:hover::after { background: var(--bg-0); }

.modal__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.modal__content-block { margin-bottom: 24px; }
.modal__content-block h4 {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.modal__content-block p {
  font-family: var(--font-jp-sans);
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-1);
}

.modal__sidebar {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.modal__sidebar dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 12px;
}
.modal__sidebar dt {
  font-family: var(--font-en);
  color: var(--ink-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  padding-top: 3px;
  font-weight: 500;
}
.modal__sidebar dd { color: var(--ink-1); line-height: 1.65; font-size: 13px; }
.modal__sidebar h5 {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin: 28px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.modal__sidebar h5:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.modal__tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  letter-spacing: 0.08em;
}

/* ===========================================
   SHOWREEL
   =========================================== */
.showreel {
  background: var(--bg-1);
}
.showreel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.showreel__player {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 30px 80px -30px rgba(20, 18, 16, 0.35);
}
.showreel__player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.showreel__poster {
  position: absolute; inset: 0;
  background-image: url("assets/showreel-poster.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 1.4s var(--ease-cine);
}
.showreel__player:hover .showreel__poster { transform: scale(1.04); }
.showreel__poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.45) 100%);
}

.showreel__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  z-index: 3;
  transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease-cine);
}
.showreel__player:hover .showreel__play {
  background: rgba(184, 153, 104, 0.35);
  border-color: var(--accent-2);
  transform: translate(-50%, -50%) scale(1.06);
}
.showreel__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 20px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}
.showreel__label {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 3;
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: 44px;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
  line-height: 1;
}
.showreel__meta {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
}
.showreel__bar {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.showreel__bar .timeline {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.25);
  position: relative;
}
.showreel__bar .timeline::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 30%;
  height: 100%;
  background: var(--accent-2);
}

.showreel__desc {
  max-width: 780px;
  margin: 56px auto 0;
  text-align: center;
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-1);
  letter-spacing: 0.06em;
}

/* ===========================================
   ACHIEVEMENTS
   =========================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: 52px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s;
  background: var(--paper);
}
.stat:hover { background: var(--bg-1); }
.stat__num {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: clamp(56px, 5.8vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}
.stat__num .plus {
  font-size: 0.5em;
  color: var(--accent);
  font-style: italic;
}
.stat__num .unit {
  font-size: 0.35em;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  margin-left: 6px;
  font-family: var(--font-en);
  font-style: normal;
}
.stat__label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--ink-1);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}
.stat__jp {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}

.logos {
  margin-top: 96px;
}
.logos__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.logos__label h4 {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-2);
  text-transform: uppercase;
  font-weight: 500;
}
.logos__label a {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-1);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logos__label a:hover { color: var(--accent); }
.logos__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-slot {
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  font-family: var(--font-en-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0.05em;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.4s, color 0.4s;
  font-style: italic;
}
.logo-slot:last-child { border-right: 0; }
.logo-slot:hover { opacity: 1; color: var(--ink-0); }
.logo-slot .mark {
  font-family: var(--font-en);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}
.logo-slot .mark-small {
  font-family: var(--font-en);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
}

/* ===========================================
   SERVICES
   =========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 44px 36px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.5s var(--ease-smooth);
  min-height: 340px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.service:hover { background: var(--bg-1); }
.service__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service__icon {
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-0);
}
.service__title {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink-0);
  margin-bottom: 6px;
}
.service__title-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.service__desc {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.95;
  margin-bottom: 20px;
  flex: 1;
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.service__tags span {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-weight: 500;
}

/* ===========================================
   WHY ME
   =========================================== */
.why {
  background: var(--bg-1);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.why-card {
  padding: 56px 48px 64px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.why-card__num {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: 88px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 36px;
}
.why-card__title {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-0);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.why-card__desc {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  line-height: 2;
  color: var(--ink-1);
}

/* ===========================================
   PROCESS
   =========================================== */
.process-scroller {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
}
.process-scroller::-webkit-scrollbar { display: none; }

.process-track {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  min-width: min-content;
}
.process-step {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
  position: relative;
  min-height: 300px;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.process-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-2);
  margin-bottom: 20px;
  font-weight: 500;
}
.process-step__title {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink-0);
}
.process-step__title-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}
.process-step__desc {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.95;
}

.process-progress {
  margin-top: 32px;
  height: 1px;
  background: var(--line);
  position: relative;
  max-width: 600px;
}
.process-progress__bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 16%;
  background: var(--accent);
  transition: width 0.3s;
}
.process-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  max-width: 600px;
}

/* ===========================================
   ABOUT
   =========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.about__portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
}
.about__portrait {
  position: absolute; inset: 0;
  background-image: url("assets/portrait.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 1.6s var(--ease-cine);
}
.about__portrait-wrap:hover .about__portrait { transform: scale(1.03); }
.about__portrait-tag {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.95);
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.3);
  z-index: 2;
  backdrop-filter: blur(4px);
}
.about__portrait-caption {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  color: rgba(255,255,255,0.95);
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.28);
  display: flex;
  justify-content: space-between;
}
.about__portrait-caption .code {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
}

.about__text {}
.about__name-en {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.about__name-en .accent { font-style: italic; color: var(--accent); }
.about__name-jp {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.24em;
  color: var(--ink-1);
  margin-bottom: 32px;
}
.about__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.about__roles span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-1);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-weight: 500;
}
.about__roles span:first-child {
  background: var(--ink-0);
  color: var(--paper);
  border-color: var(--ink-0);
}
.about__bio p {
  font-family: var(--font-jp-sans);
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink-1);
  margin-bottom: 20px;
}
.about__quote {
  margin-top: 40px;
  padding: 28px 32px;
  border-left: 1px solid var(--accent);
  background: var(--bg-1);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-0);
  letter-spacing: 0.04em;
}

/* ===========================================
   TOOLS
   =========================================== */
.tools {
  background: var(--bg-1);
}
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.tools-col__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.tools-col__header h3 {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-0);
}
.tools-col__header .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
}
.tool-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}
.tool-item:last-child { border-bottom: 0; }
.tool-item:hover { padding-left: 10px; }
.tool-item__mark {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-0);
  background: var(--paper);
  letter-spacing: 0.02em;
}
.tool-item__body h4 {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  color: var(--ink-0);
}
.tool-item__body p {
  font-family: var(--font-jp-sans);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
}
.tool-item__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.tools-add {
  margin-top: 40px;
  text-align: right;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tools-add a {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
  text-transform: uppercase;
}

/* ===========================================
   TESTIMONIALS
   =========================================== */
.testi-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.testi-track {
  overflow: hidden;
  position: relative;
}
.testi-list {
  display: flex;
  transition: transform 0.9s var(--ease-cine);
}
.testi-card {
  flex: 0 0 100%;
  padding: 40px clamp(20px, 5vw, 60px);
  text-align: center;
}
.testi-card__mark {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: 80px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 20px;
  opacity: 0.6;
}
.testi-card__body {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 2;
  color: var(--ink-0);
  letter-spacing: 0.06em;
  max-width: 780px;
  margin: 0 auto 32px;
}
.testi-card__meta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  min-width: 260px;
}
.testi-card__name {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: 0.08em;
}
.testi-card__name-en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}
.testi-card__co {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-top: 10px;
  font-weight: 500;
}
.testi-card__project {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-top: 6px;
}

.testi-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.testi-nav button.arrow {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink-1);
  transition: all 0.3s;
  font-size: 14px;
}
.testi-nav button.arrow:hover {
  background: var(--ink-0);
  color: var(--paper);
  border-color: var(--ink-0);
}
.testi-dots {
  display: flex;
  gap: 8px;
}
.testi-dots button {
  width: 28px; height: 1px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  transition: background 0.3s;
}
.testi-dots button.active { background: var(--accent); }

/* ===========================================
   CONTACT + QR
   =========================================== */
.contact-lead {
  max-width: 860px;
  margin-bottom: 72px;
}
.contact-lead__catch {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.55;
  color: var(--ink-0);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.contact-lead__desc {
  font-family: var(--font-jp-sans);
  font-size: 14.5px;
  color: var(--ink-1);
  line-height: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field {
  margin-bottom: 24px;
  position: relative;
}
.form-field label {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-field label .jp {
  font-family: var(--font-jp-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: none;
  margin-left: 10px;
  font-weight: 400;
}
.form-field label .req { color: var(--accent); margin-left: 4px; }
.form-field label .opt {
  color: var(--ink-3);
  margin-left: 8px;
  font-size: 9px;
  font-family: var(--font-en);
  letter-spacing: 0.2em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-family: var(--font-jp-sans);
  font-size: 15px;
  color: var(--ink-0);
  outline: none;
  transition: border-color 0.3s;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-4);
  font-weight: 300;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236a6862' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.form-field select option { background: var(--paper); color: var(--ink-0); }
.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: var(--danger);
}
.form-field .error-msg {
  display: none;
  color: var(--danger);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 6px;
  font-family: var(--font-jp-sans);
}
.form-field.error .error-msg { display: block; }

.form-submit {
  margin-top: 20px;
  padding: 22px 40px;
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.4s var(--ease-cine), background 0.4s;
  border: 0;
  cursor: pointer;
}
.form-submit:hover {
  background: var(--accent);
  transform: translateX(4px);
}
.form-submit .jp {
  font-family: var(--font-jp);
  letter-spacing: 0.14em;
  font-weight: 500;
}
.form-submit::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 300;
}

.contact-side {
  padding: 36px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.contact-side h4 {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.contact-side .info-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.contact-side .info-block:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.contact-side .info-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-side .info-value {
  font-family: var(--font-jp-sans);
  font-size: 14px;
  color: var(--ink-0);
  line-height: 1.7;
}
.contact-side .info-value.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 13px;
}

/* QR Block */
.qr-block {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 56px;
  align-items: center;
}
.qr-block__text h3 {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: 44px;
  color: var(--ink-0);
  line-height: 1;
  margin-bottom: 8px;
}
.qr-block__text h3 .accent { font-style: italic; color: var(--accent); }
.qr-block__text .jp {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.qr-block__text p {
  font-family: var(--font-jp-sans);
  font-size: 13.5px;
  color: var(--ink-1);
  line-height: 1.95;
  max-width: 400px;
}

.qr-code {
  width: 176px; height: 176px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
}
.qr-code::before {
  content: "SCAN";
  position: absolute;
  top: -1px; left: -1px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.28em;
  font-weight: 600;
}
.qr-code svg { width: 100%; height: 100%; display: block; }

.phone-mock {
  width: 148px;
  aspect-ratio: 9 / 19.5;
  border: 8px solid #1a1a1a;
  border-radius: 24px;
  background: #000;
  padding: 5px;
  position: relative;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.25);
}
.phone-mock::before {
  content: "";
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 5px;
  background: #0a0a0a;
  border-radius: 0 0 8px 8px;
  z-index: 3;
}
.phone-mock__screen {
  width: 100%; height: 100%;
  border-radius: 16px;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.15) 30%,
      rgba(0,0,0,0.15) 50%,
      rgba(0,0,0,0.6) 100%),
    url("assets/hero-poster.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.phone-mock__screen::before {
  content: "SHUNGO TORII";
  position: absolute;
  top: 22px; left: 10px;
  font-family: var(--font-en);
  font-size: 6px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.phone-mock__screen::after {
  content: "VIDEO CREATIVE\a DIRECTOR";
  white-space: pre;
  position: absolute;
  bottom: 24px; left: 10px;
  font-family: var(--font-en-display);
  font-size: 8px;
  line-height: 1.1;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}

/* Form success screen */
.form-success {
  display: none;
  padding: 60px 40px;
  border: 1px solid var(--accent);
  text-align: center;
  background: var(--paper);
}
.form-success.show { display: block; }
.form-success .mark {
  width: 60px; height: 60px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-size: 26px;
  margin-bottom: 24px;
}
.form-success h3 {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: 36px;
  margin-bottom: 12px;
}
.form-success .jp {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--ink-1);
  line-height: 1.95;
  margin-bottom: 24px;
}
.form-success button {
  padding: 12px 24px;
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.form-success button:hover {
  color: var(--ink-0);
  border-color: var(--ink-0);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  padding: 96px 0 36px;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer__brand {}
.footer__brand .name-en {
  font-family: var(--font-en-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--ink-0);
}
.footer__brand .name-en .accent { font-style: italic; color: var(--accent); }
.footer__brand .name-jp {
  font-family: var(--font-jp);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--ink-1);
  margin-bottom: 20px;
}
.footer__brand .title {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 260px;
  font-weight: 500;
}
.footer h5 {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer li {
  margin-bottom: 12px;
}
.footer li a {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-1);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer li a:hover { color: var(--accent); }
.footer li a .ext {
  font-size: 9px;
  color: var(--ink-3);
  transition: transform 0.3s;
}
.footer li a:hover .ext { transform: translate(2px, -2px); }

.footer__bottom {
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1200px) {
  .hero__main { grid-template-columns: 1fr; gap: 32px; }
  .hero__text { padding-right: 0; }
  .hero__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .logos__row { grid-template-columns: repeat(3, 1fr); }
  .logo-slot:nth-child(3n) { border-right: 0; }
  .logo-slot:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__sidebar { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .qr-block { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-card:nth-child(6n+1),
  .work-card:nth-child(6n+2),
  .work-card:nth-child(6n+3),
  .work-card:nth-child(6n+4),
  .work-card:nth-child(6n+5),
  .work-card:nth-child(6n+6) { grid-column: span 6; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header { padding: 14px var(--gutter); }
  .hero__inner { padding: 100px var(--gutter) 30px; gap: 32px; }
  .hero__topbar { display: none; }
  .hero__meta-right { display: none; }
  .works-grid { grid-template-columns: 1fr; gap: 20px; }
  .work-card { grid-column: span 12 !important; aspect-ratio: 16 / 11; }
  .work-card__meta { left: 20px; right: 20px; bottom: 20px; }
  .work-card__idx { left: 20px; top: 16px; }
  .work-card__duration { right: 20px; top: 16px; }
  .services-grid,
  .achievements-grid,
  .why-grid { grid-template-columns: 1fr; }
  .stat { padding: 36px 24px; }
  .service { padding: 32px 24px 36px; min-height: auto; }
  .why-card { padding: 40px 28px 48px; min-height: auto; }
  .logos__row { grid-template-columns: repeat(2, 1fr); }
  .logo-slot:nth-child(2n) { border-right: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .right { align-items: flex-start; }
  .modal { padding: 20px 0; align-items: flex-start; }
  .modal__panel { margin: 0; }
  .modal__body { padding: 28px 20px 40px; }
  .modal__top { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .qr-block { display: flex; flex-direction: column; align-items: flex-start; }
  .phone-mock { display: none; }
  .about__portrait-wrap { aspect-ratio: 3 / 4; }
  .about__quote { padding: 20px 24px; font-size: 15px; }
  .showreel__player { aspect-ratio: 16 / 9; }
  .showreel__play { width: 80px; height: 80px; }
  .showreel__play::after {
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }
  .showreel__label { font-size: 30px; }
  .process-step { flex: 0 0 260px; }
}
