/* ============================================================
   OVERLAND STRATEGIES — global stylesheet
   Palette:
     --big-stone: #172F3F  (primary dark)
     --iron:     #D7DBDE  (cool light)
     --gray:     #838282  (secondary)
     --xanadu:   #6E7F73  (sage accent)
     --pavlova:  #D8C9A3  (warm beige accent)
     --white:    #FFFFFF
   Typography:
     Headlines: Cormorant Garamond 700 / DM Serif Display 400
     Body:      Inter
   ============================================================ */

:root {
  --big-stone: #172F3F;
  --big-stone-soft: #1f3e51;
  --iron: #D7DBDE;
  --iron-soft: #ECEEEF;
  --gray: #838282;
  --gray-dark: #4a4a4a;
  --xanadu: #6E7F73;
  --pavlova: #D8C9A3;
  --white: #FFFFFF;
  --max: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --rule: 1px solid rgba(23,47,63,.12);
  --rule-soft: 1px solid rgba(215,219,222,.20);
  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--big-stone);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ----------- typography ----------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: var(--big-stone);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--xanadu); }

p { margin: 0 0 1em; color: var(--gray-dark); }
p.lead { font-size: 1.15rem; color: var(--big-stone); max-width: 62ch; }

/* the "flanking horizontal lines" motif from the logo, applied to short headers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: 'Inter', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--xanadu);
  margin-bottom: 1.4rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  flex: 1;
  max-width: 64px;
  height: 1.5px;
  background: var(--xanadu);
  opacity: 1;
}
.eyebrow.left-only::after { display: none; }
.eyebrow.left-only::before { display: none; }
.eyebrow.dashed::before, .eyebrow.dashed::after { background: rgba(255,255,255,.3); }

/* ----------- layout primitives ----------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--section-y) 0; }
.section-dark { background: var(--big-stone); color: var(--iron); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(215,219,222,.85); }
.section-dark h4 { color: var(--pavlova); }
.section-dark .eyebrow { color: var(--pavlova); }
.section-dark .eyebrow::before, .section-dark .eyebrow::after { background: var(--pavlova); }
.section-soft { background: var(--iron-soft); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* ----------- header / nav ----------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: var(--rule);
  overflow: visible;
}
.header-inner {
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 2.5vw, 1.75rem) 0 0;
  height: 80px;
  display: flex;
  overflow: visible; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 120px; width: auto; margin-left: 0; transition: transform 700ms var(--ease), opacity 700ms var(--ease); }
/* ----------- brand pieces (desktop = horizontal, mobile = icon + hamburger) ----------- */
.brand-icon, .brand-wordmark { display: none; }
/* drawer-only pieces (mobile) */
.drawer-logo, .drawer-home { display: none; }

.brand-horizontal { display: block; }

.brand:hover img { transform: scale(1.06); }
/* logo stays full size on scroll */
.nav { display: flex; align-items: center; gap: 0.9rem; }
.nav a {
  font-size: .92rem; font-weight: 500; color: var(--big-stone);
  transition: color .18s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--xanadu); }
.nav a.active { color: var(--xanadu); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--xanadu);
}
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

@media (max-width: 840px) {
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); border-bottom: var(--rule); flex-direction: column; padding: 1rem var(--pad-x); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav { gap: 0.5rem; }
  .hamburger { display: block; }
  .nav-cta { display: none; }
}
@media (min-width: 841px) { .nav-links { display: flex; gap: 1.15rem; } }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  border-radius: 2px;
  border: 1px solid var(--big-stone);
  background: var(--big-stone);
  color: var(--white);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--big-stone-soft); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--big-stone); }
.btn-outline:hover { background: var(--big-stone); color: var(--white); }
.btn-light { background: var(--white); color: var(--big-stone); border-color: var(--white); }
.btn-light:hover { background: var(--pavlova); border-color: var(--pavlova); }
.btn-ghost { background: transparent; border-color: rgba(215,219,222,.4); color: var(--iron); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--iron); }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* ----------- hero ----------- */
.hero {
  position: relative;
  padding: calc(80px + var(--section-y)) 0 var(--section-y);
  background: var(--big-stone);
  color: var(--iron);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(110,127,115,.22), transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(216,201,163,.08), transparent 50%);
}
.hero-topo {
  position: absolute;
  inset: 0;
  opacity: .10;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><g fill='none' stroke='%23D8C9A3' stroke-width='.8'><path d='M0,620 Q300,580 600,600 T1200,570'/><path d='M0,560 Q300,520 600,540 T1200,510'/><path d='M0,500 Q300,470 600,480 T1200,450'/><path d='M0,440 Q300,400 600,420 T1200,390'/><path d='M0,380 Q300,340 600,360 T1200,330'/><path d='M0,320 Q300,280 600,300 T1200,270'/><path d='M0,260 Q300,220 600,240 T1200,210'/></g></svg>");
  background-size: cover; background-position: bottom;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--white); font-style: normal; font-weight: 700; }
