/* ==========================================================================
   筑波大学写真部さくら組 — style.css
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* スクロールに応じて main.js が 昼 → 夕 → 夜 と書き換える */
  --bg-rgb: 250 246 241;
  --ink-rgb: 46 38 41;
  --sub-rgb: 125 108 114;
  --accent-rgb: 201 96 122;

  --bg: rgb(var(--bg-rgb));
  --ink: rgb(var(--ink-rgb));
  --sub: rgb(var(--sub-rgb));
  --accent: rgb(var(--accent-rgb));
  --line: rgb(var(--ink-rgb) / .16);

  --sakura: #f3c6cf;
  --usubeni: #e59aab;
  --beni: #c9607a;
  --sumi: #2e2629;
  --yoru: #17121c;
  --film: #1d161a;
  --amber: #ff9a4d;

  /* ロゴ / 見出し・本文 / 小さな文字 */
  --f-logo: "Kaisei Decol", "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-ja: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --f-ja-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  /* 欧文：大きな文字 / 字間を広げた大文字 / 小さな斜体 */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --f-caps: "Italiana", "Cormorant Garamond", "Times New Roman", serif;
  --f-en: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --f-mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --vf: clamp(12px, 2vw, 26px);
  --gutter: clamp(22px, 6vw, 96px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--sakura); color: var(--sumi); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
em { font-style: normal; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 50%; top: 12px;
  z-index: 200;
  transform: translate(-50%, -200%);
  padding: .6em 1.2em;
  background: var(--sumi);
  color: #fff;
  font-size: 13px;
  transition: transform .3s var(--ease-out);
}
.skip:focus { transform: translate(-50%, 0); }

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

main, .footer { position: relative; z-index: 2; overflow-x: hidden; overflow-x: clip; }

/* ---------- Layers ---------- */
.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.petals--back { z-index: 1; }
.petals--front { z-index: 30; }

.top-fade {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: calc(var(--vf) + 96px);
  z-index: 35;
  pointer-events: none;
  background: linear-gradient(rgb(var(--bg-rgb) / .92) 35%, rgb(var(--bg-rgb) / 0));
  transition: opacity .4s ease;
}
.film-c .top-fade, .film-l .top-fade, .film-r .top-fade { opacity: 0; }

.grain {
  position: fixed;
  inset: -100px;
  z-index: 50;
  pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-38px, 22px); }
  33%  { transform: translate(24px, -46px); }
  50%  { transform: translate(-52px, -14px); }
  67%  { transform: translate(40px, 36px); }
  83%  { transform: translate(-16px, 50px); }
  100% { transform: translate(0, 0); }
}

.shutter-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: #fff;
  opacity: 0;
}
.shutter-flash.is-on { animation: flash .5s var(--ease-out); }
@keyframes flash {
  0% { opacity: .55; }
  100% { opacity: 0; }
}

/* ---------- Intro (aperture) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
}
.intro__iris {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.intro__iris polygon {
  fill: url(#blade);
  stroke: #3a2f35;
  stroke-width: .35;
  stroke-linejoin: round;
}
.intro__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #efe2e6;
  transition: opacity .35s ease, transform .6s var(--ease-out);
}
.intro__mark { width: 44px; height: 44px; animation: intro-spin 2.4s var(--ease-io) infinite; }
.intro__mark svg { width: 100%; height: 100%; }
@keyframes intro-spin { to { transform: rotate(72deg); } }
.intro__name {
  font-family: var(--f-caps);
  font-weight: 400;
  letter-spacing: .7em;
  margin-right: -.7em;
  font-size: 13px;
}
.intro__af {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #9d8a91;
}
.intro__af i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7fe0a0;
  box-shadow: 0 0 8px #7fe0a0;
  animation: blink .5s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .15; } }
.intro.is-opening .intro__label { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
.intro__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.intro.is-flash .intro__flash { animation: intro-flash .75s var(--ease-out) forwards; }
@keyframes intro-flash {
  0% { opacity: 0; }
  12% { opacity: .9; }
  100% { opacity: 0; }
}
.intro.is-done { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
html:not(.js) .intro, .no-intro .intro { display: none; }

/* ---------- Viewfinder ---------- */
.viewfinder {
  position: fixed;
  inset: var(--vf);
  z-index: 40;
  pointer-events: none;
  color: rgb(var(--ink-rgb) / .62);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  opacity: 0;
  transition: opacity 1.2s ease .6s;
}
.is-ready .viewfinder, html:not(.js) .viewfinder { opacity: 1; }

