:root{
  --sand: #d3b384;
  --sand-pale: #f6efe3;
  --sand-mid: #e9dac0;
  --dark: #15354e;
  --dark-blue: #0e2438; 
  --dark-deep: #000000; 
  --teal: #40959a;
  --teal-deep: #2d6d72;
  --paper: #faf8f4;
  --ink: #1c2e3a;
  --line: rgba(21,53,78,0.16);
  --line2: #000000;
  --max: 1180px;
  --radius: 4px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;
    scroll-padding-top: 100px;
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}


body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:'Fraunces', serif;
  color:var(--dark);
  margin:0;
  font-weight:600;
  letter-spacing:-0.01em;
}

a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{margin:0; padding:0; list-style:none;}
section{position:relative;}

a:focus-visible, button:focus-visible{
  outline:2px solid var(--teal-deep);
  outline-offset:3px;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 32px;
}
.brk{ display:none; }
@media (min-width:640px){
  .brk{ display:inline; }
}
.mono{
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:12px;
}

/* ---------- Drafting-sheet signature system ---------- */
.sheet{
  position:relative;
  border-top:1px solid var(--line);
}
.sheet-inner{
  padding-top:40px;
  padding-bottom:40px;
}
.sheet-tag{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--teal-deep);
  margin-bottom:18px;
}
.sheet-tag .num{
  color:var(--dark);
  font-weight:500;
}
.sheet-tag::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}
.tick{
  position:absolute;
  width:14px; height:14px;
  pointer-events:none;
}
.tick::before, .tick::after{
  content:"";
  position:absolute;
  background:var(--dark);
  opacity:0.28;
}
.tick::before{ width:14px; height:1.5px; top:6px; left:0; }
.tick::after{ width:1.5px; height:14px; left:6px; top:0; }
.tick.tl{ top:20px; left:20px; }
.tick.tr{ top:20px; right:20px; }
@media (max-width:640px){
  .tick{ display:none; }
}

/* ---------- Nav ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(250,248,244,0.92);
  backdrop-filter:blur(8px);
  border-bottom:2px solid var(--line2);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 10px;
  max-width:var(--max);
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:22px;
  position:relative;
}
.brand img{
  height:144px;
  width:360px;
  margin:0 0 -18px 0;
  position:relative;
}
.brand .word{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:36px;
  color:var(--dark-deep);
  line-height:1.15;
}
.brand .word span{
  display:block;
  font-family:'Cormorant Garamond', serif;
  font-weight:600;
  font-size:18px;
  letter-spacing:0.1em;
  color:var(--dark-blue);
  text-transform:uppercase;
  margin-top:4px;
}
nav.links{
  display:flex;
  gap:34px;
}
nav.links a{
  font-size:14.5px;
  font-weight:500;
  color:var(--dark);
  position:relative;
  padding:4px 0;
}
nav.links a::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width:0; height:1.5px;
  background:var(--teal-deep);
  transition:width 0.2s ease;
}
nav.links a:hover::after{ width:100%; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:14.5px;
  padding:12px 22px;
  border-radius:var(--radius);
  border:1.5px solid var(--dark);
  background:transparent;
  color:var(--dark);
  cursor:pointer;
  transition:background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  white-space:nowrap;
}
.btn:hover{
  background:var(--dark);
  border-color:var(--dark);
  color:var(--paper);
  transform:translateY(-1px);
}
.btn.on-dark{
  border-color:var(--sand);
  color:var(--sand-pale);
}
.btn.on-dark:hover{
  background:var(--sand);
  border-color:var(--sand);
  color:var(--dark-deep);
}

.nav-cta{ display:flex; }
.burger{ display:none; }

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(180deg, var(--sand-pale) 0%, var(--sand-mid) 100%);
  overflow:hidden;
}
.hero .wrap{
  padding-top:36px;
  padding-bottom:50px;
  text-align:center;
}
.hero-eyebrow{
  display:flex; align-items:center; justify-content:center; gap:10px;
  color:var(--teal-deep);
  margin-bottom:22px;
}
.hero-eyebrow .dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--teal-deep);
}
.hero h1{
  font-size:clamp(40px, 6vw, 68px);
  line-height:1.04;
  max-width:30ch;
  margin:0 auto;
}
.hero p.lede{
  margin:26px auto 0;
  font-size:19px;
  max-width:62ch;
  color:var(--dark-deep);
  opacity:0.86;
}
.hero-ctas{
  display:flex;
  gap:16px;
  margin-top:36px;
  flex-wrap:wrap;
  justify-content:center;
}
.stat-row{
  margin:60px auto 0;
  display:grid;
  grid-template-columns:repeat(3,auto);
  gap:64px;
  border-top:1px solid rgba(21,53,78,0.18);
  padding-top:28px;
  max-width:100%;
  justify-content:center;
}
.stat-row div{ text-align:center; }
.stat-row div b{
  display:block;
  font-family:'Fraunces', serif;
  font-size:27px;
  color:var(--dark);
  font-weight:600;
}
.stat-row div span{
  font-size:12.5px;
  color:var(--dark-deep);
  opacity:0.75;
}

/* ---------- Who it's for ---------- */
.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-top:42px;
}
.card{
  background:var(--paper);
  padding:34px 28px;
}
.card .icon{ margin-bottom:22px; }
.card h3{
  font-size:19px;
  margin-bottom:10px;
}
.card p{
  font-size:14.5px;
  color:var(--dark-deep);
  opacity:0.8;
  margin:0;
}

