/* Shared styles for the inner pages (About, Projects, Sustainable Design, Process, Services, Contact).
   The base, header and footer rules are copied from the inline styles in index.html:
   when you change the header or footer there, change it here too. */

:root {
  --paper: #ffffff;
  --ink: #2e2521;          /* walnut */
  --ink-soft: #4a413b;
  --stone: #6f6862;
  --olive: #4f5a3a;
  --olive-deep: #3d4630;
  --plaster: #f2f0ec;
  --line: #e3dfd9;
  --night: #1f211c;
  --night-ink: #ece9e3;
  --night-soft: rgba(236, 233, 227, .58);
  --night-line: rgba(236, 233, 227, .14);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 84px;
  --gutter: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

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

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font: 500 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: var(--paper);
  transition: transform .5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--gutter) + 8px);
}

/* Logo artwork (280 × 77, cropped from logo.png): the height sets its size */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  display: block;
  width: auto;
  height: clamp(34px, 2.6vw + 12px, 40px);
}

.nav { display: flex; align-items: center; gap: 36px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--olive); text-decoration-line: underline; }
.nav-list .nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  background: none;
  border: 0;
  font: 500 0.9375rem/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.menu-icon { position: relative; width: 20px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 8.5px; }
.menu-open .menu-icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 4.25px; transform: rotate(-45deg); }

/* ---------- Shared section pieces ---------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ---------- Page heading ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  padding: 0;
  list-style: none;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #cfc8c0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--olive); }

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw + .5rem, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Empty for now: tall enough that the footer starts below the fold */
.page-body {
  min-height: 70vh;
  padding: clamp(48px, 6vw, 96px) 0;
}

/* ---------- Text pieces shared with the home page ---------- */
/* Small uppercase label above a section headline */
.eyebrow {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow-num { color: var(--olive); font-variant-numeric: tabular-nums; }

.mask-line {
  display: block;
  overflow: hidden;
  margin-top: -.08em;
  padding: .08em 0;
}
.mask-line > span { display: inline-block; }

/* A hairline that draws itself in from the left */
.ruled { position: relative; }
.ruled::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}

/* Words that fill in as you read down the page (see [data-words] in site.js) */
.word { transition: color .5s ease; }
.js .word { color: #d5cec6; }
.js .word.is-on { color: var(--ink); }

/* Arrow link: small caps label, hairline that sweeps on hover */
.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 9px 0;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transform-origin: left center;
  transition: opacity .4s ease;
}
.arrow-icon {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  overflow: hidden;
}
.arrow-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .55s var(--ease-out);
}
.arrow-icon svg + svg { transform: translate(-120%, 120%); }

@keyframes line-swap {
  0%   { transform: scaleX(1); transform-origin: right center; }
  45%  { transform: scaleX(0); transform-origin: right center; }
  55%  { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

@media (hover: hover) {
  a.arrow-link:hover::after { opacity: 1; animation: line-swap .9s var(--ease-out); }
  a.arrow-link:hover .arrow-icon svg:first-child { transform: translate(120%, -120%); }
  a.arrow-link:hover .arrow-icon svg + svg { transform: none; }
}
a.arrow-link:focus-visible::after { opacity: 1; }

/* Serif link with a long arrow that pushes forward on hover */
.serif-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(1.125rem, .5vw + .9rem, 1.3125rem);
  color: inherit;
  text-decoration: none;
}
.serif-link svg {
  width: 34px;
  height: 12px;
  transition: transform .6s var(--ease-out);
}
.serif-link:hover svg,
.serif-link:focus-visible svg { transform: translateX(10px); }

/* ---------- Page banner ----------
   A short version of the home page hero: a framed photograph with the breadcrumb,
   the page title and a short introduction at its foot. */
.page-banner { padding: var(--header-h) var(--gutter) 0; }

.banner-frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 34vw, 470px);
  overflow: hidden;
  background: var(--ink);
}
.banner-media { position: absolute; inset: 0; }
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center 55%);
}
.banner-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 90% at 100% 100%, rgba(36, 28, 23, .6), rgba(36, 28, 23, 0)),
    linear-gradient(180deg, rgba(36, 28, 23, .12) 0%, rgba(36, 28, 23, .12) 30%, rgba(36, 28, 23, .8) 100%),
    linear-gradient(90deg, rgba(36, 28, 23, .45) 0%, rgba(36, 28, 23, 0) 65%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "crumbs"
    "title"
    "aside";
  padding: clamp(24px, 4vw, 56px);
  color: #fff;
}

