/* Jineshwar International School — "Small pieces, one whole" (terrazzo).
   Bootstrap 5.3.3 grid supplies container/row/col; everything else is here. */
:root {
  --ground: #F4F1EC;
  --paper: #FBFAF7;
  --slab: #E7E0D4;
  --ink: #1F2328;
  --ink-2: #474C55;
  --ink-3: #5E6470;
  --rule: #D8D0C3;
  --terra: #C8553D;
  --terra-d: #A8432F;
  --sage: #8AA37B;
  --sage-d: #4F6B44;
  --navy: #1F3A5F;
  --navy-d: #152A46;
  --mustard: #D9A441;
  --mustard-t: #8A6214;
  --field: #8A8172;
  --serif: "DM Serif Display", "DM Serif Fallback", Georgia, serif;
  --sans: "Arimo", "Arimo Fallback", Arial, sans-serif;
  --r: 3px;
  --sec: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@font-face { font-family: "DM Serif Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; }
@font-face { font-family: "Arimo Fallback"; src: local("Arial"); size-adjust: 100%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-d); }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--terra-d); outline-offset: 3px; border-radius: 2px; }
input, select, textarea { caret-color: var(--terra-d); }
html { scrollbar-color: var(--field) var(--ground); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.small { font-size: .9rem; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--r); }
.skip:focus, .skip:hover { top: 1rem; color: #fff; }
.skip:hover { top: -4rem; }
.skip:focus:hover { top: 1rem; }
main:focus { outline: none; }
.hi-line { font-size: 1.15rem; color: var(--terra-d); font-weight: 600; margin-bottom: .9rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.src { font-size: .82rem; color: var(--ink-3); }
.lnk { font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  padding: .7rem 1.2rem; border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-d); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.acts { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.4rem; }
.acts-tight { margin-top: 1.2rem; }

/* ---------- chips ---------- */
.chip { display: inline-block; transform: rotate(var(--r, 0deg)); flex: none; }
.cluster { display: inline-flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; max-width: 200px; }
.cluster .chip:nth-child(2n) { margin-top: .8rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(244, 241, 236, .96); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .site-head { background: rgba(244, 241, 236, .9); backdrop-filter: blur(8px); } }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand-n { font: 400 1.45rem/1 var(--serif); }
.brand-s { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-top: .2rem; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .2rem; }
.nav a {
  position: relative; display: block; padding: .7rem .7rem .9rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav a:hover { color: var(--terra-d); }
.nav-chips { position: absolute; left: 50%; bottom: .1rem; transform: translateX(-50%); }
.head-call { min-height: 44px; padding: .5rem .9rem; background: var(--navy); color: #fff; }
.head-call:hover { background: var(--navy-d); color: #fff; }
.menu-btn { display: none; }
@media (max-width: 1199.98px) {
  .nav, .head-call { display: none; }
  .menu-btn {
    display: inline-flex; margin-left: auto; align-items: center; gap: .45rem; min-height: 48px; padding: .5rem .95rem;
    background: var(--ink); color: var(--ground); border: 0; border-radius: var(--r); font: 600 1rem var(--sans); cursor: pointer;
  }
  .menu-btn .ic { width: 20px; height: 20px; }
}
@media (max-width: 400px) { .brand-n { font-size: 1.25rem; } .brand-s { font-size: .74rem; } .brand img { width: 38px; height: 38px; } .head-row { gap: .6rem; } }

/* sheet menu */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(31, 35, 40, .45); }
.sheet[hidden] { display: none; }
.sheet-in {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--paper);
  background-image: linear-gradient(var(--paper), var(--paper)), url("/assets/terrazzo.svg");
  background-clip: content-box, border-box; border-left: 10px solid transparent; padding: 1rem 1.25rem 2rem;
  overflow-y: auto; display: flex; flex-direction: column; gap: 1.2rem;
}
@media (prefers-reduced-motion: no-preference) { .sheet:not([hidden]) .sheet-in { animation: sheet-in .35s var(--ease); } }
@keyframes sheet-in { from { transform: translateX(30px); opacity: 0; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sheet-close { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .4rem .8rem; background: none; border: 1.5px solid var(--ink); border-radius: var(--r); font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }
.sheet-close .ic { width: 20px; height: 20px; }
.sheet-links a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); font: 400 1.6rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.sheet-links a[aria-current] { color: var(--terra-d); }
.sheet-acts { display: grid; gap: .6rem; }
.sheet-chips { max-width: none; margin-top: auto; }

/* ---------- slabs (terrazzo frame + polished inset) ---------- */
.slab { margin: 0; background: var(--slab) url("/assets/terrazzo.svg") 0 0 / 240px 240px; padding: 12px; border-radius: var(--r); box-shadow: 0 18px 40px -26px rgba(31, 35, 40, .45); }
.slab-in { background: var(--paper); border-radius: 2px; overflow: hidden; height: 100%; }
.slab figcaption, figure.slab > figcaption { font-size: .82rem; color: var(--ink-2); background: rgba(251, 250, 247, .92); display: inline-block; padding: .15rem .5rem; margin-top: 10px; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-where { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink-2); margin-bottom: 1.2rem; font-size: .98rem; }
.hero-where .ic { width: 18px; height: 18px; color: var(--terra-d); }
.hero h1 { margin-bottom: .35em; }
.hero h1 .l1 { display: block; }
.hero h1 .l2 { display: block; padding-left: clamp(1.2rem, 6vw, 4.5rem); color: var(--navy); }
.hero-facts { display: grid; gap: .55rem; }
.open-pill, .rating { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0; font-size: .97rem; }
.open-pill .ic, .rating .ic { width: 18px; height: 18px; }
.open-pill .ic { color: var(--ink-2); }
.open-pill.is-open .ic { color: var(--sage-d); }
.open-pill.is-closed .ic { color: var(--terra-d); }
.open-txt { font-weight: 600; }
.rating .ic { color: var(--mustard-t); fill: var(--mustard); }
.hero-art { position: relative; }
.slab-hero { position: relative; z-index: 1; padding: 26px; }
.slab-hero .slab-in img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.gutter { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.g-chip { position: absolute; }
.g0 { left: -6%; top: 14%; } .g1 { left: -3%; top: 32%; } .g2 { left: -8%; top: 55%; } .g3 { left: -1%; top: 72%; }
.g4 { right: 4%; top: -4%; } .g5 { right: 16%; top: -2%; } .g6 { left: 30%; bottom: -3%; }
@media (max-width: 991.98px) {
  .g0, .g1, .g2, .g3 { display: none; }
  .hero-art { margin-top: .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .16s; } .hero-copy > :nth-child(n+5) { animation-delay: .2s; }
  .g-chip .chip { animation: settle 1.1s var(--ease) both; animation-delay: .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--r) - 40deg)); } }

/* ---------- sections ---------- */
.sec { padding: calc(var(--sec) * .55) 0; }
.pieces { background: var(--paper); border-block: 1px solid var(--rule); padding: calc(var(--sec) * .8) 0; margin-block: calc(var(--sec) * .3); }
.walk, .visit, .faq-sec, .gallery, .ledger-sec, .subjects { }

/* pieces signature */
.legend { display: grid; gap: .5rem; margin-top: 1.2rem; }
.legend li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.piece-tray { display: flex; flex-wrap: wrap; gap: .6rem .5rem; margin-bottom: 1.4rem; }
.piece {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.4rem;
  background: none; border: 0; cursor: pointer; font: 600 .95rem/1.15 var(--sans); color: var(--ink); isolation: isolate;
  transition: transform .25s var(--ease);
}
.piece-shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.piece.is-v { color: #fff; }
.piece.is-v .piece-shape path { fill: var(--c); }
.piece.is-v[style*="#8AA37B"] { color: var(--ink); }
.piece.is-tbc .piece-shape path { fill: var(--paper); stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 2.6 2; vector-effect: non-scaling-stroke; }
.piece:nth-child(odd) { }
.piece-tray li:nth-child(3n+1) .piece { transform: rotate(-1.5deg); }
.piece-tray li:nth-child(3n+2) .piece { transform: rotate(1.2deg) translateY(4px); }
.piece:hover { transform: translateY(-2px) rotate(0deg); }
.piece[aria-pressed="true"] { transform: translateY(-3px) rotate(0deg); }
.piece[aria-pressed="true"]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -8px; height: 3px; background: var(--ink); border-radius: 2px; }
.piece-panel { background: var(--ground); border-radius: var(--r); padding: 1.4rem 1.5rem; border: 1px solid var(--rule); min-height: 190px; }
.piece-panel h3 { margin-bottom: .4em; }
.piece-status { display: inline-block; font-weight: 700; font-size: .85rem; padding: .15rem .55rem; border-radius: 2px; margin-bottom: .7rem; }
.piece-status.is-v { background: var(--navy); color: #fff; }
.piece-status.is-tbc { background: transparent; color: var(--ink); outline: 1.5px dashed var(--ink-3); outline-offset: -1.5px; }

/* reviews */
.words-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2.2rem; }
.words-head h2 { margin: 0; }
.quote { margin: 0; }
.quote-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; padding: 1.5rem; background: var(--paper); --qc: var(--terra); border-radius: 0; box-shadow: inset 0 4px 0 var(--qc), 0 10px 30px -24px rgba(31, 35, 40, .5); }
.quote:nth-child(2) .quote-in { --qc: var(--sage); }
.quote:nth-child(3) .quote-in { --qc: var(--mustard); }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 400 1.35rem/1.3 var(--serif); margin: 0; }
.quote figcaption { font-weight: 600; }
.quote figcaption span { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-3); }
.words-note { margin-top: 1.2rem; }

