/* Advanced AMD Concepts by Japan — gothic sakura */
:root {
  --bg: #070506;
  --bg-2: #0c0809;
  --text: #efe7e8;
  --muted: #9a8e90;
  --dim: #61565a;
  --crimson: #c01428;
  --crimson-deep: #7d0c1a;
  --sakura: #f2b8c6;
  --line: rgba(242, 184, 198, 0.14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(125, 12, 26, 0.22), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--crimson); color: #fff; }
.jp { font-family: var(--jp); }
.center { text-align: center; }
.muted { color: var(--muted); }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 48px); }

.label {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sakura);
  opacity: 0.85;
}

/* Layers */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
header, main, footer { position: relative; z-index: 2; }

/* ---------- Intro ---------- */
.boot {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: var(--bg); align-items: center; justify-content: center;
  transition: opacity 0.7s ease;
}
.booting .boot { display: flex; }
.booting body { overflow: hidden; }
.boot.done { opacity: 0; pointer-events: none; }
.boot-inner { width: min(340px, 100% - 48px); text-align: center; }
.boot-kanji { display: block; font-size: 54px; color: var(--crimson); margin-bottom: 20px; line-height: 1; }
.boot-title { display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: var(--serif); margin-bottom: 30px; color: var(--text); line-height: 1; }
.boot-title-main { font-size: 27px; letter-spacing: 0.015em; }
.boot-title .jp { color: var(--sakura); font-size: 0.82em; margin-left: 5px; }
.boot-title-sub { margin-top: 7px; color: var(--sakura); font-size: 20px; font-style: italic; letter-spacing: 0.16em; }
.boot-status { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); margin-bottom: 14px; }
.boot-bar { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.boot-bar i { position: absolute; inset: 0; width: 0; background: var(--crimson); }
.boot-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 10px; letter-spacing: 0.1em; }
.boot-skip { font-size: 11px; color: var(--dim); margin-top: 38px; letter-spacing: 0.14em; }

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
}
.top.scrolled { background: rgba(7, 5, 6, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); padding-block: 15px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.035em; white-space: nowrap; }
.brand .brand-jp { color: var(--sakura); font-size: 16px; }
.brand i { color: var(--muted); font-style: italic; font-weight: 400; }
.top nav { display: flex; align-items: center; gap: 30px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.top nav a { transition: color 0.2s; }
.top nav a:hover { color: var(--text); }
.top nav .nav-cta { color: var(--text); border: 1px solid var(--line); padding: 7px 18px; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; }
.top nav .nav-cta:hover { border-color: var(--crimson); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 24px 90px; text-align: center;
}
.sun {
  position: absolute; left: 50%; top: 48%; width: min(600px, 88vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 20, 40, 0.25) 0%, rgba(125, 12, 26, 0.12) 38%, transparent 68%);
  filter: blur(8px);
}
.vert {
  position: absolute; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 15px; letter-spacing: 0.5em; color: var(--dim);
}
.vert-l { left: clamp(20px, 4vw, 56px); }
.vert-r { right: clamp(20px, 4vw, 56px); color: var(--crimson); font-size: 22px; letter-spacing: 0.3em; }

