/* Kelner Counsel PLLC: a dark stone room, one door, and a white room behind it.
   After the door: ivory, walnut and ink. */

/* Self-hosted fonts (SIL OFL 1.1), inlined from fonts/fonts.css to save a request. Cinzel 600 is for the carved name only. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cinzel-600-latin.woff2") format("woff2"); unicode-range: U+0020-0021, U+0026-0027, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+00A0, U+2010-2014, U+2019; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-400-normal-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; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-400-italic-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; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/eb-garamond-500-normal-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; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400-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; }
:root {
  --ivory: #f4f1ea;
  --ivory-2: #ebe6dc;
  --white: #fcfbf8;
  --ink: #1c1a17;
  --ink-2: #48433b;
  --ink-3: #686257;
  --rule: #d8d0c1;
  --rule-2: #c9bfad;
  --walnut: #6a4329;
  --walnut-2: #8b5e3c;
  --walnut-deep: #2a1b12;
  --brass: #c9ab7a;
  --stone: #0e100f;
  --stone-2: #171a18;
  --bone: #ebe3d1;
  --code: #5dff95;
  --carve: "Cinzel", "Trajan Pro", "Optima", Georgia, serif;
  --serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* the stone-room plate, and where its door sits on it (measured from the photograph) */
  --ar: 1.8884;
  --dl: 47.502%; --dt: 38.538%; --dw: 4.961%; --dh: 22.193%;
  --dox: 49.983%; --doy: 49.635%;
}
@media (max-aspect-ratio: 1/1) {
  :root { --ar: .6984; --dl: 42.045%; --dt: 31.746%; --dw: 16.023%; --dh: 26.508%; --dox: 50.057%; --doy: 45%; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 65px; scroll-padding-top: max(65px, calc(env(safe-area-inset-top) + 55px)); background: var(--stone); } /* exactly the bar: a jump lands flush under it */
html.motion { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--serif); font-size: 20px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .tagline, .dir-sub { text-wrap: balance; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color .25s, text-decoration-color .25s, text-underline-offset .35s var(--ease); }
a:hover { text-decoration-color: currentColor; text-underline-offset: .28em; }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--walnut); color: var(--white); }
cite { font-style: italic; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 15px 16px; font: 14px/1 var(--mono); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- labels: the architect's annotation ---------- */
.label { display: flex; align-items: center; gap: 14px; font: 12px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--walnut); margin-bottom: 28px; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.lede { font-size: clamp(22px, 2vw, 27px); line-height: 1.45; color: var(--ink); }
.sub { font: 12px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }

/* ---------- the bar ---------- */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 16px var(--gutter); padding-top: max(16px, env(safe-area-inset-top));
  color: var(--bone); font: 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: color .5s, background-color .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.js .bar { position: fixed; }
.bar a { text-decoration: none; }
.bar-mark { display: flex; align-items: center; gap: 10px; margin-right: auto; white-space: nowrap; }
.bar-k { width: 22px; height: 22px; flex: none; }
.bar-name span { opacity: .7; }
.bar-nav { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.bar-nav a, .bar-call { position: relative; padding: 8px 0; opacity: .82; transition: opacity .25s; }
.bar-nav a:hover, .bar-call:hover { opacity: 1; }
.bar-nav a::after, .bar-call::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.bar-nav a:hover::after, .bar-call:hover::after { transform: scaleX(1); transform-origin: left; }
.bar-call { white-space: nowrap; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); padding: 9px 14px; border-radius: 999px; opacity: 1; }
.bar-call::after { display: none; }
.bar-call:hover { border-color: currentColor; }
.bar.light { color: var(--ink); }
.bar.solid { background: var(--ivory); border-color: var(--rule); color: var(--ink); }
.bar.dusk { background: var(--stone); border-color: rgba(235, 227, 209, .12); }
.bar.dark :focus-visible, .bar:not(.light):not(.solid) :focus-visible { outline-color: var(--bone); }
@media (max-width: 760px) {
  .bar-nav { display: flex; order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .bar-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; }
  html { scroll-padding-top: calc(110px + env(safe-area-inset-top)); }
  .bar-call-l { display: none; }
  .bar { flex-wrap: wrap; row-gap: 0; font-size: 11px; letter-spacing: .12em; padding-block: 10px; padding-top: max(10px, env(safe-area-inset-top)); }
  .bar-mark { min-height: 44px; }
  .bar-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
}
@media (max-width: 380px) {
  .bar-name span { display: none; }
  .bar { column-gap: 8px; }
  .bar-mark { gap: 6px; }
  .bar-call { padding-inline: 8px; }
}

/* ---------- the threshold ---------- */
.threshold { position: relative; background: var(--stone); color: var(--bone); }
.stage { position: relative; overflow: hidden; background: var(--stone); }
.scene { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; container-type: size; }
.plate {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 100vh * var(--ar)); width: max(100cqw, 100cqh * var(--ar));
  aspect-ratio: var(--ar);
  transform: translate(-50%, -50%);
  transform-origin: var(--dox) var(--doy);
}
.plate picture, .plate img { display: block; width: 100%; height: 100%; }
.plate img { object-fit: cover; }
.code {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse calc(var(--dw) * 1.5) calc(var(--dh) * .75) at var(--dox) var(--doy), transparent 40%, #000 100%);
  mask-image: radial-gradient(ellipse calc(var(--dw) * 1.5) calc(var(--dh) * .75) at var(--dox) var(--doy), transparent 40%, #000 100%);
}
.door { position: absolute; left: var(--dl); top: var(--dt); width: var(--dw); height: var(--dh); perspective: 640px; }
.door > span { position: absolute; inset: 0; }
.door-glow {
  inset: -2px !important;
  box-shadow: 0 0 4px 1px rgba(110, 255, 160, .55), 0 0 22px 4px rgba(40, 255, 120, .2), 0 0 64px 14px rgba(30, 255, 110, .09);
}
.motion .door-glow { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.door-light { background: radial-gradient(ellipse 140% 80% at 30% 62%, #fffef9 0%, #f8f4ea 50%, #ebe4d5 100%); opacity: 0; }
/* the frame: the photograph's green line, overlaid in warm light once the door opens */
.door-frame { inset: -2.4% -4.4% -1.4% !important; background: #fbf6ea; opacity: 0; }
.door-warm { inset: -2.4% -4.4% -1.4% !important; opacity: 0; box-shadow: 0 0 10px 3px rgba(255, 250, 236, .8), 0 0 50px 18px rgba(255, 246, 226, .36), 0 0 160px 60px rgba(255, 243, 222, .14); }
.door-leaf { background: #0b0d0c url("assets/door-leaf.webp") center / 100% 100% no-repeat; transform-origin: 0 50%; backface-visibility: hidden; }
.door-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #050605, #000); opacity: 0; }
.spill {
  position: absolute; left: calc(var(--dl) - var(--dw) * 1.6); width: calc(var(--dw) * 4.2);
  top: calc(var(--dt) + var(--dh) - .2%); height: 36%;
  background: linear-gradient(to bottom, rgba(255, 251, 240, .5), rgba(255, 249, 236, .14) 45%, rgba(255, 249, 236, 0) 90%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
.bloom {
  position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; margin: -70vmax 0 0 -70vmax;
  background: radial-gradient(circle, rgba(255, 253, 246, .92) 0%, rgba(255, 251, 242, .5) 9%, rgba(255, 249, 238, .13) 22%, rgba(255, 249, 238, 0) 40%);
  opacity: 0; pointer-events: none;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 7, 6, .82) 0%, rgba(6, 7, 6, .35) 26%, rgba(6, 7, 6, 0) 42%),
    linear-gradient(to top, rgba(6, 7, 6, .78) 0%, rgba(6, 7, 6, 0) 30%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .5) 100%);
}
.curtain { display: none; }
.motion .curtain { display: block; position: absolute; inset: 0; background: #000; pointer-events: none; transition: opacity 2.4s ease; }
.motion .lit .curtain { opacity: 0; }

/* the name, carved */
.title {
  position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; min-height: 540px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: max(92px, 12.5svh) var(--gutter) max(124px, 16svh);
  text-align: center; pointer-events: none;
}
.name { font-family: var(--carve); font-weight: 600; line-height: 1; color: var(--bone); }
.carve { display: flex; flex-direction: column; align-items: center; gap: .5em; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .9)) drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.carve-1 { font-size: clamp(13px, min(1.45vw, 2.3vh), 20px); letter-spacing: .34em; padding-left: .34em; color: #d9d0bc; white-space: nowrap; }
.carve-2 { font-size: clamp(26px, min(7.4vw, 10.5vh), 74px); letter-spacing: .07em; padding-left: .07em; white-space: nowrap; }
.carve .s { position: relative; display: inline-block; }
/* until the script splits the name into letters, hold it back briefly; if the script never runs, it simply appears */
.motion .carve:not(.split) { opacity: 0; animation: carve-late .8s ease 2.5s forwards; }
@keyframes carve-late { to { opacity: 1; } }
.carve .sp { display: inline-block; width: .3em; }
.carve .c { display: inline-block; font-style: normal; background: linear-gradient(180deg, #faf4e6 0%, #e9e0cc 48%, #c8bb9f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.carve .h { position: absolute; left: 0; top: 0; font-style: normal; color: #d8ffe6; text-shadow: 0 0 10px rgba(70, 255, 140, .9), 0 0 28px rgba(40, 255, 120, .45); opacity: 0; pointer-events: none; }
.carve .g { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font: 400 .62em/1 var(--mono); color: var(--code); text-shadow: 0 0 8px rgba(60, 255, 130, .7); opacity: 0; transition: opacity .35s; }
.carve.decoding .c { opacity: 0; transform: translateY(.05em); transition: opacity 1s cubic-bezier(.3, .6, .2, 1), transform 1.2s var(--ease); }
.carve.decoding .s.on .g { opacity: .9; }
.carve.decoding .s.lk .g { opacity: 0; transition-duration: .25s; }
.carve.decoding .s.lk .c { opacity: 1; transform: none; }
.carve.decoding .s.lk .h { animation: flash 1.1s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.firm { margin-top: 26px; font: 11.5px/1.3 var(--mono); letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: rgba(235, 227, 209, .78); }
.tagline { font-style: italic; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.35; color: rgba(235, 227, 209, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.tagline span { display: block; color: var(--bone); }
.motion .firm, .motion .tagline { opacity: 0; transform: translateY(8px); transition: opacity 1.4s ease, transform 1.6s var(--ease); }
.motion .title.done .firm, .motion .title.done .tagline { opacity: 1; transform: none; }
.motion .title.done .tagline { transition-delay: .35s; }
.title-top { display: flex; flex-direction: column; align-items: center; }
@media (max-height: 700px) and (min-aspect-ratio: 1/1) {
  .title { padding-top: max(76px, 11svh); }
  .firm { margin-top: 18px; }
}
/* landscape phones: the name steps to the left of the door */
@media (max-height: 520px) and (min-aspect-ratio: 3/2) {
  .title, .motion .title { align-items: flex-start; text-align: left; padding: 72px var(--gutter) 28px; min-height: 0; }
  .carve, .title-top { align-items: flex-start; }
  .scene { min-height: 0; }
  .carve-1, .firm { padding-left: 0; }
  .carve-2 { font-size: min(30px, 7.6vh); }
  .tagline { font-size: 18px; }
}

.enter {
  position: absolute; left: 50%; bottom: max(26px, 3.6svh); z-index: 5; transform: translateX(-50%); pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 14px;
  font: 11px/1 var(--mono); letter-spacing: .32em; padding-left: calc(14px + .32em); text-transform: uppercase;
  color: var(--bone); text-decoration: none;
}
.enter i { position: relative; display: block; width: 1px; height: 46px; background: rgba(235, 227, 209, .22); overflow: hidden; }
.enter i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: linear-gradient(transparent, var(--bone)); }
.motion .enter i::after { animation: drop 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes drop { 0% { transform: translateY(-18px); } 70%, 100% { transform: translateY(46px); } }
.enter:focus-visible { outline-color: var(--bone); }
.motion .enter { opacity: 0; transition: opacity 1.2s ease .2s; }
.motion .title.done .enter { opacity: 1; }
@media (max-height: 520px) and (min-aspect-ratio: 3/2) {
  .enter { left: auto; right: var(--gutter); transform: none; bottom: 18px; }
  .enter i { height: 30px; }
}

/* the white room */
.whiteroom { position: relative; margin: 0; background: #e3e0db; }
.whiteroom picture, .whiteroom img { display: block; width: 100%; }
.whiteroom img { height: auto; }
.whiteroom figcaption {
  position: absolute; left: var(--gutter); bottom: max(20px, 3svh); z-index: 2;
  display: flex; gap: 14px; flex-wrap: wrap;
  font: 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #2f2b25;
}
.whiteroom figcaption span + span::before { content: "·"; margin-right: 14px; }
.flood { display: none; }

/* motion: the threshold becomes a sticky stage that the scroll plays through */
.motion .threshold { height: 360vh; height: 360svh; }
.motion .stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.motion .scene { position: absolute; inset: 0; height: auto; min-height: 0; }
.motion .plate, .motion .door-leaf { will-change: transform; }
.motion .title { will-change: opacity, transform; min-height: 0; }
.motion .whiteroom { position: absolute; inset: 0; z-index: 6; opacity: 0; overflow: hidden; pointer-events: none; } /* never block Enter, even while transparent */
.motion .whiteroom picture { height: 100%; }
.motion .whiteroom img { height: 100%; object-fit: cover; object-position: 64% 50%; transform: scale(1.14); transform-origin: 64% 58%; will-change: transform; }
.motion .whiteroom figcaption { opacity: 0; }
.motion .flood { display: block; position: absolute; inset: 0; z-index: 7; background: #fdfbf6; opacity: 0; pointer-events: none; }
@media (max-aspect-ratio: 4/5) {
  .motion .whiteroom img { object-position: 50% 50%; transform-origin: 50% 55%; }
  .motion .threshold { height: 320vh; height: 320svh; }
}
/* without motion: the door already stands open, and the room follows below it */
html:not(.motion) .door-leaf { transform: rotateY(76deg); }
html:not(.motion) .door-shade { opacity: .8; }
html:not(.motion) .door-light, html:not(.motion) .door-warm, html:not(.motion) .door-frame { opacity: 1; }
html:not(.motion) .door-glow { opacity: 0; }
html:not(.motion) .spill { opacity: .8; }
html:not(.motion) .bloom { opacity: .35; transform: scale(.7); }
html:not(.motion) .code { display: none; }

/* ---------- sections ---------- */
section:not(.threshold) { position: relative; }
.edge { padding: clamp(96px, 13vw, 190px) 0 clamp(80px, 10vw, 150px); background: var(--ivory); outline: none; overflow: hidden; }
.edge > .wrap { position: relative; }
/* the same window light as in the photograph, falling across the wall */
.shaft {
  position: absolute; left: -12%; top: -30%; width: 58%; height: 150%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 254, 250, 0) 0%, rgba(255, 254, 250, .9) 30%, rgba(255, 254, 250, .9) 62%, rgba(255, 254, 250, 0) 100%);
  transform: rotate(-38deg); transform-origin: 50% 0; filter: blur(18px); opacity: .85;
}
.motion .shaft { will-change: transform; }
.edge-h { font-size: clamp(44px, 6.6vw, 100px); line-height: 1.02; letter-spacing: -.018em; max-width: 14em; }
.edge-h .ln { display: block; }
.edge-h .ln:last-child { font-style: italic; color: var(--walnut); }
.edge-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.edge-more { display: grid; gap: 18px; color: var(--ink-2); max-width: 34em; }
.sig { margin-top: 10px; font-style: italic; font-size: 22px; color: var(--ink); }
.sig span { display: block; font: normal 11.5px/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.practice { padding: clamp(88px, 11vw, 170px) 0; background: var(--white); border-top: 1px solid var(--rule); }
.practice h2, .engage h2, .also h2, .office h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -.015em; }
.practice-lede { margin-top: 28px; max-width: 36em; color: var(--ink-2); }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ink); }
.fit-col { padding: 30px clamp(0px, 3vw, 44px) 10px 0; }
.fit-col + .fit-col { padding-left: clamp(24px, 3vw, 44px); border-left: 1px solid var(--rule); }
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 21px; line-height: 1.4; }
.ruled li:first-child { border-top: 0; padding-top: 0; }
.fit-not p { font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.scope { margin-top: clamp(64px, 8vw, 120px); }
.scope-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.scope-list li { display: grid; grid-template-columns: clamp(48px, 7vw, 96px) 1fr; align-items: baseline; padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--rule); }
.scope-list .num { font-style: italic; font-size: 24px; color: var(--walnut); }
.scope-list p { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.22; letter-spacing: -.008em; max-width: 26em; }
.out { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; color: var(--ink-2); font-size: 19px; }
.out-k { font: 12px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.years { margin-top: clamp(80px, 10vw, 150px); }
.years-p { font-size: 21px; color: var(--ink-2); max-width: 30em; }
.stages { list-style: none; margin: 44px 0 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stages::before, .stages::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule-2); }
.stages::after { height: 2px; top: -.5px; background: var(--walnut); transform-origin: left; }
.stages li { position: relative; font-style: italic; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.15; padding-right: 12px; }
.stages li::before { content: ""; position: absolute; left: 0; top: -36px; width: 1px; height: 13px; background: var(--ink); }
.stages li span { display: block; padding-top: 2px; }
/* the line is drawn by the scroll where the browser can, otherwise once, on arrival */
.motion .stages::after { transform: scaleX(0); }
.motion .stages li { color: var(--ink-3); transform: translateY(.3em); }
.motion .stages.in::after { transform: scaleX(1); transition: transform 2.4s var(--ease-io); }
.motion .stages.in li { color: var(--ink); transform: none; transition: color .8s ease, transform 1s var(--ease); }
.motion .stages.in li:nth-child(2) { transition-delay: .45s; }
.motion .stages.in li:nth-child(3) { transition-delay: .9s; }
.motion .stages.in li:nth-child(4) { transition-delay: 1.35s; }
.motion .stages.in li:nth-child(5) { transition-delay: 1.8s; }
@supports (animation-timeline: view()) {
  .motion .years { view-timeline-name: --years; }
  .motion .stages::after { transform: scaleX(0); animation: draw linear both; animation-timeline: --years; animation-range: cover 18% cover 58%; }
  .motion .stages li { color: var(--ink-3); transform: translateY(.3em); animation: lightup linear both; animation-timeline: --years; }
  .motion .stages li:nth-child(1) { animation-range: cover 17% cover 21%; }
  .motion .stages li:nth-child(2) { animation-range: cover 27% cover 31%; }
  .motion .stages li:nth-child(3) { animation-range: cover 37% cover 41%; }
  .motion .stages li:nth-child(4) { animation-range: cover 47% cover 51%; }
  .motion .stages li:nth-child(5) { animation-range: cover 56% cover 60%; }
}
@keyframes draw { to { transform: scaleX(1); } }
@keyframes lightup { to { color: var(--ink); transform: none; } }

/* ---------- engage: a plan of three rooms ---------- */
.engage { padding: clamp(88px, 11vw, 170px) 0; background: var(--ivory-2); }
.engage-lede { margin-top: 28px; max-width: 34em; color: var(--ink-2); }
.engage-lede a { color: var(--ink); }
.plan { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--ivory); }
.rm { position: relative; padding: 34px clamp(22px, 2.4vw, 36px) 132px; }
.rm + .rm { border-left: 2px solid var(--ink); }
/* the gap in the wall, and the door in it */
.rm::before { content: ""; position: absolute; left: -2px; bottom: 42px; width: 2px; height: 64px; background: var(--ivory); }
.swing { position: absolute; left: -2px; bottom: 40px; width: 68px; height: 68px; overflow: visible; }
.swing .mb { display: none; }
.swing .arc { fill: none; stroke: var(--walnut-2); stroke-width: 1.2; stroke-dasharray: 1 1; }
.swing .leaf { stroke: var(--ink); stroke-width: 3; stroke-linecap: square; transform-box: view-box; }
.swing .dk .leaf { transform-origin: 0 64px; }
.swing .mb .leaf { transform-origin: 0 0; }
.swing .hinge { fill: var(--ink); }
.motion .rm .swing .arc { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-io); }
.motion .rm .swing .leaf { transform: rotate(-90deg); transition: transform 1.3s var(--ease-io); }
.motion .rm.open .swing .arc { stroke-dashoffset: 0; }
.motion .rm.open .swing .leaf { transform: rotate(0deg); }
.rm-n { font: 11.5px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--walnut); margin-bottom: 18px; }
.rm h3 { font-size: clamp(26px, 2.4vw, 33px); line-height: 1.12; margin-bottom: 14px; letter-spacing: -.008em; }
.rm p:not(.rm-n) { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.rm-a { margin-top: 18px; }
.rm-a a { color: var(--ink); font-size: 19px; }
.rm-a a, .agent-a > a, .also-a a, .oc-list dd a { display: inline-block; padding-block: 8px; margin-block: -8px; }
a.dir-addr { padding-block: 12px; margin-block: -12px; }
.terms { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(64px, 8vw, 110px); align-items: start; }
.fee { border-top: 1px solid var(--ink); padding-top: 30px; }
.fee .label { margin-bottom: 18px; }
.fee-fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 18px; }
.fee-amt { font-size: clamp(64px, 8.4vw, 124px); line-height: .95; letter-spacing: -.02em; }
.fee-per { font-style: italic; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink-2); }
.fee p:not(.label):not(.fee-fig) { color: var(--ink-2); max-width: 32em; }
.fee .fee-terms { margin-top: 14px; font-size: 17px; font-style: italic; max-width: 40em; }
.agent { border-top: 1px solid var(--ink); padding-top: 30px; }
.agent .label { margin-bottom: 18px; }
.agent .label::before { width: 7px; height: 7px; background: #1f9a4f; box-shadow: 0 0 0 3px rgba(31, 154, 79, .16); }
.agent p:not(.label) { color: var(--ink-2); font-size: 19px; }
.agent-a { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.agent-a > a { color: var(--ink); }
.agent-file { font: 12.5px/1.5 var(--mono); color: var(--ink-3); }

/* ---------- also ---------- */
.also { padding: clamp(88px, 11vw, 170px) 0; background: var(--ivory); }
.also-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 80px); }
.also-item { border-top: 1px solid var(--ink); padding-top: 26px; }
.also-item h3 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 14px; }
.also-item p { color: var(--ink-2); }
.also-item h3 cite { color: var(--ink); }
.also-a { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.also-a a { color: var(--ink); }

/* the lobby directory: walnut, brass, bone */
.directory {
  margin-top: clamp(72px, 9vw, 130px); padding: clamp(30px, 4vw, 56px) clamp(22px, 4vw, 60px);
  background: var(--walnut-deep); color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(201, 171, 122, .35), inset 0 0 0 7px var(--walnut-deep), inset 0 0 0 8px rgba(201, 171, 122, .18);
}
.dir-h { font: 12px/1.3 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.dir-sub { margin-top: 10px; font-style: italic; font-size: 21px; color: rgba(235, 227, 209, .82); }
.dir-list { margin: 30px 0 0; }
.dir-row { display: grid; grid-template-columns: minmax(200px, .8fr) 2fr; gap: 10px 40px; padding: 22px 0; border-top: 1px solid rgba(235, 227, 209, .16); }
.dir-row dt { font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone); padding-top: 3px; }
.dir-row dd { margin: 0; display: grid; gap: 6px; font-size: 18px; line-height: 1.5; color: rgba(235, 227, 209, .84); }
.dir-role { font: 11.5px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.dir-addr { font: 13px/1.5 var(--mono); color: var(--bone); }
a.dir-addr { justify-self: start; }
.directory :focus-visible { outline-color: var(--brass); }
.dir-row.here dt::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 12px; vertical-align: .18em; border-radius: 50%; background: var(--brass); }

/* ---------- office ---------- */
.office { padding: clamp(88px, 11vw, 170px) 0 clamp(96px, 12vw, 180px); background: var(--white); border-top: 1px solid var(--rule); }
.office-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.office-card address { font-style: normal; display: grid; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.oc-firm { font-weight: 500; }
.oc-list { margin: 0; }
.oc-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.oc-list dt { font: 11.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.oc-list dd { overflow-wrap: anywhere; margin: 0; font-size: 20px; }
.oc-list a { color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.oc-note { margin-top: 18px; font-size: 17px; font-style: italic; color: var(--ink-2); }
.clock { border-top: 1px solid var(--ink); padding-top: 26px; }
.clock-k { font: 12px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--walnut); }
.clock-t { margin: 14px 0 30px; font-size: clamp(64px, 8vw, 116px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.clock-t small { font-size: .3em; font-style: italic; letter-spacing: 0; margin-left: .25em; color: var(--ink-2); }
.day-bar { position: relative; height: 12px; border: 1px solid var(--ink); background: var(--white); }
.day-night { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--ink-3) 0 1px, transparent 1px 5px); opacity: .55; }
.day-n1 { left: 0; width: 25%; }
.day-n2 { left: 83.333%; right: 0; }
.day-now { position: absolute; top: -9px; bottom: -9px; left: 0; width: 2px; margin-left: -1px; background: var(--walnut); }
.day-now::before { content: ""; position: absolute; left: 50%; top: -7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--walnut); }
.motion .day-now { transition: left 1.6s var(--ease); }
.day-ticks { display: flex; justify-content: space-between; margin-top: 12px; font: 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--ink-3); }
.clock-line { margin-top: 24px; font-size: 21px; font-style: italic; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--stone); color: rgba(235, 227, 209, .86); padding: clamp(56px, 7vw, 96px) 0 calc(36px + env(safe-area-inset-bottom)); font-size: 16.5px; line-height: 1.6; }
.foot a { color: var(--bone); }
.foot :focus-visible { outline-color: var(--bone); }
.foot-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 80px); }
.foot-grid > div { display: grid; gap: 14px; align-content: start; }
.foot-name { font-size: 19px; color: var(--bone); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 32px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(235, 227, 209, .16); font: 12px/1.6 var(--mono); letter-spacing: .06em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-block: -10px; }
.foot-nav a { padding-block: 10px; }
.foot-small { display: flex; flex-wrap: wrap; gap: 4px 20px; color: rgba(235, 227, 209, .74); }

/* ---------- reveals ---------- */
.motion [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-rv].in { opacity: 1; transform: none; }

/* ---------- the dog (threshold, once) ---------- */
.dog { position: absolute; z-index: 1; left: 0; bottom: 0; width: 1px; height: 1px; pointer-events: none; }
.dog i { position: absolute; left: 0; bottom: 0; display: block; background-repeat: no-repeat; }
.dog i.refl { top: 0; bottom: auto; transform-origin: 50% 0; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .edge-cols, .terms, .office-grid, .also-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .fit { grid-template-columns: 1fr; }
  .fit-col { padding-right: 0; }
  .fit-col + .fit-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 20px; }
  .dir-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  .title, .motion .title { padding-top: max(132px, 16svh); }
  body { font-size: 19px; }
  .plan { grid-template-columns: 1fr; }
  .rm { padding: 100px 22px 30px; }
  .rm + .rm { border-left: 0; border-top: 2px solid var(--ink); }
  .rm::before { left: 40px; top: -2px; bottom: auto; width: 64px; height: 2px; }
  .swing { left: 38px; top: -2px; bottom: auto; }
  .swing .dk { display: none; }
  .swing .mb { display: inline; }
  .stages { grid-template-columns: 1fr; padding: 0 0 0 30px; margin-top: 34px; }
  .stages::before, .stages::after { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stages::after { width: 2px; left: -.5px; transform-origin: top; }
  .motion .stages::after { transform: scaleY(0); }
  .motion .stages.in::after { transform: scaleY(1); }
  .stages li { padding: 12px 0; }
  .stages li::before { left: -30px; top: 27px; width: 13px; height: 1px; }
  .oc-list div { grid-template-columns: 92px minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .oc-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .motion .stages::after { animation-name: drawy; }
  }
}
@keyframes drawy { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .bar, .enter, .scene, .flood { display: none !important; }
  .threshold, .stage { height: auto !important; background: none; color: var(--ink); }
  .title { position: static; height: auto; min-height: 0; color: var(--ink); padding: 0 0 24px; }
  .name, .firm, .tagline { color: var(--ink) !important; opacity: 1 !important; }
  .carve .c { color: var(--ink); background: none; }
  .whiteroom { position: static !important; opacity: 1 !important; }
  .directory, .foot { background: none; color: var(--ink); box-shadow: none; }
  .foot a, .directory * { color: var(--ink) !important; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}
