/* Barton Home — styles */

@font-face { font-family: 'Forum'; src: url('assets/fonts/forum-cyrillic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Forum'; src: url('assets/fonts/forum-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-cyrillic-300.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-latin-300.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-cyrillic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-cyrillic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

@font-face { font-family: 'Prata'; src: url('assets/fonts/prata-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Marcellus'; src: url('assets/fonts/marcellus-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tenor Sans'; src: url('assets/fonts/tenor-sans-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0f1412;
  --fir: #1e2a25;
  --bone: #ece7dd;
  --ink: #17201c;
  --brass: #b59a6a;
  --stone: #8c9089;
  --mist: rgb(236 231 221 / 72%);
  --display: 'Forum', 'Times New Roman', serif;
  --text: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --header-height: 5.25rem;
  --expo: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%);
}
.skip:focus { position: fixed; z-index: 100; inset: .75rem auto auto .75rem; padding: .7rem 1rem; background: var(--bone); color: var(--ink); }

/* Masked lines produced by SplitText */
.line-mask { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* Before JS animates, keep animated text out of sight to avoid a flash */
.js:not(.reduced) [data-split] { visibility: hidden; }
.js:not(.reduced) .site-header { opacity: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto;
  color: var(--bone);
  transition: transform .7s var(--expo), background-color .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  position: absolute; inset: 0; z-index: -1; content: '';
  background: linear-gradient(180deg, rgb(10 14 12 / 55%), transparent);
  transition: opacity .5s ease;
}
.site-header.is-solid { background: rgb(15 20 18 / 82%); border-color: rgb(236 231 221 / 10%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex; flex-direction: column; align-items: center; justify-self: center;
  width: max-content; text-decoration: none; line-height: 1;
}
.brand-word { padding-left: .2em; font: 400 1.5rem/1 'Prata', var(--display); letter-spacing: .2em; }
.brand-sub { display: flex; align-items: center; gap: .9em; width: 100%; margin-top: .45rem; font: 400 .5rem/1 'Tenor Sans', var(--text); letter-spacing: .7em; }
.brand-sub::before, .brand-sub::after { flex: 1; height: 1px; content: ''; background: currentColor; opacity: .55; }
.brand-sub::after { margin-left: -.7em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.4rem); }
.nav-end { justify-content: flex-end; }
.nav a, .mobile-projects {
  position: relative;
  font-size: .72rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.nav a::after, .footer-social a::after, .footer-legal a::after {
  position: absolute; left: 0; right: 0; bottom: -.4em; height: 1px; content: '';
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--expo);
}
.nav a:hover::after, .nav a[aria-current]::after, .footer-social a:hover::after, .footer-legal a:hover::after { transform: scaleX(1); transform-origin: left; }
.mobile-projects, .menu-toggle { display: none; }
.menu-toggle {
  justify-self: end; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.hamburger { display: grid; gap: 5px; justify-items: end; }
.hamburger i { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .5s var(--expo), opacity .3s ease, width .5s var(--expo); }
.hamburger i:nth-child(2) { width: 15px; }
.menu-open .hamburger i:first-child { transform: translateY(6px) rotate(45deg); }
.menu-open .hamburger i:nth-child(2) { opacity: 0; }
.menu-open .hamburger i:last-child { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed; z-index: 45; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-height) + 1rem) var(--gutter) 2rem;
  background: var(--night);
  color: var(--bone);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: .2rem; }
.menu nav a { display: block; overflow: clip; font: 400 clamp(2.1rem, 8.5vw, 3.4rem)/1.15 var(--display); text-decoration: none; }
.menu nav a span { display: inline-block; }
.menu-foot { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.5rem; color: var(--stone); font-size: .85rem; }
.menu-foot a { text-decoration: none; }

/* ---------- Buttons & links ---------- */
.button, .text-link {
  display: inline-flex; align-items: center; gap: .9rem; width: fit-content;
  font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.button {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  border: 1px solid rgb(236 231 221 / 55%);
  transition: color .6s var(--expo), border-color .6s var(--expo);
}
.button::before {
  position: absolute; inset: 0; z-index: -1; content: '';
  background: var(--bone); transform: translateY(101%); transition: transform .6s var(--expo);
}
.button:hover { color: var(--ink); border-color: var(--bone); }
.button:hover::before { transform: translateY(0); }
.text-link { position: relative; padding-block: .35rem; }
.text-link::after {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; content: '';
  background: currentColor; transform-origin: left; transition: transform .7s var(--expo);
}
.text-link:hover::after { transform: scaleX(.35); }
.arrow { position: relative; display: inline-block; flex: 0 0 auto; width: 1.1rem; height: .7rem; transition: transform .6s var(--expo); }
.arrow::before, .arrow::after { position: absolute; right: 0; content: ''; }
.arrow::before { top: calc(50% - .5px); width: 100%; height: 1px; background: currentColor; }
.arrow::after { top: 50%; width: .42rem; height: .42rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translate(-.04rem, -50%) rotate(45deg); }
.button:hover .arrow, .text-link:hover .arrow { transform: translateX(.3rem); }

/* ---------- Frames: images that float inside a fixed window ---------- */
.frame { position: relative; overflow: hidden; background: var(--fir); }
.frame > img, .frame > video {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%; max-width: none;
  object-fit: cover; will-change: transform;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-height) + 2rem) var(--gutter) clamp(4.5rem, 11vh, 8rem);
  overflow: clip;
  background: #000;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after {
  position: absolute; inset: 0; z-index: -1; content: ''; pointer-events: none;
  background:
    linear-gradient(0deg, rgb(8 11 10 / 78%) 0%, rgb(8 11 10 / 18%) 46%, rgb(8 11 10 / 30%) 100%),
    linear-gradient(90deg, rgb(8 11 10 / 42%), transparent 65%);
}
.hero-copy { max-width: 56rem; }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 8.2rem); line-height: .98; }
.hero-lead { max-width: 34rem; margin-top: 1.6rem; color: rgb(236 231 221 / 88%); font-size: clamp(1.08rem, 1.45vw, 1.35rem); font-weight: 400; }
.hero .button { margin-top: 2.2rem; }
.hero-cue {
  position: absolute; left: 50%; bottom: 0;
  width: 1px; height: clamp(3rem, 9vh, 5.5rem); overflow: hidden;
}
.hero-cue::before {
  position: absolute; inset: 0; content: ''; background: var(--bone);
  animation: cue 2.6s var(--expo) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ---------- Statement ---------- */
.statement {
  padding: clamp(6rem, 16vh, 11rem) var(--gutter);
  background: var(--bone); color: var(--ink);
}
.statement-text {
  max-width: 25ch;
  font: 400 clamp(2.1rem, 4.6vw, 4.9rem)/1.08 var(--display);
  letter-spacing: -.012em;
}
.statement-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.statement-foot p { max-width: 34rem; color: #3f4741; font-size: 1.1rem; }

/* ---------- Section head ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 { font-size: clamp(2.8rem, 6vw, 6.2rem); }

/* ---------- Project slider ---------- */
.slider {
  position: relative; isolation: isolate;
  height: clamp(34rem, 92svh, 62rem);
  overflow: hidden; background: var(--fir);
  touch-action: pan-y; user-select: none;
}
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--gutter); }
.js .slide:not(.is-active) { visibility: hidden; }
.slide-media { position: absolute; inset: -8% 0; z-index: -1; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.slide::after {
  position: absolute; inset: 0; z-index: -1; content: ''; pointer-events: none;
  background: linear-gradient(0deg, rgb(8 11 10 / 62%), transparent 55%);
}
.glass {
  background: rgb(18 25 22 / 58%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgb(236 231 221 / 12%);
}
.slide-card { width: min(100%, 31rem); padding: clamp(1.5rem, 2.6vw, 2.5rem); margin-bottom: 4.5rem; }
.slide-kind, .card-kind { color: var(--brass); font-size: .9rem; letter-spacing: .02em; }
.slide-card h3 { margin-top: .6rem; font-size: clamp(2rem, 3.3vw, 3.3rem); }
.slide-card p:not(.slide-kind) { margin-top: .9rem; color: var(--mist); font-weight: 300; }
.slide-card .button { margin-top: 1.6rem; }
.slider-ui {
  position: absolute; z-index: 5; right: var(--gutter); bottom: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.slider-count { font-size: .85rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.slider-count span { display: inline-block; min-width: 1.4em; }
.slider-progress { position: relative; width: clamp(4rem, 10vw, 9rem); height: 1px; background: rgb(236 231 221 / 28%); }
.slider-progress i { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.round {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0;
  border: 1px solid rgb(236 231 221 / 50%); border-radius: 50%;
  background: rgb(15 20 18 / 30%); cursor: pointer;
  transition: background-color .5s var(--expo), color .5s var(--expo), border-color .5s var(--expo);
}
.round:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.round.prev .arrow { transform: rotate(180deg); }

/* ---------- Feature: full-bleed image with text rising over it ---------- */
.feature { position: relative; padding: clamp(4rem, 10vh, 7rem) 0; }
.feature-frame { height: clamp(34rem, 96svh, 60rem); }
.feature-frame > img { object-position: 50% 70%; }
.feature-frame::after {
  position: absolute; inset: 0; content: ''; pointer-events: none;
  background: linear-gradient(90deg, rgb(8 11 10 / 50%), transparent 70%);
}
.feature-copy {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(7rem, 22vh, 14rem);
  width: min(calc(100% - 2 * var(--gutter)), 36rem);
  padding: clamp(1.75rem, 3.2vw, 3rem);
}
.feature-copy h2 { font-size: clamp(2.4rem, 4.6vw, 4.8rem); }
.feature-copy p { margin-top: 1.1rem; color: var(--mist); font-weight: 300; font-size: 1.1rem; }
.feature-copy .text-link { margin-top: 1.8rem; }

/* ---------- Split (services) ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 7vw, 8rem); align-items: center;
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
  background: var(--bone); color: var(--ink);
}
.split-frame { aspect-ratio: 4 / 5; }
.split h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.split-intro { max-width: 32rem; margin-top: 1.3rem; color: #3f4741; font-size: 1.1rem; }
.offer-list { margin: clamp(2rem, 4vw, 3.5rem) 0 2.4rem; padding: 0; list-style: none; }
.offer-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .4rem 2rem; padding: 1.5rem 0; }
.offer-list li::before { position: absolute; inset: 0 0 auto; height: 1px; content: ''; background: rgb(23 32 28 / 22%); transform-origin: left; transform: scaleX(var(--line, 1)); }
.offer-list h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.offer-list p { color: #3f4741; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--night); }
.tile { position: relative; display: flex; align-items: flex-end; min-height: clamp(30rem, 46vw, 46rem); padding: clamp(1rem, 1.8vw, 1.75rem); text-decoration: none; isolation: isolate; }
.tile .frame { position: absolute; inset: 0; z-index: -1; }
.tile .frame > img { transition: scale 1.6s var(--expo); }
.tile:hover .frame > img { scale: 1.07; }
.tile-copy { width: 100%; padding: clamp(1.4rem, 2.2vw, 2.1rem); transition: transform .9s var(--expo); }
.tile:hover .tile-copy { transform: translateY(-.5rem); }
.tile-copy h2 { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
.tile-copy p { margin-top: .7rem; color: var(--mist); font-weight: 300; max-width: 30ch; }
.tile-copy .text-link { margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(4rem, 10vh, 6.5rem) var(--gutter) 1.8rem; background: var(--night); border-top: 1px solid rgb(236 231 221 / 10%); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.75rem; padding-bottom: clamp(3rem, 7vh, 4.5rem); }
.footer-main .brand-word { font-size: clamp(1.6rem, 3.4vw, 3rem); }
.footer-main .brand-sub { font-size: .62rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: .8rem clamp(1rem, 3vw, 3rem); }
.footer-social:last-child { justify-content: flex-end; }
.footer-social a, .footer-legal a { position: relative; text-decoration: none; }
.footer-social a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem clamp(1rem, 3vw, 3rem);
  padding-top: 1.6rem; border-top: 1px solid rgb(236 231 221 / 14%);
  color: var(--stone); font-size: .8rem;
}

/* ---------- Inner pages ---------- */
.page-intro { padding: calc(var(--header-height) + clamp(3.5rem, 10vh, 7rem)) var(--gutter) clamp(3rem, 8vh, 5.5rem); }
.page-intro h1 { max-width: 16ch; margin-top: 1.4rem; font-size: clamp(3rem, 7.6vw, 8rem); }
.page-intro p { max-width: 40rem; margin-top: 1.4rem; color: var(--mist); font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.back-link { display: inline-flex; align-items: center; gap: .7rem; color: var(--stone); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: color .4s ease; }
.back-link::before { width: 1.6rem; height: 1px; content: ''; background: currentColor; transition: width .6s var(--expo); }
.back-link:hover { color: var(--bone); }
.back-link:hover::before { width: 2.4rem; }
.frame-wide { height: clamp(22rem, 78svh, 52rem); }
.page-copy { max-width: 62rem; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.page-intro + .page-copy { padding-top: 0; }
.page-copy h2, .service-list h2 { font-size: clamp(2rem, 3.8vw, 3.8rem); }
.page-copy h2, .page-copy p, .page-copy ul { margin-bottom: 1.1rem; }
.page-copy p, .page-copy li { color: var(--mist); font-weight: 300; font-size: 1.1rem; }
.page-copy .text-link { margin-top: .8rem; }
.service-list { padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem); }
.frame + .service-list { padding-top: clamp(3rem, 6vw, 5rem); }
.service-list section {
  display: grid; grid-template-columns: minmax(14rem, .95fr) minmax(14rem, 1.2fr) auto;
  gap: .6rem 2rem; align-items: baseline; padding: 2rem 0;
  border-top: 1px solid rgb(236 231 221 / 16%); scroll-margin-top: calc(var(--header-height) + 1rem);
}
.service-list section:last-child { border-bottom: 1px solid rgb(236 231 221 / 16%); }
.service-list p { max-width: 38rem; color: var(--mist); font-weight: 300; }
.service-price { color: var(--brass); white-space: nowrap; }
.service-list + .page-copy { padding-top: 0; }
.sitemap { padding-left: 1.25rem; }
.sitemap a { text-decoration: underline; text-decoration-color: rgb(236 231 221 / 30%); text-underline-offset: .25em; }

/* Portfolio */
.works {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 4vw, 4.5rem);
  padding: 0 var(--gutter) clamp(6rem, 14vh, 10rem);
}
.work { display: block; text-decoration: none; }
.works .work:nth-child(even) { margin-top: clamp(4rem, 14vw, 13rem); }
.work .frame { aspect-ratio: 4 / 5; }
.works .work:nth-child(4n+1) .frame, .works .work:nth-child(4n) .frame { aspect-ratio: 5 / 6; }
.work .frame > img { transition: scale 1.6s var(--expo); }
.work:hover .frame > img { scale: 1.06; }
.work-caption { display: grid; gap: .45rem; padding-top: 1.3rem; }
.work-caption h2 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); }

/* Project page */
.project-hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; padding: calc(var(--header-height) + 2rem) var(--gutter) clamp(3.5rem, 9vh, 6rem); isolation: isolate; overflow: clip; }
.project-hero .frame { position: absolute; inset: 0; z-index: -2; }
.project-hero::after { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(0deg, rgb(8 11 10 / 75%), transparent 60%); }
.project-hero h1 { max-width: 18ch; margin-top: 1rem; font-size: clamp(2.8rem, 6.6vw, 7rem); }
.project-hero .card-kind { margin-top: 2rem; }
.project-lead {
  padding: clamp(5rem, 14vh, 9rem) var(--gutter);
  background: var(--bone); color: var(--ink);
}
.project-lead p { max-width: 24ch; font: 400 clamp(1.9rem, 3.8vw, 4rem)/1.12 var(--display); }
.project-gallery {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 3vw, 3rem); align-items: start;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
}
.project-gallery .frame:first-child { aspect-ratio: 4 / 5; margin-top: clamp(4rem, 12vw, 11rem); }
.project-gallery .frame:last-child { aspect-ratio: 5 / 4; }
.next-project { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(26rem, 72svh, 44rem); text-decoration: none; isolation: isolate; text-align: center; overflow: clip; }
.next-project .frame { position: absolute; inset: 0; z-index: -1; }
.next-project .frame::after { position: absolute; inset: 0; content: ''; background: rgb(8 11 10 / 48%); transition: background-color .8s var(--expo); }
.next-project:hover .frame::after { background: rgb(8 11 10 / 30%); }
.next-project .frame > img { transition: scale 1.6s var(--expo); }
.next-project:hover .frame > img { scale: 1.05; }
.next-label { display: block; color: var(--brass); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.next-title { display: block; max-width: 18ch; margin: 1rem auto 0; font: 400 clamp(2.4rem, 5.4vw, 5.6rem)/1.02 var(--display); }

/* ---------- Responsive ---------- */
@media (max-width: 66rem) {
  :root { --header-height: 4.5rem; }
  .nav { display: none; }
  .mobile-projects, .menu-toggle { display: block; }
  .mobile-projects { justify-self: start; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-frame { aspect-ratio: 4 / 3; }
  .service-list section { grid-template-columns: minmax(11rem, .9fr) minmax(10rem, 1fr) auto; }
}
@media (max-width: 45rem) {
  :root { --header-height: 4rem; }
  body { font-size: 1rem; }
  .brand-word { font-size: 1.3rem; }
  .brand-sub { font-size: .5rem; margin-top: .3rem; }
  .hero { padding-bottom: 5.5rem; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4.4rem); }
  .slider { height: clamp(36rem, 88svh, 48rem); }
  .slide { padding: var(--gutter) var(--gutter) 5.5rem; }
  .slide-card { margin-bottom: 0; }
  .slider-ui { left: var(--gutter); justify-content: space-between; bottom: 1.25rem; }
  .slider-progress { flex: 1; }
  .round { width: 2.9rem; height: 2.9rem; }
  .feature-copy { bottom: 3rem; }
  .offer-list li { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 28rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .footer-social, .footer-social:last-child { justify-content: center; }
  .footer-main .brand { order: -1; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .works .work:nth-child(even) { margin-top: 0; }
  .project-gallery { grid-template-columns: minmax(0, 1fr); }
  .project-gallery .frame:first-child { margin-top: 0; }
  .service-list section { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-media video { display: none; }
  .frame > img, .frame > video { top: 0; height: 100%; }
}

/* ---------- 3D logo intro ---------- */
.intro { position: fixed; z-index: 95; inset: 0; pointer-events: none; }
.intro-skip { pointer-events: auto; }
.intro canvas { display: block; width: 100%; height: 100%; }
.intro-skip {
  position: absolute; right: var(--gutter); bottom: clamp(1.25rem, 4vh, 2.5rem);
  padding: .6rem 0; border: 0; background: none; cursor: pointer;
  color: rgb(236 231 221 / 55%); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  transition: color .4s ease;
}
.intro-skip:hover, .intro-skip:focus-visible { color: var(--bone); }

/* ---------- Social icons (monochrome) ---------- */
.social {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgb(236 231 221 / 28%); border-radius: 50%;
  color: rgb(236 231 221 / 82%);
  transition: color .5s var(--expo), background-color .5s var(--expo), border-color .5s var(--expo);
}
.social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.social:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.footer-social a.social::after { display: none; }
.footer-social { gap: .75rem; }
.social-row { gap: .75rem; }

/* ---------- Page themes: light, deep green, dark (default) ---------- */
.site-footer { color: var(--bone); }
body.theme-light { background: #f6f4ef; color: var(--ink); }
.theme-light main { --mist: rgb(23 32 28 / 72%); }
.theme-light .card-kind, .theme-light .service-price { color: #876d40; }
.theme-light .back-link { color: #6d726b; }
.theme-light .back-link:hover { color: var(--ink); }
.theme-light .service-list section { border-color: rgb(23 32 28 / 14%); }
.theme-light .sitemap a { text-decoration-color: rgb(23 32 28 / 30%); }
.theme-light main .button { border-color: rgb(23 32 28 / 45%); }
.theme-light main .button::before { background: var(--ink); }
.theme-light main .button:hover { color: var(--bone); border-color: var(--ink); }
.theme-light .frame { background: #e6e1d7; }
/* blocks that sit on photographs or dark panels keep light text */
.theme-light .project-hero, .theme-light .next-project, .theme-light .project-lead { color: var(--bone); --mist: rgb(236 231 221 / 72%); }
.theme-light .project-hero .card-kind { color: var(--brass); }
.theme-light .project-hero .back-link { color: rgb(236 231 221 / 75%); }
.theme-light .project-lead { background: var(--fir); }
/* header on light pages */
.theme-light .site-header { color: var(--ink); }
.theme-light .site-header::before { opacity: 0; }
.theme-light .site-header.is-solid { background: rgb(246 244 239 / 88%); border-color: rgb(23 32 28 / 10%); }
.theme-light.photo-top .site-header:not(.is-solid) { color: var(--bone); }
.theme-light.photo-top .site-header:not(.is-solid)::before { opacity: 1; }
html.menu-open body .site-header, html.menu-open body .site-header.is-solid { color: var(--bone); background: transparent; border-color: transparent; }

body.theme-green { background: #16231d; }
.theme-green .site-header.is-solid { background: rgb(22 35 29 / 86%); }
.theme-green .frame { background: #1f3028; }
.theme-green .service-list section { border-color: rgb(236 231 221 / 14%); }
.intro-film { position: absolute; max-width: none; will-change: transform; }
.intro-halo {
  position: absolute; pointer-events: none; mix-blend-mode: screen; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 88%) 0%, rgb(240 238 255 / 50%) 30%, rgb(150 128 225 / 18%) 62%, rgb(120 100 200 / 0%) 100%);
  filter: blur(6px);
}
