/* ═══════════════════════════════════════════════
   TORELIO — Official Site
   Restraint · Evidence · Craft
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0F172A;
  --navy-deep: #070B14;
  --navy-mid: #1E293B;
  --gold: #C8A35A;
  --gold-bright: #D4B06E;
  --gold-soft: rgba(200, 163, 90, 0.14);
  --gold-ink: #9A7B3C;
  --white: #FFFFFF;
  --paper: #F7F6F3;
  --ink: #0F172A;
  --ink-soft: #4A5568;
  --muted: rgba(255, 255, 255, 0.58);
  --muted-dim: rgba(255, 255, 255, 0.46); /* WCAG AA: >=4.5:1 on --navy and --navy-deep */
  --line: rgba(255, 255, 255, 0.09);
  --line-dark: rgba(15, 23, 42, 0.1);

  --font-display: 'Syne', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-accent: 'Instrument Serif', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(96px, 13vw, 168px);
  --section-y-tight: clamp(72px, 9vw, 112px);
  --section-y-loose: clamp(128px, 17vw, 208px);
  --radius: 2px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--muted);
  line-height: 1.75;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: normal; color: var(--gold); }
strong { font-weight: 600; color: var(--white); }
abbr { text-decoration: none; color: var(--gold); }

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

.hide-mobile { display: inline; }
@media (max-width: 768px) { .hide-mobile { display: none; } }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10050;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--white); outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ─── Grain ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.5s var(--ease), border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 901;
  color: var(--gold);
}
.nav__mark { display: flex; color: var(--gold); }
.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--white);
}
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--cta {
  margin-left: 12px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(200, 163, 90, 0.4);
  color: var(--gold) !important;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
}

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  z-index: 901;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__burger.is-active span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-active span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(7, 11, 20, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open[hidden] { display: flex; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  padding: 6px 0;
}
.mobile-menu__link--accent { color: var(--gold); }
.mobile-menu__mail {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease), gap 0.35s var(--ease);
}
.btn__arrow {
  font-size: 14px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover { background: var(--gold-bright); }
.btn--text {
  padding-left: 4px;
  padding-right: 4px;
  color: var(--muted);
  background: transparent;
  letter-spacing: 0.04em;
  position: relative;
}
.btn--text::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.35s var(--ease);
  transform-origin: left;
}
.btn--text:hover { color: var(--white); }
.btn--text:hover::after { opacity: 1; }
.btn--full { width: 100%; }

/* ─── Shared type ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: clamp(24px, 3.5vw, 36px);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow--on-light { color: var(--gold-ink); }
.eyebrow--on-light::before { background: var(--gold-ink); }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line-inner { display: block; will-change: transform; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.06);
  will-change: transform;
}
.hero__glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(560px circle at 30% 62%, rgba(200, 163, 90, 0.20), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.9;
  will-change: transform;
  pointer-events: none;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7,11,20,0.35) 0%,
      rgba(7,11,20,0.28) 28%,
      rgba(7,11,20,0.55) 55%,
      rgba(7,11,20,0.92) 82%,
      rgba(7,11,20,0.98) 100%),
    linear-gradient(90deg,
      rgba(7,11,20,0.55) 0%,
      rgba(7,11,20,0.15) 50%,
      transparent 78%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 0;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 13px;
  margin-bottom: clamp(22px, 3.2vw, 34px);
  border: 1px solid rgba(200, 163, 90, 0.3);
  border-radius: 999px;
  background: rgba(200, 163, 90, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}
.hero__status-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__brand {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  line-height: 0.92;
}
.hero__brand-mask {
  display: block;
  overflow: hidden;
}
.hero__brand-inner {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.2vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero__headline {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: clamp(20px, 2.8vw, 28px);
  max-width: 15em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: inline-block; }

.hero__sub {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 300;
  line-height: 1.95;
  color: var(--muted);
  max-width: 28em;
  margin-bottom: clamp(36px, 4.5vw, 48px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-bottom: clamp(48px, 8vw, 80px);
}
.hero__foot {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero__locale {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding: 8px 0;
  transition: color 0.3s;
}
.hero__scroll-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--muted-dim);
  transition: width 0.4s var(--ease), background 0.3s;
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll:hover .hero__scroll-line {
  width: 48px;
  background: var(--gold);
}

/* ═══ MANIFESTO ═══ */
.manifesto {
  background: var(--paper);
  color: var(--ink-soft);
  padding: var(--section-y-loose) 0 var(--section-y);
}
.manifesto .eyebrow { margin-bottom: clamp(28px, 4vw, 44px); }
.manifesto__title {
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: clamp(56px, 9vw, 96px);
  max-width: 11em;
}
.manifesto__title em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-ink);
  font-weight: 400;
}
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
  padding-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line-dark);
}
.manifesto__lead {
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 32em;
}
.manifesto__points { display: flex; flex-direction: column; gap: 0; }
.manifesto__points li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}
.manifesto__points li:first-child { padding-top: 0; }
.manifesto__points li:last-child { border-bottom: 0; padding-bottom: 0; }
.manifesto__points strong {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding-top: 2px;
}
.manifesto__points span {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ═══ SERVICES ═══ */
.services {
  background: var(--navy);
  padding: var(--section-y) 0;
}
.services__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.services__title {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--white);
  max-width: 10em;
}
.services__lead {
  max-width: 20em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  text-align: right;
}
.services__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 20px;
  padding: clamp(32px, 4.5vw, 48px) clamp(20px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.4s var(--ease);
  position: relative;
}
.service:nth-child(2n) { border-right: 0; }
.service::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.4s;
}
.service:hover {
  background: rgba(255, 255, 255, 0.018);
}
.service:hover::before { opacity: 1; }
.service__num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 6px;
}
.service__name {
  font-size: clamp(1.2rem, 2.1vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service__desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 32em;
}
.service__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  line-height: 1.6;
}

