/* Nichols Group — theme.css
   Site-wide layout, components, utilities.
   Tokens are in tokens.css (loaded first). */

:root {
  --header-h: 84px;
  --page-pad: 40px;
}

html { scroll-behavior: smooth; }
body  { background: var(--bg-page); }

/* ── Accessibility ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-purple-700);
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
  font-size: 14px;
  font-weight: 700;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 0; }

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container        { max-width: 1280px; margin: 0 auto; padding: 0 var(--page-pad); }
.container-wide   { max-width: 1440px; margin: 0 auto; padding: 0 var(--page-pad); }
.container-narrow { max-width: 860px;  margin: 0 auto; padding: 0 var(--page-pad); }

.section       { padding: 120px 0; }
.section.tight { padding: 72px 0; }
.section.wash  { background: var(--bg-subtle); }
.section.deep  { background: var(--brand-purple-900); color: #fff; }
.section.deep .eyebrow      { color: var(--brand-purple-400); }
.section.deep h2,
.section.deep h1             { color: #fff; }

/* ── Header ──────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 34, 0.06);
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base);
}
.site-header.deep {
  background: rgba(61, 51, 112, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-header.deep .wordmark,
.site-header.deep .menu-btn { color: #fff; }

.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.wordmark {
  font-weight: 300; font-size: 32px; letter-spacing: -0.025em;
  color: var(--brand-purple-700); line-height: 1; cursor: pointer;
  border: 0; background: transparent; font-family: inherit; text-decoration: none;
  display: inline-block;
}
.menu-btn {
  font-family: inherit; font-weight: 700; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-purple-700);
  background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 4px;
}
.menu-btn .lines { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-btn .lines span {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-fast);
}

.app-body { padding-top: var(--header-h); }

/* ── Overlay menu ────────────────────────────────────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--brand-purple-900);
  color: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-overlay .menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--page-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--header-h);
}
.menu-overlay .menu-head .wordmark { color: #fff; }
.menu-overlay .close-btn {
  font-family: inherit; font-weight: 700; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px;
}
.menu-overlay .close-btn svg { stroke: #fff; }

.menu-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px;
  padding: 64px var(--page-pad);
  align-items: start; overflow: auto;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.menu-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.menu-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 0; color: #fff; border: 0;
  font-weight: 300; font-size: 56px; letter-spacing: -0.02em; line-height: 1;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard),
              padding-left var(--dur-base) var(--ease-standard);
}
.menu-list a:hover { color: #D4D3E9; padding-left: 10px; }
.menu-list a .num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--brand-purple-400); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
}
.menu-aside { color: var(--brand-purple-100); }
.menu-aside h5 {
  color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 12px;
}
.menu-aside ul { list-style: none; padding: 0; margin: 0 0 32px; }
.menu-aside ul li { padding: 6px 0; }
.menu-aside a { color: var(--brand-purple-100); border: 0; font-size: 15px; cursor: pointer; }
.menu-aside a:hover { color: #fff; }
.menu-foot {
  padding: 18px var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--brand-purple-400); letter-spacing: 0.06em;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 13px 22px; border-radius: 8px; border: 0;
  cursor: pointer; letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { box-shadow: var(--shadow-focus); outline: none; }
.btn-primary   { background: var(--brand-purple-700); color: #fff; }
.btn-primary:hover { background: var(--brand-purple-800); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-purple-700); border: 1px solid var(--brand-purple-700); }
.btn-secondary:hover { background: var(--brand-purple-050); color: var(--brand-purple-700); }
.btn-tertiary  { background: transparent; color: var(--brand-purple-700); padding-left: 0; padding-right: 0; }
.btn-tertiary:hover { color: var(--brand-purple-800); }
.btn-pill      { border-radius: 999px; padding: 11px 20px; font-size: 13px; }
.btn-on-dark   { background: #fff; color: var(--brand-purple-700); }
.btn-on-dark:hover { background: var(--brand-purple-100); }
.btn-ghost-on-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ── Type helpers ────────────────────────────────────────────────────────────── */
.h-xl { font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.025em; }
.h-lg { font-weight: 300; font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.h-md { font-weight: 300; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -0.015em; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0;
  min-height: calc(100vh - var(--header-h));
  display: grid; align-items: center;
  overflow: hidden;
}
.hero .hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 2;
}
.hero-copy .eyebrow-row { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.hero-copy .eyebrow-row .line { flex: 0 0 48px; height: 1px; background: var(--brand-purple-400); }
.hero-copy h1 { margin: 0 0 28px; }
.hero-copy .cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.hero-visual {
  position: relative; aspect-ratio: 4/5;
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-3);
}
.hero-visual img.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .medal {
  position: absolute; left: -50px; bottom: -40px;
  width: 200px; height: 200px;
  filter: drop-shadow(0 20px 40px rgba(57, 45, 112, 0.35));
}
.hero .scroll-hint {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.22em; color: var(--fg-3);
  text-transform: uppercase; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero .scroll-hint::after {
  content: ""; width: 1px; height: 40px; background: var(--brand-purple-400);
  animation: scroll-pulse 2s var(--ease-standard) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50%       { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ── Sector cards ────────────────────────────────────────────────────────────── */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector-card {
  background: #fff; border: 1px solid var(--border-1);
  border-radius: 16px; padding: 28px 24px;
  transition: box-shadow var(--dur-base), transform var(--dur-base), border-color var(--dur-base);
  cursor: pointer; display: flex; flex-direction: column; gap: 14px; min-height: 260px;
  text-decoration: none; color: inherit;
}
.sector-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); border-color: var(--brand-purple-400); }
.sector-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-purple-050);
  display: flex; align-items: center; justify-content: center;
}
.sector-card .icon svg { color: var(--brand-purple-700); }
.sector-card h3 { font-size: 24px; font-weight: 300; letter-spacing: -0.015em; margin: 0; color: var(--fg-1); }
.sector-card p  { font-size: 14px; color: var(--fg-3); margin: 0; line-height: 1.55; }
.sector-card .more { margin-top: auto; font-size: 13px; color: var(--brand-purple-700); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

.sector-hero {
  position: relative; aspect-ratio: 21/9; border-radius: 24px; overflow: hidden;
  cursor: pointer;
}
.sector-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,34,0) 40%, rgba(26,26,34,0.7) 100%);
}
.sector-hero .caption {
  position: absolute; inset: auto 0 0 0; padding: 32px 40px;
  color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.sector-hero .caption h2 { color: #fff; font-weight: 300; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.02em; margin: 0; }

/* ── Case study cards ────────────────────────────────────────────────────────── */
.case-grid        { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-grid.two    { grid-template-columns: repeat(2, 1fr); }
.case-card {
  background: #fff; border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: transform var(--dur-base), box-shadow var(--dur-base);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.case-card .image {
  aspect-ratio: 4/3; background: var(--brand-purple-100);
  position: relative; overflow: hidden;
}
.case-card .image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-out); }
.case-card:hover .image img { transform: scale(1.04); }
.case-card .image .mono {
  position: absolute; left: 20px; bottom: 16px; color: #fff;
  font-weight: 300; font-size: 56px; letter-spacing: -0.02em; line-height: 1;
  mix-blend-mode: difference;
}
.case-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.case-card .tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.case-card h4 { font-size: 19px; line-height: 1.3; font-weight: 400; margin: 0; color: var(--fg-1); letter-spacing: -0.01em; }
.case-card .meta { font-size: 12px; color: var(--fg-3); margin-top: auto; }

.case-feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--border-1);
  cursor: pointer; text-decoration: none; color: inherit;
}
.case-feature:last-of-type { border-bottom: 1px solid var(--border-1); }
.case-feature .image { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; }
.case-feature .image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.case-feature:hover .image img { transform: scale(1.03); }
.case-feature h3 { font-weight: 300; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 16px; }
.case-feature p { color: var(--fg-2); margin: 0 0 18px; }

