/* 53 Glasshouse: Larchwell Design-Build (sample). Look of Monarque (monarque.framer.website); our own code and photos.
   No JavaScript. Breakpoints 760 / 1080. Desktop pages from 1080 (<meta name="ncs-desktop">).
   Three glass effects, all CSS:
   1. Frosted header: the menu pill (and the logo) turn to blurred glass over photos and dark bands (scroll-driven
      view timelines on those sections; a solid dark pill where unsupported).
   2. Glass wordmark: where the giant hero name crosses the tall photo, its letters fill with a blurred, lightened copy
      of that photo (background-clip: text); plain ink letters and no overlap where unsupported.
   3. Fade-ins: photos and big quote lines fade up as they scroll in (animation-timeline: view(), in @supports, off
      under prefers-reduced-motion; fully visible everywhere else). */

/* ---- Shared token layer (library-wide names: re-skin by changing these) ---- */
:root {
  --c-bg: #ffffff;          /* page */
  --c-surface: #f4f4f2;     /* fields on light, quiet panels */
  --c-ink: #111111;         /* charcoal: text, the menu pill, dark bands, the menu panel */
  --c-muted: #50555e;       /* secondary text on white (7.5:1) */
  --c-line: #e7e7e4;        /* hairlines and the column rules (decorative) */
  --c-line-strong: #767b84; /* field borders on light (4.3:1) */
  --c-accent: #f3cf62;      /* warm late-sun yellow: Start a project buttons, current page in the menu (fill / on dark only) */
  --c-on-accent: #111111;   /* text on the accent (12.6:1) */
  --c-accent-2: #2f3642;    /* slate: the studio band */
  --f-display: "Reddit Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Reddit Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, Menlo, monospace; /* unused */
  --r-sm: 10px;             /* fields */
  --r-lg: 4px;              /* photos: nearly square, like the original */
  --r-pill: 999px;          /* buttons, the menu pill, chips */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 56px; --s-6: 120px;

  /* Theme names, mapped to the shared layer */
  --ink: var(--c-ink);
  --slate: var(--c-accent-2);
  --sun: var(--c-accent);
  --on-dark: #ecebe7;       /* text on charcoal and slate (16:1 / 11:1) */
  --on-dark-2: #b7bac0;     /* secondary text on charcoal (9.9:1) and slate (6.3:1) */
  --dark-line: #3a3d42;     /* hairlines on dark (decorative) */
  --field-dark: #7a7d82;    /* field borders on charcoal (4.5:1) */
  --col-line: var(--c-line);
  --img-lake: url("img/band-lake.webp");   /* one copy in the emailed file: used by the feature band, the menu photo and the footer wordmark */
  --img-frost: url("img/hero-frost.webp"); /* the glass wordmark's fill */
  --pad: 20px;              /* side gutter */
  --gap: 12px;              /* column gap */
  --cols: 2;
  --max: 1680px;
  --sec: 72px;              /* section padding */
  --bar-h: 68px;            /* header row */
  --pill-w: 72px; --pill-h: 46px;
  --wm-k: 3.64;             /* "Larchwell" width in em at our tracking: the wordmark fills the column grid */
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 760px) { :root { --pad: 32px; --gap: 24px; --cols: 3; --sec: 104px; --bar-h: 80px; --pill-w: 82px; } }
@media (min-width: 1080px) { :root { --pad: 40px; --gap: 30px; --sec: 128px; --bar-h: 86px; } }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 16px/1.55 var(--f-body); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(34px, 8.4vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
p, li, dd, dt, figcaption, blockquote { text-wrap: pretty; }
p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { display: none; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--c-muted); }
.lede { font-size: 18px; line-height: 1.45; letter-spacing: -.015em; }
@media (min-width: 1080px) { body { font-size: 17px; } h3 { font-size: 24px; } .eyebrow { font-size: 16px; } .lede { font-size: 21px; } }