.banner-crumbs {
  grid-area: crumbs;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(16px, 1.8vw, 24px);
  padding: 0;
  list-style: none;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.banner-crumbs::before {
  content: "";
  flex: none;
  width: 36px;
  height: 1px;
  background: currentColor;
}
.banner-crumbs li + li::before { content: "/"; margin-right: 14px; opacity: .6; }
.banner-crumbs a { text-decoration: none; text-underline-offset: 4px; }
.banner-crumbs a:hover { text-decoration-line: underline; }

.banner-title {
  grid-area: title;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 4.4vw + 1rem, 6rem);
  line-height: .95;
  letter-spacing: -0.025em;
}
.banner-title .line {
  display: block;
  overflow: hidden;
  /* headroom so tall letters aren't clipped by the reveal mask */
  margin-top: -.08em;
  padding: .08em 0;
}
.banner-title .line > span { display: inline-block; }
.banner-title em {
  font-style: italic;
  font-weight: 300;
  color: #f3ebe1;
}

.banner-aside {
  grid-area: aside;
  position: relative;
  max-width: 30rem;
  margin-top: clamp(20px, 2.4vw, 32px);
  padding-top: 20px;
}
.banner-aside::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .4);
  transform-origin: left center;
}
.banner-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 14px rgba(20, 14, 10, .35);
}

@media (min-width: 1101px) {
  .banner-content {
    grid-template-columns: minmax(0, 1fr) 24rem;
    grid-template-areas:
      "crumbs crumbs"
      "title  aside";
    align-items: end;
    column-gap: clamp(40px, 5vw, 96px);
  }
  .banner-aside { margin: 0 0 .5rem; }
}

/* ---------- Section bar ----------
   Links to the sections of a page. It sticks under the header, and moves up to the top
   of the screen while the header is tucked away. */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: top .5s var(--ease-out);
}
.site-header.is-hidden ~ main .subnav { top: 0; }

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.subnav-label {
  margin: 0;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}
.subnav-list {
  display: flex;
  gap: clamp(24px, 3.4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 0 19px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s ease;
}
.subnav-num {
  font-size: 0.6875rem;
  letter-spacing: .08em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}
.subnav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.subnav-list a:hover,
.subnav-list a[aria-current="true"] { color: var(--ink); }
.subnav-list a[aria-current="true"]::after { transform: none; }
.subnav-list a:focus-visible { outline-offset: -2px; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(80px, 9vw, 140px) 0;
  /* Linked sections land below the header and the section bar */
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(56px, 6vw, 96px);
}
.section-head > div { grid-column: 1 / 8; }
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 2.6vw + .75rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-intro {
  grid-column: 9 / 13;
  margin: 0;
  padding-bottom: .5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Dark band, like the home page's studio section */
.section-dark {
  background: var(--night);
  color: var(--night-ink);
}
.section-dark :focus-visible { outline-color: var(--night-ink); }
.section-dark .eyebrow { color: var(--night-soft); }
.section-dark .eyebrow-num { color: #b7c09a; }
.section-dark .section-intro { color: rgba(236, 233, 227, .78); }
.section-dark .ruled::after { background: var(--night-line); }

/* ---------- Call to action (also on the home page, which keeps its own copy of these rules) ----------
   A panel with a doorway standing on its floor: an arched opening framing a photograph. --open runs
   0 → 1 as the panel scrolls in (set in site.js): the panel widens to full size, the arch draws itself
   and the photograph rises inside it. */
.cta {
  background: var(--paper);
  padding: 0 0 clamp(72px, 8vw, 120px);
}

.cta-panel {
  --open: 1;
  --pad-x: clamp(28px, 6vw, 96px);
  --door-w: clamp(176px, 15vw, 220px);
  position: relative;
  display: grid;
  align-content: center;
  gap: clamp(22px, 2.2vw, 30px);
  min-height: calc(var(--door-w) * 4 / 3 + 32px);
  padding: clamp(40px, 4.5vw, 64px) calc(var(--pad-x) + var(--door-w) + clamp(40px, 5vw, 88px)) clamp(40px, 4.5vw, 64px) var(--pad-x);
  background: #e7e6df;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(calc((1 - var(--open)) * 14%) calc((1 - var(--open)) * 7%));
}
/* A faint drafting grid, strongest behind the doorway */
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(76, 84, 56, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 84, 56, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
  pointer-events: none;
}
.cta-panel > div { transform: translate3d(0, calc((1 - var(--open)) * 56px), 0); }

/* The doorway: the arch outline, and inside it a photograph that rises as the panel opens */
.cta-door {
  position: absolute;
  z-index: -1;
  right: var(--pad-x);
  bottom: 0;
  width: var(--door-w);
  aspect-ratio: 3 / 4;
  margin: 0;
  pointer-events: none;
}
.cta-door-photo {
  position: absolute;
  inset: 7.5% 10% 0;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: #d8d5cb;
  clip-path: inset(calc((1 - var(--open)) * 100%) 0 0 0);
}
.cta-door-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: calc(1.18 - var(--open) * .18);
  filter: saturate(.85) contrast(1.02);
}
.cta-arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--olive);
}
.cta-arch path {
  fill: none;
  stroke: currentColor;
  stroke-width: .8;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--open));
  opacity: .55;
}

