/* Visual direction A, adopted after the B + spiral integration.
 * Source: design-concepts/styles.css + refinements.css (concept A).
 * Keep B's gallery geometry and the original Hero-B spiral independent.
 */
.theme-a {
  --paper: #d9d6cf;
  --ink: #111;
  --muted: #555;
  --line: #1113;
  --accent: #111;
  --header-height: 86px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
html { scroll-padding-top: 106px; }
.theme-a h1 { font-weight: 700; line-height: 1.4; letter-spacing: -.055em; }
.theme-a h2 { font-weight: 700; line-height: 1.3; letter-spacing: -.065em; }
.theme-a .micro { font-family: monospace; line-height: 1.4; letter-spacing: .18em; }
.theme-a .project-info h3,
.theme-a .service-row summary h3 { font-weight: 700; letter-spacing: -.05em; }
.theme-a .statement-sign { font: 10px/1.6 monospace; letter-spacing: .12em; }

/* A's fixed logo / navigation / language label / outlined contact pill. */
.theme-a .masthead {
  position: fixed;
  height: var(--header-height);
  padding: 0 3.2vw;
  background: linear-gradient(#d9d6cf 70%, #d9d6cf00);
  color: #111;
  transform: translateZ(0);
}
.theme-a .brand { width: 116px; }
.theme-a .masthead nav { gap: 28px; }
.theme-a .masthead nav a { font-size: 11px; letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-preview { font-size: 11px; letter-spacing: .08em; }
.contact-pill {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.contact-pill:hover { background: #111; color: #fff; }
.theme-a .kinetic-hero { background: var(--paper); }
.theme-a .intro-copy > .arrow-link {
  padding: 16px 20px;
  border: 0;
  background: #111;
  color: #fff;
}
.theme-a .intro-copy > .arrow-link:focus-visible { outline-color: #111; }
.theme-a .gallery__item { box-shadow: 0 35px 70px #0002; }

/* A's alternating paper, charcoal and lime section backgrounds. */
.theme-a .studio-statement { background: #f5f3ef; border: 0; }
.theme-a .work-section,
.theme-a .ai-reel {
  --ink: #f4f2ed;
  --muted: #bbb8b1;
  --line: #f4f2ed40;
  --accent: #e7ff5b;
  background: #111;
  color: var(--ink);
}
.theme-a .expertise { background: #e7ff5b; border: 0; }
.theme-a .expertise-list,
.theme-a .service-row { border-color: #111; }
.theme-a .contact-section { background: #d9d6cf; border: 0; }
.theme-a .contact-section > p:not(.micro) { color: #111; }
.theme-a .contact-trigger { width: min(560px, 100%); }

/* Keep the AI sequence clear of the fixed A header, including its real grid.
 * ai-film.js reads these target frames, so the 3D → grid handoff stays exact.
 */
.theme-a .ai-reel { background: #141414; border: 0; }
.theme-a .ai-intro > .micro,
.theme-a .ai-caption > span { color: var(--muted); }
.theme-a .ai-intro h2 { font-weight: 700; line-height: 1.4; }
.theme-a .ai-caption strong { font-weight: 700; }
.theme-a .has-spiral .ai-stage::after { background: linear-gradient(transparent, #141414 88%); }
.theme-a .has-spiral .ai-ghost { color: #f4f2ed12; font-weight: 700; }
.theme-a .has-spiral .ai-section-bar { top: calc(var(--header-height) + 20px); }
.theme-a .has-spiral .ai-gallery-heading { top: calc(var(--header-height) + 65px); }
.theme-a .ai-gallery-heading h3 { font-size: calc(clamp(26px, 3.1vw, 44px) * var(--heading-scale, 1)); font-weight: 700; letter-spacing: -.055em; line-height: 1.3; margin-top: 12px; }
.theme-a .has-spiral .ai-thumbnails {
  --tile-width: min(27vw, calc((100svh - var(--header-height) - 370px) * .666667));
  top: calc(var(--header-height) + 170px);
  bottom: 82px;
  align-content: center;
  transform: translateX(-50%);
}
.theme-a .ai-skip { border-color: #f4f2ed66; }
.theme-a .ai-scroll-label i { background: #f4f2ed40; }
.theme-a .ai-scroll-label b { background: #f4f2ed; }

/* A's three-part dark footer, including the white logo and two-column links. */
.theme-a .site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: end;
  padding: 60px 5vw;
  border: 0;
  background: #111;
  color: #fff;
  --accent: #e7ff5b;
}
.theme-a .site-footer img { width: 110px; height: auto; }
.footer-brand > a { display: inline-block; }
.theme-a .site-footer p { display: block; color: #fff; font-size: 10px; line-height: 1.6; }
.footer-brand p { margin-top: 12px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 30px; }
.site-footer nav a { font-size: 11px; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .theme-a .masthead { padding: 0 20px; }
  .theme-a .masthead nav, .language-preview { display: none; }
  .theme-a .hero-meta { top: 106px; }
  .theme-a .site-footer { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .theme-a .has-spiral .ai-gallery-heading { top: calc(var(--header-height) + 62px); }
  .theme-a .ai-gallery-heading h3 { font-size: calc(26px * var(--heading-scale, 1)); }
  .theme-a .ai-gallery-heading h3 > span { display: block; }
  .theme-a .has-spiral .ai-thumbnails {
    --tile-width: min(calc((100vw - 56px) / 2), calc((100svh - var(--header-height) - 420px) * .444444));
    top: calc(var(--header-height) + 176px);
    bottom: 76px;
  }
}
@media (max-width: 600px) {
  .theme-a .intro-copy > .arrow-link { padding: 13px 18px; }
  .theme-a .site-footer { padding: 60px 22px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  /* Use the section label alone on short phones, leaving room for legible cards. */
  .theme-a .has-spiral .ai-gallery-heading { display: none; }
  .theme-a .has-spiral .ai-thumbnails {
    --tile-width: min(calc((100vw - 56px) / 2), calc((100svh - var(--header-height) - 306px) * .444444));
    top: calc(var(--header-height) + 64px);
    bottom: 76px;
    row-gap: 12px;
  }
}
