/* ========== ATLAS & CO. — ATLAS HYBRID BUILD ========== */

:root {
  /* Four-color palette */
  --sand: #F5EFE6;
  --sand-2: #E8DFD0;
  --sand-3: #F0E6D2;
  --border: #D4C8B5;
  --ink: #1B2B4B;
  --ink-soft: #4A5A7A;
  --copper: #C9744B;
  --copper-dark: #A85E3C;
  --sky: #BFD5E3;
  --radius: 4px;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Canela', 'GT Super', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 800ms;
  --dur-hover: 240ms;

  /* Rhythm */
  --section-pad-y: clamp(96px, 12vw, 160px);
  --gutter: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-hover) var(--ease); }
a:hover { color: var(--copper); }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }

/* Typography */
.italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.eyebrow.on-dark { color: var(--sand-2); }
.eyebrow.on-copper { color: var(--sand); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(46px, 7vw, 88px); font-style: italic; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h2.italic { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); }
p { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.7; }
p + p { margin-top: 1.1em; }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }

/* Section base */
section { padding: var(--section-pad-y) 0; position: relative; }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245, 239, 230, 0);
  backdrop-filter: blur(0);
  transition: background 300ms var(--ease), backdrop-filter 300ms var(--ease), padding 300ms var(--ease);
}
.nav.scrolled {
  background: rgba(245, 239, 230, 0.86);
  backdrop-filter: blur(14px);
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 31px; width: auto; transition: filter 300ms var(--ease); }
.nav:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sand);
  transition: color 300ms var(--ease);
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-cta {
  padding: 11px 24px;
  background: var(--copper);
  color: var(--sand) !important;
  border-radius: var(--radius);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.nav-cta:hover { background: var(--copper-dark); transform: translateY(-1px); }
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0 0 18vh 0;
  background: var(--ink);
}
@media (max-width: 768px) { .hero { padding-bottom: 22vh; } }
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%; height: 110%;
  overflow: hidden;
  will-change: transform;
}
.hero-media video,
.hero-media .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 53, 0) 0%, rgba(15, 26, 53, 0) 50%, rgba(15, 26, 53, 0.18) 88%, rgba(15, 26, 53, 0.28) 100%);
  z-index: 1;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  animation: heroKenBurns 30s ease-in-out infinite alternate;
  /* subtle contrast tweak, no saturation crush — helps perceived sharpness without nuking colour */
  filter: contrast(1.04) saturate(1.05);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  transform: translateZ(0);  /* force GPU layer → sharper compositing */
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.0)   translate(0, 0); }
  100% { transform: scale(1.03) translate(-0.5%, -0.4%); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--sand);
  padding: 0 var(--gutter);
  max-width: 1000px;
  transform: translateY(30px);
  opacity: 0;
  animation: heroIn 1600ms var(--ease) 400ms forwards;
}
@keyframes heroIn {
  to { transform: translateY(0); opacity: 1; }
}
.hero h1 {
  color: var(--sand);
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sand);
  opacity: 0.92;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.hero-cta {
  display: inline-block;
  padding: 18px 44px;
  background: var(--copper);
  color: var(--sand);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease);
  box-shadow: 0 4px 24px rgba(201, 116, 75, 0.25);
}
.hero-cta:hover {
  background: var(--copper-dark);
  transform: translateY(-2px);
  color: var(--sand);
  box-shadow: 0 8px 32px rgba(201, 116, 75, 0.4);
}

/* ========== REVEAL ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:not(:nth-child(-n+6)) { opacity: 1; transform: translateY(0); transition-delay: 600ms; }

/* ========== ABOUT ========== */
.about { background: var(--sand); }
.about-inner { max-width: 880px; margin: 0 auto; text-align: left; }
.about-eyebrow { margin-bottom: 22px; display: block; }
.about h2 {
  margin-bottom: 64px;
  max-width: 16ch;
}
.about-body p { max-width: 56ch; color: var(--ink); }
.about-body p.about-statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 22ch;
  margin: 36px 0 36px;
  padding-left: 22px;
  border-left: 2px solid var(--copper);
}
.about-body p.about-statement em { font-style: italic; }
.pull-quote {
  margin: 56px auto 32px;
  max-width: 820px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  position: relative;
  padding: 0 40px;
  text-wrap: balance;
}
.pull-quote::before,
.pull-quote::after {
  content: '';
  display: block;
  width: 44px; height: 1px;
  background: var(--copper);
  margin: 0 auto 28px;
}
.pull-quote::after { margin: 28px auto 0; }
.about-trio {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--copper);
  margin-top: 20px;
}

