/* Stevenson Bell — shared site styles */
:root {
  --ink: #1B1815;
  --ink-soft: #2A2620;
  --charcoal: #3A342C;
  --ivory: #F6F1E7;
  --surface: #FFFFFF;
  --stone: #D8CCB8;
  --stone-line: #C4B79E;
  --linen: #EDE2C8;
  --linen-line: #D9C9A3;
  --brass: #85602A;
  --brass-soft: #B89757;
  --sage: #7E8A73;
  --sage-soft: #96A188;
  --ember: #6E2E2E;
  --ember-soft: #8C4A44;
  --on-ink: #F3EEE2;
  --on-ink-soft: #CFC6B4;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.display-italic { font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; max-width: 68ch; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: "Public Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow.sustain { color: var(--sage); }

.rule { width: 60px; height: 2px; background: var(--brass); border: none; margin: 26px 0; }
.rule.sustain { background: var(--sage); }

/* ---- Header ---- */
header.site {
  background: var(--ink);
  color: var(--on-ink);
  position: sticky;
  top: 0;
  z-index: 40;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--on-ink); }
.brand svg { flex: none; }
.brand-div { flex: none; width: 1px; height: 34px; background: color-mix(in srgb, var(--on-ink) 22%, transparent); }
.brand-word { font-family: "Spectral", serif; line-height: 1.2; }
.brand-word .word-main {
  display: block;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--on-ink);
}
.brand-word .word-main em { font-style: normal; color: var(--brass-soft); }
.brand-word small {
  display: block;
  font-family: "Public Sans", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--brass-soft);
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--brass-soft) 45%, transparent);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .brand-div { display: none; }
  .brand-word .word-main { font-size: 1.05rem; }
  .brand-word small { font-size: 0.56rem; letter-spacing: 0.09em; white-space: normal; max-width: 190px; }
}

nav.primary { display: flex; align-items: center; gap: 26px; }
nav.primary a {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  color: var(--on-ink-soft);
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-bottom: 3px;
  transition: color 0.15s ease;
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--brass-soft); transition: right 0.25s ease;
}
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { right: 0; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--on-ink); }
.cta {
  display: inline-block;
  border: 1px solid var(--brass);
  color: var(--on-ink);
  text-decoration: none;
  padding: 9px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.cta:hover { background: var(--brass); color: var(--ink); }

.nav-toggle { display: none; background: none; border: none; color: var(--on-ink); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 12px 28px 22px; gap: 14px; border-top: 1px solid var(--ink-soft); }
  nav.primary.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  header.site .bar { position: relative; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: 84px 0 68px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, color-mix(in srgb, var(--ink) 6%, transparent) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, color-mix(in srgb, var(--ink) 6%, transparent) 40px);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 88%);
  mask-image: linear-gradient(180deg, black, transparent 88%);
  pointer-events: none;
}
.sustain-accent.hero::before {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, color-mix(in srgb, var(--sage) 8%, transparent) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, color-mix(in srgb, var(--sage) 8%, transparent) 40px);
}
.hero .container { position: relative; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.hero .lede { font-size: 1.1rem; max-width: 62ch; color: var(--charcoal); }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---- Hero: full-bleed photo variant (Home) ---- */
.hero-photo { padding: 138px 0 112px; color: var(--on-ink); }
.hero-photo::before { content: none; }
.hero-photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center 38%; z-index: 0; }
.hero-photo-fade {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(27,24,21,0.94) 0%, rgba(27,24,21,0.84) 32%, rgba(27,24,21,0.52) 60%, rgba(27,24,21,0.3) 100%),
    linear-gradient(180deg, rgba(27,24,21,0.1) 0%, rgba(27,24,21,0.32) 58%, var(--ink) 100%);
}
.hero-photo .container { position: relative; z-index: 1; max-width: 64ch; }
.hero-photo .eyebrow { color: var(--brass-soft); }
.hero-photo h1 { color: var(--on-ink); }
.hero-photo .lede { color: var(--on-ink-soft); }
.hero-photo .lede.display { color: var(--on-ink); }
.hero-photo .btn.primary { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.hero-photo .btn.primary:hover { background: var(--brass-soft); border-color: var(--brass-soft); }
.hero-photo .btn.ghost { border-color: var(--on-ink-soft); color: var(--on-ink); }
.hero-photo .btn.ghost:hover { background: rgba(243, 238, 226, 0.12); }
@media (max-width: 900px) {
  .hero-photo { padding: 104px 0 84px; }
  .hero-photo-bg { background-position: center 28%; }
}

/* ---- Hero with line-art illustration ---- */
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-split .illus-frame { order: -1; max-width: 320px; margin: 0 auto 8px; } }
.illus-frame {
  position: relative;
  background: var(--stone);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 30px 56px -30px rgba(27, 24, 21, 0.4);
}
.illus-frame svg text { fill: var(--charcoal); }
.illus-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.illus-frame:hover img { transform: scale(1.045); }
.illus-frame::before, .illus-frame::after {
  content: ""; position: absolute; width: 24px; height: 24px; pointer-events: none; z-index: 1;
}
.illus-frame::before { left: 16px; top: 16px; border-left: 2.5px solid rgba(243, 238, 226, 0.85); border-top: 2.5px solid rgba(243, 238, 226, 0.85); border-radius: 5px 0 0 0; }
.illus-frame::after { right: 16px; bottom: 16px; border-right: 2.5px solid var(--brass-soft); border-bottom: 2.5px solid var(--brass-soft); border-radius: 0 0 5px 0; }

