/* ===== Lot & Line — v51n (projects fixes: numbers + process shell) ===== */
:root{
  --gold:#C8A24A;
  --ink:#171512; --muted:#6b655e; --line:#E0D7C7;
  --olive:#222b13;
  --graph:#1f2224; --graph-ink:#F2EFE7;
  --projectGrey:#353834;
  --max:1160px; --headerH:74px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;max-width:100%;overflow-x:hidden}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);line-height:1.7;background:#fff}
a{color:inherit;text-decoration:none}

html,
body {
  background-color: #171512; /* your dark ink color instead of white */
}

/* --- Header --- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(17,17,17,.55); color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
.header-bar{
  position:relative;
  max-width:var(--max); margin:0 auto; padding:10px 18px; min-height:var(--headerH);
  display:grid; grid-template-columns:1fr auto 1fr; grid-template-areas:"nav brand contact";
  align-items:center; gap:16px;
}
#siteNav{grid-area:nav; display:flex; gap:18px; white-space:nowrap}
#siteNav a{color:#fff; font-size:12px; opacity:.95}
.brand{grid-area:brand; position:absolute; left:50%; transform:translateX(-50%)}
.brand-logo{height:34px; opacity:0; transition:opacity .25s ease}
body.past-hero .brand-logo{opacity:1}
.header-right{grid-area:contact; justify-self:end; display:flex; align-items:center; gap:14px}
.header-strap{display:none; text-align:right; line-height:1.05; font-size:12px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:#fff}
.header-strap span{display:block}
body.past-hero .header-strap{display:block}
.contact-cta{
  display:inline-block; padding:8px 12px; font-size:12px;
  background:var(--gold); color:#111; border:1px solid #b08b31; border-radius:999px;
  font-weight:600; transition:transform .15s,box-shadow .2s,background .2s
}
.contact-cta:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(200,162,74,.35);background:#d6b65c}
.menu-toggle{display:none;background:transparent;border:0;padding:6px;cursor:pointer}
.menu-toggle span{display:block;width:22px;height:2px;background:#fff;margin:4px 0;border-radius:2px}
.nav-panel{display:none}

/* --- Layout helpers --- */
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px}
section{padding:40px 0; scroll-margin-top:calc(var(--headerH) + 4px); position:relative}
.alt-graphite{background:var(--graph); color:var(--graph-ink)}

/* --- Hero --- */
.hero{position:relative}
.fullvh{min-height:100vh; display:grid; place-items:center; align-content:center}
.hero-bg{position:absolute; inset:0; background-size:cover; background-position:center}
.hero-inner{position:relative; z-index:2; color:#fff; text-shadow:0 1px 12px rgba(0,0,0,.25); text-align:center}
.display{
  font-family:"Cormorant Garamond",serif; letter-spacing:.12em; text-transform:uppercase;
  margin:0 0 10px; font-weight:700; line-height:1.06; color:#fff; font-size:36px
}
@media (min-width:600px){.display{font-size:52px}}
@media (min-width:1000px){.display{font-size:66px}}
.script{
  font-family:"Mrs Saint Delafield","Pinyon Script",cursive; letter-spacing:0;
  font-weight:400; font-size:1.4em; text-transform:none; display:inline-block;
  transition:opacity .18s ease; color:#fff
}
.script.fade{opacity:.82}
.substrap{margin-top:6px; font-family:"Cormorant Garamond",serif; letter-spacing:.12em; text-transform:uppercase; opacity:.95}
.hero-badge{position:absolute; left:50%; transform:translateX(-50%); top:calc(var(--headerH) + 28px); z-index:4}
.hero-logo{height:88px; display:block}

/* Hero arrow */
.scroll-indicator.is-abs{ position:absolute; left:50%; transform:translateX(-50%); bottom:76px; }
.arrow-wrap{display:flex; justify-content:center; margin:12px 0 0; z-index:4; position:relative}
.scroll-indicator{display:inline-block; z-index:4; animation:bounce 1.8s ease-in-out infinite}
.scroll-indicator svg{width:28px; height:28px}
.scroll-indicator svg path{stroke:var(--gold)!important; stroke-width:2; fill:none}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}

/* ===== Tagline ===== */
section.tagline{ padding:22px 0; }
.tagline{ position:relative; background:#000; color:var(--gold); }
.tagline .wrap{ position:relative; z-index:1; min-height:40vh; display:grid; place-items:center; text-align:center; }
.tagline .line{
  font-family:"Mrs Saint Delafield","Pinyon Script",cursive;
  color:var(--gold); font-weight:400; line-height:1.12;
  font-size:clamp(36px, 11vw, 76px);
  margin:0;
}
.tagline .seg{ display:inline; opacity:0; transform:translateY(26px); transition:opacity 1.05s ease, transform 1.05s ease; }
.tagline .seg.show{ opacity:1; transform:none; }
.tagline .s2,.tagline .s3{ margin-left:.12em; }

/* --- Projects (base) --- */
h1,h2,h3{font-family:"Cormorant Garamond",serif; letter-spacing:.12em; text-transform:uppercase; margin:0 0 8px}
.project-types{background:var(--projectGrey); color:#fff}
.project-types h2,.project-types h3{color:#fff; text-align:center}
.lede{
  max-width:760px; margin:8px auto 22px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  letter-spacing:0; text-transform:none;
}
.project-types .lede{ color:var(--gold) !important; text-transform:lowercase; text-align:center; }

.process-title{ margin-top:32px; }
.process-lede{
  color:var(--gold) !important;
  text-align:center;
  margin:6px auto 14px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  max-width:760px; text-transform:lowercase;
}

.type-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:18px}
.type-grid .group h3{margin:0 0 10px}
.type-grid .chips{display:grid; grid-template-columns:1fr 1fr; gap:12px}

.chip{
  background:transparent; border:1.5px solid rgba(200,162,74,.8); color:#f5f2ea;
  padding:14px; border-radius:999px; cursor:pointer; text-align:center;
  transition:transform .15s,box-shadow .2s, background .2s, color .2s, border-color .2s
}
.chip:hover{transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.22)}
.chip.selected{background:var(--gold); color:#111; border-color:#b08b31; box-shadow:0 0 0 3px rgba(200,162,74,.25)}

.timeline{display:flex; flex-wrap:wrap; justify-content:center; gap:8px; position:relative; margin-top:16px}
.timeline .progress{position:absolute; left:0; top:-6px; height:3px; background:var(--gold); width:20%; transition:width .25s}
.step{background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.22); padding:10px 14px; border-radius:999px; cursor:pointer}
.step.active{border-color:var(--gold); background:rgba(255,255,255,.12)}

/* ===== Process box — always visible shell (before selection) ===== */
#tlPanels{
  position:relative;
  max-width:920px;
  margin:14px auto 0;
  min-height:150px;                    /* keeps the box visible by default */
}
#tlPanels::before{
  content:"";
  position:absolute; inset:0;
  border:1.5px solid var(--gold);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  pointer-events:none;
  z-index:0;
}
/* Panels sit above the shell; only text is toggled by JS */
#tlPanels .panel{
  position:absolute; inset:0;
  display:none;
  background:transparent;              /* avoid double fill/border */
  border:none;
  color:#fff;
  border-radius:12px;
  padding:16px 18px 32px;
  line-height:1.6;
  z-index:1;
}
#tlPanels .panel.show{ display:block; }

