:root {
  --blue: #0a2455;
  --deep: #061938;
  --night: #020a1b;
  --ice: #d5e1f7;
  --white: #f7f8ff;
  --line: rgba(247, 248, 255, 0.35);
  --sans: "DM Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--blue);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  mix-blend-mode: difference;
  color: white;
}
.wordmark { font-weight: 600; letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 28px; font-size: 0.8rem; letter-spacing: 0.08em; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .3s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; border: 0; background: none; color: inherit; padding: 4px; font-size: 0.8rem; letter-spacing: .08em; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
}
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 46%; z-index: -2; transform: scale(1.02); }
.hero-wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,30,140,.36), rgba(0,12,38,.05) 55%, rgba(0,8,26,.4)), linear-gradient(0deg, rgba(0,15,60,.72), transparent 42%); mix-blend-mode: multiply; }
.hero-copy { padding: 0 3vw 5vh; }
.eyebrow { margin: 0 0 8px; font-size: clamp(.72rem, 1vw, .9rem); letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(5.5rem, 15.5vw, 14rem); line-height: .8; letter-spacing: -.075em; font-weight: 500; }
.hero-intro { position: absolute; right: 4vw; bottom: 7vh; margin: 0; font-size: clamp(.95rem, 1.2vw, 1.2rem); line-height: 1.75; }
.scroll-cue { position: absolute; right: 3vw; top: 48%; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .14em; display: flex; gap: 12px; align-items: center; }

.section { padding: 140px 4vw; }
.section-heading { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(260px, 32vw); gap: 22px; align-items: start; padding-bottom: 70px; }
.section-number, .work-meta, .work-index, figcaption, .portfolio-note, footer, .contact-note { font-size: .72rem; letter-spacing: .13em; }
.section-number { margin: .8rem 0 0; }
.section h2 { font-size: clamp(3.8rem, 9vw, 8rem); line-height: .82; letter-spacing: -.07em; font-weight: 500; margin: 0; }
.section-heading > p:last-child { max-width: 34rem; margin: .5rem 0 0; }

.work { background: var(--blue); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 2vw; }
.film-card { display: block; }
.film-card[href], .contact-links a[href], footer a[href^="http"] { cursor: pointer; touch-action: manipulation; }
.film-card[hidden] { display: none; }
.film-card:nth-child(even) { margin-top: 8vw; }
.film-image { position: relative; display: block; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.film-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.68) contrast(1.08); transition: transform .65s ease, filter .65s ease; }
.film-image > video, .film-image > iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; background: var(--night); }
.film-card-wide { grid-column: 1 / -1; }
.film-card-wide:nth-child(even) { margin-top: 0; }
.film-portrait-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--night); }
.film-portrait-grid video { display: block; width: 100%; aspect-ratio: 512 / 910; object-fit: cover; background: var(--night); }
.youtube-preview { background: #000 url("https://i.ytimg.com/vi/Ah3wTr6AIss/maxresdefault.jpg") center / cover no-repeat; }
.film-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; aspect-ratio: 27 / 16; }
.film-triptych video { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; background: var(--night); }
.play { position: absolute; right: 14px; bottom: 14px; min-width: 74px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--night); font-size: .68rem; letter-spacing: .08em; transform: scale(.86); opacity: 0; transition: opacity .3s, transform .3s; }
.film-card:hover .film-image img, .film-card:focus-visible .film-image img { transform: scale(1.035); filter: saturate(.95) contrast(1.03); }
.film-card:hover .play, .film-card:focus-visible .play { transform: scale(1); opacity: 1; }
.film-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .72rem; letter-spacing: .13em; }
.film-credit { display: block; margin-top: 5px; font-size: .72rem; letter-spacing: .08em; opacity: .65; }
.film-credit-row { display: flex; justify-content: space-between; gap: 18px; }
.film-credit-row a { border-bottom: 1px solid currentColor; opacity: 1; }
.more-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 85px; padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; font-size: .78rem; letter-spacing: .13em; }
.more-button span { font-size: 1.2rem; transition: transform .3s ease; }
.more-button[aria-expanded="true"] span { transform: rotate(45deg); }

