/* ==========================================================================
   FLATOUT — sections
   ========================================================================== */

/* ---- 01 · hero ----------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-ivory);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  transform: scale(1.06);
  filter: var(--grade) brightness(0.86);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to top,
      rgba(9, 9, 8, 0.94) 0%,
      rgba(9, 9, 8, 0.62) 34%,
      rgba(9, 9, 8, 0.18) 68%,
      rgba(9, 9, 8, 0.5) 100%
    ),
    linear-gradient(to right, rgba(9, 9, 8, 0.55) 0%, rgba(9, 9, 8, 0) 58%);
}

.hero__top {
  position: absolute;
  inset-block-start: calc(var(--nav-h) + clamp(1rem, 3vw, 2.5rem));
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-5);
}

.hero__stamp {
  display: grid;
  gap: 0.35rem;
  text-align: end;
  color: rgba(242, 238, 228, 0.62);
}

.hero__content {
  position: relative;
  padding-block-start: 30vh;
  padding-block-end: clamp(1.25rem, 2.2vw, 2rem);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(242, 238, 228, 0.7);
  margin-block-end: clamp(1rem, 2.2vw, 1.75rem);
}

.hero__eyebrow::before {
  content: "";
  width: clamp(28px, 5vw, 64px);
  height: 1px;
  background: var(--c-oak);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-mega);
  line-height: 0.84;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  margin: 0;
}

.hero__title .line-mask {
  padding-block-end: 0.045em;
}

.hero__line-2 {
  padding-inline-start: clamp(1.5rem, 12vw, 13rem);
}

.hero__line-2 .outline-type {
  -webkit-text-stroke: 1.5px rgba(242, 238, 228, 0.82);
}

@media (min-width: 1024px) {
  .hero__line-2 .outline-type {
    -webkit-text-stroke-width: 2px;
  }
}

.hero__bar {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  margin-block-start: clamp(1.75rem, 3.4vw, 3rem);
  padding-block-start: clamp(1rem, 1.8vw, 1.5rem);
  border-block-start: 1px solid rgba(242, 238, 228, 0.2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero__cue {
  display: none;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
  color: rgba(242, 238, 228, 0.6);
}

.hero__cue-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(242, 238, 228, 0.24);
  overflow: hidden;
}

.hero__cue-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 40%;
  background: var(--c-oak);
  animation: cue 2.4s var(--ease-in-out) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-110%);
  }
  60%,
  100% {
    transform: translateY(260%);
  }
}

@media (min-width: 860px) {
  .hero__bar {
    grid-template-columns: 1fr auto;
  }

  .hero__cue {
    display: flex;
  }
}

@media (min-width: 900px) {
  .hero__content {
    padding-block-start: 34vh;
  }
}

/* ---- 02 · manifesto ------------------------------------------------------ */

.manifesto {
  background: var(--bg);
  padding-block-start: clamp(4.5rem, 9vw, 9rem);
}

.manifesto__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.manifesto__title {
  margin-block-end: clamp(1.25rem, 2.4vw, 2rem);
  max-width: 18ch;
}

.manifesto__title em {
  font-style: normal;
  color: var(--accent);
}

.manifesto__body {
  display: grid;
  gap: 1.1rem;
  max-width: 46ch;
}

.manifesto__figure {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.manifesto__figure .media {
  aspect-ratio: 4 / 5;
}

.manifesto__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-faint);
}

.manifesto__aside {
  display: grid;
  gap: 0.75rem;
  padding-block-start: clamp(1rem, 2vw, 1.75rem);
  border-block-start: 1px solid var(--line);
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 40ch;
}

@media (min-width: 900px) {
  .manifesto__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter-tight);
    row-gap: 0;
  }

  .manifesto__text {
    grid-column: 1 / span 6;
    padding-block-start: clamp(1rem, 4vw, 4.5rem);
  }

  .manifesto__figure {
    grid-column: 8 / span 5;
  }

  .manifesto__figure .media {
    aspect-ratio: 3 / 4;
  }
}

/* ---- 03 · signature slider ----------------------------------------------- */

.signature {
  background: var(--bg);
  overflow: hidden;
}

.signature .section__head {
  align-items: center;
}

.slider__controls {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.circle-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: border-color var(--dur-1) var(--ease),
    background-color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}

