/* ===========================================================================
   BEACON HILL STRATEGY GROUP — STYLESHEET
   ---------------------------------------------------------------------------
   You normally do NOT need to edit this file to change words or pages.
   It controls how the site LOOKS (colours, fonts, spacing, animations).
   The colours and fonts live in the ":root" block right below, so if you ever
   want to tweak the palette, that is the place to do it.
   =========================================================================== */

:root {
  /* Brand palette ------------------------------------------------------ */
  --ink: #0d1114;          /* near-black, deepest background           */
  --coal: #141719;         /* dark section background                  */
  --charcoal: #1f242a;     /* slightly lighter dark band               */
  --paper: #f7f4ee;        /* warm off-white (light sections)          */
  --paper-2: #efeae0;      /* secondary warm tone                      */
  --white: #ffffff;
  --muted: #d7d1c4;
  --accent: #9bb0bd;       /* lighthouse slate-blue                    */
  --accent-strong: #5f7a8a;/* deeper slate-blue for light backgrounds  */

  /* Lines ------------------------------------------------------------- */
  --line-light: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(13, 17, 20, 0.14);

  /* Layout ------------------------------------------------------------ */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Type — THE FONTS ---------------------------------------------------
     This is where the site's fonts are set:
       --serif = headings (currently Newsreader)
       --sans  = body text (currently Work Sans)
     To change a font you do TWO quick things:
       1. Put the new font name in the quotes below (e.g. "Lora").
       2. Tell the site to download it: open src/_includes/base.njk and edit
          the Google Fonts <link> line near the top (it also has instructions).
     Both must use the EXACT same name. Browse free fonts at fonts.google.com. */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Motion ------------------------------------------------------------ */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--coal);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Links: an animated underline that wipes in on hover. ------------------ */
a { color: inherit; text-decoration: none; }

p a,
.prose a,
.article-body a {
  background-image: linear-gradient(var(--accent-strong), var(--accent-strong));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left 88%;
  transition: background-size 0.4s var(--ease), color 0.3s var(--ease);
  padding-bottom: 1px;
}

p a:hover,
.prose a:hover,
.article-body a:hover { background-size: 100% 1px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===========================================================================
   HEADER & NAVIGATION
   =========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 17, 20, 0.72);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.4s var(--ease), min-height 0.4s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 13, 15, 0.92); }

.nav-wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { width: min(290px, 46vw); flex: 0 0 auto; line-height: 0; }
.brand img { width: 100%; height: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 26px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-nav a {
  position: relative;
  color: rgba(247, 244, 238, 0.78);
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================================
   TYPOGRAPHY
   =========================================================================== */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h1 { max-width: 16ch; font-size: clamp(2.9rem, 8vw, 6.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }

p { margin: 0; }

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.light .eyebrow { color: var(--accent-strong); }

.lead {
  max-width: 40ch;
  margin-top: 1.4rem;
  color: rgba(247, 244, 238, 0.9);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.4;
}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(85deg, rgba(13, 17, 20, 0.94) 0%, rgba(13, 17, 20, 0.62) 42%, rgba(13, 17, 20, 0.2) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 17, 20, 0.55), transparent 28%);
  pointer-events: none;
}
.hero--full { min-height: clamp(560px, 82vh, 820px); }
.hero--compact { min-height: clamp(360px, 52vh, 560px); }
.hero--article { min-height: clamp(340px, 48vh, 520px); }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: clamp(96px, 14vh, 150px) 0 clamp(56px, 8vh, 88px);
}
.hero h1 { color: var(--white); }

