/* Kristin Granger Design & Build: site styles.
   The look comes from her business card and film kit: cream paper, pencil sketches of her own rooms,
   the indigo dip-dye from her drapery, an emerald watercolor wash, Cormorant Garamond + Jost, a brass hairline. */
@import url('fonts.css');

:root {
  --bone: #F3EEE4; --bone-2: #ECE5D8; --bone-3: #E2D9C8;
  --ink: #1E1D19; --graphite: #3B3A36; --muted: #5C584F;
  --forest: #22453A; --emerald: #224E3C; --emerald-band: #193A2E;   /* = makeWashBand band [25,58,46] */ --indigo: #33415B; --indigo-deep: #1F2940; --indigo-mid: #566482;
  --brass: #A98545; --brass-light: #CDAE72;
  --on-dark: #EFEAE0; --on-dark-muted: rgba(239, 234, 224, .78);
  --line: rgba(30, 29, 25, .14); --line-2: rgba(30, 29, 25, .26);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Mrs Saint Delafield', cursive;
  --wrap: 76.25rem; --gut: clamp(1.5rem, 6.5vw, 7.5rem); --sec: clamp(6.5rem, 13vw, 13.125rem);
  --header: 6.25rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .29  0 0 0 0 .22  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
/* Oct 13 (Kodi liked the laptop composition best): above 1440px the whole site scales up in proportion, so a 1920 or 2560
   wide screen sees the laptop layout, just larger, instead of a narrow column in a wide field. Sizes are in rem for that
   reason (only hairlines and breakpoints stay in px); at 1440 and below 1rem is the visitor's own text size, so nothing
   changes there. It follows width or height, whichever is tighter (1440 x 900 is the reference), so a wide, short window
   keeps the whole first screen in view the way the laptop does. The scale stops at 1.6x. */
html { font-size: clamp(100%, min(100vw / 90, 100vh / 56.25), 160%); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + .75rem); }
body {
  margin: 0; color: var(--graphite); background: var(--grain), var(--bone);
  font-family: var(--sans); font-size: 1.1rem; line-height: 1.8; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: .125rem solid var(--brass); outline-offset: .1875rem; }
