/* ==========================================================================
   TOYO USHIKU SSH — Base
   ========================================================================== */
:root {
  --bg: #f7f2e6;
  --bg-soft: #ece1c9;
  --fg: #172443;
  --muted: #5c6270;
  --line: rgba(23, 36, 67, 0.14);
  --accent: #3f6fd1;
  --accent-2: #9cc2f5;
  --dark: #0d1a30;
  --dark-fg: #f6efdc;
  --dark-muted: #a6a48d;
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-latin: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'Fragment Mono', 'Zen Kaku Gothic New', monospace;
  --font-mincho: 'Zen Old Mincho', 'Hiragino Mincho ProN', serif;
  --data: var(--accent);
  --data-soft: var(--accent-2);
  --ease: cubic-bezier(.16,.84,.24,1);
  --bounce: cubic-bezier(.34,1.56,.64,1);
  --vivid-gold: #f0b93e;
  --vivid-coral: #ef5b6b;
  --vivid-teal: #2fd0a8;
  --vivid-blue: #5b9df0;
  --lego-red: radial-gradient(120% 140% at 28% 18%, #ff8f80 0%, #D9291C 45%, #D9291C 100%);
  --lego-yellow: radial-gradient(120% 140% at 28% 18%, #fff0a8 0%, #F4C61F 45%, #F4C61F 100%);
  --lego-blue: radial-gradient(120% 140% at 28% 18%, #7fb4f2 0%, #0762C8 45%, #0762C8 100%);
  --lego-green: radial-gradient(120% 140% at 28% 18%, #8fd89a 0%, #2E9E44 45%, #2E9E44 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--data); outline-offset: 3px; border-radius: 2px;
}

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 500;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-bar {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 600;
  background: transparent;
}
.progress-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .08s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  color: #fff;
  mix-blend-mode: difference;
  transition: padding .4s var(--ease);
}
.site-header.scrolled { padding: 14px clamp(20px, 4vw, 48px); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-weight: 900; font-size: 18px; letter-spacing: .04em;
  border: 1.5px solid currentColor; padding: 3px 8px;
}
.brand-name {
  font-size: 12px; letter-spacing: .04em; font-weight: 500;
  display: none;
}
@media (min-width: 720px) { .brand-name { display: inline; } }

.menu-btn {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; color: inherit; cursor: pointer;
  font-family: var(--font-jp);
}
.menu-btn-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; font-weight: 400; }
.menu-icon { display: inline-flex; flex-direction: column; gap: 5px; width: 26px; }
.menu-icon i {
  display: block; height: 1.5px; width: 100%; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Nav overlay
   ========================================================================== */
.nav-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: var(--dark); color: var(--dark-fg);
  display: flex; align-items: center;
  clip-path: circle(2% at calc(100% - 48px) 44px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.nav-overlay.open { clip-path: circle(150% at calc(100% - 48px) 44px); pointer-events: auto; }

.nav-overlay-inner {
  width: 100%; padding: 120px clamp(24px, 8vw, 96px) 60px;
  display: flex; flex-direction: column; gap: 48px;
  max-height: 100vh; overflow-y: auto;
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { border-top: 1px solid rgba(255,255,255,.14); }
.nav-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.nav-list a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 4px; font-size: clamp(20px, 4vw, 34px); font-weight: 700;
  letter-spacing: .01em; transition: color .3s, padding .3s;
}
.nav-list a span {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--dark-muted);
  text-transform: uppercase;
}
.nav-list a:hover { color: var(--accent); padding-left: 16px; }
.nav-overlay-footer a {
  font-size: 13px; letter-spacing: .04em; color: var(--dark-muted); border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.nav-overlay-footer a:hover { color: var(--dark-fg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 8%;
  transform: scale(1.08); animation: heroZoom 12s var(--ease) forwards;
}
@media (max-height: 700px) and (min-width: 900px) {
  .hero-bg img { object-position: center 0%; }
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,26,48,.3) 0%, rgba(13,26,48,.5) 45%, rgba(13,26,48,.97) 100%);
}

/* ---- Placeholder photo blocks (swap for real photography) ---- */
.placeholder-photo {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px),
    linear-gradient(135deg, #0d1a30 0%, #1c2f52 45%, var(--accent) 100%);
}
.placeholder-photo.alt {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px),
    linear-gradient(135deg, #0d1a30 0%, var(--accent-2) 55%, var(--accent) 100%);
}
.placeholder-photo::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 16px;
  font-size: 10px; letter-spacing: .1em; font-weight: 700; color: rgba(255,255,255,.75);
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  white-space: nowrap; z-index: 2;
}

.hero-content { position: relative; z-index: 1; padding: 0 clamp(20px, 4vw, 48px) 88px; width: 100%; text-shadow: 0 2px 24px rgba(0,0,0,.55); }

.hero-eyebrow { overflow: hidden; margin: 0 0 18px; }
.hero-eyebrow span {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; font-weight: 400;
  transform: translateY(120%); opacity: 0;
}

.hero-title { margin: 0; font-family: var(--font-latin); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .mask { display: block; }
.hero-title .reveal-char {
  display: inline-block; font-size: clamp(40px, 9vw, 108px);
  transform: translateY(105%); opacity: 0;
}
.hero-title .line:nth-child(2) .reveal-char {
  font-family: var(--font-mincho); font-weight: 600; font-size: clamp(28px, 5.6vw, 62px); letter-spacing: .02em;
}
.hero-title .accent { color: var(--data); }

.hero-badge { overflow: hidden; margin: 22px 0 0; }
.hero-badge span {
  display: inline-block; font-size: clamp(11px, 1.6vw, 14px); letter-spacing: .04em; font-weight: 500;
  padding: 8px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(13,26,48,.35);
  transform: translateY(120%); opacity: 0;
}

.hero-scroll {
  position: absolute; z-index: 1; right: clamp(20px, 4vw, 48px); bottom: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll-line { width: 1px; height: 46px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: #fff; animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
.hero-scroll-label { writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.7); }

/* fired-in state (added by JS on load) */
body.hero-in .hero-eyebrow span,
body.hero-in .hero-badge span { transform: translateY(0); opacity: 1; transition: transform .9s var(--ease), opacity .9s var(--ease); }
body.hero-in .hero-eyebrow span { transition-delay: .15s; }
body.hero-in .hero-title .reveal-char { transform: translateY(0); opacity: 1; transition: transform 1s var(--ease), opacity 1s var(--ease); }
body.hero-in .hero-title .line:nth-child(1) .reveal-char { transition-delay: .3s; }
body.hero-in .hero-title .line:nth-child(2) .reveal-char { transition-delay: .45s; }
body.hero-in .hero-badge span { transition-delay: .65s; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  background: var(--dark); color: var(--dark-fg);
  overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.1);
  /* padding-top clears the fixed .site-header (~84px) so the ticker text
     never scrolls in directly underneath the header and overlaps it */
  padding: 92px 0 18px;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-size: clamp(13px, 2vw, 16px); font-weight: 700; letter-spacing: .06em;
  padding: 0 28px; white-space: nowrap; position: relative;
}
.marquee-track span::after { content: '—'; position: absolute; right: -6px; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section { padding: clamp(64px, 11vw, 140px) clamp(20px, 4vw, 48px); position: relative; }
.section-head { margin-bottom: clamp(28px, 5vw, 56px); display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.section-index {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; font-weight: 400; color: var(--muted);
  padding-bottom: 8px; border-bottom: 2px solid var(--fg);
}
.section-index.dark { color: rgba(245,244,239,.6); border-color: var(--accent-2); }
.section-title { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 700; }

/* reveal-on-scroll base */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-line span, .reveal-word { display: inline-block; }

/* ==========================================================================
   01 Announce
   ========================================================================== */
.announce-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 860px) { .announce-grid { grid-template-columns: 1.1fr .9fr; gap: 60px; } }
.announce-title {
  font-family: var(--font-mincho); font-size: clamp(26px, 4.4vw, 46px); font-weight: 600; line-height: 1.45; margin: 0;
}
.announce-title .accent { color: var(--data); font-weight: 900; }
.announce-body p { margin: 0 0 16px; color: var(--fg); }
.announce-photo { margin-top: clamp(40px, 6vw, 72px); height: clamp(220px, 40vw, 480px); overflow: hidden; }
.announce-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .8s var(--ease); }
.announce-photo:hover img { transform: scale(1.04); }
.announce-overview { margin-top: clamp(20px, 3vw, 32px); background: #fff; }
.announce-overview img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   02 Concept (dark inverted)
   ========================================================================== */
.concept { background: var(--dark); color: var(--dark-fg); position: relative; overflow: hidden; }
.concept > *:not(.concept-graph) { position: relative; z-index: 1; }
.concept-graph { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .55; }
.concept-graph-label {
  position: absolute; z-index: 1; right: clamp(20px, 4vw, 48px); top: clamp(64px, 11vw, 140px);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: rgba(245,244,239,.35);
}
@media (max-width: 720px) { .concept-graph-label { display: none; } }
.concept-lead { font-size: 13px; letter-spacing: .2em; color: var(--dark-muted); margin: 0 0 14px; }
.concept-title {
  font-family: var(--font-mincho); font-size: clamp(28px, 6vw, 58px); font-weight: 600; line-height: 1.55; margin: 0 0 40px;
  max-width: 20ch;
}
.concept-title .reveal-word {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.concept-title.in-view .reveal-word { opacity: 1; transform: translateY(0); }
.concept-title .accent-line {
  display: inline-block; white-space: nowrap; font-size: clamp(13px, 3.6vw, 40px);
}
.concept-title .accent {
  color: var(--data-soft); font-family: var(--font-mono); font-weight: 400; letter-spacing: .01em;
}

.concept-flex { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 40px); }
.concept-emblem {
  width: clamp(160px, 22vw, 432px); height: auto; object-fit: contain; border-radius: 16px;
  background: var(--bg); padding: clamp(10px, 1.4vw, 20px);
  border: 1px solid rgba(255,255,255,.15); flex-shrink: 0;
}
.concept-body { max-width: 880px; flex: 1; min-width: 240px; }
.concept-body p { margin: 0 0 12px; color: rgba(245,244,239,.85); font-size: clamp(12px, 2.6vw, 28px); line-height: 1.55; }

.concept-figure {
  margin: clamp(40px, 6vw, 64px) auto 0; padding: clamp(20px, 3vw, 32px);
  background: var(--bg-soft); border-radius: 20px; max-width: 980px;
}
.concept-figure img { width: 100%; border-radius: 10px; }
.concept-figure figcaption {
  margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted); text-align: center;
}

/* ==========================================================================
   03 Programs
   ========================================================================== */
.program-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .program-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .program-grid { grid-template-columns: 1fr 1fr 1fr; } }

.program-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 24px; min-height: 236px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  overflow: hidden;
}
.program-card .program-arrow { margin-top: auto; }
.program-grid > :nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
.program-grid > :nth-child(3n) { border-right: 1px solid var(--line); }
@media (max-width: 999px) {
  .program-grid > :nth-child(2n) { border-right: 1px solid var(--line); }
  .program-grid > :nth-last-child(-n+3) { border-bottom: none; }
  .program-grid > :nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .program-card { border-right: 1px solid var(--line) !important; }
}

.program-card::before {
  content: ''; position: absolute; inset: 0; background: var(--dark);
  transform: translateY(100%); transition: transform .5s var(--ease); z-index: 0;
}
.program-card:hover::before { transform: translateY(0); }
.program-num, .program-name, .program-desc, .program-arrow { position: relative; z-index: 1; transition: color .4s var(--ease); }
.program-card:hover .program-num { color: var(--data-soft); }
.program-card:hover .program-name,
.program-card:hover .program-arrow { color: var(--dark-fg); }
.program-card:hover .program-desc { color: rgba(245,244,239,.65); }

.program-num { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--data); letter-spacing: .04em; }
.program-name { font-family: var(--font-latin); font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; margin-top: 22px; line-height: 1.4; }
.program-desc {
  font-family: var(--font-jp); font-size: 12.5px; font-weight: 400; color: var(--muted);
  margin: 10px 0 0; line-height: 1.7; max-width: 30ch;
}
.program-arrow { align-self: flex-end; font-size: 20px; margin-top: 20px; transition: transform .4s var(--ease); }
.program-card:hover .program-arrow { transform: translate(4px,-4px); }