/* ===== Numbers on section headings (scoped to #projects) ===== */
/* Left-align titles and show gold circle numbers on all viewports */
#projects h2.with-step,
#projects .process-title.with-step,
#projects .needs-title.with-step{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  padding-left:0 !important;
  text-align:left !important;
  margin:0 0 10px 0;
}
#projects h2.with-step::before,
#projects .process-title.with-step::before,
#projects .needs-title.with-step::before{
  content: attr(data-step) !important;
  position:static !important;   /* avoid absolute misalignment */
  transform:none !important;
  display:inline-grid !important;
  place-items:center !important;
  width:32px; height:32px; border-radius:999px;
  background:var(--gold);
  color:#111;                   /* high contrast numeral */
  font:700 15px/1 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  box-shadow:0 0 0 3px rgba(200,162,74,.20);
}
@media (max-width:600px){
  #projects h2.with-step::before,
  #projects .process-title.with-step::before,
  #projects .needs-title.with-step::before{
    width:28px; height:28px; font-size:14px;
  }
}

/* Hide the helper lines you don’t want in this section */
#projects > .wrap > .lede:first-of-type,
#projects .process-lede,
#projects #tlHint{ display:none !important; }

/* --- Contact --- */
#needs{scroll-margin-top:calc(var(--headerH) + 20px); margin-top:34px}
.contact-mini{margin-top:20px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; max-width:920px; margin-inline:auto}
.contact-mini textarea{width:100%; padding:12px; border:1px solid var(--line); border-radius:12px; margin-bottom:12px}
.mini-grid{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin-bottom:16px}
.mini-grid input{padding:12px; border:1px solid var(--line); border-radius:12px; width:100%}
.btn{display:inline-block; padding:12px 18px; border-radius:999px; background:#111; color:#fff; border:1px solid #000; transition:transform .15s,box-shadow .2s}
.btn:hover{transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,0,0,.08)}
.send-row{display:flex; align-items:center; gap:10px}
.req-note{font-size:12px; opacity:.8}

/* ===== Design & Development Packages ===== */

#design-packages,
#development-packages{
  position:relative;
  padding:56px 0 48px;
  color:#fff;
  overflow:hidden;
}

/* Background image + smoked overlay */

#design-packages::before,
#development-packages::before{
  content:"";
  position:absolute;
  inset:0;
  background-size:cover;
      background-color: rgba(0,0,0,0.05); /* much lighter */
  background-position:center;
  background-repeat:no-repeat;
  z-index:0;
}


/* Set your actual image filenames here */
#design-packages::before{
  /* PNW Earth Minimalism image */
  background-image: url("../img/packages/design_package.PNG");
}

#development-packages::before{
  /* Development / land image */
  background-image: url("../img/packages/development_package.PNG");
}

#design-packages::after,
#development-packages::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.05));
  z-index:0;
}


#design-packages .wrap,
#development-packages .wrap{
  position:relative;
  z-index:1;
}

/* Headings + lead text */

#design-packages h2,
#development-packages h2{
  text-align:center;
  color:#fff;
  margin-bottom:10px;
}

#design-packages .lede,
#development-packages .lede{
  color:#f5f5f5;
  text-align:left;
  max-width:840px;
}

.lede.lede-small{
  font-size:.9rem;
  opacity:.9;
}

.packages-note{
  margin-top:20px;
}

/* Cards / grid */

.packages-grid{
  display:grid;
  gap:18px;
  margin-top:24px;
}

@media (min-width:780px){
  .packages-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

.package-card{
  background:rgba(0,0,0,.72);            /* smoked black */
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  padding:18px 18px 16px;
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}

.package-card h3{
  margin:0 0 6px;
  font-family:"Cormorant Garamond",serif;
  letter-spacing:.11em;
  text-transform:uppercase;
  font-size:18px;
}

.package-who{
  font-size:.9rem;
  margin:0 0 8px;
  opacity:.92;
}

.package-list{
  margin:0;
  padding-left:18px;
  font-size:.9rem;
  line-height:1.5;
}

.package-list li + li{
  margin-top:4px;
}
/* ==== Packages: Details button styling ==== */

.package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.package-toggle {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.package-toggle:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--gold);
}

.package-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ensure hidden bodies don't occupy space */
.package-body[hidden] {
  display: none;
}
/* ===== Packages: gold-outlined smoked cards ===== */

#design-packages .package-card,
#development-packages .package-card{
  border: 1px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(200,162,74,.25);
}

