/* HuntersLens design system. No build step: served as-is from public/assets. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colour */
  --paper: #ffffff;
  --mist: #edf0f0;       /* gallery wall */
  --rule: #d5dadb;
  --slate: #5f686c;      /* secondary text, 5.9:1 on paper */
  --graphite: #22292c;   /* primary text */
  --lens: #0b7a78;       /* the single accent, 5.2:1 on paper */
  --lens-deep: #075957;
  --night: #142021;      /* footer, hero ground */

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: clamp(2.6rem, 1.6rem + 4vw, 4.75rem);
  --step-6: clamp(3rem, 1rem + 7.5vw, 8rem);

  /* Space and layout */
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --max: 88rem;
  --header-h: 4.5rem;
  --radius-control: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  /* Seamless 600px contour tile, teal at 13% opacity: texture you notice only when you look for it. */
  background-color: var(--paper);
  background-image: url("../img/topo.svg");
  background-size: 760px 760px;
  color: var(--graphite);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--lens); }
:focus-visible { outline: 2px solid var(--lens); outline-offset: 3px; }
::selection { background: var(--lens); color: var(--paper); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -3rem; z-index: 100; background: var(--graphite); color: var(--paper); padding: .5rem .9rem; font-family: var(--font-display); }
.skip-link:focus { top: .75rem; color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 38rem; }

/* Display treatments */
.display { font-family: var(--font-display); font-size: var(--step-6); font-stretch: 125%; font-weight: 800; line-height: .92; letter-spacing: -0.03em; }
.display--outline { color: transparent; -webkit-text-stroke: 1.5px var(--stroke, var(--graphite)); }
.display .line { display: block; }
.title-xl { font-size: var(--step-5); font-stretch: 118%; font-weight: 750; line-height: .98; letter-spacing: -0.025em; }
.title-l { font-size: var(--step-4); font-stretch: 112%; }
.title-m { font-size: var(--step-2); font-stretch: 108%; font-weight: 650; }
.lede { font-size: var(--step-2); line-height: 1.35; font-weight: 350; }
.meta { font-family: var(--font-display); font-size: var(--step--1); color: var(--slate); letter-spacing: .01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .7rem 1.35rem;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600; font-stretch: 105%;
  text-decoration: none; border: 1.5px solid var(--graphite); border-radius: var(--radius-control);
  background: var(--graphite); color: var(--paper); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--lens); border-color: var(--lens); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--graphite); }
.btn--ghost:hover { background: transparent; color: var(--lens); border-color: var(--lens); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--graphite); }
.btn--light:hover { background: var(--lens); border-color: var(--lens); color: var(--paper); }
.btn--line-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--paper); }
.btn--line-light:hover { background: transparent; border-color: var(--paper); color: var(--paper); }
.link { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--lens); text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__bar { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.wordmark span { font-weight: 400; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: var(--font-display); font-size: .9375rem; font-weight: 500; text-decoration: none; padding-block: .4rem; border-bottom: 2px solid transparent;z-index: 60;background-color: var(--paper);overflow-y: auto; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--lens); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: none; border: 0; color: var(--graphite); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn svg { width: 1.35rem; height: 1.35rem; }
.icon-btn .count { position: absolute; top: .35rem; right: .2rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 1rem; background: var(--lens); color: var(--paper); font: 600 .6875rem/1.1rem var(--font-display); text-align: center; }
.nav-toggle { display: none; }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); padding: 2rem var(--gutter); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav a { display: block; padding: 1rem 0; font-size: var(--step-3); font-stretch: 115%; font-weight: 700; border: 0; }
  .site-nav a[aria-current="page"] { color: var(--lens); }
  .site-nav .btn { display: flex; margin-top: 2rem; }
}
@media (min-width: 62.01rem) { .site-nav .btn { display: none; } }

