:root {
  --ground: #064B35;
  --ink: #F4F0E7;
  --rule: color-mix(in srgb, var(--ink) 18%, transparent);
  --muted: color-mix(in srgb, var(--ink) 78%, transparent);
  --paper-rule: color-mix(in srgb, var(--ground) 18%, transparent);
  --paper-muted: color-mix(in srgb, var(--ground) 78%, transparent);
  --serif: "Bodoni Moda", "Bodoni MT", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--ground); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-line: underline; }
a:hover { text-underline-offset: .48em; }
a { transition: text-underline-offset .25s ease, transform .25s ease; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.paper :focus-visible { outline-color: var(--ground); }
img { display: block; width: 100%; height: auto; }
p, h1, h2, figure { margin: 0; }
h1, h2 { font-family: var(--sans); font-weight: 400; }
p + p { margin-top: 22px; }
strong { font-weight: 600; }
[lang="ja"] { font-family: "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
html:lang(ja) { --sans: "Inter", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
html:lang(ja) .hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
.shell { width: min(100% - 48px, 1248px); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--rule); background: var(--ground); }
.topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 64px; }
.topbar-brand { font-size: 10px; font-weight: 600; letter-spacing: .13em; white-space: nowrap; }
.topbar a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; white-space: nowrap; padding-block: 8px; }
.topbar-brand { grid-column: 1; grid-row: 1; align-self: end; }
.topbar-email { grid-column: 1; grid-row: 2; justify-self: start; }
.language-nav { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 3px; }
.language-nav a, .language-nav span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 12px; line-height: 1; }
.language-nav [aria-current="page"] { background: var(--ink); color: var(--ground); }
.language-nav a { text-underline-offset: .3em; }

