/* ============================================================
   SI BRAND PALETTE (light)
   Accent is the only hue in the system. Everything else is a
   warm neutral. Swap these to retheme.
   ============================================================ */
:root{
  --accent:#E6923A;
  --ink:#242220;
  --canvas:#FAF8F4;
  --panel:#EDEAE6;
  --hairline:#DDD8D1;
  --ink-2:#5C5854;
  --stone:#9A958E;
  --hover:#ECDFD1;
  --on-photo:#FAF8F4;
  --on-photo-soft:#e4dfd4;

  --serif:'Prata', Georgia, 'Times New Roman', serif;
  --sans:'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap:1180px;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  background:var(--canvas);color:var(--ink);
  font-family:var(--sans);line-height:1.6;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
}
/* height:auto is required alongside max-width because every img carries
   explicit width/height attributes for layout stability. */
img{max-width:100%;height:auto;display:block;}
a{color:inherit;}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 clamp(20px,5vw,48px);}
section{padding:clamp(62px,9vw,128px) 0;}
.bleed{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);}
/* A statement block does not need the full section rhythm above and below it.
   Roughly a third of the default, so it sits close under the hero. */
section.tight{padding:clamp(26px,2.6vw,42px) 0;}

/* ---------- TYPE ---------- */
.eyebrow{
  font-size:clamp(10px,1.3vw,11.5px);font-weight:600;letter-spacing:0.18em;
  text-transform:uppercase;color:var(--accent);margin-bottom:clamp(12px,2vw,18px);
}
h1{font-family:var(--serif);font-weight:400;font-size:clamp(30px,4.9vw,58px);line-height:1.14;letter-spacing:0;}
h2{font-family:var(--serif);font-weight:400;font-size:clamp(25px,3.4vw,42px);line-height:1.18;letter-spacing:0;}
h3{font-family:var(--sans);font-weight:600;font-size:clamp(12px,1.5vw,13px);letter-spacing:0.13em;text-transform:uppercase;}
p{color:var(--ink-2);font-size:clamp(15px,1.9vw,16.5px);}
.lede{max-width:640px;font-size:clamp(16px,2.1vw,18.5px);line-height:1.62;color:var(--ink-2);margin-top:clamp(18px,2.5vw,26px);}
.section-head{max-width:820px;}
.caption{margin-top:12px;font-size:clamp(11.5px,1.5vw,12.5px);color:var(--stone);}
.kicker{
  font-family:var(--serif);font-size:clamp(19px,2.8vw,26px);line-height:1.36;color:var(--ink);
  max-width:680px;margin-top:clamp(32px,4.5vw,52px);
  padding-left:clamp(18px,3vw,28px);border-left:2px solid var(--accent);
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-block;font-size:clamp(11.5px,1.6vw,12.5px);font-weight:600;
  letter-spacing:0.13em;text-transform:uppercase;text-decoration:none;
  padding:clamp(14px,2vw,17px) clamp(22px,4vw,34px);
  border:1px solid var(--ink);white-space:nowrap;
  transition:background .25s ease,color .25s ease,border-color .25s ease;
}
.btn-primary{background:var(--ink);color:var(--canvas);}
.btn-primary:hover{background:var(--accent);border-color:var(--accent);color:#fff;}
.btn-ghost{background:transparent;color:var(--ink);}
.btn-ghost:hover{background:var(--hover);}
.btn-row{display:flex;flex-wrap:wrap;gap:clamp(12px,2vw,18px);margin-top:clamp(28px,4vw,42px);}
.on-photo .btn-primary{background:var(--canvas);color:var(--ink);border-color:var(--canvas);}
.on-photo .btn-primary:hover{background:var(--accent);border-color:var(--accent);color:#fff;}
.on-photo .btn-ghost{color:#fff;border-color:rgba(255,255,255,0.55);}
.on-photo .btn-ghost:hover{background:rgba(255,255,255,0.14);border-color:#fff;}

/* ---------- HEADER ---------- */
/* The header sits ON the hero photo, transparent, and only becomes a solid
   bar once you scroll past it. Two lockup files are stacked and cross-faded
   because the white-on-dark art is unreadable on canvas and vice versa. */
header{
  position:fixed;top:0;left:0;right:0;z-index:60;
  background:transparent;border-bottom:1px solid transparent;
  transition:background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
header.scrolled{
  background:rgba(250,248,244,0.97);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--hairline);
  box-shadow:0 1px 18px rgba(36,34,32,0.08);
}
header .wordmark{color:var(--on-photo);text-shadow:0 2px 18px rgba(0,0,0,0.5);}
header.scrolled .wordmark{color:var(--ink);text-shadow:none;}
header nav.desktop a{color:rgba(250,248,244,0.86);text-shadow:0 1px 12px rgba(0,0,0,0.5);}
header.scrolled nav.desktop a{color:var(--ink-2);text-shadow:none;}
header nav.desktop a:hover,header.scrolled nav.desktop a:hover{color:var(--accent);}
header .mobile-toggle{color:var(--on-photo);border-color:rgba(250,248,244,0.45);}
header.scrolled .mobile-toggle{color:var(--ink);border-color:var(--hairline);}
header .mobile-menu{border-top-color:rgba(250,248,244,0.25);}
header .mobile-menu a{color:rgba(250,248,244,0.9);border-bottom-color:rgba(250,248,244,0.18);}
header.scrolled .mobile-menu a{color:var(--ink-2);border-bottom-color:var(--hairline);}
header.scrolled .mobile-menu{background:rgba(250,248,244,0.97);}
/* lockup cross-fade */
.by-logo .lockup{position:relative;display:block;height:clamp(20px,4.2vw,33px);}
.by-logo .lockup img{position:absolute;top:0;left:0;height:100%;width:auto;transition:opacity .35s ease;}
.by-logo .lockup img.on-dark{opacity:1;}
.by-logo .lockup img.on-light{opacity:0;}
header.scrolled .by-logo .lockup img.on-dark{opacity:0;}
header.scrolled .by-logo .lockup img.on-light{opacity:1;}
/* the lockup needs real width since its children are absolute */
.by-logo .lockup{width:calc(clamp(20px,4.2vw,33px) * 4.826);}
section[id]{scroll-margin-top:clamp(96px,13vw,140px);}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,3vw,32px);padding:clamp(13px,2vw,18px) 0;flex-wrap:wrap;}
/* The wordmark is a block so the flex .by-logo drops onto its own line
   beneath it, matching the theater site's lockup stack. */
.wordmark{
  display:block;font-family:var(--serif);
  font-size:clamp(23px,5.2vw,38px);line-height:1.05;letter-spacing:0.02em;font-weight:500;
  white-space:nowrap;color:var(--ink);text-decoration:none;
}
.by-logo{
  display:flex;align-items:center;gap:5px;font-family:var(--sans);
  font-size:clamp(8.5px,1.6vw,10px);letter-spacing:0.22em;font-weight:600;
  color:var(--accent);margin-left:clamp(2px,0.6vw,4px);margin-top:clamp(3px,0.6vw,6px);
}
/* Header lockup is centred under the wordmark, which is the exact midpoint
   between hanging left and sitting flush right, and holds at every width
   as both elements scale. The footer keeps the left-hung version. */
/* Header lockup, proportioned to match the Vermont Home Theaters original:
   the mark runs about 1.3x the wordmark's type size, "by" is roughly a fifth
   of that mark's height and top-aligns to it rather than centring against it,
   and the whole lockup hangs off the wordmark's left edge with a small indent
   instead of centring underneath. Footer keeps its own smaller treatment. */
header .by-logo{
  justify-content:flex-start;align-items:flex-start;
  margin-left:clamp(6px,1.4vw,13px);margin-top:clamp(3px,0.7vw,7px);
  gap:clamp(5px,0.95vw,9px);font-size:clamp(7px,1.2vw,8.5px);
}
header .by-logo .by-text{margin-top:0;}
header .by-logo .lockup{
  height:clamp(30px,6.8vw,49px);
  width:calc(clamp(30px,6.8vw,49px) * 5.72);
}
.by-logo img{height:clamp(20px,4.2vw,33px);width:auto;display:block;}
.by-logo .by-text{display:inline-block;margin-top:3px;}
nav.desktop{display:flex;align-items:center;gap:clamp(16px,2.1vw,27px);}
nav.desktop a{font-size:11.5px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--ink-2);text-decoration:none;transition:color .2s ease;white-space:nowrap;}
nav.desktop a:hover{color:var(--accent);}
/* Below 1200px the page links fold into the Menu button but Current Clients, Partner Portal and Start a Project stay, as on sivermont.com. */
@media (max-width:1200px){nav.desktop > a:not(.nav-utility):not(.nav-cta),nav.desktop .nav-divider{display:none;}}
@media (max-width:760px){nav.desktop{display:none;}}
.mobile-toggle{
  display:none;background:none;border:1px solid var(--hairline);padding:9px 13px;cursor:pointer;
  font-size:10.5px;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;color:var(--ink);font-family:var(--sans);
}
@media (max-width:1200px){.mobile-toggle{display:block;}}
.mobile-menu{display:none;border-top:1px solid var(--hairline);padding:8px 0 18px;}
.mobile-menu.open{display:block;}
.mobile-menu a{display:block;padding:13px 0;font-size:12.5px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--ink-2);text-decoration:none;border-bottom:1px solid var(--hairline);}
.mobile-menu a:last-child{border-bottom:none;}