.circle-btn svg {
  width: 13px;
  height: 13px;
}

.circle-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(182, 139, 82, 0.1);
}

.circle-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.slider {
  position: relative;
}

/* Cards run past the right edge by design; the fade tells the eye the rail
   continues instead of looking like a clipped card. */
.slider::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: clamp(44px, 8vw, 132px);
  background: linear-gradient(to right, rgba(23, 23, 23, 0) 0%, var(--bg) 92%);
  pointer-events: none;
  z-index: 2;
}

.slider__viewport {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  /* Without this the snap port starts at the border box, so mandatory
     snapping drags card 01 flush to the screen edge and eats the gutter. */
  scroll-padding-inline: var(--gutter);
  padding-block-end: 0.5rem;
  cursor: grab;
}

.slider__viewport::-webkit-scrollbar {
  display: none;
}

.slider__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.slider__viewport.is-dragging img {
  pointer-events: none;
}

.product {
  flex: 0 0 auto;
  width: clamp(232px, 25vw, 400px);
  scroll-snap-align: start;
  display: grid;
  gap: clamp(0.9rem, 1.4vw, 1.25rem);
}

.product__media {
  aspect-ratio: 3 / 4;
  background: var(--c-graphite);
}

.product__media img {
  transition: transform 900ms var(--ease), filter 600ms var(--ease);
  filter: var(--grade);
}

.product:hover .product__media img {
  transform: scale(1.035);
  filter: saturate(0.92) contrast(1.06) brightness(1);
}

.product__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block-start: 0.35rem;
  border-block-start: 1px solid var(--line);
}

.product__idx {
  color: var(--accent);
  flex: none;
}

.product__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  flex: 1;
}

.product__price {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

.product__desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 34ch;
}

.slider__progress {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-block-start: clamp(1.75rem, 3vw, 2.75rem);
}

.slider__track-bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.slider__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 20%;
  background: var(--c-oak);
  transform-origin: left center;
}

.slider__counter {
  color: var(--text-faint);
  white-space: nowrap;
}

.slider__counter b {
  color: var(--text);
  font-weight: 500;
}

.slider__hint {
  display: none;
  color: var(--text-faint);
  white-space: nowrap;
}

@media (min-width: 760px) {
  .slider__hint {
    display: inline;
  }
}

/* ---- 04 · experience ----------------------------------------------------- */

.experience {
  background: var(--bg-sunken);
  padding-block-end: clamp(4rem, 8vw, 8rem);
}

.experience__head {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: end;
  margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
}

.experience__head .h2 {
  max-width: 16ch;
}

.experience__notes {
  display: grid;
  gap: 0.9rem;
  max-width: 40ch;
}

.experience__collage {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.exp-figure {
  display: grid;
  gap: 0.8rem;
}

.exp-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-faint);
}

.exp-figure--a .media {
  aspect-ratio: 4 / 3;
}

.exp-figure--a .media img {
  /* The sign sits right of centre; bias the crop so the word stays whole. */
  object-position: 72% 46%;
}

.exp-figure--b .media {
  aspect-ratio: 3 / 4;
}

.exp-figure--b .media img {
  object-position: 50% 44%;
}

.exp-figure--c .media {
  aspect-ratio: 16 / 9;
}

.exp-figure--c {
  margin-block-start: clamp(0.5rem, 2vw, 1.5rem);
}

/* The left column runs short once the wide frame is placed; this block
   takes the dead space and gives the collage a third texture — type. */
.exp-note {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-block-start: clamp(1.25rem, 2vw, 1.75rem);
  border-block-start: 1px solid var(--line);
  max-width: 26ch;
}

.exp-note__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.3vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.exp-note__meta {
  color: var(--text-faint);
  white-space: nowrap;
  max-width: none;
}