.section-head{
  display:flex;
  align-items:flex-end;
  gap:16px 40px;
  flex-wrap:wrap;
}

.section-head h2{
  font-size:clamp(28px, 3.4vw, 38px);
  max-width:45ch;
}
.section-head p{
  max-width:38ch;
  font-size:15.5px;
  color:var(--dark-deep);
  opacity:0.78;
  margin:0 0 0 auto;
}

/* ---------- Services ---------- */
.services-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.svc{
  border:1.5px solid var(--dark);
  border-radius:6px;
  padding:34px;
  position:relative;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  transition:background 0.2s ease, border-color 0.2s ease;
  cursor:pointer;
}
.svc .svc-num{
  position:absolute;
  top:22px; right:26px;
  color:var(--teal-deep);
  transition:color 0.2s ease;
}
.svc h3{ font-size:24px; margin-bottom:14px; transition:color 0.2s ease;}
.svc p{
  font-size:15px;
  color:var(--dark-deep);
  opacity:0.82;
  margin-bottom:22px;
  transition:color 0.2s ease;
}
.svc ul{ display:flex; flex-direction:column; gap:9px; }
.svc li{
  font-size:14px;
  padding-left:20px;
  position:relative;
  color:var(--dark-deep);
  transition:color 0.2s ease;
}
.svc li::before{
  content:"";
  position:absolute;
  left:0; top:10px;
  width:9px; height:2px;
  background:var(--teal-deep);
  transition:background 0.2s ease;
}
.svc:hover{
  background:var(--dark);
  border-color:var(--dark);
}
.svc:hover h3{ color:var(--sand); }
.svc:hover .svc-num{ color:var(--sand); }
.svc:hover p, .svc:hover li{ color:var(--sand-pale); opacity:0.85; }
.svc:hover li::before{ background:var(--teal); }

/* ---------- Process ---------- */
.process{
  background:var(--sand-pale);
}
.steps{
  margin-top:50px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  position:relative;
}
.steps::before{
  content:"";
  position:absolute;
  top:15px; left:0; right:0;
  height:1px;
  background:repeating-linear-gradient(90deg, var(--dark) 0 8px, transparent 8px 16px);
  opacity:0.35;
}
.step{ padding-right:24px; }
.step .mark{
  width:30px; height:30px;
  border-radius:50%;
  background:var(--paper);
  border:1.5px solid var(--dark);
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--dark);
  margin-bottom:22px;
  position:relative;
  z-index:1;
}
.step h3{ font-size:18px; margin-bottom:8px; }
.step p{ font-size:14px; color:var(--dark-deep); opacity:0.8; margin:0; }