.article-byline,
.article-back {
  margin-top: 1.3rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===========================================================================
   SECTIONS
   =========================================================================== */
.section { padding: clamp(64px, 9vw, 124px) 0; }
.section.dark { background: var(--coal); color: var(--paper); }
.section.light { background: var(--paper); color: var(--ink); }
.section.band { background: var(--charcoal); color: var(--paper); }

/* Subtle hairline between two same-coloured stacked sections */
.section.light + .section.light { border-top: 1px solid var(--line-dark); }

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.single { grid-template-columns: 1fr; max-width: 30ch; }
.section-head.center {
  display: block;
  max-width: min(64rem, 100%);
  margin-inline: auto;
  text-align: center;
}
.section-head.center.single { max-width: min(64rem, 100%); }
/* A longer centred statement, shown a touch smaller than a normal heading */
.section-head--statement h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.section-head p {
  color: inherit;
  opacity: 0.82;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

/* Plain Markdown intro under the hero */
.prose { max-width: 60ch; }
.prose.reveal { max-width: 62ch; }
.section .prose p,
.body-copy {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.5;
}
.prose p + p { margin-top: 1.2rem; }

/* ===========================================================================
   GRID OF CARDS
   =========================================================================== */
.grid { display: grid; gap: clamp(16px, 1.6vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.panel:hover { transform: translateY(-4px); }
.panel:hover::before { transform: scaleX(1); }

.light .panel {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.5);
}
.light .panel:hover { background: var(--white); border-color: rgba(13, 17, 20, 0.22); }

.panel h3 { color: var(--accent); margin-bottom: 0.7rem; }
.light .panel h3 { color: var(--ink); }
.panel h3 a { transition: color 0.3s var(--ease); }
.panel h3 a:hover { color: var(--accent-strong); }
.panel .kicker { margin-bottom: 0.8rem; font-weight: 600; color: inherit; }
.panel p + p { margin-top: 0.9rem; }

.panel ul, .article-body ul {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
}
.panel li, .article-body li {
  position: relative;
  margin-top: 0.55rem;
  padding-left: 1.4rem;
}
.panel li::before, .article-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 14px; height: 1px;
  background: var(--accent-strong);
}

.meta {
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dark .meta, .band .meta { color: var(--accent); }

/* Row layout for cards (e.g. service-page "Where we focus": three rows) */
.cards-rows {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.dark .cards-rows, .band .cards-rows { border-top-color: var(--line-light); }
.cards-rows .panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(20px, 5vw, 72px);
  padding: clamp(26px, 3.4vw, 44px) 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: none;
}
.dark .cards-rows .panel, .band .cards-rows .panel { border-bottom-color: var(--line-light); }
.cards-rows .panel::before { display: none; }
.cards-rows .panel:hover { transform: none; background: none; }
.cards-rows .panel ul { margin-top: 0.4rem; }

/* ===========================================================================
   THREE-COLUMN SERVICE BLOCK
   =========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.service-col { display: flex; flex-direction: column; }
.service-name {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}
.service-tagline {
  margin-bottom: 0.9rem;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
}
.dark .service-tagline, .band .service-tagline { color: var(--accent); }
.service-desc { opacity: 0.84; margin-bottom: 1.1rem; }
.service-col .link-arrow { margin-top: 0; margin-bottom: 0.5rem; }
.service-col .fold-list { margin-top: 1.2rem; }
.services-link { margin-top: 1.4rem; }
.section-head.center .services-link { justify-content: center; }

/* ===========================================================================
   FEATURE LIST (plain title + text rows, optionally numbered)
   =========================================================================== */
.feature-list { border-top: 1px solid var(--line-dark); }
.dark .feature-list, .band .feature-list { border-top-color: var(--line-light); }
.feature-item {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(12px, 3vw, 56px);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line-dark);
}
.dark .feature-item, .band .feature-item { border-bottom-color: var(--line-light); }
.feature-title { color: var(--accent-strong); }
.dark .feature-title, .band .feature-title { color: var(--accent); }
.feature-text p { opacity: 0.85; }

.feature-item--numbered {
  grid-template-columns: clamp(48px, 5vw, 72px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.feature-number {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.light .feature-number { color: var(--accent-strong); }
.feature-item--numbered h3 { margin-bottom: 0.6rem; }
.feature-item--numbered p { opacity: 0.85; max-width: 70ch; }

/* ===========================================================================
   PROSE BLOCK (heading + paragraphs)
   =========================================================================== */
.prose-block { max-width: 760px; }
.prose-block h2 { margin-bottom: 0.4rem; }
.prose-block-spacer { height: clamp(14px, 2vw, 22px); }
.prose-block p + p { margin-top: 1.1rem; }
.prose-block p { opacity: 0.9; }
.prose-block--lead { max-width: 900px; }
.prose-block--lead p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  line-height: 1.5;
  opacity: 0.96;
}
.prose-block--lead strong { font-weight: 600; }

/* ===========================================================================
   CASE STUDIES (Situation / Complication / Resolution / Impact)
   =========================================================================== */
.case-list { display: grid; gap: clamp(28px, 4vw, 56px); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(20px, 4vw, 64px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-dark);
}
.dark .case, .band .case { border-top-color: var(--line-light); }
.case:first-child { padding-top: 0; border-top: 0; }
.case-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); }
.case-subtitle {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  opacity: 0.8;
}
.case-step + .case-step { margin-top: 1.3rem; }
.case-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.dark .case-label, .band .case-label { color: var(--accent); }
.case-step p { opacity: 0.88; }
.case-step ul { margin: 0; padding-left: 0; list-style: none; }
.case-step li { position: relative; margin-top: 0.5rem; padding-left: 1.4rem; opacity: 0.88; }
.case-step li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 14px; height: 1px;
  background: var(--accent-strong);
}
.dark .case-step li::before, .band .case-step li::before { background: var(--accent); }

/* ===========================================================================
   FOLDING TEXT ZONES (ACCORDION)
   =========================================================================== */
.fold-list {
  border-top: 1px solid var(--line-dark);
}
.dark .fold-list, .band .fold-list { border-top-color: var(--line-light); }

.fold {
  border-bottom: 1px solid var(--line-dark);
}
.dark .fold, .band .fold { border-bottom-color: var(--line-light); }

.fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}
.fold-summary::-webkit-details-marker { display: none; }
.fold-summary:hover { color: var(--accent-strong); }
.dark .fold-summary:hover, .band .fold-summary:hover { color: var(--accent); }

