/* =========================================================================
   Norris Transocean Capital — Global Styles
   ========================================================================= */

:root {
  --navy: #0B1F3A;
  --navy-light: #16335C;
  --navy-dark: #07142A;
  --gold: #C9A227;
  --gold-light: #E8C868;
  --gold-dark: #A3831F;
  --cream: #F7F1E3;
  --ink: #0B1F3A;
  --charcoal: #1F2937;
  --slate: #5B6470;
  --mist: #F8F6F2;
  --line: #E8E4DB;
  --white: #FFFFFF;
  --accent: #D64545;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
.font-display { font-family: 'Playfair Display', Georgia, serif; }
p { color: var(--slate); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Progress bar */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999; width: 0%; transition: width .05s linear;
}

/* Container */
.container-x {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding-left: 1.5rem; padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container-x { padding-left: 2rem; padding-right: 2rem; }
}

/* Sticky Nav */
.site-nav {
  transition: background-color .4s ease, box-shadow .4s ease, border-color .4s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-nav.scrolled {
  box-shadow: 0 1px 0 rgba(11,31,58,.08);
  background: rgba(255,255,255,.98);
}

/* Logo pulse */
.logo-pulse { transition: transform .4s ease, filter .4s ease; }
.logo-pulse:hover { transform: scale(1.04); filter: drop-shadow(0 8px 16px rgba(201,162,39,.25)); }

/* Nav links with gold underline */
.nav-link { position: relative; color: var(--charcoal); transition: color .25s ease; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

#mobileMenu { display: none; }
#mobileMenu.open { display: block; }

/* Buttons */
.btn-primary, .btn-gold, .btn-outline, .btn-ghost, .btn-ghost-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: .6rem; font-weight: 600; font-size: .95rem;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(11,31,58,.35); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(201,162,39,.45); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--navy); background: var(--cream); }
.btn-ghost-gold { border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost-gold:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,162,39,.1); }

/* Magnetic effect handled in JS; base transition */
.magnetic { transition: transform .2s ease-out; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover, .hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(11,31,58,.18);
  border-color: #d9d4c8;
}

/* 3D tilt cards */
.tilt-card { transform-style: preserve-3d; transition: transform .15s ease-out; }

/* Badge */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold-dark); background: rgba(201,162,39,.12);
  padding: .25rem .65rem; border-radius: 999px;
}
.badge-accent { color: var(--accent); background: #fbeaea; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }

/* Quote */
.quote-mark { color: var(--gold); opacity: .35; font-size: 3.5rem; line-height: 1; }

/* Divider */
.divider { height: 1px; background: var(--line); border: 0; }

/* Dark sections */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark a { color: #fff; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1), filter .8s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }

/* About-page entrance variants (directional / scale / blur) */
.reveal.r-left:not(.in)  { transform: translateX(-54px); }
.reveal.r-right:not(.in) { transform: translateX(54px); }
.reveal.r-scale:not(.in) { transform: scale(.92); }
.reveal.r-blur:not(.in)  { transform: translateY(22px); filter: blur(9px); }
.reveal.r-blur.in        { filter: blur(0); }

/* Stagger children reveal */
.stagger-reveal > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-reveal > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger-reveal > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger-reveal > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger-reveal > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger-reveal > .reveal:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* Forms */
.field {
  width: 100%; border: 1px solid var(--line); border-radius: .6rem;
  padding: .8rem 1rem; font-size: .95rem; color: var(--charcoal); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease, background-color .3s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); }

/* Spotlight cursor overlay in hero */
#heroSpotlight {
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(201,162,39,.12), transparent 25%);
}

