/* ==========================================================================
   Café Maestro — an origami-paper Paris, folded in CSS.
   No external fonts, no frameworks, no network calls. One stylesheet.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */

:root {
  --paper:      #fbf7f0;
  --paper-2:    #f4ebe0;
  --paper-3:    #ede0d1;
  --ink:        #2e3a4f;
  --ink-soft:   #6c7689;
  --ink-faint:  #98a0af;

  --rose:       #e7b0b4;
  --rose-deep:  #c97b84;
  --sky:        #a6c9e2;
  --sky-deep:   #5f95bd;
  --sage:       #b9cdb0;
  --sage-deep:  #7d9f74;
  --kraft:      #d9b98e;
  --kraft-deep: #b3854f;
  --terracotta: #c4584c;
  --gold:       #d9a441;
  --glow:       #2fb6bd;

  --edge:       rgba(46, 58, 79, 0.12);
  --edge-soft:  rgba(46, 58, 79, 0.07);
  --fold:       rgba(46, 58, 79, 0.13);
  --shadow-sm:  0 1px 2px rgba(46, 58, 79, .07), 0 3px 8px rgba(46, 58, 79, .05);
  --shadow-md:  0 2px 4px rgba(46, 58, 79, .07), 0 10px 26px rgba(46, 58, 79, .09);
  --shadow-lg:  0 6px 12px rgba(46, 58, 79, .09), 0 24px 60px rgba(46, 58, 79, .14);

  --display: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI",
             ui-rounded, "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1120px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --cut: 26px;                    /* the corner fold on every folded panel */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #1b2233;
    --paper-2:   #222b3f;
    --paper-3:   #2b3550;
    --ink:       #eef2f8;
    --ink-soft:  #a9b4c8;
    --ink-faint: #7d8899;

    --rose:      #d99aa1;
    --rose-deep: #eab6bc;
    --sky:       #8bb7d8;
    --sky-deep:  #9fcbea;
    --sage:      #a3bf9c;
    --sage-deep: #b6d3ae;
    --kraft:     #cfa672;
    --kraft-deep:#e0c095;
    --terracotta:#e07a6c;
    --gold:      #e8bd68;
    --glow:      #57dbe1;

    --edge:      rgba(238, 242, 248, 0.16);
    --edge-soft: rgba(238, 242, 248, 0.09);
    --fold:      rgba(0, 0, 0, 0.34);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 3px 8px rgba(0,0,0,.24);
    --shadow-md: 0 2px 4px rgba(0,0,0,.3), 0 10px 26px rgba(0,0,0,.34);
    --shadow-lg: 0 6px 12px rgba(0,0,0,.34), 0 24px 60px rgba(0,0,0,.46);
  }
}

/* --- base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Several components below set `display` on a class, which would otherwise
   out-specify the UA's `[hidden] { display: none }` and reveal controls that
   only exist once the script has wired them up. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  /* laid-paper tooth */
  background-image:
    repeating-linear-gradient(90deg, rgba(120,100,70,.022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg,  rgba(120,100,70,.022) 0 1px, transparent 1px 4px),
    radial-gradient(1200px 600px at 12% -8%, rgba(166,201,226,.20), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(231,176,180,.18), transparent 60%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .5vw, 1.35rem); }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

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

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

.shell { width: min(100% - 2.4rem, var(--shell)); margin-inline: auto; }
.narrow { width: min(100% - 2.4rem, 720px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--kraft-deep);
  margin: 0 0 .6rem;
}

.lede { font-size: 1.12em; color: var(--ink-soft); }

/* --- the fold: shared origami surface ----------------------------------- */

.fold {
  position: relative;
  background:
    linear-gradient(150deg, var(--paper) 0%, var(--paper-2) 58%, var(--paper-3) 100%);
  border: 1px solid var(--edge-soft);
  box-shadow: var(--shadow-md);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease;
}
/* the turned-down corner, shaded like a real crease */
.fold::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: var(--cut); height: var(--cut);
  background: linear-gradient(225deg, var(--fold) 0%, rgba(0,0,0,.02) 72%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  pointer-events: none;
}
/* the centre crease — a hairline of light down the panel */
.fold::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 0 38%,
    rgba(255,255,255,.30) 38.5%, rgba(255,255,255,.30) 38.9%,
    transparent 39.3% 100%);
  opacity: .5;                 /* a crease, not a scratch — it crosses body copy */
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .fold::before {
    background: linear-gradient(105deg,
      transparent 0 38%,
      rgba(255,255,255,.09) 38.4%, rgba(255,255,255,.09) 39%,
      transparent 39.4% 100%);
  }
}