/* ========== STATS BAND (with fixed parallax background) ========== */
.stats-band {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(27, 43, 75, 0.32) 0%, rgba(27, 43, 75, 0.48) 100%),
    url('./assets/parallax-1.jpeg?v=2026-04-25e');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed; /* image fixed = parallax; overlay scrolls with band */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
  color: var(--sand);
}
/* iOS Safari: background-attachment: fixed is janky — fall back to static */
@supports (-webkit-touch-callout: none) {
  .stats-band { background-attachment: scroll, scroll; }
}
/* Re-skin stat text for the darker background */
.stats-band .stat-value { color: var(--sand); }
.stats-band .stat-value em { color: var(--copper); }
.stats-band .stat-label { color: var(--sand); opacity: 0.85; }
.stats-band .stat-detail { color: var(--sand); opacity: 0.65; }
.stats-band .stat { border-right-color: rgba(245, 239, 230, 0.22); }
@media (max-width: 768px) {
  .stats-band .stat:nth-child(odd) { border-right-color: rgba(245, 239, 230, 0.22); }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; } }
.stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
@media (max-width: 768px) {
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
}
.stat-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat-value em { color: var(--copper); font-style: italic; }
.stat-label {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.stat-detail {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.7;
  font-family: var(--serif);
  font-style: italic;
}

/* ========== MANIFESTO ========== */
.manifesto {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  padding: clamp(128px, 16vw, 200px) 0;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  background: url('./assets/motif-star.png') center/contain no-repeat;
  opacity: 0.6;
}
.manifesto-inner { max-width: 660px; margin: 0 auto; padding: 0 var(--gutter); }
.manifesto .eyebrow { color: var(--sand-2); margin-bottom: 44px; display: block; opacity: 0.85; font-size: 13px; }
.manifesto-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.85vw, 25px);
  line-height: 1.55;
  color: var(--sand);
  letter-spacing: 0.003em;
}
.manifesto-body p { font-size: inherit; color: inherit; }
.manifesto-body p + p { margin-top: 1.2em; }
/* Highlighted answer line */
.manifesto-body p.manifesto-answer {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.25;
  color: var(--copper);
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  position: relative;
  padding-top: 28px;
}
.manifesto-body p.manifesto-answer::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--copper);
  margin: 0 auto 28px;
}
.manifesto-body p.manifesto-coda {
  margin-top: 0.4em;
  opacity: 0.78;
}
.manifesto-signature {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.3vw, 32px);
  color: var(--copper);
}

/* ========== FOUNDERS ========== */
.founders { background: var(--sand); }
.founders-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 100px;
}
.founders-header .eyebrow { display: block; margin-bottom: 20px; }
.founders-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.4;
}
.founder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-bottom: 120px;
}
.founder:nth-child(even) .founder-portrait { order: 2; }
.founder-portrait {
  aspect-ratio: 3 / 4;
  background: var(--sand-2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.founder-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 1200ms var(--ease), filter 600ms var(--ease);
  filter: saturate(0.92) contrast(1.02);
}
.founder:hover .founder-portrait img { transform: scale(1.03); }
.founder-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27, 43, 75, 0.25) 100%);
  pointer-events: none;
}
.founder-bio h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  margin-bottom: 6px;
}
.founder-title {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper);
  font-size: 20px;
  margin-bottom: 28px;
}
.founder-bio p { color: var(--ink); max-width: 54ch; }
.founder-bio p.founder-statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  padding-left: 18px;
  margin: 22px 0;
  border-left: 2px solid var(--copper);
  max-width: 30ch;
}
.founder-closing {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper);
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: 0.01em;
  margin-top: 32px;
  opacity: 0.85;
}
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder:nth-child(even) .founder-portrait { order: 0; }
}