/* ============================================================
   FULL-BLEED PHOTO PANEL
   Ported from the Vermont Home Theaters site: a 100vw panel with a
   breathing background photo and an overlaid lede. This is the
   site's primary structural unit.
   ============================================================ */
.photo-panel{
  position:relative;width:100vw;
  margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  min-height:80vh;display:flex;align-items:flex-end;
  padding:0 0 clamp(28px,4vw,48px);
  overflow:hidden;isolation:isolate;box-sizing:border-box;
  background:var(--ink);
}
.panel-bg{
  position:absolute;inset:0;z-index:0;
  background-size:cover;background-position:center;
  animation:photo-breathe 34s ease-in-out infinite;
  will-change:transform;
}
/* Scrims are deliberately shallow. The old version washed 80% black across
   the whole bottom of every photo, which made a light-themed site read dark.
   Now: a short vertical ramp, plus a horizontal ramp on ONLY the side the
   lede actually sits on, so the rest of the photograph stays open.
   Legibility is carried by the text-shadow stack below. */
.panel-shade{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(0deg, rgba(16,14,12,0.22) 0%, rgba(16,14,12,0.05) 26%, rgba(16,14,12,0) 46%);
}

.panel-lede{
  position:absolute;top:18%;left:0;right:0;z-index:2;
  will-change:transform;transform:translate3d(0,0,0);
  padding:0 clamp(20px,5vw,48px);
  text-align:right;pointer-events:none;
}
.panel-lede .inner{max-width:var(--wrap);margin:0 auto;}
.panel-lede h1,
.panel-lede h2{
  max-width:640px;margin-left:auto;color:var(--on-photo);
  font-size:clamp(28px,4.6vw,54px);line-height:1.1;
  text-shadow:0 1px 10px rgba(0,0,0,0.45);
}
.panel-lede h1 em,.panel-lede h2 em{font-style:normal;color:var(--accent);}
.panel-lede p{
  margin-top:16px;margin-left:auto;max-width:480px;
  color:var(--on-photo-soft);font-size:clamp(15px,2vw,17px);line-height:1.5;
  text-shadow:0 1px 8px rgba(0,0,0,0.4);
}
.panel-lede .eyebrow{color:#F0A85C;text-shadow:0 1px 12px rgba(0,0,0,0.6);}
/* Legibility card. Instead of washing the whole photograph, a single
   rectangle sits behind the text and bleeds off the page edge on the side
   the text is on. The bleed is a 100vw box-shadow rather than viewport
   arithmetic, so it needs no knowledge of the wrap width and is clipped by
   the panel's own overflow:hidden. */
.lede-panel{
  position:relative;display:inline-block;text-align:inherit;
  max-width:min(100%,660px);
  background:transparent;
}
/* The card is opt-in, via .has-card on the .panel-lede. Two panels use it:
   01 Curated and 04 Natural light. Both are bright, even frames where type
   needs a ground. The remaining three read fine on the shade + shadow stack;
   a rectangle on every panel turned into a tic. */
.panel-lede.has-card .lede-panel{
  padding:clamp(20px,2.4vw,30px) clamp(22px,2.8vw,36px);
}
.lede-panel h1,.lede-panel h2,.lede-panel p{max-width:none;}
/* The visible rectangle is this pseudo-element, not the card itself, so its
   drop shadow casts from real edges. It runs 100vw off the page on the text's
   side, which puts that edge and its shadow off-screen: no seam. */
.panel-lede.has-card .lede-panel::before{
  content:'';position:absolute;z-index:-1;top:0;bottom:0;
  background:rgba(26,23,20,0.46);
  box-shadow:0 20px 54px rgba(12,10,9,0.42);
}
.panel-lede.has-card.align-left .lede-panel::before{left:-100vw;right:0;}
.panel-lede.has-card:not(.align-left) .lede-panel::before{right:-100vw;left:0;}

/* The premise headline carries its own line break after "carefully"; the
   shared 640px cap wrapped it a word early on ordinary desktop widths and
   left "carefully" hanging alone, so this one panel gets a wider measure. */
/* The sky fills the top third of the Atrium aerial, and light type on it
   is unreadable. The shared 18% start put the headline in that band, so on
   anything above phone width this panel begins its copy below the treeline.
   Phones keep the bottom-anchored rule further down. */
@media (min-width:761px){ #approach .panel-lede{top:40%;} }
/* This panel's photograph is a bright, high-contrast desk shot, much lighter
   than the two frames the card was originally tuned for, so its ground runs
   darker here to keep the cream and accent type readable over white paper. */
#approach .panel-lede.has-card .lede-panel::before{background:rgba(24,21,18,0.7);}
#approach .panel-lede h1{max-width:min(100%,840px);}
#approach .lede-panel{max-width:min(100%,840px);}
.panel-lede.align-left{text-align:left;}
.panel-lede.align-left h2,.panel-lede.align-left p{margin-left:0;margin-right:auto;}
@media (max-width:760px){
  .photo-panel{min-height:66vh;}
  .panel-lede{top:auto;bottom:clamp(40px,10vw,90px);}
}

/* Photo-panel credit, bottom right. Same treatment as the testimonial credit:
   the scrim is lightest on that side, so the text carries its own shadow
   rather than relying on the gradient. On phones the lede moves to the bottom
   of the panel, so the credit moves to the top to stay clear of it. */
.panel-credit{
  position:absolute;z-index:3;right:clamp(20px,5vw,48px);bottom:clamp(16px,2.4vw,26px);
  margin:0;text-align:right;max-width:min(46vw,340px);
  font-family:var(--sans);font-size:clamp(9.5px,1.15vw,11px);font-weight:500;
  letter-spacing:0.08em;line-height:1.5;color:rgba(250,248,244,0.62);
  text-shadow:0 1px 10px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.85);
}
.panel-credit span{display:block;color:rgba(250,248,244,0.5);}
@media (max-width:760px){
  .panel-credit{bottom:auto;top:calc(clamp(16px,2.4vw,26px) + 74px);max-width:60vw;}
  /* The hero has no lede to clear, so its credit stays at the bottom. */
  .hero .panel-credit{top:auto;bottom:clamp(16px,2.4vw,26px);}
  /* The premise card stops short of the bottom edge on narrow screens, so its
     credit keeps the bottom-right corner rather than jumping to the top. */
  #approach .panel-credit{top:auto;bottom:clamp(12px,2.4vw,20px);max-width:70vw;}
}

/* A panel that pans instead of breathing. The zoom animation and a scroll
   driven translate would fight over the same transform, so .pan turns the
   animation off. The layer is also made wider than the panel: at
   background-size:cover the image exactly fills the box, so sliding it without
   that slack would drag a hard edge into frame. 8% of overhang each side gives
   the travel somewhere to go, and the pan itself is capped at 5% so there is
   always 3% of margin left. */
.panel-bg.pan{
  animation:none;
  left:-8%;right:-8%;
  /* The house sits in the bottom fifth of this photograph. A centred cover
     crop trims equally top and bottom, which eats it on a wide short panel,
     so this one anchors to the bottom edge: whatever gets cropped comes off
     the sky, which has plenty to spare. */
  background-position:center bottom;
}
@media (prefers-reduced-motion:reduce){ .panel-bg.pan{left:0;right:0;transform:none;} }

/* ---------- HERO ---------- */
.hero{
  position:relative;padding:0;min-height:clamp(400px,56vh,560px);
  display:flex;align-items:flex-end;overflow:hidden;background:var(--ink);
}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:52% 52%;
  transform:scale(1.08);transition:transform 8s ease-out;will-change:transform;}