a.fold:hover, .fold--lift:hover {
  transform: translateY(-4px) rotate(-.25deg);
  box-shadow: var(--shadow-lg);
}

/* accent tints, one per paper colour in the film */
.tint-rose  { --tint: var(--rose); }
.tint-sky   { --tint: var(--sky); }
.tint-sage  { --tint: var(--sage); }
.tint-kraft { --tint: var(--kraft); }
.tint-gold  { --tint: var(--gold); }

.fold[class*="tint-"] {
  border-top: 3px solid var(--tint);
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .01em;
  padding: .78rem 1.35rem;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn::after {
  content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px;
  background: rgba(0,0,0,.22);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

.btn--rose  { --btn-bg: var(--terracotta); --btn-fg: #fff; }
.btn--sky   { --btn-bg: var(--sky-deep);   --btn-fg: #fff; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--edge);
  backdrop-filter: blur(6px);
}
.btn--ghost::after { background: rgba(0,0,0,.10); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.03rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--edge-soft);
}
.site-header .shell {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: .58rem;
  font-family: var(--display); font-weight: 700;
  font-size: 1.16rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--edge); color: var(--ink);
  width: 42px; height: 38px; border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: .93rem;
  color: var(--ink-soft); text-decoration: none;
  padding: .45rem .68rem; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--edge-soft); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 68%, var(--rose) 68%);
}
.site-nav .nav-cta {
  margin-left: .35rem;
  color: var(--kraft-deep);
  border: 1px dashed var(--kraft);
  border-radius: 999px;
  padding: .32rem .78rem;
  font-size: .84rem;
}
.site-nav .nav-cta:hover { background: var(--kraft); color: #3a2a12; }

/* The collapsing nav only exists when the script is there to open it again.
   Without JS the links stay a plain wrapped list — visible, just taller. */
@media (max-width: 860px) {
  .site-header .shell { flex-wrap: wrap; padding-block: .5rem; }
  .site-nav a { padding: .5rem .6rem; }

  .has-js .nav-toggle { display: inline-flex; }
  .has-js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--edge);
    box-shadow: var(--shadow-md);
    padding: .5rem;
  }
  .has-js .site-nav.is-open { display: flex; }
  .has-js .site-nav a { padding: .72rem .8rem; font-size: 1rem; }
  .has-js .site-nav .nav-cta { margin: .35rem 0 .15rem; text-align: center; }
}

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

.hero {
  position: relative;
  min-height: min(80vh, 660px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper-3);
}
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Two scrims, not one: the vertical pass seats the text block, the horizontal
   pass guarantees the copy column stays legible over whatever the film happens
   to be doing on the left at that frame. */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(22,28,42,.80) 0%, rgba(22,28,42,.56) 34%,
                    rgba(22,28,42,.16) 66%, rgba(22,28,42,0) 88%),
    linear-gradient(to top, rgba(22,28,42,.82) 0%, rgba(22,28,42,.34) 42%,
                    rgba(22,28,42,.10) 68%, rgba(22,28,42,.34) 100%);
}
.hero__inner { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.6rem, 4vw, 3rem); }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.42); max-width: 16ch; }
.hero p {
  color: rgba(255,255,255,.92); max-width: 46ch; font-size: 1.1rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero__actions .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.5); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.14); }

.hero__controls {
  position: absolute; z-index: 2; right: clamp(.9rem, 3vw, 2rem); top: clamp(.9rem, 3vw, 1.6rem);
  display: flex; gap: .5rem;
}
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: rgba(20,26,38,.52); color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(8px);
  transition: background .18s ease, transform .18s ease;
}
.icon-btn:hover { background: rgba(20,26,38,.78); transform: scale(1.06); }
.icon-btn svg { width: 19px; height: 19px; }

/* --- fold divider ------------------------------------------------------- */

.divider { display: block; width: 100%; height: 44px; }
/* A divider already separates two sections — the section that follows one does
   not need its full top pad as well, which is what left those dead bands. */
.divider + section { padding-top: clamp(1.6rem, 3.5vw, 2.6rem); }
section:has(+ .divider) { padding-bottom: clamp(1.8rem, 4vw, 3rem); }

/* --- sections ----------------------------------------------------------- */

section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card { padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.card h3 { display: flex; align-items: center; gap: .55rem; }
.card h3 svg { width: 26px; height: 26px; flex: none; }
.card p { color: var(--ink-soft); }
.card p:first-of-type { margin-top: .15rem; }

/* menu list */
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .62rem 0;
  border-bottom: 1px dashed var(--edge-soft);
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list .name { font-weight: 600; }
.menu-list .dots { flex: 1; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-3px); }
.menu-list .price { font-family: var(--mono); font-size: .92rem; color: var(--kraft-deep); }
.menu-list .note { display: block; font-size: .87rem; color: var(--ink-faint); }