.skip { position: absolute; left: .75rem; top: -3.75rem; z-index: 200; background: var(--ink); color: var(--bone); padding: .625rem 1rem; text-decoration: none; }
.skip:focus { top: .75rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; position: relative; }
.paper-2 { background: var(--grain), var(--bone-2); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -.005em; }
h1, h2, h3, h4, .quote { text-wrap: balance; }
p { text-wrap: pretty; }
/* Oct 16 (Kodi: "in" sat alone on its own line): the film blurb balances its lines, which Safari supports and pretty doesn't there */
.film .lead { text-wrap: balance; }
h1 em, h2 em, h3 em, .quote em { font-style: italic; color: var(--indigo); }
.display { font-size: clamp(3.1rem, min(6.4vw, 11.5vh), 6.7rem); line-height: .97; }
.h2 { font-size: clamp(2.35rem, 4.5vw, 4.5rem); line-height: 1.03; }
.h3 { font-size: clamp(1.65rem, 2.3vw, 2.2rem); line-height: 1.12; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .875rem; margin: 0 0 2.125rem;
  font: 500 .76rem/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--forest);
}
/* Oct 12 (Kodi): no brass dashes beside eyebrow labels */
.lead { font-size: clamp(1.16rem, 1.5vw, 1.34rem); line-height: 1.7; color: var(--graphite); max-width: 33em; }
.small-caps { font: 500 .74rem/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.rule { width: 3.5rem; height: 1.5px; background: var(--brass); border: 0; margin: 2.25rem 0; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }
/* her real signature (vector): writes on left to right when it scrolls into view, like the film's end card */
/* (the wrapper is what scrolls into view: a fully clipped element never counts as visible to the observer) */
.sig-wrap { display: block; width: clamp(11.875rem, 17vw, 15.625rem); margin: .25rem 0 1.875rem -.5rem; }
.sig-img { display: block; width: 100%; height: auto; }
.js .sig-wrap.rv { opacity: 1; transform: none; }
.js .sig-wrap.rv .sig-img { clip-path: inset(0 100% 0 0); transition: clip-path 2s cubic-bezier(.55, .1, .3, 1) .35s; }
.js .sig-wrap.rv.in .sig-img { clip-path: inset(0 0 0 0); }
.sig { font-family: var(--script); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; color: var(--graphite); }

/* ---------- buttons and links ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1.3125rem 2.125rem; border: 1px solid var(--ink); background: var(--ink); color: var(--bone); text-decoration: none; cursor: pointer;
  font: 500 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; transition: color .45s var(--ease), border-color .45s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--indigo); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { border-color: var(--indigo); }
.btn > * , .btn > span { position: relative; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--bone); border-color: var(--ink); }
.btn-bone { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-bone::before { background: var(--brass-light); }
.btn-bone:hover { border-color: var(--brass-light); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.375rem 2.375rem; }
.link {
  display: inline-flex; align-items: center; gap: .625rem; padding-bottom: .375rem; text-decoration: none; color: var(--ink);
  font: 500 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--ease);
}
.link:hover { background-size: 30% 1.5px; }
.link svg { width: 1.125rem; height: .625rem; transition: transform .4s var(--ease); }
.link:hover svg { transform: translateX(.25rem); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; transition: background .4s, box-shadow .4s; }
.site-header.scrolled { background: rgba(243, 238, 228, .94); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(.625rem); backdrop-filter: blur(.625rem); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header); }
.brand { display: block; flex: none; }
.brand img { height: 3.75rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1.625rem, 3vw, 3.125rem); }
.nav a:not(.btn) {
  position: relative; padding: .5rem 0; text-decoration: none; color: var(--ink);
  font: 500 .76rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: none; }
.nav .phone { color: var(--muted) !important; letter-spacing: .14em !important; }
.nav .btn { padding: .9375rem 1.375rem; font-size: .72rem; }
.menu-btn { display: none; width: 3rem; height: 3rem; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: .6875rem; right: .6875rem; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 1.1875rem; } .menu-btn span:nth-child(2) { top: 1.75rem; }
.menu-open .menu-btn span:nth-child(1) { top: 1.5rem; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 1.5rem; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--grain), var(--bone); padding: calc(var(--header) + 1.5rem) var(--gut) 2.5rem;
  display: flex; flex-direction: column; gap: .375rem; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu > a:not(.btn) { font: 500 clamp(2.2rem, 9vw, 3.2rem)/1.25 var(--serif); color: var(--ink); text-decoration: none; }
.mobile-menu .btn { margin-top: 1.75rem; align-self: flex-start; }
.mobile-menu .small-caps { margin-top: auto; }
.mobile-menu .small-caps a { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(1.625rem); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; } .js .rv.d2 { transition-delay: .2s; } .js .rv.d3 { transition-delay: .3s; } .js .rv.d4 { transition-delay: .4s; }
/* a reveal cut short (tab hidden, slow image) jumps straight to its end state */
.snap, .snap * { transition: none !important; animation: none !important; }

/* ---------- hero (home) ---------- */
.hero { position: relative; }
/* Oct 13 (Kodi). First pass: the hero sat off center on wide screens (the photo bled off the right edge while the copy held
   the grid). Second pass, "we need a beautiful hero placement": a split screen. The great room fills the right half of the
   first screen edge to edge, top to bottom; the copy is centered in the left half on the nav's left line. The split sits
   on the center of the screen, so it reads balanced at every width. site.js crops the drawing and the photo like
   object-fit: cover, so the frame can take the half-screen shape. The headline sizes to its column (container units) so
   "One vision," / "start to finish." hold two lines even when a visitor's browser text is set larger. */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr); grid-template-areas: ". art" "head art" "copy art" ". art";
  min-height: min(calc(100vh - var(--header)), 70rem); min-height: min(calc(100svh - var(--header)), 70rem);
}
.hero-head, .hero-copy { padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); padding-right: clamp(2.5rem, 5.5vw, 6.875rem); }
.hero-head { grid-area: head; padding-top: clamp(2.5rem, 5vw, 5rem); container-type: inline-size; }
.hero .display { font-size: clamp(3.1rem, min(6.4vw, 11.5vh), 6.7rem); font-size: min(clamp(3.1rem, min(6.4vw, 11.5vh), 6.7rem), 19.5cqi); margin: 0; }
.hero-head .display em { display: block; }   /* "One vision," / "start to finish." */
.hero-copy { grid-area: copy; padding-top: 2.125rem; padding-bottom: clamp(2.75rem, 5vw, 5.25rem); }
.hero-copy .lead { margin-bottom: 2.625rem; }
.hero-creds { margin-top: 2.875rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 34em; }
.hero-art { grid-area: art; position: relative; min-height: 32.5rem; }
.hero-art .art-frame { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none; }
.art-frame { position: relative; aspect-ratio: 1201 / 806; background: var(--bone-2); box-shadow: 0 2.5rem 4.375rem -2.5rem rgba(40, 34, 24, .45); }
.art-frame canvas, .art-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* running text keeps a comfortable line length */
.svc-copy p, .chapter .body p, .tl-step p, .project-head p, .about-grid p { max-width: 38em; }

/* ---------- statement + pillars ---------- */
.statement { max-width: 17em; font-size: clamp(2.3rem, 4.1vw, 4.1rem); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 8vw, 9.375rem); align-items: end; }
.quote { font-family: var(--serif); font-size: clamp(1.55rem, 2.2vw, 2.05rem); line-height: 1.32; color: var(--ink); margin: 0; }
.quote::before { content: "\201C"; display: block; font-size: 4.2rem; line-height: .7; color: var(--brass); margin-bottom: .625rem; }
.cite { display: block; margin-top: 1.125rem; font: 500 .74rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6.25rem); margin-top: clamp(5.25rem, 11vw, 10rem); }
.pillar { border-top: 1px solid var(--line-2); padding-top: 2.25rem; }
.pillar .num { font: italic 500 2.4rem/1 var(--serif); color: var(--brass); margin-bottom: 1.625rem; }
.pillar h3 { font-size: clamp(1.5rem, 1.9vw, 1.9rem); margin-bottom: 1.125rem; line-height: 1.15; }

/* ---------- dip-dye transitions into indigo sections ---------- */
.dyed { position: relative; background: var(--indigo-deep); color: var(--on-dark-muted); }
.dyed h1, .dyed h2, .dyed h3 { color: var(--on-dark); }
.dyed h1 em, .dyed h2 em, .dyed h3 em { color: var(--brass-light); }
.dyed .eyebrow { color: var(--brass-light); }
.dyed .lead { color: var(--on-dark-muted); }
.dyed .small-caps { color: var(--on-dark-muted); }
.dyed .link { color: var(--on-dark); }
.pre-dye { padding-bottom: calc(var(--sec) + clamp(6.875rem, 14vw, 12.5rem)); }
.dye-edge { position: absolute; left: 0; right: 0; bottom: calc(100% - .125rem); height: clamp(7.5rem, 15vw, 13.125rem); pointer-events: none; }
.dye-edge canvas { width: 100%; height: 100%; }