.vf-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 0 solid currentColor;
  transition: transform .5s var(--ease-out);
}
.vf-corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.vf-corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.vf-corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.vf-corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.is-shot .vf-corner--tl { transform: translate(6px, 6px); }
.is-shot .vf-corner--tr { transform: translate(-6px, 6px); }
.is-shot .vf-corner--bl { transform: translate(6px, -6px); }
.is-shot .vf-corner--br { transform: translate(-6px, -6px); }

.vf-hud {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.8em;
  white-space: nowrap;
}
.vf-battery {
  display: inline-flex;
  gap: 2px;
  padding: 2px 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.vf-battery::after {
  content: "";
  position: absolute;
  right: -4px; top: 3px;
  width: 2px; height: 5px;
  background: currentColor;
}
.vf-battery i { width: 4px; height: 7px; background: currentColor; }

.vf-meter {
  position: absolute;
  left: 22px;
  bottom: 18px;
  width: 190px;
}
.vf-meter__scale {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0;
}
.vf-meter__scale span { width: 0; display: flex; justify-content: center; }
.vf-meter__ticks {
  height: 6px;
  margin-top: 4px;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / 20)) left bottom / calc(100% + 1px) 4px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / 4)) left bottom / calc(100% + 1px) 7px no-repeat;
}
.vf-meter__needle {
  position: absolute;
  bottom: -9px;
  left: calc(var(--meter, .5) * 100%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--accent);
  transform: translateX(-50%);
  transition: left .25s var(--ease-out);
}

.vf-stamp {
  position: absolute;
  right: 22px;
  bottom: 16px;
  display: grid;
  justify-items: end;
  gap: 4px;
}
.vf-frame b { font-weight: 400; color: var(--ink); }
.vf-date {
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--amber);
  text-shadow: 0 0 6px rgb(255 120 40 / .55), 0 0 1px rgb(255 160 90 / .9);
  font-weight: 400;
  opacity: .9;
}

