/* ABOUTME: Styles for the sandiwilendesigns.com homepage, matching the Photoshop comp
   at 1920px design width with responsive breakpoints at 1100px and 640px. */

:root {
  --tan-band: #8A7049;
  --cream: #FBF8F5;
  --band-cream: #F6F2EB;
  --brown-h1: #38220F;
  --brown-body: #3C2A2A;
  --brown-icon: #4A2E1E;
  --gold: #CD994D;
  --bronze: #785131;
  --btn-tan: #8F6A46;
  --font-sans: 'Poppins', 'Century Gothic', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-black: 'Arial Black', 'Arial Bold', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--brown-body);
  background: var(--cream);
}

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Top bar + nav ---------- */

.hero-wrap { position: relative; }

.topbar {
  background: var(--tan-band);
  height: clamp(64px, 5.7vw, 110px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topbar nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1.2rem, 2.9vw, 3.5rem);
  padding-right: clamp(1.2rem, 8vw, 10rem);
}

.topbar nav a {
  font-family: var(--font-black);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.3vw, 1.55rem);
  color: #FFFFFF;
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Logo (homepage overlay, white with dark glow) ---------- */

.logo {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(240px, 46.4vw, 890px);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(40, 25, 10, 0.7))
          drop-shadow(0 0 10px rgba(40, 25, 10, 0.45));
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 49% 51%;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero-content {
  background: var(--cream);
  padding: clamp(2rem, 3.5vw, 4.2rem) clamp(1.5rem, 6vw, 7.3rem) clamp(5rem, 7.5vw, 9rem) clamp(1.5rem, 3vw, 3.6rem);
}

.hero-content h1 {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.3vw, 3.95rem);
  line-height: 1.28;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-h1);
}

.gold-rule {
  width: clamp(70px, 7.3vw, 140px);
  height: 3px;
  background: var(--gold);
  margin: clamp(1.4rem, 2.4vw, 2.9rem) 0;
}

.intro {
  font-weight: 300;
  font-size: clamp(1.05rem, 1.66vw, 2rem);
  line-height: 1.5;
  max-width: 21em;
}

.tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.3vw, 2.75rem);
  color: var(--bronze);
  margin-top: clamp(1.6rem, 2.6vw, 3.2rem);
}

.btn {
  display: inline-block;
  background: var(--btn-tan);
  color: #FFFFFF;
  font-size: clamp(0.85rem, 1.04vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1em 2.4em 1.1em 2.75em;
  margin-top: clamp(1.7rem, 2.7vw, 3.3rem);
}

.btn:hover,
.btn:focus-visible {
  background: var(--bronze);
}

.gestalt {
  border-left: 3px solid var(--gold);
  padding-left: 1.3em;
  margin-top: clamp(1.9rem, 3vw, 3.7rem);
}

.gestalt h2 {
  font-weight: 400;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-h1);
}

.gestalt p {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.15vw, 1.4rem);
  margin-top: 0.5em;
}

/* ---------- SEE DIFFERENTLY banner ---------- */

.see-banner {
  position: absolute;
  bottom: clamp(0.2rem, 1vw, 1.2rem);
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  font-family: var(--font-black);
  font-weight: 900;
  font-size: clamp(2.6rem, 7.5vw, 9rem);
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

/* SEE sits right-aligned on the photo half; DIFFERENTLY starts on the cream half */
.see-banner .see {
  color: #FFFFFF;
  width: 49%;
  text-align: right;
  padding-right: 1.2vw;
}

.see-banner .diff {
  color: #000000;
  font-size: 0.74em;
  padding-left: 0.6vw;
}

/* ---------- Services band ---------- */

.services {
  background: var(--band-cream);
  padding: clamp(1.5rem, 2vw, 2.4rem) clamp(1rem, 3vw, 3.75rem);
}

.services ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.services li {
  text-align: center;
  padding: 0 clamp(0.5rem, 1.5vw, 1.8rem);
}

.services li + li {
  border-left: 1px solid rgba(74, 46, 30, 0.35);
}

.services img {
  height: clamp(52px, 4.7vw, 90px);
  width: auto;
  margin: 0 auto clamp(0.8rem, 1.2vw, 1.4rem);
}

.services h3 {
  font-weight: 400;
  font-size: clamp(0.8rem, 0.94vw, 1.13rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-icon);
}

.services p {
  font-weight: 300;
  font-size: clamp(0.78rem, 0.9vw, 1.08rem);
  margin-top: 0.35em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brown-h1);
  color: #F6F2EB;
  text-align: center;
  padding: clamp(2rem, 3vw, 3.2rem) 1.5rem clamp(1.6rem, 2.4vw, 2.4rem);
}