/* ── Tags ────────────────────────────────────────────────────────────────────── */
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 11px; border-radius: 999px;
  background: var(--brand-purple-100); color: var(--brand-purple-900);
}
.tag.ghost   { background: var(--brand-purple-050); color: var(--brand-purple-700); }
.tag.inverse { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Stats ───────────────────────────────────────────────────────────────────── */
.stat .value {
  font-weight: 300; font-size: clamp(48px, 5vw, 80px);
  line-height: 1; letter-spacing: -0.02em; color: var(--brand-purple-700);
}
.stat .label { font-size: 14px; color: var(--fg-2); margin-top: 12px; line-height: 1.5; max-width: 26ch; }

/* ── Pull-quote ──────────────────────────────────────────────────────────────── */
.pullquote {
  font-weight: 300; font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.18; letter-spacing: -0.02em; color: var(--fg-1); max-width: 22ch;
}
.pullquote-attr { margin-top: 28px; font-size: 13px; color: var(--fg-3); }
.pullquote-attr strong { color: var(--fg-1); font-weight: 700; display: block; margin-bottom: 2px; }

/* ── CTA band ────────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--brand-purple-900);
  background-image: radial-gradient(circle at 10% 0%, rgba(127,198,222,0.22) 0%, transparent 50%),
                    radial-gradient(circle at 90% 100%, rgba(229,155,189,0.18) 0%, transparent 55%);
  color: #fff; border-radius: 24px;
  padding: 72px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.cta-band h2 { font-weight: 300; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin: 0; }
.cta-band p  { color: var(--brand-purple-100); margin: 16px 0 0; max-width: 40ch; }
.cta-band .cta-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand-purple-900);
  color: var(--brand-purple-100);
  padding: 96px 0 40px;
}
.site-footer .grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; }
.site-footer h5 {
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--brand-purple-100); font-size: 14px; border: 0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .wordmark { color: #fff; font-size: 40px; text-decoration: none; }
.site-footer .footer-brand p { margin-top: 18px; max-width: 36ch; font-size: 14px; line-height: 1.6; }
.site-footer .legal {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; color: var(--brand-purple-400);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer .legal .menu { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.site-footer .legal .menu li a { color: var(--brand-purple-400); }
.site-footer .legal .menu li + li::before { content: "·"; margin-right: 12px; }

/* ── Form ────────────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 20px; }
.field .label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; display: block;
}
.field input,
.field textarea,
.field select {
  font-family: inherit; font-size: 15px; padding: 13px 14px; width: 100%;
  border: 1px solid var(--border-1); border-radius: 8px;
  background: #fff; color: var(--fg-1);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none; border-color: var(--brand-purple-700); box-shadow: var(--shadow-focus);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ── Approach steps ──────────────────────────────────────────────────────────── */
.step-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 2px solid var(--brand-purple-700); padding-top: 24px; }
.step .num { font-weight: 300; font-size: 44px; line-height: 1; color: var(--brand-purple-400); letter-spacing: -0.02em; }
.step h4 { font-size: 19px; font-weight: 700; margin: 18px 0 10px; letter-spacing: 0; }
.step p  { font-size: 14px; color: var(--fg-3); margin: 0; line-height: 1.6; }