.hero.in-view>img{transform:scale(1);}
.hero .shade{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg, rgba(16,14,12,0.26) 0%, rgba(16,14,12,0.04) 24%, rgba(16,14,12,0) 42%),
    linear-gradient(0deg, rgba(16,14,12,0.14) 0%, rgba(16,14,12,0) 26%);
}
@media (min-width:1100px){
  .hero{min-height:0;aspect-ratio:2.5;}
}

/* ---------- WHAT WE DO BAND ----------
   A full-bleed photo behind a real paragraph of text, so it borrows the
   testimonial banner's approach rather than the photo panel's: a directional
   overlay heavy on the text side and light on the other, which keeps the
   photograph open where nothing is written over it. The panel-shade used on
   the section bands is far too shallow for this much copy. */
.wwd{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  overflow:hidden;isolation:isolate;background:var(--ink);
  padding:clamp(44px,5.5vw,84px) 0;}
.wwd-bg{position:absolute;inset:0;z-index:0;background-size:cover;background-position:center bottom;}
.wwd-overlay{position:absolute;inset:0;z-index:1;
  background:linear-gradient(100deg, rgba(14,12,11,0.86) 0%, rgba(14,12,11,0.72) 46%, rgba(14,12,11,0.34) 100%);}
.wwd-inner{position:relative;z-index:2;}
.wwd .eyebrow{color:#F0A85C;text-shadow:0 1px 12px rgba(0,0,0,0.6);}
.wwd h2{color:var(--on-photo);text-shadow:0 2px 16px rgba(0,0,0,0.55);}
.wwd h2 em{color:var(--on-photo);font-style:normal;}
.wwd h2 .accent{color:var(--accent);}
.wwd .lede{color:var(--on-photo-soft);max-width:660px;
  text-shadow:0 1px 10px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);}