/* ==========================================================================
   04 Gallery
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.4vw, 16px); }
.gallery-item { overflow: hidden; grid-column: span 4; aspect-ratio: 4/3; }
.gallery-item.span-2 { grid-column: span 4; aspect-ratio: 16/9; }
@media (min-width: 720px) {
  .gallery-item { grid-column: span 2; }
  .gallery-item.span-2 { grid-column: span 2; aspect-ratio: 4/3; }
}
.gallery-item { transition: transform .8s var(--ease); }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   05 Message (dark inverted)
   ========================================================================== */
.message { background: var(--dark); color: var(--dark-fg); }
.message-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 860px) { .message-grid { grid-template-columns: 1fr .56fr; gap: 60px; } }
.message-quote { position: relative; }
.quote-mark {
  position: absolute; top: -50px; left: -8px; font-size: 140px; font-weight: 900;
  color: rgba(63,111,209,.14); line-height: 1; font-family: Georgia, serif; z-index: 0;
}
.message-quote p {
  position: relative; z-index: 1; font-size: 18px; font-weight: 700; line-height: 1.75;
  margin: 0 0 22px; color: var(--dark-fg);
}
.message-quote p:last-child { margin-bottom: 0; }
.message-quote p.message-pull {
  font-family: var(--font-mincho); font-weight: 600;
  font-size: clamp(24px, 7.5vw, 64px); line-height: 1.2;
  color: var(--data-soft); margin: 34px 0; letter-spacing: .02em;
  white-space: nowrap;
}
.message-photo {
  width: 100%; max-width: 300px; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%;
  border-radius: 16px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.18);
}
.message-role { font-size: 24px; font-weight: 700; letter-spacing: .1em; color: var(--dark-muted); margin: 0 0 8px; }
.message-name { font-size: 24px; font-weight: 900; margin: 0 0 20px; }
.message-note { font-size: 12px; color: rgba(245,244,239,.4); line-height: 1.7; }

