/* =========================================================
   BASOQUIAT Inc. — Corporate Site
   Design system: WATERCOLOR × MOSAIC
   ========================================================= */

:root {
  --white: #ffffff;
  --ink: #121212;
  --ink-soft: #4a4a48;
  --line: #dcdad4;
  --line-strong: #121212;
  --paper: #fafaf8;

  /* watercolor accents — sampled from the brand visual, used sparingly */
  --wc-yellow: #d9b31a;
  --wc-red: #c33726;
  --wc-teal: #1f8f8a;
  --wc-purple: #3c2a5c;

  --font-display: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Space Grotesk", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 12vw, 160px);
  --max: 1320px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  z-index: 200;
  transition: top 0.2s var(--ease);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

/* ---------- mosaic system ----------
   BASOQUIAT's variable brand symbol. Grid of grayscale cells that is
   never identical twice — different placement + tone combination per
   instance — but always drawn from the same underlying rule (a small
   4x3 cell grid, four filled cells, one dominant + three supporting
   tones). Represents the idea that the shape of the creative work
   changes with the medium, while the underlying system stays BASOQUIAT. */

:root {
  --mos-1: #121212; /* black */
  --mos-2: #55554f; /* dark gray */
  --mos-3: #9c9c95; /* medium gray */
  --mos-4: #d2d2cc; /* light gray */
}

.mosaic { display: inline-grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; flex-shrink: 0; }
.mosaic span { display: block; }
.mosaic--mark { width: 32px; height: 24px; }
.mosaic--tiny { width: 18px; height: 14px; gap: 1.5px; }

.mosaic--mark.on-dark span { background: var(--white); opacity: 0.92; }
.mosaic--mark.on-dark span:nth-child(2) { opacity: 0.55; }
.mosaic--mark.on-dark span:nth-child(3) { opacity: 0.75; }
.mosaic--mark.on-dark span:nth-child(4) { opacity: 0.4; }

/* variant A — header */
.mosaic--a span:nth-child(1) { grid-column: 1/3; grid-row: 1/3; background: var(--mos-1); }
.mosaic--a span:nth-child(2) { grid-column: 3/4; grid-row: 1/2; background: var(--mos-3); }
.mosaic--a span:nth-child(3) { grid-column: 4/5; grid-row: 2/4; background: var(--mos-2); }
.mosaic--a span:nth-child(4) { grid-column: 1/2; grid-row: 3/4; background: var(--mos-4); }

/* variant B — about */
.mosaic--b span:nth-child(1) { grid-column: 2/4; grid-row: 1/2; background: var(--mos-2); }
.mosaic--b span:nth-child(2) { grid-column: 1/2; grid-row: 1/4; background: var(--mos-1); }
.mosaic--b span:nth-child(3) { grid-column: 4/5; grid-row: 1/4; background: var(--mos-3); }
.mosaic--b span:nth-child(4) { grid-column: 2/3; grid-row: 3/4; background: var(--mos-4); }

/* variant C — services */
.mosaic--c span:nth-child(1) { grid-column: 1/2; grid-row: 1/4; background: var(--mos-1); }
.mosaic--c span:nth-child(2) { grid-column: 2/4; grid-row: 1/2; background: var(--mos-3); }
.mosaic--c span:nth-child(3) { grid-column: 3/5; grid-row: 2/3; background: var(--mos-2); }
.mosaic--c span:nth-child(4) { grid-column: 4/5; grid-row: 3/4; background: var(--mos-4); }

/* variant D — works */
.mosaic--d span:nth-child(1) { grid-column: 1/3; grid-row: 2/4; background: var(--mos-2); }
.mosaic--d span:nth-child(2) { grid-column: 3/4; grid-row: 1/3; background: var(--mos-1); }
.mosaic--d span:nth-child(3) { grid-column: 1/2; grid-row: 1/2; background: var(--mos-4); }
.mosaic--d span:nth-child(4) { grid-column: 4/5; grid-row: 1/4; background: var(--mos-3); }

/* variant E — company */
.mosaic--e span:nth-child(1) { grid-column: 2/5; grid-row: 1/2; background: var(--mos-3); }
.mosaic--e span:nth-child(2) { grid-column: 1/2; grid-row: 1/4; background: var(--mos-1); }
.mosaic--e span:nth-child(3) { grid-column: 2/3; grid-row: 2/4; background: var(--mos-2); }
.mosaic--e span:nth-child(4) { grid-column: 4/5; grid-row: 3/4; background: var(--mos-4); }

/* variant F — clients */
.mosaic--f span:nth-child(1) { grid-column: 1/4; grid-row: 3/4; background: var(--mos-2); }
.mosaic--f span:nth-child(2) { grid-column: 1/2; grid-row: 1/3; background: var(--mos-1); }
.mosaic--f span:nth-child(3) { grid-column: 3/5; grid-row: 1/2; background: var(--mos-4); }
.mosaic--f span:nth-child(4) { grid-column: 4/5; grid-row: 2/4; background: var(--mos-3); }

/* variant G — contact */
.mosaic--g span:nth-child(1) { grid-column: 1/3; grid-row: 1/2; background: var(--mos-1); }
.mosaic--g span:nth-child(2) { grid-column: 3/5; grid-row: 1/3; background: var(--mos-2); }
.mosaic--g span:nth-child(3) { grid-column: 1/2; grid-row: 2/4; background: var(--mos-3); }
.mosaic--g span:nth-child(4) { grid-column: 2/4; grid-row: 3/4; background: var(--mos-4); }

/* ---------- typography ---------- */

.eyebrow-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-head .jp-label {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

section { position: relative; }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logotype {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
}
.nav-toggle span {
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--white);
  z-index: 99;
  padding: 40px var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}
@media (max-width: 699px) {
  .hero { min-height: 88svh; }
  .hero-media img { object-position: 50% 32%; }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 45%, rgba(255,255,255,0.94) 92%);
}
.hero-content {
  position: relative;
  padding: calc(68px + var(--section-pad) * 0.5) var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.hero-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 8.6vw, 108px);
  letter-spacing: -0.01em;
  line-height: 0.98;
  color: var(--ink);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  font-size: 13px;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}