/* campus walk */
.walk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.walk-head p { margin: 0; }
.walk-ctl { display: flex; align-items: center; gap: .6rem; }
.walk-pos { margin: 0; font-weight: 600; min-width: 6.5em; text-align: center; font-variant-numeric: tabular-nums; }
.ctl { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.ctl:hover { background: var(--ink); color: var(--ground); }
.ctl[disabled] { opacity: .35; cursor: default; background: var(--paper); color: var(--ink); }
.walk-axis { position: relative; }
.walk-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 140px; height: 4px; background: var(--mustard); opacity: .55; }
.walk-track {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: clamp(1rem, 3vw, 2.2rem);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: .5rem max(1rem, calc((100vw - 1296px) / 2)) 1.5rem;
  scroll-padding-inline: max(1rem, calc((100vw - 1296px) / 2)); scrollbar-width: thin;
}
.walk-track:focus-visible { outline-offset: -3px; }
.stop { scroll-snap-align: start; }
.slab-walk { padding: 10px; }
.slab-walk img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stop h3 { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 .5rem; }
.stop-n { font-size: 1rem; font-family: var(--sans); font-weight: 700; color: #fff; background: var(--navy); min-width: 1.8rem; height: 1.8rem; display: inline-grid; place-items: center; border-radius: 2px; transform: translateY(-3px); }
.ask-k { font-weight: 700; font-size: .9rem; color: var(--terra-d); margin: 0 0 .3rem; }
.ask li { position: relative; padding-left: 1.1rem; margin-bottom: .3rem; color: var(--ink-2); }
.ask li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--sage); clip-path: polygon(10% 30%, 60% 0, 100% 45%, 70% 100%, 0 85%); }