.hero-sub { font-size: 1.2rem; color: var(--iron); margin: 1.2rem 0 2rem; max-width: 62ch; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ----------- section utility ----------- */
.kicker { max-width: 760px; margin-bottom: 3rem; }
.kicker p { font-size: 1.1rem; color: var(--gray-dark); }
.section-dark .kicker p { color: rgba(215,219,222,.85); }

/* ----------- card ----------- */
.card {
  padding: 2rem 1.75rem;
  background: var(--white);
  border: var(--rule);
  border-radius: 3px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--xanadu); transform: translateY(-3px); }
.card h3 { margin-bottom: .5rem; }
.card .num {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--xanadu);
  line-height: 1;
  margin-bottom: .6rem;
}
.card-dark {
  background: var(--big-stone-soft);
  border-color: rgba(216,201,163,.15);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(215,219,222,.80); }
.card-dark:hover { border-color: var(--pavlova); }
.card-dark .num { color: var(--pavlova); }

/* service block with hairline */
.service-block {
  padding: 2rem 0;
  border-top: var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
@media (min-width: 900px) {
  .service-block { grid-template-columns: 260px 1fr; gap: 3rem; }
}
.service-block:last-child { border-bottom: var(--rule); }
.service-block h3 { margin: 0; }
.service-block h4 { margin-bottom: 0; color: var(--xanadu); }

/* list styles */
ul.checks { list-style: none; padding: 0; margin: 1rem 0; }
ul.checks li {
  position: relative; padding: .4rem 0 .4rem 1.6rem;
  color: var(--gray-dark);
}
ul.checks li::before {
  content: ''; position: absolute; left: 0; top: .95rem;
  width: .6rem; height: 1px; background: var(--xanadu);
}
.section-dark ul.checks li { color: rgba(215,219,222,.85); }
.section-dark ul.checks li::before { background: var(--pavlova); }

/* principle row */
.principle {
  display: grid; grid-template-columns: 1fr; gap: .5rem;
  padding: 2.5rem 0;
  border-top: var(--rule-soft);
}
@media (min-width: 900px) {
  .principle { grid-template-columns: 120px 1fr; gap: 3rem; align-items: start; }
}
.principle-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 700;
  line-height: 1; color: var(--pavlova);
}
.principle h3 { margin-bottom: .5rem; }
.principle-insight {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--pavlova);
  font-style: italic;
  color: var(--pavlova);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

/* ----------- closing / footer ----------- */
.closing-section {
  padding: var(--section-y) 0;
  background: var(--big-stone);
  color: var(--iron);
  position: relative;
  overflow: hidden;
}
.closing-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(110,127,115,.2), transparent 65%);
}
.closing-content { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.closing-content h2 { color: var(--white); }
.closing-content p { color: var(--iron); margin: 1.2rem auto 2rem; }

.footer {
  background: #0c1c26;
  color: rgba(215,219,222,.75);
  padding: 3rem 0 2rem;
  font-size: .9rem;
}
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer img.footer-logo { height: 140px; margin-bottom: 1.5rem; }
.footer h5 { color: var(--pavlova); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1rem; font-family: 'Inter', sans-serif; }
.footer a { color: rgba(215,219,222,.85); display: block; padding: .3rem 0; }
.footer a:hover { color: var(--pavlova); }
.footer-base {
  border-top: 1px solid rgba(215,219,222,.12);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(215,219,222,.55);
}

/* ----------- page hero (non-home) ----------- */
.page-hero {
  padding: calc(80px + 5rem) 0 4rem;
  background: var(--big-stone);
  color: var(--iron);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 20%, rgba(110,127,115,.22), transparent 60%);
}
.page-hero h1 { color: var(--white); max-width: 760px; margin-bottom: .8rem; }
.page-hero .lead { color: var(--iron); max-width: 760px; }