.frame { position: relative; width: min(700px, 100%); padding: clamp(62px, 10vh, 100px) clamp(20px, 5vw, 56px) clamp(54px, 8vh, 78px); }
.arch { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(242, 184, 198, 0.35); pointer-events: none; }
.hero-inner { position: relative; }
.hero h1 {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(58px, 9vw, 94px); line-height: 0.98; letter-spacing: -0.035em;
  margin: 24px 0 28px;
}
.hero-title-main { display: inline-flex; align-items: baseline; justify-content: center; gap: clamp(9px, 1.8vw, 20px); white-space: nowrap; font-size: 0.92em; letter-spacing: -0.045em; }
.hero-jp { font-size: 0.72em; font-weight: 500; letter-spacing: 0.02em; color: var(--sakura); }
.hero h1 em { position: relative; display: inline-block; margin-top: 8px; padding: 0 0.16em 0.12em; font-style: italic; font-weight: 400; color: var(--sakura); font-size: 0.92em; letter-spacing: 0.025em; text-shadow: 0 0 34px rgba(192, 20, 40, 0.16); }
.hero h1 em::after { content: ""; position: absolute; left: 27%; right: 27%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,184,198,.65), transparent); }
.panel-jp { color: var(--sakura); font-size: .72em; }
.panel h2 em { color: var(--sakura); font-weight: 400; }
.orn { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 22px; }
.orn i { display: block; width: 52px; height: 1px; background: var(--line); }
.orn b { font-weight: 500; color: var(--crimson); font-size: 17px; line-height: 1; }
.sub { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text); font-weight: 400; }
.sub span { color: var(--crimson); margin: 0 5px; }
.tagline { color: var(--muted); max-width: 390px; margin: 18px auto 34px; font-size: 15px; line-height: 1.8; }
.down { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--crimson); font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 34px; box-shadow: 0 8px 34px rgba(192, 20, 40, 0.12);
  background: var(--crimson); border: 1px solid var(--crimson); color: #fff;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: transparent; border-color: var(--sakura); color: var(--sakura); }
.btn-block { display: block; text-align: center; }

/* ---------- Sections ---------- */
.sec { padding: clamp(88px, 10vw, 132px) 0; border-top: 1px solid var(--line); }
.sec h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.01em;
  margin: 18px 0 22px;
}
.lede { font-size: 18px; color: var(--muted); max-width: 640px; margin-inline: auto; }
.note { margin-top: 56px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.head .muted { max-width: 380px; }

/* Cycle */
.three { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.three article { padding: 44px 34px 10px; text-align: center; }
.three article + article { border-left: 1px solid var(--line); }
.kanji { display: block; font-size: 44px; color: var(--crimson); line-height: 1; margin-bottom: 26px; letter-spacing: 0.08em; }
.three h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin-bottom: 12px; }
.three p { color: var(--muted); font-size: 15.5px; }

/* Path */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.split .head { position: sticky; top: 120px; }
.sealed { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); letter-spacing: 0.04em; }
.sealed span { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--crimson-deep); color: #f6d9de; font-size: 15px; }
.list { border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 52px 1fr auto; align-items: start; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.list .num { font-family: var(--serif); font-size: 18px; color: var(--crimson); padding-top: 2px; }
.list h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; margin-bottom: 3px; }
.list p { color: var(--muted); font-size: 15px; }
.tag { font-style: normal; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 3px 9px; margin-top: 6px; }
.tag.adv { color: var(--sakura); border-color: rgba(242, 184, 198, 0.35); }

/* Japan */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); text-align: center; }
.principles > div { padding: 40px 24px 6px; }
.principles > div + div { border-left: 1px solid var(--line); }
.principles span { display: block; font-size: 26px; color: var(--crimson); margin-bottom: 20px; line-height: 1; }
.principles h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; margin-bottom: 10px; }
.principles p { color: var(--muted); font-size: 15px; }

/* Enrollment */
.panel { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(125, 12, 26, 0.12), rgba(7, 5, 6, 0) 60%); padding: clamp(34px, 6vw, 68px); }
.panel h2 { margin-bottom: 26px; }
.seal {
  position: absolute; top: clamp(24px, 4vw, 40px); right: clamp(24px, 4vw, 40px);
  width: 58px; height: 58px; background: var(--crimson); color: #fbe4e8;
  writing-mode: vertical-rl; display: grid; place-items: center; font-size: 22px; letter-spacing: 0.06em;
  transform: rotate(-5deg); box-shadow: inset 0 0 0 3px var(--crimson), inset 0 0 0 4px rgba(255,255,255,0.4);
}
.price { font-family: var(--serif); font-size: clamp(60px, 11vw, 96px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.price span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-left: 10px; font-weight: 400; }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin: 42px 0; border-top: 1px solid var(--line); }
.incl li { position: relative; padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.incl li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 9px; height: 9px; transform: translateY(-50%); background: var(--sakura); opacity: 0.8; clip-path: polygon(50% 0, 62% 20%, 95% 10%, 82% 42%, 100% 60%, 70% 68%, 62% 100%, 50% 80%, 38% 100%, 30% 68%, 0 60%, 18% 42%, 5% 10%, 38% 20%); }
.fine { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--dim); }