/* admission slabs */
.slab-row { position: relative; }
@media (min-width: 992px) { .slab-row::before { content: ""; position: absolute; left: 4%; right: 4%; top: 56px; height: 4px; background: var(--mustard); } }
.slab-row > li { position: relative; }
.slab-step { height: 100%; padding: 10px; }
.slab-step .slab-in { padding: 1.3rem 1.3rem 1.1rem; }
.step-n { display: block; font: 400 3.4rem/1 var(--serif); color: var(--terra-d); margin-bottom: .5rem; }
.slab-row li:nth-child(2) .step-n { color: var(--sage-d); }
.slab-row li:nth-child(3) .step-n { color: var(--navy); }
.slab-row li:nth-child(4) .step-n { color: var(--mustard-t); }
.slab-step h3 { font-size: 1.35rem; }
.slab-step p { margin: 0; color: var(--ink-2); }
.steps .small { margin-top: 1rem; }

/* notices */
.notice-list { display: grid; gap: 1rem; }
@media (min-width: 768px) { .notice-list { grid-template-columns: 1fr 1fr; } }
.notice { padding: 1.2rem 1.3rem; border: 1.5px dashed var(--field); border-radius: var(--r); background: var(--paper); }
.notice h3 { font-size: 1.3rem; margin-bottom: .3em; }
.notice p { margin: 0; color: var(--ink-2); }
.notice-k { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--mustard-t); margin-bottom: .4rem; }