/* small utilities */
.divider { height: 1px; background: var(--big-stone); max-width: 60px; margin: 0 0 1.5rem; opacity: .25; }
.section-dark .divider { background: var(--pavlova); opacity: .5; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   MOTION SYSTEM — subtle zoom/dim/reveal; all respecting
   prefers-reduced-motion via site.js fallback.
   ============================================================ */

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 600ms var(--ease) var(--reveal-delay, 0ms),
    transform 600ms var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* hero topo — slow Ken Burns drift + scale, infinite */
.hero-topo {
  animation: kenburns 52s cubic-bezier(.5,0,.5,1) infinite alternate;
  transform-origin: 52% 48%;
  transition: transform 120ms linear;
}
@keyframes kenburns {
  0%   { transform: scale(1.00) translate3d(0,0,0); }
  50%  { transform: scale(1.045) translate3d(-0.9%, -0.6%, 0); }
  100% { transform: scale(1.02) translate3d(0.7%, 0.4%, 0); }
}

/* hero content fade-in-up on load */
.hero-content {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: hero-in 1700ms var(--ease) 180ms forwards;
}
.hero-content .eyebrow { animation: hero-in 1400ms var(--ease) 400ms both; opacity: 0; }
.hero-content h1      { animation: hero-in 1400ms var(--ease) 620ms both; opacity: 0; }
.hero-content .hero-sub { animation: hero-in 1400ms var(--ease) 920ms both; opacity: 0; }
.hero-content .hero-cta { animation: hero-in 1400ms var(--ease) 1240ms both; opacity: 0; }
@keyframes hero-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* subtle ambient drift on hero gradient */
.hero::before {
  animation: ambient 40s ease-in-out infinite alternate;
}
@keyframes ambient {
  0%   { opacity: 1; }
  50%  { opacity: 0.78; }
  100% { opacity: 1; }
}

/* nav shrink-on-scroll */
.header.scrolled {
  background: rgba(255,255,255,0.94);
  box-shadow: 0 1px 0 rgba(23,47,63,0.08), 0 8px 24px -18px rgba(23,47,63,0.20);
}
/* header stays full height on scroll */
.header .header-inner { /* height fixed — no transition */ }
.header { transition: background 520ms var(--ease), box-shadow 520ms var(--ease); }

/* brand logo micro-zoom on hover */

/* nav link underline grow */
.nav a { transition: color .22s var(--ease); }
.nav a::after {
  content: '';
  display: block;
  height: 1px; background: var(--xanadu);
  width: 0;
  margin-top: 4px;
  transition: width 500ms var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* card hover polish — zoom slightly + border shift */
.card { transition: border-color 540ms var(--ease), transform 540ms var(--ease), box-shadow 540ms var(--ease); }
.card:hover {
  transform: translate3d(0, -4px, 0) scale(1.008);
  box-shadow: 0 18px 40px -24px rgba(23,47,63,0.18);
}
.card-dark:hover { box-shadow: 0 18px 40px -24px rgba(0,0,0,0.45); }

/* service-block subtle indent on hover */
.service-block { transition: background 700ms var(--ease); }
.service-block:hover { background: rgba(216,201,163,0.06); }

/* principle-num soft glow on viewport entry */
.principle.reveal.in .principle-num {
  animation: dim-in 1800ms var(--ease) 300ms both;
}
@keyframes dim-in {
  from { opacity: 0; letter-spacing: 0.05em; }
  to   { opacity: 1; letter-spacing: 0; }
}

/* eyebrow hairline grow-in */
.eyebrow::before, .eyebrow::after {
  transform-origin: left center;
  animation: line-grow 1400ms var(--ease) 260ms both;
}
.eyebrow::after { transform-origin: right center; }
@keyframes line-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* button subtle shine on hover — ::before pushed below text via isolate+z-index so button text stays visible */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.14) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 1200ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }
.btn-outline::before { background: linear-gradient(120deg, transparent 20%, rgba(23,47,63,0.08) 50%, transparent 80%); }

/* images (logos in body) — subtle ambient scale in footer on hover */
.footer-logo { transition: transform 720ms var(--ease), opacity 720ms var(--ease); opacity: 0.92; }
.footer-logo:hover { transform: scale(1.02); opacity: 1; }

/* smooth-section boundary dim — soft vignette between light/dark sections */
section + section.section-dark { box-shadow: 0 -40px 60px -50px rgba(23,47,63,0.25) inset; }
section.section-dark + section { box-shadow: 0 40px 60px -50px rgba(0,0,0,0.35) inset; }

/* closing-section radial drift */
.closing-section::before {
  animation: ambient 44s ease-in-out infinite alternate;
}

