/* Hallmark · macrostructure: existing Chairwell page, asymmetric pull quotes · tone: editorial restraint · anchor hue: gilt · pre-emit critique: P5 H5 E5 S5 R5 V4 · contrast: pass (40–41) · slop: pass (component scope) */
@import url("tokens.css");

/* ============================================================
   Chairwell Partners — Brand Identity System v2.1
   "Chrome Identity Edition" — dark-native, no light mode.
   Pure static CSS, mobile-first. No frameworks.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --void:     #09090D; /* background */
  --stellar:  #EAEDF1; /* primary text (16.9:1 on Void — AAA) */
  --chrome:   #BBC2CB; /* secondary text, rules, dividers, meta/labels */
  --gunmetal: #3D4750; /* supporting structure */
  --gilt:     #BF9A3F; /* accent — the seal, used sparingly */

  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 68ch;        /* max line length */
  --wrap-max: 1080px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --nav-h: 64px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--void);
  scroll-padding-top: clamp(10rem, 26vw, 11rem); /* clears the full-height sticky header */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--void);
  overflow-x: clip;
  color: var(--stellar);
  font-family: var(--font-body);
  font-size: 18px;          /* body minimum */
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---- Links (no underlines; weight / Gilt convey state) ---- */
a {
  color: var(--stellar);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover, a:focus-visible { color: var(--gilt); }

/* ---- Focus: 2px Gilt outline on Void for all keyboard-navigable elements ---- */
:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--void);
  color: var(--stellar);
  border: 1px solid var(--gunmetal);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---- Layout helpers ---- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ============================================================
   Header / sticky nav — slim: the page, not the chrome, leads
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 13, 0.88);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--gunmetal);
}

.header-inner {
  min-height: var(--nav-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding-block: 0.6rem;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  width: auto;
  height: clamp(76px, 14vw, 116px);  /* constant size — no shrink on scroll */
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem clamp(0.9rem, 3vw, 1.9rem);
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stellar);
  display: inline-block;
  padding: 0.45rem 0;       /* enlarge tap target */
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gilt); }

/* Contact as a quiet button in the nav */
.site-nav a.nav-cta {
  border: 1px solid var(--gilt);
  color: var(--gilt);
  padding: 0.45rem 0.9rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.site-nav a.nav-cta:hover, .site-nav a.nav-cta:focus-visible {
  background: var(--gilt);
  color: var(--void);
}


/* ============================================================
   Typography
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5rem);   /* Display ~56–80px */
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--stellar);
  max-width: 19ch;
  min-width: 0;
  overflow-wrap: anywhere;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 0 0 1.25rem;
  color: var(--stellar);
  white-space: nowrap;   /* section titles stay on one line at tablet/desktop */
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Phones can't fit long serif titles on one line without going unreadable —
   allow wrapping below the tablet breakpoint. */
@media (max-width: 640px) {
  h2 { white-space: normal; }
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--stellar);
}

/* Small-caps Chrome label — replaces icons / eyebrows */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome);
  margin: 0 0 1.1rem;
  position: relative;
  padding-left: 2.75rem;
}
/* The single Gilt signature accent per section: a short hairline before the label */
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 2rem;
  height: 1px;
  background: var(--gilt);
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--stellar);
  max-width: var(--measure);
  margin: 1.5rem 0 0;
}

.prose { max-width: var(--measure); }
.prose--narrow { max-width: 60ch; }
.prose p {
  margin: 0 0 1.2rem;
  color: var(--chrome);
}
.prose p:last-child { margin-bottom: 0; }

.accent {
  color: var(--gilt);
  font-style: normal;
}

em { font-style: italic; }   /* italics for true emphasis only */

/* ============================================================
   Buttons & calls to action
   ============================================================ */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2.4rem;
}
.cta-row--section { margin-top: 2.75rem; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1rem 1.6rem;
  border: 1px solid var(--gunmetal);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  border-color: var(--gilt);
  color: var(--gilt);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--gilt);
  color: var(--void);
}

.btn--secondary {
  border-color: var(--gunmetal);
  color: var(--stellar);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  border-color: var(--gilt);
  color: var(--gilt);
  background: transparent;
}

/* Quiet inline CTA at the end of sections */
.cta-inline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stellar);
  padding: 0.45rem 0;
}
.cta-inline:hover, .cta-inline:focus-visible { color: var(--gilt); }

/* ============================================================
   Sections
   ============================================================ */
.hero {
  padding-block: clamp(4rem, 10vw, 7.5rem) 0;
  border-bottom: 1px solid var(--gunmetal);
}

