/* Northmere Gallery
   Restrained, image-led layout in the manner of London's leading galleries. */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #6f6c68;
  --line: #e4e2de;
  --soft: #f5f4f1;
  --accent: #141414;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --space: clamp(56px, 8vw, 120px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--font-body);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.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: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Typography ---------- */
.display {
  font: 400 clamp(40px, 6vw, 84px)/1.02 var(--font-display);
  letter-spacing: -0.01em;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 46ch; margin-top: 20px; color: var(--muted); }
.large-text { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.caption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.link-underline { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .2s; }
.link-underline:hover { opacity: .6; }

.prose { font-size: 17px; line-height: 1.7; max-width: 64ch; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { font: 400 28px/1.2 var(--font-display); margin-top: 1.6em; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: currentColor; }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 1px solid var(--ink); font: italic 400 24px/1.4 var(--font-display); }
.prose--center { margin-inline: auto; padding-block: clamp(56px, 7vw, 104px) var(--space); }

/* ---------- Buttons ----------
   On hover the fill wipes across from the left. */
.button {
  display: inline-block; padding: 14px 28px; border: 1px solid var(--ink); cursor: pointer;
  color: var(--bg); background: var(--ink) linear-gradient(var(--bg), var(--bg)) no-repeat left / 0 100%;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-size .45s var(--ease-out), color .3s;
}
.button:hover { color: var(--ink); background-size: 100% 100%; }
.button--ghost { color: var(--ink); background: transparent linear-gradient(var(--ink), var(--ink)) no-repeat left / 0 100%; }
.button--ghost:hover { color: var(--bg); background-size: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  color: var(--ink);
  /* No backdrop-filter: it would trap the fixed mobile menu inside the header. */
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease-out), background-color .4s, color .4s, border-color .4s;
}
.site-header.is-scrolled { border-color: var(--line); }
/* Slides away while scrolling down, returns on scroll up (see main.js). */
.site-header.is-hidden { transform: translateY(-100%); }

/* Homepage: header floats transparently over the hero, turning solid once past it. */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; color: #fff; border-color: transparent; }
.has-hero .site-header.is-solid,
.has-hero.nav-open .site-header { background: rgba(255, 255, 255, .97); color: var(--ink); border-color: var(--line); }
.has-hero:not(.nav-open) .site-header:not(.is-solid) .wordmark-sub { color: rgba(255, 255, 255, .75); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { display: flex; align-items: baseline; gap: 10px; }
.wordmark-main { font: 500 26px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.wordmark-sub { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.wordmark--footer { font: 500 22px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 10px; }

.site-nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 0;
  /* Underline that draws in from the left on hover. */
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before { position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.nav-toggle-bar { top: 16px; }
.nav-toggle-bar::before { content: ""; left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle-bar { top: 19px; transform: rotate(45deg); }
.nav-open .nav-toggle-bar::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1080px) { /* six menu items need ~1080px beside the logo */
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    padding: 32px var(--gutter); visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav { color: var(--ink); }
  .site-nav a { font: 400 36px/1.4 var(--font-display); letter-spacing: 0; text-transform: none; background: none; }
  .site-nav li { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out); }
  .nav-open .site-nav { visibility: visible; opacity: 1; }
  .nav-open .site-nav li { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i, 0) * .06s); }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ----------
   The featured exhibition fills the first screen at full brightness. main.js
   sets --p from 0 (top of the page) to 1 (picture scrolled away): the picture
   dims and its title fades as it leaves, while the description and button
   below the picture fade up into view (--d). Nothing is laid over the
   picture except the title. */
.hero { position: relative; --p: 0; --d: clamp(0, calc((var(--p) - .08) * 2.6), 1); }
.hero-sticky { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: var(--soft); }
.hero-link { display: block; position: relative; height: 100%; color: #fff; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, calc(var(--p) * 18%), 0) scale(1.02);
  will-change: transform;
}
/* Light shading only where text sits: under the menu and behind the title. */
.hero-link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 16%),
    linear-gradient(to top, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 32%, rgba(0,0,0,0) 48%);
}
.hero-dim { position: absolute; inset: 0; z-index: 1; background: #0c0c0c; opacity: min(calc(var(--p) * 1.1), .8); pointer-events: none; }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vw, 80px); z-index: 2;
  opacity: max(0, calc(1 - var(--p) * 1.6)); transform: translate3d(0, calc(var(--p) * -60px), 0);
}
/* A soft shadow keeps the white title legible on pale pictures without dimming them. */
.hero-text { text-shadow: 0 1px 18px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25); }
.hero-artist { font-size: clamp(16px, 1.6vw, 20px); margin-bottom: 4px; }
.hero-title { font: italic 400 clamp(44px, 7vw, 104px)/1 var(--font-display); max-width: 18ch; }
.hero-meta { margin-top: 16px; font-size: 14px; letter-spacing: 0.04em; }
.hero-scroll {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(36px, 7vw, 80px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl; padding-bottom: 64px; opacity: max(0, calc(.85 - var(--p) * 4));
}
.hero-scroll::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 52px; background: currentColor;
  transform-origin: top; animation: scroll-cue 2.4s var(--ease-in-out) infinite;
}
/* Description and button, below the picture. */
.hero-after {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: end;
  padding-top: clamp(48px, 6vw, 88px);
  opacity: var(--d); transform: translate3d(0, calc((1 - var(--d)) * 48px), 0);
}
.hero-after-text { font: 400 clamp(22px, 2.2vw, 32px)/1.4 var(--font-display); max-width: 40ch; }
@media (max-width: 760px) { .hero-after { grid-template-columns: 1fr; } .hero-after .button { justify-self: start; } }
@media (max-width: 600px) { .hero-scroll { display: none; } }
@media (max-height: 760px) and (min-width: 601px) {
  .hero-title { font-size: clamp(40px, 5.5vw, 80px); }
}