/* ========== WHY ATLAS (with fixed parallax background) ========== */
.why {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(27, 43, 75, 0.35) 0%, rgba(27, 43, 75, 0.45) 50%, rgba(27, 43, 75, 0.55) 100%),
    url('./assets/parallax-2.jpeg?v=2026-04-25c');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  color: var(--sand);
}
@supports (-webkit-touch-callout: none) {
  .why { background-attachment: scroll, scroll; }
}
/* Re-skin Why for darker background */
.why .eyebrow { color: var(--sand); opacity: 0.92; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.why-header h2 { color: var(--sand); text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.why-header p {
  color: #FFFFFF;
  opacity: 1;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.why-closing { color: var(--sand); text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
/* Capability grid becomes a floating sand frame on top of the parallax */
.why .capability-grid {
  background: var(--border);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.15),
    0 20px 50px rgba(0,0,0,0.22),
    0 40px 110px rgba(0,0,0,0.18);
}
.why-header { text-align: center; max-width: 780px; margin: 0 auto 80px; }
.why-header .eyebrow { display: block; margin-bottom: 20px; }
.why-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 24px;
  line-height: 1.4;
}
.why-header p { font-size: clamp(18px, 1.4vw, 22px); }
.capability-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
}
@media (max-width: 960px) { .capability-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .capability-grid { grid-template-columns: 1fr; } }
.capability-cell {
  background: var(--sand);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--dur-hover) var(--ease);
  min-height: 180px;
}
.capability-cell:hover { background: var(--sand-3); }
.capability-chip {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--sand-2);
  color: var(--copper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  flex-shrink: 0;
}
.capability-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.why-closing {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  margin-top: 80px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* ========== SERVICES — COLORED CAROUSEL ========== */
.services { background: var(--sand); padding-bottom: 0; }
.services-header { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.services-header .eyebrow { display: block; margin-bottom: 18px; }
.services-header h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); }

.services-carousel {
  position: relative;
  width: 100%;
  padding-bottom: clamp(72px, 10vw, 120px);
}
.services-track {
  display: flex;
  gap: clamp(28px, 2.6vw, 44px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 24px clamp(24px, 5vw, 80px) 56px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services-track::-webkit-scrollbar { display: none; }

.service-card {
  flex: 0 0 clamp(300px, 32vw, 460px);
  scroll-snap-align: start;
  padding: clamp(34px, 3.2vw, 48px);
  border-radius: 6px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
  box-shadow: 0 2px 6px rgba(27,43,75,0.06), 0 12px 32px rgba(27,43,75,0.08);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(27,43,75,0.1), 0 30px 70px rgba(27,43,75,0.18);
}

/* Brand-color rotation */
.service-card.c-navy   { background: var(--ink); color: var(--sand); }
.service-card.c-sky    { background: var(--sky); color: var(--ink); }
.service-card.c-copper { background: var(--copper); color: var(--sand); }
.service-card.c-sand   { background: var(--sand-2); color: var(--ink); border: 1px solid var(--border); }
.service-card.c-navy-deep { background: linear-gradient(145deg, #2a3e66 0%, var(--ink) 55%, #0f1a35 100%); color: var(--sand); }

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
  opacity: 0.8;
}
.service-card.c-sky .service-num,
.service-card.c-sand .service-num { color: var(--copper); opacity: 1; }
.service-card.c-navy .service-num,
.service-card.c-navy-deep .service-num { color: var(--copper); opacity: 0.95; }
.service-card.c-copper .service-num { color: var(--sand); opacity: 0.9; }

.service-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 14px;
  color: inherit;
  line-height: 1.18;
}
.service-card .service-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  margin-bottom: 20px;
  line-height: 1.4;
  opacity: 0.88;
}
.service-card.c-sky .service-tagline,
.service-card.c-sand .service-tagline { color: var(--copper); opacity: 1; }
.service-card.c-navy .service-tagline,
.service-card.c-navy-deep .service-tagline { color: var(--copper); opacity: 1; }
.service-card.c-copper .service-tagline { color: var(--sand); opacity: 0.95; }

.service-card p { color: inherit; font-size: 15px; line-height: 1.6; opacity: 0.92; }
.service-card p + p { margin-top: 1em; }

/* Nav controls */
.svc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  gap: 24px;
}
.svc-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.svc-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  padding: 0;
  transition: background 300ms var(--ease), width 300ms var(--ease);
}
.svc-dots button.active { background: var(--copper); width: 28px; border-radius: 4px; }
.svc-arrows { display: flex; gap: 12px; }
.svc-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--border);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease), opacity var(--dur-hover) var(--ease);
  box-shadow: 0 2px 8px rgba(27,43,75,0.06);
}
.svc-arrow svg { width: 18px; height: 18px; }
.svc-arrow:hover:not(:disabled) { background: var(--copper); color: var(--sand); border-color: var(--copper); transform: translateY(-1px); }
.svc-arrow:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 640px) {
  .service-card { flex: 0 0 85vw; min-height: 440px; }
  .svc-arrows { display: none; }
}