.hero { position: relative; padding-block: 10px 48px; }
.hero-copy { max-width: 600px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; }
.wordmark-main { font-family: var(--serif); font-size: clamp(49px, 14vw, 76px); font-weight: 400; font-optical-sizing: none; font-variation-settings: "opsz" 24; line-height: 1; letter-spacing: .14em; margin-right: -.14em; }
.wordmark-sub { font-size: 10px; letter-spacing: .56em; line-height: 1; margin-right: -.56em; margin-top: 13px; }
.hero-label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 9px; letter-spacing: .12em; line-height: 1.5; margin-top: 16px; }
.hero h1 { max-width: 600px; font-size: clamp(27px, 7.2vw, 38px); line-height: 1.18; letter-spacing: -.04em; margin-top: 20px; text-wrap: balance; }
.hero-intro { color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 15px; max-width: 480px; }
.status-list { margin-top: 20px; border-top: 1px solid var(--rule); }
.status { display: grid; grid-template-columns: 102px minmax(0, 1fr); align-items: baseline; gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--rule); }
.status-label { font-size: 10px; letter-spacing: .05em; line-height: 1.65; font-weight: 600; }
.status p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.hero-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.hero-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
.hero-art { position: relative; margin-top: 40px; padding: 12px; border: 1px solid var(--rule); }
.hero-art::before, .hero-art::after { content: ""; position: absolute; width: 20px; height: 20px; pointer-events: none; }
.hero-art::before { top: -1px; left: -1px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.hero-art::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.photo-window { overflow: hidden; background: var(--ink); }
.hero-art .photo-window { aspect-ratio: 4 / 5; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.film-hero { isolation: isolate; }
.film-hero .hero-copy { position: relative; z-index: 2; }
.hero-art.film { border: 0; padding: 0; overflow: hidden; animation: none; }
.hero-art.film::before, .hero-art.film::after { content: none; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 676; object-fit: contain; background: var(--ground); }
.film-credit { position: absolute; left: 16px; bottom: 22px; z-index: 3; margin: 0; padding: 5px 8px; color: var(--ink); background: var(--ground); font-size: 10px; line-height: 1; letter-spacing: .16em; pointer-events: none; }
.film-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 2px; background: var(--ground); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; }
.film-toggle[hidden] { display: none; }
.film-toggle:hover { border-color: var(--ink); }
.film video[controls] ~ .film-credit { top: 16px; bottom: auto; }
.paper { background: var(--ink); color: var(--ground); }
.paper ::selection { background: var(--ground); color: var(--ink); }
.intro-section { padding-top: 60px; padding-bottom: 34px; }
.section-heading { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 26px; }
.prose { max-width: 620px; }
.intro-lead { font-family: var(--sans); font-size: 28px; font-weight: 400; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 25px; }
.intro-body { color: var(--paper-muted); }
.aside-section { padding-block: 0 56px; }
.aside-section .section-inner { border-top: 1px solid var(--paper-rule); padding-top: 24px; }
.aside-section h2 { font-size: 21px; margin-bottom: 12px; color: var(--paper-muted); }
.aside-section p { max-width: 620px; font-size: 15px; line-height: 1.7; color: var(--paper-muted); }
.work-section { padding-block: 48px 56px; border-top: 1px solid var(--paper-rule); }
.work-title { display: flex; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--paper-rule); padding-bottom: 26px; margin-bottom: 26px; }
.work-title h2 { margin-bottom: 22px; }
.work-number { font-family: var(--sans); font-weight: 400; font-size: clamp(46px, 13vw, 70px); line-height: 1.1; letter-spacing: -.055em; }
.work-years { display: block; margin-top: 16px; font-size: 11px; letter-spacing: .1em; }
.work-copy p { max-width: 620px; }
.tour-photo { margin-bottom: 28px; }
.tour-photo .photo-window { aspect-ratio: auto; }
.tour-photo img { height: auto; }
.source-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-size: 14px; line-height: 1.6; }
.work-role { margin-top: 26px; color: var(--paper-muted); }
.maker-note { border-top: 1px solid var(--paper-rule); padding-top: 26px; margin-top: 32px; }
.maker-note p { font-size: 15px; line-height: 1.7; color: var(--paper-muted); }
.maker-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-family: var(--sans); font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.director-section { padding-block: 0 60px; }
.director-photo { margin-bottom: 30px; }
.director-photo .photo-window { aspect-ratio: 4 / 3; }
.director-photo img { height: 100%; object-fit: cover; }
.director-copy { border-top: 1px solid var(--paper-rule); padding-top: 26px; }
.director-copy p { font-size: 15px; color: var(--paper-muted); }
.director-copy .director-name { font-size: 16px; color: var(--ground); }
.principles { padding-block: 62px; }
.principle-grid { display: grid; gap: 30px; }
.principle-grid p { color: var(--muted); }
.principle-grid strong { display: block; font-family: var(--sans); font-size: 30px; font-weight: 400; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); margin-bottom: 17px; }
.company-section { padding-block: 0 54px; }
.company-section .section-inner { border-top: 1px solid var(--rule); padding-top: 36px; }
.company-details { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.8; }
.company-details li { margin-bottom: 6px; overflow-wrap: anywhere; }
.company-details li:first-child { font-size: 17px; margin-bottom: 3px; }
.company-details li[lang="ja"] { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.registry-note { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 470px; margin-top: 24px; }
.contact-section { border-top: 1px solid var(--rule); padding-block: 48px 64px; }
.contact-section h2 { font-size: 23px; margin-bottom: 26px; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: clamp(24px, 7vw, 48px); letter-spacing: -.04em; line-height: 1.2; text-underline-offset: .2em; max-width: 100%; }
.contact-note { font-size: 14px; color: var(--muted); max-width: 440px; margin-top: 30px; }
.footer { border-top: 1px solid var(--rule); padding-block: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .35em; }
.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.not-found h1 { font-size: 44px; margin-block: 64px 24px; }
.not-found a { font-size: 15px; }

@media (min-width: 760px) {
  .shell { width: min(100% - 96px, 1248px); }
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; min-height: 64px; }
  .topbar-brand, .topbar-email, .language-nav { grid-column: auto; grid-row: 1; align-self: center; }
  .topbar-brand { font-size: 11px; letter-spacing: .18em; }
  .topbar a { font-size: 12px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; padding-block: 54px 70px; }
  .wordmark-main { font-size: clamp(64px, 7.2vw, 104px); }
  .wordmark-sub { font-size: 13px; letter-spacing: .64em; margin-top: 17px; }
  .hero-label { font-size: 9px; margin-top: 26px; }
  .hero h1 { font-size: clamp(32px, 3.4vw, 48px); margin-top: 34px; line-height: 1.14; }
  .hero-intro { font-size: 16px; margin-top: 23px; }
  .status-list { margin-top: 26px; }
  .status { grid-template-columns: 130px minmax(0, 1fr); padding-block: 15px; }
  .status-label { font-size: 10px; }
  .status p { font-size: 14px; }
  .hero-links { margin-top: 24px; font-size: 13px; }
  .hero-art { margin: 0; padding: 18px; align-self: stretch; min-height: 0; display: flex; align-items: stretch; }
  .hero-art .photo-window { aspect-ratio: auto; width: 100%; }
  .hero-art img { min-height: 520px; }
  .intro-section { padding-top: 84px; padding-bottom: 42px; }
  .section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 70px; }
  .section-heading { font-size: 28px; max-width: 260px; }
  .intro-lead { font-size: clamp(30px, 3vw, 42px); line-height: 1.25; margin-bottom: 32px; }
  .aside-section { padding-bottom: 76px; }
  .aside-section .section-inner { padding-top: 30px; }
  .aside-section h2 { font-size: 22px; }
  .work-section { padding-block: 64px 70px; }
  .work-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 70px; align-items: start; padding-bottom: 42px; margin-bottom: 42px; }
  .work-title h2 { margin-top: 15px; }
  .work-number { font-size: clamp(58px, 6.4vw, 88px); }
  .work-years { font-size: 13px; margin-top: 20px; }
  .tour-photo { max-width: 640px; margin: 0 auto 36px; }
  .work-copy { min-width: 0; max-width: 640px; margin-inline: auto; }
  .work-role { margin-top: 30px; }
  .maker-note { margin-top: 30px; padding-top: 26px; }
  .maker-note p { font-size: 15px; }
  .maker-link { font-size: 26px; }
  .director-section { padding-bottom: 88px; }
  .director-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 60px; align-items: center; }
  .director-photo { margin: 0; }
  .director-photo .photo-window { aspect-ratio: 4 / 3; }
  .director-copy { padding-top: 28px; }
  .director-copy h2 { margin-bottom: 26px; }
  .director-copy p { font-size: 15px; }
  .principles { padding-block: 86px; }
  .principle-grid { grid-template-columns: 1fr; gap: 32px; }
  .principle-grid p { margin: 0; font-size: 16px; }
  .principle-grid strong { font-size: 34px; margin-bottom: 24px; }
  .company-section { padding-bottom: 70px; }
  .company-section .section-inner { padding-top: 46px; }
  .company-details { font-size: 14px; }
  .company-details li:first-child { font-size: 20px; }
  .registry-note { font-size: 14px; }
  .contact-section { padding-block: 70px 88px; }
  .contact-section h2 { margin-bottom: 0; font-size: 28px; }
  .contact-email { font-size: clamp(32px, 4.1vw, 56px); }
  .contact-note { font-size: 14px; }
  .footer { font-size: 11px; padding-block: 25px; }
}