/* Load-in: image settles from a slight zoom, text lines rise in sequence. */
.js .hero-media { animation: hero-settle 2.4s var(--ease-out) both; }
.js .hero-text > * { animation: rise .9s var(--ease-out) both; }
.js .hero-text > :nth-child(1) { animation-delay: .35s; }
.js .hero-text > :nth-child(2) { animation-delay: .45s; }
.js .hero-text > :nth-child(3) { animation-delay: .55s; }
.js .hero-text > :nth-child(4) { animation-delay: .7s; }

/* Homepage venue hire feature: same light look as the rest of the page, with
   the photo on the right so it alternates with the past exhibition above. */
.home-hire { margin-top: var(--space); }
.home-hire-inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px clamp(40px, 6vw, 96px); align-items: center;
  padding-top: clamp(40px, 5vw, 64px);
  /* Divider line inset to the page margins, like the other section dividers. */
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.home-hire-media { order: 2; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.home-hire-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.home-hire-media:hover img { transform: scale(1.03); }
.home-hire-title { font: 400 clamp(34px, 4vw, 56px)/1.08 var(--font-display); }
.home-hire-text { margin-top: 20px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.home-hire-facts {
  display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 24px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.home-hire-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }
@media (max-width: 860px) {
  .home-hire-inner { grid-template-columns: 1fr; }
  .home-hire-media { order: 0; }
}

.intro { padding-block: var(--space); }

/* ---------- Sections & grids ---------- */
.section { padding-top: var(--space); }
.section:last-child { padding-bottom: var(--space); }
.section--border { margin-top: var(--space); border-top: 1px solid var(--line); padding-top: calc(var(--space) * .7); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
main > .section:last-of-type { padding-bottom: var(--space); }

.grid { display: grid; gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .3s; }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-body { padding-top: 16px; }
.card-artist { font-size: 15px; }
.card-title { font: italic 400 26px/1.15 var(--font-display); margin-top: 2px; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Feature (large current exhibition rows) */
.feature-list { display: grid; gap: var(--space); }
.feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.feature-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--soft); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature-media:hover img { transform: scale(1.02); }
.feature-title { font: italic 400 clamp(32px, 4vw, 52px)/1.05 var(--font-display); margin: 4px 0 4px; }
.feature-summary { margin: 20px 0 24px; color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Page heads & tabs ---------- */
.page-head { padding-top: clamp(48px, 7vw, 104px); }
/* Breathing room between a page title/intro and the image or content below it. */
.page-head--spaced { padding-bottom: clamp(48px, 6vw, 88px); }
.page-head--center { text-align: center; padding-bottom: var(--space); }
.page-head--center .lede { margin-inline: auto; margin-bottom: 32px; }
.page-head .eyebrow a { color: var(--muted); }
.tabs { display: flex; gap: 28px; margin-top: 36px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 0 0 12px; margin-bottom: -1px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--ink); border-color: var(--ink); }

.page-head:has(.tabs) + .section { padding-top: clamp(40px, 4.5vw, 64px); }
.exhibitions-note { padding-top: clamp(40px, 5vw, 64px); font-size: 17px; color: var(--muted); max-width: 60ch; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding-block: 48px var(--space); font-size: 14px; }

/* ---------- Exhibition detail ---------- */
.exhibition-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.exhibition-head .display { font-style: italic; }
.exhibition-artists { font-size: clamp(18px, 2vw, 24px); margin-bottom: 6px; }
.exhibition-artists a { border-bottom: 1px solid var(--line); }
.exhibition-meta { margin-top: 18px; color: var(--muted); }
.exhibition-cover img { width: 100%; max-height: 88vh; object-fit: cover; background: var(--soft); }

.exhibition-layout { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 6vw, 88px); }
.exhibition-aside { display: grid; gap: 20px; align-content: start; }
@media (max-width: 860px) { .exhibition-layout { grid-template-columns: 1fr; } }

.facts { display: grid; gap: 18px; }
.facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

.image-sequence { display: grid; gap: clamp(56px, 7vw, 104px); }
.image-sequence figure { display: grid; justify-items: center; }
.image-sequence img { width: auto; max-width: 100%; max-height: 82vh; background: var(--soft); }
.image-sequence .caption { margin-top: 14px; text-align: center; max-width: 60ch; }

/* ---------- Artists ---------- */
.artist-grid {
  list-style: none; margin: 0; padding: 0 0 var(--space);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 56px clamp(16px, 2vw, 32px);
}
@media (max-width: 600px) { .artist-grid { grid-template-columns: 1fr 1fr; gap: 40px 16px; } }
.artist-card { display: block; }
.artist-card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.artist-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .9s var(--ease-out), filter .6s; }
.artist-card:hover .artist-card-media img { transform: scale(1.03); }
.artist-card-initials { position: absolute; inset: 0; display: grid; place-items: center; font: 400 64px/1 var(--font-display); color: var(--muted); }
.artist-card-body { padding-top: 16px; }
.artist-card-name {
  display: inline; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--font-display);
  background: linear-gradient(currentColor, currentColor) left 92% / 0 1px no-repeat; transition: background-size .5s var(--ease-out);
}
.artist-card:hover .artist-card-name { background-size: 100% 1px; }
.artist-card-body .card-meta { margin-top: 6px; }
.artist-card-status { margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.artist-card-status em { font: italic 400 16px/1 var(--font-display); letter-spacing: 0; text-transform: none; }

.artist-layout { padding-top: 0; }
.artist-portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.artist-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ---------- Visit ---------- */
/* "By invitation only" notices (site.invitation_only in config/site.yaml). */
.access-notice {
  margin-bottom: 32px; padding: 20px 24px; border-left: 2px solid var(--ink); background: var(--soft);
  font-size: 16px; max-width: 72ch;
}
.access-note { margin: -8px 0 28px; color: var(--muted); max-width: 46ch; }
.page-head-cta { margin-top: 32px; }
.hire-highlights { margin-top: clamp(56px, 6vw, 88px); }
.hire-gallery { margin-bottom: clamp(72px, 8vw, 120px); }
.form-layout--flush { padding-block: 0; }
.hours-note { margin: -8px 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer .hours-note { color: #9a968f; }
.visit-highlights { margin-bottom: clamp(56px, 6vw, 88px); }
.visit-highlights dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; background: var(--soft); }
.visit-highlights div { padding: 28px 28px 30px; border-left: 1px solid var(--line); }
.visit-highlights div:first-child { border-left: 0; }
.visit-highlights dt { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.visit-highlights dd { font: 400 22px/1.25 var(--font-display); }
@media (max-width: 700px) {
  .visit-highlights div { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }
  .visit-highlights div:first-child { border-top: 0; }
}
.visit-essentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; }
.visit-card { border-top: 1px solid var(--ink); padding-top: 24px; }
.visit-card .section-title { margin-bottom: 20px; }
.visit-card address { margin-bottom: 24px; }
.visit-admission { margin-bottom: 40px; max-width: 22ch; }
.visit-note { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 36ch; }

.visit-map { margin-top: clamp(64px, 7vw, 96px); }
.visit-map iframe {
  display: block; width: 100%; height: clamp(320px, 38vw, 520px); border: 0; background: var(--soft);
  filter: grayscale(1) contrast(1.05); transition: filter .6s;
}
.visit-map iframe:hover { filter: none; }

.visit-info { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.visit-info--simple { grid-template-columns: 1fr; }
.visit-info--simple .visit-sections { max-width: 760px; }
.visit-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.visit-toc .section-title { margin-bottom: 20px; }
.visit-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.visit-toc a { color: var(--muted); transition: color .2s; }
.visit-toc a:hover { color: var(--ink); }
.visit-section { border-top: 1px solid var(--line); padding-block: 40px 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.visit-section:first-child { border-top-color: var(--ink); padding-top: 32px; }
.visit-section-title { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--font-display); margin-bottom: 24px; }
.visit-section .prose { font-size: 16px; }
.visit-section .prose h3 {
  font: 500 12px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  margin-top: 28px; margin-bottom: -8px;
}
.visit-section .prose h3:first-child { margin-top: 0; }
.visit-section .prose ul { padding-left: 1.1em; }
.visit-section .prose li + li { margin-top: 6px; }
@media (max-width: 860px) {
  .visit-info { grid-template-columns: 1fr; }
  .visit-toc { position: static; }
  .visit-toc ul { display: flex; flex-wrap: wrap; gap: 10px 20px; }
}


/* Opening hours, one row per day. Today's row is marked by main.js. */
.hours { display: grid; gap: 7px; max-width: 360px; }
.hours div { display: flex; justify-content: space-between; gap: 24px; }
.hours dd { text-align: right; }
.hours .is-closed dd { color: var(--muted); }
.hours .is-today { font-weight: 500; }
.hours .is-today dt::after { content: "Today"; margin-left: 10px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; vertical-align: 2px; opacity: .6; }
.hours--large { font-size: 17px; gap: 10px; }

.visit-strip { margin-top: var(--space); background: var(--soft); }
.visit-strip-inner { display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: 48px 96px; padding-block: clamp(64px, 8vw, 104px); }
.visit-strip .section-title { margin-bottom: 20px; }
.visit-strip address { margin-bottom: 32px; }
@media (max-width: 760px) { .visit-strip-inner { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form-layout { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: clamp(32px, 6vw, 96px); padding-block: 64px var(--space); }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
.form { display: grid; gap: 24px; max-width: 760px; }
.form-row { display: grid; gap: 24px; }
.form-row--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 8px; }
.field > span { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid #d6d3ce; border-radius: 0;
  background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a19d97; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7b3ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 18px center; }
.field input[type="file"] { height: auto; padding: 22px 16px; border-style: dashed; background: var(--soft); font-size: 14px; color: var(--muted); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 16px; padding: 10px 18px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  font: 500 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s;
}
.field input[type="file"]::file-selector-button:hover { background: var(--ink); color: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.checkbox-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkbox-group legend { padding: 0; margin-bottom: 14px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px 24px; }
.checkbox-grid .check { color: var(--ink); }
.prose .small-print { font-size: 13px; color: var(--muted); }
.field-hint { margin-top: -14px; font-size: 13px; color: var(--muted); }
.form .button { justify-self: start; margin-top: 8px; padding: 18px 40px; }

/* ---------- Careers ---------- */
.job-list { list-style: none; margin: 0; padding: 0; }
.section-head:has(+ .job-list) { margin-bottom: 0; }
.job-row {
  display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 8px 32px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.job-row-title { font: 400 clamp(26px, 2.6vw, 36px)/1.15 var(--font-display); }
.job-row-meta { font-size: 14px; color: var(--muted); }
.job-row-arrow { font-size: 20px; transition: transform .35s var(--ease-out); }
.job-row:hover .job-row-arrow { transform: translateX(6px); }
@media (max-width: 760px) {
  .job-row { grid-template-columns: 1fr auto; }
  .job-row-title { grid-column: 1; }
  .job-row-arrow { grid-column: 2; grid-row: 1; }
  .job-row-meta { grid-column: 1 / -1; }
}
.job-speculative { margin-block: clamp(56px, 7vw, 96px) var(--space); max-width: 64ch; }
.job-speculative .section-title { margin-bottom: 14px; }

.job-sub { margin-top: 16px; font: 400 clamp(22px, 2.2vw, 30px)/1.2 var(--font-display); }
.job-intro { max-width: calc(var(--wrap)); }
.job-intro > div { max-width: 70ch; }
.job-lede { font: 400 clamp(22px, 2vw, 28px)/1.4 var(--font-display); margin-bottom: 24px; }

.job-facts { margin-top: clamp(48px, 6vw, 80px); }
.job-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 40px; margin: 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.job-facts dt { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.job-facts dd { line-height: 1.6; }

.job-heading { font: 400 clamp(32px, 3.6vw, 52px)/1.1 var(--font-display); margin-bottom: 28px; }
.job-duties { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job-duties li {
  display: grid; grid-template-columns: 56px minmax(180px, 1fr) 2fr; gap: 8px 32px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.job-duty-num { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.job-duty-title { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--font-display); }
.job-duties p { line-height: 1.65; }
@media (max-width: 760px) {
  .job-duties li { grid-template-columns: 40px 1fr; }
  .job-duties p { grid-column: 2; }
}

.job-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(40px, 6vw, 96px); align-items: start; padding-bottom: var(--space); }
.job-columns .job-heading { padding-top: 24px; border-top: 1px solid var(--ink); }
.job-columns > div > .job-heading ~ .job-heading { margin-top: 56px; }
@media (max-width: 860px) { .job-columns { grid-template-columns: 1fr; } }
.job-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.job-bullets li { position: relative; padding-left: 22px; line-height: 1.6; }
.job-bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--ink); }
.job-apply { margin-top: 56px; padding: clamp(28px, 3vw, 40px); background: var(--soft); display: grid; gap: 16px; }
.job-apply .section-title { margin-bottom: 4px; }
.job-apply-email { font: 400 clamp(24px, 2.4vw, 32px)/1.2 var(--font-display); }
.job-apply-email a { border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.job-apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 8px; }
.job-closing-note { margin-top: 48px; font: italic 400 clamp(20px, 1.8vw, 24px)/1.45 var(--font-display); max-width: 36ch; }

/* ---------- Footer ----------
   Laid out after White Cube / Victoria Miro: newsletter, information columns,
   a "Connect" list of named platforms, then a separate legal bar. */
.site-footer { margin-top: var(--space); background: var(--ink); color: #eae8e4; font-size: 14px; }
/* The homepage's visit strip already separates content from the footer. */
main:has(> .visit-strip:last-child) + .site-footer { margin-top: 0; }
.site-footer .muted { color: #9a968f; }
.site-footer a { transition: opacity .25s; }
.site-footer a:hover { opacity: .6; }
.footer-heading { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #9a968f; margin-bottom: 20px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.footer-newsletter { border-bottom: 1px solid #2e2d2b; }
.footer-newsletter-inner {
  display: grid; grid-template-columns: 1fr minmax(300px, 540px); gap: 40px 96px; align-items: center;
  padding-block: clamp(80px, 9vw, 128px) clamp(72px, 8vw, 112px);
}
.footer-newsletter-inner > * { min-width: 0; }
.footer-display { font: 400 clamp(36px, 4.4vw, 60px)/1.05 var(--font-display); margin-bottom: 16px; }
.footer-lede { color: #a9a59e; font-size: 16px; max-width: 40ch; }
.newsletter-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #9a968f; margin-bottom: 12px; }
.newsletter-row { display: flex; height: 56px; border: 1px solid #4a4845; transition: border-color .25s; }
.newsletter-row:focus-within { border-color: #eae8e4; }
.newsletter-row input { flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; padding: 0 20px; font-size: 16px; color: #fff; }
.newsletter-row input::placeholder { color: #75716b; }
.newsletter-row input:focus { outline: none; }
.newsletter-row button {
  flex: none; padding: 0 28px; border: 0; cursor: pointer; background: #eae8e4; color: var(--ink);
  font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; transition: background .25s;
}
.newsletter-row button:hover { background: #fff; }
.newsletter-note { margin-top: 14px; font-size: 12px; color: #8c8880; }
.newsletter-note a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 820px) { .footer-newsletter-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .newsletter-row button { padding: 0 18px; } }

.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 48px; padding-block: 80px 64px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 56px 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-nav { margin-top: 28px; }
.footer-col address { margin-bottom: 16px; line-height: 1.7; }
.site-footer .hours { max-width: 260px; gap: 6px; }
.site-footer .hours .is-closed dd { color: #8c8880; }
.arrow-link { display: inline-flex; gap: 10px; align-items: baseline; }
.arrow-link span { transition: transform .35s var(--ease-out); }
.site-footer .arrow-link:hover { opacity: 1; }
.arrow-link:hover span { transform: translateX(4px); }
.footer-col .plain-list + .arrow-link { margin-top: 16px; }

.footer-connect { padding-block: 48px 72px; border-top: 1px solid #2e2d2b; }
.social { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.social a { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.social svg { width: 18px; height: 18px; flex: none; }

.footer-bottom { background: #1d1d1c; color: #8c8880; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 48px; padding-block: 26px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.site-footer .footer-bottom a:hover { color: #eae8e4; opacity: 1; }

/* Pages without a final section still need breathing room before the footer */
main { min-height: 50vh; }

/* ---------- Motion ----------
   Elements fade and rise into place as they scroll into view; images are
   uncovered with a wipe. main.js adds .reveal / .is-visible. Without JS, or
   with "reduce motion" switched on, everything is simply shown. */
html { scroll-behavior: smooth; }

.js .reveal {
  opacity: 0; transform: translate3d(0, 36px, 0);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .reveal-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-in-out); transition-delay: var(--reveal-delay, 0s); }
.js .reveal-media img { transform: scale(1.18); transition: transform 1.8s var(--ease-out), opacity .3s; transition-delay: var(--reveal-delay, 0s); }
.js .reveal-media.is-visible { clip-path: inset(0); }
.js .reveal-media.is-visible img { transform: scale(1); }
.js .card-link:hover .reveal-media.is-visible img,
.js .feature-media.reveal-media.is-visible:hover img { transform: scale(1.04); transition-delay: 0s; }

/* Slow drift of large cover images while scrolling (--p set by main.js). */
[data-parallax] { overflow: hidden; --p: .5; }
.js [data-parallax] img { transform: translate3d(0, calc((var(--p) - .5) * -14%), 0) scale(1.14); will-change: transform; }

/* Card title underline on hover */
.card-title, .feature-title a {
  background: linear-gradient(currentColor, currentColor) left 92% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out); display: inline;
}
.card-link:hover .card-title, .feature-title a:hover { background-size: 100% 1px; }

/* Soft cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }

@keyframes hero-settle { from { transform: scale(1.1); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-media, .js .reveal-media img, .js [data-parallax] img, .hero-media img { opacity: 1; transform: none !important; clip-path: none; }
  /* The hero keeps its scroll-linked dim and fade-in, without zoom or sliding. */
  .hero-text, .hero-after { transform: none; }
  @view-transition { navigation: none; }
}