.statement { position: relative; min-height: 86svh; background: var(--ice); color: #071c46; padding: 10vw 4vw; display: flex; align-items: center; overflow: hidden; }
.statement-text { margin: 0; font-size: clamp(4rem, 13vw, 13rem); line-height: .76; letter-spacing: -.08em; font-weight: 500; }
.statement-orbit { position: absolute; width: 240px; height: 240px; border: 1px solid rgba(7,28,70,.45); border-radius: 50%; right: 10vw; bottom: 7vw; display: grid; place-items: center; font-size: .65rem; letter-spacing: .18em; transform: rotate(-18deg); }

.about { background: var(--deep); }
.about-heading { grid-template-columns: 80px 1fr; }
.about-grid { display: grid; grid-template-columns: minmax(260px, 36vw) 1fr; gap: 7vw 10vw; align-items: start; }
.profile-frame { margin: 0; position: sticky; top: 90px; }
.profile-frame img { aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.86) contrast(1.04); }
.profile-frame figcaption { margin-top: 10px; }
.about-copy { max-width: 680px; padding-top: 5vw; }
.about-copy > p { max-width: 36rem; }
.about-lead { font-size: clamp(1.7rem, 3vw, 3.2rem); line-height: 1.5; letter-spacing: -.035em; margin: 0 0 55px; }
.practice-list { margin: 75px 0 0; border-top: 1px solid var(--line); }
.practice-list div { display: grid; grid-template-columns: 55px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.practice-list dt { font-size: .7rem; }
.practice-list dd { margin: 0; }
.about-photo { margin: 0; }
.about-photo-wide { margin-top: 2vw; }
.about-photo-detail { margin-top: 13vw; width: 72%; }
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo-wide img { object-position: center; }

.contact { background: var(--blue); min-height: 92svh; display: flex; flex-direction: column; justify-content: space-between; }
.contact h2 { font-size: clamp(4.6rem, 14.5vw, 14rem); }
.contact-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 90px; }
.contact-bottom p { margin: 0; }
.contact-links { display: flex; gap: 34px; font-size: .78rem; letter-spacing: .1em; }
.contact-links a { padding-bottom: 5px; border-bottom: 1px solid currentColor; }

footer { background: var(--night); padding: 24px 4vw; display: flex; justify-content: space-between; align-items: center; }
footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { padding: 18px 20px; }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 58px; right: 16px; padding: 18px 22px; display: none; flex-direction: column; gap: 12px; background: var(--night); border: 1px solid rgba(255,255,255,.4); mix-blend-mode: normal; }
  .main-nav.is-open { display: flex; }
  .hero-copy { padding: 0 20px 9vh; }
  h1 { font-size: clamp(4.2rem, 22vw, 6.3rem); line-height: .86; letter-spacing: -.055em; }
  .hero-intro { position: static; margin-top: 32px; }
  .scroll-cue { display: none; }
  .section { padding: 95px 20px; }
  .section h2 { font-size: clamp(2.8rem, 14vw, 4.4rem); line-height: .9; letter-spacing: -.055em; overflow-wrap: anywhere; }
  .section-heading { grid-template-columns: 38px 1fr; padding-bottom: 52px; }
  .section-heading > p:last-child { grid-column: 2; }
  .work-grid { grid-template-columns: 1fr; gap: 42px; }
  .film-card:nth-child(even) { margin-top: 0; }
  .film-card-wide { grid-column: auto; }
  .film-portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .film-credit-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .film-triptych { gap: 2px; }
  .play { opacity: 1; transform: scale(.82); }
  .film-caption { align-items: flex-start; flex-direction: column; gap: 3px; letter-spacing: .08em; overflow-wrap: anywhere; }
  .portfolio-note { margin-top: 55px; }
  .statement { min-height: 68svh; padding: 90px 20px; }
  .statement-text { font-size: clamp(3rem, 15vw, 4.5rem); line-height: .84; letter-spacing: -.06em; }
  .statement-orbit { width: 150px; height: 150px; right: -30px; bottom: 50px; }
  .about-grid { grid-template-columns: 1fr; gap: 65px; }
  .profile-frame { position: static; width: 82%; }
  .about-copy { padding-top: 0; }
  .about-photo-wide { width: 78%; margin-left: auto; }
  .about-photo-detail { width: 85%; margin-top: 0; }
  .contact h2 { font-size: clamp(3.15rem, 16vw, 5rem); line-height: .88; overflow-wrap: anywhere; }
  .contact-bottom { align-items: flex-start; flex-direction: column; }
  .contact-links { flex-direction: column; gap: 14px; }
  footer { align-items: flex-start; gap: 16px; flex-direction: column; }
}

@media (max-width: 390px) {
  h1 { font-size: clamp(3.7rem, 20vw, 5rem); }
  .section h2 { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .statement-text { font-size: clamp(2.7rem, 14vw, 3.6rem); }
  .contact h2 { font-size: clamp(2.75rem, 14.5vw, 3.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