/* ==========================================================================
   06 SNS embeds
   ========================================================================== */
.sns-grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 860px) { .sns-grid { grid-template-columns: 1fr 1fr; } }

.sns-card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg-soft);
}
.sns-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.sns-card-name { font-family: var(--font-latin); font-weight: 800; font-size: 15px; }
.sns-card-link { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.sns-card-link:hover { color: var(--accent); }

.sns-stats-block { padding: 28px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sns-stat { display: flex; align-items: baseline; gap: 10px; }
.sns-stat-num { font-family: var(--font-mono); font-size: 32px; font-weight: 400; color: var(--data); }
.sns-stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.sns-stats-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }

.sns-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 10px 20px; border: 1.5px solid var(--fg); border-radius: 999px;
  font-size: 13px; font-weight: 700; align-self: flex-start;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.sns-cta:hover { background: var(--fg); color: var(--bg); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.cta-link {
  display: inline-flex; align-items: center; gap: 22px; padding: 20px 34px;
  border: 1.5px solid var(--fg); border-radius: 999px; transition: background .4s var(--ease), color .4s var(--ease);
}
.cta-link:hover { background: var(--fg); color: var(--bg); }
.cta-text { font-size: clamp(15px, 2vw, 18px); font-weight: 700; }
.cta-circle {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: transform .4s var(--ease);
}
.cta-link:hover .cta-circle { transform: rotate(45deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--dark-fg); padding: 64px clamp(20px, 4vw, 48px) 28px; }
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.2fr 1fr .6fr; } }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-crest {
  width: 48px; height: auto; flex-shrink: 0; background: var(--bg); border-radius: 10px;
  padding: 6px; border: 1px solid rgba(255,255,255,.15);
}
.footer-brand-title { font-family: var(--font-latin); font-size: 20px; font-weight: 800; letter-spacing: .04em; margin: 0 0 10px; }
.footer-brand-sub { font-size: 13px; color: var(--dark-muted); margin: 0; line-height: 1.8; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 13px; color: rgba(245,244,239,.75); width: fit-content; }
.footer-nav a:hover { color: var(--accent); }
.footer-sns { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 860px) { .footer-sns { align-items: flex-end; } }
.footer-sns a { font-size: 13px; color: rgba(245,244,239,.75); }
.footer-sns a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 22px; font-size: 11px; color: rgba(245,244,239,.4); letter-spacing: .02em;
}

