/* ==========================================================================
   Pradeep Srivastava — candidate B
   "Structured richness": annual-report grids, credibility strip, gold timeline
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-deep: #071426;
  --ivory: #F7F4EE;
  --paper: #FFFFFF;
  --gold: #B8963E;
  --gold-light: #D9C287;
  --ink: #1C2430;
  --slate: #5B6470;
  --line: #E3DED3;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: var(--navy);
  text-decoration: none;
}

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

figure {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 500;
  border: 1px solid var(--gold);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.eyebrow-gold {
  color: var(--gold-light);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  letter-spacing: -0.005em;
  max-width: 22ch;
  text-wrap: balance;
}

.section-title-light {
  color: var(--ivory);
}

.section-head-centre {
  text-align: center;
}

/* Centred headings get a wider measure so they do not wrap with single-word widows */
.section-head-centre .section-title {
  margin-inline: auto;
  max-width: 28ch;
}

.gold-rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 1.4rem 0 0;
  background: var(--gold);
}

.gold-rule-centre {
  margin-inline: auto;
}

.section-intro {
  max-width: 62ch;
  margin: 1.6rem 0 0;
  color: var(--slate);
}

.section-head-centre .section-intro {
  margin-inline: auto;
}

.section-intro-light {
  color: rgba(247, 244, 238, 0.78);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 244, 238, 0.45);
}

.btn-outline-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-nav {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--navy-deep);
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wordmark-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2px;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}

/* CSS-only texture: fine grid, a diagonal hairline weave, and a soft vignette */
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(184, 150, 62, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 150, 62, 0.07) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(247, 244, 238, 0.018) 0 1px, transparent 1px 14px),
    radial-gradient(ellipse 70% 60% at 78% 40%, rgba(11, 31, 58, 0.95), transparent 70%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  background-position: center;
}

.hero-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 100%, transparent 40%, rgba(7, 20, 38, 0.75) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-top: clamp(3.5rem, 6vw, 5.25rem);
  padding-bottom: clamp(3.5rem, 6.5vw, 5.75rem);
}

.hero-copy {
  position: relative;
  padding-top: 1.6rem;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(2.6rem, 4.5vw, 3.95rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ivory);
  max-width: 21ch;
}

.hero-sub {
  max-width: 58ch;
  margin-top: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(247, 244, 238, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-portrait {
  justify-self: end;
  width: min(100%, 340px);
}

.portrait-frame {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(184, 150, 62, 0.45);
  background: rgba(247, 244, 238, 0.03);
}

.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
}

.portrait-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.portrait-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.portrait-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--navy-deep);
}

/* Kept for the standalone monogram asset in assets/img/ */
.monogram {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}

.portrait-caption {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--gold);
  line-height: 1.35;
}

.portrait-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
}

.portrait-org {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Credibility strip
   -------------------------------------------------------------------------- */
.cred-strip {
  background: var(--navy);
  color: var(--ivory);
  border-top: 1px solid rgba(184, 150, 62, 0.4);
  border-bottom: 1px solid rgba(184, 150, 62, 0.4);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.cred-item {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.9rem 1.25rem 1.7rem;
  border-left: 1px solid rgba(247, 244, 238, 0.1);
}

.cred-item:first-child {
  border-left: none;
  padding-left: 0;
}

.cred-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.cred-item:first-child::before {
  left: 0;
}

.cred-item:hover::before {
  transform: scaleX(1);
}

.cred-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gold-light);
  letter-spacing: 0;
  text-wrap: balance;
  /* Reserve two lines so a value that wraps does not push its label out of alignment */
  display: flex;
  align-items: flex-end;
  min-height: 2.3em;
}

.cred-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.45;
  color: rgba(247, 244, 238, 0.72);
}

/* --------------------------------------------------------------------------
   Availability statement
   -------------------------------------------------------------------------- */
.availability {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.availability-inner {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}

.availability-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--navy);
  padding-top: 0.35rem;
  position: relative;
}

.availability-label::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 0.9rem;
}

.availability-text {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
}