/* Sectors: alternating photo/text rows */
.sector-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--stone-line);
}
.sector-row:first-of-type { border-top: none; padding-top: 8px; }
.sector-row:nth-of-type(even) .sector-photo { order: -1; }
.sector-row .num { font-family: "Spectral", serif; font-size: 0.85rem; color: var(--brass); letter-spacing: 0.08em; margin-bottom: 10px; }
.sector-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 14px; }
.sector-row p { margin-bottom: 16px; }
/* Fire, Compartmentation & Cladding &mdash; a single, restrained oxblood accent on this one
   sector row only (numeral + tag chips), the same "one sector, one accent colour" device as
   Sustainability's sage, without repainting the whole Sectors list. */
.sector-row.fire .num { color: var(--ember); }
.sector-row.fire .tag-chip { color: var(--ember); background: color-mix(in srgb, var(--ember) 12%, var(--ivory)); border-color: color-mix(in srgb, var(--ember) 38%, var(--stone-line)); }
.sector-photo {
  position: relative;
  background: var(--stone);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 30px 56px -30px rgba(27, 24, 21, 0.4);
}
.sector-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.sector-photo:hover img { transform: scale(1.045); }
.sector-photo::before, .sector-photo::after {
  content: ""; position: absolute; width: 24px; height: 24px; pointer-events: none; z-index: 1;
}
.sector-photo::before { left: 16px; top: 16px; border-left: 2.5px solid rgba(243, 238, 226, 0.85); border-top: 2.5px solid rgba(243, 238, 226, 0.85); border-radius: 5px 0 0 0; }
.sector-photo::after { right: 16px; bottom: 16px; border-right: 2.5px solid var(--brass-soft); border-bottom: 2.5px solid var(--brass-soft); border-radius: 0 0 5px 0; }
@media (max-width: 860px) {
  .sector-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .sector-row .sector-photo { order: -1 !important; }
}
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-soft); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--stone); }

/* ---- Credibility / stat bar ---- */
.bar-strip {
  background: var(--ink);
  color: var(--on-ink-soft);
}
.bar-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; padding-top: 34px; padding-bottom: 34px; }
.bar-strip .item { display: flex; align-items: flex-start; gap: 14px; }
.bar-strip .item .icon-badge { flex: none; margin-bottom: 0; background: rgba(243, 238, 226, 0.08); color: var(--brass-soft); border-color: rgba(184, 151, 87, 0.45); }
.bar-strip .item .k { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-soft); font-weight: 600; margin-bottom: 6px; }
.bar-strip .item .v { font-size: 0.95rem; color: var(--on-ink); }

/* ---- Sections ---- */
section { padding: 72px 0; }
section.tight { padding: 52px 0; }
section.panel { background: var(--surface); border-top: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }
section.linen { background: var(--linen); border-top: 1px solid var(--linen-line); border-bottom: 1px solid var(--linen-line); }
section.linen .card { background: var(--surface); }
section.sage-tint { background: color-mix(in srgb, var(--sage) 14%, var(--ivory)); border-top: 1px solid color-mix(in srgb, var(--sage) 35%, var(--stone-line)); border-bottom: 1px solid color-mix(in srgb, var(--sage) 35%, var(--stone-line)); }
section.sage-tint .card { background: var(--surface); border-top-color: var(--sage-soft); }
section.sage-tint .card .num { color: var(--sage); }
section.dark { background: var(--ink); color: var(--on-ink-soft); }
section.dark h2, section.dark .display { color: var(--on-ink); }
.section-head { max-width: 70ch; margin-bottom: 44px; }
.section-head .sub { font-size: 1.05rem; color: var(--charcoal); }
section.dark .section-head .sub { color: var(--on-ink-soft); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-top: 3px solid var(--brass);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -22px rgba(27, 24, 21, 0.32); }
section.dark .card { background: var(--ink-soft); border-color: var(--ink-soft); border-top-color: var(--brass-soft); }
.icon-badge {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass);
  background: color-mix(in srgb, var(--brass) 6%, var(--ivory));
  border: 1.5px solid color-mix(in srgb, var(--brass) 55%, var(--stone-line));
  border-radius: 11px;
  margin-bottom: 16px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.card:hover .icon-badge { transform: scale(1.06); border-color: var(--brass); }