/* ---------- TESTIMONIAL BANNER ---------- */
.testimonial-banner{position:relative;min-height:clamp(400px,58vh,520px);overflow:hidden;display:flex;align-items:center;padding:clamp(40px,6vw,64px) 0;}
.testimonial-banner .tb-bg{position:absolute;inset:0;overflow:hidden;}
.testimonial-banner .tb-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.08);transition:transform 8s ease-out;}
.testimonial-banner.tb-in-view .tb-bg img{transform:scale(1);}
.testimonial-banner .tb-overlay{
  position:absolute;inset:0;
  background:linear-gradient(100deg, rgba(20,18,16,0.62) 0%, rgba(20,18,16,0.38) 52%, rgba(20,18,16,0.08) 100%);
}
.tb-content{position:relative;z-index:2;max-width:var(--wrap);margin:0 auto;padding:0 clamp(20px,5vw,48px);width:100%;}
.tb-quote{font-family:var(--serif);font-size:clamp(17px,1.9vw,24px);line-height:1.55;color:var(--on-photo);max-width:900px;text-shadow:0 2px 22px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.9);}
.tb-name{margin-top:24px;color:var(--on-photo);font-size:16px;font-weight:700;}
.tb-title{color:var(--on-photo-soft);font-size:13.5px;margin-top:3px;}
/* Project credit, bottom right. The overlay is lightest on that side, so the
   text carries its own shadow rather than relying on the gradient. */