.availability-text strong {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .availability-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .availability-text strong {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Ways to engage: closing call to action
   -------------------------------------------------------------------------- */
.engage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--navy);
  border-top: 2px solid var(--gold);
}

.engage-cta-text {
  margin: 0;
  max-width: 52ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ivory);
}

@media (max-width: 640px) {
  .engage-cta .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-layout .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.about-body p + p {
  margin-top: 1.25rem;
}

.about-body .lead {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.card:hover {
  border-color: var(--gold-light);
}

.card:hover::before {
  transform: scaleX(1);
}

.section-alt .card {
  background: var(--ivory);
}

.card-index {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.card-index::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 0.5rem;
  background: var(--line);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate);
}

/* Impact variant */
.card-impact {
  padding-top: 1.75rem;
}

.impact-value {
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.95vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
  /* Reserve two lines so the four impact figures share one baseline */
  display: flex;
  align-items: flex-end;
  min-height: 2.3em;
}

.card-impact .card-title {
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   Board (dark section)
   -------------------------------------------------------------------------- */
.section-board {
  background: var(--navy);
  color: var(--ivory);
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.board-layout .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  border-left: 1px solid rgba(247, 244, 238, 0.14);
}

.board-item {
  position: relative;
  padding: 1.75rem 1.6rem 1.7rem 2.2rem;
  border-right: 1px solid rgba(247, 244, 238, 0.14);
  border-bottom: 1px solid rgba(247, 244, 238, 0.14);
  transition: background-color 0.3s var(--ease);
}

.board-item::before {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: 0.85rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.board-item:hover {
  background: rgba(247, 244, 238, 0.035);
}

.board-item-title {
  font-size: 1.3rem;
  color: var(--ivory);
  margin-bottom: 0.55rem;
}

.board-item-text {
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(247, 244, 238, 0.74);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 190px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--line) 60%, var(--line));
}

.tl-entry {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 3.75rem;
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.tl-entry:last-child {
  padding-bottom: 0;
}

.tl-marker {
  position: absolute;
  top: 6px;
  left: 190px;
  width: 13px;
  height: 13px;
  transform: translateX(-50%);
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.tl-marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.tl-entry:first-child .tl-marker {
  box-shadow: 0 0 0 5px rgba(184, 150, 62, 0.18);
}

.tl-date {
  padding-top: 2px;
  text-align: right;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate); /* gold on ivory fails 4.5:1 at this size; gold stays on the marker and rail */
  line-height: 1.5;
}

.tl-body {
  padding-left: 0;
}

.tl-role {
  font-size: 1.5rem;
  line-height: 1.15;
}

.tl-org {
  margin: 0.3rem 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
}

.tl-bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
}

.tl-bullets li + li {
  margin-top: 0.45rem;
}

.tl-bullets li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.tl-entry-condensed .tl-role {
  font-size: 1.25rem;
}

.tl-entry-condensed .tl-bullets li {
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Credentials
   -------------------------------------------------------------------------- */
.cred-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.cred-col {
  padding: 2rem 2rem 0.5rem;
  border-left: 1px solid var(--line);
}

.cred-col:first-child {
  padding-left: 0;
  border-left: none;
}

.cred-col:last-child {
  padding-right: 0;
}

.cred-col-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.7rem;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.cred-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.cred-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cred-list li::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Markets
   -------------------------------------------------------------------------- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.market-item {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease);
}

.market-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.market-item:hover {
  border-color: var(--gold-light);
}

.market-item:hover::before {
  transform: scaleX(1);
}

.market-title {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.market-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.section-contact {
  position: relative;
  background: var(--navy-deep);
  color: var(--ivory);
  overflow: hidden;
}

.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 150, 62, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 150, 62, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.section-contact .container {
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-layout .section-head {
  margin-bottom: 0;
}

.contact-invitation {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(247, 244, 238, 0.86);
  max-width: 58ch;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(184, 150, 62, 0.35);
}

.contact-links li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contact-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ivory);
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
  align-self: flex-start;
}

.contact-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.contact-actions {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(247, 244, 238, 0.7);
  border-top: 1px solid rgba(184, 150, 62, 0.4);
}

.footer-inner {
  padding-block: 2.25rem 2rem;
}

.footer-line {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.75);
  max-width: 70ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 244, 238, 0.12);
}