#design-packages .package-card:hover,
#development-packages .package-card:hover{
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(200,162,74,.45);
  transform: translateY(-2px);
}
/* Arrow spacing for these bands */

#design-packages .arrow-wrap,
#development-packages .arrow-wrap{
  margin-top:32px;
}
/* ===== Packages: gold-outlined smoked cards ===== */

#design-packages .package-card,
#development-packages .package-card{
  border: 1px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(200,162,74,.25);
}

#design-packages .package-card:hover,
#development-packages .package-card:hover{
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(200,162,74,.45);
  transform: translateY(-2px);
}
/* --- About (gold background) --- */
.about-gold{background:var(--gold); color:#111}
.about-gold h2,.about-gold p{color:#111}
.about-title{
  font-family:"Mrs Saint Delafield","Pinyon Script",cursive;
  text-transform:lowercase; letter-spacing:0; text-align:left; font-size:3.2rem;
}

/* About layout */
.about-grid.v3{
  display:grid;
  grid-template-columns:1.6fr 1fr;
  grid-template-areas:
    "m-title m-pic"
    "m-copy  m-pic"
    "m-copy  m-pic"
    "sep     sep"
    "f-title f-pic"
    "f-copy  f-pic"
    "f-copy  f-pic";
  column-gap:28px; row-gap:18px; align-items:start;
}
.about-sub{margin:0 0 6px; font-family:"Cormorant Garamond",serif; letter-spacing:.18em; text-transform:uppercase; font-size:14px; color:#111}
.about-sub.matthew{ grid-area:m-title; }
.portrait.matthew{  grid-area:m-pic; }
.about-copy{        grid-area:m-copy; }
.about-sep{         grid-area:sep; border:0; height:1px; background:rgba(0,0,0,.22); margin:6px 0; }
.about-sub.felix{   grid-area:f-title; }
.portrait.felix{    grid-area:f-pic; }
.felix-text{        grid-area:f-copy; }

.about-grid.v3 .portrait img{
  width:100%; height:auto; display:block;
  aspect-ratio:4/5; object-fit:cover; border-radius:18px;
}

/* paragraph reveal */
.rev{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.rev.show{ opacity:1; transform:none; }

/* --- Puget Sound --- */
.service-area{background:var(--gold); color:#111}
.service-area h2,.service-area p{color:#111}

/* --- Footer --- */
.site-footer{background:#111; color:#ddd; border-top:1px solid rgba(255,255,255,.08); padding:20px 0 36px}
.site-footer a{color:#ddd}

/* ===== Responsive ===== */
@media (max-width:900px){
  .type-grid{grid-template-columns:1fr}
  .type-grid .chips{grid-template-columns:1fr 1fr}
  .mini-grid{grid-template-columns:1fr}
  .about-title{font-size:2.6rem}
  .about-grid.v3{
    grid-template-columns:1fr;
    grid-template-areas:
      "m-title" "m-pic" "m-copy"
      "sep"
      "f-title" "f-pic" "f-copy";
  }
  .about-grid.v3 .portrait img{ max-width:520px; margin:0 auto; }
}

/* Nav collapse block (unchanged) */
@media (max-width:820px){
  .header-bar{grid-template-columns:auto 1fr auto; grid-template-areas:"menu brand contact"}
  .menu-toggle{display:block}
  #siteNav{display:none}
  .nav-panel{display:none; position:fixed; top:var(--headerH); left:0; right:0; background:#111; border-bottom:1px solid rgba(255,255,255,.1); z-index:999}
  .nav-panel a{display:block; color:#fff; padding:14px 20px; border-top:1px solid rgba(255,255,255,.08)}
  .nav-open .nav-panel{display:block}
  .brand{position:absolute; left:50%; transform:translateX(-50%); z-index:2}
  .header-right{max-width:calc(50vw - 70px); overflow:hidden; gap:8px}
  body.past-hero .header-strap{display:block; font-size:10px; line-height:1.05; letter-spacing:.16em}
  .contact-cta{padding:6px 10px; font-size:11px; white-space:nowrap}
}
@media (max-width:360px){
  .header-strap{display:none}
  .contact-cta{padding:6px 8px; font-size:10px}
}

/* ===== Mobile logo centering fix (merged & CLOSED properly) ===== */
@media (max-width:820px){
  .header-bar{
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "menu brand contact";
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
  .menu-toggle{ grid-area: menu; justify-self: start; }
  .brand{
    grid-area: brand;
    position: static; left: auto; transform: none; justify-self: center;
  }
  .brand-logo{ display:block; height:34px; }
  .header-right{
    grid-area: contact; justify-self: end; max-width: none; overflow: visible;
  }
}

/* ===== Studies (your existing styles retained) ===== */
.study-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:16px;
}
@media (max-width:900px){ .study-grid{ grid-template-columns:1fr; } }

.study-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px; overflow:hidden;
  display:grid; grid-template-columns: 240px 1fr;
}
@media (max-width:700px){ .study-card{ grid-template-columns:1fr; } }
.study-thumb img{ display:block; width:100%; height:100%; object-fit:cover; }

.study-body{ padding:14px 16px; color:#fff; }
.study-title{ margin:0 0 4px; color:#fff; }
.study-kicker{ margin:0 0 10px; color:#ddd; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
.study-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }

.study-detail{ display:none; border-top:1px solid rgba(255,255,255,.12); margin-top:10px; padding-top:12px; }
.study-card.open .study-detail{ display:block; }
.study-detail h4{ margin:12px 0 6px; color:#fff; }
.study-detail ul{ margin:0 0 8px 18px; }
.study-detail .faq summary{ cursor:pointer; }
.study-detail .es{ font-style:italic; opacity:.9; }

.study-meta{ display:flex; gap:14px; font-size:.9em; opacity:.9; margin:6px 0 10px; }
.study-ctas{ display:flex; flex-wrap:wrap; gap:10px; }
.btn.ghost{ background:transparent; color:#fff; border-color:#fff; }
.study-body[hidden]{ display:none; }

/* Dark pill version (matching timeline look) */
.studies .studies-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:900px){ .studies .studies-grid{ grid-template-columns:1fr; } }
.study-card{ background:var(--graph); color:var(--graph-ink); border:1.5px solid var(--gold); border-radius:14px; padding:16px 18px; }
.study-head{ display:grid; grid-template-columns:1fr auto; gap:10px; align-items:start; }
.study-head h3{ margin:0 0 6px; color:var(--graph-ink); font-family:"Cormorant Garamond",serif; letter-spacing:.06em; text-transform:none; }
.study-tags{
  grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:6px 8px; list-style:none;
  padding:0; margin:0 0 6px;
}
.study-tags li{
  padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18); color:var(--graph-ink);
  font-size:12px; letter-spacing:.12em; text-transform:uppercase;
}
.study-toggle{
  justify-self:end; padding:10px 14px; border-radius:999px;
  background:transparent; border:1.5px solid rgba(200,162,74,.8);
  color:#f5f2ea; font-weight:600; cursor:pointer;
  transition:transform .15s,box-shadow .2s,background .2s,color .2s,border-color .2s;
}
.study-toggle:hover{ transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.22); }
.study-toggle[aria-expanded="true"]{
  background:var(--gold); color:#111; border-color:#b08b31; box-shadow:0 0 0 3px rgba(200,162,74,.25);
}

/* Reveal on scroll + accordion transitions */
.study-card.rev{ opacity:0; transform:translateY(12px); transition:opacity .6s ease, transform .6s ease; }
.study-card.rev.show{ opacity:1; transform:none; }
.study-body{ overflow:hidden; max-height:0; opacity:0; transition:max-height .35s ease, opacity .3s ease; will-change:max-height, opacity; margin-top:8px; }
.study-card.open .study-body{ opacity:1; }

/* Masonry on wide */
@media (min-width: 960px){
  .studies .studies-grid{ columns:2; column-gap:18px; display:block !important; }
  .studies .study-card{
    display:block; break-inside:avoid; -webkit-column-break-inside:avoid; -moz-column-break-inside:avoid; column-break-inside:avoid; margin:0 0 18px;
  }
}
@media (max-width: 959.98px){
  .studies .studies-grid{ display:block !important; }
  .studies .study-card{ margin-bottom:18px; }
}
.study-thumb{ margin:0 0 10px; overflow:hidden; border-radius:10px; }
.study-thumb img{ display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }

/* Resources reuse */
#resources .study-head h3{ text-transform:none; letter-spacing:.02em; }
#resources .study-tags li{ letter-spacing:.1em; }
.resource-card .study-body{ max-height:none !important; opacity:1 !important; overflow:visible !important; margin-top:10px; }
.resource-card .study-toggle{ display:inline-block; text-align:center; }
#resources .study-tags li{ letter-spacing:.1em; }

/* Hide Resources section entirely if desired */
/* #resources{ display:none !important; } */

/* ===== v51p — final polish ===== */

/* Desktop (≥821px): badge centered ABOVE, title centered BELOW */
@media (min-width: 821px){
  #projects h2.with-step,
  #projects .process-title.with-step,
  #projects .needs-title.with-step{
    padding-left: 0 !important;
    display: grid !important;
    grid-auto-flow: row;
    justify-items: center;
    text-align: center !important;
    gap: 8px;                        /* space between circle and title */
    margin: 0 0 12px 0;
  }
  #projects h2.with-step::before,
  #projects .process-title.with-step::before,
  #projects .needs-title.with-step::before{
    position: static !important;     /* put the badge in normal flow */
    transform: none !important;
    margin: 0 0 4px 0;               /* small gap below the circle */
    display: grid !important;
    place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold);
    color: #111;
    box-shadow: 0 0 0 3px rgba(200,162,74,.20);
    content: attr(data-step) !important;
  }
}

/* Mobile (≤820px): badge left, title to the right (left-aligned) */
@media (max-width: 820px){
  #projects h2.with-step,
  #projects .process-title.with-step,
  #projects .needs-title.with-step{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-left: 0 !important;
    text-align: left !important;
    margin-left: 0 !important;
  }
  #projects h2.with-step::before,
  #projects .process-title.with-step::before,
  #projects .needs-title.with-step::before{
    position: static !important;
    transform: none !important;
    flex: 0 0 28px;
    width: 28px; height: 28px;
    margin: 0;
    display: grid !important;
    place-items: center;
    border-radius: 999px;
    background: var(--gold);
    color: #111;
    box-shadow: 0 0 0 3px rgba(200,162,74,.20);
    content: attr(data-step) !important;
  }

  /* Extra breathing room between “3 – tell me more…” and the timeline box */
  #projects .needs-title.with-step{ margin-top: 24px !important; }
}

/* Re-hide Resources section */
#resources{ display: none !important; }

/* ===== v51q — center step headings on desktop; keep mobile as-is ===== */

/* Desktop (≥821px): circle centered ABOVE, title centered BELOW */
@media (min-width: 821px){
  #projects h2.with-step,
  #projects .process-title.with-step,
  #projects .needs-title.with-step{
    /* center the whole unit in the section */
    display: grid !important;
    grid-auto-flow: row;
    justify-items: center;
    text-align: center !important;

    /* make the element itself center */
    width: max-content;
    margin: 0 auto 14px !important;
    padding-left: 0 !important;     /* kill any left-indent styles */
  }

  #projects h2.with-step::before,
  #projects .process-title.with-step::before,
  #projects .needs-title.with-step::before{
    /* badge in normal flow, above the title */
    position: static !important;
    transform: none !important;
    margin: 0 0 6px 0;

    display: grid !important;
    place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold);
    color: #111;
    box-shadow: 0 0 0 3px rgba(200,162,74,.20);
    content: attr(data-step) !important;
  }
}

/* Mobile (≤820px): left-aligned badge + title, with extra space before the box */
@media (max-width: 820px){
  /* small breathing room between “3 — tell us more …” and the timeline box */
  #projects .needs-title.with-step{ margin-top: 24px !important; margin-bottom: 18px !important; }
}

/* Always hide Resources */
#resources{ display: none !important; }

/* === v51q.1 — Desktop spacing between timeline box and Step 3 heading === */
@media (min-width: 821px){
  /* Add breathing room below the timeline description box */
  #tlPanels,
  .panels{
    margin-bottom: 36px !important;   /* tweak to taste: 28–48px */
  }

  /* Ensure Step 3 heading isn’t pulling up tight */
  #projects .needs-title.with-step{
    margin-top: 18px !important;      /* extra cushion above the “3” badge/title */
  }
}
/* Service area styling */
.service-area { background: var(--gold); color:#111; }
.service-area h2, .service-area p { color:#111; }

.service-title{
  text-align:center; margin:0 0 6px;
  font-family:"Cormorant Garamond",serif; letter-spacing:.12em; text-transform:uppercase;
}
.service-lede{
  max-width:820px; margin:0 auto 10px; text-align:center;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.service-body, .tacoma-note{ max-width:900px; margin:10px auto; }

.geo-chips{
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
  list-style:none; padding:0; margin:14px auto 8px; max-width:980px;
}
.geo-chips li{
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff; color:#111; font-weight:600;
}

/* counties details */
.counties{
  max-width:900px; margin:10px auto 0; border-top:1px solid rgba(0,0,0,.18); padding-top:10px;
}
.counties summary{
  cursor:pointer; font-weight:700;
  list-style:none;
}
.counties[open] summary{ opacity:.85; }
.counties p{ margin:8px 0 0; }

/* map placeholder */
.map-placeholder{
  margin:16px auto 0; max-width:980px; min-height:220px;
  border:2px dashed rgba(0,0,0,.35); border-radius:12px;
  display:grid; place-items:center; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; background:rgba(255,255,255,.5);
}
/* ==== Puget Sound section — vPS1 (safe to paste at end) ==== */
#puget.service-area { /* keep your gold theme */
  padding: 36px 0 42px;
}
#puget .service-title {
  text-align: center;
}
#puget .service-lede {
  max-width: 880px;
  margin: 6px auto 14px;
  text-align: center;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  opacity: .9;
}
#puget .service-body {
  max-width: 980px;
  margin: 0 auto 12px;
  text-align: center;
}

