/* ============================================================
   Scott Business Capital — design system
   EDIT HERE: change the brand in one place via these variables.
   ============================================================ */
:root {
  --color-bg: #101317;          /* page background */
  --color-bg-alt: #161b21;      /* alternate section background */
  --color-surface: #1c222a;     /* cards */
  --color-line: #2c343f;        /* hairline dividers */
  --color-text: #e8e6e1;        /* primary text */
  --color-text-muted: #9aa3ad;  /* secondary text */
  --color-accent: #b08d57;      /* bronze accent */
  --color-accent-soft: rgba(176, 141, 87, 0.14);

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --nav-height: 76px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

h1, h2, h3, h4 { font-weight: 400; letter-spacing: 0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn--outline { color: var(--color-text); background: transparent; }
.btn--outline:hover { background: var(--color-accent); color: #14110c; }
.btn--solid { background: var(--color-accent); color: #14110c; }
.btn--solid:hover { background: transparent; color: var(--color-text); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(16, 19, 23, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--container), 100% - 3rem);
}

.nav__brand { display: flex; align-items: center; }
.nav__brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__links a:hover { color: var(--color-text); border-color: var(--color-accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  /* vertical fade for nav + bottom legibility, plus a left-side darken
     so the white headline pops over the video (text is left-aligned) */
  background:
    linear-gradient(to right, rgba(16,19,23,0.72) 0%, rgba(16,19,23,0.35) 45%, rgba(16,19,23,0.10) 100%),
    linear-gradient(to bottom, rgba(16,19,23,0.55) 0%, rgba(16,19,23,0.15) 45%, rgba(16,19,23,0.85) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: var(--nav-height); }

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 16em;
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--color-text-muted);
}

.hero__scroll {
  position: absolute;
  left: 0;
  top: calc(100svh - var(--nav-height) - 8rem);
  display: block;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: var(--color-accent);
  animation: scrollcue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   OCEAN VIDEO BAND (full-width divider)
   ============================================================ */
.videoband {
  position: relative;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-block: 1px solid var(--color-line);
}
.videoband__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.videoband__overlay {
  position: absolute;
  inset: 0;
  /* darken + slight vertical fade so white text reads over the ocean */
  background:
    linear-gradient(to bottom, rgba(10,26,34,0.55) 0%, rgba(10,26,34,0.30) 50%, rgba(10,26,34,0.60) 100%);
}
.videoband__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.videoband__quote {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.35;
  max-width: 20ch;
  margin-inline: auto;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0,0,0,0.35);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  background: var(--color-bg-alt) url("../assets/pattern.svg");
  border-block: 1px solid var(--color-line);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.stat__value {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--color-bg-alt); border-block: 1px solid var(--color-line); }

.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 300;
}
.section__rule {
  width: 64px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.4rem 0 2.8rem;
}
.section__lede {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

/* ============================================================
   OUR STORY
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.story__photo img { border: 1px solid var(--color-line); }
.story__photo figcaption { margin-top: 1rem; }
.story__photo strong { display: block; font-weight: 500; }
.story__photo span { font-size: 0.85rem; color: var(--color-text-muted); letter-spacing: 0.06em; }
.story__bio p + p { margin-top: 1.2rem; }
.story__bio { color: var(--color-text-muted); font-size: 1.02rem; }

.whoweare {
  margin-top: 4.5rem;
  padding: 2.4rem 2.6rem;
  background: var(--color-accent-soft);
  border-left: 2px solid var(--color-accent);
}
.whoweare h3 {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}
.whoweare p { max-width: 72ch; }

/* timeline */
.timeline {
  margin-top: 4.5rem;
  list-style: none;
  position: relative;
  padding-left: 1px;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.6rem;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 1px solid var(--color-line);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 2.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline__year {
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}
.timeline__item p { color: var(--color-text-muted); max-width: 68ch; }

/* ============================================================
   STRATEGY
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}
.pillar {
  background: var(--color-bg-alt);
  padding: 2.2rem 2rem;
}
.pillar h3 {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.pillar h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1rem;
}
.pillar p { font-size: 0.94rem; color: var(--color-text-muted); }

.criteria { margin-top: 4rem; }
.criteria h3 {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}
.criteria ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.7rem 2.5rem;
}
.criteria li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text-muted);
}
.criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1.5px;
  background: var(--color-accent);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.card img {
  border: 1px solid var(--color-line);
  transition: opacity 0.3s ease;
}
.card:hover img { opacity: 0.85; }
.card figcaption { margin-top: 0.9rem; }
.card strong { display: block; font-weight: 500; }
.card span { font-size: 0.85rem; color: var(--color-text-muted); letter-spacing: 0.04em; }

/* ============================================================
   TEAM
   ============================================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.member img { border: 1px solid var(--color-line); }
.member figcaption { margin-top: 0.9rem; }
.member strong { display: block; font-weight: 500; }
.member span { font-size: 0.85rem; color: var(--color-text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.contact__block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.7rem;
}
.contact__block p, .contact__block a { color: var(--color-text-muted); }
.contact__block a:hover { color: var(--color-text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
  padding-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__logo {
  display: block;
  height: 96px;
  width: auto;
  margin-bottom: 1.2rem;
}
.footer__brand p { font-size: 0.9rem; color: var(--color-text-muted); max-width: 30ch; }
.footer__col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.footer__col li + li { margin-top: 0.55rem; }
.footer__col a { font-size: 0.9rem; color: var(--color-text-muted); }
.footer__col a:hover { color: var(--color-text); }
.footer__social { display: inline-block; margin-top: 0.4rem; }

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.footer__legal a:hover { color: var(--color-text); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    background: rgba(16, 19, 23, 0.98);
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0; width: 100%; }
  .nav__links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--color-line); width: 100%; }
  .nav__cta { margin-top: 1.4rem; }

  .story { grid-template-columns: 1fr; }
  .story__photo { max-width: 340px; }
  .pillars { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}