/* ---------- Materials & Construction (quality grid) ---------- */
.quality-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.quality-card{
  background:var(--paper);
  padding:34px 30px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:box-shadow 0.2s ease;
}
.quality-card:hover{
  box-shadow:inset 0 0 0 1.5px var(--dark);
}
.quality-tag{
  color:var(--teal-deep);
}
.quality-card h3{
  font-size:21px;
}
.quality-card p{
  font-size:14.5px;
  color:var(--dark-deep);
  opacity:0.82;
  margin:0;
}
.quality-card ul{
  margin-top:6px;
  padding-top:16px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:9px;
}
.quality-card li{
  font-size:13.5px;
  line-height:1.5;
  color:var(--dark-deep);
  opacity:0.85;
  padding-left:16px;
  position:relative;
}
.quality-card li::before{
  content:"";
  position:absolute;
  left:0; top:8px;
  width:6px; height:6px;
  background:var(--teal);
}
@media (max-width:980px){
  .quality-grid{ grid-template-columns:1fr; }
}

/* ---------- About / credentials ---------- */
.about-copy .lead{
  font-family:'Fraunces', serif;
  font-size:26px;
  color:var(--dark);
  line-height:1.4;
  font-weight:500;
  max-width:70ch;
  margin:0 0 32px;
}
.about-copy-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
}
.about-copy-columns p{
  font-size:16.5px;
  color:var(--dark-deep);
  margin:0;
}
.badges{
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.badge{
  border:1px solid var(--line);
  border-radius:5px;
  padding:16px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--paper);
}
.badge span{ font-size:13.5px; font-weight:600; color:var(--dark); }

/* ---------- Service area ---------- */
.area{
  background:var(--dark);
  color:var(--sand-pale);
}
.area h2, .area .sheet-tag, .area .sheet-tag .num{ color:var(--sand-pale); }
.area .sheet-tag::after{ background:rgba(246,239,227,0.18); }
.area .section-head p{ color:var(--sand-pale); opacity:0.7; }
.area-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:start;
}
.region h4{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--teal);
  margin:0 0 16px;
}
.region ul{ display:flex; flex-wrap:wrap; gap:10px 18px; }
.region li{
  font-family:'Fraunces', serif;
  font-size:17px;
  color:var(--sand-pale);
}
.region{ padding-bottom:26px; border-bottom:1px solid rgba(246,239,227,0.14); }

/* ---------- Testimonial ---------- */
.quote-wrap{
  margin-top:44px;
  border-left:2px solid var(--teal);
  padding-left:32px;
  max-width:64ch;
}
.quote-wrap p{
  font-family:'Fraunces', serif;
  font-size:clamp(20px,2.4vw,26px);
  color:var(--dark);
  line-height:1.5;
  font-weight:400;
  margin:0 0 18px;
}
.quote-wrap .who{ font-size:13.5px; color:var(--teal-deep); font-weight:600; }
.quote-note{
  margin-top:14px;
  font-size:12px;
  color:var(--dark-deep);
  opacity:0.5;
}

/* ---------- Gallery ---------- */
.gallery{
  margin-top:44px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.g-item{
  aspect-ratio:4/3;
  border-radius:5px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:18px;
}
.g-item .cap{
  color:#fff;
  font-size:13px;
  font-weight:600;
  position:relative;
  z-index:1;
}
.g-item .loc{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  font-weight:400;
  letter-spacing:0.05em;
  opacity:0.8;
  margin-top:3px;
}
.g-item::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(21,53,78,0) 40%, rgba(14,36,56,0.75) 100%);
}
.g1{ background:linear-gradient(135deg, var(--teal) 0%, var(--dark) 100%); }
.g2{ background:linear-gradient(135deg, var(--sand) 0%, var(--teal-deep) 100%); }
.g3{ background:linear-gradient(135deg, var(--dark) 0%, var(--sand) 130%); }

/* ---------- CTA banner ---------- */
.cta-band{
  background:var(--dark-blue);
  color:#fff;
}
.cta-band .wrap{
  padding:70px 32px;
}
.cta-band-columns{
  display:grid;
  grid-template-columns:1fr 1.3fr; /* form column a bit wider — it has more fields */
  gap:56px;
  align-items:start;
}
.cta-band-call{
  display:flex;
  flex-direction:column;
}
.cta-band h2{ color:#fff; font-size:clamp(26px,3.4vw,36px); max-width:24ch; }
.cta-band p{ color:rgba(255,255,255,0.82); margin:10px 0 0; font-size:15.5px; }

/* ---------- Phone block (inside the CTA band's left column) ---------- */
.cta-phone-block{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,0.14);
}
.cta-phone-block .cta-phone-label{
  color:rgba(255,255,255,0.6);
  margin-bottom:6px;
}
.cta-phone-number{
  display:inline-block;
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(28px, 3vw, 34px);
  color:#ffffff;
  letter-spacing:-0.01em;
  transition:color 0.18s ease;
}
.cta-phone-number:hover{ color:var(--sand); }
.cta-phone-block .cta-phone-note{
  margin-top:4px;
  color:rgba(255,255,255,0.6);
}