.cta-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6.2vw - 1.5rem, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.cta-text {
  margin: clamp(18px, 2vw, 24px) 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, .3vw + .9rem, 1.125rem);
  line-height: 1.6;
  color: var(--stone);
}
.cta-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.cta-btn { padding: 15px 26px; }
.cta-btn svg {
  width: 11px;
  height: 11px;
  transition: transform .45s var(--ease-out);
}
.cta-btn:hover svg,
.cta-btn:focus-visible svg { transform: translate(2px, -2px); }
.cta-alt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--stone);
}
.cta-alt a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease-out);
}
.cta-alt a:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
}
.footer-inner {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0 28px;
  will-change: transform;
}
.site-footer :focus-visible { outline-color: var(--night-ink); }

/* The brand takes the spare room; Visit, Contact and Explore are as wide as their contents (so the email
   address never runs into the next column), with even gaps between them */
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  column-gap: clamp(32px, 5vw, 88px);
  row-gap: 48px;
}
.footer-visit { --d: .08s; }
.footer-contact { --d: .16s; }
.footer-explore { --d: .24s; }

.footer-brand .logo img { height: 48px; }
.footer-tagline {
  margin: 22px 0 0;
  max-width: 22rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.2vw + .6rem, 1.625rem);
  line-height: 1.35;
  color: var(--night-ink);
}

.footer-label {
  margin: 0 0 18px;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--night-soft);
}
.footer-col address,
.footer-col p:not(.footer-label) {
  margin: 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.footer-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

/* Footer links: underline wipes in from the left */
.footer-link {
  color: var(--night-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .6s var(--ease-out);
}
.footer-link:hover,
.footer-link:focus-visible { background-position: 0 100%; background-size: 100% 1px; }

/* The logo at full width as a stencil that a building photograph shows through */
.footer-mark {
  position: relative;
  margin: clamp(64px, 9vw, 136px) 0 0;
  user-select: none;
}
.fm-logo {
  display: block;
  width: 100%;
  height: auto;
  text-rendering: geometricPrecision;
}
.fm-tone { fill: var(--night-ink); opacity: .14; }
.fm-photo {
  filter: grayscale(1) sepia(.18) contrast(1.05) brightness(1.1);
  mix-blend-mode: screen;
  opacity: .6;
  transform-box: fill-box;
  transform-origin: center;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 0.8125rem;
  color: var(--night-soft);
}
.footer-bottom p { margin: 0; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-social .footer-link { color: var(--night-soft); transition: background-size .6s var(--ease-out), color .3s ease; }
.footer-social .footer-link:hover { color: var(--night-ink); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--night-ink);
  font: 500 0.8125rem/1 var(--sans);
  cursor: pointer;
}
.to-top-ring {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--night-line);
  overflow: hidden;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.to-top-ring svg {
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
  transition: transform .55s var(--ease-out);
}
.to-top-ring svg + svg { transform: translateY(260%); }
.to-top:hover .to-top-ring,
.to-top:focus-visible .to-top-ring { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }
.to-top:hover .to-top-ring svg:first-child,
.to-top:focus-visible .to-top-ring svg:first-child { transform: translateY(-260%); }
.to-top:hover .to-top-ring svg + svg,
.to-top:focus-visible .to-top-ring svg + svg { transform: none; }

/* ---------- Page-load sequence for the banner (only when JS is on) ---------- */
.js .banner-frame {
  clip-path: inset(6% 4% 6% 4%);
  transition: clip-path 1.4s var(--ease-out);
}
.js .banner-img {
  transform: scale(1.14);
  transition: transform 2s var(--ease-out);
}
.js .banner-title .line > span {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out) var(--d, 0s);
}
.js .banner-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
.js .banner-aside::before {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out) .7s;
}
.is-loaded .banner-frame { clip-path: inset(0); }
.is-loaded .banner-img,
.is-loaded .banner-title .line > span,
.is-loaded .banner-aside::before { transform: none; }
.is-loaded .banner-fade { opacity: 1; transform: none; }