/* ---------- Header ---------- */
.film-l .brand, .film-l .vf-corner--tl,
.film-c .vf-hud,
.film-r .nav, .film-r .vf-corner--tr { color: #f3e6ea; }
.film-l .brand__en, .film-r .nav small { color: #bba5ad; }
.site-header {
  position: fixed;
  z-index: 45;
  top: calc(var(--vf) + 14px);
  left: calc(var(--vf) + 20px);
  right: calc(var(--vf) + 20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 1s ease .5s, transform 1s var(--ease-out) .5s;
}
.is-ready .site-header, html:not(.js) .site-header { opacity: 1; transform: none; }
.site-header a { pointer-events: auto; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 30px; height: 30px;
  transition: transform 1.2s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(144deg); }
.brand__text { display: grid; line-height: 1.1; }
.brand__ja { font-family: var(--f-logo); font-size: 16px; font-weight: 500; letter-spacing: .14em; }
.brand__en {
  font-family: var(--f-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--sub);
}

.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  position: relative;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 17px;
  letter-spacing: .04em;
  padding: 4px 0;
}
.nav small {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--sub);
  margin-right: 6px;
  vertical-align: 5px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Split text ---------- */
.char {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip visible;
  isolation: isolate;
}

.hero__mark {
  position: absolute;
  left: 61%;
  top: 50%;
  width: min(82vmin, 780px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translateY(var(--mark-y, 0px));
  z-index: -1;
  color: var(--accent);
  opacity: var(--mark-o, 1);
}
.hero__mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mark__ring {
  animation: ring-spin 90s linear infinite;
  will-change: transform;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.mark__ticks {
  fill: none;
  stroke: currentColor;
  stroke-opacity: .35;
  stroke-width: 6;
  stroke-dasharray: .35 4.65;
}
.mark__ticks--major {
  stroke-width: 14;
  stroke-opacity: .5;
  stroke-dasharray: .5 29.5;
}
.mark__text {
  font-family: var(--f-en);
  font-size: 13.5px;
  letter-spacing: .32em;
  fill: currentColor;
  fill-opacity: .6;
}
.mark__circle { fill: none; stroke: currentColor; stroke-opacity: .25; stroke-width: .8; }
.mark__flower { transform: rotate(var(--mark-rot, 0deg)); }
.mark__flower path {
  fill: rgb(var(--accent-rgb) / 0);
  stroke: currentColor;
  stroke-opacity: .55;
  stroke-width: .2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.mark__center { fill: none; stroke: currentColor; stroke-opacity: .55; stroke-width: 1; }

.js .mark__flower path { stroke-dashoffset: 1; }
.js .mark__ring, .js .mark__center { opacity: 0; }
.is-ready .mark__flower path {
  animation: draw 2.6s var(--ease-io) forwards, petal-fill 2.4s ease forwards;
}
.is-ready .mark__flower path:nth-child(2) { animation-delay: .12s, 2.1s; }
.is-ready .mark__flower path:nth-child(3) { animation-delay: .24s, 2.2s; }
.is-ready .mark__flower path:nth-child(4) { animation-delay: .36s, 2.3s; }
.is-ready .mark__flower path:nth-child(5) { animation-delay: .48s, 2.4s; }
.is-ready .mark__flower path:nth-child(1) { animation-delay: 0s, 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes petal-fill { to { fill: rgb(var(--accent-rgb) / .06); } }
.is-ready .mark__ring { animation: fade-in 2s ease 1.2s forwards, ring-spin 90s linear infinite; }
.is-ready .mark__center { animation: fade-in 1.4s ease 1.6s forwards; }
@keyframes fade-in { to { opacity: 1; } }

.hero__title {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(96px, 17vh, 190px);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: clamp(14px, 1.3vw, 18px);
  font-style: italic;
  letter-spacing: .06em;
  color: var(--sub);
  margin-bottom: clamp(4px, 1vw, 14px);
}
.line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.hero__eyebrow em { font-style: italic; }
.hero__name {
  font-family: var(--f-logo);
  font-size: clamp(4.6rem, 15vw, 13.5rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: .01em;
  margin-left: -.06em;
}
.hero__name .char:last-child { color: var(--accent); }
.hero__en {
  font-family: var(--f-caps);
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: .72em;
  margin-top: clamp(4px, 1vw, 12px);
}
.hero__sub {
  font-family: var(--f-ja-sans);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: .3em;
  color: var(--sub);
}

.hero__copy {
  position: absolute;
  right: calc(var(--gutter) + 6px);
  top: 50%;
  transform: translateY(-56%);
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 20px;
}
.hero__copy p {
  writing-mode: vertical-rl;
  white-space: nowrap;
}
.hero__copy-main {
  font-size: clamp(1.25rem, 1.9vw, 1.8rem);
  letter-spacing: .5em;
  font-weight: 500;
  line-height: 1.2;
}
.hero__copy-sub {
  font-family: var(--f-ja-sans);
  font-weight: 300;
  font-size: clamp(12px, .95vw, 14px);
  letter-spacing: .42em;
  line-height: 1.2;
  color: var(--sub);
  padding-top: 4.2em;
}
.hanko {
  writing-mode: horizontal-tb;
  display: inline-grid;
  place-items: center;
  width: 1.3em; height: 1.3em;
  margin-top: .3em;
  background: var(--beni);
  color: #fff4f6;
  font-family: var(--f-logo);
  font-size: .78em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .18);
  transform: rotate(-4deg);
}

.hero__scroll {
  position: absolute;
  right: calc(var(--vf) + 20px);
  bottom: calc(var(--vf) + 86px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--sub);
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i {
  position: relative;
  width: 1px;
  height: 54px;
  background: rgb(var(--ink-rgb) / .15);
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: scroll-line 2.2s var(--ease-io) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Hero entrance */
.js .hero__eyebrow, .js .hero__sub, .js .hero__copy p, .js .hanko, .js .hero__scroll { opacity: 0; }
.js .hero__name .char, .js .hero__en .char {
  opacity: 0;
  transform: translateY(.5em) rotate(4deg);
  filter: blur(10px);
}
.is-ready .hero__name .char, .is-ready .hero__en .char {
  transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out), filter 1.4s var(--ease-out);
  transition-delay: calc(.35s + var(--i) * .11s);
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.is-ready .hero__en .char { transition-delay: calc(.9s + var(--i) * .05s); }
.is-ready .hero__eyebrow { animation: rise 1.2s var(--ease-out) .2s forwards; }
.is-ready .hero__sub { animation: rise 1.2s var(--ease-out) 1.3s forwards; }
.is-ready .hero__copy-main { animation: rise-v 1.6s var(--ease-out) .9s forwards; }
.is-ready .hero__copy-sub { animation: rise-v 1.6s var(--ease-out) 1.15s forwards; }
.is-ready .hanko { animation: stamp .7s cubic-bezier(.3, 1.6, .5, 1) 2s forwards; }
.is-ready .hero__scroll { animation: fade-in 1.2s ease 2.2s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-v { from { opacity: 0; transform: translateY(-18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.8); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* ---------- Film strip / marquee ---------- */
.film {
  position: relative;
  z-index: 3;
  margin-block: clamp(40px, 8vh, 90px) 0;
  background: var(--film);
  color: #f3e6ea;
  transform: rotate(-2.2deg) scale(1.06);
  box-shadow: 0 30px 60px -30px rgb(46 38 41 / .45);
  overflow: hidden;
}
.film__edge {
  position: relative;
  height: 34px;
  overflow: hidden;
}
.film__edge::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 9px;
  height: 14px;
  background: rgb(var(--bg-rgb));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Crect x='6' y='0' width='14' height='14' rx='2.5'/%3E%3C/svg%3E") repeat-x left center / 26px 14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Crect x='6' y='0' width='14' height='14' rx='2.5'/%3E%3C/svg%3E") repeat-x left center / 26px 14px;
  opacity: .92;
}
.film__edge-track {
  position: absolute;
  left: 0;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--amber);
  opacity: .75;
}
.film__edge--top .film__edge-track { bottom: -2px; }
.film__edge--bottom .film__edge-track { top: -2px; }
.film__edge-track span { display: inline-block; padding-right: 4.2em; }

.film__track {
  display: flex;
  width: max-content;
  padding-block: clamp(10px, 2vw, 22px);
  will-change: transform;
}
.film__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.film__group span {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 1.1;
  letter-spacing: .01em;
  padding-inline: .32em;
  white-space: nowrap;
}
.film__group span.ja {
  font-family: var(--f-ja);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  letter-spacing: .08em;
}
.film__group span:nth-of-type(odd):not(.ja) {
  color: transparent;
  -webkit-text-stroke: 1px rgb(243 230 234 / .8);
}
.film__flower {
  display: block;
  width: clamp(26px, 3.4vw, 46px);
  aspect-ratio: 1;
  margin-inline: .6em;
  animation: spin 14s linear infinite;
}
.film__flower svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section label ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--sub);
}
.label span {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
}
.label i {
  display: block;
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* ---------- Reveal ---------- */
.js [data-reveal]:not([data-split]) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in:not([data-split]) { opacity: 1; transform: none; }
.js [data-reveal][data-split] .char {
  opacity: 0;
  transform: translateY(.35em);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out), filter 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i) * .055s);
}
.js [data-reveal][data-split].is-in .char { opacity: 1; transform: none; filter: blur(0); }

/* ---------- About ---------- */
.about {
  padding-block: clamp(120px, 22vh, 240px) clamp(100px, 16vh, 180px);
}
.statement {
  display: grid;
  gap: .08em;
  margin-top: clamp(36px, 6vh, 64px);
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .06em;
}
.statement__line { white-space: nowrap; }
.statement__line:nth-child(2) { padding-left: 1.2em; }
.statement__line:nth-child(3) { padding-left: 2.4em; }
.statement__line:nth-child(3) .char:nth-child(n+6):nth-child(-n+9) { color: var(--accent); }

.frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  margin-top: clamp(80px, 14vh, 150px);
  perspective: 1100px;
}
.frame:nth-child(2) { --d: .12s; margin-top: clamp(0px, 6vw, 80px); }
.frame:nth-child(3) { --d: .24s; margin-top: clamp(0px, 12vw, 160px); }
.frame__inner {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgb(var(--bg-rgb) / .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), border-color .6s ease, background-color .6s ease;
  overflow: hidden;
}
.frame__inner::before, .frame__inner::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--accent);
  opacity: 0;
  transition: opacity .4s ease, transform .6s var(--ease-out);
}
.frame__inner::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; transform: translate(-6px, -6px); }
.frame__inner::after { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; transform: translate(6px, 6px); }
.frame:hover .frame__inner::before, .frame:hover .frame__inner::after { opacity: 1; transform: none; }
.frame:hover .frame__inner { border-color: rgb(var(--accent-rgb) / .45); }
.frame__no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--sub);
}
.frame__kanji {
  position: absolute;
  left: 50%; top: 45%;
  transform: translate(-50%, -50%) translateZ(40px);
  font-size: clamp(6rem, 13vw, 11rem);
  line-height: 1;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .35);
  transition: color .8s ease, -webkit-text-stroke-color .8s ease;
}
.frame:hover .frame__kanji {
  color: rgb(var(--accent-rgb) / .14);
  -webkit-text-stroke-color: rgb(var(--accent-rgb) / .8);
}
.frame__cap { position: relative; transform: translateZ(24px); }
.frame__cap h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: .12em;
}
.frame__cap em {
  font-family: var(--f-en);
  font-style: italic;
  font-size: .72em;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--accent);
}
.frame__cap p {
  font-family: var(--f-ja-sans);
  font-weight: 300;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--sub);
}

