/* ============================================================
   ELC Family Office — Stylesheet
   Aesthetic: Refined, editorial, deep navy + warm gold + ivory
   ============================================================ */

:root {
  /* Palette */
  --ink:          #0e1c2c;          /* deep navy/ink */
  --ink-soft:     #1a2a3d;
  --bone:         #f4efe6;          /* warm ivory */
  --paper:        #faf7f1;
  --gold:         #b8893d;          /* refined antique gold */
  --gold-soft:    #d3b074;
  --rule:         rgba(14, 28, 44, 0.14);
  --muted:        #6b7280;

  /* Type */
  --serif:  'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; transition: color .25s ease; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1.display {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
h1.display em { font-style: italic; font-weight: 400; color: var(--gold); }

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .6rem; }
h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: var(--ink);
}

p { margin-bottom: 1.1rem; }
p.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
}
.brand-mark {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand-name {
  font-size: 0.78rem;
  font-family: var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
}
.primary-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.primary-nav a:hover, .primary-nav a.is-current { color: var(--gold); }
.primary-nav a.is-current::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 100%; background: var(--gold);
}

.has-sub { position: relative; }
.has-sub > a::after {
  content: '+';
  margin-left: 6px;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 400;
}
.sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 14px 22px;
  display: flex !important;
  flex-direction: column;
  gap: 8px !important;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, transform .25s ease;
  box-shadow: 0 18px 40px -20px rgba(14, 28, 44, 0.25);
}
.sub-nav li { width: 100%; }
.sub-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.has-sub:hover .sub-nav,
.has-sub:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184, 137, 61, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 137, 61, 0.12), transparent 60%),
    linear-gradient(135deg, #081523 0%, #0e1c2c 50%, #14283e 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  width: 100%;
}
.hero-content .eyebrow { color: var(--gold-soft); }
.hero-content h1 { color: var(--bone); }
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  margin-top: 1.8rem;
  max-width: 560px;
  color: rgba(244, 239, 230, 0.85);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2.4rem;
  padding: 14px 28px;
  border: 1px solid var(--gold-soft);
  color: var(--bone);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .3s ease;
}
.btn-ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-ghost span { transition: transform .3s ease; }
.btn-ghost:hover span { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: var(--pad-x);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--gold-soft);
  margin: 10px auto 0;
}

/* ============================================================
   Intro
   ============================================================ */

.intro {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--paper);
}
.intro-grid {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.intro-text p { font-size: 1.15rem; line-height: 1.7; }
.intro-text p.lede {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 2rem;
}
.intro-text p.lede::before,
.intro-text p.lede::after {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  content: '';
}
.intro-text p.lede::before { margin-bottom: 2.4rem; }
.intro-text p.lede::after { margin-top: 2.4rem; }

/* ============================================================
   Pillars / Focus Areas
   ============================================================ */

.pillars {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--bone);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
.pillar + .pillar { border-top: 1px solid var(--rule); }
.pillar-reverse .pillar-media { order: 2; }
@media (max-width: 820px) {
  .pillar, .pillar-reverse { grid-template-columns: 1fr; }
  .pillar-reverse .pillar-media { order: 0; }
}

.pillar-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(14, 28, 44, 0.4);
}
.pillar-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}

