/* ==========================================================================
   Site styles
   Black gallery walls so the photographs carry the color. Brand palette:
   grey for structure, red for identity, orange as a small spot accent.
   Cassette-futurism details (mono labels, corner brackets, chamfers, hazard
   stripes) stay small and out of the photos' way.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #050505;
  --surface: #0b0e10;      /* panels: black with a hint of the brand grey */
  --surface-2: #12171a;
  --line: #1d2529;
  --line-strong: #3f4d56;  /* brand grey */
  --text: #e9ebec;
  --text-dim: #a4afb5;
  --text-faint: #84929a;

  --red: #7d0101;          /* brand red: buttons, current page, bars */
  --red-hover: #9c0d0a;
  --red-line: #c4271f;     /* brand red lifted so thin lines and shapes show on black */
  --on-red: #f6ece8;
  --orange: #df7c3a;       /* spot accent: small labels, corners, focus rings */
  --error: #e5675e;

  --font-sans: "Tilt Neon", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 92rem;
  --max-narrow: 64rem;
  --chamfer: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(rgb(63 77 86 / .4) 1px, transparent 1.5px);
  background-size: 28px 28px;
  color: var(--text);
  font: 400 1rem/1.65 var(--font-sans);
  font-synthesis: style; /* Tilt Neon has one weight: never fake a bold version of it */
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) { overflow: hidden; }

/* ----------------------------------------------------------- background */
/* Vignette + ember, fixed behind the page so its focal points stay put while content
   scrolls over it: a slate lift in the middle holds attention on the content, the other
   edges fall to black, and a red glow in the bottom-right corner leads the eye to the
   Book Us button. Layers listed first sit on top; the ember goes above the edge
   darkening so the corner still glows.
   Each glow fades along a bell curve with a long, soft tail that reaches zero before
   the gradient ends, so there's no visible edge where a glow stops. The top layer is a
   faint film grain (light and dark specks at about 1% strength): dark gradients only
   have a few brightness levels to work with, which shows up as bands, and the grain
   breaks them up. Even at the brightest point on screen the faintest text still passes
   4.5:1 contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0 1'/%3E%3CfeFuncG type='discrete' tableValues='0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 1'/%3E%3CfeFuncA type='table' tableValues='.04 0 .04'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 160px 160px,
    radial-gradient(circle 50vmax at 100% 100%,
      rgb(223 124 58 / .08) 0%, rgb(223 124 58 / .072) 8.333%, rgb(223 124 58 / .054) 16.667%,
      rgb(223 124 58 / .033) 25%, rgb(223 124 58 / .016) 33.333%, rgb(223 124 58 / .007) 41.667%,
      rgb(223 124 58 / .002) 50%, rgb(223 124 58 / .001) 58.333%, rgb(223 124 58 / 0) 66.667%),
    radial-gradient(ellipse 95% 85% at 100% 100%,
      rgb(125 1 1 / .55) 0%, rgb(125 1 1 / .525) 8.333%, rgb(125 1 1 / .456) 16.667%,
      rgb(125 1 1 / .36) 25%, rgb(125 1 1 / .259) 33.333%, rgb(125 1 1 / .17) 41.667%,
      rgb(125 1 1 / .101) 50%, rgb(125 1 1 / .055) 58.333%, rgb(125 1 1 / .027) 66.667%,
      rgb(125 1 1 / .012) 75%, rgb(125 1 1 / .005) 83.333%, rgb(125 1 1 / .002) 91.667%,
      rgb(125 1 1 / 0) 100%),
    radial-gradient(ellipse 110% 120% at 50% 45%,
      rgb(0 0 0 / 0) 0%, rgb(0 0 0 / .018) 8.333%, rgb(0 0 0 / .071) 16.667%,
      rgb(0 0 0 / .151) 25%, rgb(0 0 0 / .25) 33.333%, rgb(0 0 0 / .357) 41.667%,
      rgb(0 0 0 / .462) 50%, rgb(0 0 0 / .558) 58.333%, rgb(0 0 0 / .639) 66.667%,
      rgb(0 0 0 / .704) 75%, rgb(0 0 0 / .754) 83.333%, rgb(0 0 0 / .789) 91.667%,
      rgb(0 0 0 / .813) 100%),
    radial-gradient(ellipse 80% 90% at 50% 45%,
      rgb(63 77 86 / .38) 0%, rgb(63 77 86 / .356) 8.333%, rgb(63 77 86 / .292) 16.667%,
      rgb(63 77 86 / .21) 25%, rgb(63 77 86 / .132) 33.333%, rgb(63 77 86 / .073) 41.667%,
      rgb(63 77 86 / .035) 50%, rgb(63 77 86 / .015) 58.333%, rgb(63 77 86 / .006) 66.667%,
      rgb(63 77 86 / .002) 75%, rgb(63 77 86 / .001) 83.333%, rgb(63 77 86 / 0) 91.667%);
}

main { flex: 1; padding-bottom: clamp(5rem, 10vw, 8rem); }

[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--orange); }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--on-red); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--red);
  color: var(--on-red);
  font: 700 .8rem var(--font-mono);
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* Small uppercase mono labels used all over the site */
.eyebrow, .readout, .site-nav a, .person__role,
.expect__kicker, .toc a, .price-card__label, .price-card__meta, .search__label, .search__count,
.chip, .frame__cap, .frame__badge, .lightbox__meta, .area__id, .area__data, .site-footer__meta, .cal__month, .cal__weekdays, .cal__legend,
.book-dialog__bar, .field > label, .field > legend, .text-btn, .btn, .book-fab, .form-status, .empty,
.point__meta, .compare__item figcaption, .spec dt, .stats__label, .quote__head {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

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

.site-header { position: relative; border-bottom: 1px solid var(--line); }

/* hazard stripe sitting on the header rule */
.site-header::after {
  content: "";
  position: absolute;
  right: var(--gutter);
  bottom: -2px;
  width: clamp(4rem, 12vw, 9rem);
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--red-line) 0 4px, transparent 4px 8px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.1rem;
}