/* ---------- Join ---------- */
.join {
  position: relative;
  padding-block: clamp(130px, 24vh, 260px);
  text-align: center;
  overflow: hidden;
}
.join::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 38% at 50% 72%, rgb(255 184 160 / .42), transparent 72%),
    radial-gradient(40% 35% at 18% 20%, rgb(255 214 226 / .5), transparent 70%);
  opacity: var(--dusk, 0);
  transition: opacity .6s ease;
}
.join__inner { position: relative; display: grid; justify-items: center; }
.join__rings {
  position: absolute;
  left: 50%; top: 50%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.join__rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(var(--accent-rgb) / .22);
  border-radius: 50%;
  animation: ring-pulse 7s var(--ease-io) infinite;
}
.join__rings i:nth-child(2) { inset: 14%; animation-delay: -2.3s; }
.join__rings i:nth-child(3) { inset: 28%; animation-delay: -4.6s; border-style: dashed; }
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.04); opacity: 1; }
}
.join .label { justify-content: center; }
.join__title {
  margin-top: clamp(28px, 5vh, 48px);
  font-size: clamp(3rem, 10vw, 8.6rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .04em;
}
.join__title > span { display: block; }
.join__title > span:nth-child(2) { --d: .3s; }
.join__lead {
  font-family: var(--f-ja-sans);
  font-weight: 300;
  margin-top: clamp(22px, 4vh, 36px);
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: .14em;
  line-height: 2.2;
  color: var(--sub);
  --d: .3s;
}
.join__lead span { display: inline-block; }

.spec {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(32px, 5vh, 48px) 0 0;
  border-block: 1px solid var(--line);
  --d: .38s;
}
.spec > div {
  display: grid;
  gap: 2px;
  padding: 14px clamp(16px, 2.6vw, 34px);
  text-align: left;
}
.spec > div + div { border-left: 1px solid var(--line); }
.spec dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.spec dd {
  margin: 0;
  font-family: var(--f-ja-sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .1em;
}

.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  margin-top: clamp(36px, 6vh, 56px);
  --d: .45s;
}
.cta-item { padding: 6px; }

.cta {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 22px 22px 22px 44px;
  border: 1px solid rgb(var(--ink-rgb) / .5);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .5s var(--ease-out), border-color .5s ease, color .5s ease;
}
.cta__fill {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 280%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sumi);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .8s var(--ease-out);
  z-index: -1;
}
.cta:hover { color: #fff5f7; border-color: var(--sumi); }
.cta:hover .cta__fill { transform: translate(-50%, -50%) scale(1); }
.cta__label { display: grid; justify-items: start; line-height: 1.3; text-align: left; }
.cta__ja { font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: .2em; }
.cta__en {
  font-family: var(--f-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .08em;
  opacity: .7;
}
.cta__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--beni);
  color: #fff;
  overflow: hidden;
  transition: background-color .5s ease;
}
.cta__icon svg { width: 22px; height: 22px; transition: transform .6s var(--ease-out); }
.cta:hover .cta__icon { background: var(--usubeni); }
.cta--sub .cta__icon { background: var(--sumi); }
.cta--sub:hover .cta__icon { background: var(--beni); }
.cta-wrap .cta__ja { letter-spacing: .1em; }
.cta__en { font-family: var(--f-mono); font-style: normal; font-size: 12px; letter-spacing: .06em; }