/* ---------- emerald band: watercolor edges top and bottom, solid emerald between ---------- */
.washed { position: relative; background: var(--emerald-band); color: var(--on-dark-muted); padding: clamp(4.375rem, 8.5vw, 8.5rem) 0; }
.washed h2, .washed h3 { color: var(--on-dark); }
.washed h2 em, .washed h3 em { color: var(--brass-light); }
.washed .eyebrow { color: var(--brass-light); }
.washed .link { color: var(--on-dark); }
.washed .step { border-top-color: rgba(239, 234, 224, .24); }
.washed .step .n { color: var(--brass-light); }
.washed .step h3 { color: var(--on-dark); }
.wash-edge { position: absolute; left: 0; right: 0; height: clamp(5.625rem, 11vw, 10.625rem); pointer-events: none; }
.wash-edge.top { bottom: calc(100% - .125rem); }
.wash-edge.bottom { top: calc(100% - .125rem); transform: scaleY(-1); }
.wash-edge canvas { width: 100%; height: 100%; }

/* ---------- film ---------- */
.film-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 8.125rem); align-items: center; }
.film-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #141a29; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1.2s var(--ease), opacity .6s; }
.film-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 41, 64, 0) 40%, rgba(31, 41, 64, .55)); }
.film-poster:hover img { transform: scale(1.035); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 6rem; height: 6rem; margin: -3rem 0 0 -3rem; border-radius: 50%; border: 1.5px solid var(--on-dark); display: grid; place-items: center; background: rgba(31, 41, 64, .35); transition: transform .5s var(--ease), background .4s; }
.play svg { width: 1.625rem; height: 1.625rem; margin-left: .3125rem; fill: var(--on-dark); }
.film-poster:hover .play { transform: scale(1.08); background: rgba(31, 41, 64, .6); }
.film-meta { position: absolute; left: 1.375rem; bottom: 1.125rem; z-index: 2; color: var(--on-dark); }
.film-dialog { width: min(75rem, 94vw); max-width: none; padding: 0; border: 0; background: #0f1320; }
.film-dialog::backdrop { background: rgba(14, 16, 24, .9); }
.film-dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-dialog .film-msg { display: none; padding: 3.75rem 1.875rem; text-align: center; color: var(--on-dark); font: 500 1.6rem/1.3 var(--serif); }
.film-dialog.missing video { display: none; }
.film-dialog.missing .film-msg { display: block; }
.dlg-close { position: absolute; right: .75rem; top: .75rem; z-index: 3; width: 2.875rem; height: 2.875rem; border: 1px solid rgba(239, 234, 224, .35); border-radius: 50%; background: rgba(15, 19, 32, .55); cursor: pointer; color: var(--on-dark); display: grid; place-items: center; }
.dlg-close:hover { border-color: var(--brass-light); }
.dlg-close svg { width: 1.125rem; height: 1.125rem; stroke: currentColor; fill: none; }

/* ---------- work cards ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 1.875rem; margin-bottom: clamp(4rem, 8vw, 7.75rem); }
.sec-head .h2 { max-width: 12em; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5.25rem); }
.work-card { text-decoration: none; color: inherit; display: block; }
.work-card .ph { overflow: hidden; background: var(--bone-3); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work-card:hover img { transform: scale(1.04); }
.work-card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-top: 1.875rem; }
.work-card h3 { font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.1; }
.wc-a { grid-column: 1 / 7; } .wc-a .ph { aspect-ratio: 4 / 5; }
.wc-b { grid-column: 7 / 13; margin-top: clamp(5rem, 12vw, 11.875rem); } .wc-b .ph { aspect-ratio: 5 / 4; }

/* ---------- services teaser ---------- */
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.25rem, 5vw, 5.25rem); }
.track { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
/* full photos with a ragged, uneven edge that fades to nothing: each card brings its own mask (--mask, from
   make_edge_masks.py) and crop (--op). The mask sits on the frame, so the hover zoom moves the photo inside the torn edge */
.track .ph { aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 1.25rem; -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; }
.track .ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); transition: transform 1.4s var(--ease); }
.track:hover .ph img { transform: scale(1.04); }
.track h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); margin-bottom: 1rem; }
.track p { margin-bottom: 2rem; }
.track .link { margin-top: auto; align-self: flex-start; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.625rem, 3.6vw, 3.75rem); counter-reset: s; }
.step { border-top: 1px solid var(--line-2); padding-top: 2rem; }
.step .n { font: italic 500 clamp(2.4rem, 3.2vw, 3.2rem)/1 var(--serif); color: var(--brass); }
.step h3 { font: 500 .8rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); margin: 1.5rem 0 .875rem; }
.step p { font-size: 1rem; line-height: 1.6; }