/* about the logo's width, so the meta line stacks under it instead of pushing the nav to a second row */
.site-header__brand { flex: 0 1 13.75rem; }
.site-header .site-footer__meta { line-height: 1.5; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { display: block; width: auto; height: 44px; transition: opacity .2s; }
.brand:hover .brand__logo { opacity: .85; }
@media (max-width: 40rem) { .brand__logo { height: 36px; } }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  max-width: 100%;
}
.site-nav a {
  padding: .7rem .8rem;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: .7rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a span { margin-right: .6em; color: var(--text-faint); }
@media (max-width: 40rem) { .site-nav a { padding: .6rem .65rem; } }
.site-nav a:hover { color: var(--text); border-color: var(--line-strong); }
.site-nav a[aria-current="page"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.site-nav a[aria-current="page"] span { color: inherit; opacity: .6; }

/* ------------------------------------------------------------ page head */

.page-head {
  display: grid;
  gap: 1.1rem;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.75rem, 4vw, 3rem);
  container-type: inline-size; /* lets .display--fit size itself to this width */
}

.eyebrow { color: var(--orange); font-size: .72rem; line-height: 1.3; }
.eyebrow b { font-weight: 700; }

.display {
  font-weight: 800;
  font-size: clamp(2rem, .75rem + 6.4vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* Always one line: "Meet the Photographers" in Tilt Neon is ~12em wide, so 8.2cqi fills the
   column with ~2% to spare. Lower the 8.2 if the title gets longer or the font changes. */
.display--fit { font-size: min(6.5rem, 8.2cqi); white-space: nowrap; }

.lede { max-width: 58ch; color: var(--text-dim); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }

.readout { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; color: var(--text-faint); font-size: .68rem; }
.readout b { margin-left: .6em; color: var(--text); font-weight: 400; }

/* corner brackets: add to any positioned element */
.brackets::before, .person__photo::before, .map-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 1;
  pointer-events: none;
  --c: var(--orange);
  --l: 16px;
  --t: 2px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

/* ------------------------------------------------- meet the photographers */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
}

.person { display: grid; gap: .8rem; align-content: start; }
.person__photo { position: relative; margin-bottom: .8rem; }
/* Both portraits share one frame shape (5:4 landscape, matching the uploaded portraits);
   a photo of a different shape is cropped to fill it. */
.person__photo img {
  width: 100%;
  height: auto; /* otherwise the img's height attribute fixes its height and the ratio is ignored */
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--surface-2);
}
.person__name {
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}
.person__role { color: var(--text-dim); font-size: .7rem; }
.person__bio { max-width: 60ch; color: var(--text-dim); }

.manifesto {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3.5rem, 9vw, 7rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.manifesto__text {
  font-size: clamp(1.15rem, .95rem + .9vw, 1.65rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ------------------------------------------------------- what to expect */

.toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block;
  padding: .55rem .75rem;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: .68rem;
  line-height: 1;
  text-decoration: none;
}
.toc a span { margin-right: .6em; color: var(--orange); }
.toc a:hover { border-color: var(--orange); color: var(--text); }

.expect { margin: 0; padding: 0; list-style: none; }
.expect__item {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 1rem 3rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
@media (max-width: 48rem) { .expect__item { grid-template-columns: 1fr; } }

.expect__index { display: flex; flex-direction: column; gap: .6rem; }
.expect__num {
  font-weight: 800;
  font-size: clamp(2.75rem, 2rem + 2.5vw, 4.5rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-line);
}
.expect__kicker { color: var(--text-faint); font-size: .68rem; }

.expect__body { display: grid; gap: 1rem; align-content: start; }
.expect__body h2 {
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.expect__body > p { max-width: 65ch; color: var(--text-dim); }
.expect__body ul, .price-card ul, .point__body ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.expect__body li, .price-card li, .point__body li { position: relative; padding-left: 1.5rem; color: var(--text-dim); }
.expect__body li::before, .price-card li::before, .point__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: .6rem;
  height: 2px;
  background: var(--red-line);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-top: .5rem;
}
.price-card {
  position: relative;
  display: grid;
  gap: .7rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.price-card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  background: linear-gradient(225deg, var(--red-line) 50%, transparent 50%);
}
.price-card__label { color: var(--orange); font-size: .72rem; }
.price-card__amount {
  font-weight: 800;
  font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);
  line-height: 1;
}
.price-card__amount small {
  margin-right: .5rem;
  color: var(--text-faint);
  font: 400 .68rem var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: middle;
}
.price-card__meta { color: var(--text-faint); font-size: .68rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--line-strong); }
.fine-print { color: var(--text-faint); font-size: .9rem; }

/* ------------------------------------------------------ selling points */

.points { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.point {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  background: var(--surface);
  scroll-margin-top: 1rem;
}
.point__meta { color: var(--text-faint); font-size: .68rem; }
.point__meta b { color: var(--orange); font-weight: 700; }
.point__title {
  max-width: 24ch;
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.point__body { display: grid; gap: 1rem; max-width: 65ch; color: var(--text-dim); }

/* natural vs. experimental edit, side by side */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.5rem, 1.5vw, 1rem); }
.compare__item { position: relative; }
.compare__item img { width: 100%; height: auto; background: var(--surface-2); }
.compare__item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  background: var(--bg);
  font-size: .62rem;
}
.compare__item figcaption b { color: var(--orange); }

/* label / value rows for credentials and gear */
.spec { margin: 0; border-top: 1px dashed var(--line-strong); }
.spec > div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  align-items: baseline;
  gap: .25rem 1.5rem;
  padding-block: .8rem;
  border-bottom: 1px dashed var(--line-strong);
}
@media (max-width: 30rem) { .spec > div { grid-template-columns: 1fr; } }
.spec dt { color: var(--text-faint); font-size: .66rem; }
.spec dd { margin: 0; color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--line-strong); /* shows through the 1px gaps as dividers */
  list-style: none;
}
.stats li { display: grid; gap: .5rem; align-content: start; padding: 1.25rem; background: var(--bg); }
.stats__value { font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); line-height: 1; color: var(--text); }
.stats__label { color: var(--text-faint); font-size: .66rem; }