/* ═══ WORK ═══ */
.work {
  background: var(--navy-deep);
  padding: var(--section-y) 0 var(--section-y-tight);
  overflow: hidden;
}
.work__intro { margin-bottom: clamp(40px, 6vw, 64px); }
.work__intro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.work__title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--white);
}
.work__note {
  max-width: 20em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-dim);
  text-align: right;
  letter-spacing: 0.02em;
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 56px) clamp(28px, 4vw, 48px);
}

.case__visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #0A0F1A;
  margin-bottom: 28px;
  aspect-ratio: 16 / 10;
  transition: border-color 0.45s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.case:hover .case__visual {
  border-color: rgba(200, 163, 90, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

.case__meta { padding: 0 2px; }
.case__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.case__index {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  transition: color 0.3s;
}
.case:hover .case__index { color: var(--gold-bright); }
.case__field {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}
.case__tag {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.case__name {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 20px;
}

.case__brief {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case__brief-row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
}
.case__brief-row dt {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--gold);
  padding-top: 1px;
}
.case__brief-row dd {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* Portfolio covers — art-directed, not screenshots.
   Each case carries a formal Japanese numeral watermark (壱弐参四)
   in place of a faked UI, so the abstraction reads as intentional. */
.ph {
  height: 100%;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.ph__kanji {
  position: absolute;
  right: clamp(-8px, -1vw, 4px);
  bottom: clamp(-30px, -4vw, -18px);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(9rem, 17vw, 13rem);
  font-weight: 200;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
  z-index: 0;
  transition: color 0.6s var(--ease), transform 0.6s var(--ease);
}
.case:hover .ph__kanji { transform: translateY(-6px); }
.ph__top,
.ph__mid { position: relative; z-index: 1; }
.ph__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ph__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.ph__year {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.28);
}
.ph__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
}
.ph__mid { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }

.ph--finance {
  background:
    radial-gradient(ellipse 60% 50% at 82% 0%, rgba(200,163,90,0.16), transparent 60%),
    linear-gradient(180deg, #16233A 0%, #0B1220 100%);
}
.ph--finance .ph__bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.4vw, 14px);
  height: 30%;
}
.ph--finance .ph__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(200,163,90,0.55), rgba(200,163,90,0.08));
  transform: scaleY(0.7);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.case:hover .ph--finance .ph__bars span { transform: scaleY(1); }
.ph--finance .ph__bars span:nth-child(1) { transition-delay: 0.02s; }
.ph--finance .ph__bars span:nth-child(2) { transition-delay: 0.07s; }
.ph--finance .ph__bars span:nth-child(3) { transition-delay: 0.12s; }
.ph--finance .ph__bars span:nth-child(4) { transition-delay: 0.17s; }
.ph--finance .ph__bars span:nth-child(5) { transition-delay: 0.22s; }