.hero-meta .divider { width: 1px; height: 12px; background: var(--line-strong); display: inline-block; }

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.hero-scroll .line { width: 1px; height: 30px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--ink);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
@media (min-width: 700px) { .hero-scroll { display: flex; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll .line::after { animation: none; top: 0; } }

/* ---------- about ---------- */

.about { padding: var(--section-pad) 0; }
.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.about-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 16px;
}
.about-body p { color: var(--ink); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- works ---------- */

.works { padding: var(--section-pad) 0; }

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.work-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.work-card .work-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.work-card .work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-media img,
.work-card:focus-visible .work-media img { transform: scale(1.03); }

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px 0;
}
.work-cat {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.work-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: 6px;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  width: fit-content;
}
.work-card:hover .work-link .arrow,
.work-card:focus-visible .work-link .arrow { transform: translateX(4px); }
.work-link .arrow { display: inline-block; transition: transform 0.25s var(--ease); }

/* 01 — MOVIE : full-width hero feature, designed panel (no live embed / no fetched frame) */
.work-movie { grid-column: 1 / -1; }
.work-movie .work-media {
  aspect-ratio: 21 / 10;
  background:
    linear-gradient(120deg, rgba(217,179,26,0.16), rgba(31,143,138,0.14) 45%, rgba(60,42,92,0.22)),
    var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-movie .play-mark {
  display: flex;
  align-items: center;
  gap: 22px;
}
.work-movie .play-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.work-movie .play-circle svg { width: 20px; height: 20px; }
.work-movie .movie-word {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.01em;
}
.work-movie .work-meta { padding-left: 4px; }
.work-movie .work-title { font-size: clamp(22px, 2.6vw, 32px); }

/* 02 + 03 — DOCUMENTARY (large, jacket+disc composite) + ONIHIME (medium-large), asymmetric pair */
.works-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.work-doc-composite {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--white);
}
.work-doc-composite .work-media { background: var(--white); }
.work-media--jacket { aspect-ratio: 1800 / 1212; }
.work-media--jacket img { object-fit: contain; padding: 10px; }
.work-media--disc {
  aspect-ratio: 1 / 1;
  max-width: 46%;
}
.work-media--disc img { object-fit: contain; padding: 14px; }