/* itemized quote mock-up */
.quote { max-width: 34rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line-strong); background: var(--bg); }
.quote__head { margin-bottom: .75rem; color: var(--orange); font-size: .66rem; }
.quote__lines { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.quote__lines li { display: flex; align-items: baseline; gap: .6rem; color: var(--text-dim); }
.quote__lines span:first-child { display: flex; flex: 1; align-items: baseline; gap: .6rem; }
.quote__lines span:first-child::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line-strong); }
.quote__lines span:last-child { color: var(--text); font-family: var(--font-mono); font-size: .8rem; text-align: right; }

/* ----------------------------------------------------------- our vision */

/* minmax(0, 1fr) stops the search box's default width from pushing past narrow screens */
.catalog__tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.search {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--orange); }
.search__label {
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  border-right: 1px solid var(--line-strong);
  color: var(--orange);
  font-size: .7rem;
}
.search input {
  flex: 1;
  min-width: 0;
  padding: .95rem 1rem;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1rem;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--text-faint); }
.search__count {
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  color: var(--text-faint);
  font-size: .68rem;
  white-space: nowrap;
}
@media (max-width: 30rem) { .search__count { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chip {
  padding: .5rem .7rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  font-size: .66rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip span { margin-left: .6em; color: var(--text-faint); }
.chip:hover { border-color: var(--text-dim); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .6; }

/* Masonry: plain CSS columns. Photos keep their true shape. */
.gallery { columns: 2; column-gap: clamp(.5rem, 1.2vw, 1rem); }
@media (min-width: 48rem) { .gallery { columns: 17rem 5; } }

.frame { position: relative; margin-bottom: clamp(.5rem, 1.2vw, 1rem); break-inside: avoid; }
.frame__link { position: relative; display: block; cursor: zoom-in; }
.frame__link img { width: 100%; height: auto; background: var(--surface-2); transition: filter .3s; }

/* "target lock" brackets on hover */
.frame__link::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  --c: var(--orange);
  --l: 14px;
  --t: 2px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  transition: opacity .2s, inset .3s var(--ease);
}

.frame__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem .75rem .6rem;
  background: linear-gradient(transparent, rgb(0 0 0 / .85));
  color: var(--text);
  font-size: .6rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.frame__cap span { color: var(--orange); }

/* "2 edits" tag on pictures that have a natural and a conceptual edit */
.frame__badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .3rem .45rem;
  border: 1px solid var(--line-strong);
  background: rgb(5 5 5 / .78);
  color: var(--text);
  font-size: .56rem;
  line-height: 1;
  pointer-events: none;
}

@media (hover: hover) {
  .frame:hover .frame__link::before, .frame:focus-within .frame__link::before { opacity: 1; inset: 6px; }
  .frame:hover .frame__cap, .frame:focus-within .frame__cap { opacity: 1; }
}

.empty {
  padding: 3rem 1rem;
  border: 1px dashed var(--line-strong);
  color: var(--text-faint);
  font-size: .75rem;
  text-align: center;
}

/* Full-screen viewer: the photo is scaled to fit the screen, never cropped. */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: #000; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(.6rem, env(safe-area-inset-top)) var(--gutter) .6rem;
}
.lightbox__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; min-width: 0; font-size: .66rem; }
.lightbox__meta span:first-child { color: var(--orange); }
.lightbox__meta span:last-child { color: var(--text-dim); }