/* ── Page title ──────────────────────────────────────────────────────────────── */
.page-title { padding: calc(var(--header-h) + 72px) 0 72px; position: relative; overflow: hidden; }
.page-title.wash { background: var(--bg-subtle); }
.page-title h1 { font-size: clamp(48px, 6vw, 96px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.02; margin: 16px 0 0; }
.page-title .sub { font-size: clamp(18px, 1.4vw, 22px); color: var(--fg-2); max-width: 50ch; margin: 28px 0 0; line-height: 1.5; }
.page-title.with-image { padding: calc(var(--header-h) + 48px) 0 48px; }

/* ── Values ──────────────────────────────────────────────────────────────────── */
.values-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 40px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
}
.values-strip span { font-weight: 300; font-size: clamp(18px, 1.6vw, 24px); color: var(--brand-purple-700); letter-spacing: -0.01em; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--divider); }
.values-grid > div {
  background: var(--neutral-000); padding: 32px 28px; min-height: 180px;
  display: flex; flex-direction: column; gap: 12px;
}
.values-grid .num  { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--brand-purple-400); }
.values-grid .name { font-weight: 300; font-size: 32px; letter-spacing: -0.02em; color: var(--brand-purple-700); line-height: 1; }
.values-grid p     { font-size: 13px; color: var(--fg-3); margin: auto 0 0; line-height: 1.55; }

/* ── Long-form prose ─────────────────────────────────────────────────────────── */
.prose h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; letter-spacing: -0.02em; margin: 56px 0 16px; line-height: 1.15; }
.prose h3 { font-size: 22px; font-weight: 700; letter-spacing: 0; margin: 32px 0 10px; }
.prose p  { font-size: 17px; line-height: 1.7; color: var(--fg-2); max-width: 64ch; }
.prose .pull {
  font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25;
  color: var(--brand-purple-700); padding: 32px 0; max-width: 26ch;
  letter-spacing: -0.015em;
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
  margin: 32px 0;
}
.prose ul  { padding-left: 1.2em; }
.prose li  { font-size: 17px; line-height: 1.7; color: var(--fg-2); margin-bottom: 6px; max-width: 60ch; }