/* ========== MARKETS ========== */
.markets { background: var(--sand); padding-bottom: var(--section-pad-y); }
.markets-header { text-align: center; max-width: 820px; margin: 0 auto 80px; }
.markets-header .eyebrow { display: block; margin-bottom: 20px; }
.markets-header h2 { font-family: var(--serif); font-style: italic; font-weight: 400; }
.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px) { .markets-grid { grid-template-columns: 1fr; } }
.market-panel {
  padding: clamp(56px, 6vw, 88px);
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}
.market-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
  transition: transform 8s linear, opacity 600ms var(--ease);
  will-change: transform;
}
.market-panel:hover .market-video { transform: scale(1.04); }
.market-panel > *:not(.market-video):not(.market-motif) { position: relative; z-index: 2; }
.market-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.market-cis { background: var(--ink); color: var(--sand); }
.market-cis::before { background: linear-gradient(180deg, rgba(27,43,75,0.05) 0%, rgba(27,43,75,0.2) 50%, rgba(27,43,75,0.65) 100%); }
.market-eu { background: var(--sky); color: var(--sand); }
.market-eu::before { background: linear-gradient(180deg, rgba(40,68,104,0.45) 0%, rgba(30,52,86,0.62) 50%, rgba(22,40,70,0.82) 100%); }
.market-au { background: var(--sand-2); color: var(--sand); }
.market-au::before { background: linear-gradient(180deg, rgba(60,52,38,0.45) 0%, rgba(45,40,30,0.6) 50%, rgba(30,26,20,0.82) 100%); }
.market-uae { background: var(--copper); color: var(--sand); }
.market-uae::before { background: linear-gradient(180deg, rgba(27,43,75,0.05) 0%, rgba(201,116,75,0.18) 50%, rgba(201,116,75,0.7) 100%); }
.market-motif {
  position: absolute;
  top: clamp(28px, 3vw, 44px);
  right: clamp(28px, 3vw, 44px);
  width: 64px;
  height: 64px;
  opacity: 0.85;
  z-index: 4;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}
.market-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 2.7vw, 36px);
  margin-bottom: 10px;
  line-height: 1.12;
  max-width: 14ch;
}
.market-sub {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 32px;
  display: block;
}
.market-body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  max-width: 44ch;
  opacity: 0.98;
  position: relative;
  padding: 24px 28px;
  margin: -10px -12px -10px -12px;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.market-cis .market-body { background: rgba(27, 43, 75, 0.55); }
.market-eu .market-body  { background: rgba(245, 239, 230, 0.55); color: var(--ink); }
.market-au .market-body  { background: rgba(245, 239, 230, 0.6); color: var(--ink); }
.market-uae .market-body { background: rgba(201, 116, 75, 0.55); }

/* ========== PARTNERS ========== */
.partners { background: var(--sand); position: relative; overflow: hidden; }
.partners::before {
  content: '';
  position: absolute;
  left: -10%; right: -10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.8;
}
.partners-header { text-align: center; max-width: 660px; margin: 0 auto 56px; position: relative; z-index: 2; }
.partners-header .eyebrow { display: block; margin-bottom: 18px; }
.partners-header h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 16px; }
.partners-header p { color: var(--ink-soft); font-family: var(--sans); font-size: clamp(14px, 1.05vw, 16px); max-width: 56ch; margin: 0 auto; line-height: 1.6; }

.partners-stage {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  perspective: 1600px;
  position: relative;
  z-index: 2;
}

/* The actual frame — double-border matte + deep floating shadow */
.partners-frame {
  position: relative;
  padding: clamp(14px, 1.4vw, 22px);
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(27, 43, 75, 0.06),
    0 10px 30px rgba(27, 43, 75, 0.12),
    0 30px 80px rgba(27, 43, 75, 0.16),
    0 60px 140px rgba(27, 43, 75, 0.12);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
  animation: frameFloat 7s ease-in-out infinite;
  transition: box-shadow var(--dur-hover) var(--ease);
}
.partners-frame::after {
  /* Inner hairline — the "gallery mat" second border */
  content: '';
  position: absolute;
  inset: clamp(8px, 0.8vw, 14px);
  border: 1px solid var(--ink);
  opacity: 0.35;
  pointer-events: none;
  border-radius: 2px;
  z-index: 3;
}