@media (max-width:900px){
  .cta-band-columns{ grid-template-columns:1fr; gap:40px; }
}

/* ---------- Inquiry form (inside the CTA band's right column) ---------- */
.inquiry-form-wrap{
  /* No top border/margin here anymore — this now sits in its own column
     beside the call info, not stacked below a button. */
}
.inquiry-form-wrap .inquiry-form-lead{
  color:rgba(255,255,255,0.6);
  margin-bottom:14px;
}
.inquiry-form{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
  align-items:end;
}
.inquiry-form[hidden]{
  /* Setting display:grid above means the browser's default "hidden
     attribute = display:none" behavior gets silently overridden —
     any author CSS that sets display on an element always wins over
     the hidden attribute's built-in styling, no matter how specific.
     This makes the override explicit instead, so JS's form.hidden =
     true actually hides it once the confirmation message swaps in. */
  display:none;
}
.inquiry-form-model-note{
  grid-column:1 / -1;
  font-size:14.5px;
  color:rgba(255,255,255,0.85);
  margin:0 0 4px;
}
.inquiry-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.inquiry-field span{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.65);
}
.inquiry-field input,
.inquiry-field select{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.28);
  border-radius:4px;
  padding:11px 12px;
  color:#fff;
  font-family:'Inter', sans-serif;
  font-size:14.5px;
}
.inquiry-field input::placeholder{
  color:rgba(255,255,255,0.45);
}
.inquiry-field select{ cursor:pointer; }
.inquiry-field select option{
  color:var(--ink); /* dropdown list itself renders with normal (light) OS styling */
}
.inquiry-submit{
  grid-column:1 / -1;
  justify-self:start;
  margin-top:4px;
  cursor:pointer;
}
.inquiry-submit[disabled]{
  opacity:0.6;
  cursor:default;
}
.inquiry-form-error{
  grid-column:1 / -1;
  color:#ffb4b4;
  font-size:13.5px;
  margin:8px 0 0;
}
@media (max-width:600px){
  .inquiry-form{ grid-template-columns:1fr; }
  .inquiry-submit{ width:100%; justify-content:center; }
}

