@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #ebeee8;
  --ink: #141414;
  --ink-2: #4a4641;
  --ink-3: #6e6861;
  --mark-2: #7a7a7a;
  --brick: #8f3f26;
  --line: rgba(20, 20, 20, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --edge: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  caret-color: var(--brick);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #b5bab0 var(--paper);
}

::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* <picture> adds WebP without changing the layout */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.015em; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--edge); }

.skip { position: absolute; left: 12px; top: -48px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--edge);
  transition: background-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), color 240ms var(--ease-out);
  color: #fff;
}
.nav[data-solid] { background: rgba(255, 255, 255, 0.95); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav[data-solid] { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.4) blur(14px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.mark { width: 26px; height: 26px; }
.nav:not([data-solid]) .mark { --mark-2: rgba(255,255,255,0.7); }
.nav nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; opacity: 0.86; transition: opacity 160ms var(--ease-out); }
.nav nav a:hover { opacity: 1; }
@media (max-width: 860px) { .nav nav { display: none; } }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out);
}
.btn:hover { background: #2b2926; }
.btn:active { transform: scale(0.97); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }
.nav:not([data-solid]) .btn-small { background: #fff; color: var(--ink); }
.link { font-weight: 600; text-decoration-line: underline; text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 2.5px; }

/* hero */
.hero { position: relative; height: 175svh; }
.hero-frame {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  clip-path: inset(var(--inset-y, 0px) var(--inset-x, 0px) round var(--radius, 0px));
  background: #3b4133;
}
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--zoom, 1.12));
  transform-origin: 50% 60%;
  filter: saturate(0.9) contrast(1.04);
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.42) 0%, rgba(10,10,10,0.16) 38%, rgba(10,10,10,0.55) 100%);
}
.hero-copy {
  position: absolute; inset: 0 0 auto 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
  padding: 0 var(--edge) clamp(40px, 9vh, 96px);
  color: #fff; pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46ch; color: rgba(255,255,255,0.88); }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.hero-actions .btn { background: #fff; color: var(--ink); }
.hero-actions .btn:hover { background: var(--paper); }
.hero-copy .link { color: #fff; }

[data-enter] { opacity: 0; transform: translateY(14px); filter: blur(4px); }
.is-loaded [data-enter] { opacity: 1; transform: none; filter: none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out); }
.is-loaded [data-enter]:nth-child(2) { transition-delay: 90ms; }
.is-loaded [data-enter]:nth-child(3) { transition-delay: 180ms; }

/* statement */
.statement { padding: clamp(120px, 22vh, 220px) 0 clamp(110px, 18vh, 180px); }
.motto { font-size: 15px; font-weight: 600; color: var(--brick); margin-bottom: 28px; }
.reveal { font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.3; font-weight: 550; letter-spacing: -0.02em; max-width: 26ch; }
.reveal .w { opacity: var(--o, 1); transition: opacity 120ms linear; }

/* audiences */
.audiences { padding: clamp(90px, 14vh, 150px) 0; border-top: 1px solid var(--line); }
.audiences h2 { margin-bottom: clamp(40px, 6vh, 64px); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 18px 48px; align-items: baseline;
  padding: 34px 0 36px; border-bottom: 1px solid var(--line);
  transition: background-color 200ms var(--ease-out);
}
.row p { color: var(--ink-2); }
.row .link { white-space: nowrap; }
@media (hover: hover) { .row:hover { background: linear-gradient(90deg, transparent, rgba(20,20,20,0.03) 30%, transparent); } }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 12px; } }

/* town */
.town { padding: clamp(100px, 16vh, 170px) 0; background: var(--paper-2); overflow: clip; }
.town-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.town-copy { grid-column: 1 / span 5; display: grid; gap: 20px; padding-top: 12px; }
.town-copy h2 { margin-bottom: 8px; }
.town-copy p { color: var(--ink-2); }
.ph { margin: 0; overflow: hidden; border-radius: 6px; background: #d5dad1; will-change: transform; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-a { grid-column: 7 / span 6; aspect-ratio: 16 / 9; transform: translateY(var(--drift, 0px)); }
.ph-b { grid-column: 3 / span 5; aspect-ratio: 4 / 3; margin-top: -40px; transform: translateY(var(--drift, 0px)); }
@media (max-width: 860px) {
  .town-copy { grid-column: 1 / -1; }
  .ph-a { grid-column: 1 / -1; }
  .ph-b { grid-column: 3 / -1; margin-top: -24px; }
}

/* ben */
.ben { padding: clamp(100px, 16vh, 170px) 0; }
.ben-grid { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.ben h2 { margin-bottom: 22px; }
.ben p { color: var(--ink-2); font-size: 19px; }
.direct { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.direct a { color: var(--ink); font-weight: 600; text-decoration-thickness: 1.5px; }
@media (max-width: 760px) { .ben-grid { grid-template-columns: 1fr; } .portrait { max-width: 340px; } }

/* contact */
.contact { padding: clamp(100px, 16vh, 170px) 0 clamp(110px, 18vh, 190px); background: var(--ink); color: #f1f2ee; }
.contact ::selection { background: #f1f2ee; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-grid > div > p { color: rgba(241,242,238,0.72); margin-top: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-wrap: wrap; gap: 22px 20px; }
.field { flex: 1 1 100%; display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field.half { flex: 1 1 calc(50% - 10px); min-width: 220px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: rgba(241,242,238,0.86); padding: 0; }
.opt { font-weight: 450; color: rgba(241,242,238,0.6); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: #f1f2ee;
  background: rgba(241,242,238,0.07); border: 1px solid rgba(241,242,238,0.18); border-radius: 10px;
  padding: 13px 14px; caret-color: #f1f2ee;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: rgba(241,242,238,0.34); }
.field input:focus, .field textarea:focus { outline: none; border-color: #f1f2ee; background: rgba(241,242,238,0.1); }
.field [aria-invalid="true"] { border-color: #e5917a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(241,242,238,0.24); font-size: 15px; font-weight: 500; color: rgba(241,242,238,0.86);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.chips input:checked + span { background: #f1f2ee; color: var(--ink); border-color: #f1f2ee; }
.chips input:focus-visible + span { outline: 2px solid #e5917a; outline-offset: 3px; }
.chips label:active span { transform: scale(0.97); }
.form-foot { flex: 1 1 100%; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.contact .btn { background: #f1f2ee; color: var(--ink); min-width: 140px; }
.contact .btn:hover { background: #fff; }
.contact .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-note { font-size: 14px; color: rgba(241,242,238,0.68); max-width: 40ch; }
.form-note[data-tone="ok"] { color: #b9d9b0; }
.form-note[data-tone="err"] { color: #f0a58f; }
.contact :focus-visible { outline-color: #e5917a; }

/* footer */
.foot { padding: 34px 0 30px; font-size: 14px; color: var(--ink-3); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink-2); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.credits { margin-top: 14px; font-size: 12.5px; max-width: none; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  [data-enter] { opacity: 1; transform: none; filter: none; }
  .hero { height: 100svh; }
  .hero-frame img { transform: none; }
  .ph-a, .ph-b { transform: none; }
  * { transition-duration: 0ms !important; }
}

/* 404 (same type and buttons as the home page) */
.notfound { min-height: 70vh; padding-block: clamp(140px, 20vh, 200px) 96px; }
.notfound .lede { margin-top: 20px; color: var(--ink-2); }
.notfound p + p { margin-top: 32px; }