/* stat row */
.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 1.1rem 1.2rem; text-align: center; }
.stat b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1;
  color: var(--ink);
}
.stat span { display: block; margin-top: .35rem; font-size: .84rem; color: var(--ink-soft); }

/* hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 1px dashed var(--edge-soft); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-family: var(--mono); font-size: .92rem; color: var(--ink-soft); }

/* --- gallery ------------------------------------------------------------ */

/* Big art deserves big tiles — at 250px these stills read as thumbnails of
   nothing. Item counts are chosen so each grid fills exactly: the film gets a
   full-width feature row of its own, and the six stills sit 3-up beneath it.
   A tile spanning two columns inside the same grid just left a hole. */
.gallery {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 316px), 1fr));
}
/* the home page shows four — keep them a tidy 2 x 2 rather than 3 + orphan */
.gallery--pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }

.gallery-feature { margin-bottom: 1.1rem; }
.gallery-feature .tile { aspect-ratio: 2.4; }
@media (max-width: 700px) { .gallery-feature .tile { aspect-ratio: 16 / 9; } }
.tile {
  position: relative; display: block; padding: 0; overflow: hidden;
  cursor: zoom-in; border: 0; width: 100%; text-align: left;
  background: var(--paper-2);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-md);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.tile:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.tile:hover img { transform: scale(1.06); }
/* These stills are busy edge to edge, so the caption needs a real plate to sit
   on — a thin fade left white text sitting on pastel rooftops. */
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.9rem .95rem .85rem;
  font-size: .89rem; font-weight: 600; line-height: 1.35; color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
  background: linear-gradient(to top,
    rgba(16,21,32,.94) 0%, rgba(16,21,32,.80) 34%,
    rgba(16,21,32,.38) 68%, rgba(16,21,32,0) 100%);
}
.tile--video::before {
  content: ""; position: absolute; z-index: 1; inset: 0;
  background: rgba(20,26,38,.18);
}
.tile--video::after {
  content: ""; position: absolute; z-index: 2; top: 50%; left: 50%;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(255,255,255,.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232e3a4f'%3E%3Cpath d='M8 5.14v13.72L19 12z'/%3E%3C/svg%3E")
    center / 26px no-repeat;
  box-shadow: 0 6px 22px rgba(0,0,0,.34);
  transition: transform .25s ease;
}
.tile--video:hover::after { transform: scale(1.1); }

/* --- lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2.5rem);
  background: rgba(14, 19, 30, .93);
  backdrop-filter: blur(6px);
}
.lightbox[open] { display: grid; }
.lightbox__stage {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
}
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%; max-height: calc(100vh - 9rem);
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  background: #0e131e;
}
.lightbox__caption {
  position: absolute; left: 50%; bottom: -2.6rem; transform: translateX(-50%);
  width: min(100%, 60ch); text-align: center;
  color: rgba(255,255,255,.9); font-size: .92rem;
}
.lightbox__count {
  position: absolute; top: -2.3rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .82rem; color: rgba(255,255,255,.6);
}
.lightbox__close { position: absolute; top: clamp(.75rem, 3vw, 1.6rem); right: clamp(.75rem, 3vw, 1.6rem); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
}
.lightbox__nav--prev { left: clamp(.3rem, 2vw, 1.2rem); }
.lightbox__nav--next { right: clamp(.3rem, 2vw, 1.2rem); }
body.is-locked { overflow: hidden; }

/* --- forms -------------------------------------------------------------- */

.form { padding: clamp(1.35rem, 3vw, 2.1rem); }
.form fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }
.form legend {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 0 0 .55rem; color: var(--ink);
}
.field { margin-bottom: 1rem; }
.field > label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: .34rem; color: var(--ink);
}
.field .hint { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-faint); margin-top: .1rem; }
.req { color: var(--terracotta); margin-left: .15rem; }

input[type="text"], input[type="email"], input[type="date"],
input[type="tel"], select, textarea {
  width: 100%;
  font: inherit; font-size: .98rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, #fff 30%);
  border: 1px solid var(--edge);
  border-radius: 9px;
  padding: .62rem .78rem;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
@media (prefers-color-scheme: dark) {
  input[type="text"], input[type="email"], input[type="date"],
  input[type="tel"], select, textarea {
    background: rgba(0,0,0,.22);
  }
}
textarea { min-height: 118px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7689' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 17px;
  padding-right: 2.3rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 45%, transparent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 22%, transparent);
}
.field .error {
  display: none; margin-top: .32rem;
  font-size: .84rem; font-weight: 600; color: var(--terracotta);
}
.field.has-error .error { display: block; }