/* respect reduced motion — kill all decorative motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-topo, .hero::before, .closing-section::before { animation: none; }
  .hero-content, .hero-content .eyebrow, .hero-content h1, .hero-content .hero-sub, .hero-content .hero-cta { animation: none; opacity: 1; transform: none; }
  .eyebrow::before, .eyebrow::after { animation: none; transform: scaleX(1); opacity: 1; }
  .principle.reveal.in .principle-num { animation: none; }
  .btn::before { display: none; }
  * { transition: none !important; }
}

/* ----------- mobile polish ----------- */
@media (max-width: 840px) {
  .header-inner { height: 78px; padding: 0 1rem; }
  .hero { padding: calc(78px + 3.5rem) 0 3.5rem; }
  .page-hero { padding: calc(78px + 3rem) 0 2.5rem; }
  .hamburger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 4px;
    width: 28px; height: 28px;
    padding: 0;
    color: var(--big-stone);
    opacity: 0.65;
    transition: opacity 240ms var(--ease), color 240ms var(--ease);
  }
  .hamburger:hover, .hamburger:focus-visible { opacity: 1; color: var(--xanadu); }
  .hamburger-bar {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    transform-origin: center;
    transition: transform 280ms var(--ease), opacity 200ms var(--ease);
  }
  .hamburger.open { color: var(--xanadu); opacity: 1; }
  .hamburger.open .hamburger-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .hamburger.open .hamburger-bar:nth-child(2) { opacity: 0; }
  .hamburger.open .hamburger-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: #ffffff; border-bottom: 1px solid rgba(23,47,63,.1);
    flex-direction: column; padding: 1.2rem 1.2rem 1.6rem;
    gap: 1rem; box-shadow: 0 20px 30px -20px rgba(23,47,63,.25);
  }
  .nav-links.open { display: flex; animation: drawer-in 360ms var(--ease); }
  .nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--big-stone);
    padding: 0.85rem 0;
    text-align: left;
    border-bottom: 1px solid rgba(23,47,63,0.08);
    transition: color 240ms var(--ease), padding-left 240ms var(--ease);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover, .nav-links a.active {
    color: var(--xanadu);
    padding-left: 0.4rem;
  }
  .nav { gap: 0; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-sub { font-size: 1.05rem; }
  .grid-2, .grid-3, .grid-4 { gap: 1.25rem !important; }
  .service-block { grid-template-columns: 1fr !important; gap: .6rem !important; padding: 1.25rem 0; }
  .principle { grid-template-columns: 1fr !important; gap: 0.6rem !important; padding: 1.75rem 0; }
  .principle-num { font-size: 2.4rem; }
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ----------- back-to-top button ----------- */
.to-top {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--big-stone);
  color: var(--white);
  border: 1px solid var(--big-stone);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), background 260ms var(--ease), visibility 0s linear 420ms;
  z-index: 40;
  box-shadow: 0 10px 28px -14px rgba(23,47,63,.55);
}
.to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), background 260ms var(--ease);
}
.to-top:hover { background: var(--xanadu); border-color: var(--xanadu); transform: translateY(-3px); }
.to-top svg { display: block; }
@media (max-width: 640px) {
  .to-top { bottom: 14px; right: 14px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* page-load fade — gentle universal entrance so nav between pages feels continuous */
body { animation: page-in 520ms cubic-bezier(.22,.61,.2,.98) both; }
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* ----------- mobile: minimal header (icon ←→ hamburger), OVERLAND migrates to hero ----------- */
@media (max-width: 840px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    height: 64px;
  }
  .brand-horizontal { display: none; }
  .brand-icon { display: block; height: 40px; width: auto; }
  .brand-wordmark { display: none; }
  .hamburger { width: 28px; height: 28px; padding: 0; }
  .hero { padding: calc(64px + 3rem) 0 3.5rem; }
  .page-hero { padding: calc(64px + 2.4rem) 0 2.8rem; }
  .nav-links { top: 64px; }
  /* drawer: Home link revealed */
  .drawer-home { display: block; }



  /* ---- OVERLAND masthead injected at top of each page's hero, mobile only ---- */
  .page-hero .container::before,
  .hero .hero-content::before {
    content: 'OVERLAND';
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 8vw, 3rem);
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--pavlova);
    margin-bottom: 0.7rem;
    opacity: 0.92;
  }
  .hero .hero-content::before {
    margin-bottom: 1rem;
  }
  /* Shrink the hero/page-hero eyebrow on mobile since OVERLAND now carries top-of-page */
  .page-hero .eyebrow,
  .hero .eyebrow { font-size: 0.72rem; }
}

/* ----------- contact form ----------- */
.contact-form { display: flex; flex-direction: column; gap: 0.85rem; max-width: 440px; }
.contact-form label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--xanadu);
  margin-bottom: -0.2rem;
}
.contact-form input,
.contact-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--big-stone);
  background: var(--white);
  border: 1px solid rgba(23,47,63,0.22);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
  transition: border-color 240ms var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--xanadu);
}
.contact-form textarea { resize: vertical; font-family: inherit; }
.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.6rem;
}

/* Bigger hero h1 top/bot split lines (matches Andy's feedback) */
.hero-h1-top, .hero-h1-bot { display: block; color: var(--white); font-weight: 700; font-style: normal; }
.hero-h1-bot { color: var(--white); }

/* Eyebrow hairline strengthened — also applied at mobile/page-hero */

/* ----------- founder photo (About page) ----------- */
.founder-row { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1rem; }
@media (min-width: 820px) {
  .founder-row { grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
}
.founder-photo {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.55);
}
.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}
.founder-bio { color: inherit; }