/* ==========================================================================
   Opening intro
   ========================================================================== */
body.intro-active { overflow: hidden; height: 100vh; }

.intro {
  position: fixed; inset: 0; z-index: 800;
  background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 1; transition: opacity .7s var(--ease), transform .8s var(--ease);
}
.intro.closing { opacity: 0; transform: scale(1.04); pointer-events: none; }

.intro-photos { position: absolute; inset: 0; }
.intro-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: grayscale(20%) brightness(.85) contrast(1.05);
}
.intro-photos img.active { opacity: 1; transition: opacity .08s linear; }

.intro-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(13,26,48,.1) 0%, rgba(13,26,48,.55) 72%),
    linear-gradient(180deg, rgba(13,26,48,.4) 0%, rgba(13,26,48,.22) 40%, rgba(13,26,48,.55) 100%);
}

.intro-goo {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 0; height: 0;
  filter: url(#goo);
  opacity: 0;
}
.goo-blob {
  position: absolute; top: -35px; left: -35px; width: 70px; height: 70px;
  border-radius: 50%; background: var(--accent);
  transform: translate(120px, 0) scale(.6);
  transition: transform 1.1s var(--bounce);
}
.goo-blob:nth-child(2) { background: var(--accent-2); transform: translate(60px, -104px) scale(.6); transition-delay: .04s; }
.goo-blob:nth-child(3) { transform: translate(-60px, -104px) scale(.6); transition-delay: .08s; }
.goo-blob:nth-child(4) { background: var(--accent-2); transform: translate(-120px, 0) scale(.6); transition-delay: .12s; }
.goo-blob:nth-child(5) { transform: translate(-60px, 104px) scale(.6); transition-delay: .16s; }
.goo-blob:nth-child(6) { background: var(--accent-2); transform: translate(60px, 104px) scale(.6); transition-delay: .2s; }

.intro.run .intro-goo { opacity: .85; transition: opacity .3s var(--ease); }
.intro.run .goo-blob { transform: translate(0, 0) scale(1.2); }

.intro.text-in .intro-goo { opacity: 0; transition: opacity .6s var(--ease); }
.intro.text-in .goo-blob { transform: translate(190px, 0) scale(0); transition: transform .7s var(--ease); }
.intro.text-in .goo-blob:nth-child(2) { transform: translate(95px, -165px) scale(0); }
.intro.text-in .goo-blob:nth-child(3) { transform: translate(-95px, -165px) scale(0); }
.intro.text-in .goo-blob:nth-child(4) { transform: translate(-190px, 0) scale(0); }
.intro.text-in .goo-blob:nth-child(5) { transform: translate(-95px, 165px) scale(0); }
.intro.text-in .goo-blob:nth-child(6) { transform: translate(95px, 165px) scale(0); }

@media (max-width: 480px) {
  .intro-goo { transform: scale(.6); }
}

.intro-mark {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  display: flex; align-items: center; justify-content: center; gap: .03em;
  font-family: var(--font-latin); font-weight: 800; letter-spacing: .02em;
  font-size: clamp(64px, 20vw, 240px); line-height: 1;
  border: 2px solid rgba(255,255,255,.35); border-radius: 14px; padding: 0.06em 0.28em;
  background: rgba(13,26,48,.4);
  transform: translate(-50%, -50%); opacity: 1;
  transition: opacity .35s var(--ease);
}
.intro-mark span {
  display: inline-block; opacity: 0; color: transparent;
  background-clip: text; -webkit-background-clip: text; background-repeat: no-repeat;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)) drop-shadow(0 -1px 0 rgba(255,255,255,.3));
  transform: scale(.3) rotate(-20deg) translateY(.35em);
  transition: opacity .8s var(--bounce), transform 1s var(--bounce);
}
.intro-mark span:nth-child(1) { background-image: var(--lego-red); }
.intro-mark span:nth-child(2) { background-image: var(--lego-yellow); }
.intro-mark span:nth-child(3) { background-image: var(--lego-blue); }