/* ---------- about teaser ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3.25rem, 9vw, 10.625rem); align-items: center; }
.portrait { position: relative; }
.portrait .wash { position: absolute; left: -14%; bottom: -13%; width: 92%; height: 78%; z-index: 0; opacity: .9; }
.portrait .wash canvas { width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 72%, transparent 100%); }
.portrait .ph { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-3); box-shadow: 0 2.125rem 3.75rem -2.25rem rgba(40, 34, 24, .5); }
.portrait .ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- big quote ---------- */
.bigquote { max-width: 65rem; margin: 0 auto; text-align: center; }
.bigquote .quote { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.2; }
.bigquote .quote::before { margin: 0 auto 1.125rem; font-size: 6rem; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(5.625rem, 11vw, 10.625rem) 0 2.625rem; }
.footer-cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.75rem; align-items: end; padding-bottom: clamp(4.5rem, 9vw, 8.5rem); border-bottom: 1px solid rgba(239, 234, 224, .18); }
.footer-cta .display { font-size: clamp(2.8rem, 5.4vw, 5.6rem); }
.footer-cta .contact-lines { display: grid; gap: .625rem; justify-items: start; }
.footer-cta .contact-lines a:not(.btn) { color: var(--on-dark); text-decoration: none; font: 500 1.55rem/1.2 var(--serif); }
.footer-cta .contact-lines a:not(.btn):hover { color: var(--brass-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 4rem; padding: 4.75rem 0 4.25rem; }
.footer-grid img { height: 4rem; width: auto; margin-bottom: 1.125rem; }
.footer-grid h4 { font: 500 .72rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 1.375rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.footer-grid a { color: var(--on-dark); text-decoration: none; }
.footer-grid a:hover { color: var(--brass-light); }
.socials { display: flex; gap: .75rem; margin-top: .375rem; }
.socials a { width: 2.625rem; height: 2.625rem; border: 1px solid rgba(239, 234, 224, .3); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s, background .3s; }
.socials a:hover { border-color: var(--brass-light); background: rgba(205, 174, 114, .12); }
.socials a { color: var(--on-dark); }
.socials svg { width: 1.0625rem; height: 1.0625rem; fill: currentColor; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.6; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 2.125rem; border-top: 1px solid rgba(239, 234, 224, .18); font-size: .86rem; color: var(--on-dark-muted); }
.legal a { color: var(--on-dark-muted); }

/* ---------- interior page hero ---------- */
.page-hero { position: relative; padding: clamp(2rem, 4.6vw, 4.75rem) 0 clamp(5rem, 10vw, 9.75rem); overflow: hidden; }
.page-hero .display { max-width: 11.5em; margin-bottom: 2.375rem; }
.page-hero .sketch-bg { position: absolute; right: -7%; top: 2%; bottom: 0; width: min(52vw, 47.5rem); z-index: -1; opacity: .4; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 55% 46%, #000 38%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 55% 46%, #000 38%, transparent 100%); }
.page-hero .sketch-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- services page ---------- */
.service { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(3.25rem, 8.5vw, 10rem); align-items: center; }
.service + .service { margin-top: clamp(8.125rem, 16vw, 15.625rem); }
.service.flip .svc-art { order: 2; }
.svc-art { position: relative; }
.svc-art .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-3); }
.svc-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.svc-art .inset { position: absolute; width: 44%; aspect-ratio: 1 / 1; right: -6%; bottom: -8%; border: .625rem solid var(--bone); box-shadow: 0 1.5rem 3.125rem -1.875rem rgba(40, 34, 24, .55); background: var(--bone-2); }
.service.flip .svc-art .inset { right: auto; left: -6%; }
.svc-art .inset img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
/* wet-in-wet bloom: a paper canvas over the photo until a drop lands on the inset's inner corner and the color blooms out
   of her sketch. It's drawn at half scale, and the browser's smoothed upscale softens the front into a wet edge; the
   grain on top makes the canvas the same paper as the page. The frame isolates, so the inset (a later sibling) stays
   above. The canvas and grain overlap the frame by 1px and the frame drops its own fill while it blooms: mid-fade the
   frame sits on fractional pixels and the photo would otherwise show as a hairline round the edge. JS adds the canvas
   only when it can play the bloom, so no JS, reduced motion and deep links get the photo. */
.svc-art .ph { position: relative; isolation: isolate; }
.svc-art .ph.blooming { background: none; }
.bloom-cv { position: absolute; inset: -1px; width: calc(100% + .125rem); height: calc(100% + .125rem); max-width: none; pointer-events: none; transition: opacity .6s ease; }
.svc-art .ph.blooming::after { content: ""; position: absolute; inset: -1px; background: var(--grain); pointer-events: none; transition: opacity .6s ease; }
.bloom-done .bloom-cv, .svc-art .ph.bloom-done::after { opacity: 0; }
@media (prefers-reduced-motion: reduce), print { .bloom-cv, .svc-art .ph.blooming::after { display: none !important; } }
.svc-copy .h2 { margin-bottom: 2.125rem; }
.included { margin: 2.875rem 0 2.625rem; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.included li { display: flex; align-items: center; gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--line); font: 500 .8rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.included li::before { content: ""; width: .4375rem; height: .4375rem; border: 1.5px solid var(--brass); transform: rotate(45deg); flex: none; }
.svc-quote { margin-top: 2.875rem; padding-left: 1.875rem; border-left: 1.5px solid var(--brass); font: italic 500 1.4rem/1.4 var(--serif); color: var(--ink); }
.svc-quote .cite { margin-top: .625rem; }

/* ---------- process page ---------- */
.timeline { position: relative; }
.tl-step { display: grid; grid-template-columns: 8.75rem minmax(0, 6fr) minmax(0, 4fr); gap: clamp(2rem, 5.5vw, 6.5rem); padding: clamp(4.375rem, 9vw, 8.125rem) 0; border-top: 1px solid var(--line-2); align-items: start; }
.tl-step:last-child { border-bottom: 1px solid var(--line-2); }
.tl-step .n { font: italic 500 clamp(4rem, 7vw, 6.4rem)/.85 var(--serif); color: var(--brass); }
.tl-step h2 { font-size: clamp(2.1rem, 3.4vw, 3.2rem); line-height: 1.05; margin-bottom: 1.75rem; }
.tl-step .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bone-3); }
.tl-step .ph img { width: 100%; height: 100%; object-fit: cover; }
.tl-step .ph img.sk { mix-blend-mode: multiply; }
/* Oct 16: step 03 is a real photo on the paper, its torn edge fading into the page (mask from make_edge_masks.py) */
.tl-step .ph.paper { background: none; -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; }
.tl-step .ph.paper img { object-position: var(--op, 50% 50%); }
.tl-step .svc-quote { margin-top: 2.375rem; }
/* the finale (step 05): the photo takes a wide 10:7 panel under the copy, and on reveal day the Roman shade goes up.
   The shade is one cloth (cream linen with her two-dip indigo hem, painted once by paintLinen and makeDye) shared by six
   bands, with the room glowing faintly through it. After a tug on the brass ring it lifts bottom-first, like a real one
   on its cords: JS lets out one value, the cloth still hanging flat, and each band below it becomes a fold 11% of its
   height in a stack riding on the rising hem, with the band at the edge folding up from its top. The bands always meet
   edge to edge, so the folds collect instead of reading as blinds, and end stacked across the top 11%. The stack then
   slides out of the frame. JS adds the shade only when it can play it, so no JS, reduced motion and deep links get the
   photo. */
