/* ============================================================
   WAYNE TILING — 2027
   Editorial, photography-led. Bone / ink / brass.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@view-transition { navigation: auto; }

:root {
  /* ink */
  --ink:      #0b0b0c;
  --ink-2:    #17171a;
  --ink-3:    #24242a;

  /* bone */
  --bone:     #f3f0ea;
  --bone-2:   #e8e3d9;
  --bone-3:   #d8d2c6;

  /* neutrals */
  --stone:    #86817a;
  --stone-lt: #a8a29a;

  /* accent */
  --brass:    #a9814a;
  --brass-lt: #c9a877;
  --brass-hi: #d9bb8b;

  /* semantic */
  --bg:       var(--bone);
  --fg:       var(--ink);
  --muted:    var(--stone);
  --rule:     color-mix(in srgb, var(--ink) 14%, transparent);

  --f-display: 'Iowan Old Style', 'Hoefler Text', 'Palatino Linotype', Palatino,
               'Book Antiqua', Georgia, serif;
  --f-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter:   clamp(1.25rem, 5vw, 5rem);
  --max:      1560px;
  --measure:  62ch;

  --ease:     cubic-bezier(.22, 1, .36, 1);
  --t:        .5s var(--ease);
  --t-fast:   .25s var(--ease);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}

::selection { background: var(--brass); color: var(--bone); }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 50%; translate: -50% -120%;
  z-index: 200; padding: .8rem 1.4rem;
  background: var(--ink); color: var(--bone);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  transition: translate var(--t-fast);

  &:focus { translate: -50% 0; }
}

/* ============================================================
   TYPE
   ============================================================ */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.6rem, 1.2rem + 6.2vw, 7rem); }
h2, .h2 { font-size: clamp(2rem, 1.1rem + 3.6vw, 4.1rem); }
h3, .h3 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.15; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: clamp(.66rem, .62rem + .12vw, .74rem);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .9rem;

  &::before {
    content: '';
    width: clamp(1.5rem, 3vw, 3rem);
    height: 1px;
    background: currentColor;
    opacity: .5;
    flex: none;
  }
  &.centred { justify-content: center; }
  &.bare::before { display: none; }
}

.lead {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -.012em;
  max-width: 26ch;
  text-wrap: balance;
}

.prose {
  max-width: var(--measure);
  color: color-mix(in srgb, var(--fg) 76%, transparent);

  & p + p { margin-top: 1.1em; }
}

.num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem);
  line-height: 1;
  color: color-mix(in srgb, var(--fg) 18%, transparent);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 1080px; }

.section {
  padding-block: clamp(4.5rem, 3rem + 9vw, 11rem);
}
.section-tight { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }

.rule { height: 1px; background: var(--rule); border: 0; }

.ink {
  background: var(--ink);
  color: var(--bone);
  --fg: var(--bone);
  --muted: var(--stone-lt);
  --rule: color-mix(in srgb, var(--bone) 18%, transparent);
}

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.05rem 2.1rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;

  &::after {
    content: '\2192';
    letter-spacing: 0;
    transition: translate var(--t-fast);
  }
  &:hover::after { translate: .25rem 0; }
}
.btn-solid {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);

  &:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
}
.btn-line {
  color: inherit;
  border-color: color-mix(in srgb, currentColor 35%, transparent);

  &:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
}
.btn-bone {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);

  &:hover { background: var(--brass); border-color: var(--brass); }
}
.btn-sm { padding: .8rem 1.5rem; font-size: .7rem; }

.link-u {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: .35rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  transition: border-color var(--t-fast), color var(--t-fast);

  &::after { content: '\2192'; letter-spacing: 0; transition: translate var(--t-fast); }
  &:hover { border-color: currentColor; }
  &:hover::after { translate: .25rem 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: clamp(1rem, 2vw, 1.6rem);
  color: var(--bone);
  transition: background var(--t), color var(--t), padding var(--t),
              border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;

  & .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: none;
  }

  &.solid {
    background: color-mix(in srgb, var(--bone) 88%, transparent);
    backdrop-filter: blur(14px) saturate(1.3);
    color: var(--ink);
    border-bottom-color: color-mix(in srgb, var(--ink) 10%, transparent);
    padding-block: clamp(.7rem, 1.4vw, 1rem);
  }
  /* pages that don't open with a full-bleed hero */
  body.light-header & {
    background: var(--bone);
    color: var(--ink);
    border-bottom-color: color-mix(in srgb, var(--ink) 10%, transparent);
  }
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem);
  letter-spacing: .04em;
  line-height: 1;

  & small {
    font-family: var(--f-sans);
    font-size: .52rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    opacity: .6;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.8rem);

  & a {
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    position: relative;
    padding-block: .3rem;

    &::after {
      content: '';
      position: absolute;
      inset: auto 0 0;
      height: 1px;
      background: currentColor;
      scale: 0 1;
      transform-origin: left;
      transition: scale var(--t-fast);
    }
    &:hover::after, &[aria-current="page"]::after { scale: 1 1; }
    &[aria-current="page"] { color: var(--brass); }
  }
}