.site-footer a {
  color: #F6F2EB;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.5rem;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.3rem;
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-legal {
  max-width: 62em;
  margin: 1.6rem auto 0;
  font-weight: 300;
  font-size: clamp(0.72rem, 0.8vw, 0.85rem);
  line-height: 1.6;
  color: #D9CFC0;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }

  .hero-photo img {
    max-height: 72vh;
    object-position: 50% 22%;
  }

  .logo {
    top: clamp(64px, 5.7vw, 110px);
    width: clamp(220px, 42vw, 420px);
  }

  .see-banner {
    position: static;
    display: block;
    background: var(--cream);
    text-align: center;
    padding: 1.1rem 1rem 0.4rem;
    white-space: normal;
    font-size: clamp(2.2rem, 9vw, 5rem);
  }

  .see-banner .see {
    color: var(--bronze);
    width: auto;
    text-align: center;
    padding-right: 0;
  }

  .see-banner .diff { padding-left: 0; }

  .hero-content { padding-bottom: clamp(2rem, 4vw, 3rem); }

  .services ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 0;
  }

  .services li:nth-child(3) { border-left: none; }
  .services li:nth-child(5) { grid-column: 1 / -1; border-left: none; }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  .topbar { height: auto; min-height: 64px; padding: 0.9rem 0; }

  .topbar nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.3rem;
    padding-right: 0.9rem;
    padding-left: 0.9rem;
    gap: 0.9rem;
  }

  .topbar nav a { font-size: 0.82rem; }

  .see-banner { font-size: clamp(1.6rem, 7.5vw, 5rem); }

  .services ul { grid-template-columns: 1fr; gap: 2.2rem; }
  .services li + li { border-left: none; }
  .services img { height: 64px; }
}

/* ============================================================
   Interior pages (about / portfolio / resume / contact)
   ============================================================ */

.page-topbar {
  justify-content: space-between;
  padding-left: clamp(1rem, 2.5vw, 3rem);
}

.logo-inline {
  height: clamp(44px, 4.5vw, 84px);
  width: auto;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 7px rgba(255, 255, 255, 0.7));
}

.logo-link { display: flex; align-items: center; }

.topbar nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.section {
  padding: clamp(2.5rem, 5vw, 5.5rem) clamp(1.25rem, 6vw, 8rem);
}

.section-alt { background: var(--band-cream); }

.section-head {
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-h1);
}

.section-head + .gold-rule { margin: clamp(1rem, 1.8vw, 2rem) 0; }

.section-intro {
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  line-height: 1.65;
  max-width: 46em;
}

.prose { max-width: 44em; }

.prose p {
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 1.4em;
}

.split {
  display: grid;
  grid-template-columns: 44% 56%;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content {
  padding: clamp(2rem, 4vw, 5rem) clamp(1.5rem, 5vw, 6.5rem);
}

.split-content h1 {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.1vw, 3.7rem);
  line-height: 1.28;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-h1);
}

.accent-banner {
  font-family: var(--font-black);
  font-weight: 900;
  font-size: clamp(2.2rem, 6.5vw, 7.5rem);
  line-height: 1.02;
  text-align: center;
  color: var(--brown-h1);
  padding: clamp(1.5rem, 3vw, 3.5rem) 1rem;
}

.accent-banner .accent-soft { color: var(--tan-band); }