.fold-titles { display: flex; flex-direction: column; gap: 0.35rem; }
.fold-meta {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dark .fold-meta, .band .fold-meta { color: var(--accent); }
.fold-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* The +/- icon */
.fold-icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px; height: 26px;
}
.fold-icon::before,
.fold-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 17px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.fold-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.fold[open] .fold-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

/* Smaller accordion used inside the three-column service block */
.fold--sm .fold-summary { padding: clamp(14px, 1.6vw, 18px) 0; gap: 16px; }
.fold--sm .fold-title { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.fold--sm .fold-icon { width: 20px; height: 20px; }
.fold--sm .fold-icon::before, .fold--sm .fold-icon::after { width: 13px; }

/* The revealed text. JavaScript animates the height open and closed; this is
   the graceful fallback for when scripts are disabled. */
.fold-body { overflow: hidden; }
.fold-body-inner {
  padding: 0 0 clamp(22px, 2.6vw, 32px);
  max-width: 62ch;
}
.fold-body-inner p { opacity: 0.86; }

/* ===========================================================================
   MEDIA SPLIT (image + text)
   =========================================================================== */
.media-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.media-split--flip .media-frame { order: 2; }
.media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal);
}
.media-frame.portrait { aspect-ratio: 4 / 5; }

/* Round avatar variant (used for partner bios): smaller circular photo,
   top-aligned with the name. */
.media-split--round {
  grid-template-columns: clamp(150px, 18vw, 220px) minmax(0, 1fr);
  align-items: start;
}
.media-frame--round {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--charcoal);
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.media-split:hover .media-frame img { transform: scale(1.04); }
.media-text h2 { margin-bottom: 0.5rem; }
.media-text p + p { margin-top: 1rem; }
.media-text p { opacity: 0.9; }

.role {
  margin: 0.2rem 0 1.2rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.light .role { color: var(--accent-strong); }

/* ===========================================================================
   NUMBERED STEPS
   =========================================================================== */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line-light);
}
.light .steps { border-top-color: var(--line-dark); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: baseline;
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line-light);
}
.light .step { border-bottom-color: var(--line-dark); }
.step-number {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.light .step-number { color: var(--accent-strong); }
.step-text {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.4;
}

/* Detailed steps: a title plus its own bullet points */
.steps--detailed .step { align-items: start; }
.steps--detailed .step-text { font-size: 1rem; line-height: 1.6; }
.step-title { font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: 0.65rem; }
.steps--detailed .step-text ul { margin: 0; padding-left: 0; list-style: none; }
.steps--detailed .step-text li {
  position: relative;
  margin-top: 0.5rem;
  padding-left: 1.4rem;
  opacity: 0.85;
}
.steps--detailed .step-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 14px; height: 1px;
  background: var(--accent);
}
.light .steps--detailed .step-text li::before { background: var(--accent-strong); }

.articles-more { margin-top: clamp(28px, 4vw, 48px); }