/* Split text words */
.split-word { display: inline-block; overflow: hidden; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in .split-word > span { transform: translateY(0); }

/* Video background */
.video-bg { object-fit: cover; width: 100%; height: 100%; }

/* Parallax image wrapper */
.parallax-wrap { overflow: hidden; }
.parallax-wrap img { will-change: transform; }

/* Gold shimmer for headings */
.shimmer { background: linear-gradient(110deg, var(--navy) 45%, var(--gold) 50%, var(--navy) 55%);
  background-size: 260% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Underline reveal */
.link-underline { position: relative; }
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .3s ease;
}
.link-underline:hover::after { width: 100%; }

/* ---------- Quote / insight carousel ---------- */
.quote-carousel { position: relative; outline: none; }
.quote-track {
  display: flex;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.quote-slide {
  flex: 0 0 100%; min-width: 100%;
  box-sizing: border-box; padding: 0 1rem; text-align: center;
}
.quote-slide .quote-mark { font-size: 4rem; line-height: 1; }
.quote-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(201,162,39,.3); border: 0; cursor: pointer;
  transition: background-color .3s ease, width .3s ease;
}
.quote-dot.active { background: var(--gold); width: 30px; }
.quote-dot:hover { background: var(--gold-light); }

/* Dark cards inside navy sections */
.on-dark-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.on-dark-card:hover { background: rgba(255,255,255,.08); border-color: rgba(201,162,39,.4); }

/* Alternating teal accent on coverage grid cards */
.bg-navy .on-dark-card:nth-child(even) {
  border-color: rgba(43,179,192,.35);
  background: linear-gradient(145deg, rgba(43,179,192,.08), rgba(255,255,255,.03));
}
.bg-navy .on-dark-card:nth-child(even):hover {
  border-color: rgba(43,179,192,.65);
  background: linear-gradient(145deg, rgba(43,179,192,.12), rgba(255,255,255,.05));
  box-shadow: 0 24px 48px -18px rgba(43,179,192,.25);
}

/* Flip cards */
.flip-card {
  perspective: 1100px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1rem;
}
.flip-card-back {
  transform: rotateY(180deg);
  background: var(--navy);
  border: 1px solid rgba(201,162,39,.35);
  color: #fff;
  padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: center;
}
.flip-card-back p { color: rgba(255,255,255,.82); }
.flip-card { transition: transform .35s ease; }
.flip-card:hover { transform: translateY(-6px); }
.flip-card:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.flip-card-front.card { height: 100%; }

/* Subtle hover lift for image wraps */
.group .tilt-card { transition: transform .15s ease-out, box-shadow .4s ease; }

/* =========================================================================
   Homepage enhancements — auxiliary accent, hero readability, cards, parallax
   ========================================================================= */

/* Auxiliary accent colour (teal) to break the navy/gold monotony */
:root { --teal: #2BB3C0; --teal-deep: #1B8A94; }

/* Deeper hero gradient for text contrast */
.hero-overlay-grad {
  background: linear-gradient(180deg, rgba(7,20,42,.55) 0%, rgba(7,20,42,.78) 55%, rgba(7,20,42,.94) 100%);
}
.hero-tint {
  background:
    radial-gradient(60% 50% at 78% 26%, rgba(43,179,192,.22), transparent 60%),
    radial-gradient(52% 46% at 16% 84%, rgba(201,162,39,.16), transparent 60%);
}

/* Hero title: clean outline/shadow only, no box background/border */
.hero-title-wrap {
  display: block; width: 100%; max-width: 58rem;
  padding: .25rem 0;
}
.hero-title {
  color: #fff;
  text-shadow:
    0 2px 14px rgba(0,0,0,.55),
    0 0 60px rgba(0,0,0,.45),
    0 0 1px rgba(255,255,255,.55);
  -webkit-text-stroke: 1.5px rgba(255,255,255,.18);
  letter-spacing: -.01em;
  min-height: 1.25em;
}
.type-text {
  /*white-space: nowrap;*/
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}
.type-caret {
  display: inline-block; width: 3px; height: .92em; margin-left: .12em;
  background: var(--gold); vertical-align: -0.06em; border-radius: 2px;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Floating decorative icons in hero */
.hero-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-decor svg { position: absolute; opacity: .16; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 9s ease-in-out infinite .8s; }
.float-c { animation: floaty 8s ease-in-out infinite 1.6s; }
.float-d { animation: floaty 10s ease-in-out infinite .4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* Alternate icon accent colours (gold / teal) to break monotony */
.grid.stagger-reveal > .reveal:nth-child(even) .w-12.h-12 {
  background: rgba(43,179,192,.14); color: var(--teal);
}
section.bg-navy .grid > .flip-card:nth-child(even) .w-11.h-11 {
  background: rgba(43,179,192,.18); color: var(--teal);
}
section.bg-navy .grid > .flip-card:nth-child(even) .flip-card-back { border-color: rgba(43,179,192,.45); }

/* Carousel arrows */
.carousel-arrow {
  position: absolute; top: 50%; z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: var(--navy);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 24px -8px rgba(11,31,58,.18);
}
.carousel-arrow:hover {
  background: #fff; color: var(--gold); transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 32px -10px rgba(201,162,39,.35);
}
.carousel-arrow.prev { left: .5rem; }
.carousel-arrow.next { right: .5rem; }
@media (max-width: 1023px) {
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow.prev { left: .25rem; }
  .carousel-arrow.next { right: .25rem; }
}

/* Insight cards (quote carousel) */
.insight-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 1.5rem;
  padding: 2.6rem 2.4rem; max-width: 48rem; margin: 0 auto; text-align: left;
  box-shadow: 0 26px 64px -30px rgba(11,31,58,.30);
}
.insight-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(43,179,192,.10), transparent 52%);
}
.insight-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.6rem; line-height: .55; color: var(--gold); opacity: .35; margin-bottom: .4rem;
}
.insight-text { position: relative; font-size: 1.35rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.insight-author { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; }
.insight-avatar {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.insight-name { font-weight: 600; color: var(--ink); }
.insight-role { font-size: .8rem; color: var(--slate); }
.quote-carousel { min-height: 340px; }

/* Hero video parallax sizing (avoid edge reveal) */
.video-hero { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; will-change: transform; }

/* Parallax background wrapper */
.parallax-wrap { will-change: background-position; }

@media (prefers-reduced-motion: reduce) {
  .hero-decor svg { animation: none !important; }
  .type-caret { animation: none !important; }
}

/* =========================================================================
   About page — editorial layout (breaks homepage's card/carousel sameness)
   ========================================================================= */

/* Big faint section index number */
.section-index {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: .78; font-weight: 700; letter-spacing: -.02em;
  color: var(--gold); opacity: .13;
}
.section-index.light { color: #fff; opacity: .12; }

/* Asymmetric editorial grid (5/7 split) */
.grid-asym { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .grid-asym { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .grid-asym.rev { grid-template-columns: 7fr 5fr; gap: 5rem; }
}

/* Numbered principle card */
.principle {
  position: relative;
  padding: 2rem 1.75rem 2rem 4.6rem;
  border: 1px solid var(--line); border-radius: 1rem; background: #fff;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.principle::before {
  content: attr(data-n);
  position: absolute; left: 1.5rem; top: 1.55rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem; font-weight: 700; color: var(--gold);
}
.principle:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(11,31,58,.18); border-color: #d9d4c8; }

/* Offer block with vertical accent bar */
.offer-block {
  position: relative; padding: 2rem 2rem 2rem 2.25rem;
  border: 1px solid var(--line); border-radius: 1rem; background: #fff;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.offer-block::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}
.offer-block:hover { transform: translateY(-6px); box-shadow: 0 22px 46px -18px rgba(11,31,58,.20); border-color: #d9d4c8; }
.offer-block .offer-no {
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--gold);
}

/* Founder overlapping credential card */
.founder-figure { position: relative; }
.founder-badge {
  position: absolute; left: -1.25rem; bottom: 2.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.1rem 1.35rem; box-shadow: 0 22px 48px -22px rgba(11,31,58,.32);
  max-width: 16rem;
}
@media (max-width: 1023px) { .founder-badge { position: static; margin-top: -2.5rem; margin-left: 1rem; max-width: none; } }

/* Offset image collage */
.img-collage { position: relative; }
.img-collage .img-chip {
  position: absolute; right: -1rem; bottom: -1.75rem; width: 46%;
  border-radius: 1rem; border: 6px solid #fff;
  box-shadow: 0 24px 50px -20px rgba(11,31,58,.35);
}
@media (max-width: 1023px) { .img-collage .img-chip { display: none; } }

/* Stats band (full-width navy) */
.stats-band { background: var(--navy); position: relative; overflow: hidden; }
.stats-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 18%, rgba(43,179,192,.18), transparent 55%);
}
.stat-cell { text-align: center; }
.stat-cell .stat-num { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat-cell .stat-label { margin-top: .7rem; color: rgba(255,255,255,.74); font-size: .95rem; }
.stat-divider { width: 1px; background: rgba(255,255,255,.14); }

/* Editorial pull-quote (vision) */
.pullquote {
  position: relative; padding-left: 2rem; border-left: 3px solid var(--gold);
}
.pullquote .q-mark { font-family: 'Playfair Display', Georgia, serif; font-size: 5rem; line-height: .4; color: var(--gold); opacity: .35; }

/* Scroll cue */
.scroll-cue { letter-spacing: .3em; font-size: .7rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal.r-blur { filter: none !important; }
}

/* =========================================================================
   Founders page — hero & mission readability + entrance effects
   ========================================================================= */

/* Hero slogan readability: center-focus scrim + text shadow.
   Keeps the imagery visible at the edges but anchors the text in a
   darkened core so the slogan is never lost against a bright photo. */
.scrim-center {
  background: radial-gradient(78% 62% at 50% 44%,
      rgba(7,20,42,.86) 0%,
      rgba(7,20,42,.64) 46%,
      rgba(7,20,42,.40) 100%);
}
.hero-quote {
  color: #fff;
  text-shadow:
    0 2px 18px rgba(0,0,0,.62),
    0 0 72px rgba(0,0,0,.52),
    0 0 1px rgba(255,255,255,.5);
}

/* Quote / mission box: reliable dark, frosted background over busy imagery */
.quote-box {
  background: rgba(11,31,58,.62);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,.16);
}
/* Standalone decorative quote mark */
.q-mark {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem; line-height: .35;
  color: var(--gold); opacity: .4;
  margin-bottom: .4rem;
}

/* Hero entrance — pure CSS cascade, no JS dependency above the fold */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-rise { opacity: 0; animation: heroRise 1s cubic-bezier(.22,1,.36,1) forwards; }
.hero-rise.d1 { animation-delay: .12s; }
.hero-rise.d2 { animation-delay: .34s; }
.hero-rise.d3 { animation-delay: .56s; }
.hero-rise.d4 { animation-delay: .78s; }
.hero-rise.d5 { animation-delay: .98s; }

@media (prefers-reduced-motion: reduce) {
  .hero-rise { opacity: 1 !important; animation: none !important; transform: none !important; }
}