/* visit */
.addr { display: flex; gap: .6rem; font-style: normal; margin-bottom: .7rem; }
.addr .ic, .addr-l .ic { width: 20px; height: 20px; flex: none; margin-top: .2rem; color: var(--terra-d); }
.addr-l { display: flex; gap: .6rem; font-weight: 600; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours th { font-weight: 600; }
.hours tr.today { background: var(--paper); box-shadow: inset 4px 0 0 var(--terra); }
.slab-map { height: 100%; min-height: 360px; }
.map-box { position: relative; min-height: 340px; display: grid; place-items: center; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { text-align: center; padding: 2rem 1.5rem; display: grid; justify-items: center; gap: .3rem; }
.map-k { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; color: var(--terra-d); }
.map-k .ic { width: 20px; height: 20px; }

/* tbc placeholders */
.tbc { border: 1.5px dashed var(--field); border-radius: var(--r); padding: .9rem 1rem; background: var(--paper); color: var(--ink-2); margin: 1rem 0; }
.tbc-k { display: block; font-weight: 700; font-size: .82rem; color: var(--mustard-t); margin-bottom: .2rem; }
.mini-tbc { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--field); border-radius: 2px; padding: .05rem .4rem; white-space: nowrap; }

/* page band (inner pages) */
.page-band { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); background: linear-gradient(var(--ground), var(--ground)) padding-box, url("/assets/terrazzo.svg") 0 0 / 240px 240px border-box; border-bottom: 10px solid transparent; }
.band-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.band-copy { max-width: 760px; }
.band-copy .lede { margin-bottom: 0; }
.band-chips { max-width: 160px; }
@media (max-width: 767.98px) { .band-chips { display: none; } }

/* about */
.pull { font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.2 var(--serif); color: var(--navy); margin-bottom: .4rem; }
.slab-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.table-wrap { overflow-x: auto; }
.ledger, .stage-table, .ages { border-collapse: collapse; width: 100%; background: var(--paper); }
.ledger th, .ledger td, .stage-table th, .stage-table td, .ages th, .ages td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--rule); }
.ledger thead th, .stage-table thead th { font-size: .85rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.ledger tbody th, .stage-table tbody th, .ages th { font-weight: 700; white-space: nowrap; }
.note-name { margin-top: 1.5rem; }

/* academics */
.tick li { display: flex; gap: .5rem; margin-bottom: .4rem; }
.tick .ic { width: 20px; height: 20px; color: var(--sage-d); flex: none; margin-top: .2rem; }
.subj-list, .fac-list { display: grid; gap: .6rem; }
@media (min-width: 768px) { .subj-list { grid-template-columns: 1fr 1fr; } }
.subj-list li, .fac-list li { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; background: var(--paper); border-radius: var(--r); border: 1px solid var(--rule); font-weight: 600; }
.subj-list li span, .fac-list .mini-tbc { margin-left: auto; font-weight: 400; font-size: .82rem; color: var(--ink-3); }

/* admissions */
.doc-list { display: grid; gap: .5rem; }
.doc-list label { display: flex; gap: .8rem; align-items: center; min-height: 52px; padding: .6rem 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer; }
.doc-list input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.doc-list input:checked + span { text-decoration: line-through; color: var(--ink-3); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; padding: .6rem 0; font: 400 1.3rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--terra-d); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); }