/* location chips */
#puget .geo-chips {
  list-style: none;
  padding: 0;
  margin: 12px auto 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 1000px;
}
#puget .geo-chips li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.18);
  color: #111;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* counties disclosure */
#puget .counties {
  max-width: 980px;
  margin: 10px auto 4px;
  text-align: center;
}
#puget .counties summary {
  list-style: none; /* Safari */
  cursor: pointer;
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  user-select: none;
}
#puget .counties[open] summary {
  background: rgba(0,0,0,.05);
}
#puget .counties p {
  margin: 10px auto 0;
  opacity: .9;
}

/* Tacoma note */
#puget .tacoma-note {
  max-width: 880px;
  margin: 10px auto 0;
  text-align: center;
}

/* map placeholder (swap later for real map) */
#puget .map-placeholder {
  margin: 16px auto 0;
  max-width: 980px;
  height: 220px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(17,17,17,.35);
  border-radius: 14px;
  font-weight: 600;
  opacity: .75;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.15));
}
/* ===== Design Packages band (separate section between Projects & About) ===== */
#design-packages{
  background: #171512; /* match your dark sections */
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 42px 0 46px;
  color: #fff;
}

#design-packages .wrap{
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
#design-packages .dp-head{
  max-width: 760px;
  margin: 0 0 24px;
}