.check {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .93rem; color: var(--ink-soft); cursor: pointer;
}
.check input { margin: .28rem 0 0; width: 17px; height: 17px; accent-color: var(--terracotta); flex: none; }

.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .3rem; }
.form-foot .fineprint { font-size: .82rem; color: var(--ink-faint); margin: 0; }

.form-note {
  display: none;
  margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .93rem;
  border-left: 4px solid var(--sage-deep);
  background: color-mix(in srgb, var(--sage) 26%, transparent);
  color: var(--ink);
}
.form-note.is-error { border-left-color: var(--terracotta); background: color-mix(in srgb, var(--terracotta) 16%, transparent); }
.form-note.is-shown { display: block; }

/* inline newsletter */
.subscribe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.subscribe .field { flex: 1 1 240px; margin: 0; }
.subscribe .btn { flex: none; }

/* --- prose -------------------------------------------------------------- */

.prose { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--rose-deep); }

blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--rose);
  color: var(--ink-soft);
  font-style: italic;
}

code {
  font-family: var(--mono); font-size: .88em;
  background: var(--edge-soft); padding: .12em .38em; border-radius: 5px;
}
kbd {
  font-family: var(--mono); font-size: .82em; font-weight: 600;
  padding: .1em .42em; border-radius: 5px;
  background: var(--paper-3); color: var(--ink);
  border: 1px solid var(--edge);
  box-shadow: 0 1.5px 0 var(--edge);
}
pre {
  font-family: var(--mono); font-size: .84rem; line-height: 1.55;
  background: color-mix(in srgb, var(--ink) 94%, #000);
  color: #e6edf7;
  padding: 1rem 1.1rem; border-radius: 10px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; color: inherit; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative; padding-left: 1.85rem; margin-bottom: .6rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 13px; height: 13px; background: var(--sage-deep);
  clip-path: polygon(0 50%, 38% 100%, 100% 8%, 88% 0, 36% 74%, 10% 40%);
}

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

.site-footer {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--kraft) 22%, transparent));
  border-top: 1px solid var(--edge-soft);
}
.site-footer .grid { align-items: start; }
.site-footer h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--kraft-deep); margin-bottom: .7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .34rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--terracotta); text-decoration: underline; }
.colophon {
  margin-top: 2rem; padding-top: 1.1rem;
  border-top: 1px solid var(--edge-soft);
  font-size: .85rem; color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center;
}

/* --- misc --------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display); font-weight: 700;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--edge-soft); color: var(--ink-soft);
}
.badge--live { background: color-mix(in srgb, var(--sage) 38%, transparent); color: var(--sage-deep); }

.center { text-align: center; }
.mt { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* the blueprint band — the moment in the film where the site gets built */
.blueprint {
  position: relative;
  color: #eaf6ff;
  background:
    linear-gradient(180deg, #1a2740 0%, #14203a 100%);
  background-image:
    repeating-linear-gradient(0deg,  rgba(79,216,220,.10) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(79,216,220,.10) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #1a2740 0%, #14203a 100%);
  overflow: hidden;
}
.blueprint h2, .blueprint h3 { color: #fff; }
.blueprint p { color: rgba(234,246,255,.82); }
.blueprint .eyebrow { color: var(--glow); }
.blueprint .stat {
  background: rgba(79,216,220,.07);
  border: 1px solid rgba(79,216,220,.28);
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.blueprint .stat::after, .blueprint .stat::before { display: none; }
.blueprint .stat b { color: var(--glow); }
.blueprint .stat span { color: rgba(234,246,255,.72); }
.blueprint .btn--ghost { --btn-fg: #fff; border-color: rgba(234,246,255,.42); }
.blueprint .btn--ghost:hover { background: rgba(234,246,255,.12); }
.blueprint a { color: var(--glow); }

/* floating paper birds */
.birds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.birds svg { position: absolute; opacity: .5; }
.birds svg:nth-child(1) { top: 12%; left: 6%;  width: 34px; animation: drift 19s ease-in-out infinite; }
.birds svg:nth-child(2) { top: 62%; left: 82%; width: 26px; animation: drift 24s ease-in-out infinite reverse; }
.birds svg:nth-child(3) { top: 34%; left: 46%; width: 20px; animation: drift 30s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) rotate(-6deg); }
  50%      { transform: translate3d(26px,-20px,0) rotate(8deg); }
}