.ph--luxury {
  background:
    radial-gradient(ellipse at 24% 30%, rgba(200,163,90,0.22), transparent 55%),
    linear-gradient(180deg, #2C2520 0%, #12100D 100%);
}
.ph--luxury .ph__kanji { color: rgba(200,163,90,0.09); }
.ph--luxury .ph__frame {
  position: relative;
  height: 46%;
  border: 1px solid rgba(200,163,90,0.32);
  border-radius: 1px;
}
.ph--luxury .ph__frame i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 34%;
  background: rgba(200,163,90,0.4);
  transform: translate(-50%, -50%);
}
.ph--luxury .ph__frame::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 1px;
  background: rgba(200,163,90,0.4);
  transform: translate(-50%, -50%);
}

.ph--saas {
  background: linear-gradient(160deg, #121A28 0%, #0A0F18 100%);
}
.ph--saas .ph__panels {
  display: flex;
  gap: 12px;
  height: 44%;
}
.ph--saas .ph__panels span {
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.5s var(--ease);
}
.ph--saas .ph__panels span:nth-child(2) { transform: translateY(-10%); }
.case:hover .ph--saas .ph__panels span:nth-child(1) { transform: translateY(-6%); }
.case:hover .ph--saas .ph__panels span:nth-child(2) { transform: translateY(-16%); }
.case:hover .ph--saas .ph__panels span:nth-child(3) { transform: translateY(-2%); }

.ph--health {
  background: linear-gradient(180deg, #F4F7FB 0%, #E6EDF5 100%);
}
.ph--health .ph__label,
.ph--health .ph__year { color: rgba(15,23,42,0.32); }
.ph--health .ph__title { color: #0F172A; }
.ph--health .ph__kanji { color: rgba(15,23,42,0.045); }
.ph--health .ph__soft {
  position: relative;
  height: 46%;
  width: 46%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), rgba(200,163,90,0.14) 70%, transparent 72%);
  filter: blur(1px);
}

.work__cta-band {
  margin-top: clamp(64px, 9vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.work__cta-band p {
  font-size: 16px;
  color: var(--muted);
  max-width: 26em;
  line-height: 1.7;
}

/* ═══ VOICE ═══ */
.voice-section {
  background: var(--navy);
  padding: var(--section-y-tight) 0 var(--section-y);
  border-top: 1px solid var(--line);
}
.voice-section__title {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: clamp(14px, 2vw, 18px);
  line-height: 1.35;
  max-width: 16em;
}
.voice-section__note {
  max-width: 30em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-dim);
  letter-spacing: 0.02em;
  margin-bottom: clamp(48px, 7vw, 72px);
}

.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.voice {
  margin: 0;
  padding: clamp(32px, 4vw, 44px) clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 280px;
}
.voice:last-child { border-right: 0; }
.voice blockquote { margin: 0; }
.voice blockquote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
}
.voice blockquote p::before {
  content: '「';
  color: var(--gold);
  font-style: normal;
  margin-right: 2px;
}
.voice blockquote p::after {
  content: '」';
  color: var(--gold);
  font-style: normal;
  margin-left: 2px;
}
.voice figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.voice__who {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.voice__role {
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.voice__org {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
}

/* ═══ METHOD ═══ */
.method {
  background: var(--paper);
  color: var(--ink-soft);
  padding: var(--section-y) 0;
}
.method__title {
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: clamp(56px, 8vw, 88px);
}
.method__acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.method__act {
  padding: clamp(36px, 5vw, 56px) clamp(24px, 3.5vw, 40px);
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.method__act:last-child { border-right: 0; }
.method__num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 32px;
  color: var(--gold-ink);
  line-height: 1;
}
.method__act h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.method__act p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ═══ PROOF ═══ */
.proof {
  background: var(--navy);
  padding: var(--section-y) 0;
}
.proof__title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: clamp(20px, 3vw, 28px);
  max-width: 14em;
}
.proof__lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.proof__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: clamp(48px, 7vw, 72px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.proof__pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.proof__pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.proof__pillar:hover::before { width: 100%; }
.proof__pillar-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.proof__pillar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.proof__pillar-body {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-dim);
  max-width: 22em;
}
.proof__quote {
  max-width: 34em;
  border: none;
}
.proof__quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 24px;
}
.proof__quote cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}