#design-packages .dp-head .eyebrow{
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  margin: 0 0 6px;
  color: var(--gold);
}

#design-packages .dp-head h2{
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#design-packages .dp-head .lede{
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

/* Packages grid */
#design-packages .dp-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

#design-packages .dp-card{
  background: rgba(0,0,0,.40);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  padding: 16px 18px 18px;
  backdrop-filter: blur(3px) saturate(115%);
}

#design-packages .dp-card h3{
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#design-packages .dp-card .tagline{
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

#design-packages .dp-card ul{
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.92);
}

#design-packages .dp-card li + li{
  margin-top: 3px;
}

#design-packages .dp-card .who{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

/* Footer note */
#design-packages .dp-foot{
  max-width: 760px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

/* Responsive stacking */
@media (max-width: 980px){
  #design-packages .dp-grid{
    grid-template-columns: 1fr;
  }
}
/* a little tighter on small screens */
@media (max-width: 700px){
  #puget.service-area { padding: 28px 0 36px; }
  #puget .map-placeholder { height: 200px; }
}

/* Re-hide the Resources section (requested) */
#resources { display: none !important; }

/* Extra breathing room above the “3” badge vs. the timeline box (desktop) */
@media (min-width: 901px){
  #projects #tlPanels { margin-bottom: 28px; }
}

/* === Patch: Studies title center on desktop; Puget left-align on mobile === */

/* 1) STUDIES — center the section title on DESKTOP only */
@media (min-width: 900px){
  #studies h2 {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Keep STUDIES title left-aligned on MOBILE */
@media (max-width: 899.98px){
  #studies h2 {
    text-align: left !important;
  }
}

/* 2) PUGET SOUND — left-align title + text on MOBILE only */
@media (max-width: 820px){
  #puget h2,
  #puget p {
    text-align: left !important;
    margin-left: 0; /* guard against any centered layout */
    margin-right: 0;
  }
}

/* === Puget Sound section — chips, layout, and text === */
#puget .puget-sub { margin: 6px 0 6px; }
#puget .puget-br { display: inline; }
@media (max-width: 820px){
  #puget h2, #puget p { text-align: left !important; }
}