.footer-copy {
  font-size: 0.8rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.7);
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Reveal (IntersectionObserver fade-up)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger siblings inside grids */
.card-grid .reveal:nth-child(2),
.board-grid .reveal:nth-child(2),
.market-grid .reveal:nth-child(2),
.cred-columns .reveal:nth-child(2) { transition-delay: 0.08s; }

.card-grid .reveal:nth-child(3),
.board-grid .reveal:nth-child(3),
.market-grid .reveal:nth-child(3),
.cred-columns .reveal:nth-child(3) { transition-delay: 0.16s; }

.card-grid .reveal:nth-child(4),
.board-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.card-grid .reveal:nth-child(5),
.board-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

.card-grid .reveal:nth-child(6),
.board-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

/* No JS: show everything */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cred-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cred-item:first-child {
    padding-left: 1.25rem;
  }

  .cred-item:nth-child(3n + 1) {
    border-left: none;
  }

  .cred-item:nth-child(n + 4) {
    border-top: 1px solid rgba(247, 244, 238, 0.1);
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The header tagline is dropped below 1100px: at 0.7rem it widens the wordmark enough
     that the (deliberately nowrap) desktop nav would overflow between 961px and ~1000px. */
  .wordmark-sub {
    display: none;
  }
}

/* Desktop header between the hamburger breakpoint and 1100px: tighten spacing so the
   nowrap nav always fits inside the container, even on the wider fallback font stack. */
@media (min-width: 961px) and (max-width: 1100px) {
  .header-inner {
    gap: 1rem;
  }

  .primary-nav {
    gap: 1.25rem;
  }

  .nav-list {
    gap: 1.15rem;
  }

  .btn-nav {
    padding-inline: 1rem;
  }
}

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

  /* Copy first on tablet/mobile so eyebrow, headline and primary CTA land in the first viewport;
     the portrait follows at a reduced size. */
  .hero-portrait {
    justify-self: start;
    width: min(100%, 220px);
  }

  .about-layout,
  .board-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-layout .section-head,
  .board-layout .section-head {
    position: static;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cred-columns {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .cred-col,
  .cred-col:first-child,
  .cred-col:last-child {
    padding: 1.75rem 0 0.5rem;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before,
  .tl-marker {
    left: 8px;
  }

  .tl-marker {
    transform: translateX(-50%);
    top: 4px;
  }

  .tl-entry {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-left: 2.25rem;
  }

  .tl-date {
    text-align: left;
    padding-top: 0;
  }
}

/* Hamburger breakpoint: aligned with the 960px layout breakpoint above.
   Keep in sync with the (min-width: 961px) reset query in assets/js/main.js. */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    transform-origin: top;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .primary-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .btn-nav {
    margin-top: 1.25rem;
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .cred-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cred-item {
    padding: 1.4rem 1rem 1.3rem;
    border-left: 1px solid rgba(247, 244, 238, 0.1);
  }

  .cred-item:nth-child(3n + 1) {
    border-left: 1px solid rgba(247, 244, 238, 0.1);
  }

  .cred-item:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }

  .cred-item:nth-child(n + 3) {
    border-top: 1px solid rgba(247, 244, 238, 0.1);
  }

  .cred-value {
    font-size: 1.2rem;
  }

  .cred-label {
    font-size: 0.7rem;
  }

  .card-grid-3,
  .card-grid-4,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.6rem 1.35rem 1.5rem;
  }

  .board-item {
    padding: 1.5rem 1.25rem 1.5rem 2rem;
  }

  /* Tighten the hero on small screens so the primary CTA lands within the first viewport */
  .hero-inner {
    padding-top: 2.75rem;
    padding-bottom: 3rem;
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(2.05rem, 8.2vw, 2.6rem);
    line-height: 1.1;
  }

  .hero-sub {
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 1.6rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-link {
    font-size: 1.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