/* ═══ ENGAGE ═══ */
.engage {
  background: var(--navy-deep);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.engage__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "copy aside"
    "steps aside";
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.engage__copy { grid-area: copy; }
.engage__title {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
}
.engage__text {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  max-width: 32em;
}
.engage__steps {
  grid-area: steps;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.engage__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.engage__step span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.engage__step p { font-size: 15px; color: var(--muted); }
.engage__step strong { color: var(--white); font-weight: 500; }

/* Direction-memo artifact — a tangible glimpse of what step 02 delivers.
   Styled as an actual one-page memo, not a UI mockup. */
.memo-preview {
  position: relative;
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(24px, 3.2vw, 32px) clamp(24px, 3.4vw, 34px);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.memo-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.memo-preview::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent rgba(15, 23, 42, 0.08) transparent transparent;
}
.memo-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}
.memo-preview__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.memo-preview__tag {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1px solid rgba(154, 123, 60, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}
.memo-preview__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.memo-preview__row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 14px;
}
.memo-preview__row dt {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--gold-ink);
  padding-top: 1px;
}
.memo-preview__row dd {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.memo-preview__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.4);
}

.engage__aside {
  grid-area: aside;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}
.engage__aside h3 {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
  margin-bottom: 8px;
  font-weight: 500;
  padding-top: 24px;
}
.engage__faq {
  border-bottom: 1px solid var(--line);
}
.engage__faq:last-child { border-bottom: 0; }
.engage__faq summary {
  padding: 18px 0;
  font-size: 14px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.3s;
}
.engage__faq summary:hover { color: var(--gold); }
.engage__faq summary::-webkit-details-marker { display: none; }
.engage__faq summary::after {
  content: '+';
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.engage__faq[open] summary::after { content: '−'; }
.engage__faq p {
  padding: 0 0 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

/* ═══ CONTACT ═══ */
.contact {
  background: var(--navy);
  padding: var(--section-y-loose) 0 var(--section-y);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.contact__title {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
}
.contact__sub {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.contact__sub a {
  color: var(--gold);
  border-bottom: 1px solid rgba(200,163,90,0.35);
  transition: border-color 0.3s;
}
.contact__sub a:hover { border-bottom-color: var(--gold); }
.contact__sep { color: var(--muted-dim); }
.contact__promise {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.contact__form { display: flex; flex-direction: column; gap: 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-bottom-color: rgba(255,255,255,0.22); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: rgba(200,163,90,0.65);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8A35A' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 28px;
}
.form-field select option { background: var(--navy); color: var(--white); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note {
  min-height: 1.2em;
  font-size: 13px;
  color: var(--gold);
}
.form-note.is-error { color: #F87171; }
.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-bottom-color: rgba(248, 113, 113, 0.55);
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: clamp(72px, 9vw, 104px) 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-bottom: clamp(56px, 7vw, 80px);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer__mail {
  font-size: 14px;
  color: var(--gold);
  border-bottom: 1px solid rgba(200,163,90,0.3);
  transition: border-color 0.3s;
}
.footer__mail:hover { border-bottom-color: var(--gold); }
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer__col h3 {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-dim);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col a,
.footer__col p {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--white); }
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  text-align: center;
  margin-bottom: 48px;
  user-select: none;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
}
.footer__legal { display: flex; gap: 28px; }
.footer__legal a:hover { color: var(--white); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }

  .manifesto__grid,
  .contact__inner,
  .engage__inner,
  .footer__top,
  .services__list,
  .voices {
    grid-template-columns: 1fr;
  }
  .service { border-right: 0; }
  .services__lead { text-align: left; }
  .voice {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }
  .voice:last-child { border-bottom: 0; }
  .engage__inner {
    grid-template-areas:
      "copy"
      "steps"
      "aside";
  }
  .method__acts { grid-template-columns: 1fr; }
  .method__act {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .method__act:last-child { border-bottom: 0; }
  .work__intro-row { flex-direction: column; align-items: flex-start; }
  .work__note { text-align: left; }
  .proof__pillars { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn--primary { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }
  .hero__brand-inner {
    font-size: clamp(2rem, 11vw, 2.75rem);
    letter-spacing: -0.03em;
  }
  .hero__headline { font-size: clamp(1.55rem, 7.5vw, 2rem); line-height: 1.36; }

  .work__grid { grid-template-columns: 1fr; gap: 40px; }
  .case:hover .case__visual { transform: none; }
  .case__brief-row { grid-template-columns: 1fr; gap: 4px; }
  .case__tag { margin-left: 0; }
  .case__top { flex-wrap: wrap; gap: 8px 14px; }

  .memo-preview__row { grid-template-columns: 1fr; gap: 4px; }
  .memo-preview__foot { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__brand-inner,
  .hero__line-inner,
  .line-inner { transform: none !important; }
}