/* ── Article / news ──────────────────────────────────────────────────────────── */
.article-meta { display: flex; gap: 16px; color: var(--fg-3); font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.article-cover { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin: 40px 0 48px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card {
  background: #fff; border-radius: 16px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform var(--dur-base), box-shadow var(--dur-base);
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.article-card .image { aspect-ratio: 16/10; overflow: hidden; }
.article-card .image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.article-card:hover .image img { transform: scale(1.04); }
.article-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.article-card h4 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }

/* ── People ──────────────────────────────────────────────────────────────────── */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person { display: flex; flex-direction: column; gap: 10px; }
.person .portrait { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--brand-purple-100); }
.person .portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.person .name { font-size: 16px; font-weight: 700; margin-top: 4px; }
.person .role { font-size: 13px; color: var(--fg-3); }

/* ── Offices ─────────────────────────────────────────────────────────────────── */
.office-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.office {
  padding: 24px; border: 1px solid var(--border-1); border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px; background: #fff;
}
.office .city { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.office p { font-size: 13px; color: var(--fg-3); margin: 0; line-height: 1.5; }

/* ── Timeline ────────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--divider); }
.timeline .item { position: relative; margin-bottom: 36px; }
.timeline .item::before {
  content: ""; position: absolute; left: -28px; top: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand-purple-700); box-shadow: 0 0 0 4px var(--bg-page);
}
.timeline .year { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; color: var(--brand-purple-700); }
.timeline h4 { font-size: 22px; font-weight: 300; letter-spacing: -0.015em; margin: 4px 0 6px; }
.timeline p  { color: var(--fg-3); font-size: 14px; line-height: 1.6; max-width: 60ch; }

/* ── Scroll-reveal ───────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.nav-links { display: flex; justify-content: center; gap: 8px; padding: 48px 0; }
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  color: var(--brand-purple-700); border: 1px solid var(--border-1);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.nav-links .page-numbers.current { background: var(--brand-purple-700); color: #fff; border-color: var(--brand-purple-700); }
.nav-links .page-numbers:hover:not(.current) { background: var(--brand-purple-050); }
.nav-links .prev, .nav-links .next { padding: 0 16px; }

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.no-results { padding: 80px 0; text-align: center; color: var(--fg-3); }
.no-results h2 { font-size: 28px; font-weight: 300; margin-bottom: 12px; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  :root { --page-pad: 24px; --header-h: 64px; }
  .section { padding: 80px 0; }
  .section.tight { padding: 56px 0; }
  .hero { padding-top: calc(var(--header-h) + 32px) !important; padding-bottom: 64px !important; min-height: auto; }
  .hero .hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .hero-visual .medal { width: 96px !important; right: 12px !important; top: 12px !important; left: auto !important; bottom: auto !important; }
  .display { font-size: clamp(44px, 10vw, 72px) !important; }
  .page-title h1 { font-size: clamp(36px, 7vw, 56px) !important; }
  .h-md { font-size: clamp(28px, 5vw, 40px) !important; }
  .sector-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .case-grid, .case-grid.two { grid-template-columns: 1fr !important; }
  .step-row { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .values-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .people-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .office-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cta-band { grid-template-columns: 1fr !important; padding: 40px 28px !important; gap: 24px !important; }
  .site-footer .grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .site-footer .legal { flex-direction: column; gap: 10px; }
  .menu-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .menu-list a { font-size: clamp(40px, 11vw, 72px) !important; }
  .pullquote { font-size: clamp(26px, 5vw, 36px) !important; }
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1.3fr 1fr"],
  div[style*="grid-template-columns: 1.3fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.3fr"],
  div[style*="grid-template-columns: 1fr 1.4fr"],
  div[style*="grid-template-columns: 1fr 1.6fr"] {
    grid-template-columns: 1fr !important; gap: 40px !important;
  }
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important;
  }
  .stat .value { font-size: 48px !important; }
}
@media (max-width: 780px) {
  .menu-grid { padding: 32px var(--page-pad); }
  .menu-list a { font-size: 38px; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 32px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .case-feature { grid-template-columns: 1fr; gap: 24px; }
  .step-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .office-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sector-grid { grid-template-columns: 1fr !important; }
  .step-row { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .people-grid { grid-template-columns: 1fr 1fr !important; }
  .office-grid { grid-template-columns: 1fr !important; }
  .site-footer .grid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero .scroll-hint::after { animation: none; }
}