html:lang(ja) body { font-family: "Inter", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; line-height: 1.85; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) .intro-lead, html:lang(ja) .work-number, html:lang(ja) .principle-grid strong { font-family: inherit; letter-spacing: .015em; }
html:lang(ja) .hero h1 { font-size: clamp(24px, 6.5vw, 38px); line-height: 1.55; text-wrap: pretty; }
html:lang(ja) .hero-intro { line-height: 1.85; }
html:lang(ja) .status { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
html:lang(ja) .status-label { font-size: 12px; letter-spacing: .04em; }
html:lang(ja) .status p { line-height: 1.7; }
html:lang(ja) .section-heading { font-size: 23px; line-height: 1.5; }
html:lang(ja) .intro-lead { font-size: clamp(24px, 3vw, 34px); line-height: 1.65; }
html:lang(ja) .work-number { font-size: clamp(42px, 6.4vw, 72px); }
html:lang(ja) .principle-grid strong { font-size: 28px; line-height: 1.5; }
html:lang(ja) .maker-note p, html:lang(ja) .director-copy p { line-height: 1.85; }

@media (min-width: 1024px) {
  .work-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
  .tour-photo { position: sticky; top: 104px; margin: 0; }
  .work-copy { margin: 0; }
  .principle-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero.film-hero { display: block; width: 100%; min-height: 0; padding: 0; }
  .hero-stage { position: relative; min-height: 760px; padding: 56px max(48px, calc((100% - 1248px) / 2)) 76px; isolation: isolate; }
  .film-hero .hero-copy { width: min(100%, 600px); }
  .hero-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 96%, transparent) max(648px, calc(50% - 24px)), color-mix(in srgb, var(--ground) 24%, transparent) 86%, color-mix(in srgb, var(--ground) 12%, transparent) 100%); }
  .hero-art.film { position: absolute; inset: 0; margin: 0; display: block; }
  .film video { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
  .film-credit { left: auto; right: 184px; bottom: 34px; font-size: 11px; }
  .film-toggle { right: 32px; bottom: 24px; }
  .film video[controls] ~ .film-credit { top: 24px; right: 32px; }
}

@media (min-width: 760px) and (max-width: 1023px) {
  .hero.film-hero { display: block; }
  .film-hero .hero-copy { max-width: 640px; margin-inline: auto; }
  .hero-art.film { max-width: 640px; margin: 40px auto 0; }
}