/* Proof strip — quiet, factual, beneath the hero */
.proof {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--gunmetal);
}
.proof-grid {
  margin: 0;
  display: grid;
  gap: 1.5rem 3rem;
}
.proof-eyebrow {
  margin: 0 0 1.25rem;
}
.proof-item dt {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome);
  opacity: 0.75;
  margin: 0 0 0.45rem;
}
.proof-item dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--stellar);
  margin: 0;
  max-width: 34ch;
}

@media (min-width: 820px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Recent-session feedback — asymmetric, editorial and unattributed ---- */
.feedback-section {
  padding-block: var(--space-feedback-section);
  border-bottom: var(--rule-feedback);
  background: var(--color-feedback-background);
}

.feedback-top {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.75fr);
  gap: var(--space-feedback-column);
  align-items: start;
  margin-bottom: var(--space-feedback-heading);
}

.feedback-top > .eyebrow {
  margin: 0;
}

.feedback-intro {
  max-width: 45ch;
  margin: 0;
  color: var(--color-feedback-muted);
  font-size: var(--text-feedback-intro);
  line-height: 1.55;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.85fr);
  border-top: var(--rule-feedback);
}

.feedback-quote {
  min-width: 0;
  margin: 0;
  padding-block: var(--space-feedback-quote);
}

.feedback-quote p {
  margin: 0;
  color: var(--color-feedback-text);
  font-family: var(--font-feedback-display);
  font-size: var(--text-feedback-supporting);
  font-style: normal;
  font-weight: 400;
  line-height: 1.24;
  text-wrap: balance;
}

.feedback-quote--lead {
  padding-right: var(--space-feedback-column);
}

.feedback-quote--lead p {
  max-width: 25ch;
  font-size: var(--text-feedback-lead);
  line-height: 1.12;
}

.feedback-supporting {
  min-width: 0;
  border-left: var(--rule-feedback);
  padding-left: var(--space-feedback-column);
}

.feedback-supporting .feedback-quote + .feedback-quote {
  border-top: var(--rule-feedback);
}

.feedback-source {
  display: flex;
  flex-direction: column;
  gap: var(--space-feedback-source);
  margin-top: var(--space-feedback-attribution);
  font-family: var(--font-feedback-body);
  font-style: normal;
}

.feedback-sector {
  color: var(--color-feedback-accent);
  font-size: var(--text-feedback-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.feedback-role {
  color: var(--color-feedback-muted);
  font-size: var(--text-feedback-role);
  line-height: 1.4;
}

@media (max-width: 819px) {
  .feedback-top,
  .feedback-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-top {
    gap: var(--space-feedback-mobile-gap);
  }

  .feedback-intro {
    max-width: var(--measure);
  }

  .feedback-quote--lead {
    padding-right: 0;
  }

  .feedback-supporting {
    border-left: 0;
    padding-left: 0;
  }

  .feedback-supporting .feedback-quote {
    border-top: var(--rule-feedback);
  }
}

.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
  border-bottom: 1px solid var(--gunmetal);
}

/* ---- Four Questions — the centrepiece: more air, Gilt numerals ---- */
.section--questions {
  background: linear-gradient(180deg, rgba(61,71,80,0.12), transparent 45%);
  padding-block: clamp(4rem, 10vw, 7.5rem);
}

.questions {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.question {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--gunmetal);
}
.question:last-child { border-bottom: 1px solid var(--gunmetal); }

.question-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1;
  color: var(--gilt);
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.question-text {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.32;
  color: var(--stellar);
  max-width: 46ch;
  align-self: center;
}

.section--questions .prose--narrow { margin-top: 2.75rem; }

@media (min-width: 720px) {
  .question {
    grid-template-columns: 5.5rem 1fr;
    gap: 2.5rem;
  }
}

/* ---- What we do (three services) ---- */
.services {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
}
.service {
  padding: 1.9rem 0;
  border-top: 1px solid var(--gunmetal);
}
.service:last-child { border-bottom: 1px solid var(--gunmetal); }
.service p {
  margin: 0;
  color: var(--chrome);
  max-width: var(--measure);
}

@media (min-width: 860px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .service {
    border-top: 1px solid var(--gunmetal);
    border-bottom: none;
    padding: 2rem 0 0;
  }
  .service:last-child { border-bottom: none; }
}

/* ---- What you gain (six points) ---- */
.gain {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.gain-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--gunmetal);
  color: var(--stellar);
  font-size: 1.1rem;
  max-width: 52ch;
}
.gain-item:last-child { border-bottom: 1px solid var(--gunmetal); }