/* Side-by-side toggles (stack on small screens) */
.puget-ctas{
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px;
}
.puget-acc{
  flex: 1 1 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Make the <summary> look like your chips */
.puget-acc > summary{
  list-style: none; cursor: pointer; user-select: none;
  display: inline-block;
  margin: 12px; padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid rgba(200,162,74,.8);
  color: #111; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.puget-acc > summary:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.puget-acc[open] > summary{
  background: var(--gold);
  color: #111;
  border-color: #b08b31;
  box-shadow: 0 0 0 3px rgba(200,162,74,.18);
}

/* The lists inside each accordion */
.puget-acc .pill-list{
  list-style: none; margin: 0; padding: 0 14px 16px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.puget-acc .pill-list li{
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0,0,0,.06); border: 1px solid var(--line);
  font-size: 12px;
}

/* Respect your gold section colors */
.service-area{ background: var(--gold); color: #111; }
.service-area h2,.service-area p{ color:#111; }

/* Re-hide the Resources section */
#resources { display: none !important; }

/* About-only arrow overrides */
#about { position: relative; } /* safety: ensures absolute arrow anchors to section */

#about .scroll-indicator.is-abs{
  bottom: 64px;         /* give it more breathing room above the gold area */
  z-index: 6;           /* keep it above any content in the section */
}

#about .scroll-indicator svg path{
  stroke: #000 !important;    /* black arrow only in About */
  stroke-width: 2.25;         /* a touch thicker so it reads on gold */
}

/* optional subtle lift if it still feels faint on some screens */
#about .scroll-indicator{
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.15));
}
/* About: add space below Felix so the arrow never overlaps */
#about .felix-text p:last-child{
  margin-bottom: 96px;   /* desktop clearance */
}

@media (max-width: 900px){
  #about .felix-text p:last-child{
    margin-bottom: 72px; /* mobile/tablet */
  }
}
/* Studies: gold arrow + spacing so it never overlaps content */
#studies{ position:relative; }
#studies .wrap{ padding-bottom:110px; }         /* space for the arrow */

#studies .scroll-indicator.studies-arrow{
  bottom:56px;                                   /* desktop vertical position */
}
#studies .scroll-indicator.studies-arrow svg path{
  stroke: var(--gold) !important;                /* gold arrow on dark bg */
}

@media (max-width:900px){
  #studies .wrap{ padding-bottom:92px; }         /* a bit less on mobile */
  #studies .scroll-indicator.studies-arrow{ bottom:44px; }
}
/* === Puget Sound: make the Counties/Cities boxes match Studies (graphite pill) === */
#puget .ps-acc,
#puget .svc-acc{                         /* support either class name */
  background: var(--graph);
  color: var(--graph-ink);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  box-shadow: none;
}

/* Summary button inside each box */
#puget .ps-acc > summary,
#puget .svc-acc > summary{
  background: transparent;
  color: var(--graph-ink);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;          /* hide default marker on Safari/iOS */
}
#puget .ps-acc[open] > summary,
#puget .svc-acc[open] > summary{
  background: rgba(255,255,255,.08);     /* subtle highlight when open */
  border-color: var(--gold);
}

/* The list items inside (chips) */
#puget .ps-list li,
#puget .svc-list li{
  display: inline-block;
  margin: 6px 8px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--graph-ink);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Keep the two boxes side-by-side where space allows */
#puget .ps-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
@media (max-width: 760px){
  #puget .ps-row{ grid-template-columns: 1fr; }
}
/* ---- Puget: force graphite boxes even if markup uses .puget-acc ---- */
#puget .puget-acc{
  background: var(--graph) !important;
  color: var(--graph-ink) !important;
  border: 1.5px solid var(--gold) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* summary pill */
#puget .puget-acc > summary{
  list-style: none;
  background: transparent !important;
  color: var(--graph-ink) !important;
  border: 1.5px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  padding: 12px 16px !important;
  cursor: pointer;
}
#puget .puget-acc[open] > summary{
  background: rgba(255,255,255,.08) !important;
  border-color: var(--gold) !important;
}

/* chips inside */
#puget .puget-acc .pill-list li{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: var(--graph-ink) !important;
  border-radius: 999px !important;
  font-size: 12px;
}

/* hide Safari/iOS disclosure marker */
#puget details summary::-webkit-details-marker{ display:none; }
/* Ensure the Studies arrow sits above content and is gold */
#studies{ position: relative; }
#studies .wrap{ padding-bottom: 92px; }               /* room for arrow */
#studies .scroll-indicator.studies-arrow{ bottom: 44px; z-index: 6; }
#studies .scroll-indicator.studies-arrow svg path{
  stroke: var(--gold) !important; stroke-width: 2; fill: none;
}
/* === Studies arrow: always visible, gold, on top === */
#studies{ position: relative; }
#studies .wrap{ padding-bottom: 92px; }                 /* room for arrow */
#studies .studies-arrow{ position:absolute; left:50%; transform:translateX(-50%); bottom:48px; z-index:100; display:block; }
#studies .studies-arrow svg{ width:28px; height:28px; display:block; }
#studies .studies-arrow svg path{ stroke: var(--gold) !important; stroke-width: 2.25; fill:none; }
/* === Puget Sound: subtle PNW forest overlay on gold (no external assets) === */
#puget { position: relative; overflow: hidden; }
#puget > .wrap { position: relative; z-index: 1; } /* keep content above the art */

#puget::before{
  content:"";
  position:absolute; inset:0;
  z-index:0; pointer-events:none;
  /* repeating inline-SVG of minimalist pines in transparent black */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='480' height='260' viewBox='0 0 480 260'>\