@media (hover: hover) and (pointer: fine) {
  .maker-link:hover, .contact-email:hover { transform: translateX(5px); }
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark { animation: arrive .95s cubic-bezier(.2,.7,.2,1) both; }
  .hero-label, .hero h1 { animation: arrive 1s .12s cubic-bezier(.2,.7,.2,1) both; }
  .hero-art { animation: frame-arrive 1.4s .1s cubic-bezier(.2,.7,.2,1) both; }
  .status, .hero-links { animation: settle .9s .22s cubic-bezier(.2,.7,.2,1) both; }
  .status:nth-child(2) { animation-delay: .32s; }
  .hero-links { animation-delay: .42s; }
  @supports (animation-timeline: scroll()) {
    .topbar::after {
      content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
      background: var(--ink); transform-origin: left;
      animation: reading-progress linear both; animation-timeline: scroll(root block);
    }
    @media (min-width: 1024px) {
      .film video:not([controls]) {
        animation: film-open linear both;
        animation-timeline: scroll(root block);
        animation-range: 0px 60svh;
        transform: none;
        object-position: 50% 50%;
      }
    }
    @media (min-width: 1024px) and (min-height: 900px) {
      .film-hero:has(video:not([controls])) { height: calc(160svh - 64px); }
      .film-hero:has(video:not([controls])) .hero-stage {
        position: sticky; top: 64px; height: calc(100svh - 64px); min-height: 0;
        overflow: clip;
      }
      .film-hero:has(video:not([controls])) .hero-copy {
        animation: copy-leave linear both;
        animation-timeline: scroll(root block);
        animation-range: 0px 60svh;
      }
      .film-hero:has(video:not([controls])) .status,
      .film-hero:has(video:not([controls])) .hero-links { animation: none; }
      .film-hero:has(video:not([controls])) .hero-stage::before {
        transform-origin: center top;
        mask-image: linear-gradient(to bottom, var(--ink) 92%, transparent 100%);
        animation: shade-leave linear both;
        animation-timeline: scroll(root block);
        animation-range: 0px 60svh;
      }
      .film-hero:has(.hero-copy :focus-visible) .hero-copy,
      .film-hero:has(.hero-copy :focus-visible) .hero-stage::before {
        animation: none; transform: none; mask-image: none;
      }
    }
  }
  @supports (animation-timeline: view()) {
    .section-heading, .intro-lead, .work-number, .director-copy, .principle-grid > p, .company-details, .contact-email {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    .tour-photo .photo-window, .director-photo .photo-window {
      animation: frame-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 95%;
    }
    .work-section { view-timeline-name: --work; view-timeline-axis: block; }
    .director-section { view-timeline-name: --director; view-timeline-axis: block; }
    .tour-photo .photo-window {
      animation: gallery-scroll linear both;
      animation-timeline: --work;
      animation-range: entry 0% exit 0%;
    }
    .director-photo .photo-window {
      animation: gallery-scroll linear both;
      animation-timeline: --director;
      animation-range: entry 0% exit 0%;
    }
    @media (min-width: 760px) {
      .intro-section .section-heading, .principles .section-heading {
        position: sticky; top: 116px; align-self: start;
      }
    }
    @media (max-width: 1023px) {
      .tour-photo .photo-window, .director-photo .photo-window {
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
      }
      .hero-art.film {
        animation: mobile-film-scroll linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 45%;
      }
    }
  }
}
@keyframes copy-leave {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% - 56px)); }
}
@keyframes shade-leave {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}
@keyframes film-open {
  from { clip-path: inset(8% 4% 8% 47%); }
  to { clip-path: inset(0); }
}
@keyframes gallery-scroll {
  from { transform: translateY(52px); clip-path: inset(0 7% 0 7%); }
  65% { clip-path: inset(0); }
  to { transform: translateY(-12px); clip-path: inset(0); }
}
@keyframes mobile-film-scroll {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}
@keyframes arrive { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { transform: translateY(22px); } to { transform: translateY(0); } }
@keyframes frame-arrive { from { opacity: 0; clip-path: inset(12% 0 0 0); transform: translateY(30px); } to { opacity: 1; clip-path: inset(0); transform: translateY(0); } }
@keyframes reveal { from { transform: translateY(28px); } to { transform: translateY(0); } }
@keyframes frame-reveal { from { clip-path: inset(12% 0 0 0); transform: translateY(40px); } to { clip-path: inset(0); transform: translateY(0); } }
@keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; transform: none !important; clip-path: none !important; }
}
