/* ==========================================================================
   Moosheen Studios
   Ivory paper, sumi ink, one seal red. Quiet frame, colorful games.
   ========================================================================== */

:root {
  --ivory: #f8f3e8;
  --cream: #efe6d3;
  --paper: #fffdf8;
  --ink: #16130f;
  --ink-2: #4a433b;
  --ink-3: #7a7166;
  --line: #ded4c0;
  --red: #a81e16;
  --red-dark: #8a1811;
  --navy: #0b0b2b;
  --dusk: #2d2244;
  --ok: #2f8a3e;

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-brush: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1160px;
  --header-h: 80px;
  --shadow: 0 1px 2px rgb(22 19 15 / 0.06), 0 12px 32px -12px rgb(22 19 15 / 0.18);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ivory); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Type ---------- */
.h2 { font-size: clamp(2rem, 4.2vw, 3rem); text-transform: uppercase; letter-spacing: -0.005em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.15; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.prose { color: var(--ink-2); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a, .text-link {
  color: var(--red); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:hover, .text-link:hover { color: var(--red-dark); text-decoration-thickness: 2px; }
.kanji { font-family: var(--font-brush); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1;
  color: var(--ivory); background: var(--red);
  border: 1.5px solid var(--red); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn--outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--outline:hover { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.btn--light { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status--dev::before { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(248 243 232 / 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 40px; }
.nav__list { display: flex; gap: clamp(20px, 3vw, 40px); list-style: none; padding: 0; margin: 0; }
.nav__link {
  position: relative; display: block; padding: 8px 0;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  text-decoration: none; color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--red); }
.nav__toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.nav__bars { display: grid; gap: 4px; width: 16px; }
.nav__bars span { height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand img { height: 32px; }
  .js .nav__toggle { display: inline-flex; }
  .js .nav__list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgb(22 19 15 / 0.35);
  }
  .js .nav__list[hidden] { display: none; }
  .js .nav__link { padding: 18px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .js .nav__list li:last-child .nav__link { border-bottom: 0; }
  .js .nav__link::after { display: none; }
  html:not(.js) .nav__list { gap: 14px; }
  html:not(.js) .nav__link { font-size: 0.75rem; letter-spacing: 0.06em; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section__head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 60px); }
.section__head .lede { margin-top: 18px; }
.section__head--center .lede { text-wrap: balance; }
.section__head--center { margin-inline: auto; text-align: center; }
.section--flush-top { padding-top: 0; }
.section__foot { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 56px); }

/* ---------- Hero ---------- */
/* The painting is a square pinned to the hero's top-right corner, flush with
   the header and the window edge; the copy sits in the left grid column. */
.hero {
  --art: min(40vw, 580px);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  /* The square's empty top 8% tucks under the header; the drips hang to about
     95% of the square's height, so that sets the hero's height. */
  min-height: calc(var(--art) * 0.96);
  padding-block: clamp(40px, 6vw, 80px);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.hero__copy { position: relative; z-index: 1; }
/* Sized so a line of up to ~7.25em always fits its column; each line stays on one line. */
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: 0.98; letter-spacing: -0.03em; }
.hero__title > span { display: block; white-space: nowrap; }
.hero__title .accent { color: var(--red); font-style: normal; }
.hero__art { position: absolute; top: calc(var(--art) * -0.08); right: 0; width: var(--art); aspect-ratio: 1; }
/* Red hanko-style seal carrying the enso mark */
.seal {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  background: var(--red); border-radius: 6px;
  transform: rotate(3deg);
  box-shadow: inset 0 0 0 2px rgb(248 243 232 / 0.3);
}
.seal img { width: 38px; height: 38px; }

/* Enso painting.
   Default (no JS): the finished enso with its drips.
   .is-video: a filmed brush (Higgsfield) paints it; white paper vanishes via
     multiply, and site.js adds .go to each drip/flick as the brush passes.
   .is-css: fallback when the video can't play; a counterclockwise mask
     reveal from the heavy top-right start.
   .is-done: painting finished, show the crisp logo image. */
/* The video frame is 1440px square with the enso 1100px wide at (170, 169),
   so the logo image and ink sit at the same spot inside the square. */
.enso {
  position: absolute; display: block;
  left: 11.806%; top: 11.736%; width: 76.389%; height: auto; aspect-ratio: 1000 / 1001;
}
.enso-video {
  position: absolute; inset: 0; display: none;
  width: 100%; height: 100%;
  mix-blend-mode: multiply; pointer-events: none;
  /* The hand's shadow on the paper reaches the bottom of the frame; fade just
     that edge (the ink ends at 88%). Top and right stay flush and hard. */
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, #000 90%, transparent);
}
.hero__art.is-video .enso-video { display: block; }

.ink { position: absolute; display: block; height: auto; pointer-events: none; }
.ink--d1 { left: 27.01%; top: 76.34%; width: 3.21%; }
.ink--d2 { left: 35.56%; top: 80.93%; width: 2.98%; }
.ink--d3 { left: 62.45%; top: 77.11%; width: 2.67%; }
.ink--flick { left: 76.74%; top: 23.97%; width: 20.63%; transform: rotate(-38deg); transform-origin: 6% 32%; }

/* With JS, hold the finished art back until it has been painted. The late
   reveal is only a safety net in case the script never runs. */
.js .hero__art:not(.is-done) .enso { visibility: hidden; animation: late-show 0s 6s forwards; }
.js .hero__art:not(.is-done) .ink--drip:not(.go) { clip-path: inset(0 0 100% 0); animation: late-unclip 0s 6s forwards; }
.js .hero__art:not(.is-done) .ink--flick:not(.go) { clip-path: inset(0 100% 0 0); animation: late-unclip 0s 6s forwards; }
.js .hero__art.is-video:not(.is-done) .enso,
.js .hero__art.is-video:not(.is-done) .ink:not(.go) { animation: none; }
@keyframes late-show { to { visibility: visible; } }
@keyframes late-unclip { to { clip-path: inset(0 0 0 0); } }

.ink--drip.go { animation: drip 1.9s cubic-bezier(0.25, 0.6, 0.3, 1) both; }
.ink--d2.go { animation-duration: 2.4s; }
.ink--d3.go { animation-duration: 2.1s; }
.ink--flick.go { animation: flick 0.3s ease-out both; }
@keyframes drip { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes flick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* After the painting: the paper clears and visitors draw their own enso. */
.enso-play { position: absolute; inset: 0; display: none; }
.hero__art.is-clearing .enso,
.hero__art.is-clearing .ink { opacity: 0; transition: opacity 0.4s ease; }
.hero__art.is-play .enso,
.hero__art.is-play .ink,
.hero__art.is-play .enso-video { display: none; }
.hero__art.is-play .enso-play { display: block; animation: play-in 0.45s ease both; }
@keyframes play-in { from { opacity: 0; } to { opacity: 1; } }

.enso-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.enso-play.is-drawing .enso-canvas { touch-action: none; cursor: crosshair; }
/* Centered in the visible paper (the top 8% is tucked under the header). */
.enso-prompt {
  position: absolute; left: 12%; right: 12%; top: 54%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.enso-prompt__text {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 800; line-height: 1.2;
  font-stretch: 112%; font-variation-settings: "wdth" 112; color: var(--ink-3);
}
.enso-prompt .enso-tool--text { pointer-events: auto; }
.enso-play.has-ink .enso-prompt { opacity: 0; visibility: hidden; }
/* Brush and Erase sit in the empty bottom margin of the paper. */
.enso-tools {
  position: absolute; left: 0; right: 0; top: 88%;
  display: flex; justify-content: center; gap: 10px; padding: 0 16px;
}
.enso-tool {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  font-size: 0.9rem; font-weight: 700; line-height: 1;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.enso-tool svg { width: 18px; height: 18px; flex: none; }
.enso-tool:hover { border-color: var(--ink); }
.enso-tool[aria-pressed="true"] { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.enso-tool--text {
  min-height: 36px;
  background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px;
}
.enso-tool--text:hover { border-color: transparent; color: var(--red); }

/* Touch screens start with the brush off; a finger nudges toward it until it's tapped. */
@media (pointer: coarse) {
  .enso-tool[data-tool="brush"] { position: relative; }
  .enso-play:not(.is-drawing):not(.brush-found) .enso-tool[data-tool="brush"]::before {
    content: ""; position: absolute; right: calc(100% + 6px); top: 50%;
    width: 30px; height: 30px; margin-top: -15px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(90 12 12)'%3E%3Cpath d='M22 14a8 8 0 0 1-8 8'/%3E%3Cpath d='M18 11v-1a2 2 0 0 0-4 0'/%3E%3Cpath d='M14 10V9a2 2 0 0 0-4 0v1'/%3E%3Cpath d='M10 9.5V4a2 2 0 0 0-4 0v10'/%3E%3Cpath d='M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    animation: nudge 0.9s ease-in-out infinite;
  }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
.enso-about {
  position: absolute; left: 50%; top: 12%; z-index: 2;
  width: min(88%, 420px); max-height: 92%; overflow-y: auto; transform: translateX(-50%);
}

/* Small explainer cards: "What is an ensō?" and "What does Moosheen mean?" */
.pop-card {
  padding: 20px 22px; text-align: left;
  color: var(--ink-2); font-size: 0.94rem; line-height: 1.55;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pop-card[hidden] { display: none; }
.pop-card p + p { margin-top: 0.8em; }
.pop-card strong { color: var(--ink); }
.pop-card__close { margin-top: 16px; min-height: 42px; padding: 0 20px; }
.text-button {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0;
  font-size: 0.9rem; font-weight: 700; line-height: 1.2; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.text-button:hover { color: var(--red); }

@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.js .hero__art.is-css .enso {
  visibility: visible;
  --sweep: 360deg;
  -webkit-mask-image: conic-gradient(from 52deg, transparent calc(360deg - var(--sweep)), #000 0);
  mask-image: conic-gradient(from 52deg, transparent calc(360deg - var(--sweep)), #000 0);
  animation: paint 1.8s cubic-bezier(0.45, 0.05, 0.35, 1) 0.15s both;
}
@keyframes paint { from { --sweep: 0deg; } to { --sweep: 360deg; } }

/* Phones: the painting goes full width directly under the header. */
@media (max-width: 639px) {
  .hero { display: block; min-height: 0; padding-top: 0; }
  .hero__art { position: relative; display: block; width: 100%; margin-top: -8%; margin-bottom: 16px; }
  .enso-tools { gap: 8px; }
  .enso-tool { min-height: 40px; padding: 0 13px; font-size: 0.85rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.3rem, 11.5vw, 4.4rem); }
}

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 104px); align-items: start;
}
.scroll-panel {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: var(--radius);
}
.scroll-panel__ask { position: absolute; left: 24px; bottom: 14px; }
/* Opens just above its link, where the reader is looking. */
.name-card { position: absolute; left: 50%; bottom: 58px; z-index: 3; width: min(calc(100% - 32px), 420px); transform: translateX(-50%); }
.scroll-panel__kanji {
  font-family: var(--font-brush);
  font-size: clamp(6.5rem, 13vw, 10.5rem);
  line-height: 1.02;
  writing-mode: vertical-rl;
  color: var(--ink);
}
.scroll-panel .seal { position: absolute; right: 12%; bottom: 10%; }
.scroll-panel__note {
  position: absolute; left: 24px; top: 22px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.about .prose { max-width: 60ch; }
.about .lede { color: var(--ink); }
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .scroll-panel { aspect-ratio: auto; padding: 64px 0 56px; }
  .scroll-panel__kanji { font-size: 5.6rem; }
  .scroll-panel .seal { right: 8%; bottom: 8%; width: 52px; height: 52px; }
  .scroll-panel .seal img { width: 32px; height: 32px; }
}


/* ---------- Game cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); list-style: none; padding: 0; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.card { display: block; text-decoration: none; color: inherit; text-align: center; }
.card__art {
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card__art img { transform: scale(1.035); }
.card__name { margin-top: 22px; font-size: 1.35rem; }
.card__meta { margin-top: 8px; font-size: 0.95rem; color: var(--ink-3); }
.card:hover .card__name { color: var(--red); }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .lede { max-width: 36em; margin: 18px auto 0; text-wrap: balance; }
.cta .actions { justify-content: center; margin-top: 32px; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-head__title { font-size: clamp(2.8rem, 7vw, 5.2rem); text-transform: uppercase; letter-spacing: -0.02em; }
.page-head .lede { max-width: 36em; margin-top: 22px; }
.jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; list-style: none; padding: 0; }

/* ---------- Game detail ---------- */
.game { scroll-margin-top: var(--header-h); }
.game__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.game--flip .game__art { order: 2; }
@media (max-width: 900px) {
  .game__grid { grid-template-columns: 1fr; }
  .game--flip .game__art { order: 0; }
}
.game__art {
  overflow: hidden; border-radius: var(--radius);
  background: var(--navy); box-shadow: var(--shadow);
}
.game__art img { width: 100%; }
.game__info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.game__title { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.game__platforms { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); }
.game__info .prose { max-width: 52ch; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; width: 100%; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.facts dd { color: var(--ink); font-weight: 500; }

.subhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin: clamp(64px, 8vw, 96px) 0 24px; }
.subhead .h3 { text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.04em; }
.subhead p { color: var(--ink-3); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li {
  padding: 10px 18px; font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); list-style: none; padding: 0; }
.shots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .shots, .shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot {
  all: unset; box-sizing: border-box; display: block; width: 100%;
  border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  background: var(--ink); box-shadow: 0 1px 2px rgb(22 19 15 / 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots--phone .shot img { aspect-ratio: 2440 / 1206; }
.shots figcaption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }

.lightbox { width: min(94vw, 1240px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(22 19 15 / 0.88); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__caption { margin-top: 14px; text-align: center; color: var(--ivory); font-weight: 600; }
.lightbox__close {
  position: absolute; top: -52px; right: 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--ivory); background: transparent; border: 1.5px solid var(--ivory); border-radius: 50%; cursor: pointer;
}
.lightbox__close svg { width: 18px; height: 18px; }

.note {
  display: flex; gap: 16px; align-items: flex-start;
  width: 100%; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 0.98rem;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 700; }
.field .optional { font-weight: 400; color: var(--ink-3); }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #cfc3aa; border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(168 30 22 / 0.16); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.55; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; font-size: 0.98rem; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: var(--ok); }

.notify { width: 100%; padding-top: 22px; border-top: 1px solid var(--line); }
.notify__title { font-size: 1.05rem; font-weight: 700; }
.notify__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.notify__row .input { flex: 1 1 240px; width: auto; }
.notify small { display: block; margin-top: 10px; font-size: 0.88rem; color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.form-card {
  display: grid; gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form-card .row { grid-template-columns: 1fr; } }
.contact-aside { display: grid; gap: 34px; }
.contact-aside h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); font-stretch: 100%; font-variation-settings: "wdth" 100; margin-bottom: 10px; }
.contact-aside p { color: var(--ink-2); }

/* ---------- Legal & 404 ---------- */
.doc { max-width: 740px; }
.doc h2 { font-size: 1.35rem; margin: 2.2em 0 0.6em; }
.doc ul { padding-left: 1.2em; margin-top: 0.8em; }
.doc li + li { margin-top: 0.45em; }
.updated { margin-top: 18px; color: var(--ink-3); font-size: 0.95rem; }

.missed { display: grid; justify-items: center; text-align: center; gap: 24px; padding-block: clamp(72px, 12vw, 160px); }
.missed img { width: min(50vw, 220px); opacity: 0.9; }
.missed .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding-block: 72px 36px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer__brand img { width: 220px; }
.site-footer h2 { margin-bottom: 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #b9ae9c; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.footer-links { display: grid; gap: 10px; list-style: none; padding: 0; }
.footer-links a { font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--ivory); border: 1px solid #4a433b; border-radius: 50%;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.socials a:hover { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.socials svg { width: 18px; height: 18px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #332d27;
  font-size: 0.88rem; color: #9d9384;
}

.site-footer--min { padding-block: 28px; }
.site-footer--min .site-footer__base { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer__base a { color: inherit; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
}
