/* ==========================================================================
   Page-level compositions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(90svh, 880px);
  padding-block: var(--sp-9) var(--sp-8);
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

/* Static stand-in shown when the canvas is suppressed. */
.hero__static {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(201, 164, 76, .22), transparent 62%),
    radial-gradient(ellipse 60% 50% at 12% 86%, rgba(122, 148, 167, .16), transparent 64%),
    linear-gradient(170deg, #0C1015, var(--obsidian) 58%);
}

.hero__grid {
  position: absolute;
  inset: -10% 0 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--gold) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gold) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .055;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 30%, #000 10%, transparent 76%);
  pointer-events: none;
}

/* Gold glow easing toward the cursor. */
.hero__glow {
  position: absolute;
  z-index: -2;
  width: 720px;
  height: 720px;
  left: var(--gx, 70%);
  top: var(--gy, 22%);
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(201, 164, 76, .17), transparent 64%);
  filter: blur(40px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.24fr .76fr; gap: var(--sp-9); }
}

.hero__title {
  font-size: var(--step-6);
  line-height: 1.02;
  margin-bottom: var(--sp-6);
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--muted-on-dark);
  max-width: 52ch;
  margin-bottom: var(--sp-7);
}

/* Rotating stat ticker under the hero CTAs. */
.ticker {
  position: relative;
  height: 26px;
  margin-top: var(--sp-7);
  padding-left: var(--sp-5);
  border-left: 1px solid var(--gold-a40);
  overflow: hidden;
}

.ticker__item {
  position: absolute;
  inset: 0;
  left: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--muted-on-dark);
  opacity: 0;
}

.ticker__item.is-active { animation: ticker-in 4.6s var(--ease-io) forwards; }

.ticker__num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-lit);
}

/* Floating credentials card in the hero's right column. */
.hero__card {
  position: relative;
  padding: var(--sp-6);
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--white-a10);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3), var(--inner-lift);
}

.hero__card-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--white-a06);
}

.hero__card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__card-row:first-child { padding-top: 0; }

.hero__card-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--gold);
  background: var(--gold-a08);
  border: 1px solid var(--gold-a24);
  border-radius: var(--r-md);
}

.hero__card-mark svg { width: 19px; height: 19px; }

.hero__card-title { font-size: .92rem; font-weight: 600; }
.hero__card-text { font-size: .8rem; color: var(--faint-on-dark); line-height: 1.5; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint-on-dark);
}

@media (max-width: 1023px) { .hero__scroll { display: none; } }

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 38px;
  background: var(--graphite);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 14px;
  background: var(--gold);
  animation: scroll-hint 2.1s var(--ease-io) infinite;
}

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-block: var(--sp-10) var(--sp-9);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 60% at 82% 10%, rgba(201, 164, 76, .15), transparent 64%),
    linear-gradient(170deg, #0C1015, var(--obsidian) 62%);
}

.page-hero__inner > * { max-width: 780px; }

.page-hero__title { font-size: var(--step-5); margin-block: var(--sp-5) var(--sp-5); }

.page-hero__lede {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--muted-on-dark);
  max-width: 58ch;
}

.page-hero .crumbs { margin-bottom: var(--sp-6); }

/* --------------------------------------------------------------------------
   Founder / split feature
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 980px) {
  .split { grid-template-columns: .9fr 1.1fr; gap: var(--sp-9); }
  .split--reverse > :first-child { order: 2; }
}

.portrait {
  position: relative;
  isolation: isolate;
}

/* Offset gold frame behind the photograph. */
.portrait::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  z-index: -1;
  border: 1px solid var(--gold-a40);
  border-radius: var(--r-lg);
}

.portrait img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}

.portrait__badge {
  position: absolute;
  left: calc(var(--sp-5) * -1);
  bottom: var(--sp-6);
  display: grid;
  gap: 2px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--glass-darker);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--white-a10);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}

.portrait__badge strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-lit);
  font-weight: 600;
}

.portrait__badge span {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.feature-img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}

.feature-img img { width: 100%; }

.feature-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 12, 16, .06), rgba(10, 12, 16, .5));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Key-aspects grid
   -------------------------------------------------------------------------- */

.aspects {
  display: grid;
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 720px) { .aspects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .aspects { grid-template-columns: repeat(3, 1fr); } }

.aspect {
  position: relative;
  padding: var(--sp-6);
  background: var(--obsidian-soft);
  transition: background-color var(--t-base) var(--ease-out);
}