.tb-credit{
  position:absolute;z-index:3;right:clamp(20px,5vw,48px);bottom:clamp(16px,2.4vw,26px);
  margin:0;text-align:right;max-width:min(46vw,340px);
  font-family:var(--sans);font-size:clamp(9.5px,1.15vw,11px);font-weight:500;
  letter-spacing:0.08em;line-height:1.5;color:rgba(250,248,244,0.62);
  text-shadow:0 1px 10px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.85);
}
.tb-credit span{display:block;}
@media (max-width:640px){
  .tb-credit{position:static;text-align:left;max-width:none;
    margin:clamp(18px,4vw,26px) clamp(20px,5vw,48px) 0;}
}

/* ---------- MARQUEE ROWS ---------- */
.marquee-wrap{
  position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  box-sizing:border-box;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image:linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.logo-row{display:flex;flex-wrap:nowrap;padding:4px 0;}
.logo-track{display:flex;flex-wrap:nowrap;gap:14px;padding:0 40px;width:max-content;will-change:transform;}
.logo-track.marquee-run{animation:logo-marquee 38s linear infinite;}
.logo-tile{
  background:var(--panel);border:1px solid var(--hairline);
  width:205px;height:205px;flex:0 0 auto;
  /* Grid so the single logo centres optically in both axes. */
  display:grid;place-items:center;padding:26px;
  transition:background .2s ease;text-align:center;
}
.logo-tile:hover{background:var(--hover);}
.logo-tile img{max-width:var(--lw,100%);max-height:73%;width:auto;height:auto;object-fit:contain;}
@media (max-width:900px){.logo-tile{width:166px;height:166px;padding:20px;}.logo-track{gap:10px;padding:0 20px;}.logo-track.marquee-run{animation-duration:26s;}}
@media (max-width:560px){.logo-tile{width:134px;height:134px;padding:15px;}}

@keyframes logo-marquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@keyframes photo-breathe{0%,100%{transform:scale(1);}50%{transform:scale(1.12);}}

/* ---------- CARDS ---------- */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:clamp(16px,2.4vw,26px);margin-top:clamp(34px,5vw,56px);}
.card{background:var(--panel);border:1px solid var(--hairline);padding:0;overflow:hidden;display:flex;flex-direction:column;}
.card>img{width:100%;aspect-ratio:3/2;object-fit:cover;}
.card-body{padding:clamp(20px,2.8vw,28px);}
.card .brandline{font-size:10px;font-weight:600;letter-spacing:0.16em;text-transform:uppercase;color:var(--accent);margin-bottom:9px;}
.card h3{margin-bottom:12px;color:var(--ink);}
.card p{font-size:clamp(14px,1.8vw,15px);line-height:1.62;}

.split-card{margin-top:clamp(30px,4vw,52px);display:grid;grid-template-columns:1fr 1fr;background:var(--panel);border:1px solid var(--hairline);overflow:hidden;}
.split-card img{width:100%;height:100%;object-fit:cover;}
.split-card .card-body{display:flex;flex-direction:column;justify-content:center;}
@media (max-width:760px){.split-card{grid-template-columns:1fr;}.split-card img{aspect-ratio:3/2;}}