.header-cta { display: flex; align-items: center; gap: 1.5rem; }
.header-tel {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  width: 2.4rem; height: 2.4rem;
  flex-direction: column;
  justify-content: center;
  gap: .38rem;
  align-items: flex-end;

  & span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: translate var(--t-fast), rotate var(--t-fast), opacity var(--t-fast), width var(--t-fast);
  }
  & span:nth-child(2) { width: 68%; }

  &[aria-expanded="true"] {
    & span:nth-child(1) { translate: 0 .39rem; rotate: 45deg; }
    & span:nth-child(2) { opacity: 0; }
    & span:nth-child(3) { translate: 0 -.39rem; rotate: -45deg; width: 100%; }
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-tel { display: none; }
  .header-cta .btn { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--ink);
    color: var(--bone);
    translate: 0 -100%;
    transition: translate var(--t);
    z-index: -1;

    & a { font-size: 1.1rem; letter-spacing: .2em; }

    &.open { translate: 0; }
  }
  .site-header:has(.nav.open) { color: var(--bone); background: transparent; border-color: transparent; backdrop-filter: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;

  & img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 58%;
  }
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(8 8 9 / .88) 0%, rgb(8 8 9 / .35) 42%, rgb(8 8 9 / .18) 70%, rgb(8 8 9 / .5) 100%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(6rem, 12vh, 9rem) clamp(3rem, 7vh, 5rem);
  width: 100%;
}
.hero h1 {
  margin-block: 1.6rem 1.8rem;
  max-width: 15ch;

  & em {
    font-style: italic;
    color: var(--brass-hi);
  }
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid color-mix(in srgb, var(--bone) 22%, transparent);
}
.hero-foot p {
  max-width: 46ch;
  color: color-mix(in srgb, var(--bone) 74%, transparent);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
}
.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);

  & div { display: flex; flex-direction: column; gap: .3rem; }
  & b {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
    font-weight: 400;
    line-height: 1;
  }
  & span {
    font-size: .64rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--bone) 60%, transparent);
  }
}

/* page hero (interior pages) */
.page-head {
  padding-block: clamp(8rem, 14vh, 12rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);

  & h1 { margin-block: 1.4rem .9rem; max-width: 18ch; }
  & .prose { font-size: clamp(1rem, .96rem + .3vw, 1.2rem); }
}
.crumbs {
  display: flex;
  gap: .6rem;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);

  & a:hover { color: var(--fg); }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--rule);
  padding-block: clamp(.9rem, 2vw, 1.3rem);
  overflow: hidden;
  display: flex;
  gap: 3rem;

  & ul {
    display: flex;
    gap: 3rem;
    flex: none;
    padding-right: 3rem;
    animation: slide 46s linear infinite;
  }
  & li {
    display: flex;
    align-items: center;
    gap: 3rem;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;

    &::after { content: '\25C7'; color: var(--brass); font-size: .6rem; letter-spacing: 0; }
  }
  &:hover ul { animation-play-state: paused; }
}
@keyframes slide { to { translate: -100% 0; } }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.statement .st-lead  { grid-column: 1 / span 7; }
.statement .st-body  { grid-column: 8 / -1; padding-top: .6rem; }
.statement .lead { max-width: 20ch; }

@media (max-width: 900px) {
  .statement .st-lead, .statement .st-body { grid-column: 1 / -1; }
}

/* ============================================================
   FIGURE / IMAGE PRIMITIVES
   ============================================================ */
.fig {
  position: relative;
  overflow: hidden;
  background: var(--ph, var(--bone-3));

  & img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: scale 1.1s var(--ease);
  }
}
.fig-4x5  { aspect-ratio: 4 / 5; }
.fig-3x4  { aspect-ratio: 3 / 4; }
.fig-1x1  { aspect-ratio: 1; }
.fig-4x3  { aspect-ratio: 4 / 3; }
.fig-3x2  { aspect-ratio: 3 / 2; }
.fig-16x9 { aspect-ratio: 16 / 9; }

.cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-top: .9rem;
  font-size: .74rem;
  letter-spacing: .06em;

  & b { font-weight: 500; }
  & span { color: var(--muted); text-align: right; }
}

/* ============================================================
   DISCIPLINES
   ============================================================ */
.disciplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.disc {
  display: block;
  container-type: inline-size;

  & .fig { aspect-ratio: 3 / 4; }
  & .disc-n {
    font-size: .68rem;
    letter-spacing: .2em;
    color: var(--brass);
    margin-top: 1.2rem;
    display: block;
  }
  & h3 { margin-top: .5rem; }
  & p {
    margin-top: .6rem;
    font-size: .92rem;
    color: var(--muted);
    max-width: 34ch;
  }
  &:hover .fig img { scale: 1.045; }
  & .link-u { margin-top: 1.1rem; }
}

/* ============================================================
   EDITORIAL WORK GRID (home)
   ============================================================ */
.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem) clamp(1.2rem, 2.4vw, 2.4rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.editorial > * { grid-column: span 4; }
.editorial .e-wide  { grid-column: span 8; }
.editorial .e-half  { grid-column: span 6; }
.editorial .e-full  { grid-column: 1 / -1; }
.editorial .e-off   { grid-column: 3 / span 5; }
.editorial .e-off-r { grid-column: 8 / span 4; }
.editorial .e-push  { margin-top: clamp(1.5rem, 5vw, 5rem); }

.editorial a:hover .fig img { scale: 1.045; }

@media (max-width: 780px) {
  .editorial > *,
  .editorial .e-wide,
  .editorial .e-half,
  .editorial .e-off,
  .editorial .e-off-r { grid-column: 1 / -1; }
  .editorial .e-push { margin-top: 0; }
}

/* ============================================================
   CRAFT / PROCESS
   ============================================================ */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.craft-step {
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);

  & h3 { margin-block: 1rem .7rem; }
  & p { color: var(--muted); font-size: .94rem; max-width: 32ch; }
}

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split .sp-media { grid-column: 1 / span 6; }
.split .sp-body  { grid-column: 8 / -1; }
.split.rev .sp-media { grid-column: 7 / -1; order: 2; }
.split.rev .sp-body  { grid-column: 1 / span 5; order: 1; }

@media (max-width: 900px) {
  .split .sp-media, .split .sp-body,
  .split.rev .sp-media, .split.rev .sp-body { grid-column: 1 / -1; order: unset; }
}

/* ============================================================
   MATERIALS
   ============================================================ */
.materials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);

  & li {
    padding: 1.1rem .5rem;
    border-bottom: 1px solid var(--rule);
    font-size: .84rem;
    letter-spacing: .04em;
    display: flex;
    align-items: baseline;
    gap: .8rem;

    &::before {
      content: '\2014';
      color: var(--brass);
      font-size: .7rem;
    }
  }
}

/* ============================================================
   QUOTE
   ============================================================ */
.pullquote {
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;

  & blockquote {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 1.1rem + 2.4vw, 3.2rem);
    line-height: 1.22;
    letter-spacing: -.015em;
    text-wrap: balance;
  }
  & figcaption {
    margin-top: clamp(1.5rem, 3vw, 2.4rem);
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: center;
  color: var(--bone);
  --fg: var(--bone);
  --muted: var(--stone-lt);

  & > .wrap { position: relative; }
  & h2 { margin-block: 1.4rem 1rem; max-width: 18ch; margin-inline: auto; }
  & p { max-width: 46ch; margin-inline: auto; color: color-mix(in srgb, var(--bone) 72%, transparent); }
  & .cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: clamp(2rem, 4vw, 3rem);
  }
}
.cta-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);

  & img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  --fg: var(--bone);
  --muted: var(--stone-lt);
  --rule: color-mix(in srgb, var(--bone) 16%, transparent);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.footer-brand { grid-column: 1 / span 5; }