.tl-step.finale .ph { grid-column: 2 / -1; aspect-ratio: 10 / 7; position: relative; max-width: none; margin-top: clamp(.625rem, 2vw, 1.875rem); }
@media (max-width: 980px) { .tl-step.finale .ph { grid-column: auto; } }
.shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.shade .band { position: absolute; left: 0; right: 0; top: calc(var(--i) * 100% / 6); height: calc(100% / 6 + 1px); z-index: var(--i);
  background: #F3EDE2 0 calc(var(--i) * 20%) / 100% 600% no-repeat;   /* plain cream until the painted cloth is ready */
  transform-origin: top; }
/* each fold (--f: 0 flat, 1 folded): lit on its top edge, shadowed into the crease under it */
.shade .band::after { content: ""; position: absolute; inset: 0; opacity: var(--f, 0);
  background: linear-gradient(transparent 45%, rgba(30, 29, 25, .2)), linear-gradient(rgba(255, 255, 255, .2), transparent 24%); }
.shade .veil { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 7; mix-blend-mode: multiply; opacity: .18; transition: opacity .3s ease; }
.shade.up .veil { opacity: 0; }
/* a small brass ring pull on a short tab at the center of the hem (JS carries it up with the hem) */
.shade .pull { position: absolute; left: 50%; bottom: clamp(.625rem, 3%, 1.375rem); z-index: 8; width: .75rem; height: .75rem; margin-left: -.375rem; border: 1.5px solid var(--brass-light); border-radius: 50%; transition: opacity .5s ease .1s; }
.shade .pull::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: .4375rem; margin-left: -.75px; background: var(--brass-light); }
.shade.tug .pull { animation: kgTug .18s ease-in-out; }   /* translate, so it adds to the ride JS sets as transform */
.shade.up .pull { opacity: 0; }
@keyframes kgTug { 50% { translate: 0 .3125rem; } }
.shade.pocket { transform: translateY(-13%); opacity: 0; transition: transform .6s cubic-bezier(.5, 0, .7, .4), opacity .45s ease .15s; }
/* the room starts in a cool dim, like a shaded room, and clears as the daylight comes in */
.shade-dim { position: absolute; inset: 0; z-index: 1; background: rgba(31, 41, 64, .22); pointer-events: none; transition: opacity 1.4s ease; }
.shade-dim.clear { opacity: 0; }
/* a slow image or a failed decode: the closed shade just fades off the photo */
.shade.gone, .shade-dim.gone { opacity: 0; transition: opacity .45s ease; }
@media (prefers-reduced-motion: reduce), print { .shade, .shade-dim { display: none !important; } }
.faq { max-width: 56.25rem; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 2.125rem 0; font: 500 clamp(1.35rem, 2vw, 1.75rem)/1.25 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .875rem; height: .875rem; flex: none; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(45deg) translate(-.1875rem, -.1875rem); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-.1875rem, -.1875rem); }
.faq .ans { padding: 0 0 2.5rem; max-width: 44em; }

