/* =========================================================
   Babatunde Adekson — Homepage (hero)
   Palette: warm cream background, near-black text,
   deep ink navy for premium accents, a touch of gold.
   ========================================================= */

:root {
  --cream: #efe8dd;
  --cream-soft: #f7f2ea;
  --cream-deep: #e8dccb;
  --ink: #15191b;            /* near-black text */
  --ink-muted: #4b5357;
  --navy: #16303a;
  --navy-deep: #0b1b22;
  --gold: #cfae7b;
  --gold-deep: #a9824f;
  --line: rgba(22, 48, 58, 0.16);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 72px);
  --header-h: 108px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  /* soft warm glow + very fine paper grain */
  background-image:
    radial-gradient(1200px 700px at 8% -10%, rgba(207, 174, 123, 0.07), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.12 0 0 0 0 0.14 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================= HEADER ================= */

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  height: 72px;
  width: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 40px);
}

.main-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* current page: gold text with the underline always drawn */
.main-nav a[aria-current="page"] { color: var(--gold-deep); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--gold-deep); }

.nav-cta-mobile { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.btn-small {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 0;
  background: var(--navy);
  color: var(--cream-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease);
}
.btn-small::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.btn-small:hover { color: var(--navy-deep); }
.btn-small:hover::before { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 24px; }

.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ================= HERO ================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(32px, 3.6vw, 56px) var(--gutter) clamp(32px, 3.2vw, 48px);
  min-height: calc(100svh - var(--header-h) - 56px);
}

/* ---------- left column ---------- */

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: clamp(8px, 2vw, 32px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--gold-deep);
}

.eyebrow .x {
  color: var(--gold-deep);
  font-size: 15px;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(46px, 5.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero h1 em {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}

.hero h1 .underline {
  position: absolute;
  left: 2%;
  bottom: -0.04em;
  width: 96%;
  height: 0.16em;
  overflow: visible;
}

.hero h1 .underline path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.4s var(--ease) 0.7s;
}

.is-loaded .hero h1 .underline path { stroke-dashoffset: 0; }

.lede {
  max-width: 470px;
  margin: 32px 0 0;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--ink-muted);
}

/* CTA */

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cta-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 2.2vw, 32px) clamp(24px, 2.4vw, 36px);
  background: var(--navy);
  color: var(--cream-soft);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.cta-block:hover::before { transform: scaleX(1); }
.cta-block .cta-title, .cta-block .cta-meta { transition: color 0.45s var(--ease); }
.cta-block:hover .cta-title { color: var(--navy-deep); }
.cta-block:hover .cta-meta { color: rgba(11, 27, 34, 0.7); }

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 350;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cta-meta {
  font-size: 13px;
  color: rgba(242, 234, 223, 0.66);
}

.cta-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 0;
  border: 1px solid rgba(207, 174, 123, 0.5);
  color: var(--gold);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.cta-arrow svg,
.text-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-block:hover .cta-arrow {
  border-color: rgba(11, 27, 34, 0.45);
  color: var(--navy-deep);
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.text-link svg { width: 16px; height: 16px; }
.text-link:hover { border-color: var(--navy); gap: 14px; }

/* ---------- right column ---------- */

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.frame {
  position: relative;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
}

/* corner ticks */
.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--navy);
  border-style: solid;
  border-width: 0;
}
.corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.frame-media {
  position: relative;
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--navy-deep);
}

.frame-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}

.is-loaded .frame-media img { transform: scale(1); }

/* gentle navy wash so the card stays legible */
.frame-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(11, 27, 34, 0.55) 100%);
  pointer-events: none;
}

/* card hangs off the frame's left edge so it never covers the hands */
.quote-card {
  position: absolute;
  z-index: 3;
  left: clamp(-56px, -3vw, -24px);
  bottom: clamp(44px, 5vw, 72px);
  width: clamp(230px, 40%, 300px);
  padding: 22px 24px 20px;
  background: rgba(247, 242, 234, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(11, 27, 34, 0.5);
}

.quote-mark {
  width: 22px;
  height: 16px;
  fill: var(--gold-deep);
  margin-bottom: 12px;
}

.quote-card p {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 380;
  color: var(--ink);
}

.quote-by {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.frame-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px 0;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.stat {
  padding: 4px clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.stat:first-child { padding-left: 0; border-left: 0; }

.stat dt {
  font-family: var(--font-serif);
  font-weight: 350;
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.stat dd {
  margin: 8px 0 0;
  max-width: 230px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ================= TICKER ================= */

.ticker {
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--cream);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker li {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 340;
  white-space: nowrap;
}

.ticker li::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 32px;
  background: var(--gold);
  transform: rotate(45deg);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= LOAD ANIMATION ================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.is-loaded .reveal {
  opacity: 1;
  transform: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1280px) {
  .status { display: none; }
}

@media (max-width: 1100px) {
  :root { --header-h: 76px; }

  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .brand img { height: 44px; }
  .btn-small { display: none; }
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 27, 34, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after { display: none; }

  .nav-cta-mobile {
    display: block;
    margin-top: 18px;
    padding: 14px 20px !important;
    text-align: center;
    border-radius: 100px;
    border: 0 !important;
    background: var(--navy);
    color: var(--cream-soft) !important;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 48px;
  }

  .hero-copy { gap: 36px; padding-top: 0; }
  .lede { max-width: 560px; }
  .frame-media { min-height: 0; aspect-ratio: 4 / 3.4; flex: none; }
  .quote-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: 520px;
    margin: -48px 20px 0;
  }
}

@media (max-width: 600px) {
  .brand img { height: 36px; }

  .eyebrow { gap: 8px; font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; }
  .eyebrow-line { width: 20px; }

  .hero h1 { font-size: clamp(44px, 13vw, 60px); }

  .cta-arrow { width: 46px; height: 46px; }

  .frame-media { aspect-ratio: 4 / 5; }

  .quote-card {
    margin: -40px 12px 0;
    padding: 18px 18px 16px;
  }

  .quote-card p { font-size: 16px; }

  .frame-caption { font-size: 10.5px; }

  .stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stat {
    display: grid;
    grid-template-columns: 124px 1fr;
    align-items: baseline;
    gap: 12px;
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .stat dt { font-size: 26px; white-space: nowrap; }
  .stat dd { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .frame-media img { transform: none; }
  .hero h1 .underline path { stroke-dashoffset: 0; }
}