.footer-brand p {
  margin-top: 1.4rem;
  max-width: 34ch;
  color: color-mix(in srgb, var(--bone) 62%, transparent);
  font-size: .92rem;
}
.footer-col { grid-column: span 2; }
.footer-col:first-of-type { grid-column: 7 / span 2; }
.footer-col h4 {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.footer-col li + li { margin-top: .6rem; }
.footer-col a {
  font-size: .88rem;
  color: color-mix(in srgb, var(--bone) 78%, transparent);

  &:hover { color: var(--brass-hi); }
}
.footer-areas {
  padding-top: 1.8rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}
.footer-areas h4 {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.footer-areas p {
  font-size: .86rem;
  line-height: 1.9;
  color: color-mix(in srgb, var(--bone) 58%, transparent);
}
.footer-areas a { color: color-mix(in srgb, var(--bone) 80%, transparent); }
.footer-areas a:hover { color: var(--brass-hi); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .74rem;
  color: color-mix(in srgb, var(--bone) 52%, transparent);
}

@media (max-width: 860px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:first-of-type { grid-column: span 6; }
}

/* ============================================================
   WORK / PORTFOLIO
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);

  /* narrow screens: one scrolling rail rather than a six-row block */
  @media (max-width: 760px) {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    &::-webkit-scrollbar { display: none; }
    & button { flex: none; scroll-snap-align: start; }
  }

  & button {
    padding: .6rem 1.2rem;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    border: 1px solid var(--rule);
    color: var(--muted);
    transition: all var(--t-fast);

    &:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
    &[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
  }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.work-item {
  display: block;
  text-align: left;
  width: 100%;

  & .fig { aspect-ratio: var(--ar, 4 / 5); }
  &:hover .fig img { scale: 1.045; }
  &[hidden] { display: none; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100svh;
  width: 100vw;
  height: 100svh;
  background: rgb(8 8 9 / .96);
  color: var(--bone);

  &::backdrop { background: rgb(8 8 9 / .9); }

  &[open] { display: grid; grid-template-rows: auto 1fr auto; }

  & img {
    max-width: min(100%, 1500px);
    max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    margin: auto;
  }
}
.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 3vw, 2rem);
  font-size: .74rem;
  letter-spacing: .12em;
}
.lb-body { display: grid; padding-inline: clamp(.5rem, 2vw, 2rem); min-height: 0; }
.lb-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem;

  & button {
    width: 3rem; height: 3rem;
    border: 1px solid color-mix(in srgb, var(--bone) 28%, transparent);
    display: grid; place-items: center;
    font-size: 1rem;
    transition: all var(--t-fast);

    &:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
  }
}
.lb-close {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: .6rem;

  &:hover { color: var(--brass-hi); }
}
.lb-meta b { font-weight: 500; }
.lb-meta span { color: var(--stone-lt); margin-left: .8rem; }

/* ============================================================
   FORM
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1.4rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: .5rem;

  &.wide { grid-column: 1 / -1; }

  & label {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  & input, & select, & textarea {
    font: inherit;
    font-size: .95rem;
    color: var(--fg);
    background: transparent;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--fg) 24%, transparent);
    padding: .7rem 0;
    border-radius: 0;
    transition: border-color var(--t-fast);

    &::placeholder { color: color-mix(in srgb, var(--fg) 32%, transparent); }
    &:focus {
      outline: 0;
      border-bottom-color: var(--brass);
    }
  }
  & textarea { resize: vertical; min-height: 4.5rem; field-sizing: content; }
  & select { appearance: none; cursor: pointer; }
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.form-note { font-size: .76rem; color: var(--muted); }
.form-error { color: #c0392b; font-size: .82rem; margin-top: .8rem; }
.form-done {
  padding: clamp(2rem, 5vw, 3.5rem) 0;

  & h3 { margin-bottom: .8rem; }
  & p { color: var(--muted); }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-form { grid-column: 1 / span 7; }
.contact-aside { grid-column: 9 / -1; }

.detail-list {
  border-top: 1px solid var(--rule);

  & > div {
    padding-block: 1.2rem;
    border-bottom: 1px solid var(--rule);
  }
  & dt {
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .45rem;
  }
  & dd { font-size: .98rem; }
  & dd a:hover { color: var(--brass); }
}

@media (max-width: 900px) {
  .contact-form, .contact-aside { grid-column: 1 / -1; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--rule);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.faq details {
  border-bottom: 1px solid var(--rule);

  & summary {
    list-style: none;
    cursor: pointer;
    padding-block: 1.5rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    font-family: var(--f-display);
    font-size: clamp(1.05rem, .98rem + .5vw, 1.35rem);
    transition: color var(--t-fast);

    &::-webkit-details-marker { display: none; }
    &::after {
      content: '+';
      font-family: var(--f-sans);
      font-size: 1.1rem;
      color: var(--brass);
      flex: none;
      transition: rotate var(--t-fast);
    }
    &:hover { color: var(--brass); }
  }
  &[open] summary::after { rotate: 45deg; }

  & .answer {
    padding-bottom: 1.6rem;
    max-width: var(--measure);
    color: var(--muted);
    font-size: .96rem;

    & a { color: var(--fg); border-bottom: 1px solid var(--brass); }
  }
}

/* ============================================================
   SCROLL REVEAL — progressive enhancement only
   ============================================================ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    @keyframes rise {
      from { opacity: 0; translate: 0 2.5rem; }
      to   { opacity: 1; translate: 0 0; }
    }
  }
}

/* ============================================================
   MISC
   ============================================================ */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;

  & h2 { max-width: 16ch; }
  & .eyebrow { width: 100%; margin-bottom: 1.2rem; }
}

.defer { content-visibility: auto; contain-intrinsic-size: auto 800px; }