/* ---------- Inquiry form: success confirmation ---------- */
.inquiry-success-label{
  color:rgba(255,255,255,0.5);
  margin:0 0 10px;
}
.inquiry-success-heading{
  color:#fff;
  font-size:24px;
  margin:0 0 10px;
}
.inquiry-success .inquiry-success-note{
  font-style:italic;
  color:rgba(255,255,255,0.75);
  font-size:15px;
  margin:0 0 20px;
  max-width:46ch;
}
.inquiry-success-divider{
  height:1px;
  background:rgba(255,255,255,0.14);
  margin:0 0 20px;
}
.inquiry-success .inquiry-success-fallback{
  font-size:13.5px;
  color:rgba(255,255,255,0.6);
  margin:0;
}
.inquiry-success-fallback a{
  color:var(--sand);
  text-decoration:underline;
}
.inquiry-success-fallback a:hover{ color:#fff; }

/* ---------- Footer ---------- */
footer{
  background:var(--dark-deep);
  color:var(--sand-pale);
}
.foot-top{
  padding:64px 32px 48px;
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:40px;
}
.foot-brand{ display:flex; gap:12px; align-items:center; }
.foot-brand img{ height:40px; width:40px; }
.foot-brand .word{ font-family:'Fraunces', serif; font-weight:600; color:var(--sand-pale); font-size:17px; }
footer p.tag{
  margin-top:16px;
  font-size:14px;
  color:rgba(246,239,227,0.6);
  max-width:32ch;
}
footer h5{
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--sand);
  margin:0 0 18px;
}
footer ul{ display:flex; flex-direction:column; gap:11px; }
footer li a{ font-size:14.5px; color:rgba(246,239,227,0.82); }
footer li a:hover{ color:#fff; }
.foot-bottom{
  border-top:1px solid rgba(246,239,227,0.12);
  padding:22px 32px;
}
.foot-bottom .wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.foot-bottom .mono{ color:rgba(246,239,227,0.45); }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  nav.links{ display:none; }
  .cards{ grid-template-columns:1fr 1fr; }
  .services-grid{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr 1fr; row-gap:36px; }
  .steps::before{ display:none; }
  .about-copy-columns{ grid-template-columns:1fr; gap:18px; }
  .badges{ grid-template-columns:1fr 1fr; }
  .area-grid{ grid-template-columns:1fr; gap:32px; }
  .gallery{ grid-template-columns:1fr 1fr; }
  .foot-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
    html{
    scroll-padding-top: 76px;
  }
  .wrap{ padding:0 24px; }
  .sheet-inner{ padding-top:44px; padding-bottom:48px; }
  .hero .wrap{ padding-top:32px; padding-bottom:32px; }
  .cards{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:1fr; gap:16px; }
  .badges{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns:1fr; }
  .foot-top{ grid-template-columns:1fr; padding:52px 20px 36px; }
  .cta-band .wrap{ padding:52px 20px; }
  .nav{ padding:12px 20px; }
  .brand{ gap:14px; }
.brand img{ height:72px; width:180px; margin:0 0 -13px 0; }
  .brand .word{ font-size:16px; }
  .brand .word span{ font-size:8px; }
}
/* ---------- ADU Models ---------- */
.model-groups{ margin-top:8px; }
.model-group{ margin-top:52px; }
.model-group:first-child{ margin-top:44px; }
.model-group-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding-bottom:14px;
  margin-bottom:24px;
  border-bottom:1px solid var(--line);
}
.model-group-head h3{
  font-size:19px;
}
.model-group-head .mono{
  color:var(--teal-deep);
  white-space:nowrap;
}
.model-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}
.model-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.model-card{
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  transition:border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.model-card:hover{
  border-color:var(--dark);
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(21,53,78,0.12);
}
.model-image{
  aspect-ratio:4/3;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.model-image svg{
  width:56%;
  height:56%;
}
.model-info{
  padding:16px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:6px;
  border-top:1px solid var(--line);
}
.model-name-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.model-name-row h4{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:17.5px;
  color:var(--dark);
  margin:0;
  letter-spacing:-0.01em;
}
.model-price{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  color:var(--teal-deep);
  font-weight:500;
  white-space:nowrap;
}
.model-sqft{
  color:var(--dark-deep);
  opacity:0.6;
  font-size:11px;
}
.model-desc{
  font-size:13.5px;
  color:var(--dark-deep);
  opacity:0.82;
  margin:6px 0 0;
  line-height:1.5;
}

@media (max-width:980px){
  .model-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .model-grid{ grid-template-columns:1fr; }
  .model-group-head{ flex-direction:column; align-items:flex-start; gap:6px; }
}

/* ---------- Model page template ---------- */
.model-top{
  background:linear-gradient(180deg, var(--sand-pale) 0%, var(--sand-mid) 100%);
}
.model-top .wrap{
  padding-top:36px;
  padding-bottom:40px;
}
.model-breadcrumb a{
  color:var(--teal-deep);
  font-weight:500;
}
.model-breadcrumb a:hover{ color:var(--dark); }
.model-head{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.model-head h1{
  font-size:clamp(34px, 5vw, 52px);
  line-height:1.05;
}
.model-head-tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tag-pill{
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--dark);
  border:1px solid var(--dark);
  border-radius:999px;
  padding:6px 14px;
}
.tag-pill .loft-note{ opacity:0.6; }
.model-stats{
  margin-top:28px;
  justify-content:flex-start;
  border-top:1px solid rgba(21,53,78,0.18);
}
.model-stats div{ text-align:left; }

/* Overview */
.overview-copy{
  margin-top:22px;
  max-width:90ch;
}
.overview-copy p{
  font-size:16.5px;
  color:var(--dark-deep);
  margin:0 0 14px;
}
.overview-copy p.lead{
  font-family:'Fraunces', serif;
  font-size:23px;
  color:var(--dark);
  line-height:1.4;
  font-weight:500;
}

/* ---------- Model page: Details (media stack + quick facts) ---------- */
.model-details-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr 320px;
  gap:44px;
  align-items:start;
}
.facts-panel{ grid-column:2; grid-row:1; }
.media-stack{ grid-column:1; grid-row:1; }

.media-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.media-figure{ margin:0; }
.media-group-label{
  color:var(--teal-deep);
  margin-bottom:12px;
  display:block;
}
.media-trio{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.media-stack .model-image{
  aspect-ratio:11/8;
  border:1px solid var(--line);
  border-radius:6px;
  background:#ffffff;
  position:relative;
  overflow:hidden;
}
.media-stack .model-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-caption{
  margin-top:10px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  color:var(--dark-deep);
  opacity:0.62;
  letter-spacing:0.02em;
}

.zoomable{ cursor:zoom-in; }
.zoomable .model-image{ transition:box-shadow 0.2s ease; }
.zoomable:hover .model-image{ box-shadow:0 10px 26px rgba(21,53,78,0.16); }
.zoom-hint{
  position:absolute;
  top:12px; right:12px;
  width:34px; height:34px;
  border-radius:50%;
  background:rgba(14,36,56,0.72);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(-2px);
  transition:opacity 0.18s ease, transform 0.18s ease;
  pointer-events:none;
}
.zoom-hint svg{ width:15px; height:15px; }
.zoomable:hover .zoom-hint, .zoomable:focus-visible .zoom-hint{ opacity:1; transform:translateY(0); }

.facts-panel{
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
  padding:22px 22px;
  position:sticky;
  top:104px;
}
.facts-panel h4{
  color:var(--teal-deep);
  margin:0 0 4px;
}
.facts-panel ul{
  margin-top:12px;
  display:flex;
  flex-direction:column;
}
.facts-panel li{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.facts-panel li:last-child{ border-bottom:none; padding-bottom:0; }
.fact-label{
  font-size:14px;
  color:var(--dark-deep);
  opacity:0.75;
}
.fact-value{
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
  color:var(--dark);
  font-weight:500;
  text-align:right;
}
.facts-panel .btn{
  width:100%;
  justify-content:center;
  margin-top:22px;
}

@media (max-width:980px){
  .model-details-grid{ grid-template-columns:1fr; gap:32px; }
  .facts-panel{ grid-column:1; grid-row:1; position:static; }
  .media-stack{ grid-column:1; grid-row:2; }
}
@media (max-width:600px){
  .media-trio{ grid-template-columns:1fr; }
  .model-head{ gap:14px; }
  .facts-panel{ padding:24px 20px; }
  .facts-panel li{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }
  .fact-value{ text-align:left; }
}

/* ---------- Model page: top bar (breadcrumb + share) ---------- */
.model-top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

/* ---------- Share button ---------- */
.share-wrap{ position:relative; }
.share-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:13.5px;
  padding:9px 16px;
  border-radius:999px;
  border:1.5px solid var(--dark);
  background:transparent;
  color:var(--dark);
  cursor:pointer;
  transition:background 0.18s ease, color 0.18s ease;
}
.share-btn svg{ width:15px; height:15px; }
.share-btn:hover{ background:var(--dark); color:var(--paper); }

.share-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 14px 30px rgba(21,53,78,0.18);
  padding:6px;
  display:flex;
  flex-direction:column;
  min-width:180px;
  z-index:120;
}
.share-menu[hidden]{ display:none; }
.share-menu-item{
  display:flex;
  align-items:center;
  width:100%;
  padding:10px 12px;
  font-family:'Inter', sans-serif;
  font-size:14px;
  font-weight:500;
  color:var(--dark);
  border-radius:5px;
  border:none;
  background:none;
  cursor:pointer;
  text-align:left;
}
.share-menu-item:hover{ background:var(--sand-pale); }

.share-toast{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  background:var(--dark);
  color:var(--sand-pale);
  font-family:'Inter', sans-serif;
  font-size:12.5px;
  font-weight:600;
  padding:8px 14px;
  border-radius:999px;
  white-space:nowrap;
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity 0.2s ease, transform 0.2s ease;
  z-index:120;
}
.share-toast.show{ opacity:1; transform:translateY(0); }

@media (max-width:600px){
  .share-menu{ right:-8px; }
  .share-toast{ right:-8px; }
}

/* ---------- Lightbox ---------- */
body.lightbox-lock{ overflow:hidden; }

.lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  display:none;
}
.lightbox.open{ display:block; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(14,36,56,0.72);
  opacity:0;
  transition:opacity 0.25s ease;
}
.lightbox.open .lightbox-backdrop{ opacity:1; }