/* ---------- about page ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3.25rem, 9vw, 10.625rem); align-items: center; }
.chapters { display: grid; gap: clamp(6.875rem, 13vw, 12.5rem); }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.25rem, 8vw, 9.375rem); align-items: start; }
.chapter .label { position: sticky; top: calc(var(--header) + 1.875rem); }
.chapter .label .n { font: italic 500 3rem/1 var(--serif); color: var(--brass); margin-bottom: 1.25rem; }
.chapter .label h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.06; }
.chapter .body .quote { margin: 2.75rem 0 0; }
.creds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.625rem, 3.4vw, 3.5rem); }
.cred { border-top: 1px solid var(--line-2); padding-top: 1.875rem; }
.cred .big { font: 500 clamp(2.3rem, 3.4vw, 3.2rem)/1 var(--serif); color: var(--ink); margin-bottom: .625rem; }

/* ---------- portfolio ---------- */
.project-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 8vw, 9.375rem); align-items: end; margin-bottom: clamp(3.75rem, 7.5vw, 6.875rem); }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.75rem; margin: 0; }
.meta-list div { border-top: 1px solid var(--line-2); padding: 1.125rem 0; }
.meta-list dt { font: 500 .7rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.meta-list dd { margin: .25rem 0 0; font: 500 1.25rem/1.3 var(--serif); color: var(--ink); }
.feature-ph { aspect-ratio: 16 / 8; overflow: hidden; background: var(--bone-3); margin-bottom: clamp(2.125rem, 4.5vw, 4rem); }
.feature-ph img { width: 100%; height: 100%; object-fit: cover; }
/* drafted edges: her elevation draws itself onto the real house in graphite, the photo develops under it like a print
   in a tray, and the lines glint to bone and fade. The 16:9 crop at 50% 85% shows the whole gate and the upper story;
   the svg's viewBox is that exact crop, so the lines land on the real edges at any width. JS adds .trace-armed only
   when it can play the whole thing, so no JS, reduced motion and deep links all get the plain photo. */
.feature-ph.trace-ph { position: relative; aspect-ratio: 16 / 9; background: var(--grain), var(--bone); }
.trace-ph img { object-position: 50% 85%; }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
.trace-armed .trace { display: block; }
/* lengths are in user units; the extra gap keeps a round cap from dotting the start before a line begins */
.trace path { --k: var(--i); fill: none; stroke: var(--graphite); stroke-width: var(--sw, .1625rem); stroke-linecap: round; stroke-linejoin: round; opacity: .85;
  stroke-dasharray: var(--l) calc(var(--l) + 1.5rem); stroke-dashoffset: calc(var(--l) + .75rem); }
.trace path.p2 { stroke-width: calc(var(--sw, .1625rem) * .55); opacity: .32; }
.tracing .trace path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--d) cubic-bezier(.55, .1, .3, 1) calc(var(--k) * 40ms), stroke .8s ease 1.5s; }
.developed .trace path { stroke: var(--bone); }
.trace-armed img { opacity: 0; transform: scale(1.02); }
.trace-armed.developed img { opacity: 1; transform: none; transition: opacity 1.5s cubic-bezier(.4, 0, .6, 1) .9s, transform 2.4s var(--ease) .9s; }
.trace-armed.developed .trace { opacity: 0; transition: opacity .9s ease 2s; }
/* phones draw the majors only (visibility, not display: turning the phone mid-draw must not jump the minors to their end) */
@media (max-width: 640px) { .trace .min { visibility: hidden; } .trace path { --k: var(--im); } }
@media (prefers-reduced-motion: reduce), print { .trace { display: none !important; } .trace-armed img { opacity: 1 !important; transform: none !important; } }
.gallery { columns: 3 18.75rem; column-gap: 1.75rem; }
.gallery.two { columns: 2 18.75rem; }
.gallery button { display: block; width: 100%; margin: 0 0 1.75rem; padding: 0; border: 0; background: var(--bone-3); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .4s; }
.gallery button:hover img { transform: scale(1.03); }
.diptych { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.diptych figure { margin: 0; position: relative; }
.diptych .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bone-3); }
.diptych .ph img { width: 100%; height: 100%; object-fit: cover; }
.diptych figcaption { margin-top: 1.25rem; }
.diptych figure:first-child .ph img { mix-blend-mode: multiply; }
.diptych figure:last-child .ph img { object-position: 50% var(--oy, 50%); }   /* measured so the built room lines up with its sketch */
/* hand-cut double mat: each sketch and built pair sits in one sheet of antique-white board with two bevel windows,
   the way her mother cut mats. The bevel faces are mitered strips just outside each window, lit from above (shaded
   top face, bright bottom face), and the window's inset shadow is the board falling across the top of the art.
   JS adds .mat-armed only when it can play the cut, so no JS, reduced motion and deep links get the finished board. */
.diptych.mat { gap: clamp(1.375rem, 3.4vw, 3.5rem); padding: clamp(1.375rem, 4vw, 4rem) clamp(1.375rem, 4vw, 4rem) clamp(1.875rem, 4.4vw, 4.375rem);
  background: var(--grain), #F7F3EB; box-shadow: 0 1px 0 rgba(30, 29, 25, .05), 0 2.5rem 4.375rem -3rem rgba(40, 34, 24, .5); }
.mat .win { position: relative; overflow: visible; --b: clamp(.25rem, .42vw, .375rem); }
.mat .win::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 .1875rem .4375rem rgba(30, 29, 25, .24), inset 0 0 0 1px rgba(30, 29, 25, .06); }
.mat figcaption { margin-top: clamp(.875rem, 1.6vw, 1.375rem); color: var(--graphite); }
/* each face carries the kerf of its outer cut (a gradient across its thickness, so it rides along with the scale). It's dark
   enough on every side, the bright right and bottom faces too, that the blade reads all the way round */