.work-doc .work-title { font-size: clamp(20px, 2.2vw, 26px); }
.work-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.6;
}

.work-onihime .work-media {
  aspect-ratio: 1200 / 1000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-onihime .work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.work-onihime .work-title { font-size: clamp(20px, 2.2vw, 26px); }

@media (min-width: 860px) {
  .works-pair { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .work-onihime .work-media { aspect-ratio: 3 / 4; }
}

/* 04 — SHONEN SUNDAY EDITORIAL ARCHIVE : small single feature, real material only */
.work-archive {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.archive-head .work-cat { margin: 0; }
.archive-head .archive-note { font-size: 13px; color: var(--ink-soft); }

.archive-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--paper);
  padding: 20px;
}
.archive-media {
  aspect-ratio: 1000 / 720;
  overflow: hidden;
  background: var(--white);
}
.archive-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  display: block;
}
.archive-copy { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.archive-copy .work-title { font-size: clamp(17px, 1.8vw, 20px); }
.archive-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; max-width: 42ch; }

@media (min-width: 640px) {
  .archive-feature { grid-template-columns: 260px 1fr; align-items: center; padding: 24px; }
  .archive-media { aspect-ratio: 5 / 4; }
}

/* ---------- services ---------- */

.services { padding: var(--section-pad) 0; background: var(--paper); }
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-list .service-row:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-soft);
  padding-top: 6px;
}
.service-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.service-jp { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.service-desc {
  grid-column: 1 / -1;
  max-width: 60ch;
  color: var(--ink);
  padding-left: 76px;
}

@media (min-width: 860px) {
  .service-row { grid-template-columns: 100px 1fr 1.1fr; }
  .service-jp { margin-bottom: 0; }
  .service-desc { grid-column: auto; align-self: center; padding-left: 0; }
}

/* ---------- company ---------- */

.company { padding: var(--section-pad) 0; }
.company-table { border-top: 1px solid var(--line-strong); margin-top: 8px; }
.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.company-row dt {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.company-row dd { margin: 0; font-size: 16px; }
.company-row dd.rep-name { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.01em; }
.company-row a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }

@media (min-width: 760px) {
  .company-row { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; }
}

/* ---------- clients ---------- */

.clients { padding: var(--section-pad) 0; background: var(--paper); }
.client-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.client-cell {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 132px;
  justify-content: space-between;
}
.client-cell .c-num { font-family: var(--font-display); font-size: 12px; color: var(--ink-soft); }
.client-cell .c-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
@media (min-width: 620px) { .client-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .client-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- contact ---------- */

.contact { padding: var(--section-pad) 0; }
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-lead { font-size: 16px; color: var(--ink-soft); max-width: 44ch; }
.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.contact-links .contact-link:last-child { border-bottom: 1px solid var(--line); }
.contact-link .label { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); }
.contact-link .value {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 32px);
  letter-spacing: -0.005em;
}
.contact-link:hover .value,
.contact-link:focus-visible .value { text-decoration: underline; text-underline-offset: 6px; }

@media (min-width: 700px) {
  .contact-inner { flex-direction: row; justify-content: space-between; gap: 60px; }
  .contact-lead { max-width: 26ch; }
  .contact-links { flex: 1; max-width: 640px; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 28px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.footer-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 0.02em;
}
.footer-meta { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-meta a { text-decoration: none; color: rgba(255,255,255,0.85); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}
@media (min-width: 700px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- reveal motion ---------- */

/* Content is visible by default (no-JS / JS-failure safe).
   Only when JS confirms it can observe scroll position do we
   arm the reveal animation, avoiding any risk of stuck-blank content. */
.js-reveal-armed .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-reveal-armed .reveal.is-visible { opacity: 1; transform: translateY(0); }

.mosaic-reveal { position: relative; overflow: hidden; }
.mosaic-reveal .mblock {
  position: absolute;
  background: var(--ink);
  opacity: 0;
}
.mosaic-reveal.is-visible .mblock {
  animation: mosaicpop 0.5s var(--ease) forwards;
}
@keyframes mosaicpop {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .mosaic-reveal .mblock { display: none; }
}