.lightbox-panel{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-48%) scale(0.97);
  width:min(96vw, 1500px);
  max-height:94vh;
  background:var(--paper);
  border-radius:10px;
  padding:20px;
  opacity:0;
  transition:opacity 0.22s ease, transform 0.22s ease;
  overflow-y:auto;
}
.lightbox.open .lightbox-panel{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}
.lightbox-panel img{
  display:block;
  width:100%;
  height:auto;
  max-height:86vh;
  object-fit:contain;
  border-radius:5px;
  background:#ffffff;
}
.lightbox-caption{
  margin-top:14px;
  font-size:12px;
  color:var(--dark-deep);
  opacity:0.65;
  letter-spacing:0.02em;
}
.lightbox-handle{ display:none; }

.lightbox-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border-radius:50%;
  border:none;
  background:var(--dark);
  color:var(--sand-pale);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  transition:background 0.18s ease;
}
.lightbox-close:hover{ background:var(--dark-deep); }
.lightbox-close svg{ width:16px; height:16px; }

@media (max-width:600px){
  .lightbox-panel{
    top:auto;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-height:86vh;
    border-radius:16px 16px 0 0;
    padding:14px 16px calc(16px + env(safe-area-inset-bottom));
    transform:translateY(100%);
  }
  .lightbox.open .lightbox-panel{
    transform:translateY(0);
  }
  .lightbox-handle{
    display:block;
    width:38px;
    height:4px;
    border-radius:999px;
    background:var(--line);
    margin:0 auto 14px;
  }
  .lightbox-panel img{ max-height:64vh; }
}