.ext-link {
  color: var(--bronze);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ext-link:hover, .ext-link:focus-visible { color: var(--brown-h1); }

/* ---------- Galleries ---------- */

.gallery-link {
  display: block;
  text-decoration: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ba-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ba-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.4rem;
}

.ba-caption {
  font-weight: 300;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  margin-top: 0.7rem;
}

.masonry {
  columns: 3 300px;
  column-gap: 1.4rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.masonry .gallery-link { break-inside: avoid; margin-bottom: 1.4rem; }

.masonry img { width: 100%; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.plans-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.plans-strip figure {
  background: #FFFFFF;
  border: 1px dashed var(--bronze);
  padding: 0.9rem;
}

.plans-strip img { width: 100%; }

.plans-strip figcaption {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 0.7rem;
  text-align: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.logo-tile {
  background: #FFFFFF;
  border: 1px solid rgba(74, 46, 30, 0.15);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.logo-tile img {
  max-height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-tile p {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5;
}

.video-feature { margin-top: clamp(1.5rem, 2.5vw, 2.5rem); }

.video-feature video { width: 100%; display: block; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.stat b {
  display: block;
  font-family: var(--font-black);
  font-weight: 900;
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  color: var(--bronze);
  line-height: 1.1;
}

.stat span {
  font-weight: 300;
  font-size: clamp(0.88rem, 1vw, 1.05rem);
}

/* ---------- Lightbox ---------- */

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 12, 6, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1.5rem;
}

.lb-overlay img {
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  object-fit: contain;
}

.lb-caption {
  color: #F6F2EB;
  font-weight: 300;
  font-size: 0.95rem;
  margin-top: 1rem;
  text-align: center;
}

.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: #F6F2EB;
  font-family: var(--font-sans);
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

.lb-btn:hover, .lb-btn:focus-visible { color: var(--gold); }

.lb-close { top: 0.7rem; right: 0.9rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact page ---------- */

.contact-hero {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 8rem) 1.5rem clamp(3rem, 7vw, 7rem);
}

.contact-hero h1 {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.1vw, 3.7rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-h1);
}

.contact-hero .gold-rule { margin: clamp(1.4rem, 2.4vw, 2.6rem) auto; }

.contact-list {
  list-style: none;
  display: grid;
  gap: clamp(1.4rem, 2.4vw, 2.2rem);
  margin-top: clamp(1.5rem, 3vw, 3rem);
}

.contact-list .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.35rem;
}

.contact-list .value,
.contact-list a {
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  color: var(--brown-body);
  text-decoration: none;
}

.contact-list a:hover, .contact-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-always {
  font-family: var(--font-black);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  color: #B07E33;
  line-height: 1;
}

.contact-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  color: var(--bronze);
  margin-top: clamp(2rem, 4vw, 4rem);
}

/* ---------- Resume page ---------- */

.resume-wrap {
  max-width: 60em;
  margin: 0 auto;
}

.resume-header { text-align: center; }

.resume-header h1 {
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-h1);
}

.resume-header .resume-sub {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.15vw, 1.25rem);
  margin-top: 0.7rem;
}

.resume-header .gold-rule { margin: clamp(1.2rem, 2vw, 2rem) auto; }

.resume-section { margin-top: clamp(2.2rem, 4vw, 4rem); }

.resume-section h2 {
  font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw, 1.5rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brown-h1);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
}

.resume-section p, .resume-section li {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  line-height: 1.65;
}

.resume-section ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.resume-section ul li {
  padding-left: 1.2em;
  position: relative;
}

.resume-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45em;
  height: 0.45em;
  background: var(--gold);
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.2rem 2.5rem;
}

.qual-grid h3 {
  font-weight: 500;
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  color: var(--brown-h1);
}

.qual-grid p { margin-top: 0.3rem; }

.job { margin-bottom: 1.8rem; }

.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 1.5rem;
  margin-bottom: 0.7rem;
}

.job-head h3 {
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  color: var(--brown-h1);
}