<g fill='%23111111' fill-opacity='0.07'>\
  <polygon points='40,220 70,160 100,220'/>   <rect x='68' y='220' width='4' height='12'/>\
  <polygon points='150,230 180,170 210,230'/>  <rect x='178' y='230' width='4' height='12'/>\
  <polygon points='260,215 285,165 310,215'/>  <rect x='283' y='215' width='4' height='12'/>\
  <polygon points='360,225 385,175 410,225'/>  <rect x='383' y='225' width='4' height='12'/>\
  <polygon points='0,240 20,200 40,240'/>      <rect x='18' y='240' width='4' height='12'/>\
  <polygon points='90,245 110,205 130,245'/>   <rect x='108' y='245' width='4' height='12'/>\
  <polygon points='200,238 220,198 240,238'/>  <rect x='218' y='238' width='4' height='12'/>\
  <polygon points='300,242 320,202 340,242'/>  <rect x='318' y='242' width='4' height='12'/>\
  <polygon points='430,244 450,204 470,244'/>  <rect x='448' y='244' width='4' height='12'/>\
</g></svg>");
  background-repeat: repeat;
  background-size: 480px 260px;   /* scale of the tile */
  opacity: 1;                     /* overall pass-through; tweak if needed */
}

/* Fine-tune density per viewport (optional) */
@media (min-width:1200px){
  #puget::before{ background-size: 560px 303px; } /* slightly larger trees on big screens */
}
@media (max-width:480px){
  #puget::before{ background-size: 420px 228px; } /* tighter tile so it still reads on mobile */
}
/* === Puget Sound: detailed single-row PNW forest (darker, longer trunks) === */
#puget { position: relative; overflow: hidden; }
#puget > .wrap { position: relative; z-index: 1; }

/* one band of trees pinned to the bottom; no vertical repeat */
#puget::before{
  content:"";
  position:absolute; inset:0;
  z-index:0; pointer-events:none;

  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240'>\
  <!-- darker silhouette; tweak fill-opacity 0.10–0.16 if needed -->\
  <g fill='%23111111' fill-opacity='0.14'>\
    <!-- Tree A -->\
    <polygon points='60,190 110,120 160,190'/>\
    <polygon points='70,200 110,145 150,200'/>\
    <polygon points='80,210 110,170 140,210'/>\
    <rect x='108' y='210' width='4' height='30'/>\
    \
    <!-- Tree B -->\
    <polygon points='210,200 255,135 300,200'/>\
    <polygon points='220,210 255,155 290,210'/>\
    <polygon points='230,220 255,175 280,220'/>\
    <rect x='253' y='220' width='4' height='20'/>\
    \
    <!-- Tree C (taller trunk) -->\
    <polygon points='350,185 395,115 440,185'/>\
    <polygon points='360,195 395,140 430,195'/>\
    <polygon points='370,205 395,165 420,205'/>\
    <rect x='393' y='205' width='4' height='35'/>\
    \
    <!-- Tree D (narrow) -->\
    <polygon points='480,198 510,145 540,198'/>\
    <polygon points='488,206 510,165 532,206'/>\
    <polygon points='496,214 510,184 524,214'/>\
    <rect x='508' y='214' width='4' height='22'/>\
    \
    <!-- Tree E (wide) -->\
    <polygon points='600,192 655,115 710,192'/>\
    <polygon points='612,204 655,140 698,204'/>\
    <polygon points='624,216 655,167 686,216'/>\
    <rect x='653' y='216' width='4' height='28'/>\
    \
    <!-- Tree F -->\
    <polygon points='740,198 780,135 820,198'/>\
    <polygon points='748,208 780,155 812,208'/>\
    <polygon points='756,218 780,175 804,218'/>\
    <rect x='778' y='218' width='4' height='22'/>\
    \
    <!-- Tree G (tall) -->\
    <polygon points='860,182 905,108 950,182'/>\
    <polygon points='870,194 905,136 940,194'/>\
    <polygon points='880,206 905,165 930,206'/>\
    <rect x='903' y='206' width='4' height='38'/>\
    \
    <!-- Tree H -->\
    <polygon points='980,196 1015,140 1050,196'/>\
    <polygon points='988,206 1015,160 1042,206'/>\
    <polygon points='996,216 1015,178 1034,216'/>\
    <rect x='1013' y='216' width='4' height='24'/>\
    \
    <!-- Tree I (little filler) -->\
    <polygon points='1120,206 1142,170 1164,206'/>\
    <polygon points='1126,214 1142,186 1158,214'/>\
    <rect x='1140' y='214' width='4' height='18'/>\
  </g>\
</svg>");
  background-repeat: repeat-x;          /* only horizontal tiling */
  background-position: bottom center;   /* sit on the gold baseline */
  background-size: auto 210px;          /* band thickness on desktop */
  opacity: 1;
}

/* scale band so it stays one row and reads well on phones */
@media (max-width: 820px){
    
    /* === Background photo after a type is selected === */
#projects.project-types.has-photo{
  position: relative;
  background-color: var(--projectGrey);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#projects.project-types.has-photo::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55));
  pointer-events:none; z-index:0;
}
#projects.project-types .wrap{ position:relative; z-index:1; }

/* Smoked black background on project select buttons */
.chips .chip.type{
  background: rgba(0,0,0,.38);
  color: #fff;
  border-color: rgba(255,255,255,.45);
  backdrop-filter: saturate(120%) blur(0.5px);
}
.chips .chip.type:hover{ background: rgba(0,0,0,.52); border-color: rgba(255,255,255,.6); }
.chips .chip.type.selected{ background: rgba(0,0,0,.65); border-color: rgba(255,255,255,.75); }

/* Smoked background for the process description panels */
.timeline .panels .panel{
  background: rgba(0,0,0,.35);
  color: var(--graph-ink);
  border-color: rgba(255,255,255,.2);
}
.timeline .panels .panel.show{ backdrop-filter: saturate(115%) blur(0.5px); }
  #puget::before{
    background-size: auto 160px;
  }
}

/* very small screens: a touch thinner */
@media (max-width: 420px){
  #puget::before{
    background-size: auto 140px;
  }
}

/* === Projects: background photo after a type is selected === */
#projects.project-types {
  /* graphite remains default via existing rule */
  background-color: var(--projectGrey);
}