.intro.run .intro-mark span { opacity: 1; transform: scale(1) rotate(0) translateY(0); }
.intro.run .intro-mark span:nth-child(1) { transition-delay: .08s; }
.intro.run .intro-mark span:nth-child(2) { transition-delay: .24s; }
.intro.run .intro-mark span:nth-child(3) { transition-delay: .4s; }

.intro.text-in .intro-mark { opacity: 0; transition: opacity .35s var(--ease); }
.intro.text-in .intro-mark span {
  transform: scale(1.35) translateY(-.4em); transition: transform .35s var(--ease);
}

.intro-text { position: relative; z-index: 2; text-align: center; padding: 0 24px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }

.intro-eyebrow {
  margin: 0 0 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em;
  color: var(--accent); opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.intro-title { margin: 0; overflow: visible; }
.intro-letters {
  display: inline-flex; font-family: var(--font-latin); font-weight: 800;
  font-size: clamp(44px, 11vw, 168px); letter-spacing: -.01em; color: #fff; line-height: 1;
}
.intro-letters span {
  display: inline-block; opacity: 0; color: transparent;
  background-clip: text; -webkit-background-clip: text; background-repeat: no-repeat;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)) drop-shadow(0 -1px 0 rgba(255,255,255,.3));
  transform: translateY(.6em) scale(.4) rotate(-10deg);
  transition: opacity .8s var(--bounce), transform 1s var(--bounce);
}
.intro-letters span:nth-child(1) { background-image: var(--lego-red); }
.intro-letters span:nth-child(2) { background-image: var(--lego-yellow); }
.intro-letters span:nth-child(3) { background-image: var(--lego-blue); }
.intro-letters span:nth-child(4) { background-image: var(--lego-green); }
.intro-letters span:nth-child(6) { background-image: var(--lego-yellow); }
.intro-letters span:nth-child(7) { background-image: var(--lego-red); }
.intro-letters span:nth-child(8) { background-image: var(--lego-blue); }
.intro-letters span:nth-child(9) { background-image: var(--lego-green); }
.intro-letters span:nth-child(10) { background-image: var(--lego-yellow); }
.intro-letters span:nth-child(11) { background-image: var(--lego-red); }
.intro-gap { width: .34em; }