.icon-badge svg { stroke-width: 1.55; }
.card .num { font-family: "Spectral", serif; font-size: 0.85rem; color: var(--brass); margin-bottom: 10px; }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.94rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-chip { font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink); background: var(--stone); border: 1px solid var(--stone-line); padding: 4px 10px; border-radius: 999px; }

/* Staggered reveal within grids */
.grid.cols-3 .reveal:nth-child(2), .grid.cols-4 .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid.cols-3 .reveal:nth-child(3), .grid.cols-4 .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid.cols-4 .reveal:nth-child(4) { transition-delay: 0.24s; }

.pull {
  font-family: "Spectral", serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  max-width: 46ch;
  color: var(--ink);
}
section.dark .pull { color: var(--on-ink); }
.pull::before { content: "\201C"; color: var(--brass); }
.pull::after { content: "\201D"; color: var(--brass); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Long-form Insights article body */
.article-body { max-width: 68ch; }
.article-body p { margin: 0 0 20px; font-size: 1.02rem; }
.article-body h3 { font-family: "Spectral", serif; font-size: 1.28rem; color: var(--ink); margin: 40px 0 14px; }
.article-body strong { color: var(--ink); }

.list-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-clean li { padding-left: 20px; position: relative; font-size: 0.96rem; }
.list-clean li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--brass); }
section.dark .list-clean li::before { background: var(--brass-soft); }

.standpoint-col h4 { font-family: "Public Sans", sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin: 0 0 4px; }
.standpoint-col .h4-sub { font-family: "Spectral", serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 16px; }

/* ---- Sustainability accent override ---- */
.sustain-accent .eyebrow { color: var(--sage); }
.sustain-accent .rule { background: var(--sage); }
.sustain-accent .card { border-top-color: var(--sage); }
.sustain-accent .card .num { color: var(--sage); }
.sustain-accent .icon-badge { color: var(--sage); background: color-mix(in srgb, var(--sage) 12%, var(--ivory)); border-color: color-mix(in srgb, var(--sage) 55%, var(--stone-line)); }
.sustain-accent .tag-chip { background: color-mix(in srgb, var(--sage) 18%, var(--ivory)); border-color: color-mix(in srgb, var(--sage) 45%, var(--stone-line)); }
.sustain-accent .pull::before, .sustain-accent .pull::after { color: var(--sage); }

/* ---- Timeline (Approach) ---- */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; max-width: 980px; }
.timeline .step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--stone-line);
}
.timeline .step:nth-child(-n+2) { border-top: none; }
.timeline .step .stage-no { font-family: "Spectral", serif; color: var(--brass); font-size: 0.85rem; padding-top: 3px; }
.timeline .step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline .step p { margin: 0; font-size: 0.94rem; }
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline .step:nth-child(-n+2) { border-top: 1px solid var(--stone-line); }
  .timeline .step:first-child { border-top: none; }
}

/* ---- CTA banner ---- */
.cta-banner { background: var(--ink); color: var(--on-ink); }
.cta-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 54px 28px; }
.cta-banner h2 { color: var(--on-ink); font-size: 1.7rem; max-width: 26ch; }

/* ---- Footer ---- */
footer.site { background: var(--ink); color: var(--on-ink-soft); }
footer.site .container { padding: 54px 28px 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { footer.site .container { grid-template-columns: 1fr; } }
footer.site .brand-word { color: var(--on-ink); }
footer.site .tagline { font-family: "Spectral", serif; font-style: italic; font-size: 1.02rem; color: var(--brass-soft); margin: 16px 0 0; }
footer.site .blurb { font-size: 0.92rem; max-width: 40ch; margin-top: 10px; }
footer.site h5 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
footer.site .flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer.site .flinks a { text-decoration: none; font-size: 0.92rem; color: var(--on-ink-soft); }
footer.site .flinks a:hover { color: var(--on-ink); }
.footer-bottom {
  border-top: 1px solid var(--ink-soft);
  padding: 18px 28px 26px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  opacity: 0.75;
}
.footer-bottom a { text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: var(--on-ink); }

/* ---- Form ---- */
form.enquiry { display: grid; gap: 18px; max-width: 640px; }
form.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { form.enquiry .row { grid-template-columns: 1fr; } }
form.enquiry label { display: block; font-size: 0.8rem; letter-spacing: 0.03em; margin-bottom: 6px; color: var(--ink); }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  font-family: "Public Sans", sans-serif;
  font-size: 0.95rem;
  padding: 11px 12px;
  border: 1px solid var(--stone-line);
  background: var(--surface);
  color: var(--charcoal);
}
form.enquiry select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; }
form.enquiry .consent input { width: auto; margin-top: 3px; }
form.enquiry button { justify-self: start; margin-top: 6px; }
.form-note { font-size: 0.82rem; opacity: 0.7; margin-top: 6px; }

.contact-meta { display: grid; gap: 22px; }
.contact-meta .item h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
.contact-meta .item p { margin: 0; }