/* Cursor glare overlay */
.partners-frame::before {
  content: '';
  position: absolute;
  inset: clamp(14px, 1.4vw, 22px);
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 40%
    );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  border-radius: 2px;
}

.partners-frame.is-tracking {
  animation: none;
  box-shadow:
    0 2px 4px rgba(27, 43, 75, 0.08),
    0 20px 50px rgba(27, 43, 75, 0.18),
    0 50px 120px rgba(27, 43, 75, 0.2),
    0 90px 200px rgba(27, 43, 75, 0.15);
}
.partners-frame.is-tracking::before { opacity: 1; }

.partners-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  transform: translateZ(30px);
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}

@keyframes frameFloat {
  0%,100% { transform: translateY(0) rotateX(0.4deg) rotateY(-0.4deg); }
  50%     { transform: translateY(-10px) rotateX(-0.4deg) rotateY(0.4deg); }
}
.partners-caption {
  text-align: center;
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.25vw, 20px);
  position: relative;
  z-index: 2;
}

/* ========== FAQ ========== */
.faq { background: var(--sand); }
.faq-header { text-align: center; max-width: 680px; margin: 0 auto 80px; }
.faq-header .eyebrow { display: block; margin-bottom: 20px; }
.faq-header h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-trigger {
  width: 100%;
  padding: 22px 60px 22px 0;
  text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-hover) var(--ease);
  position: relative;
}
.faq-trigger:hover { color: var(--copper); }
.faq-icon {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 2.4px;
  background: var(--copper);
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease);
  border-radius: 1px;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 450ms var(--ease);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 60px 24px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ========== CONTACT ========== */
.contact { background: var(--copper); color: var(--sand); }
.contact-inner { max-width: 980px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 72px; }
.contact-header .eyebrow { color: var(--sand); opacity: 0.82; display: block; margin-bottom: 20px; }
.contact-header h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 42px);
  color: var(--sand);
  max-width: 24ch;
  margin: 0 auto;
  line-height: 1.25;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-form .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sand);
  opacity: 0.82;
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(245, 239, 230, 0.4);
  background: transparent;
  color: var(--sand);
  font-family: var(--sans);
  font-size: 18px;
  outline: none;
  transition: border-color var(--dur-hover) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 239, 230, 0.5); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--sand); }
.field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }
.contact-submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 44px;
  padding: 14px 42px;
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(245, 239, 230, 0.65);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.contact-submit:hover { background: var(--sand); color: var(--copper); border-color: var(--sand); transform: translateY(-1px); }
.contact-details {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid rgba(245, 239, 230, 0.3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
  color: var(--sand);
}
.contact-detail-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--sand);
}
.contact-detail-val { font-family: var(--serif); font-size: clamp(16px, 1.2vw, 19px); font-style: italic; color: var(--sand); }
.contact-detail-val a { color: var(--sand); }
.contact-detail-val a:hover { color: var(--ink); }

/* ========== FOOTER ========== */
.footer { background: var(--ink); color: var(--sand); padding: 80px 0 40px; text-align: center; }
.footer-logo {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: var(--sand);
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--copper);
  margin-bottom: 28px;
}
.footer-location {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 48px;
}
.footer-links { display: flex; gap: 32px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.footer-social { display: flex; gap: 24px; justify-content: center; margin-bottom: 56px; }
.footer-social a { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.footer-legal {
  border-top: 1px solid rgba(245, 239, 230, 0.15);
  padding-top: 24px;
  font-size: 12px;
  opacity: 0.55;
  letter-spacing: 0.1em;
}
.footer-credit {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.4;
  letter-spacing: 0.06em;
}
.footer-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 239, 230, 0.25);
  transition: opacity var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}
.footer-credit a:hover {
  opacity: 0.85;
  border-color: rgba(245, 239, 230, 0.5);
  color: inherit;
}

/* ========== MOTION PREFS ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* Contact form status line (added 2026-08-21a) */
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 20px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--sand);
  opacity: .85;
}
.form-status:empty { display: none; }
.form-status[data-tone="error"] { color: #F0B7A0; opacity: 1; }
.contact-submit[disabled] { opacity: .55; cursor: progress; }