.bv { position: absolute; z-index: 1; display: block; pointer-events: none; }
.bv.t { left: calc(-1 * var(--b)); right: calc(-1 * var(--b)); top: calc(-1 * var(--b)); height: var(--b); background: linear-gradient(rgba(30, 29, 25, .32) 0 1px, transparent 1px), #E3DACA;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--b)) 100%, var(--b) 100%); transform-origin: left; }
.bv.r { top: calc(-1 * var(--b)); bottom: calc(-1 * var(--b)); right: calc(-1 * var(--b)); width: var(--b); background: linear-gradient(to left, rgba(30, 29, 25, .26) 0 1px, transparent 1px), #FBF8F1;
  clip-path: polygon(0 var(--b), 100% 0, 100% 100%, 0 calc(100% - var(--b))); transform-origin: top; }
.bv.b { left: calc(-1 * var(--b)); right: calc(-1 * var(--b)); bottom: calc(-1 * var(--b)); height: var(--b); background: linear-gradient(to top, rgba(30, 29, 25, .24) 0 1px, transparent 1px), #FFFDF8;
  clip-path: polygon(var(--b) 0, calc(100% - var(--b)) 0, 100% 100%, 0 100%); transform-origin: right; }
.bv.l { top: calc(-1 * var(--b)); bottom: calc(-1 * var(--b)); left: calc(-1 * var(--b)); width: var(--b); background: linear-gradient(to right, rgba(30, 29, 25, .3) 0 1px, transparent 1px), #EAE2D3;
  clip-path: polygon(0 0, 100% var(--b), 100% calc(100% - var(--b)), 0 100%); transform-origin: bottom; }
.fallout { display: none; }
/* armed: the board starts uncut. The blade runs clockwise, a side every .2s (--d staggers the second window). As the
   last side closes the center piece comes loose (it keeps the board's color; a fine edge shadow parts it from the cut,
   so it never reads as a grey loading box), then at once lets go with a small sink and falls away through the opening
   with a gravity ease, holding its opacity until late so it reads as a piece falling, not a fade. It overlaps the opening by 1px:
   mid-fade the board sits on fractional pixels and the art would otherwise show as a hairline round the uncut window */
.mat-armed .bv { transition: transform .2s linear; }
.mat-armed .bv.t { transition-delay: var(--d, 0s); } .mat-armed .bv.r { transition-delay: calc(var(--d, 0s) + .2s); }
.mat-armed .bv.b { transition-delay: calc(var(--d, 0s) + .4s); } .mat-armed .bv.l { transition-delay: calc(var(--d, 0s) + .6s); }
.mat-armed figure:not(.cut) .bv.t, .mat-armed figure:not(.cut) .bv.b { transform: scaleX(0); }
.mat-armed figure:not(.cut) .bv.l, .mat-armed figure:not(.cut) .bv.r { transform: scaleY(0); }
.mat-armed .fallout { display: block; position: absolute; inset: -1px; z-index: 2; pointer-events: none; background: var(--grain), #F7F3EB; transform-origin: 50% 30%; }
.mat-armed .fallout::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(58, 48, 32, .05), rgba(58, 48, 32, .02));
  box-shadow: inset 0 0 0 1px rgba(30, 29, 25, .18), 0 0 .375rem rgba(30, 29, 25, .14); opacity: 0; transition: opacity .25s ease calc(var(--d, 0s) + .6s); }
.mat-armed .cut .fallout { animation: kgDrop .75s calc(var(--d, 0s) + .8s) both; }
.mat-armed .cut .fallout::after { opacity: 1; }
@keyframes kgDrop {
  0% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  20% { transform: translateY(.3%) scale(.975); opacity: 1; animation-timing-function: cubic-bezier(.4, 0, .9, .5); }
  62% { opacity: 1; }
  100% { transform: translateY(9%) scale(.74); opacity: 0; }
}
/* phones: one tall board, the windows stacked, each cut as it comes on screen (no CSS stagger; JS spaces two that arrive together) */
@media (max-width: 640px) { .diptych.mat { padding: 1.125rem 1.125rem clamp(2.5rem, 10vw, 3.75rem); gap: 2.125rem; } .mat figure { --d: 0s !important; } }
@media (prefers-reduced-motion: reduce), print { .mat-armed .fallout { display: none !important; } .mat-armed .bv { transform: none !important; } }
.compare { position: relative; aspect-ratio: 1201 / 806; overflow: hidden; background: var(--bone-2); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 0; z-index: 3; }
.compare .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.75px; width: 1.5px; background: var(--bone); box-shadow: 0 0 0 1px rgba(30, 29, 25, .12); }
.compare .knob { position: absolute; top: 50%; left: 0; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 50%; background: var(--bone); display: grid; place-items: center; box-shadow: 0 .625rem 1.875rem -.625rem rgba(30, 29, 25, .5); }
.compare .knob svg { width: 1.875rem; height: .875rem; stroke: var(--ink); fill: none; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; }
.compare .tag { position: absolute; top: 1.125rem; z-index: 2; padding: .5rem .75rem; background: rgba(243, 238, 228, .9); font: 500 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.compare .tag.l { left: 1.125rem; } .compare .tag.r { right: 1.125rem; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 18, 16, .95); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(18, 18, 16, .95); }
.lightbox figure { margin: 0; position: absolute; inset: 4.375rem 5.625rem 5rem; display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: -3.25rem; text-align: center; font: 500 .74rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); }
.lb-btn { position: absolute; z-index: 2; width: 3.5rem; height: 3.5rem; border: 1px solid rgba(239, 234, 224, .3); border-radius: 50%; background: rgba(18, 18, 16, .4); color: var(--on-dark); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--brass-light); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; }
.lb-prev { left: 1.375rem; top: 50%; margin-top: -1.75rem; } .lb-next { right: 1.375rem; top: 50%; margin-top: -1.75rem; } .lb-close { right: 1.375rem; top: 1.125rem; }