#projects.project-types.has-photo{
  position: relative;
  background-color: var(--projectGrey);        /* fallback */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#projects.project-types.has-photo::before{
  /* subtle dark veil to preserve contrast over photos */
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.45) 50%,
    rgba(0,0,0,.55) 100%
  );
  pointer-events:none;
  z-index:0;
}

/* keep all content above the veil */
#projects.project-types .wrap{ position:relative; z-index:1; }

/* ——— Projects section: ensure content sits above the photo veil ——— */
#projects .chips,
#projects .timeline { position: relative; z-index: 2; }

/* ——— Project-type chips (the big pill buttons) ——— */
#projects .chips .chip.type{
  background: rgba(0,0,0,.42) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.55) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset, 0 6px 22px rgba(0,0,0,.35);
}
#projects .chips .chip.type:hover{ background: rgba(0,0,0,.56) !important; }
#projects .chips .chip.type.selected{ background: rgba(0,0,0,.70) !important; }

/* ——— Timeline step pills (e.g., “1 Feasibility”) ——— */
#projects .timeline .step{
  background: rgba(0,0,0,.38) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
}
#projects .timeline .step.active{ background: rgba(0,0,0,.64) !important; }

/* ——— Process description panel (the long box with paragraph) ——— */
#projects .timeline .panels .panel{
  background: rgba(0,0,0,.42) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  backdrop-filter: blur(2px) saturate(110%);
}

/* Optional: soften corners a touch so pills and panel match */
#projects .timeline .panels .panel,
#projects .chips .chip.type,
#projects .timeline .step { border-radius: 999px; }
#projects .timeline .panels .panel { border-radius: 18px; } /* panel less round */

/* === Projects section visual polish === */

/* Keep project area content above photo */
#projects .chips,
#projects .timeline { position: relative; z-index: 2; }

/* ---------- Project type chips ---------- */
#projects .chips .chip.type {
  background: rgba(0,0,0,.42);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset, 0 6px 22px rgba(0,0,0,.35);
  transition: all .25s ease;
}
#projects .chips .chip.type:hover {
  background: rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.65);
}
#projects .chips .chip.type.selected {
  background: rgba(0,0,0,.72);
  border-color: var(--gold);              /* gold border for selected */
  box-shadow: 0 0 8px rgba(200,162,74,.55);
}

/* ---------- Timeline step pills ---------- */
#projects .timeline .step {
  background: rgba(0,0,0,.38);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  transition: all .25s ease;
}
#projects .timeline .step:hover {
  background: rgba(0,0,0,.52);
}
#projects .timeline .step.active {
  background: rgba(0,0,0,.68);
  border-color: var(--gold);              /* gold border when active */
  box-shadow: 0 0 8px rgba(200,162,74,.55);
}

/* ---------- Process description panel ---------- */
#projects .timeline .panels .panel {
  background: rgba(0,0,0,.45);            /* smoked black background */
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  backdrop-filter: blur(3px) saturate(115%);
  border-radius: 18px;
  transition: background .3s ease, border-color .3s ease;
}
#projects .timeline .panels .panel.show {
  background: rgba(0,0,0,.55);            /* slightly darker when visible */
}

/* ---------- Small consistency tweaks ---------- */
#projects .timeline .step,
#projects .chips .chip.type {
  border-radius: 999px;
}
/* ===== Projects section: enforce active states + readability ===== */

/* keep content above photo veil */
#projects .chips,
#projects .timeline { position: relative; z-index: 2; }

/* Project selector pills (when selected) */
#projects .chips .chip.type {
  background: rgba(0,0,0,.42);
  color: #fff;
  border: 1px solid rgba(255,255,255,.40);
}
#projects .chips .chip.type.selected {
  background: rgba(0,0,0,.72);
  border: 2px solid var(--gold) !important;  /* gold border */
  box-shadow: 0 0 8px rgba(200,162,74,.55);
}

/* Process step pills (1..5) */
#projects .timeline .step {
  background: rgba(0,0,0,.38);
  color: #fff;
  border: 1px solid rgba(255,255,255,.40);
}
#projects .timeline .step.active {
  background: rgba(0,0,0,.68);
  border: 2px solid var(--gold) !important;  /* gold border */
  box-shadow: 0 0 8px rgba(200,162,74,.55);
}

/* Step description box (the paragraph under the pills) */
#projects .timeline .panels .panel {
  background: rgba(0,0,0,.55) !important;    /* smoked black background */
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  backdrop-filter: blur(3px) saturate(115%);
}

/* Optional: ensure rounded pill shapes are consistent */
#projects .chips .chip.type,
#projects .timeline .step { border-radius: 999px; }
/* === Process description box: smoked background + gold frame === */
/* The box you read is the shell on #tlPanels::before. Give it the smoke. */
#tlPanels::before{
  background: rgba(0,0,0,.58) !important;   /* smoked black */
  border: 1.5px solid var(--gold) !important;/* keep gold outline */
}

/* Ensure the text sits above and stays white */
#tlPanels .panel{
  color:#fff !important;
  z-index:1;                  /* already set, reinforcing */

/* Center Design & Development Package headers on desktop */
@media (min-width: 900px){
  #design-packages h2,
  #development-packages h2,
  #design-packages .lede,
  #development-packages .lede,
  #design-packages .dp-head,
  #development-packages .dp-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center the footer note too */
  #design-packages .dp-foot,
  #development-packages .dp-foot {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Center Design & Development headers on desktop only */
@media (min-width: 900px){
  #design-packages h2,
  #development-packages h2,
  #design-packages .lede,
  #development-packages .lede{
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
}
.halo-text {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.35),
        0 0 6px rgba(0,0,0,0.25);
}
/* Package cards: details toggle */
.package-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.package-details.is-open {
  max-height: 800px; /* big enough for the content */
  opacity: 1;
}

/* Details button – reuse studies vibe */
.package-details-toggle {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.package-details-toggle:hover {
  background: rgba(0,0,0,0.55);
}