/* Lens hero: the one bold moment. A monochrome capture, with a colour lens that follows the pointer. */
.lens-hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 34rem; max-height: 62rem; overflow: hidden; background: var(--night); color: var(--paper); isolation: isolate; }
.lens-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.lens-hero__slide.is-active { opacity: 1; }
.lens-hero__frame { position: absolute; inset: -4%; animation: kenburns 24s var(--ease) infinite alternate; }
.lens-hero__slide:nth-child(even) .lens-hero__frame { animation-direction: alternate-reverse; }
.lens-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens-hero__img--base { filter: grayscale(1) contrast(1.08) brightness(.62); }
.lens-hero__lens { position: absolute; inset: 0; clip-path: circle(var(--lens-r, 0px) at var(--lens-x, 70%) var(--lens-y, 45%)); }
.lens-hero__ring { position: absolute; z-index: 2; width: calc(var(--lens-r, 0px) * 2); height: calc(var(--lens-r, 0px) * 2); left: var(--lens-x, 70%); top: var(--lens-y, 45%); translate: -50% -50%; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }
.lens-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,32,33,0) 45%, rgba(20,32,33,.72) 100%); pointer-events: none; }
.lens-hero__content { position: absolute; z-index: 3; inset: auto 0 0 0; padding-bottom: clamp(2rem, 5vw, 4rem); }
.lens-hero__content .display { font-size: clamp(2.8rem, 1rem + 6.2vw, 7rem); max-width: none; text-wrap: balance; }
.lens-hero__sub { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-top: 1.75rem; }
.lens-hero__sub p { margin: 0; font-size: var(--step-1); max-width: 30rem; line-height: 1.45; color: rgba(255,255,255,.88); }
.lens-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.lens-hero__caption { position: absolute; z-index: 3; top: 1.5rem; right: var(--gutter); text-align: right; color: rgba(255,255,255,.82); font-family: var(--font-display); font-size: var(--step--1); text-decoration: none; }
.lens-hero__caption strong { display: block; color: var(--paper); font-weight: 600; font-size: .9375rem; }
.lens-hero__hint { display: none; position: absolute; z-index: 3; top: 1.5rem; left: var(--gutter); font-family: var(--font-display); font-size: var(--step--1); color: rgba(255,255,255,.7); }
@media (min-width: 48rem) and (pointer: fine) { .lens-hero__hint { display: block; } }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }

