@charset "UTF-8";

/* ==========================================================================
   OMIYAcappella — prototype stylesheet
   Palette is derived from the official logo / X banner:
   yellow, coral, teal, green circles + orange accent on "大宮".
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --c-yellow: #f2c93b;
  --c-coral: #f0938e;
  --c-teal: #43bfa0;
  --c-green: #40c246;
  --c-accent: #ef8b2c;
  --c-accent-dark: #d2731a;
  --c-pale-blue: #c3d0ee;
  --c-pale-yellow: #fbe9b0;

  /* Neutrals */
  --ink: #14120f;
  --ink-70: #4a4741;
  --ink-45: #85817a;
  --line: #e4e0d8;
  --paper: #fcfaf5;
  --paper-2: #f5f1e8;
  --white: #ffffff;

  /* Type */
  --f-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", sans-serif;
  --f-en: "Outfit", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  font-feature-settings: "palt" 1;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--c-accent);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section {
  position: relative;
  padding-block: clamp(90px, 13vw, 170px);
}

.section--tint {
  background: var(--paper-2);
}

/* Section heading: "01 — ABOUT" + large JP title, echoing the numbered
   MESSAGE 01 / INTERVIEW 02 rhythm of the reference site. */
.sec-head {
  margin-bottom: clamp(44px, 6vw, 80px);
}