.aspect:hover { background: var(--ink-raised); }

.aspect__num {
  font-family: var(--font-display);
  font-size: .84rem;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: var(--sp-4);
}

.aspect__title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.aspect__text { font-size: .88rem; line-height: 1.62; color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding-block: var(--sp-9);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, #11151B, var(--obsidian) 58%);
  border-block: 1px solid var(--white-a06);
}

.cta-band__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  text-align: center;
  justify-items: center;
}

.cta-band__title { font-size: var(--step-4); max-width: 20ch; }

.cta-band__text { color: var(--muted-on-dark); max-width: 54ch; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: var(--sp-9); } }

.contact-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--ink);
  border: 1px solid var(--graphite);
  border-radius: var(--r-lg);
  /* Deliberately dark inside the ivory section, so it must set its own text
     colour rather than inherit the section's near-black. */
  color: var(--text-on-dark);
  transition: border-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}

a.contact-card:hover { border-color: var(--gold-a40); transform: translateY(-3px); }

.contact-card__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--gold);
  background: var(--gold-a08);
  border: 1px solid var(--gold-a24);
  border-radius: var(--r-md);
}

.contact-card__mark svg { width: 19px; height: 19px; }

/* The email address is a single long token - let the flex child shrink and
   the word break rather than widening the page. */
.contact-card > span:last-child { min-width: 0; }
.contact-card__value { overflow-wrap: anywhere; }

.contact-card__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint-on-dark);
  margin-bottom: 2px;
}

.contact-card__value { display: block; font-size: 1rem; font-weight: 500; color: var(--text-on-dark); }
.contact-card__note { display: block; font-size: .8rem; color: var(--muted-on-dark); margin-top: 3px; line-height: 1.5; }

.hours { display: grid; gap: var(--sp-2); font-size: .9rem; }

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--white-a06);
  color: var(--muted-on-dark);
}

.hours__row:last-child { border-bottom: 0; }
.hours__row.is-today { color: var(--gold-lit); }
.hours__day { font-weight: 500; }
.hours__time { font-variant-numeric: tabular-nums; }

/* Click-to-load map keeps the iframe off the critical path. */
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--graphite);
  background: linear-gradient(140deg, var(--ink-raised), var(--obsidian));
}

.map iframe { width: 100%; height: 100%; border: 0; }

.map__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  text-align: center;
  cursor: pointer;
  background-image:
    linear-gradient(to right, var(--gold) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gold) 1px, transparent 1px);
  background-size: 44px 44px;
  background-color: var(--obsidian-soft);
  transition: background-color var(--t-base) var(--ease-out);
}

.map__poster:hover { background-color: var(--ink); }

.map__poster svg { width: 34px; height: 34px; color: var(--gold); }
.map__poster .contact-card__value { color: var(--text-on-dark); }
.map__poster-text { font-size: .9rem; color: var(--muted-on-dark); max-width: 30ch; }

/* --------------------------------------------------------------------------
   Insights
   -------------------------------------------------------------------------- */

.article-grid { display: grid; gap: var(--sp-6); }

@media (min-width: 760px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-6);
  background: var(--ink);
  border: 1px solid var(--graphite);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-a40);
  box-shadow: var(--shadow-2);
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint-on-dark);
  margin-bottom: var(--sp-4);
}

.article-card__tag { color: var(--gold); }

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  margin-bottom: var(--sp-3);
}

.article-card__excerpt {
  font-size: .92rem;
  line-height: 1.68;
  color: var(--muted-on-dark);
  margin-bottom: var(--sp-6);
  flex: 1;
}

.article-body { max-width: 68ch; }
.article-body h2 { font-size: var(--step-3); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.article-body h3 { font-size: var(--step-1); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.article-body p { margin-bottom: var(--sp-5); color: var(--muted-on-dark); }
.article-body ul { margin-bottom: var(--sp-5); display: grid; gap: var(--sp-3); }

.article-body ul li {
  position: relative;
  padding-left: var(--sp-5);
  color: var(--muted-on-dark);
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.callout {
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-6);
  background: var(--gold-a08);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 72svh;
  text-align: center;
  padding-block: var(--sp-9);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-a40);
  margin-bottom: var(--sp-5);
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .topbar, .header, .sheet, .mobile-bar, .popup, .orbs,
  .hero__canvas, .hero__glow, .cta-band { display: none !important; }

  body { background: #fff; color: #000; }
  .section, .page-hero { padding-block: 1.5rem; background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