@media (min-width: 760px) {
  .gain {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
  .gain-item { max-width: none; }
  .gain-item:nth-last-child(2) { border-bottom: 1px solid var(--gunmetal); }
}

/* ---- Who we are / Team ---- */
.team-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
  margin: 3.5rem 0 0;
}

.team-accordion {
  margin-top: 0.5rem;
}

.bio-item {
  border-top: 1px solid var(--gunmetal);
}
.bio-item:last-child {
  border-bottom: 1px solid var(--gunmetal);
}
.bio-item[open] { border-color: var(--chrome); }

.bio-summary {
  display: grid;
  grid-template-columns: 1fr auto;   /* name+creds | toggle — purely typographic */
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  cursor: pointer;
  list-style: none;
  padding: 1.75rem 0;
  user-select: none;
}
.bio-summary::-webkit-details-marker { display: none; }

/* Name + credentials stack: name leads, small-caps Chrome credential line beneath */
.bio-summary__id {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

/* ---- Expand portraits only: duotone-toned, square, Chrome hairline ring ---- */
.bio-portrait {
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background: var(--void);
  border: 1px solid var(--chrome);
  border-radius: 2px;
}
/* Chrome-Identity duotone, baked at render via the inline #cw-duotone filter.
   Full tonal range + slight contrast so faces stay clear, not muddy. */
img.bio-portrait { filter: url(#cw-duotone) contrast(1.06); }

.bio-portrait { width: 128px; height: 128px; }

/* Monogram tile shares the exact frame + dimensions of the photos */
.bio-portrait--mono {
  display: grid;
  place-items: center;
  background: var(--gunmetal);
  color: var(--stellar);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: 3rem;
}

.bio-summary__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.2;
  color: var(--stellar);
  white-space: nowrap;
}

.bio-summary__creds {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome);
  line-height: 1.4;
}

/* CSS-only Read / Close toggle — no JS needed.
   Carries the row's single Gilt accent, on hover/focus only (Gilt discipline). */
.bio-summary__toggle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chrome);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
@media (prefers-reduced-motion: no-preference) {
  .bio-summary__toggle { transition: color 0.25s ease; }
}
.bio-summary:hover .bio-summary__toggle,
.bio-summary:focus-visible .bio-summary__toggle { color: var(--gilt); }
.bio-summary__toggle::before { content: "Read"; }
.bio-item[open] .bio-summary__toggle::before { content: "Close"; }

.bio-expand {
  padding: 0 0 1.75rem;
  max-width: var(--measure);
  display: grid;
  grid-template-columns: auto 1fr;   /* larger portrait | bio text */
  gap: 1.5rem 1.75rem;
  align-items: start;
}
.bio-expand__text { min-width: 0; }
.bio-expand p {
  margin: 0 0 1rem;
  color: var(--chrome);
}
.bio-expand p:last-child { margin-bottom: 0; }

.bio-linkedin {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  border-bottom: 1px solid var(--gunmetal);
  padding-bottom: 1px;
}
.bio-linkedin:hover, .bio-linkedin:focus-visible {
  color: var(--gilt);
  border-bottom-color: var(--gilt);
}

@media (max-width: 540px) {
  /* name+creds | toggle — identical typographic content, scaled down */
  .bio-summary {
    gap: 0.4rem 0.9rem;
  }
  .bio-summary__id { gap: 0.4rem; }
  .bio-summary__creds { font-size: 0.7rem; }

  /* portrait stacks above the bio text on narrow screens */
  .bio-expand {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .bio-portrait { width: 96px; height: 96px; }
  .bio-portrait--mono { font-size: 2.25rem; }
}

/* ---- Contact ---- */
.section--contact { border-bottom: none; }
.contact-email {
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
  color: var(--chrome);
}
.contact-email a { color: var(--chrome); }
.contact-email a:hover, .contact-email a:focus-visible { color: var(--gilt); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--void);
  border-top: 1px solid var(--gunmetal);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.footer-name {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--stellar);
  margin: 0 0 0.4rem;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--chrome);
  margin: 0 0 1.1rem;
}
.footer-contact {
  font-size: 0.95rem;
  color: var(--chrome);
  margin: 0;
}
.footer-contact a { color: var(--chrome); }
.footer-contact a:hover, .footer-contact a:focus-visible { color: var(--gilt); }
.footer-sep { margin-inline: 0.6rem; color: var(--gunmetal); }

/* ============================================================
   Motion — opacity only; respect reduced-motion
   ============================================================ */
.js .reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.js .reveal.is-visible { opacity: 1; }

/* No-JS users and reduced-motion users see everything immediately. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transition: none !important; }
}