/* ---------- Other Models (side-scroll) ----------
   New section, styled to match the drafting-sheet system above. */
.other-models-scroller{
  position:relative;
}

.other-models-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  padding-bottom:8px;
  cursor:grab;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;      /* Firefox */
  -ms-overflow-style:none;   /* old Edge/IE */
}
.other-models-track::-webkit-scrollbar{
  display:none;              /* Chrome, Safari, new Edge */
}
.other-models-track:active{ cursor:grabbing; }

.scroll-arrow{
  position:absolute;
  top:calc(50% - 16px);   /* roughly centered on the card image, not the whole row */
  width:38px;
  height:38px;
  border-radius:50%;
  border:1.5px solid var(--dark);
  background:var(--paper);
  color:var(--dark);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  transition:background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  box-shadow:0 6px 16px rgba(21,53,78,0.14);
}
.scroll-arrow:hover{
  background:var(--dark);
  color:var(--paper);
}
.scroll-arrow svg{ width:18px; height:18px; }
.scroll-arrow-left{ left:-19px; }
.scroll-arrow-right{ right:-19px; }
/* The carousel now loops infinitely (see site.js), so arrows are never
   disabled/faded anymore — both stay active at all times. */
@media (max-width:640px){
  /* Off-canvas arrows are awkward on narrow phone widths — rely on
     native touch-scrolling instead, same as the rest of the site. */
  .scroll-arrow{ display:none; }
}

.other-model-card{
  flex:0 0 auto;
  width:220px;
  scroll-snap-align:start;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:var(--paper);
  transition:border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.other-model-card:hover{
  border-color:var(--dark);
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(21,53,78,0.12);
}
.other-model-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  background:#ffffff;
  display:block;
}
.other-model-card .other-model-info{
  padding:14px 16px 16px;
  border-top:1px solid var(--line);
}
.other-model-card h4{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:16px;
  color:var(--dark);
  margin:0 0 6px;
}
.other-model-facts{
  display:flex;
  gap:12px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  color:var(--dark-deep);
  opacity:0.65;
}