@media (min-width: 900px) {
  .experience__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .experience__notes {
    justify-self: end;
    text-align: start;
  }

  .experience__collage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter-tight);
    align-items: start;
  }

  .exp-figure--a {
    grid-column: 1 / span 6;
    grid-row: 1;
  }

  .exp-figure--b {
    grid-column: 8 / span 5;
    /* Spans into the quote's row so the tall frame does not leave a hole in
       the left column; the quote then sits straight under the first frame. */
    grid-row: 1 / span 2;
    margin-block-start: clamp(3rem, 9vw, 9rem);
  }

  .exp-figure--c {
    grid-column: 1 / span 12;
    grid-row: 3;
    margin-block-start: clamp(2rem, 5vw, 4.5rem);
  }

  .exp-note {
    grid-column: 1 / span 6;
    grid-row: 2;
    margin-block-start: clamp(0.75rem, 1.5vw, 1.25rem);
  }

  .exp-figure--c .media {
    aspect-ratio: 21 / 9;
  }
}

/* ---- 05 · menu (the printed card) ---------------------------------------- */

.menu-block {
  background: var(--c-ivory);
  color: #17140f;
  border-block: 1px solid rgba(23, 20, 15, 0.16);
  /* Same token, inverted ground: the faint step has to clear 4.5:1 on paper
     too, which is a different value than it is on carbon. */
  --text-faint: #67625a;
  --line: rgba(23, 20, 15, 0.16);
}

.menu-block__inner {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.menu-block__head {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-block-end: clamp(1.75rem, 3.5vw, 3rem);
}

.menu-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 0.88;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  max-width: 14ch;
}

.menu-block__title span {
  display: block;
}

.menu-block__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-faint);
}

.menu-panel {
  min-height: 320px;
}

/* Without JS the tab strip cannot switch anything, so show every list with
   its own label instead of hiding five sixths of the menu. */
html:not(.has-js) .tabs {
  display: none;
}

html:not(.has-js) .menu-panel > [role="tabpanel"][hidden] {
  display: block;
}

html:not(.has-js) .menu-panel > [role="tabpanel"] + [role="tabpanel"] {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  padding-block-start: clamp(1rem, 2vw, 1.5rem);
  border-block-start: 1px solid var(--line);
}

html:not(.has-js) .menu-panel > [role="tabpanel"]::before {
  content: attr(data-panel);
  display: block;
  margin-block-end: 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-faint);
}

.menu-panel > [role="tabpanel"].is-entering {
  animation: panel-in 520ms var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dishes {
  display: grid;
  gap: 0;
}

.dish {
  padding-block: clamp(0.9rem, 1.4vw, 1.15rem);
  border-block-end: 1px solid var(--line);
  transition: opacity var(--dur-2) var(--ease);
}

.dish:first-child {
  border-block-start: 1px solid var(--line);
}

.dish__row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.dish__name {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.3;
  color: #17140f;
}

.dish__leader {
  flex: 1;
  border-block-end: 1px dotted rgba(23, 20, 15, 0.28);
  transform: translateY(-0.3em);
  min-width: 1.5rem;
}

.dish__price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #17140f;
  transition: color var(--dur-1) var(--ease);
}

.dish__cur {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-inline-end: 0.15rem;
}

.dish__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 44ch;
  margin-block-start: 0.2rem;
}

.dish:hover .dish__price {
  color: var(--c-oak-deep);
}

.menu-block__foot {
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.menu-block__note {
  color: var(--text-faint);
  max-width: 70ch;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

@media (min-width: 820px) {
  .menu-block__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .menu-block__meta {
    justify-content: flex-end;
    text-align: end;
  }

  .dishes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .dish:first-child,
  .dish:nth-child(2) {
    border-block-start: 1px solid var(--line);
  }
}

/* ---- 06 · gallery -------------------------------------------------------- */

.gallery {
  background: var(--bg);
}

.gallery__grid {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-graphite);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1100ms var(--ease), filter 700ms var(--ease);
  filter: var(--grade);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242, 238, 228, 0.1);
  transition: border-color var(--dur-2) var(--ease);
  pointer-events: none;
}

.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.05) brightness(1);
}

.tile:hover::after,
.tile:focus-visible::after {
  border-color: rgba(182, 139, 82, 0.55);
}