/* ===========================================================================
   TEAM
   =========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.team-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.team-card img {
  width: 150px; height: 150px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(0.15);
  transition: filter 0.5s var(--ease);
}
.team-card:hover img { filter: grayscale(0); }
.team-card h3 a:hover { color: var(--accent-strong); }
.team-card p:last-child { margin-top: 0.6rem; opacity: 0.85; }

/* ===========================================================================
   INSIGHTS / ARTICLE LIST
   =========================================================================== */
.article-list { display: grid; gap: clamp(24px, 3vw, 40px); }
.article-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line-dark);
}
.dark .article-card, .band .article-card { border-bottom-color: var(--line-light); }
.article-card-image { overflow: hidden; display: block; }
.article-card-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.article-card-image:hover img { transform: scale(1.05); }
.article-card-body h3 { margin: 0.4rem 0 0.8rem; }
.article-card-body h3 a { transition: color 0.3s var(--ease); }
.article-card-body h3 a:hover { color: var(--accent-strong); }
.article-card-body p { opacity: 0.84; }

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.dark .link-arrow, .band .link-arrow { color: var(--accent); }
.link-arrow::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow--back::after { content: ""; }
.link-arrow--back::before { content: "←"; transition: transform 0.35s var(--ease); }
.link-arrow--back:hover::before { transform: translateX(-5px); }

/* ===========================================================================
   ARTICLE BODY (prose for insight pages)
   =========================================================================== */
.article-shell { max-width: 760px; margin: 0 auto; }
.article-body { font-size: 1.12rem; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 {
  margin: 2.6rem 0 0.4rem;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}
.article-body h3 {
  margin: 1.9rem 0 0.3rem;
  color: var(--accent-strong);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}
.article-body p { opacity: 0.9; }
.article-back { margin-top: 3rem; }

/* ===========================================================================
   CALL TO ACTION
   =========================================================================== */
.cta { text-align: center; }
.cta .container { max-width: min(64rem, 100%); margin-inline: auto; }
.cta h2 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
.cta .lead { max-width: min(58rem, 100%); margin-inline: auto; opacity: 0.86; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 1.8rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.button:hover { background: var(--paper); color: var(--ink); }
.light .button:hover { background: var(--ink); color: var(--paper); }

/* ===========================================================================
   CONTACT FORM
   =========================================================================== */
.contact-form { display: grid; gap: 18px; max-width: 760px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label {
  display: grid;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  padding: 0.9rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: var(--white);
}
textarea { min-height: 170px; resize: vertical; }
.contact-form .button { justify-self: start; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-light);
  padding: clamp(40px, 5vw, 64px) 0;
}
.footer-inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px 40px;
}
.footer-brand { width: min(230px, 46vw); line-height: 0; }
.footer-brand img { width: 100%; height: auto; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-nav a { color: rgba(247, 244, 238, 0.7); transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--white); }
.copyright { color: rgba(247, 244, 238, 0.55); font-size: 0.85rem; white-space: nowrap; }

/* ===========================================================================
   SCROLL REVEAL ANIMATION
   =========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  /* Full-width dropdown that drops straight down from the header.
     Links stack as full-width rows — no horizontal scrolling. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    background: rgba(13, 17, 20, 0.98);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line-light);
    box-shadow: 0 26px 44px -28px rgba(0, 0, 0, 0.7);
    font-size: 0.82rem;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0s;
  }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 15px 2px;
    color: rgba(247, 244, 238, 0.84);
    border-bottom: 1px solid var(--line-light);
    white-space: normal;
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { color: var(--white); }
  body.nav-open { overflow: hidden; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .media-split, .media-split--flip .media-frame { grid-template-columns: 1fr; order: 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service-col { padding: 18px 0; border-top: 1px solid var(--line-dark); }
  .dark .service-col, .band .service-col { border-top-color: var(--line-light); }
  .service-col:first-child { border-top: 0; }
  .feature-item { grid-template-columns: 1fr; gap: 6px; }
  .cards-rows .panel { grid-template-columns: 1fr; gap: 10px; }
  .media-split--round { grid-template-columns: 1fr; }
  .media-frame--round { width: 168px; height: 168px; }
  .case { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .copyright { white-space: normal; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-wrap { min-height: 70px; }
  .team-card { grid-template-columns: 1fr; gap: 16px; }
  .team-card img { width: 120px; height: 120px; }
  .step { grid-template-columns: 44px 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