.lightbox__stage {
  position: relative;
  min-height: 0;
  padding: 0 var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  touch-action: pinch-zoom;
}
.lightbox__img { width: 100%; height: 100%; object-fit: contain; }

/* switch between a picture's edits, centered under the photo */
.lightbox__edits {
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: 0 var(--gutter) max(1rem, env(safe-area-inset-bottom));
}
.lightbox:has(.lightbox__edits:not([hidden])) .lightbox__stage { padding-bottom: .75rem; }
.lightbox__edits .chip { padding: .7rem 1.1rem; font-size: .7rem; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 4rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: rgb(0 0 0 / .55);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lightbox__nav:hover { border-color: var(--orange); color: var(--orange); }
.lightbox__nav--prev { left: max(.5rem, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(.5rem, env(safe-area-inset-right)); }
@media (hover: none) { .lightbox__nav { opacity: .7; } }

/* ---------------------------------------------------------- service map */

.map-frame { position: relative; margin-bottom: 2rem; }

/* Static map drawn at build time (scripts/area-map.mjs). The SVG scales with the page.
   The labels on top are HTML that scale with the map too: --px is one pixel at the
   width the build laid them out for (--design), clamped so text stays readable. */
.area-map {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  --px: calc(100cqw / var(--design));
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.area-map--compact { display: none; }
@media (max-width: 55.99rem) {
  .area-map--wide { display: none; }
  .area-map--compact { display: block; }
}
.area-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-map__land { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.25; }
.area-map__grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.area-map__borders { fill: none; stroke: #36444c; stroke-width: 1; }
.area-map__zone { fill: var(--area); fill-opacity: .14; stroke: var(--area); stroke-width: 2; }

.map-state {
  position: absolute;
  translate: -50% -50%;
  color: var(--text-faint);
  font: 400 clamp(7.5px, calc(9.6 * var(--px)), 11px)/1 var(--font-mono);
  letter-spacing: .12em;
  pointer-events: none;
}

/* city dots, labelled to the right, or left/above/below when the build moves them */
.map-city {
  position: absolute;
  translate: 0 -50%;
  padding-left: .75em;
  color: var(--text-dim);
  font: 400 clamp(7.5px, calc(9.3 * var(--px)), 11px)/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 3px var(--surface-2), 0 0 3px var(--surface-2);
  pointer-events: none;
}
.map-city::before {
  content: "";
  position: absolute;
  left: -2.5px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 1.5px var(--surface-2);
}
.map-city--left { translate: -100% -50%; padding: 0 .75em 0 0; }
.map-city--left::before { left: auto; right: -2.5px; }
.map-city--above { translate: -50% -100%; padding: 0 0 .75em; }
.map-city--below { translate: -50% 0; padding: .75em 0 0; }
.map-city--above::before, .map-city--below::before { left: 50%; margin: 0 0 0 -2.5px; }
.map-city--above::before { top: auto; bottom: -2.5px; }
.map-city--below::before { top: -2.5px; }

/* distance scale: a bracket whose width is set by the build */
.map-scale {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  height: .4rem;
  border: 1px solid var(--text-dim);
  border-top: 0;
}
.map-scale span {
  position: absolute;
  left: 0;
  bottom: .7rem;
  color: var(--text-dim);
  font: 400 .6rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.map-credit {
  position: absolute;
  right: .75rem;
  bottom: .6rem;
  color: var(--text-faint);
  font: 400 .55rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* each zone: a pin at its center and a name tag just above (or below) its circle */
.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--area);
  background: var(--bg);
  rotate: 45deg;
  pointer-events: none;
}
.map-zone-tag {
  position: absolute;
  translate: -50% -100%;
  padding: .48em .73em;
  background: var(--area);
  color: var(--area-ink);
  font: 700 clamp(8px, calc(9.9 * var(--px)), 11.5px)/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.map-zone-tag--below { translate: -50% 0; }

.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.area {
  --area: var(--red-line);
  display: grid;
  gap: .55rem;
  align-content: start;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--area);
  background: var(--surface);
}
.area--none { --area: var(--line-strong); }
.area__id { display: flex; align-items: center; gap: .6rem; color: var(--text-dim); font-size: .68rem; }
.area__id::before { content: ""; width: .6rem; height: .6rem; background: var(--area); }
.area__name {
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.area__note { color: var(--text-dim); }
.area__data { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: .3rem 0 0; font-size: .68rem; }
.area__data dt { color: var(--text-faint); }
.area__data dd { margin: .15rem 0 0; }
.area__includes { flex-basis: 100%; }
.area__includes dd { line-height: 1.7; }

.coverage__cta { margin-top: 2rem; color: var(--text-dim); }

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

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: 2rem calc(6rem + env(safe-area-inset-bottom));
}
.site-footer__logo { display: block; width: auto; height: 32px; margin-bottom: .75rem; }
.site-footer__meta { margin-top: .3rem; color: var(--text-faint); font-size: .62rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--text-dim); font-size: .9rem; }
.barcode {
  width: 9rem;
  height: 1.75rem;
  opacity: .6;
  background: repeating-linear-gradient(90deg,
    var(--line-strong) 0 2px, transparent 2px 4px, var(--line-strong) 4px 5px, transparent 5px 8px,
    var(--line-strong) 8px 11px, transparent 11px 12px, var(--line-strong) 12px 13px, transparent 13px 17px);
}

/* ------------------------------------------------------------ book us */

.book-fab-wrap {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + .5rem));
  z-index: 50;
  filter: drop-shadow(0 6px 18px rgb(0 0 0 / .7));
}
.book-fab-wrap:has(:focus-visible) { outline: 2px solid var(--orange); outline-offset: 4px; }

.book-fab {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.5rem;
  background: var(--red);
  color: var(--on-red);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-decoration: none;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: background-color .2s;
}
.book-fab:hover, .book-fab:focus-visible { background: var(--red-hover); color: var(--on-red); outline: none; }
.book-fab__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.book-dialog {
  width: min(100% - 2rem, 34rem);
  max-height: min(100dvh - 2rem, 54rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.book-dialog::backdrop { background: rgb(0 0 0 / .78); backdrop-filter: blur(4px); }
.book-dialog[open] { animation: dialog-in .25s var(--ease); }
@keyframes dialog-in { from { opacity: 0; translate: 0 12px; } }

.book-dialog__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem .45rem .45rem 1.25rem;
  background: var(--red);
  color: var(--on-red);
  font-size: .66rem;
}
.book-dialog__body { padding: 1.5rem 1.25rem 1.75rem; }
@media (min-width: 30rem) { .book-dialog__body { padding-inline: 1.75rem; } }

.book-form, .book-done { display: grid; gap: 1.15rem; }
.book-dialog__head { display: grid; gap: .4rem; margin-bottom: .25rem; }
.book-dialog__title {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.book-dialog__title:focus { outline: none; }
.book-dialog__intro, .book-done > p:not(.eyebrow) { color: var(--text-dim); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.icon-btn:hover { background: rgb(0 0 0 / .2); }
.book-dialog__bar .icon-btn:focus-visible { outline-color: var(--on-red); outline-offset: -2px; }

.field { display: grid; gap: .45rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; margin-bottom: .45rem; color: var(--text-dim); font-size: .66rem; }
.field > label { margin-bottom: 0; }
.field input, .field select {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg);
  font-size: 1rem; /* 16px stops iOS from zooming in */
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23df7c3a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .85rem center / 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--error); }
.field input::placeholder { color: var(--text-faint); }

/* booking calendar: past and blocked days (content/availability.jsonc) can't be picked */
.cal { padding: .75rem; border: 1px solid var(--line-strong); background: var(--bg); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal__head .icon-btn { border: 1px solid var(--line-strong); }
.cal__head .icon-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); background: transparent; }
.cal__head .icon-btn:disabled { opacity: .3; cursor: default; }
.cal__month { color: var(--text); font-size: .72rem; }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal__weekdays span { padding-block: .35rem; color: var(--text-faint); font-size: .58rem; text-align: center; }
.cal__day {
  display: grid;
  place-items: center;
  height: 2.6rem;
  padding: 0;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font: 400 .78rem/1 var(--font-mono);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.cal__day:hover { border-color: var(--text-dim); }
.cal__day.is-today { border-color: var(--orange); }
.cal__day[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); font-weight: 700; }
.cal__day[aria-disabled="true"] {
  background: repeating-linear-gradient(-45deg, transparent 0 4px, rgb(63 77 86 / .3) 4px 5px);
  color: var(--text-faint);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal__day[aria-disabled="true"]:hover { border-color: transparent; }
.cal__day:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.cal__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .65rem; color: var(--text-faint); font-size: .58rem; }
.cal__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.cal__key { width: .8rem; height: .8rem; border: 1px solid var(--line-strong); }
.cal__key--picked { background: var(--red); border-color: var(--red); }
.cal__key--blocked { background: repeating-linear-gradient(-45deg, transparent 0 2px, rgb(63 77 86 / .6) 2px 3px); }
.cal__hint { margin-top: .6rem; color: var(--text-dim); font-size: .85rem; }
.cal__hint[data-state="error"] { color: var(--error); }

.picked { display: grid; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.picked:empty { display: none; }
.picked__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .5rem;
  padding: .45rem .45rem .45rem .8rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.picked__date { font-size: .9rem; }
.field .picked__item select { width: auto; min-height: 2.5rem; padding-block: .4rem; font-size: .9rem; }
.picked__item .icon-btn { width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); }
.picked__item .icon-btn:hover { border-color: var(--error); color: var(--error); background: transparent; }
@media (max-width: 26rem) {
  .picked__item { grid-template-columns: 1fr auto; }
  .field .picked__item select { grid-column: 1; grid-row: 2; width: 100%; }
  .picked__item .icon-btn { grid-row: 1 / span 2; }
}

.text-btn {
  justify-self: start;
  padding: .4rem 0;
  border: 0;
  background: none;
  color: var(--orange);
  font-size: .68rem;
  cursor: pointer;
  text-decoration: none;
}
.text-btn:hover { text-decoration: underline; color: var(--orange); }
.coverage__cta .text-btn { padding: 0; font-size: inherit; letter-spacing: .06em; }

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

.form-status { min-height: 1.2em; color: var(--text-dim); font-size: .7rem; line-height: 1.6; text-transform: none; letter-spacing: .04em; }
.form-status:empty { display: none; }

.book-form__note { color: var(--text-faint); font-size: .8rem; line-height: 1.55; }

/* text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-status[data-state="error"] { color: var(--error); }

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  border: 0;
  background: var(--red);
  color: var(--on-red);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: background-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--red-hover); color: var(--on-red); outline: none; }
.btn:focus-visible { box-shadow: inset 0 0 0 2px var(--orange); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--line-strong); color: var(--text); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