.job-head .job-co { font-weight: 300; }

.job-head .job-dates {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--bronze);
  white-space: nowrap;
}

/* ---------- Interior responsive + print ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-photo img { max-height: 60vh; }
}

@media print {
  .topbar, .site-footer, .btn { display: none; }
  body { background: #FFFFFF; }
}

/* ---------- Portfolio hero banner (painting background) ---------- */

.page-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  padding: clamp(4rem, 9vw, 9.5rem) clamp(1.25rem, 6vw, 8rem);
}

.page-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 12, 0.55);
}

.page-hero-banner > * { position: relative; }

.page-hero-banner h1 {
  color: #FFFFFF;
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero-banner p {
  color: #F6F2EB;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.9rem);
  margin-top: 0.9rem;
  max-width: 34em;
}

/* ============================================================
   Revision pass: white logo, section dividers, sub-sections,
   About banner/Caveat, CMP chart
   ============================================================ */

.logo-inline.logo-on-band {
  filter: drop-shadow(0 1px 2px rgba(40, 25, 10, 0.65))
          drop-shadow(0 0 8px rgba(40, 25, 10, 0.35));
}

.section-divider {
  background: var(--brown-h1);
  color: #FFFFFF;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.1vw, 2.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: clamp(1.1rem, 1.8vw, 1.7rem) 1.5rem;
  margin: 0;
}

.sub-head {
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.75rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 0.35rem;
  margin-top: clamp(2rem, 3.5vw, 3.5rem);
}

.sub-head:first-of-type { margin-top: 0; }

.split-flip { grid-template-columns: 56% 44%; }

.about-banner {
  font-family: var(--font-black);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 3rem);
  line-height: 1.05;
  color: var(--brown-h1);
  margin-top: clamp(1.6rem, 2.6vw, 3rem);
}

.about-banner .see {
  color: var(--tan-band);
  font-size: 1.3em;
}

.think-beautifully {
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-weight: 600;
  font-size: clamp(3rem, 6.5vw, 7rem);
  line-height: 1.05;
  color: var(--bronze);
}

.caption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: clamp(1.2rem, 2vw, 2rem);
}

.caption-grid figure img { width: 100%; }

.caption-grid figcaption {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.6rem;
}

.link-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.link-list li {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
}

.chart-figure {
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  background: #FFFFFF;
  border: 1px solid rgba(74, 46, 30, 0.12);
  padding: clamp(1rem, 2vw, 2rem);
}

.chart-figure svg { width: 100%; height: auto; display: block; }

.chart-figure figcaption {
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--brown-body);
  margin-top: 0.8rem;
}

/* ============================================================
   Portfolio hub + sub-page navigation
   ============================================================ */

.portfolio-subnav {
  background: var(--band-cream);
  padding: clamp(0.9rem, 1.5vw, 1.4rem) clamp(1.25rem, 6vw, 8rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.portfolio-subnav a {
  font-weight: 400;
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
  text-decoration: none;
  border: 1px solid var(--bronze);
  border-radius: 999px;
  padding: 0.45em 1.2em;
}

.portfolio-subnav a:hover,
.portfolio-subnav a:focus-visible {
  background: var(--bronze);
  color: #FFFFFF;
}

.portfolio-subnav a[aria-current="page"] {
  background: var(--brown-h1);
  border-color: var(--brown-h1);
  color: #FFFFFF;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: clamp(1.4rem, 2.5vw, 2.5rem);
}

.hub-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
}

.hub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hub-card:hover img,
.hub-card:focus-visible img { transform: scale(1.045); }

.hub-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.hub-card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(30, 18, 8, 0.88), rgba(30, 18, 8, 0.55) 55%, rgba(30, 18, 8, 0));
}

.hub-card-label strong {
  display: block;
  color: #FFFFFF;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.35vw, 1.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-card-label span {
  display: block;
  color: #EFE7DA;
  font-weight: 300;
  font-size: clamp(0.85rem, 0.95vw, 1.05rem);
  margin-top: 0.3rem;
}