.intro-sub {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  color: rgba(246,239,220,.7); opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s;
}

.intro.text-in .intro-eyebrow { opacity: 1; transform: translateY(0); }
.intro.text-in .intro-letters span { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
.intro.text-in .intro-letters span:nth-child(1) { transition-delay: .08s; }
.intro.text-in .intro-letters span:nth-child(2) { transition-delay: .16s; }
.intro.text-in .intro-letters span:nth-child(3) { transition-delay: .24s; }
.intro.text-in .intro-letters span:nth-child(4) { transition-delay: .32s; }
.intro.text-in .intro-letters span:nth-child(6) { transition-delay: .45s; }
.intro.text-in .intro-letters span:nth-child(7) { transition-delay: .53s; }
.intro.text-in .intro-letters span:nth-child(8) { transition-delay: .61s; }
.intro.text-in .intro-letters span:nth-child(9) { transition-delay: .69s; }
.intro.text-in .intro-letters span:nth-child(10) { transition-delay: .77s; }
.intro.text-in .intro-letters span:nth-child(11) { transition-delay: .85s; }
.intro.text-in .intro-sub { opacity: 1; transform: translateY(0); transition-delay: 1.1s; }

.intro-skip {
  position: absolute; z-index: 3; right: clamp(20px, 4vw, 48px); bottom: 28px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: rgba(246,239,220,.75);
  background: none; border: 1px solid rgba(246,239,220,.3); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: border-color .3s, color .3s;
}
.intro-skip:hover { color: var(--accent); border-color: var(--accent); }

.intro-progress {
  position: absolute; z-index: 3; left: 0; bottom: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ==========================================================================
   Cursor dot (desktop only)
   ========================================================================== */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 999; mix-blend-mode: difference;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s, width .25s, height .25s;
}
@media (hover: hover) and (pointer: fine) { .cursor-dot.active { opacity: 1; } }
.cursor-dot.grow { width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal, .reveal-word, .hero-title .reveal-char, .hero-eyebrow span, .hero-badge span { opacity: 1 !important; transform: none !important; }
}