.spec-list{border-top:1px solid var(--hairline);}
.spec-item{display:grid;grid-template-columns:minmax(150px,230px) 1fr;gap:clamp(14px,3vw,44px);padding:clamp(18px,2.4vw,26px) 0;border-bottom:1px solid var(--hairline);}
@media (max-width:700px){.spec-item{grid-template-columns:1fr;gap:8px;}}
.spec-item h3{color:var(--ink);padding-top:3px;}

.keypad-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:clamp(14px,2vw,20px);margin-top:clamp(30px,4vw,48px);}
.keypad{border:1px solid var(--hairline);background:var(--panel);padding:0;overflow:hidden;display:flex;flex-direction:column;}
.keypad img{width:100%;aspect-ratio:1;object-fit:cover;}
.keypad-body{padding:clamp(15px,2vw,20px);}
.keypad h3{color:var(--ink);margin-bottom:9px;}
.keypad p{font-size:13.5px;line-height:1.56;}

/* ---------- PROCESS ----------
   Five stages across a row, each hung under a short accent rule. No photos:
   this section is the spine of the page and reads faster as plain type than
   as another set of picture cards. */
.process-list{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);
  gap:clamp(16px,2vw,26px);margin-top:clamp(34px,5vw,56px);}
@media (max-width:1099px){.process-list{grid-template-columns:repeat(2,1fr);}}
@media (max-width:559px){.process-list{grid-template-columns:1fr;}}
.process-step{border-top:2px solid var(--accent);padding-top:clamp(13px,1.5vw,18px);}
.process-num{display:block;font-family:var(--sans);font-size:10.5px;font-weight:600;
  letter-spacing:0.16em;color:var(--accent);margin-bottom:9px;}
.process-step h3{font-family:var(--serif);font-weight:400;text-transform:none;
  letter-spacing:0;font-size:clamp(19px,1.9vw,24px);line-height:1.15;
  color:var(--ink);margin-bottom:10px;}
.process-step p{font-size:clamp(13.5px,1.1vw,14.5px);line-height:1.6;}

/* The work eyebrow runs a little larger than the page default and sits closer
   to its headline, so the pair reads as one lockup above the project row. */
#work .eyebrow{font-size:clamp(11px,1.5vw,13px);margin-bottom:clamp(4px,0.6vw,7px);}

/* ---------- OUR WORK ----------
   Five project cards in a row. The photograph is the argument; the type under
   it is a caption. An info control on the frame opens the credits, so the
   architect, builder and photographer are one click away without turning
   every card into a wall of names.
   Note .card-grid.grid-5, not .grid-5 alone: the same specificity trap that
   caught grid-4, where source order otherwise hands the auto-fit rule the win. */
.card-grid.grid-5{grid-template-columns:repeat(5,1fr);gap:clamp(12px,1.4vw,18px);--frame:4/5;}
@media (max-width:1099px){.card-grid.grid-5{grid-template-columns:repeat(3,1fr);}}
@media (max-width:779px){.card-grid.grid-5{grid-template-columns:repeat(2,1fr);--frame:1/1;}}
@media (max-width:559px){.card-grid.grid-5{grid-template-columns:1fr;--frame:1/1;}}
.work-card{position:relative;background:var(--panel);border:1px solid var(--hairline);
  overflow:hidden;display:flex;flex-direction:column;
  transition:border-color .25s ease, transform .35s ease;}
.work-card:hover{border-color:var(--accent);transform:translateY(-3px);}
.work-frame{position:relative;overflow:hidden;aspect-ratio:var(--frame,4/5);background:var(--ink);}
.work-frame img{width:100%;height:100%;object-fit:cover;
  object-position:var(--fx,50%) var(--fy,50%);
  transform:scale(1);transition:transform 1.1s cubic-bezier(.2,0,.2,1);}
.work-card:hover .work-frame img{transform:scale(1.05);}
.work-info{
  position:absolute;top:10px;right:10px;z-index:4;
  width:32px;height:32px;border-radius:50%;cursor:pointer;
  border:1px solid rgba(250,248,244,0.45);background:rgba(18,16,14,0.5);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  color:var(--on-photo);font:400 14px/1 var(--serif);
  display:grid;place-items:center;padding:0;
  transition:background .22s ease, border-color .22s ease, transform .22s ease;
}
.work-info:hover{background:var(--accent);border-color:var(--accent);transform:scale(1.06);}
.work-info:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.work-card.is-open .work-info{background:var(--accent);border-color:var(--accent);}
.work-body{padding:clamp(15px,1.5vw,19px);display:flex;flex-direction:column;flex:1;}
.work-place{font-family:var(--sans);font-size:10px;font-weight:600;letter-spacing:0.16em;
  text-transform:uppercase;color:var(--accent);margin-bottom:8px;}