/* form */
.enquiry .slab-in { padding: clamp(1.2rem, 3vw, 2rem); }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--field); border-radius: var(--r);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(31, 58, 95, .25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--terra-d); background: #FFF8F5; }
.hint { font-size: .85rem; color: var(--ink-3); margin: .25rem 0 0; }
.err { font-size: .9rem; color: var(--terra-d); font-weight: 600; margin: .3rem 0 0; }
.form-summary { border: 2px solid var(--terra-d); background: #FFF8F5; padding: .9rem 1rem; border-radius: var(--r); margin-bottom: 1rem; font-weight: 600; }
.form-summary ul { list-style: disc; padding-left: 1.2rem; font-weight: 400; margin-top: .3rem; }
.btn-send { margin-top: 1.3rem; }
.form-ok, .form-fail { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--r); font-weight: 600; }
.form-ok { background: #EEF3EA; border: 1.5px solid var(--sage-d); color: #2F4528; }
.form-fail { background: #FFF8F5; border: 1.5px solid var(--terra-d); color: var(--terra-d); }
.hp { position: absolute; left: -9999px; }
.enq-chips { margin-top: 1rem; }

/* contact quick row */
.quick { padding-top: clamp(2rem, 4vw, 3rem) !important; }
.quick-row { display: grid; gap: .8rem; }
@media (min-width: 768px) { .quick-row { grid-template-columns: repeat(3, 1fr); } }
.quick-slab { display: flex; gap: .8rem; align-items: flex-start; height: 100%; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); }
.quick-slab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.quick-slab .ic { width: 24px; height: 24px; flex: none; margin-top: .15rem; }
.quick-slab strong { display: block; font: 400 1.35rem/1.1 var(--serif); }
.quick-slab span { font-size: .92rem; }

/* gallery + lightbox */
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 992px) { .g-grid { grid-template-columns: repeat(4, 1fr); } }
.g-item { display: block; width: 100%; padding: 8px; border: 0; cursor: zoom-in; text-align: left; background: var(--slab) url("/assets/terrazzo.svg") 0 0 / 240px; border-radius: var(--r); font: inherit; color: var(--ink); }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.g-cap { display: block; background: var(--paper); padding: .45rem .6rem; font-size: .88rem; font-weight: 600; margin-top: 6px; border-radius: 2px; }
.lightbox { border: 0; padding: 0; max-width: min(1000px, 94vw); background: var(--ink); color: #fff; border-radius: var(--r); }
.lightbox::backdrop { background: rgba(20, 22, 26, .82); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; }
.lightbox figcaption { padding: .7rem 1rem 0; font-size: .95rem; }
.lb-ctl { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem 1rem; }
.lb-ctl .ctl { background: transparent; color: #fff; border-color: #fff; }
.lb-ctl .ctl:hover { background: #fff; color: var(--ink); }
.lb-pos { margin: 0 auto 0 0; font-variant-numeric: tabular-nums; }
.lb-close { margin-left: auto; }
.lightbox :focus-visible { outline-color: var(--mustard); }

/* prose / misc */
.prose-in { max-width: 70ch; }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.lost { display: flex; flex-wrap: wrap; gap: .6rem; }
.lost a { display: inline-flex; min-height: 48px; align-items: center; padding: .5rem 1rem; border: 1.5px solid var(--ink); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; }

/* footer */
.site-foot { color: #E9E5DE; padding: 3.5rem 0 2rem; margin-top: calc(var(--sec) * .5); border-top: 14px solid transparent; background: linear-gradient(var(--navy-d), var(--navy-d)) padding-box, url("/assets/terrazzo.svg") 0 0 / 240px 240px border-box; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--mustard); }
.site-foot .brand { color: #fff; }
.site-foot .brand-s { color: #CFC9BE; }
.site-foot .hi-line { color: #F0C98A; margin-top: .8rem; }
.foot-h { font: 700 .95rem var(--sans); color: #fff; margin-bottom: .7rem; }
.foot-links li { margin-bottom: .3rem; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 2rem; padding-top: 1.2rem; }
.foot-base p { color: #CFC9BE; max-width: none; }
.site-foot :focus-visible { outline-color: var(--mustard); }

@media (max-width: 575.98px) {
  .acts .btn { flex: 1 1 auto; }
  .acts .btn-primary { flex-basis: 100%; }
  .piece { padding: .7rem 1rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-head, .sheet, .site-foot, .acts { display: none; } }
