/* =========================================================
   Vision & Synergy — styles.css
   Editorial-luxury consulting. Warm navy + off-white + burnt orange.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink:        #0C1320;   /* deep warm navy (near-black) */
  --ink-2:      #111B2C;   /* raised navy */
  --navy:       #0F1A2E;
  --charcoal:   #1A2434;
  --line-dark:  rgba(247, 242, 233, 0.12);

  --cream:      #F7F2E9;   /* warm off-white */
  --cream-2:    #EFE7D9;
  --cream-3:    #E6DCCB;
  --line-light: rgba(12, 19, 32, 0.10);

  --accent:     #DD611C;   /* refined burnt orange */
  --accent-2:   #F08A45;   /* lighter orange */
  --accent-ink: #C2520F;

  --text-dark:  #1A2230;   /* body text on light bg */
  --text-muted: #5A6172;   /* muted on light */
  --text-cream: #F7F2E9;
  --text-cream-muted: rgba(247, 242, 233, 0.66);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.eyebrow-dark { color: var(--accent-ink); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  color: var(--ink);
}
.section-title.light { color: var(--cream); }
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.lead { font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--text-dark); }

.section { padding-block: var(--section-y); position: relative; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-intro { margin-top: 1.5rem; color: var(--text-muted); font-size: 1.1rem; max-width: 56ch; }
.services .section-intro, .process .section-intro, .contact .contact-intro { color: var(--text-cream-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 0.65rem 1.2rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(221, 97, 28, 0.7);
}
.btn-accent:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(221, 97, 28, 0.85); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-dark);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Top-of-page scrim: keeps the nav readable over the hero glow/aurora,
   then fades out once the scrolled blur background takes over. */
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200%; /* extend well past the header so the fade completes off-edge — no hard line */
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 19, 32, 0.96) 0%, rgba(12, 19, 32, 0.8) 38%, rgba(12, 19, 32, 0) 100%);
  transition: opacity 0.4s var(--ease);
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: rgba(12, 19, 32, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--cream); }
.brand-mark { color: var(--cream); display: inline-flex; }
.brand-text { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand-text .amp { color: var(--accent); font-style: italic; padding-inline: 0.1em; }

.nav-list { display: flex; gap: 2.25rem; flex-wrap: nowrap; }
.nav-list a {
  color: var(--text-cream-muted);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.3s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover { color: var(--cream); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 76px 0 auto 0;
  background: rgba(12, 19, 32, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease);
  z-index: 999;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { padding: 1.25rem var(--gutter) 2rem; }
.mobile-nav li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav a { display: block; padding: 1.05rem 0; color: var(--cream); font-size: 1.1rem; font-family: var(--font-display); }
.mobile-nav .mobile-cta { color: var(--accent-2); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 8%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, rgba(221, 97, 28, 0.28), rgba(221, 97, 28, 0.06) 40%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero::after {
  /* faint geometric synergy motif bottom-left */
  content: "";
  position: absolute;
  left: -8%; bottom: -30%;
  width: 50vw; height: 50vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at center, rgba(120, 150, 210, 0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 1.3rem + 5.2vw, 5.4rem);
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-lead {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
  line-height: 1.55;
  color: var(--text-cream-muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.stat-label { font-size: 0.9rem; color: var(--text-cream-muted); margin-top: 0.6rem; max-width: 22ch; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-head { position: sticky; top: 110px; }
.about-body > * + * { margin-top: 1.4rem; }
.about-body p { color: var(--text-muted); }
.about-body .lead { color: var(--text-dark); }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.25;
  color: var(--ink);
  padding: 1.75rem 0 1.75rem 1.75rem;
  border-left: 2px solid var(--accent);
  margin-block: 0.5rem;
}

/* =========================================================
   SERVICES (dark)
   ========================================================= */
.services { background: var(--ink); color: var(--cream); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2.25rem 1.9rem 2.4rem;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(221,97,28,0.4); background: #131F33; }
.card:hover::before { transform: scaleX(1); }

.card-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1.5rem;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.card p { color: var(--text-cream-muted); font-size: 0.98rem; }
.card-accent { background: linear-gradient(160deg, #1d2740, var(--ink-2)); border-color: rgba(221,97,28,0.3); }
.card-accent .card-index { color: var(--accent); }

/* =========================================================
   WHY US (values, light)
   ========================================================= */
.why { background: var(--cream-2); }
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.value {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.4s var(--ease);
}
.value:hover { background: var(--cream); }
.value h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.2rem;
}
.value h3::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.value p { color: var(--text-muted); font-size: 0.98rem; }

/* =========================================================
   PROCESS (dark)
   ========================================================= */
.process { background: var(--navy); color: var(--cream); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 1.25rem;
  opacity: 0.92;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  color: var(--cream);
}
.step p { color: var(--text-cream-muted); font-size: 0.96rem; }

/* =========================================================
   CREDIBILITY BANNER
   ========================================================= */
.credibility { background: var(--accent); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.cred-inner { max-width: 1000px; }
.cred-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cred-big { font-style: italic; padding-right: 0.3rem; }
.cred-accent { color: var(--ink); }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { background: #fff; overflow: hidden; }
.logo-marquee {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-row { display: flex; overflow: hidden; }
.logo-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-right: clamp(2.5rem, 5vw, 4.5rem);
  animation: logoScroll 64s linear infinite;
  will-change: transform;
}
.logo-row[data-reverse] .logo-track { animation-direction: reverse; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logoScroll { to { transform: translateX(-50%); } }

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
}
.logo img {
  display: none;
  height: 100%;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.45s var(--ease), opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.logo.has-img img { display: block; }
.logo.has-img .logo-text { display: none; }
.logo:hover img { filter: none; opacity: 1; transform: scale(1.05); }

.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
  color: #9aa1ad;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.45s var(--ease);
}
.logo:hover .logo-text { color: var(--ink); }

/* =========================================================
   TEAM
   ========================================================= */
.team { background: var(--cream); }
.people {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.person {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.1rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.person:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(12,19,32,0.4); }
.person-avatar {
  position: relative;
  display: flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  margin-bottom: 1.4rem;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-light), 0 0 0 4px rgba(221,97,28,0.10);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.person:hover .person-avatar {
  box-shadow: 0 0 0 1px rgba(221,97,28,0.5), 0 0 22px -4px rgba(221,97,28,0.55);
}
.person-avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.avatar-fallback {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
.person h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--ink); }
.person-role { color: var(--accent-ink); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; margin-top: 0.3rem; }
.person-bio { color: var(--text-muted); font-size: 0.93rem; margin-top: 1rem; }
.person-phone { display: inline-block; margin-top: 1.1rem; color: var(--ink); font-weight: 600; font-size: 0.95rem; border-bottom: 1.5px solid transparent; transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.person-phone:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   CONTACT (dark)
   ========================================================= */
.contact { background: var(--ink); color: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-intro { margin-top: 1.5rem; max-width: 44ch; font-size: 1.05rem; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.75rem; }
.office { border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
.office h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--cream); margin-bottom: 0.6rem; }
.office p { color: var(--text-cream-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.office a { display: block; color: var(--accent-2); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.office a:hover { color: var(--cream); }

/* Form */
.contact-form-wrap {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-cream-muted); margin-bottom: 0.5rem; }
.optional { font-weight: 400; opacity: 0.7; }
.field input, .field textarea {
  width: 100%;
  background: rgba(247,242,233,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(247,242,233,0.07);
}
.field textarea { resize: vertical; min-height: 110px; }

.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-cream-muted); margin-bottom: 1.5rem; cursor: pointer; }
.checkbox input { margin-top: 0.2rem; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

.form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #ff9b7a; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--text-cream-muted); border-top: 1px solid var(--line-dark); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-tagline { font-size: 0.95rem; max-width: 38ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(247,242,233,0.45);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
/* stagger children within a grid */
.cards .reveal.in, .values .reveal.in, .people .reveal.in, .steps .reveal.in { transition-delay: var(--d, 0ms); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .people { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .cards, .people { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}

/* Switch to the hamburger before the full nav runs out of room (it needs
   ~960px on one line). Keeps the desktop nav from wrapping to two lines. */
@media (max-width: 980px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}

@media (max-width: 560px) {
  .cards, .people, .steps, .values { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .value { padding: 2rem 1.5rem; }
}

/* =========================================================
   CINEMATIC LAYER — intro, scroll progress, aurora, tilt, marquee
   ========================================================= */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1200;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(221,97,28,0.6);
}

/* ---- Cinematic intro ---- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: introOut 0.9s var(--ease) 1.5s forwards;
}
.intro-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(14px);
  animation: introMarkIn 0.9s var(--ease) 0.15s forwards, introMarkOut 0.6s var(--ease) 1.45s forwards;
}
.intro-mark svg { animation: introSpin 1.4s var(--ease) both; }
.intro-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 1rem + 2.4vw, 2.4rem);
  color: var(--cream);
  letter-spacing: -0.01em;
}
.intro-word i { color: var(--accent); font-style: italic; padding-inline: 0.12em; }
.intro-curtain {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
}
.intro.is-done { animation: none; opacity: 0; visibility: hidden; pointer-events: none; }
.intro--skip { display: none !important; }

@keyframes introMarkIn  { to { opacity: 1; transform: translateY(0); } }
@keyframes introMarkOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes introSpin    { from { transform: rotate(-90deg) scale(0.7); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes introOut     { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---- Hero aurora + spotlight + parallax ---- */
.hero { perspective: 1200px; }
.hero-inner { transform: translateZ(0); }

.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 44% at 22% 30%, rgba(221, 97, 28, 0.22), transparent 60%),
    radial-gradient(34% 40% at 78% 22%, rgba(96, 132, 196, 0.16), transparent 62%),
    radial-gradient(40% 48% at 65% 78%, rgba(221, 97, 28, 0.12), transparent 64%);
  filter: blur(36px) saturate(120%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 30%), rgba(221,97,28,0.18), transparent 70%);
  transition: opacity 0.6s var(--ease);
}
.hero:hover .hero-spotlight { opacity: 1; }

/* ---- Hero headline line reveal ---- */
.hero-title .line { display: block; overflow: hidden; padding-block: 0.04em; }
.hero-title .line-i {
  display: block;
  transform: translateY(115%) rotate(2deg);
  opacity: 0;
  animation: lineUp 1.05s var(--ease) forwards;
}
.hero-title .line:nth-child(1) .line-i { animation-delay: 1.45s; }
.hero-title .line:nth-child(2) .line-i { animation-delay: 1.58s; }
.hero-title .line:nth-child(3) .line-i { animation-delay: 1.71s; }
@keyframes lineUp { to { transform: translateY(0) rotate(0); opacity: 1; } }

/* accent word shimmer */
.hero-title em, .section-title em {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% 0; } }

/* ---- Scroll cue ---- */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.75rem;
  color: var(--text-cream-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue-line { position: relative; width: 46px; height: 1px; background: var(--line-dark); overflow: hidden; }
.scroll-cue-line span {
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cueSlide 2.2s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--cream); }
@keyframes cueSlide { 0% { transform: translateX(-100%);} 60%,100% { transform: translateX(100%);} }

/* ---- Marquee ---- */
.marquee {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  padding-block: 1.1rem;
  border-block: 1px solid rgba(0,0,0,0.08);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  white-space: nowrap;
  padding-right: 0.4em;
}
.marquee-track i { font-style: normal; opacity: 0.55; padding-inline: 0.15em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Card tilt + spotlight ---- */
[data-tilt] { transform-style: preserve-3d; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.card[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(221,97,28,0.16), transparent 60%);
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}
.card[data-spotlight]:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* ---- Magnetic buttons ---- */
[data-magnetic] { transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease); }

/* =========================================================
   REDUCED MOTION — calm everything down
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .hero-aurora, .scroll-cue-line span, .marquee-track, .hero-title em, .section-title em { animation: none !important; }
  .hero-title em, .section-title em { -webkit-text-fill-color: var(--accent); color: var(--accent); }
  .hero-title .line-i { transform: none; opacity: 1; animation: none; }
  .hero-spotlight { display: none; }
  .scroll-progress { display: none; }
  .logo-track { animation: none !important; }
  .logo-row { overflow-x: auto; }
}

/* =========================================================
   DESIGN PASS v2 — refinements (override rules above)
   ========================================================= */

/* — Calmer buttons: colour change only, no movement on hover — */
.btn { will-change: auto; }
.btn-accent:hover { transform: none; background: var(--accent-ink);
  box-shadow: 0 12px 34px -14px rgba(221, 97, 28, 0.6); }
.btn-ghost:hover  { transform: none; border-color: var(--accent-2); color: var(--accent-2); }
[data-magnetic] { transform: none !important; }

/* — Partner wall: identical footprint per logo, full colour — */
.logo-track { gap: clamp(1.75rem, 3.5vw, 3.25rem); padding-right: clamp(1.75rem, 3.5vw, 3.25rem); }
.logo {
  width: clamp(120px, 12vw, 165px);
  height: 58px;
  padding-inline: 0.5rem;
}
.logo img {
  display: none;
  width: auto; height: auto;
  max-width: 100%; max-height: 38px;
  object-fit: contain;
  filter: none; opacity: 1;
  transition: transform 0.45s var(--ease);
}
.logo.has-img img { display: block; }
.logo:hover img { transform: scale(1.07); }
.logo-text { color: var(--ink); opacity: 0.8; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); }
.logo:hover .logo-text { color: var(--accent-ink); opacity: 1; }

/* — Hero: grander headline + refined stat dividers — */
.hero-title { font-size: clamp(2.7rem, 1.2rem + 6vw, 6rem); letter-spacing: -0.026em; }
.stat-num { font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.25rem); }
@media (min-width: 861px) {
  .hero-stats { gap: 0; }
  .hero-stats .stat { padding-inline: clamp(1rem, 2.2vw, 2.1rem); border-left: 1px solid var(--line-dark); }
  .hero-stats .stat:first-child { padding-left: 0; border-left: none; }
}

/* — Headings a touch grander — */
.section-title { letter-spacing: -0.022em; }
.section-intro { font-size: 1.12rem; line-height: 1.62; }
.pull-quote { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem); }

/* — Service cards: deeper hover, refined index — */
.card { padding: 2.4rem 2rem 2.5rem; }
.card-index { font-size: 1rem; letter-spacing: 0.06em; opacity: 0.9; }
.card-title { font-size: 1.6rem; }
.card:hover { box-shadow: 0 32px 64px -34px rgba(0, 0, 0, 0.75); }

/* — Values: editorial index numbers + richer hover — */
.values { counter-reset: val; }
.value { counter-increment: val; position: relative; transition: background-color 0.4s var(--ease); }
.value::after {
  content: counter(val, decimal-leading-zero);
  position: absolute; top: 1.6rem; right: 1.7rem;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--accent); opacity: 0.6;
}
.value:hover { background: #fff; }

/* — Process: accent tick to anchor each step — */
.step { position: relative; }
.step::after {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 44px; height: 2px; background: var(--accent);
}

/* — Team cards: warmer hover border — */
.person:hover { border-color: rgba(221, 97, 28, 0.35); }

/* — Brand logo (rendered fully white) — */
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* force pure white, keep transparency */
}
.site-footer .brand-logo { height: 30px; }
.intro-logo {
  height: clamp(40px, 7vw, 68px);
  width: auto;
  filter: brightness(0) invert(1);
}