.work-name{font-family:var(--serif);font-size:clamp(18px,1.6vw,22px);line-height:1.18;
  color:var(--ink);margin-bottom:8px;}
.work-scope{font-size:clamp(12.5px,1.05vw,13.5px);line-height:1.55;color:var(--ink-2);}
/* The credits cover the card rather than pushing it taller. With five columns a
   push-down panel stretched the whole row and left four cards full of dead
   space; as an overlay there is no layout shift at any width, and the credits
   get the card's full height even when a card is only 200px wide. */
.work-detail{position:absolute;inset:0;z-index:3;background:var(--panel);
  display:flex;flex-direction:column;overflow:auto;
  padding:clamp(15px,1.5vw,19px);
  opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .28s ease, transform .28s ease, visibility .28s;}
.work-card.is-open .work-detail{opacity:1;visibility:visible;transform:translateY(0);}
.work-detail-inner{display:flex;flex-direction:column;flex:1;}
.work-detail-title{font-family:var(--serif);font-size:clamp(16px,1.4vw,19px);
  line-height:1.2;color:var(--ink);margin-bottom:12px;padding-right:34px;}
.work-detail dl{margin:0;padding-top:12px;border-top:1px solid var(--hairline);
  display:grid;grid-template-columns:1fr;gap:2px;}
.work-detail dl>dt+dd{margin-bottom:7px;}
.work-detail dt{font-family:var(--sans);font-size:9px;font-weight:600;letter-spacing:0.13em;
  text-transform:uppercase;color:var(--stone);}
.work-detail dd{margin:0;font-size:12.5px;line-height:1.45;color:var(--ink-2);}
.work-link{margin-top:auto;padding-top:15px;display:inline-flex;align-items:center;gap:7px;
  font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:0.11em;
  text-transform:uppercase;color:var(--ink);text-decoration:none;
  transition:color .2s ease, gap .2s ease;align-self:flex-start;}
.work-link:hover{color:var(--accent);gap:11px;}
.work-link svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;}
.work-link.is-pending{color:var(--stone);pointer-events:none;}
@media (prefers-reduced-motion: reduce){
  .work-card,.work-frame img,.work-info,.work-detail,.work-link{transition:none;}
  .work-detail{transform:none;}
  .work-card:hover{transform:none;} .work-card:hover .work-frame img{transform:none;}
}

/* ---------- SCENE SELECTOR ----------
   One room, four scenes, one tap. This is the Control section's argument made
   demonstrable rather than described: the complexity is in the design, the
   living with it is a single button. Built from our own photography and our
   own type, not framed in from anywhere. */
.scenes{position:relative;margin-top:clamp(34px,4.6vw,58px);}
.scene-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:var(--ink);}
.scene-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;pointer-events:none;transition:opacity 1.05s cubic-bezier(.4,0,.2,1);}
.scene-img.is-active{opacity:1;}
.scene-pad{
  position:absolute;left:clamp(16px,2.4vw,30px);bottom:clamp(16px,2.4vw,30px);z-index:2;
  background:rgba(18,16,14,0.58);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(250,248,244,0.14);border-radius:16px;
  padding:clamp(13px,1.5vw,18px);width:min(70%,268px);
}
.scene-pad-label{font-family:var(--sans);font-size:clamp(10px,1.15vw,11.5px);font-weight:500;
  letter-spacing:0.13em;text-transform:uppercase;color:rgba(250,248,244,0.62);
  margin:0 0 10px;padding-left:4px;}
.scene-pad-label b{color:var(--on-photo);font-weight:600;}
.scene-btn{
  display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  margin:0 0 6px;padding:clamp(9px,1.05vw,12px) clamp(12px,1.4vw,16px);
  border:0;border-radius:999px;cursor:pointer;
  font-family:var(--sans);font-size:clamp(12px,1.3vw,14px);font-weight:600;
  background:rgba(250,248,244,0.13);color:var(--on-photo);
  transition:background .25s ease, color .25s ease;
}
.scene-btn:last-child{margin-bottom:0;}
.scene-btn:hover{background:rgba(250,248,244,0.24);}
.scene-btn[aria-pressed="true"]{background:var(--canvas);color:var(--ink);}
.scene-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.scene-btn span{width:14px;height:14px;flex:0 0 auto;opacity:0.7;}
.scene-btn span svg{width:100%;height:100%;display:block;fill:currentColor;}
@media (max-width:640px){
  .scene-pad{position:static;width:100%;margin-top:12px;border-radius:12px;
    background:var(--panel);border-color:var(--hairline);backdrop-filter:none;-webkit-backdrop-filter:none;}
  .scene-pad-label{color:var(--stone);}
  .scene-pad-label b{color:var(--ink);}
  .scene-btn{background:rgba(36,34,32,0.07);color:var(--ink);}
  .scene-btn:hover{background:rgba(36,34,32,0.13);}
  .scene-btn[aria-pressed="true"]{background:var(--ink);color:var(--canvas);}
}
@media (prefers-reduced-motion: reduce){ .scene-img{transition:none;} }