/* ---------- start your project ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3.25rem, 8vw, 9.375rem); align-items: start; }
.form { display: grid; gap: 3.625rem; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.25rem; min-width: 0; }
.fieldset legend, .field label, .q { font: 500 .74rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); padding: 0; margin-bottom: .25rem; }
.opt { color: var(--muted); letter-spacing: .04em; text-transform: none; font-size: .86rem; font-weight: 400; margin-left: .375rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; height: 100%; padding: 1.375rem 1.5rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .25); transition: border-color .3s, background .3s; }
.choice b { display: block; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.choice small { display: block; margin-top: .25rem; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.choice input:checked + span { border-color: var(--ink); background: rgba(51, 65, 91, .07); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: .125rem solid var(--brass); outline-offset: .1875rem; }
.pills { display: flex; flex-wrap: wrap; gap: .625rem; }
.pills .choice span { padding: .75rem 1.125rem; font-size: .98rem; color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2.5rem; }
.field { display: grid; gap: .375rem; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: .75rem 0 .75rem; border-radius: 0;
  font: 400 1.08rem/1.5 var(--sans); color: var(--ink); transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23A98545' stroke-width='1.5' fill='none'/></svg>") right .25rem center no-repeat; padding-right: 1.625rem; }
.field textarea { min-height: 8.125rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--brass); box-shadow: 0 1.5px 0 0 var(--brass); }
.field .err, .fieldset .err { display: none; font-size: .88rem; color: #8a2f22; }
.invalid .err { display: block; }
.invalid input, .invalid select, .invalid textarea { border-bottom-color: #8a2f22; }
.consent { display: grid; grid-template-columns: 1.375rem 1fr; gap: .875rem; align-items: start; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.consent input { width: 1.25rem; height: 1.25rem; margin: .1875rem 0 0; accent-color: var(--indigo); }
.consent a { color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.375rem 1.875rem; }
.form-foot .small-caps { max-width: 30em; text-transform: none; letter-spacing: .02em; font-size: .9rem; font-weight: 400; }
.hp { position: absolute; left: -624.9375rem; }
.thanks { display: none; padding: clamp(2.5rem, 6vw, 4.375rem); background: var(--grain), var(--bone-2); border-top: 1.5px solid var(--brass); }
.sent .form { display: none; }
.sent .thanks { display: block; }
.aside-card { position: sticky; top: calc(var(--header) + 1.875rem); padding: clamp(2.25rem, 4vw, 3.75rem); background: var(--grain), var(--bone-2); }
.aside-card h3 { font-size: 1.9rem; margin-bottom: 1.125rem; }
.aside-card .contact-lines a { display: block; font: 500 1.4rem/1.5 var(--serif); color: var(--ink); text-decoration: none; }
.aside-card .contact-lines a:hover { color: var(--indigo); }
.next-steps { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 1.375rem; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2.125rem 1fr; gap: .75rem; font-size: 1rem; line-height: 1.55; }
.next-steps li::before { content: counter(n); font: italic 500 1.7rem/1 var(--serif); color: var(--brass); }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 47.5rem; }
.prose h2 { font-size: 1.9rem; margin: 3.75rem 0 1.125rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav .phone { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .creds { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.125rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header: 5.25rem; }
  .brand img { height: 2.875rem; }
  .nav { display: none; }
  .menu-btn { display: block; }
  /* Oct 29 (Kristin): on phones and tablets the picture comes first, then the headline and copy */
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "art" "head" "copy"; min-height: 0; }
  .hero-head, .hero-copy { padding-left: var(--gut); padding-right: var(--gut); }
  .hero-head { padding-top: 1.625rem; }
  .hero-copy { padding-top: 1.875rem; padding-bottom: 2.75rem; }
  .hero-art { min-height: 0; }
  .hero-art .art-frame { position: relative; inset: auto; aspect-ratio: 4 / 5; }   /* full bleed on phones and tablets */
  .split, .film-grid, .about-grid, .about-hero, .project-head, .start-grid, .footer-cta { grid-template-columns: 1fr; }
  .pillars, .tracks { grid-template-columns: 1fr; }
  .tracks { gap: 5rem; }
  .track .ph { aspect-ratio: 16 / 10; }
  .work-grid { grid-template-columns: minmax(0, 1fr); row-gap: 4rem; }
  .wc-a, .wc-b { grid-column: auto; margin-top: 0; }
  .service, .service.flip { grid-template-columns: 1fr; }
  .service.flip .svc-art { order: 0; }
  .svc-art { margin-bottom: 1.875rem; }
  .svc-art .inset { right: 0; } .service.flip .svc-art .inset { left: auto; right: 0; }
  .tl-step { grid-template-columns: 1fr; gap: 1.125rem; }
  .tl-step .ph { max-width: 26.25rem; }
  .chapter { grid-template-columns: 1fr; gap: 1.25rem; }
  .chapter .label { position: static; }
  .aside-card { position: static; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .portrait { max-width: 32.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 1.04rem; }
  .steps, .creds { grid-template-columns: 1fr 1fr; }
  .choices, .fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .diptych { grid-template-columns: 1fr; }
  .lightbox figure { inset: 4.375rem .75rem 5.625rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1.125rem; margin: 0; }
  .btn { padding: 1.125rem 1.5rem; }
  .meta-list { grid-template-columns: 1fr; }
  .work-card .cap { flex-direction: column; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print {
  .site-header, .mobile-menu, .dye-edge, .film { display: none !important; }
}

/* Oct 13: Kristin's real sketches on the process page. Step 02 trades the square image for her study elevation as a
   drag slider (half and half columns so it reads big enough); step 04 runs her shower elevation and the finished shower
   in the hand-cut mat, full width under the copy like the finale. */
.tl-step.pair { grid-template-columns: 8.75rem minmax(0, 5fr) minmax(0, 5fr); }
.compare.study-compare { aspect-ratio: 1100 / 1238; }
.tl-step.paired .diptych { grid-column: 2 / -1; margin-top: clamp(.625rem, 2vw, 1.875rem); }
@media (max-width: 980px) { .tl-step.pair { grid-template-columns: 1fr; } .tl-step.paired .diptych { grid-column: auto; } }