.affordable-housing-img {
  background-image:
    linear-gradient(135deg, rgba(14, 28, 44, 0.18), rgba(184, 137, 61, 0.18)),
    url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=900&q=80&auto=format');
}
.office-retail-img {
  background-image:
    linear-gradient(135deg, rgba(14, 28, 44, 0.22), rgba(184, 137, 61, 0.18)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=900&q=80&auto=format');
}

.pillar-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.pillar-text h2 { margin-bottom: 1.6rem; }
.pillar-text p { color: var(--ink-soft); }

/* ============================================================
   CTA Band
   ============================================================ */

.cta-band {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--ink);
  color: var(--bone);
  text-align: center;
}
.cta-band h2 { color: var(--bone); font-style: italic; font-weight: 300; }
.cta-band p {
  color: rgba(244, 239, 230, 0.75);
  max-width: 540px;
  margin: 1.2rem auto 2.4rem;
}
.cta-links {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-links a {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.cta-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 24px;
  border-top: 1px solid rgba(184, 137, 61, 0.2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .brand-mark { color: var(--bone); font-size: 2rem; display: block; margin-bottom: 4px; }
.footer-brand .brand-name { color: var(--gold-soft); display: block; margin-bottom: 1.4rem; }
.footer-brand .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(244, 239, 230, 0.7);
}
.footer-col h4 { color: var(--gold-soft); }
.footer-col p, .footer-col a {
  color: rgba(244, 239, 230, 0.75);
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-col a:hover { color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-bottom {
  padding-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(244, 239, 230, 0.5);
  text-align: center;
}

/* ============================================================
   Interior Pages — common layout
   ============================================================ */

.page-hero {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(120px, 16vw, 200px) 0 clamp(80px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 30%, rgba(184, 137, 61, 0.15), transparent 60%),
    linear-gradient(135deg, #081523 0%, #0e1c2c 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--bone);
  max-width: 900px;
}

.page-body {
  padding: clamp(60px, 10vw, 120px) 0;
}
.page-body p { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.page-body .container { max-width: 900px; }

/* ============================================================
   Portfolio Pages
   ============================================================ */

.portfolio-tabs {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 71px;
  z-index: 50;
}
.portfolio-tabs .container {
  display: flex;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.portfolio-tabs a {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.portfolio-tabs a:hover { color: var(--ink); }
.portfolio-tabs a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.region-heading {
  margin: clamp(40px, 6vw, 80px) 0 clamp(28px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.region-heading::before {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: var(--gold);
}
.region-heading h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  margin: 0;
  color: var(--ink);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.property-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(14, 28, 44, 0.3);
}
.property-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-soft);
  position: relative;
}
.property-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14, 28, 44, 0.45));
}
.property-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.property-loc {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.property-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--ink);
}
.property-desc { font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); margin-bottom: 1rem; }
.property-stats {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.85rem;
}
.property-stats span { color: var(--ink-soft); }
.property-stats strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; margin-top: 2px; }

/* ============================================================
   Philanthropy
   ============================================================ */

.philanthropy-quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.philanthropy-quote p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 2rem;
}

.foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
@media (max-width: 720px) {
  .foundation-grid { grid-template-columns: 1fr; }
}
.foundation-card {
  background: var(--bone);
  padding: 48px 40px;
  border-top: 2px solid var(--gold);
}
.foundation-card h3 { color: var(--ink); margin-bottom: 1rem; }
.foundation-card p { color: var(--ink-soft); font-size: 1rem; }

/* ============================================================
   Team
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(30px, 4vw, 56px);
  margin-top: 40px;
}
.team-card {
  display: flex;
  flex-direction: column;
}
.team-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center top;
  display: block;
  background-size: cover;
  background-position: center top;
  background-color: var(--ink-soft);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.team-portrait.placeholder {
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
}
.team-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.team-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}
.team-bio { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.team-bio p { margin-bottom: 0.9rem; }
.team-bio.collapsed { max-height: 160px; overflow: hidden; position: relative; }
.team-bio.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--paper));
}
.team-toggle {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  margin-top: 14px;
  padding: 0;
}
.team-toggle:hover { color: var(--ink); }

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info h3 {
  font-size: 1.2rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a { font-size: 1.05rem; color: var(--ink-soft); }
.contact-info a:hover { color: var(--gold); }

.contact-form {
  background: var(--bone);
  padding: 48px;
  border-top: 2px solid var(--gold);
}
.contact-form .form-row { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .25s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--ink);
  color: var(--bone);
  border: none;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background .3s ease;
}
.contact-form button:hover { background: var(--gold); color: var(--ink); }

/* ============================================================
   Future Projects (page)
   ============================================================ */

.future-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding: clamp(50px, 7vw, 90px) 0;
}
.future-project + .future-project { border-top: 1px solid var(--rule); }
.future-project.reverse .future-media { order: 2; }
@media (max-width: 820px) {
  .future-project, .future-project.reverse { grid-template-columns: 1fr; }
  .future-project.reverse .future-media { order: 0; }
}
.future-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-soft);
  position: relative;
}
.future-media::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.future-media .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  z-index: 2;
}
.future-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.future-loc {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ============================================================
   Mobile Nav
   ============================================================ */

@media (max-width: 980px) {
  .header-inner {
    padding: 18px 24px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    font-size: 1.8rem;
  }

  .brand-name {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 18px 24px;
    display: none;
    z-index: 100;
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .primary-nav li {
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }

  .primary-nav li:last-child {
    border-bottom: none;
  }

  .primary-nav a {
    display: block;
    padding: 14px 0;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .sub-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block !important;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 10px 18px;
  }

  .sub-nav li {
    border-bottom: none;
  }

  .sub-nav a {
    padding: 8px 0;
    font-size: 0.72rem;
  }

  .portfolio-tabs {
    top: 71px;
  }
}

/* ============================================================
   Misc utility
   ============================================================ */

.section-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 30px 0;
}

::selection { background: var(--gold); color: var(--ink); }

@media (max-width: 980px) {
  .primary-nav {
    display: none !important;
  }

  .primary-nav.open {
    display: block !important;
  }

  .primary-nav.open > ul {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

.cta-band {
  display: none !important;
}