/* ---------- Scroll reveals (only when JS is on) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.js .reveal-lines .mask-line > span {
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out) var(--d, 0s);
}
.reveal-lines.is-in .mask-line > span { transform: none; }

.js .ruled::after {
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) var(--d, 0s);
}
.ruled.is-in::after { transform: none; }

/* Photographs: the picture wipes up from the bottom of its frame and settles from a zoom.
   The clip sits on the image, not the frame: the observer can't see a frame that is clipped away. */
.js .reveal-media img {
  clip-path: inset(100% 0 0 0);
  scale: 1.18;
  transition: clip-path 1.4s var(--ease-out) var(--d, 0s), scale 1.9s var(--ease-out) var(--d, 0s);
}
.reveal-media.is-in img { clip-path: inset(0 0 0 0); scale: 1; }

/* Footer logo: the tone comes up, then the photograph fades in through the letters */
.js .footer-mark .fm-tone { opacity: 0; transition: opacity 1.2s ease; }
.js .footer-mark .fm-photo {
  opacity: 0;
  transition: opacity 1.6s ease .2s;
}
.footer-mark.is-in .fm-tone { opacity: .14; }
.footer-mark.is-in .fm-photo { opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 24px; }
  .nav { gap: 24px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; --gutter: 12px; }

  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px calc(var(--gutter) + 8px) 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .menu-open .nav-list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease, transform .4s var(--ease-out);
  }
  .nav-list a {
    display: block;
    padding: 8px 0;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
  }
  .nav-list .nav-cta-mobile { display: block; margin-top: 16px; }
  .nav-list .nav-cta-mobile a { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; padding: 12px 22px; color: #fff; }
  .nav-list .nav-cta-mobile a:hover { text-decoration: none; color: #fff; }

  .subnav-label { display: none; }
  .subnav-inner { padding-right: 0; }
  .subnav-list { padding-right: clamp(20px, 4vw, 56px); }

  .section-head > div,
  .section-intro { grid-column: 1 / -1; }

  .cta-panel { --door-w: 150px; padding-right: calc(var(--pad-x) + var(--door-w) + 32px); }

  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .banner-frame { min-height: 380px; }
  .banner-sub { font-size: 0.9375rem; }

  /* No room for the doorway beside the words: the panel keeps just the grid */
  .cta-door { display: none; }
  .cta-panel { min-height: 0; padding-right: var(--pad-x); }
  /* Too narrow for the two set lines: let the sentence flow and balance instead */
  .cta-title { text-wrap: balance; }
  .cta-title .mask-line,
  .cta-title .mask-line > span { display: inline; overflow: visible; margin: 0; padding: 0; }

  /* Contact gets a row of its own (the email address needs the width); Visit and Explore share one */
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: 24px; row-gap: 36px; }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .banner-fade { opacity: 1; transform: none; transition: none; }
  .js .banner-frame { clip-path: none; transition: none; }
  .js .reveal-media img { clip-path: none; scale: 1; transition: none; }
  .js .banner-img,
  .js .banner-title .line > span,
  .js .banner-aside::before,
  .js .reveal-lines .mask-line > span,
  .js .ruled::after { transform: none; transition: none; }
  .arrow-icon svg,
  .serif-link svg,
  .subnav,
  .subnav-list a::after { transition: none; }
  .arrow-link::after { animation: none !important; }
  .js .footer-mark .fm-tone { opacity: .14; transition: none; }
  .js .footer-mark .fm-photo { opacity: .6; transform: none; transition: none; }
  .to-top-ring svg { transition: none; }
  .site-header { transition: none; }
}