/* FAQ */
#faq .head { margin-bottom: 44px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 12px; height: 12px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; background: var(--crimson); transition: transform 0.25s; }
.faq summary i::before { left: 0; right: 0; top: 5.5px; height: 1px; }
.faq summary i::after { top: 0; bottom: 0; left: 5.5px; width: 1px; }
.faq details[open] summary i::after { transform: scaleY(0); }
.faq details p { color: var(--muted); padding-bottom: 26px; max-width: 600px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 44px; background: rgba(5, 3, 4, 0.8); }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.foot-row p { font-size: 12px; letter-spacing: 0.12em; color: var(--dim); }
.disclosure { font-size: 12.5px; line-height: 1.8; color: #6f6467; }
.disclosure strong { color: #a09598; font-weight: 400; }
.copy { margin-top: 24px; font-size: 11px; letter-spacing: 0.1em; color: var(--dim); }

/* Enter button, sound toggle, hidden player */
.boot-enter { margin-top: 30px; padding: 12px 38px; background: transparent; border: 1px solid var(--crimson); color: var(--text); font: 500 11.5px var(--sans); letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer; transition: background 0.25s; }
.boot-enter:hover { background: var(--crimson); }
.boot-enter[hidden], .sound[hidden] { display: none; }
.sound {
  position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 46px; height: 46px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(7, 5, 6, 0.82); border: 1px solid var(--line); border-radius: 50%;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 0.25s;
}
.sound:hover { border-color: var(--crimson); }
.bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.bars i { display: block; width: 2px; height: 5px; background: var(--dim); transition: background 0.25s; }
.sound.on .bars i { background: var(--sakura); animation: eq 1s ease-in-out infinite; }
.sound.on .bars i:nth-child(2) { animation-delay: -0.3s; }
.sound.on .bars i:nth-child(3) { animation-delay: -0.6s; }
.sound.on .bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.yt-wrap { position: fixed; left: 0; bottom: 0; width: 200px; height: 200px; opacity: 0.001; pointer-events: none; z-index: -1; overflow: hidden; }
.yt-wrap iframe { width: 100%; height: 100%; border: 0; }
.yt-wrap.show { opacity: 1; pointer-events: auto; z-index: 25; left: 24px; bottom: 24px; border: 1px solid var(--line); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .vert { display: none; }
}
@media (max-width: 900px) {
  .sec { padding: 96px 0; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split .head { position: static; }
  .three, .principles { grid-template-columns: 1fr; }
  .three article + article, .principles > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .three article, .principles > div { padding: 36px 8px; }
  .creed { margin-top: 42px; padding: 25px 16px 23px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .incl { grid-template-columns: 1fr; }
  .down { display: none; }
  .list li { grid-template-columns: 40px 1fr; }
  .list .tag { grid-column: 2; justify-self: start; margin-top: 8px; }
  .seal { width: 46px; height: 46px; font-size: 17px; }
  .sub { font-size: 9.5px; letter-spacing: 0.14em; white-space: nowrap; }
  .sub span { margin: 0 2px; }
  .hero .label { letter-spacing: 0.2em; font-size: 10.5px; }
  .hero h1 { font-size: clamp(43px, 11vw, 58px); }
  .hero-title-main { gap: 8px; }
  .hero .frame { padding-inline: 14px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand .brand-jp { font-size: 14px; }
  .boot-title-main { font-size: 24px; }
  .boot-title-sub { font-size: 18px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 39px; }
  .hero .sub { white-space: normal; line-height: 1.8; }
  .hero .label { letter-spacing: 0.12em; }
  .top { padding-inline: 14px; }
  .top nav { gap: 12px; }
}

:focus-visible { outline: 1px solid var(--sakura); outline-offset: 4px; }

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