.tile__tag {
  position: absolute;
  inset-block-end: 0.85rem;
  inset-inline-start: 0.85rem;
  color: rgba(242, 238, 228, 0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.tile:hover .tile__tag,
.tile:focus-visible .tile__tag {
  opacity: 1;
  transform: translateY(0);
}

.tile--a {
  aspect-ratio: 4 / 5;
  grid-column: span 2;
}

.tile--b {
  aspect-ratio: 1 / 1;
}

.tile--c {
  aspect-ratio: 1 / 1;
}

.tile--d {
  aspect-ratio: 3 / 4;
  grid-column: span 2;
}

.tile--e {
  aspect-ratio: 3 / 4;
}

.tile--f {
  /* Matches --e so the last row closes instead of leaving a hole. */
  aspect-ratio: 3 / 4;
}

@media (min-width: 700px) {
  .gallery__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tile--a {
    grid-column: 1 / span 3;
    aspect-ratio: 4 / 5;
  }

  .tile--b {
    grid-column: 4 / span 3;
    aspect-ratio: 4 / 5;
    margin-block-start: clamp(1.5rem, 4vw, 4rem);
  }

  .tile--c {
    grid-column: 1 / span 2;
    aspect-ratio: 2 / 3;
  }

  .tile--d {
    grid-column: 3 / span 4;
    /* The tall tile beside it sets the row; stretching this one closes the
       hole underneath and keeps the mosaic edge to edge. */
    aspect-ratio: auto;
    align-self: stretch;
  }

  .tile--e {
    grid-column: 1 / span 3;
    aspect-ratio: 3 / 2;
  }

  .tile--f {
    grid-column: 4 / span 3;
    aspect-ratio: 3 / 2;
  }
}

/* ---- 07 · reputation ----------------------------------------------------- */

.reputation {
  background: var(--bg);
  border-block: 1px solid var(--line);
}

.reputation__inner {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.reputation__score {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  gap: 0 0.4rem;
}

.reputation__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 4.75rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.reputation__denom {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.reputation__copy {
  color: var(--text-dim);
  max-width: 42ch;
}

.reputation__stars {
  grid-column: 1 / -1;
  display: inline-flex;
  gap: 0.25rem;
  margin-block-start: 0.6rem;
  color: var(--accent);
}

.reputation__stars svg {
  width: 12px;
  height: 12px;
}

.reputation__stars .is-partial {
  opacity: 0.45;
}

@media (min-width: 860px) {
  .reputation__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* ---- 08 · visit ---------------------------------------------------------- */

.visit {
  background: var(--bg);
}

.visit__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.visit__title {
  max-width: 12ch;
  margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.visit__list {
  display: grid;
  gap: 0;
  border-block-start: 1px solid var(--line);
}

.visit__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
  align-items: start;
}

.visit__key {
  color: var(--text-faint);
  padding-block-start: 0.2rem;
}

.visit__val {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.visit__val a {
  display: inline-block;
  border-block-end: 1px solid rgba(242, 238, 228, 0.28);
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  /* Standalone value links (phone, directions) need a real target; the
     negative margin keeps the row's padding-block untouched. */
  padding-block: 0.4rem;
  margin-block: -0.4rem;
}

.visit__val a:hover {
  color: var(--accent);
  border-block-end-color: var(--accent);
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-block-start: clamp(1.5rem, 3vw, 2.25rem);
}

.visit__map {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background-color: #0f0f0e;
  overflow: hidden;
}

.visit__plate {
  display: block;
  width: 100%;
  height: 100%;
}

/* Survey-plate cartography. Everything is a hairline at low alpha so the
   map reads as a drafting sheet, not a screenshot of a map product. */
.plate-water {
  fill: rgba(83, 125, 138, 0.16);
}

.plate-hatch line {
  stroke: rgba(83, 125, 138, 0.22);
  stroke-width: 1;
}

.plate-block rect {
  fill: rgba(242, 238, 228, 0.028);
  stroke: rgba(242, 238, 228, 0.1);
  stroke-width: 1;
}

.plate-park {
  fill: rgba(182, 139, 82, 0.09) !important;
  stroke: rgba(182, 139, 82, 0.24) !important;
}

.plate-road line {
  stroke: rgba(242, 238, 228, 0.19);
  stroke-width: 1.5;
}

.plate-road-major line {
  stroke: rgba(242, 238, 228, 0.34);
  stroke-width: 2.5;
}

.plate-label text,
.plate-anno text {
  fill: rgba(242, 238, 228, 0.38);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.plate-water-label {
  fill: rgba(83, 125, 138, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
}

.plate-anno line,
.plate-anno path {
  stroke: rgba(242, 238, 228, 0.34);
  stroke-width: 1;
  fill: none;
}

.plate-pin circle:last-of-type {
  fill: var(--c-oak);
}

.plate-pin line {
  stroke: var(--c-oak);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.plate-pulse {
  fill: none;
  stroke: var(--c-oak);
  stroke-width: 1;
  opacity: 0.55;
  transform-origin: 386px 212px;
  animation: plate-pulse 3.4s var(--ease) infinite;
}

@keyframes plate-pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.5; }
  50%      { transform: scale(1.12); opacity: 0.12; }
}

.plate-pin-label rect {
  fill: var(--c-oak);
}

.plate-pin-label text {
  fill: #171717;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.visit__map-link {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(10, 10, 9, 0.9);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}

.visit__map-link .mono {
  color: var(--text-faint);
}

.visit__map-link svg {
  width: 10px;
  height: 10px;
}

.visit__map-link:hover,
.visit__map-link:focus-visible {
  color: var(--c-ivory);
  background: rgba(10, 10, 9, 1);
}

.visit__map-link:hover .mono {
  color: var(--c-oak);
}

.visit__pin {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  background: rgba(10, 10, 9, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--c-ivory);
  pointer-events: none;
}

@media (min-width: 900px) {
  .visit__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .visit__map {
    aspect-ratio: 16 / 13;
  }
}

/* ---- 09 · footer --------------------------------------------------------- */

.footer {
  background: var(--bg-sunken);
  padding-block-start: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  /* Query container for the wordmark, which sizes itself off this width. */
  container-type: inline-size;
}

.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block-end: clamp(2.5rem, 5vw, 4rem);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}

.footer__col {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-block-end: 0.15rem;
}

.footer__col a,
.footer__col p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-dim);
  transition: color var(--dur-1) var(--ease);
}

.footer__col a:hover {
  color: var(--text);
}

.footer__col a {
  width: fit-content;
  /* 15px text measures 22px; pad to a 34px target and pull the space back so
     the column keeps its airy rhythm. */
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-block: -0.4rem;
}

.footer__brand {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  max-width: 30ch;
}

.footer__brand p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer__mark {
  display: block;
  width: 100%;
  margin: 0;
  padding-inline: var(--gutter);
  padding-block-end: 0.14em;
  margin-block-end: clamp(0.5rem, 1.5vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  /* Measured advance for "FLATOUT" in Big Shoulders at this tracking is
     2.7916em. Divide the padded content box by it and the wordmark lands
     exactly gutter-to-gutter at every width — no vw rounding, no overflow. */
  font-size: max(2.5rem, calc((100cqw - 2 * var(--gutter)) / 2.7916));
  line-height: 0.78;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: rgba(242, 238, 228, 0.1);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 1.25rem;
  border-block-start: 1px solid var(--line);
  color: var(--text-faint);
}

.footer__bottom a:hover {
  color: var(--text);
}

.footer__to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 34px;
  margin-block: -0.5rem;
}

.footer__to-top svg {
  width: 10px;
  height: 10px;
}

@media (min-width: 780px) {
  .footer__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- narrow screens --------------------------------------------------- */
@media (max-width: 559px) {
  /* The stamp stacks under the service line so the coordinates stop
     wrapping a lone hemisphere letter onto its own row. */
  .hero__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero__stamp {
    text-align: start;
    gap: 0.15rem;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }

  .hero__stamp span {
    white-space: nowrap;
  }

  .hero__content {
    padding-block-start: 34vh;
  }

  .hero__title {
    font-size: clamp(2.6rem, 12.6vw, 4rem);
  }

  .product {
    width: min(78vw, 320px);
  }

  /* The plate is drawn in an 800-unit viewBox; at 353px that renders every
     label around 4px. Scale the type up in drawing units so it survives the
     shrink, and let the pin's label plate grow with it. */
  .plate-label text {
    font-size: 22px;
    fill: rgba(242, 238, 228, 0.58);
  }

  .plate-water-label {
    font-size: 24px;
  }

  .plate-anno {
    display: none;
  }

  .plate-pin-label {
    transform: scale(1.55);
    transform-origin: 398px 212px;
  }

  .plate-pin-label text {
    font-size: 14px;
  }

  .visit__map-link {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }
}