/* Touch polish and focus */
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.dk :focus-visible, .ov :focus-visible { outline-color: var(--sun); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.demo { background: var(--ink); color: var(--on-dark); font-size: 13px; line-height: 1.4; text-align: center; padding: 8px 16px; }

/* Column rules: thin vertical lines on the column gaps, like the original's drawing-sheet grid (phones: the two gutters) */
.cols { position: relative; }
.cols::before {
  content: ""; position: absolute; inset: 0; z-index: 0; width: 100%; max-width: var(--max); margin-inline: auto; pointer-events: none;
  background:
    linear-gradient(var(--col-line), var(--col-line)) calc(var(--pad) - 1px) 0 / 1px 100% no-repeat,
    linear-gradient(var(--col-line), var(--col-line)) calc(100% - var(--pad) + 1px) 0 / 1px 100% no-repeat;
}
.cols > .wrap { position: relative; z-index: 1; }
@media (min-width: 760px) {
  .cols::before {
    padding-inline: var(--pad); background-origin: content-box; background-clip: content-box;
    background: linear-gradient(to right,
      transparent calc((100% - 2 * var(--gap)) / 3 + var(--gap) / 2 - .5px), var(--col-line) 0,
      var(--col-line) calc((100% - 2 * var(--gap)) / 3 + var(--gap) / 2 + .5px), transparent 0,
      transparent calc(2 * (100% - 2 * var(--gap)) / 3 + 1.5 * var(--gap) - .5px), var(--col-line) 0,
      var(--col-line) calc(2 * (100% - 2 * var(--gap)) / 3 + 1.5 * var(--gap) + .5px), transparent 0) content-box;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: var(--r-pill); font: 500 17px/1.2 var(--f-body); letter-spacing: -.015em; text-decoration: none;
  cursor: pointer; transition: transform 140ms var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sun { background: var(--sun); color: var(--c-on-accent); }
@media (hover: hover) and (pointer: fine) { .btn-sun:hover { background: #f7dc86; } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link-arrow .i { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .i { transform: translate(2px, -2px); } }

/* =========================================================================================================
   HEADER: mark + (later) name top left, menu pill top right. Zero-height sticky row, so it floats over the hero.
   ========================================================================================================= */
.top { position: sticky; top: 0; z-index: 60; height: 0; }
.bar { position: absolute; inset: 0 0 auto; pointer-events: none; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.logo {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-left: -12px; padding: 0 14px 0 12px; border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 500; letter-spacing: -.045em; white-space: nowrap; }
.mark { width: 27px; height: 25px; flex: none; fill: currentColor; }
.bar > * { pointer-events: auto; }   /* the clear bar never blocks taps on the page under it */
/* The name shows once on the first screen: the hero wordmark. The bar's name fades in after the hero has scrolled away. */
.logo-w { opacity: 0; }
.logo:focus-visible .logo-w { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .logo-w { animation: name-in linear both; animation-timeline: scroll(root); animation-range: 55vh 80vh; }
}
@keyframes name-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1080px) { body:has(main > [data-pg]:not([data-pg="home"]):target, main > [data-pg]:not([data-pg="home"]) :target) .logo-w { opacity: 1 !important; animation: none !important; } }

.pill {
  position: relative; display: none; place-items: center; width: var(--pill-w); height: var(--pill-h); border-radius: var(--r-pill);
  background-color: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
}
.pill[data-for="home"] { display: grid; }
.pill:focus-visible { outline: none; }
.pill:focus-visible::after, .ov-close:focus-visible::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--ink); box-shadow: 0 0 0 2px #fff; }
.burger {
  width: 26px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 58% 2px no-repeat;
  transition: background-size .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background-color: #2a2a2a; }
  .pill:hover .burger { background-size: 100% 2px, 58% 2px, 100% 2px; }
}
/* Desktop pages in the emailed file: the open page's own menu button, so closing the menu returns to that page */
@media (min-width: 1080px) {
  body:has(main > [data-pg="services"]:target, main > [data-pg="services"] :target) .pill[data-for="home"],
  body:has(main > [data-pg="work"]:target, main > [data-pg="work"] :target) .pill[data-for="home"],
  body:has(main > [data-pg="about"]:target, main > [data-pg="about"] :target) .pill[data-for="home"],
  body:has(main > [data-pg="contact"]:target, main > [data-pg="contact"] :target) .pill[data-for="home"] { display: none; }
  body:has(main > [data-pg="services"]:target, main > [data-pg="services"] :target) .pill[data-for="services"],
  body:has(main > [data-pg="work"]:target, main > [data-pg="work"] :target) .pill[data-for="work"],
  body:has(main > [data-pg="about"]:target, main > [data-pg="about"] :target) .pill[data-for="about"],
  body:has(main > [data-pg="contact"]:target, main > [data-pg="contact"] :target) .pill[data-for="contact"] { display: grid; }
}

/* ---- Glass effect 1: the frosted header ----
   Each photo or dark section is a view timeline, measured on a 2px line at the pill's middle (view-timeline-inset).
   While a section crosses that line, the pill's animation for it is active: frosted glass tinted by what's behind it.
   With fill-mode none, outside every range the pill is the solid dark pill (and where unsupported, always). */
.hero-tall { view-timeline: --g1 block; }
.studio { view-timeline: --g2 block; }
.feature { view-timeline: --g3 block; }
.process { view-timeline: --g4 block; }
.contact { view-timeline: --g5 block; }
.foot { view-timeline: --g6 block; }
.hero-tall, .studio, .feature, .process, .contact, .foot { view-timeline-inset: calc(var(--bar-h) / 2 - 1px) calc(100% - var(--bar-h) / 2 - 1px); }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  html { timeline-scope: --g1, --g2, --g3, --g4, --g5, --g6; }
  .pill {
    animation: glass linear none, glass linear none, glass linear none, glass linear none, glass linear none, glass linear none;
    animation-timeline: --g1, --g2, --g3, --g4, --g5, --g6;
    animation-range: cover 0% cover 100%;
  }
  /* the logo sits on the left: only the full-width dark sections and the photo band turn it light (the tall hero photo is on the right) */
  /* and once you scroll, the logo sits in a faint glass chip so it reads over the page (first in the list: the dark-band
     animations after it win where they apply) */
  .logo {
    animation: logo-chip linear both, logo-light linear none, logo-light linear none, logo-light linear none, logo-light linear none, logo-light linear none;
    animation-timeline: scroll(root), --g2, --g3, --g4, --g5, --g6;
    animation-range: 40vh 70vh, cover 0% cover 100%, cover 0% cover 100%, cover 0% cover 100%, cover 0% cover 100%, cover 0% cover 100%;
  }
}
@keyframes glass {
  from, to { background-color: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), 0 6px 24px rgba(0, 0, 0, .18); color: #fff; }
}
@keyframes logo-light { from, to { color: #fff; background-color: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); } }
@keyframes logo-chip {
  from { background-color: rgba(255, 255, 255, 0); }
  to { background-color: rgba(255, 255, 255, .66); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @keyframes glass { from, to { background-color: rgba(17, 17, 17, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); color: #fff; } }
}

/* =========================================================================================================
   MENU (#menu): a dark panel that drops from the top. Opened by the pill (:target: #menu, or on a desktop page of the
   emailed file that page's wrapper #menu-services / -work / -about / -contact, which keeps the page behind it); every
   page link closes it; the white x pill goes to the page's #k-* anchor. The wrappers are display: contents and the
   anchors position: fixed, so opening or closing never scrolls: closing returns you to exactly where you were.
   ========================================================================================================= */
.ov-pg { display: contents; }
.anc { position: fixed; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
/* emailed desktop pages: while a page's own menu wrapper is the target, keep that page (not Home) behind the menu */
@media (min-width: 1080px) {
  html body:has(#menu-services:target) main > [data-pg][data-pg]:not([data-pg="services"]),
  html body:has(#menu-work:target) main > [data-pg][data-pg]:not([data-pg="work"]),
  html body:has(#menu-about:target) main > [data-pg][data-pg]:not([data-pg="about"]),
  html body:has(#menu-contact:target) main > [data-pg][data-pg]:not([data-pg="contact"]) { display: none !important; }
  html body:has(#menu-services:target) main > [data-pg="services"][data-pg],
  html body:has(#menu-work:target) main > [data-pg="work"][data-pg],
  html body:has(#menu-about:target) main > [data-pg="about"][data-pg],
  html body:has(#menu-contact:target) main > [data-pg="contact"][data-pg] { display: block !important; }
  body:has(#menu-services:target) .ov-links a:is([href="#services"], [href="#process"]),
  body:has(#menu-work:target) .ov-links a[href="#work"],
  body:has(#menu-about:target) .ov-links a[href="#about"],
  body:has(#menu-contact:target) .ov-links a[href="#contact"] { --on: 1; }
  body:has(.ov-pg:target) #menu .ov-links a[href="#top"] { --on: 0; }
}
.ov {
  --col-line: #262626;
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink); color: var(--on-dark); visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .55s;
}
#menu:target, body:has(.ov-pg:target) #menu { visibility: visible; clip-path: inset(0); transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); }
html:has(#menu:target), html:has(.ov-pg:target) { overflow: hidden; }
/* While it's open the page behind is hidden (after the drop), so Tab and screen readers stay in the menu */
.top, main, .foot, .demo { transition: visibility 0s; }
body:has(#menu:target, .ov-pg:target) :is(.top, main, .foot, .demo) { visibility: hidden; transition: visibility 0s linear .55s; }
.ov-bar, .ov-body, .ov-foot { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.ov-bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); }
.ov-mark { color: var(--on-dark); line-height: 0; }
.ov-close { position: relative; display: none; place-items: center; width: var(--pill-w); height: var(--pill-h); border-radius: var(--r-pill); background: #fff; color: var(--ink); }
.ov-close[data-for="home"] { display: grid; }
body:has(.ov-pg:target) .ov-close[data-for="home"] { display: none; }
body:has(#menu-services:target) .ov-close[data-for="services"], body:has(#menu-work:target) .ov-close[data-for="work"],
body:has(#menu-about:target) .ov-close[data-for="about"], body:has(#menu-contact:target) .ov-close[data-for="contact"] { display: grid; }
.x { position: relative; width: 22px; height: 22px; }
.x::before, .x::after { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .ov-close:hover { background: #e9e8e4; } }
.ov-close:focus-visible { outline: none; }
.ov-close:focus-visible::after { border-color: var(--sun); box-shadow: none; }

.ov-body { flex: 1; padding-top: 28px; }
.ov-links {
  --ncs-on-style: none;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: var(--gap);
}
.ov-links a {
  display: block; min-height: 44px; padding-block: 1px; color: color-mix(in srgb, var(--sun) calc(var(--on, 0) * 100%), #e4e3df);
  font-size: clamp(32px, 10.4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; text-decoration: none;
  transition: opacity .25s, color .25s;
}
@media (hover: hover) and (pointer: fine) { .ov-links:has(a:hover) a:not(:hover) { opacity: .42; } }
.ov-photo { display: none; }
.ov-foot { flex: none; display: grid; gap: 4px; padding-block: 28px calc(28px + env(safe-area-inset-bottom)); color: var(--on-dark-2); font-size: 16px; }
.ov-foot a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.ov-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ov-social { display: flex; flex-wrap: wrap; column-gap: 24px; }
@media (prefers-reduced-motion: no-preference) {
  :is(#menu:target, body:has(.ov-pg:target) #menu) .ov-links li { animation: ov-rise .6s var(--ease) both; animation-delay: 150ms; }
  :is(#menu:target, body:has(.ov-pg:target) #menu) .ov-links li:nth-child(2) { animation-delay: 190ms; }
  :is(#menu:target, body:has(.ov-pg:target) #menu) .ov-links li:nth-child(3) { animation-delay: 230ms; }
  :is(#menu:target, body:has(.ov-pg:target) #menu) .ov-links li:nth-child(4) { animation-delay: 190ms; }
  :is(#menu:target, body:has(.ov-pg:target) #menu) .ov-links li:nth-child(5) { animation-delay: 230ms; }
  :is(#menu:target, body:has(.ov-pg:target) #menu) .ov-links li:nth-child(6) { animation-delay: 270ms; }
}
@keyframes ov-rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .ov, .top, main, .foot, .demo { transition: none !important; }
  body:has(#menu:target, .ov-pg:target) :is(.top, main, .foot, .demo) { transition: none !important; }
}
@media (min-width: 760px) {
  .ov::before {
    content: ""; position: absolute; inset: 0; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); pointer-events: none;
    background: linear-gradient(to right,
      transparent calc((100% - 2 * var(--gap)) / 3 + var(--gap) / 2 - .5px), var(--col-line) 0,
      var(--col-line) calc((100% - 2 * var(--gap)) / 3 + var(--gap) / 2 + .5px), transparent 0,
      transparent calc(2 * (100% - 2 * var(--gap)) / 3 + 1.5 * var(--gap) - .5px), var(--col-line) 0,
      var(--col-line) calc(2 * (100% - 2 * var(--gap)) / 3 + 1.5 * var(--gap) + .5px), transparent 0) content-box;
  }
  .ov-body { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); align-content: start; padding-top: 4px; }
  .ov-links { grid-column: 1 / 3; }
  .ov-links a { font-size: clamp(46px, 6.8vw, 104px); line-height: 1.06; }
  .ov-photo { display: block; grid-column: 3; align-self: start; aspect-ratio: 4 / 5; margin-top: 10px; border-radius: var(--r-lg); background: #1b1d20 var(--img-lake) center 58% / cover no-repeat; }
  .ov-foot { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); align-items: end; padding-block: 40px 44px; }
  .ov-foot .num { display: none; }
  .ov-social { justify-content: flex-end; }
}

/* =========================================================================================================
   HERO: giant wordmark + glass letters, tall photo (right), wide photo (middle), the pitch (left)
   ========================================================================================================= */
.hero { padding-bottom: 40px; }
.hero-in {
  container-type: inline-size; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: auto 1fr auto; column-gap: var(--gap);
  padding-top: var(--bar-h);
}
.wm {
  position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 1;
  font-size: calc(100cqw / var(--wm-k)); font-weight: 500; line-height: .84; letter-spacing: -.06em; text-indent: -.075em;
  white-space: nowrap; color: var(--ink);
}
.hero-tall { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / 3; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-lg); background: #20262b; }
.hero-tall img, .hero-mid img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag { grid-column: 1; grid-row: 2; align-self: start; margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--c-muted); }
.hero-mid { grid-column: 1; grid-row: 2; align-self: end; aspect-ratio: 6 / 5; overflow: hidden; border-radius: var(--r-lg); background: #2a2a24; }
.hero-copy { grid-column: 1 / -1; grid-row: 3; display: grid; justify-items: start; gap: 18px; padding-top: 24px; }
.hero-copy .lede { max-width: 26em; }
/* Glass effect 2: the letters over the tall photo take a frosted copy of it (same crop, blurred and lightened), the rest
   stay ink. One text element, two background layers clipped to the glyphs. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wm {
    color: transparent;
    background:
      var(--img-frost) right top / calc((100% - var(--gap)) / 2) auto no-repeat,
      linear-gradient(var(--ink), var(--ink));
    -webkit-background-clip: text; background-clip: text;
  }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-tall { grid-row: 2; }
}
@media (forced-colors: active) {
  .wm { color: CanvasText; background: none; }
  .hero-tall { grid-row: 2; }
}
@media (min-width: 760px) {
  .hero { padding-bottom: 56px; }
  .hero-in { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; }
  .hero-tall { grid-column: 3; grid-row: 1 / 3; }
  .hero-tag { grid-column: 1; grid-row: 2; margin-top: 28px; font-size: 15px; }
  .hero-mid { grid-column: 2; grid-row: 2; }
  .hero-copy { grid-column: 1; grid-row: 2; align-self: end; padding-top: 0; }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .wm { background-size: calc((100% - 2 * var(--gap)) / 3) auto, auto; }
  }
}
@media (min-width: 1080px) { .hero-copy { gap: 34px; } .hero-copy .lede { font-size: 22px; } }

/* =========================================================================================================
   STUDIO (slate)
   ========================================================================================================= */
.dk { background: var(--ink); color: var(--on-dark); }
.dk .eyebrow { color: var(--on-dark-2); }
.studio { background: var(--slate); padding-block: var(--sec); }
.statement { max-width: 21em; font-size: clamp(28px, 6.6vw, 60px); line-height: 1.12; letter-spacing: -.04em; color: #f4f3ef; }
.statement .dash { color: var(--sun); }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 48px; padding-top: 24px; border-top: 1px solid #4a515e; }
.figs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.figs dd { font-size: clamp(46px, 13vw, 128px); font-weight: 400; line-height: .9; letter-spacing: -.06em; color: #f4f3ef; }
.figs dt { max-width: 15em; font-size: 14px; line-height: 1.35; color: var(--on-dark-2); }
.studio .link-arrow { margin-top: 32px; }
@media (min-width: 760px) { .figs { margin-top: 88px; } .figs dt { font-size: 15px; } }

/* =========================================================================================================
   FEATURE (full-bleed photo band)
   ========================================================================================================= */
.feature { position: relative; display: flex; align-items: flex-end; min-height: max(560px, 88svh); background: #15181a var(--img-lake) 50% 52% / cover no-repeat; }
.feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 12, .82) 0%, rgba(8, 10, 12, .35) 45%, rgba(8, 10, 12, .1) 70%, rgba(8, 10, 12, .28) 100%); }
.feature-in { position: relative; display: grid; gap: 28px; padding-block: 120px 44px; }
.feature-copy { display: grid; gap: 12px; max-width: 32em; }
.feature-copy .eyebrow { margin: 0; color: #d9dad6; }
.feature h2 { font-size: clamp(32px, 7.6vw, 60px); color: #fff; }
.feature-copy p { color: #e4e4e0; }
.feature-fig { font-size: clamp(28px, 6vw, 52px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; color: #fff; }
/* phones: the photo sits above the words (the house stays clear of the heading) */
@media (max-width: 759.98px) {
  .feature { background-size: auto 64%; background-position: 50% 0; background-color: #0e1012; }
  .feature::before { background: linear-gradient(to top, #0e1012 0 38%, rgba(14, 16, 18, .55) 52%, rgba(14, 16, 18, 0) 70%, rgba(14, 16, 18, .25) 100%); }
}
@media (min-width: 760px) {
  .feature-in { grid-template-columns: 1.4fr 1fr; align-items: end; padding-bottom: 56px; }
  .feature-fig { text-align: right; }
}

/* =========================================================================================================
   SERVICES
   ========================================================================================================= */
.svc { padding-block: var(--sec); }
.svc-grid { display: grid; gap: 36px; }
.svc-head h2 { max-width: 9em; }
.svc-list { counter-reset: none; border-bottom: 1px solid var(--c-line); }
.svc-list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding-block: 20px; border-top: 1px solid var(--c-line); }
.svc-list .n, .steps .n { padding-top: 5px; font-size: 14px; color: var(--c-muted); }
.svc-list :is(p, .meta), .steps p { grid-column: 1 / -1; }
.svc-list p { margin-top: 6px; color: var(--c-muted); }
.svc-list .meta { margin-top: 8px; font-size: 14px; font-weight: 500; }
.svc-photo { overflow: hidden; border-radius: var(--r-lg); background: #3b2d22; }
.svc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 760px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); row-gap: 56px; }
  .svc-head { grid-column: 1 / -1; }
  .svc-list { grid-column: 1 / 3; }
  .svc-photo { grid-column: 3; align-self: start; }
  .svc-photo img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1080px) {
  .svc-head { grid-column: 1; }
  .svc-head h2 { font-size: clamp(44px, 4.4vw, 72px); }
  .svc-list { grid-column: 2; grid-row: 1 / 3; }
  .svc-photo { grid-column: 3; grid-row: 1 / 3; position: sticky; top: calc(var(--bar-h) + 8px); }
  .svc-list li { padding-block: 26px; }
}

/* =========================================================================================================
   PROCESS (charcoal)
   ========================================================================================================= */
.process { padding-block: var(--sec); }
.proc-head h2 { max-width: 11em; }
.steps { display: grid; gap: 0; margin-top: 40px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding-block: 18px; border-top: 1px solid var(--dark-line); }
.steps .n { color: var(--sun); }
.steps p { margin-top: 6px; color: var(--on-dark-2); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: var(--gap); margin-top: 64px; }
  .steps li { grid-template-columns: 1fr; padding-block: 24px 8px; }
  .steps .n { grid-row: auto; padding: 0 0 28px; font-size: 15px; }
}
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps .n { padding-bottom: 72px; } }

/* =========================================================================================================
   WORK (rail on phones, four columns on computers)
   ========================================================================================================= */
.work { padding-block: var(--sec); }
.work-head { display: grid; gap: 14px; margin-bottom: 32px; }
.work-head h2 { max-width: 10em; }
.work-note { font-size: 14px; color: var(--c-muted); }
.rail { margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.work-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: var(--gap); }
.proj { scroll-snap-align: start; }
.proj img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: #2b2b28; }
.proj h3 { margin-top: 14px; }
.proj p { margin-top: 4px; font-size: 15px; color: var(--c-muted); }
@media (min-width: 760px) {
  .work-head { grid-template-columns: 2fr 1fr; align-items: end; margin-bottom: 48px; }
  .work-note { justify-self: end; text-align: right; }
  .work-rail { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.4); }
}
@media (min-width: 1080px) {
  .rail { margin: 0; padding: 0; overflow: visible; }
  .work-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
  .proj:nth-child(even) { margin-top: 64px; }
}

/* =========================================================================================================
   WORDS (review)
   ========================================================================================================= */
.words { padding-block: 8px var(--sec); }
.quote blockquote p { max-width: 22em; font-size: clamp(28px, 6.4vw, 56px); line-height: 1.12; letter-spacing: -.04em; }
.quote figcaption { margin-top: 22px; font-size: 15px; color: var(--c-muted); }
.quote figcaption span { white-space: nowrap; }

/* =========================================================================================================
   ABOUT
   ========================================================================================================= */
.about { padding-block: var(--sec); border-top: 1px solid var(--c-line); }
.about-grid { display: grid; gap: 36px; }
.about-copy { display: grid; gap: 18px; align-content: start; }
.about-copy h2 { max-width: 10em; }
.about-copy > p:not(.eyebrow) { max-width: 34em; color: var(--c-muted); font-size: 17px; }
.creds { display: grid; border-top: 1px solid var(--c-line); }
.creds li { padding-block: 12px; border-bottom: 1px solid var(--c-line); font-weight: 500; }
.creds span { font-weight: 400; color: var(--c-muted); }
.about-photo { overflow: hidden; border-radius: var(--r-lg); background: #d9cbb4; }
.about-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
@media (min-width: 760px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .about-copy { grid-column: 1 / 3; padding-right: 8%; }
  .about-photo { grid-column: 3; align-self: start; }
  .about-photo img { aspect-ratio: 4 / 5; }
}

/* =========================================================================================================
   CONTACT (charcoal) + form
   ========================================================================================================= */
.contact { padding-block: var(--sec); }
.contact-grid { display: grid; gap: 40px; }
.contact-copy { display: grid; gap: 14px; align-content: start; }
.contact h2 { font-size: clamp(44px, 12vw, 104px); }
.contact .lede { color: var(--on-dark-2); max-width: 24em; }
.c-rows { display: grid; margin-top: 12px; border-top: 1px solid var(--dark-line); }
.c-rows li { display: grid; grid-template-columns: 72px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid var(--dark-line); }
.c-k { font-size: 14px; color: var(--on-dark-2); }
.c-rows a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.c-rows a:hover { text-decoration: underline; text-underline-offset: 4px; }
.c-form { display: grid; gap: 18px; align-content: start; }
.f-row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--field-dark); border-radius: var(--r-sm);
  background: #1a1a1a; color: #fff; font: 400 16px/1.4 var(--f-body);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; border-color: #fff; }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; }
.chip-in { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chips .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--field-dark); border-radius: var(--r-pill); font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip-in:checked + .chip { background: var(--sun); border-color: var(--sun); color: var(--c-on-accent); }
.chip-in:focus-visible + .chip { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: #fff; } }
.c-form .btn { justify-self: start; min-width: 160px; }
.sent { display: none; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); background: #26292d; color: var(--on-dark); font-size: 15px; }
.sent:target { display: flex; }
@media (min-width: 760px) { .f-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .contact-copy { grid-column: 1 / 2; }
  .contact h2 { white-space: nowrap; }
  .c-form { grid-column: 2 / 4; padding-top: 12px; padding-left: 12%; }
}

/* =========================================================================================================
   FOOTER: the wordmark filled with the lake photo
   ========================================================================================================= */
.foot { padding-block: 56px 32px; }
.foot .wrap { container-type: inline-size; }
.foot-wm {
  font-size: calc(100cqw / var(--wm-k)); font-weight: 500; line-height: .84; letter-spacing: -.06em; text-indent: -.075em; white-space: nowrap;
  color: #2b2d30;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foot-wm { color: transparent; background: linear-gradient(rgba(236, 235, 231, .16), rgba(236, 235, 231, .16)), #2b2d30 var(--img-lake) 50% 40% / cover no-repeat; -webkit-background-clip: text; background-clip: text; }
}
@media (forced-colors: active) { .foot-wm { color: CanvasText; background: none; } }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); margin-top: 40px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 8px; align-content: start; max-width: 26em; color: var(--on-dark-2); }
.foot-name { font-size: 22px; font-weight: 500; letter-spacing: -.035em; color: var(--on-dark); }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--on-dark-2); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-contact { grid-column: 1 / -1; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-2); }
.legal span { display: block; margin-top: 4px; }
@media (min-width: 760px) {
  .foot { padding-top: 72px; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1; grid-row: 1 / 3; }
  .foot-contact { grid-column: 3; }
  .legal { display: flex; justify-content: space-between; gap: 20px; }
  .legal span { margin: 0; }
}
@media (min-width: 1080px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .foot-brand { grid-row: auto; }
  .foot-contact { grid-column: auto; }
}

/* =========================================================================================================
   Glass effect 3: fade-ins as you scroll (photos and the big quote lines). CSS scroll-driven animations only where
   supported, never under reduced motion; everything is fully visible otherwise.
   ========================================================================================================= */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .fade { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .fade img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .rise { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(32px); } }
@keyframes settle { from { scale: 1.08; } }
@keyframes rise-in { from { opacity: .08; transform: translateY(28px); filter: blur(4px); } }