.join__note {
  margin-top: clamp(28px, 5vh, 44px);
  font-family: var(--f-ja-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--sub);
  --d: .55s;
}
.join__note a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  line-height: 2.2;
  transition: color .4s ease;
}
.join__note span {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.join__note a:hover { color: var(--accent); }
.join__note svg { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; transition: transform .5s var(--ease-out); }
.join__note a:hover svg { transform: translate(2px, -2px); }
.cta:hover .cta__icon svg { animation: arrow-through .7s var(--ease-out); }
@keyframes arrow-through {
  0% { transform: translateX(0); }
  45% { transform: translateX(40px); }
  46% { transform: translateX(-40px); }
  100% { transform: translateX(0); }
}

/* ---------- Follow ---------- */
.follow {
  padding-block: clamp(110px, 20vh, 220px) clamp(80px, 14vh, 160px);
}
.follow__title {
  margin-top: clamp(24px, 4vh, 40px);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.follow__title em { font-style: italic; color: var(--accent); }

.links {
  margin-top: clamp(50px, 9vh, 90px);
  border-top: 1px solid var(--line);
}
.links li { border-bottom: 1px solid var(--line); }
.links li:nth-child(2) { --d: .1s; }
.links li:nth-child(3) { --d: .2s; }
.link-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.2em 44px 1fr auto 60px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(22px, 3.4vw, 38px) clamp(4px, 1vw, 16px);
  overflow: hidden;
  isolation: isolate;
}
.link-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / .2), rgb(var(--accent-rgb) / .04) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.link-row:hover::before { transform: scaleX(1); }
.link-row__no { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--sub); }
.link-row__icon { width: 26px; height: 26px; color: var(--accent); transition: transform .6s var(--ease-out); }
.link-row__icon svg { width: 100%; height: 100%; }
.link-row__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: .01em;
  transition: transform .7s var(--ease-out), letter-spacing .7s var(--ease-out);
}
.link-row__desc {
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--sub);
  text-align: right;
  font-family: var(--f-ja-sans);
  font-weight: 300;
}
.link-row__arrow {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .7s var(--ease-out), background-color .5s ease, border-color .5s ease, color .5s ease;
}
.link-row__arrow svg { width: 20px; height: 20px; }
.link-row:hover .link-row__name { transform: translateX(14px); letter-spacing: .04em; }
.link-row:hover .link-row__icon { transform: rotate(-12deg) scale(1.1); }
.link-row:hover .link-row__arrow {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--yoru);
}