.sec-head__index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.sec-head__index::after {
  content: "";
  flex: 0 0 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.sec-head__title {
  margin-top: 14px;
  font-size: clamp(28px, 5.2vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.sec-head__lead {
  margin-top: 22px;
  max-width: 46em;
  color: var(--ink-70);
  font-size: clamp(14px, 1.6vw, 16px);
}

/* Ghost numeral floating behind each section */
.ghost-num {
  position: absolute;
  top: clamp(30px, 5vw, 60px);
  right: var(--gutter);
  font-family: var(--f-en);
  font-size: clamp(120px, 22vw, 300px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(5px);
}

.btn--accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--white);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: var(--white);
}

.btn--lg {
  padding: 20px 44px;
  font-size: 15px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Decorative brand shapes */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco--diamond {
  width: clamp(70px, 9vw, 130px);
  aspect-ratio: 1;
  transform: rotate(45deg);
}

.deco--blue { background: var(--c-pale-blue); opacity: 0.55; }
.deco--yellow { background: var(--c-pale-yellow); opacity: 0.75; }

/* Several separators are emoji-presentation by default on phone fonts, where
   they turn coloured and outsized. VS15 pins them to the text glyph. */
.text-glyph {
  font-variant-emoji: text;
}

/* Four brand circles, reused in loader / hero / footer */
.circles {
  display: flex;
  align-items: center;
}

.circles span {
  display: block;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.circles span:nth-child(1) { background: var(--c-yellow); }
.circles span:nth-child(2) { background: var(--c-coral); }
.circles span:nth-child(3) { background: var(--c-teal); }
.circles span:nth-child(4) { background: var(--c-green); }

/* --------------------------------------------------------------------------
   4. Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader .circles span {
  width: clamp(30px, 6vw, 52px);
  aspect-ratio: 1;
  opacity: 0;
  animation: pop 0.55s var(--ease) forwards;
}

.loader .circles span:nth-child(1) { margin-right: -14px; animation-delay: 0.05s; }
.loader .circles span:nth-child(2) { margin-right: -14px; animation-delay: 0.18s; }
.loader .circles span:nth-child(3) { margin-right: -14px; animation-delay: 0.31s; }
.loader .circles span:nth-child(4) { animation-delay: 0.44s; }

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.6); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.header.is-stuck {
  background: rgba(252, 250, 245, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-block: 6px;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  padding: 11px 24px;
  font-size: 13px;
}

/* Language switch — both options always visible, so the reader can see the
   other one exists rather than having to guess it does. */
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang__opt {
  font-family: var(--f-en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.lang__opt:hover { color: var(--ink); }

.lang__opt.is-current {
  color: var(--ink);
  cursor: default;
}

.lang__sep {
  width: 1px;
  height: 11px;
  background: var(--line);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  z-index: 120;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22.2px; }
.nav-toggle span:nth-child(3) { top: 27.4px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(5.2px) rotate(38deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateX(-50%) translateY(-5.2px) rotate(-38deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 90px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--f-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(29px, 4.35vw, 60px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0.005em;
}

.hero__title .accent {
  color: var(--c-accent);
}

.hero__title > span {
  display: block;
  white-space: nowrap;
}

.hero__sub {
  margin-top: 30px;
  max-width: 34em;
  color: var(--ink-70);
  font-size: clamp(14px, 1.7vw, 16.5px);
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
}

.hero__photo {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 220px 220px 18px 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(20, 18, 15, 0.55);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroPan 18s ease-in-out infinite alternate;
}

@keyframes heroPan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -2%, 0); }
}

.hero__circles {
  position: absolute;
  left: -26px;
  bottom: 42px;
  z-index: 2;
}

.hero__circles span {
  width: clamp(38px, 5vw, 64px);
  aspect-ratio: 1;
}

.hero__circles span:nth-child(-n + 3) {
  margin-right: clamp(-20px, -2vw, -12px);
}

.hero .deco--blue { top: 6%; right: -3%; }
.hero .deco--yellow { bottom: 4%; right: 16%; }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.hero__scroll::after {
  content: "";
  width: 62px;
  height: 1px;
  background: var(--ink-45);
  transform-origin: left;
  animation: scrollLine 2.1s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* --------------------------------------------------------------------------
   7. Marquee band
   -------------------------------------------------------------------------- */
.marquee {
  padding-block: 26px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 42px;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  font-family: var(--f-en);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 42px;
}

.marquee__track span::after {
  /* U+2733 followed by VS15: without it iOS and Android render the asterisk as
     a colour emoji. */
  content: "\2733 \FE0E ";
  color: var(--c-accent);
  font-variant-emoji: text;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.about__photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text p + p {
  margin-top: 1.6em;
}

.about__text strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--c-pale-yellow) 62%);
}

/* Activity creed — six cards, so a three-up grid fills both rows exactly.
   The numeral sits in a logo-coloured disc, echoing the four circles. */
.creed {
  margin-top: clamp(50px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.creed__item {
  padding: 30px 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.creed__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -30px rgba(20, 18, 15, 0.4);
}

.creed__no {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* The logo palette, cycled — dark text keeps each disc readable. */
.creed__item:nth-child(1) .creed__no { background: var(--c-yellow); }
.creed__item:nth-child(2) .creed__no { background: var(--c-coral); }
.creed__item:nth-child(3) .creed__no { background: var(--c-teal); }
.creed__item:nth-child(4) .creed__no { background: var(--c-green); }
.creed__item:nth-child(5) .creed__no { background: var(--c-accent); }
.creed__item:nth-child(6) .creed__no { background: var(--c-pale-blue); }

.creed__title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.creed__text {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

/* Menu heading — the logo circles, the word, then a rule running out. */
.menu-head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 26px);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.menu-head__circles {
  flex: none;
}

.menu-head__circles span {
  width: clamp(15px, 1.8vw, 22px);
  aspect-ratio: 1;
}

.menu-head__circles span:nth-child(-n + 3) {
  margin-right: clamp(-8px, -0.8vw, -5px);
}

.menu-head__title {
  font-family: var(--f-en);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

.menu-head__rule {
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   8b. Home page — the way in to each section
   -------------------------------------------------------------------------- */
.portal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: clamp(30px, 3.4vw, 44px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  isolation: isolate;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
    border-color 0.55s var(--ease);
}

/* One logo colour each, as a rule along the top and a wash that rises on hover. */
.portal__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--portal-tone, var(--c-accent));
  transition: height 0.55s var(--ease);
}

.portal__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    170deg,
    color-mix(in srgb, var(--portal-tone, var(--c-accent)) 16%, transparent),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.portal__card:nth-child(1) { --portal-tone: var(--c-yellow); }
.portal__card:nth-child(2) { --portal-tone: var(--c-coral); }
.portal__card:nth-child(3) { --portal-tone: var(--c-teal); }
.portal__card:nth-child(4) { --portal-tone: var(--c-green); }

.portal__card:hover,
.portal__card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: 0 30px 56px -34px rgba(20, 18, 15, 0.45);
}

.portal__card:hover::before,
.portal__card:focus-visible::before {
  height: 7px;
}

.portal__card:hover::after,
.portal__card:focus-visible::after {
  opacity: 1;
}

/* The numeral belongs to the page furniture, echoing the section ghosts. */
.portal__ghost {
  position: absolute;
  top: -14px;
  right: 10px;
  z-index: -1;
  font-family: var(--f-en);
  font-size: clamp(96px, 11vw, 150px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
}

.portal__en {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.portal__title {
  margin-top: 12px;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1.45;
}

.portal__text {
  margin-top: 14px;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-70);
}

.portal__go {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transition: background 0.55s var(--ease);
}

.portal__card:hover .portal__rule {
  background: var(--ink);
}

.portal__arrow {
  font-family: var(--f-en);
  font-size: 20px;
  color: var(--ink);
  transition: transform 0.45s var(--ease);
}

.portal__card:hover .portal__arrow {
  transform: translateX(6px);
}

/* Closing invitation — warm cream so it settles into the page rather than
   competing with the footer. */
.join {
  padding: clamp(40px, 6vw, 76px) clamp(28px, 5vw, 64px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(242, 201, 59, 0.16), transparent 58%),
    radial-gradient(100% 120% at 92% 100%, rgba(67, 191, 160, 0.14), transparent 60%),
    var(--paper-2);
  text-align: center;
}

.join__title {
  font-size: clamp(22px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.5;
}

.join__text {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: 14.5px;
  color: var(--ink-70);
}

.join__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}



/* --------------------------------------------------------------------------
   9. Gallery
   -------------------------------------------------------------------------- */
.gal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.gal-filter button {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-70);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.gal-filter button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.gal-filter button[aria-pressed="true"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--white);
}

/* Grid — the featured item spans two columns on wide screens. */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gal-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  aspect-ratio: 4 / 3;
}

.gal-item--wide {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 16 / 11;
}

.gal-item.is-hidden {
  display: none;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gal-item:hover img,
.gal-item:focus-visible img {
  transform: scale(1.05);
}

.gal-item__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 52px 22px 20px;
  background: linear-gradient(transparent, rgba(12, 11, 9, 0.88));
  color: var(--paper);
  pointer-events: none;
}

.gal-item__kind {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(252, 250, 245, 0.22);
  backdrop-filter: blur(6px);
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gal-item--video .gal-item__kind {
  background: var(--c-accent);
}

.gal-item__title {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.gal-item--wide .gal-item__title {
  font-size: clamp(17px, 2.2vw, 22px);
}

.gal-item__sub {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: rgba(252, 250, 245, 0.75);
}

/* Audio-only posts: the source clip is a screen recording of a voice memo,
   so the card is drawn instead — brand waveform on ink. */
.gal-item--audio {
  background: var(--ink);
  border-color: var(--ink);
}

.gal-item--audio .gal-item__wave {
  position: absolute;
  inset: 0;
  background: url("../img/wave.svg") center / 86% 46% no-repeat;
  opacity: 0.75;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.gal-item--audio:hover .gal-item__wave,
.gal-item--audio:focus-visible .gal-item__wave {
  opacity: 1;
  transform: scaleY(1.12);
}

.gal-item--audio .gal-item__meta {
  background: linear-gradient(transparent, rgba(20, 18, 15, 0.95) 55%);
}

.gal-item--audio .gal-item__kind {
  background: var(--c-teal);
}

/* Play badge on video items */
.gal-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(252, 250, 245, 0.92);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}

.gal-item:hover .gal-item__play {
  transform: translate(-50%, -50%) scale(1.09);
}

.gal-item__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 19px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.gal-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-45);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(12, 11, 9, 0.93);
  backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox__figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: 78vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lightbox__stage img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* Served from this site, so the browser's own player — and its fullscreen
   button — handles playback. */
.lightbox__video {
  max-width: min(1200px, 100%);
  max-height: 78vh;
  border-radius: 10px;
  background: #000;
}

/* Audio posts: the clip is a screen recording, so the frame is covered by the
   brand waveform and only the controls are shown. */
.lightbox__audioshell {
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 44px) clamp(20px, 3vw, 34px) clamp(18px, 2.5vw, 26px);
  border-radius: 18px;
  background: var(--ink);
  border: 1px solid rgba(252, 250, 245, 0.16);
}

.lightbox__wave {
  display: block;
  height: clamp(110px, 20vh, 190px);
  background: url("../img/wave.svg") center / 100% 100% no-repeat;
}

.lightbox__audioshell audio {
  display: block;
  width: 100%;
  margin-top: 22px;
}

.lightbox__fallback {
  color: rgba(252, 250, 245, 0.8);
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

.lightbox__fallback a {
  border-bottom: 1px solid currentColor;
}

.lightbox__cap {
  color: rgba(252, 250, 245, 0.8);
  font-size: 13.5px;
  text-align: center;
  line-height: 1.8;
}

.lightbox__cap a {
  border-bottom: 1px solid currentColor;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid rgba(252, 250, 245, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--paper);
  color: var(--ink);
}

.lightbox__close {
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 48px;
  height: 48px;
  font-size: 20px;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 18px;
}

.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }

/* --------------------------------------------------------------------------
   10. Projects / 企画募集
   -------------------------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.flow__item {
  position: relative;
  padding: 30px 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.flow__item::before {
  counter-increment: step;
  content: "STEP 0" counter(step);
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-accent);
}

.flow__title {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
}

.flow__text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

.req {
  margin-top: clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(30px, 4vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.req__title {
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.5;
}

.req__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.req__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-45);
  line-height: 1.85;
}

.req__list li {
  display: flex;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  line-height: 1.8;
}

.req__list li:first-child {
  padding-top: 0;
}

.req__list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--c-teal);
}

.req__list em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-45);
  margin-top: 4px;
}

.faq {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faq__item {
  padding: 28px 26px;
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.section--tint .faq__item {
  background: var(--white);
}

.faq__q {
  display: flex;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
}

.faq__q::before {
  content: "Q.";
  font-family: var(--f-en);
  color: var(--c-accent);
  font-weight: 700;
}

.faq__a {
  margin-top: 12px;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

.projects__actions {
  margin-top: clamp(40px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   10a. Sub-categories — one shared frame for every block inside About
   -------------------------------------------------------------------------- */
.subsec + .subsec {
  margin-top: clamp(56px, 8vw, 110px);
}

.subsec__head {
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 3px solid var(--c-accent);
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.subsec__no {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.subsec__title {
  margin-top: 8px;
  font-size: clamp(21px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.45;
}

.subsec__lead {
  margin-top: 14px;
  max-width: 46em;
  font-size: clamp(13.5px, 1.6vw, 15px);
  color: var(--ink-70);
}

.subsec__actions {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   10b. Rules digest (inside About) — links out to rules.html
   -------------------------------------------------------------------------- */
.rules-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.rules-chip {
  padding: 24px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.rules-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -32px rgba(20, 18, 15, 0.4);
}

.rules-chip__no {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-accent);
}

.rules-chip__title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.rules-chip__text {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   10c. 企画募集 — timeline rebuilt from the LINE group
   -------------------------------------------------------------------------- */

.line-tl {
  position: relative;
  padding-left: clamp(24px, 4vw, 44px);
  border-left: 1px solid var(--line);
}

.line-post {
  position: relative;
  padding-bottom: clamp(26px, 3.5vw, 40px);
}

.line-post:last-child {
  padding-bottom: 0;
}

.line-post::before {
  content: "";
  position: absolute;
  left: calc(clamp(24px, 4vw, 44px) * -1 - 5.5px);
  top: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 5px var(--paper);
}

.line-post--done::before { background: var(--ink-45); }
.line-post--open::before { background: var(--c-accent); }

.line-post__card {
  padding: 24px 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.line-post__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -32px rgba(20, 18, 15, 0.45);
}

.line-post__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.line-post__date {
  font-family: var(--f-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-45);
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag--kind { background: var(--paper-2); color: var(--ink-70); }
.tag--note { background: var(--c-pale-blue); color: #2f3d63; }
.tag--open { background: var(--c-accent); color: var(--white); }
.tag--filled { background: var(--c-teal); color: var(--white); }
.tag--done { background: var(--paper-2); color: var(--ink-45); }
.tag--live {
  background: var(--c-pale-yellow);
  color: #7a5a11;
}

/* Entries that arrived from the LINE feed rather than the page source. */
.line-post.is-live::before {
  background: var(--c-yellow);
}

.line-post__song {
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 900;
  line-height: 1.55;
}

.line-post__song span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-45);
}

.line-post__body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
  color: var(--ink-70);
}

.line-post__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.line-post__foot div {
  font-size: 12.5px;
}

.line-post__foot dt {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.line-post__foot dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.masked {
  color: var(--ink-45);
  font-weight: 500;
  font-style: normal;
  background: repeating-linear-gradient(
    -45deg,
    var(--paper-2),
    var(--paper-2) 4px,
    transparent 4px,
    transparent 8px
  );
  padding: 1px 8px;
  border-radius: 4px;
}

.line-post.is-collapsed {
  display: none;
}

.line-refs {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

/* Reference tracks the poster linked to, shown with their thumbnail. */
.line-ref {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.line-ref:hover {
  border-color: var(--ink);
  transform: translateX(3px);
}

.line-ref img {
  width: 112px;
  height: 63px;
  flex: none;
  border-radius: 7px;
  object-fit: cover;
  background: var(--paper-2);
}

.line-ref__body {
  min-width: 0;
}

.line-ref__label {
  display: block;
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.line-ref__title {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.line-cta {
  margin-top: clamp(40px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   10d. Embedded X posts
   -------------------------------------------------------------------------- */
.tweet-grid {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.x-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.x-account {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.4s var(--ease);
}

.x-account:hover {
  border-color: var(--ink);
}

.x-account img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: none;
}

.x-account__name {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.x-account__handle {
  display: block;
  font-family: var(--f-en);
  font-size: 13px;
  color: var(--ink-45);
}

/* Self-contained post cards — no third-party script involved. */
.xpost {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.xpost:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -32px rgba(20, 18, 15, 0.4);
}

.xpost__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.xpost__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}

.xpost__name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.xpost__handle {
  font-family: var(--f-en);
  font-size: 12.5px;
  color: var(--ink-45);
}

.xpost__text {
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}

.xpost__quote {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-45);
  white-space: pre-line;
}

.xpost__media {
  margin: 16px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}

.xpost__media img,
.xpost__media video {
  display: block;
  width: 100%;
  height: auto;
}

.xpost__media video {
  background: #000;
}

.xpost__media--link {
  position: relative;
  display: block;
}

.xpost__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(252, 250, 245, 0.92);
  display: grid;
  place-items: center;
}

.xpost__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 16px solid var(--ink);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.xpost__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.xpost__date,
.xpost__link {
  font-family: var(--f-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.xpost__date {
  color: var(--ink-45);
}

.xpost__link {
  color: var(--c-accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Styles the anchor that the widget replaces, so a blocked embed still
   reads as a deliberate link rather than a broken box. */

/* --------------------------------------------------------------------------
   12. Contact form
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

.contact__aside p {
  color: var(--ink-70);
  font-size: 14.5px;
}

.contact__direct {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.contact__direct a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.contact__direct a:hover {
  border-color: var(--ink);
  transform: translateX(4px);
}

.contact__direct .label,
.contact__direct .value {
  display: block;
}

.contact__direct .label {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.contact__direct .value {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
}

.form {
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.field + .field {
  margin-top: 24px;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.field__req {
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--c-coral);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.field__req--any {
  background: var(--paper-2);
  color: var(--ink-45);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 15px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--white);
}

.field__hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-45);
}

.field__error {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #cf4b4b;
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #cf4b4b;
}

.field.has-error .field__error {
  display: block;
}

/* Part checkboxes — a wrapping row of small toggles. */
.field--checks .field__label {
  display: flex;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checks label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.checks label:hover {
  border-color: var(--ink);
}

.checks input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--c-accent);
}

.checks label:has(input:checked) {
  border-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 10%, var(--white));
}

.field--check label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  cursor: pointer;
}

.field--check input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: none;
  accent-color: var(--c-accent);
}

.form__submit {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
}

.form__status {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.8;
  display: none;
}

.form__status.is-shown {
  display: block;
}

.form__status.is-ok {
  background: #eaf6f1;
  color: #1d6b52;
}

.form__note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-45);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(60px, 8vw, 96px) 34px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(34px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(252, 250, 245, 0.16);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
}

.footer__logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.footer__tagline {
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
  line-height: 1.7;
}

.footer__lead {
  margin-top: 14px;
  max-width: 32em;
  font-size: 13.5px;
  color: rgba(252, 250, 245, 0.62);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer__nav h3 {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(252, 250, 245, 0.5);
  margin-bottom: 16px;
}

.footer__nav li + li {
  margin-top: 11px;
}

.footer__nav a {
  font-size: 14px;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer__nav a:hover {
  color: var(--c-accent);
  padding-left: 5px;
}

.footer__bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(252, 250, 245, 0.45);
  line-height: 1.8;
}

.footer__credits {
  max-width: 62ch;
}

.footer__credits a {
  border-bottom: 1px solid rgba(252, 250, 245, 0.3);
}

/* Prototype ribbon — remove before production */

/* --------------------------------------------------------------------------
   14. Rules sub-page
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px));
  padding-bottom: clamp(50px, 7vw, 90px);
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.page-hero__title {
  font-size: clamp(30px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.3;
}

.page-hero__en {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.breadcrumb {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-45);
}

.breadcrumb a {
  border-bottom: 1px solid var(--line);
}

.rule-block + .rule-block {
  margin-top: clamp(40px, 5vw, 64px);
}

.rule-block {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.rule-block:last-of-type {
  border-bottom: 0;
}

.rule-block__no {
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-accent);
}

.rule-block__title {
  margin-top: 8px;
  font-size: clamp(20px, 2.8vw, 27px);
  font-weight: 900;
  line-height: 1.5;
}

.rule-list li {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.9;
}

.rule-list li + li {
  margin-top: 14px;
}

.rule-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--c-accent);
}

.rule-list li.is-warn::before {
  background: var(--c-coral);
}

.rule-note {
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 3px solid var(--c-yellow);
  background: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .flow,
  .creed { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .posts,
  .tweet-grid { grid-template-columns: 1fr 1fr; }
  .req { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item--wide { grid-column: span 2; grid-row: auto; }
  .contact__grid,
  .footer__top { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; }
  .hero__photo { aspect-ratio: 16 / 11; border-radius: 18px; }
  .hero__circles { left: auto; right: 14px; bottom: -22px; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }

  /* A backdrop-filter makes an element the containing block for fixed
     descendants, so the stuck header was trapping this overlay inside its own
     76px bar once the page had scrolled. */
  body.is-locked .header.is-stuck {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  /* Keeps the logo above the overlay, so the bar still reads as a header. */
  body.is-locked .brand {
    position: relative;
    z-index: 120;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(252, 250, 245, 0.9);
    backdrop-filter: blur(18px) saturate(160%);
    padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
      visibility 0.45s var(--ease);
    z-index: 110;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }

  .nav__link {
    font-size: 22px;
    font-weight: 900;
  }

  .nav__cta { margin-top: 10px; }

  .nav__lang { margin-top: 4px; }
  .lang { padding: 9px 18px; gap: 12px; }
  .lang__opt { font-size: 14px; }
  .lang__sep { height: 14px; }

  .rule-block { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { line-height: 1.85; }
  .about__body { grid-template-columns: 1fr; }
  .creed,
  .flow,
  .posts,
  .portal,
  .tweet-grid { grid-template-columns: 1fr; }
  .portal__card { min-height: 0; }
  .gal-grid { grid-template-columns: 1fr; }
  .gal-item--wide { grid-column: auto; }
  .gal-item { aspect-ratio: 4 / 3; }
  /* The statement graphics are 16:9 — crop them as little as possible. */
  .gal-item[data-kind="photo"] { aspect-ratio: 16 / 10; }
  /* Lift the play badge clear of the two-line caption on narrow screens. */
  .gal-item__play { top: 38%; width: 58px; height: 58px; }
  .line-post__foot { gap: 8px 18px; }
  .hero__scroll { display: none; }

  /* Off the media: at this width the arrows would sit on top of the player. */
  .lightbox__nav {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .lightbox__nav--prev { left: calc(50% - 58px); }
  .lightbox__nav--next { right: calc(50% - 58px); }
  .lightbox__figure { padding-bottom: 74px; }
}

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