/* ---------- CTA / FOOTER ---------- */
/* ---------- CTA ----------
   The closing band sits on an empty studio room, washed with the brand stone
   so the photograph's cool blue resolves into the same warm neutral as the
   rest of the page. The wash is deliberately heavy: the room is only a ground
   for the type, and the dark ink has to hold against it. */
.cta{position:relative;overflow:hidden;isolation:isolate;
  background:var(--panel);border-top:1px solid var(--hairline);text-align:center;}
.cta-bg{position:absolute;inset:0;z-index:0;background-size:cover;background-position:center 62%;}
.cta-stone{position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(154,149,142,0.58) 0%, rgba(154,149,142,0.44) 52%, rgba(154,149,142,0.62) 100%);}
.cta .wrap{position:relative;z-index:2;}
.cta .lede{margin-left:auto;margin-right:auto;}
.cta .btn-row{justify-content:center;}
footer{background:var(--canvas);border-top:1px solid var(--hairline);padding:clamp(44px,6vw,72px) 0;}
.footer-inner{display:flex;flex-wrap:wrap;gap:clamp(24px,4vw,48px);justify-content:space-between;align-items:flex-start;}
.footer-brand .wordmark{font-size:clamp(19px,3vw,26px);}
.footer-brand .by-logo img{height:clamp(18px,3vw,26px);}
.footer-col h3{color:var(--stone);margin-bottom:14px;}
.footer-col a,.footer-col p{display:block;font-size:14px;color:var(--ink-2);text-decoration:none;line-height:1.9;}
.footer-col a:hover{color:var(--accent);}
.footer-legal{margin-top:clamp(34px,4.6vw,54px);padding-top:22px;border-top:1px solid var(--hairline);font-size:12px;color:var(--stone);}

/* ---------- MOTION ---------- */
.fade-in{opacity:0;transform:translateY(24px);transition:opacity 0.8s ease,transform 0.8s ease;}
.fade-in.visible{opacity:1;transform:translateY(0);}
@media (prefers-reduced-motion:reduce){
  .fade-in{opacity:1;transform:none;transition:none;}
  .panel-bg{animation:none;}
  .logo-track.marquee-run{animation:none;}
  .hero>img,.testimonial-banner .tb-bg img{transform:none;transition:none;}
  html{scroll-behavior:auto;}
}

.film{position:relative;overflow:hidden;background:var(--ink);aspect-ratio:2.5;min-height:clamp(340px,50vh,520px);}
.film>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
.film .panel-credit{top:auto;bottom:clamp(16px,2.4vw,26px);}
@media(max-width:640px){.film{aspect-ratio:16/9;min-height:0;}}


.card-grid.grid-6{grid-template-columns:repeat(3,1fr);gap:clamp(12px,1.4vw,18px);--frame:4/5;}
@media (max-width:779px){.card-grid.grid-6{grid-template-columns:repeat(2,1fr);--frame:1/1;}}
@media (max-width:559px){.card-grid.grid-6{grid-template-columns:1fr;--frame:1/1;}}


/* sivermont.com-style utility links and Start a Project button */
header nav.desktop{align-items:center;}
header nav.desktop .nav-divider{width:1px;height:26px;background:rgba(250,248,244,0.3);margin:0 4px;}
header.scrolled nav.desktop .nav-divider{background:var(--hairline);}
header nav.desktop a.nav-utility{text-transform:none;letter-spacing:0;font-size:13px;}
header nav.desktop a.nav-cta{text-transform:none;letter-spacing:0;font-size:14px;font-weight:600;background:var(--accent);color:#242220;text-shadow:none;padding:10px 18px;border-radius:8px;}
header nav.desktop a.nav-cta:hover,header.scrolled nav.desktop a.nav-cta:hover{background:#242220;color:#faf8f4;}
header.scrolled nav.desktop a.nav-cta{color:#242220;}

/* Prata has no italic or bold: keep emphasis upright */
h1 em,h2 em,h3 em{font-style:normal;}

/* Prata sets wider than EB Garamond: tighter sizes where headlines wrapped too much */
.panel-lede h1{font-size:clamp(26px,3.5vw,44px);}
@media (max-width:700px){
  .tb-quote{font-size:17px;line-height:1.5;}
  .testimonial-banner{flex-direction:column;align-items:stretch;justify-content:center;}
}