/* ---------- Footer ---------- */
.footer {
  padding-top: clamp(10px, 3vh, 40px);
  padding-bottom: calc(var(--vf) + 64px);
  overflow: hidden;
}
.footer__word {
  font-family: var(--f-caps);
  font-weight: 400;
  font-size: 14.2vw;
  line-height: .9;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer__word span {
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .45);
  background: linear-gradient(0deg, var(--usubeni), var(--sakura) 60%, #fff0f3) no-repeat;
  background-size: 100% 0%;
  background-position: 0 100%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 2.4s var(--ease-io) .3s;
}
.footer__word.is-in span, html:not(.js) .footer__word span { background-size: 100% 100%; }
.footer__bar {
  font-family: var(--f-ja-sans);
  font-weight: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 5vh, 48px);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--sub);
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
}
.footer__top svg { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .5s var(--ease-out); }
.footer__top:hover svg { transform: rotate(-90deg) translateX(5px); }

/* ---------- No-JS fallbacks ---------- */
html:not(.js) .join { background: #f2d8d4; }
html:not(.js) .follow, html:not(.js) .footer { background: var(--yoru); color: #f3e9ec; }

/* ---------- Custom cursor (AF frame) ---------- */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0; top: 0;
  z-index: 95;
  pointer-events: none;
}
.cursor__frame {
  position: fixed;
  left: 0; top: 0;
  width: var(--cw, 34px);
  height: var(--ch, 34px);
  transform: translate(var(--cx, -100px), var(--cy, -100px));
  color: rgb(var(--ink-rgb) / .75);
  transition: color .3s ease, opacity .3s ease;
}
.cursor__frame i {
  position: absolute;
  width: 9px; height: 9px;
  border: 0 solid currentColor;
}
.cursor__frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.cursor__frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.cursor__frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cursor__frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.cursor__dot {
  position: fixed;
  left: -3px; top: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(var(--dx, -100px), var(--dy, -100px));
}
.cursor.is-locked .cursor__frame { color: var(--accent); animation: af-lock .35s steps(2) 2; }
.cursor.is-locked .cursor__dot { background: #6fd495; box-shadow: 0 0 8px #6fd495; }
.cursor.is-hidden .cursor__frame, .cursor.is-hidden .cursor__dot { opacity: 0; }
@keyframes af-lock { 50% { opacity: .2; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .vf-hud { display: none; }
  .frames { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .frame:nth-child(n) { margin-top: 0; }
  .frame__inner { aspect-ratio: 16 / 11; }
  .frame:nth-child(2) .frame__inner { margin-left: 8%; }
  .frame:nth-child(3) .frame__inner { margin-left: 16%; }
}

@media (max-width: 720px) {
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .nav small { display: none; }
  .brand__text { display: none; }
  .vf-meter { display: none; }
  .vf-stamp { right: 16px; bottom: 12px; }
  .vf-date { font-size: 13px; }

  .hero__mark {
    left: 42%;
    top: 36%;
    width: 112vw;
  }
  .mark__text { display: none; }
  .hero__title { bottom: clamp(96px, 14vh, 130px); }
  .hero__name { font-size: clamp(4.2rem, 23vw, 7.5rem); }
  .hero__en { letter-spacing: .6em; font-size: 14px; }
  .hero__eyebrow .line { width: 24px; }
  .hero__copy {
    top: calc(var(--vf) + 86px);
    transform: none;
    right: calc(var(--gutter) - 2px);
    gap: 12px;
  }
  .hero__copy-main { font-size: 1.1rem; letter-spacing: .38em; }
  .hero__copy-sub { font-size: 11px; letter-spacing: .32em; }
  .hero__scroll { display: none; }

  .statement { font-size: min(2.2rem, calc((100vw - 2 * var(--gutter)) / 11.4)); }
  .statement__line:nth-child(2) { padding-left: .4em; }
  .statement__line:nth-child(3) { padding-left: .8em; }
  .frame__inner { aspect-ratio: 4 / 3; }
  .frame:nth-child(n) .frame__inner { margin-left: 0; }

  .cta { gap: 18px; padding: 16px 16px 16px 30px; }
  .cta__icon { width: 48px; height: 48px; }
  .cta { width: 100%; justify-content: space-between; }
  .cta-wrap { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .spec { flex-direction: column; align-items: stretch; width: 100%; }
  .spec > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .spec > div { grid-template-columns: 5.6em 1fr; align-items: baseline; padding: 11px 6px; }
  .spec dd { font-size: 13px; }
  .join__note { font-size: 12px; }
  .join { padding-block: 120px 100px; }

  .link-row { grid-template-columns: 30px 1fr 44px; row-gap: 4px; }
  .link-row__no { display: none; }
  .link-row__icon { grid-row: 1 / span 2; width: 22px; height: 22px; }
  .link-row__name { grid-column: 2; }
  .link-row__desc { grid-column: 2; grid-row: 2; text-align: left; font-size: 12px; }
  .link-row__arrow { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .footer { padding-bottom: calc(var(--vf) + 96px); }
  .footer__bar { justify-content: center; text-align: center; }
  .join__lead { letter-spacing: .08em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }
  .grain { animation: none; }
}