/* Sections: alternate between the contour texture and flat panels */
.section--paper { background: var(--paper); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.statement { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.statement blockquote { margin: 0; font-size: clamp(1.5rem, 1rem + 2.1vw, 2.5rem); line-height: 1.22; font-weight: 350; max-width: 22ch; }
.statement__aside { color: var(--slate); max-width: 34rem; }
.statement__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.statement__portrait { margin: 0; background: var(--mist); max-width: 20rem; }
.statement__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.statement__portrait:hover img { filter: none; }
@media (min-width: 56rem) {
  .statement { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
  .statement__portrait { max-width: none; }
}

/* Exhibition grid on the home page: deliberately uneven */
.exhibit { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.exhibit > * { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  /* Pairs of a wide and a narrow piece, swapping sides each row, like a hung wall */
  .exhibit { row-gap: clamp(3rem, 6vw, 5.5rem); align-items: end; }
  .exhibit > :nth-child(4n+1) { grid-column: 1 / span 7; }
  .exhibit > :nth-child(4n+2) { grid-column: 9 / span 4; }
  .exhibit > :nth-child(4n+3) { grid-column: 1 / span 4; }
  .exhibit > :nth-child(4n) { grid-column: 6 / span 7; }
  .exhibit .work__frame { aspect-ratio: 4 / 5 !important; }
  .exhibit > :nth-child(4n+1) .work__frame, .exhibit > :nth-child(4n) .work__frame { aspect-ratio: 4 / 3 !important; }
  .exhibit .work__frame img { height: 100%; object-fit: cover; }
}

/* Artwork tile: image on the wall, label beneath (always visible) */
.work { margin: 0; }
.work a { display: block; text-decoration: none; }
.work__frame { background: var(--mist); overflow: hidden; }
.work__frame img { width: 100%; transition: transform .8s var(--ease), filter .8s var(--ease); }
.work a:hover .work__frame img { transform: scale(1.025); }
.work__label { display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; font-family: var(--font-display); }
.work__title { font-size: 1.0625rem; font-weight: 600; font-stretch: 105%; }
.work a:hover .work__title { color: var(--lens); }
.work__cat { font-size: var(--step--1); color: var(--slate); white-space: nowrap; padding-top: .2rem; }
.work__excerpt { margin: .35rem 0 0; color: var(--slate); font-size: 1rem; line-height: 1.5; max-width: 40ch; }

/* Gallery (projects index): column masonry */
.gallery { columns: 1; column-gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.gallery .work { break-inside: avoid; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 40rem) { .gallery { columns: 2; } }
@media (min-width: 70rem) { .gallery { columns: 3; } }

.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .35rem .95rem; font-family: var(--font-display); font-size: .875rem; font-weight: 500; text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; color: var(--graphite); background: var(--paper); }
.chip:hover { border-color: var(--lens); color: var(--lens); }
.chip[aria-current="true"] { background: var(--lens); border-color: var(--lens); color: var(--paper); }
.search { display: flex; align-items: center; border-bottom: 1.5px solid var(--graphite); min-width: min(100%, 18rem); }
.search input { flex: 1; min-height: 2.75rem; border: 0; background: transparent; font: 400 1rem var(--font-text); color: var(--graphite); padding: 0 .25rem; }
.search input:focus { outline: none; }
.search:focus-within { border-bottom-color: var(--lens); }
.search button { border: 0; background: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--graphite); cursor: pointer; }
.empty { padding: 4rem 0; max-width: 34rem; }

/* Services as an exhibition index, not a card grid */
.offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.offer { display: grid; grid-template-columns: 1fr; gap: .35rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.offer__name { font-family: var(--font-display); font-size: var(--step-2); font-stretch: 112%; font-weight: 700; }
.offer__line { margin: 0; font-style: italic; color: var(--slate); font-size: var(--step-1); }
.offer__price { font-family: var(--font-display); font-weight: 600; }
.offer__go { justify-self: start; }
@media (min-width: 56rem) {
  .offer { grid-template-columns: minmax(12rem, 1.1fr) 1.6fr auto 9rem; align-items: baseline; }
  .offer__go { justify-self: end; }
}

/* Event feature: the date is the headline */
.event-feature { display: grid; gap: 2rem; }
.event-feature__date { font-family: var(--font-display); line-height: .8; }
.event-feature__day { font-size: clamp(6rem, 3rem + 12vw, 13rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; color: var(--lens); }
.event-feature__month { display: block; margin-top: 1rem; font-size: var(--step-1); font-weight: 600; }
.event-feature__facts { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; font-family: var(--font-display); font-size: .9375rem; }
.event-feature__facts li { padding: .5rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; }
.event-feature__facts span { color: var(--slate); }
.event-feature__poster { background: var(--mist); }
@media (min-width: 56rem) { .event-feature { grid-template-columns: auto 1fr minmax(0, .9fr); gap: 3.5rem; align-items: start; } }

/* Page hero for inner pages */
.page-hero { padding-block: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 3.5rem); }
.page-hero .lede { color: var(--slate); margin-top: 1.25rem; max-width: 36rem; }

/* Project detail */
.artwork-stage { background: var(--mist); padding: clamp(1.5rem, 4vw, 4rem) var(--gutter); }
.artwork-stage button { display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
.artwork-stage img { max-height: 78svh; width: auto; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(20,32,33,.45); }
.project-layout { display: grid; gap: 3rem; }
.project-story { font-size: 1.1875rem; line-height: 1.72; max-width: 40rem; }
.project-story h2 { font-size: var(--step-2); font-stretch: 110%; margin: 2.5rem 0 1rem; }
.project-story .concept { font-size: var(--step-2); font-style: italic; line-height: 1.4; color: var(--graphite); margin-bottom: 2rem; }
.info-panel { align-self: start; border-top: 2px solid var(--graphite); padding-top: 1.25rem; }
.info-panel dl { margin: 0 0 1.75rem; font-family: var(--font-display); }
.info-panel div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.info-panel dt { color: var(--slate); }
.info-panel dd { margin: 0; font-weight: 500; }
.info-panel .btn { width: 100%; }
.info-panel__note { margin-top: .85rem; font-size: .9375rem; color: var(--slate); line-height: 1.5; }
@media (min-width: 60rem) {
  .project-layout { grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr); gap: 5rem; }
  .info-panel { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.plates { display: grid; gap: clamp(1rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.plates button { padding: 0; border: 0; background: var(--mist); cursor: zoom-in; }
.plates img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Before / after */
.compare { position: relative; overflow: hidden; background: var(--mist); --pos: 50%; max-width: 64rem; margin-inline: auto; }
.compare img { width: 100%; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__after img { height: 100%; object-fit: cover; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--paper); translate: -1px 0; pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--paper); background: rgba(20,32,33,.35); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__tags { display: flex; justify-content: space-between; margin-top: .75rem; }

/* Lightbox */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,32,33,.96); color: var(--paper); }
.lightbox::backdrop { background: rgba(20,32,33,.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86svh; width: auto; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; color: var(--paper); }
.lightbox__caption { margin-top: 1rem; font-family: var(--font-display); font-size: .9375rem; text-align: center; }

/* About */
.about-grid { display: grid; gap: 3rem; }
.about-grid figure { margin: 0; background: var(--mist); }
.about-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; }
.principles h3 { font-size: var(--step-2); font-stretch: 110%; margin-bottom: .6rem; }
.principles p { color: var(--slate); max-width: 34rem; }
.toolbelt { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.toolbelt li { font-family: var(--font-display); font-size: .875rem; padding: .35rem .8rem; border: 1px solid var(--rule); border-radius: 999px; }
@media (min-width: 56rem) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: 6rem; align-items: start; }
  .principles { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* Prose pages (legal) */
.prose { max-width: 42rem; font-size: 1.125rem; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 .75rem; }

/* Pagination */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; font-family: var(--font-display); }

/* Closing call */
.closing { background: var(--night); color: var(--paper); }
.closing .title-xl { max-width: 16ch; }
.closing p { color: rgba(255,255,255,.78); max-width: 32rem; font-size: var(--step-1); margin-top: 1.25rem; }
.closing .lens-hero__actions { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--night); color: rgba(255,255,255,.8); padding-block: 4rem 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: #7fd3d0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer-grid h2 { font-size: .9375rem; font-weight: 600; color: var(--paper); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-display); font-size: .9375rem; line-height: 2.1; }
.footer-mark { --stroke: rgba(255,255,255,.55); margin-top: 4rem; line-height: 1; font-size: clamp(3rem, 1rem + 10vw, 11rem); overflow: hidden; white-space: nowrap; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-family: var(--font-display); font-size: var(--step--1); color: rgba(255,255,255,.6); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Soon pages */
.soon { min-height: 55svh; display: grid; align-content: center; }

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

/* ===== Forms (Phase 4) ===== */
.brief-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .brief-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 5rem; } }
.brief-form { max-width: 46rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.narrow { max-width: 32rem; }
.stack > * + * { margin-top: 1rem; }

.step { border: 0; margin: 0 0 3.5rem; padding: 0; min-width: 0; }
.step__legend { display: flex; align-items: baseline; gap: .9rem; padding: 0; margin-bottom: 1.75rem; font-family: var(--font-display); font-size: var(--step-3); font-stretch: 112%; font-weight: 700; letter-spacing: -0.015em; }
.step__num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid var(--graphite); font-size: 1rem; font-stretch: 100%; flex: none; translate: 0 -.2rem; }
[data-stepper].is-stepping .step { display: none; }
[data-stepper].is-stepping .step.is-current { display: block; }
[data-stepper].is-stepping .step.is-current .step__num { background: var(--graphite); color: var(--paper); }
.stepper-progress { font-family: var(--font-display); font-size: .9375rem; color: var(--slate); margin-bottom: 1.5rem; }
.stepper-bar { display: flex; gap: .35rem; margin-top: .6rem; }
.stepper-bar span { height: 3px; flex: 1; background: var(--rule); }
.stepper-bar span.is-done { background: var(--lens); }

.field { margin-bottom: 1.6rem; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1.2fr 1.2fr .8fr; } }
.field__label { display: block; margin: 0 0 .45rem; font-family: var(--font-display); font-size: .9375rem; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--slate); }
.field__hint { margin: -.15rem 0 .6rem; font-size: .9375rem; line-height: 1.5; color: var(--slate); }
.field__error { margin: .45rem 0 0; font-family: var(--font-display); font-size: .875rem; font-weight: 500; color: #a3302a; }
.field__count { margin: .35rem 0 0; font-family: var(--font-display); font-size: var(--step--1); color: var(--slate); text-align: right; min-height: 1.2em; }

.input { width: 100%; min-height: 3rem; padding: .7rem .85rem; font: 400 1.0625rem/1.4 var(--font-text); color: var(--graphite); background: var(--paper); border: 1px solid #b9c1c3; border-radius: var(--radius-control); transition: border-color .15s; }
.input:hover { border-color: var(--slate); }
.input:focus { outline: 2px solid var(--lens); outline-offset: 0; border-color: var(--lens); }
.input[aria-invalid="true"] { border-color: #a3302a; }
.input--short { max-width: 16rem; }
.textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
select.input { 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='%2322292c' stroke-width='1.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.2rem; padding-right: 2.2rem; }

/* Choice options */
.options { display: grid; gap: .6rem; }
.options--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: .75rem; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option__body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.option--tile .option__body { flex-direction: column; justify-content: flex-start; gap: .3rem; height: 100%; padding: 1.1rem 1.1rem 1rem; }
.option__name { font-family: var(--font-display); font-weight: 600; font-stretch: 105%; }
.option--tile .option__name { font-size: 1.125rem; }
.option__line { font-style: italic; color: var(--slate); line-height: 1.4; font-size: .9375rem; }
.option__meta { font-family: var(--font-display); font-size: .875rem; color: var(--slate); }
.option--tile .option__meta { margin-top: auto; padding-top: .6rem; color: var(--graphite); }
.option:hover .option__body { border-color: var(--slate); }
.option input:checked + .option__body { border-color: var(--lens); box-shadow: inset 0 0 0 1px var(--lens); }
.option input:checked + .option__body .option__name::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lens); margin-right: .5rem; translate: 0 -.1rem; }
.option input:focus-visible + .option__body { outline: 2px solid var(--lens); outline-offset: 2px; }

.check { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--lens); flex: none; }
.chip--input { position: relative; cursor: pointer; }
.chip--input input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip--input:has(input:checked) { background: var(--lens); border-color: var(--lens); color: var(--paper); }
.chip--input:has(input:focus-visible) { outline: 2px solid var(--lens); outline-offset: 2px; }

/* Uploads */
.drop { position: relative; display: grid; justify-items: start; gap: .5rem; padding: 1.75rem; border: 1.5px dashed #b9c1c3; background: var(--mist); cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--lens); background: #e3eceb; }
.drop:focus-within { outline: 2px solid var(--lens); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; font-stretch: 108%; }
.drop__hint { color: var(--slate); font-size: .9375rem; line-height: 1.5; max-width: 36rem; }
.drop__btn { margin-top: .5rem; pointer-events: none; }
.drop--small { padding: 1.25rem 1.5rem; }
.drop--small .drop__title { font-size: 1.0625rem; }
.file-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.file-list li { display: flex; align-items: center; gap: .85rem; padding: .5rem .75rem; border: 1px solid var(--rule); font-family: var(--font-display); font-size: .875rem; }
.file-list img { width: 3rem; height: 3rem; object-fit: cover; background: var(--mist); }
.file-list .file-list__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-list__size { color: var(--slate); }
.file-list li.is-invalid { border-color: #a3302a; color: #a3302a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.form-actions .btn[data-step-next], .form-actions .btn[data-submit] { margin-left: auto; }

/* Notices */
.notice { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--lens); background: #e6f0ef; }
.notice p { margin: 0; }
.notice--error { border-left-color: #a3302a; background: #f7eceb; }
.notice--error h2 { font-size: var(--step-1); margin-bottom: .5rem; }
.notice--error ul { margin: 0; padding-left: 1.1rem; }
.notice--error a { color: #a3302a; }
.notice:focus { outline: 2px solid #a3302a; outline-offset: 2px; }

/* Inspired-by card */
.inspired { display: flex; gap: 1.1rem; align-items: center; padding: 1rem; margin-bottom: 2.5rem; background: var(--mist); }
.inspired img { width: 6rem; height: 7.5rem; object-fit: cover; flex: none; }
.inspired p { margin: 0; }
.inspired__title { font-family: var(--font-display); font-weight: 650; font-size: 1.125rem; margin: .15rem 0 .35rem !important; }
.inspired__note { font-size: .9375rem; color: var(--slate); line-height: 1.45; }

/* Estimate */
.estimate { position: sticky; top: calc(var(--header-h) + 2rem); padding-top: 1.25rem; border-top: 2px solid var(--graphite); }
.estimate__title { font-size: var(--step-1); font-stretch: 108%; margin-bottom: 1rem; }
.estimate__lines { list-style: none; margin: 0; padding: 0; font-family: var(--font-display); font-size: .9375rem; }
.estimate__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.estimate__lines li span:last-child { white-space: nowrap; }
.estimate__lines .estimate__empty { color: var(--slate); border: 0; }
.estimate__total { margin: 1rem 0 .75rem; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; font-stretch: 110%; line-height: 1.2; }
.estimate__total small { display: block; font-size: .875rem; font-weight: 500; font-stretch: 100%; color: var(--slate); margin-bottom: .2rem; }
.estimate__note { font-size: .9375rem; color: var(--slate); line-height: 1.5; }
@media (max-width: 63.99rem) { .estimate { position: static; order: -1; } }

/* Client area */
.next-steps { margin: 2.5rem 0 0; padding-left: 1.25rem; max-width: 36rem; }
.next-steps li { margin-bottom: .75rem; padding-left: .35rem; }
.project-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.project-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.project-row__main { display: grid; gap: .2rem; }
.project-row__title { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); font-stretch: 108%; }
.project-row:hover .project-row__title { color: var(--lens); }
.status { display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-family: var(--font-display); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.status--open { background: #e0eeed; color: var(--lens-deep); }
.status--closed { background: var(--mist); color: var(--slate); }
.status--large { font-size: .9375rem; padding: .45rem 1rem; }
.panel { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.panel h2 { margin-bottom: 1.25rem; }
.brief-text { font-size: 1.125rem; max-width: 40rem; }
.thumbs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; }
.thumbs a { display: grid; gap: .3rem; text-decoration: none; }
.thumbs img, .thumbs__doc { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); }
.thumbs__doc { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--slate); }
.thumbs__name { font-family: var(--font-display); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-upload { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem; background: var(--mist); }
.inline-upload .field__label { width: 100%; margin: 0; }
.inline-upload .field__hint { width: 100%; margin: 0; }
.msg { padding: 1rem 1.1rem; margin-bottom: .75rem; max-width: 36rem; background: var(--mist); }
.msg--client { margin-left: auto; background: #e6f0ef; }
.msg p:last-child { margin: 0; }
.msg .meta { margin-bottom: .35rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 1px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.25rem; display: grid; gap: .15rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.25rem - 5px); top: .4rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--lens); }
.timeline li:last-child::before { background: var(--lens); }
.timeline__label { font-family: var(--font-display); font-weight: 600; }
.timeline p { margin: .25rem 0 0; font-size: .9375rem; color: var(--slate); }

/* ===== Payments and cart (Phase 5) ===== */
.pay-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) { .pay-layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); gap: 5rem; } }
.pay-card { max-width: 38rem; }
.pay-card h2 { margin-bottom: 1rem; }
.info-panel__total { border-bottom: 0 !important; border-top: 2px solid var(--graphite); margin-top: .25rem; }
.info-panel__total dt, .info-panel__total dd { color: var(--graphite); font-weight: 700; font-size: 1.0625rem; }
.info-panel dl div dt { overflow-wrap: anywhere; }

.pay-pulse { position: relative; width: 4.5rem; height: 4.5rem; margin-bottom: 1.5rem; }
.pay-pulse::before, .pay-pulse span { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lens); }
.pay-pulse span { animation: pulse 1.8s var(--ease) infinite; }
.pay-pulse::after { content: ""; position: absolute; inset: 1.6rem; border-radius: 50%; background: var(--lens); }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

.ticket-codes { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.ticket-codes li { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; border: 1.5px dashed var(--graphite); font-family: var(--font-display); }
.ticket-codes strong { font-size: 1.25rem; letter-spacing: .06em; }

.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cart-line { display: grid; grid-template-columns: 1fr; gap: .75rem 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.cart-line p { margin: 0; }
.cart-line__title { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); font-stretch: 106%; margin-bottom: .3rem !important; }
.cart-line__amount { font-family: var(--font-display); font-weight: 600; }
.qty { display: flex; gap: .5rem; align-items: center; }
.qty .input { width: 5rem; min-height: 2.75rem; }
.qty .btn { min-height: 2.75rem; padding-inline: .9rem; }
@media (min-width: 48rem) { .cart-line { grid-template-columns: 1fr auto 8rem auto; } .cart-line__amount { text-align: right; } }
.link-button { background: none; border: 0; padding: .5rem 0; font: 500 .9375rem var(--font-display); color: var(--slate); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.link-button:hover { color: #a3302a; }

.quote-table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-family: var(--font-display); font-size: .9375rem; }
.quote-table th, .quote-table td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.quote-table thead th { color: var(--slate); font-size: var(--step--1); }
.quote-table .num { text-align: right; white-space: nowrap; padding-left: 1rem; }
.quote-table tfoot th { color: var(--slate); }
.quote-table__total th, .quote-table__total td { font-weight: 700 !important; color: var(--graphite) !important; font-size: 1.0625rem; border-top: 2px solid var(--graphite); }
.quote-accept { padding: 1.25rem; background: #e6f0ef; margin-top: 1.5rem; }
.quote-accept .btn { margin-top: .5rem; }
.quote-decline { margin-top: 1rem; }
.quote-decline summary { cursor: pointer; font-family: var(--font-display); font-size: .9375rem; color: var(--slate); padding: .5rem 0; }
.quote-decline form { margin-top: .75rem; }
.pay-layout .info-panel div { grid-template-columns: minmax(0, 1fr) auto; }
.pay-layout .info-panel dd { text-align: right; white-space: nowrap; }

/* ===== Events, calendar, tickets (Phase 6) ===== */
.event-row { display: grid; gap: 1rem 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.event-row:last-child { border-bottom: 1px solid var(--rule); }
.event-row__date { text-decoration: none; font-family: var(--font-display); line-height: .85; color: var(--lens); }
.event-row__day { display: block; font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; }
.event-row__month { display: block; margin-top: .6rem; font-size: 1rem; font-weight: 600; color: var(--graphite); }
.event-row__body h2 a { text-decoration: none; }
.event-row__sub { display: block; font-weight: 400; }
.event-row__text { margin: .75rem 0 0; color: var(--slate); max-width: 40rem; }
.event-row__cta { display: grid; gap: .35rem; align-content: start; justify-items: start; }
.event-row__cta p { margin: 0; }
.event-row__price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; }
.event-row__cta .btn { margin-top: .6rem; }
@media (min-width: 56rem) { .event-row { grid-template-columns: 12rem 1fr 13rem; align-items: start; } .event-row__cta { justify-items: end; text-align: right; } }

.event-detail { display: grid; gap: 3rem; padding-block: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.event-detail__poster { margin: 0; background: var(--mist); }
.event-detail__poster button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.event-detail__poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 60rem) { .event-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; } .event-detail__poster { position: sticky; top: calc(var(--header-h) + 2rem); } }

.countdown { display: flex; gap: 2rem; margin: 2rem 0; font-family: var(--font-display); color: var(--slate); }
.countdown strong { display: block; font-size: var(--step-4); font-weight: 750; font-stretch: 115%; color: var(--graphite); line-height: 1; font-variant-numeric: tabular-nums; }

.facts { margin: 2rem 0; font-family: var(--font-display); font-size: .9375rem; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; font-weight: 500; }
.facts--tight { margin: 0; }
.facts--tight div { grid-template-columns: 5rem 1fr; }

.buy { padding: 1.5rem; background: var(--mist); }
.buy__form { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.buy__state { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }

.rules__grid { display: grid; gap: 2rem 3rem; margin-top: 2.5rem; }
.rules h3 { font-size: var(--step-1); font-stretch: 108%; margin-bottom: .6rem; }
.rules p { color: var(--slate); max-width: 34rem; }
@media (min-width: 48rem) { .rules__grid { grid-template-columns: repeat(2, 1fr); } }

.calendar-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .calendar-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }
.calendar-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.calendar-nav { display: flex; gap: .5rem; }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--font-display); }
.calendar th { padding: .5rem 0; font-size: var(--step--1); font-weight: 500; color: var(--slate); text-align: left; }
.calendar abbr { text-decoration: none; }
.cal-day { vertical-align: top; height: 6.5rem; padding: .5rem; border: 1px solid var(--paper); background: var(--paper); }
.cal-day__num { display: block; font-weight: 600; }
.cal-day__state { display: block; margin-top: .25rem; font-size: .75rem; }
.cal-day--available { background: #e0eeed; }
.cal-day--available .cal-day__state { color: var(--lens-deep); }
.cal-day--limited { background: repeating-linear-gradient(135deg, #e0eeed 0 8px, var(--mist) 8px 16px); }
.cal-day--unavailable { background: var(--mist); color: var(--slate); }
.cal-day--past { background: var(--paper); color: #aab2b4; }
.cal-day--other { opacity: .45; }
.cal-day--today .cal-day__num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--graphite); color: var(--paper); }
.cal-day__event { display: block; margin-top: .4rem; padding: .25rem .4rem; background: var(--lens); color: var(--paper); font-size: .75rem; font-weight: 600; text-decoration: none; line-height: 1.25; }
.cal-day__event:hover { background: var(--lens-deep); color: var(--paper); }
.cal-day__event span { display: block; font-weight: 400; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; padding: 0; font-family: var(--font-display); font-size: .875rem; color: var(--slate); }
.legend li { display: flex; align-items: center; gap: .5rem; }
.swatch { width: 1rem; height: 1rem; display: inline-block; border: 1px solid var(--rule); }
.swatch--available { background: #e0eeed; }
.swatch--limited { background: repeating-linear-gradient(135deg, #e0eeed 0 3px, var(--mist) 3px 6px); }
.swatch--unavailable { background: var(--mist); }
.swatch--event { background: var(--lens); }
@media (max-width: 40rem) {
  .cal-day { height: 3.5rem; padding: .3rem; }
  .cal-day__state { display: none; }
  .cal-day__event { font-size: 0; height: .4rem; padding: 0; margin-top: .3rem; }
  .cal-day__event span { display: none; }
}

.ticket { display: grid; max-width: 44rem; border: 1.5px solid var(--graphite); background: var(--paper); }
.ticket__main { padding: 1.75rem; }
.ticket__stub { padding: 1.75rem; border-top: 1.5px dashed var(--graphite); display: grid; justify-items: center; gap: .75rem; text-align: center; }
.ticket__qr { width: 11rem; height: 11rem; }
.ticket__qr svg { width: 100%; height: 100%; }
.ticket__code { margin: 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: .05em; }
.ticket--used { opacity: .7; }
@media (min-width: 40rem) { .ticket { grid-template-columns: 1fr 15rem; } .ticket__stub { border-top: 0; border-left: 1.5px dashed var(--graphite); } }

/* Paybill mode */
.paybill-steps { margin: 1.25rem 0; padding-left: 1.25rem; font-size: 1.0625rem; line-height: 1.7; }
.paybill-steps li { margin-bottom: .35rem; }
.paybill-number { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .04em; }
.pay-reported { border-left: 3px solid var(--lens); padding-left: 1.25rem; }
