/* Nuvor — Direction Ember · warm sand + terracotta editorial */

:root {
  --accent: #C2410C;
  --accent-deep: #9A3412;
  --sand: #F4EBDD;
  --sand-deep: #ECDFC9;
  --clay: #7C2D12;
  --clay-deep: #571F0B;
  --ink: #2B1D12;
  --text: #54453A;
  --muted: #84715F;
  --hairline: #DECDB4;
  --radius: 18px;
  --font-head: 'Newsreader', serif;
  --font-body: 'Work Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; text-wrap: balance; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ''; width: 28px; height: 1.5px; background: var(--accent); }
.kicker.on-dark { color: #F0B186; }
.kicker.on-dark::before { background: #F0B186; }

/* Media */
.media { position: relative; overflow: hidden; background: var(--sand-deep); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-fallback { background: repeating-linear-gradient(45deg, #E8DAC2 0px, #E8DAC2 14px, #DFCFB2 14px, #DFCFB2 28px); }
.media-fallback::after {
  content: attr(data-label);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #8A7458;
  background: rgba(255, 252, 245, 0.85); padding: 7px 14px; border-radius: 4px; white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--accent); color: #FFF6ED; border: 1.5px solid var(--accent); box-shadow: 0 12px 28px -12px rgba(154, 52, 18, 0.55); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid #B59C7D; }
.btn-outline:hover { border-color: var(--ink); background: rgba(255, 252, 245, 0.6); }
.btn-on-dark { background: #F4EBDD; color: var(--clay); border: 1.5px solid #F4EBDD; }
.btn-on-dark:hover { background: #FFFFFF; transform: translateY(-2px); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 48px; height: 80px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15.5px; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .btn::after, .nav-links .btn:hover::after { display: none; transform: none; }
.nav .btn { min-height: 46px; padding: 0 26px; font-size: 15px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,252,245,0.72);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark span { font-family: var(--font-head); font-weight: 600; font-size: 24px; color: var(--ink); }
.nav.scrolled { background: rgba(244, 235, 221, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--hairline); }

/* Hero */
.hero { position: relative; padding: 170px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 31% 45%, rgba(244,235,221,0.96) 0%, rgba(244,235,221,0.84) 28%, rgba(244,235,221,0) 54%),
    radial-gradient(circle at 80% 40%, rgba(255,252,245,0.48) 0%, rgba(255,252,245,0) 42%);
}
.hero-motion {
  position: absolute;
  inset: 80px 0 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-route {
  fill: none;
  stroke: var(--clay);
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-dasharray: 10 17;
  opacity: 0.34;
}
.hero-route-1 { filter: drop-shadow(0 0 10px rgba(194,65,12,0.15)); }
.hero-route-2 { stroke: var(--accent); stroke-width: 2.05; stroke-dasharray: 7 15; opacity: 0.3; }
.hero-route-3 { stroke-width: 1.9; stroke-dasharray: 11 20; opacity: 0.26; }
body[data-anim="on"] .hero-route { animation: heroarcflow 13s linear infinite; }
body[data-anim="on"] .hero-route-2 { animation-duration: 16s; animation-direction: reverse; }
body[data-anim="on"] .hero-route-3 { animation-duration: 22s; }
@keyframes heroarcflow { to { stroke-dashoffset: -360; } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-copy { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 28px; }
.hero-copy::before {
  content: '';
  position: absolute;
  inset: -24px -44px -32px -34px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 34% 28%, rgba(244,235,221,0.98) 0%, rgba(244,235,221,0.9) 44%, rgba(244,235,221,0.62) 66%, rgba(244,235,221,0) 82%),
    linear-gradient(90deg, rgba(244,235,221,0.9) 0%, rgba(244,235,221,0.62) 58%, rgba(244,235,221,0) 100%);
}
.hero h1 { font-size: clamp(54px, 5.2vw, 76px); line-height: 1.05; letter-spacing: -0.015em; }
.hero h1 .hl { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 4px; }
.hero-meta { display: flex; gap: 30px; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--muted); }
.hero-meta span { display: flex; align-items: center; gap: 9px; }
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.hero-visual { position: relative; z-index: 1; }
.hero-media { height: 540px; border-radius: 260px 260px var(--radius) var(--radius); }
body[data-anim="on"] .hero-media img { animation: kenburns 24s var(--ease) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(-2%); } }

/* Rotating circular badge */
.badge-spin { position: absolute; left: -56px; bottom: 48px; width: 148px; height: 148px; }
.badge-spin .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--clay); box-shadow: 0 18px 40px -14px rgba(87, 31, 11, 0.5); }
.badge-spin svg { position: absolute; inset: 0; }
body[data-anim="on"] .badge-spin .badge-ring { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-spin text { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: 0.32em; fill: #F0D9C2; text-transform: uppercase; }
.badge-spin .center-mark { position: absolute; inset: auto; top: 50%; left: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); transform-origin: center; }

/* Marquee */
.marquee { background: var(--clay); overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; }
body[data-anim="on"] .marquee-track { animation: marquee 46s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: #D9A786; display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: '·'; color: #F0B186; }

/* Sections */
.section { padding: 112px 0; }
section, .stats, .marquee, .contact { scroll-margin-top: 88px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: 48px; letter-spacing: -0.01em; }
.section-head .lede { font-size: 19px; color: var(--muted); }
.section-head .lede.on-dark-lede { color: rgba(244, 235, 221, 0.62); }

/* Stats */
.stats { background: var(--sand-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 72px 0; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 0 40px; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: var(--font-head); font-size: 58px; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat-num .unit { color: var(--accent); }
.stat-label { font-size: 15px; color: var(--muted); }

/* Services — interactive tiles */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc-card {
  position: relative; border-radius: var(--radius); padding: 38px 40px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
  cursor: pointer;
  outline-offset: 4px;
}
.svc-card:nth-child(1) { background: #EADBC3; }
.svc-card:nth-child(2) { background: #E5D3C4; }
.svc-card:nth-child(3) { background: #E0DCC4; }
.svc-card:nth-child(4) { background: #EADBC3; }
.svc-card:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 30px 50px -24px rgba(87, 31, 11, 0.35); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-icon g { stroke: var(--clay); }
.svc-icon [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
body[data-anim="on"] .svc-card:hover .svc-icon [pathLength],
body[data-anim="on"] .svc-card.open .svc-icon [pathLength] { animation: icondraw 1.1s var(--ease) forwards; }
@keyframes icondraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.svc-num { font-family: var(--font-head); font-size: 17px; font-style: italic; color: var(--accent); }
.svc-card h3 { font-size: 32px; }
.svc-card p { font-size: 17px; color: #5C4F42; max-width: 460px; }
.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.svc-more-inner { overflow: hidden; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.svc-card:hover .svc-more, .svc-card.open .svc-more, .svc-card:focus-visible .svc-more { grid-template-rows: 1fr; }
.svc-card:hover .svc-more-inner, .svc-card.open .svc-more-inner, .svc-card:focus-visible .svc-more-inner { padding-top: 6px; padding-bottom: 4px; }
.svc-chip {
  font-size: 14.5px; font-weight: 500; color: var(--clay);
  background: rgba(255, 252, 245, 0.75); border: 1px solid rgba(124, 45, 18, 0.22);
  border-radius: 999px; padding: 7px 14px; white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc-chip:nth-child(2) { transition-delay: 0.06s; }
.svc-chip:nth-child(3) { transition-delay: 0.12s; }
.svc-card:hover .svc-chip, .svc-card.open .svc-chip, .svc-card:focus-visible .svc-chip { opacity: 1; transform: none; }
body[data-anim="off"] .svc-chip { opacity: 1; transform: none; }
.svc-hint {
  margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.svc-hint .plus { display: inline-flex; transition: transform 0.35s var(--ease); font-size: 17px; }
.svc-card:hover .plus, .svc-card.open .plus { transform: rotate(45deg); }

/* Why — interactive spotlight on deep clay */
.why { background: var(--clay); color: #F7EADC; }
.why .section-head h2 { color: #F9F0E4; }
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }

.why-item {
  position: relative;
  cursor: pointer;
  padding: 24px 8px 22px;
  border-top: 1px solid rgba(244, 235, 221, 0.22);
  cursor: pointer;
  outline-offset: 4px;
  transition: background-color 0.3s var(--ease), padding-left 0.3s var(--ease);
  border-radius: 6px;
}
.why-item:first-of-type { border-top: none; }
.why-item:hover { background: rgba(244, 235, 221, 0.06); padding-left: 16px; }
.why-item.active { background: rgba(244, 235, 221, 0.08); padding-left: 18px; box-shadow: inset 3px 0 0 var(--accent); }
.why-item.active .why-num { transform: translateX(2px); }
.why-item-head { display: flex; align-items: baseline; gap: 18px; }
.why-num {
  font-family: var(--font-head); font-size: 17px; font-style: italic;
  color: rgba(240, 177, 134, 0.55); transition: color 0.3s var(--ease), transform 0.3s var(--ease); display: inline-block;
}
.why-item.active .why-num { color: #F0B186; }
.why-item-head strong {
  font-family: var(--font-head); font-size: 24px; font-weight: 500;
  color: rgba(249, 240, 228, 0.6); transition: color 0.3s var(--ease);
}
.why-item.active .why-item-head strong, .why-item:hover .why-item-head strong { color: #F9F0E4; }
.why-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); margin-left: 40px; }
.why-detail-inner { overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.why-item.active .why-detail { grid-template-rows: 1fr; }
.why-item.active .why-detail-inner { padding-top: 10px; }
.why-detail p { font-size: 16.5px; color: #DBB99C; max-width: 460px; }
.why-stat {
  align-self: flex-start;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #F0B186; background: rgba(240, 177, 134, 0.12);
  border: 1px solid rgba(240, 177, 134, 0.3);
  border-radius: 999px; padding: 7px 14px; margin-bottom: 4px;
}
.why-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: transparent; overflow: hidden; border-radius: 2px;
}
.why-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.5s var(--ease); }
.why-item.active .why-progress i { width: 100%; }
@keyframes whyprogress { from { width: 0; } to { width: 100%; } }

.why-media-stack {
  position: relative; height: 520px; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45);
}
.why-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.why-img.active { opacity: 1; transform: scale(1); }

/* CTA — orbiting globe scene */
.cta { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sand) 0%, #F0E4D0 100%); }
.cta-inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 150px 0; }
.cta-inner::before {
  content: none;
}
.cta h2 { font-size: 52px; max-width: 760px; }
.cta h2 .hl { font-style: italic; color: var(--accent); }
.cta p {
  position: relative;
  color: #6B5748;
  font-size: 18px;
}
.cta .btn { position: relative; z-index: 1; }

/* Background ambience — trade arcs + drifting motes spanning full width */
.cta-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cta-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-arcs .arc { fill: none; stroke: var(--clay); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 11; opacity: 0.16; }
.cta-arcs .arc2 { stroke: var(--accent); opacity: 0.13; }
body[data-anim="on"] .cta-arcs .arc { animation: arcflow 26s linear infinite; }
body[data-anim="on"] .cta-arcs .arc2 { animation-duration: 34s; animation-direction: reverse; }
body[data-anim="on"] .cta-arcs .arc3 { animation-duration: 40s; }
@keyframes arcflow { to { stroke-dashoffset: -280; } }

.route-glyph { position: absolute; top: 0; left: 0; opacity: 0.5; offset-rotate: auto; }
.route-glyph.rg1 { offset-path: path("M -40,440 C 320,300 540,300 720,360 C 940,430 1180,300 1500,160"); }
.route-glyph.rg2 { offset-path: path("M -40,180 C 280,300 520,330 720,290 C 980,240 1200,300 1500,420"); }
body[data-anim="on"] .route-glyph.rg1 { animation: routemove 22s linear infinite; }
body[data-anim="on"] .route-glyph.rg2 { animation: routemove 30s linear infinite reverse; }
@keyframes routemove { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.mote { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; }
.mote::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(194,65,12,0.3); }
.mo1 { left: 8%;  top: 64%; } .mo2 { left: 15%; top: 30%; width: 5px; height: 5px; background: var(--clay); }
.mo3 { left: 23%; top: 78%; } .mo4 { left: 84%; top: 32%; }
.mo5 { left: 90%; top: 60%; width: 5px; height: 5px; background: var(--clay); } .mo6 { left: 78%; top: 74%; }
.mo7 { left: 30%; top: 18%; width: 5px; height: 5px; } .mo8 { left: 70%; top: 20%; }
body[data-anim="on"] .mote { animation: motefloat 9s ease-in-out infinite; }
body[data-anim="on"] .mo2 { animation-delay: 1.2s; animation-duration: 11s; }
body[data-anim="on"] .mo3 { animation-delay: 2.4s; animation-duration: 10s; }
body[data-anim="on"] .mo4 { animation-delay: 0.6s; animation-duration: 12s; }
body[data-anim="on"] .mo5 { animation-delay: 3.1s; }
body[data-anim="on"] .mo6 { animation-delay: 1.8s; animation-duration: 13s; }
body[data-anim="on"] .mo7 { animation-delay: 4s; animation-duration: 10.5s; }
body[data-anim="on"] .mo8 { animation-delay: 2.2s; }
@keyframes motefloat {
  0% { opacity: 0; transform: translateY(14px) scale(0.6); }
  25% { opacity: 0.55; }
  50% { transform: translateY(-12px) scale(1); }
  75% { opacity: 0.45; }
  100% { opacity: 0; transform: translateY(-30px) scale(0.7); }
}

/* Globe */
.cta-globe-wrap { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 560px; height: 560px; z-index: 2; pointer-events: none; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.orbit-lines .ol { fill: none; stroke: var(--clay); stroke-opacity: 0.3; stroke-width: 1; stroke-dasharray: 2 7; }
.orbit-lines .ol2 { stroke: var(--accent); stroke-opacity: 0.26; }

.cta-globe {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 360px; height: 360px; border-radius: 50%; overflow: hidden; z-index: 2;
  background: radial-gradient(circle at 38% 30%, #FCF5EA 0%, #ECDABE 52%, #DCBF96 80%, #CDA97E 100%);
  box-shadow: 0 30px 70px -28px rgba(87,31,11,0.45), inset -22px -26px 60px -20px rgba(87,31,11,0.4), inset 16px 18px 40px -10px rgba(255,250,240,0.7);
}
.globe-surface { position: absolute; inset: 0; }
.globe-map {
  position: absolute; top: 0; left: 0; width: 200%; height: 100%;
  -webkit-mask-image: radial-gradient(circle at center, #000 62%, transparent 84%);
  mask-image: radial-gradient(circle at center, #000 62%, transparent 84%);
}
.globe-map .land { fill: rgba(124,45,18,0.5); }
.globe-map .grat { stroke: rgba(124,45,18,0.13); stroke-width: 1; }
body[data-anim="on"] .globe-map { animation: globespin 30s linear infinite; }
@keyframes globespin { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.globe-shade { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 26%, rgba(255,250,240,0.62) 0%, transparent 38%), radial-gradient(circle at 74% 82%, rgba(87,31,11,0.5) 0%, transparent 56%); }
.globe-rim { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(124,45,18,0.4); box-shadow: inset 0 0 36px rgba(255,246,232,0.35), inset -10px -14px 44px -8px rgba(87,31,11,0.35); }

/* Orbiting products — positioned by JS (ember.js) so they pass behind the globe like satellites */
.cta-product {
  position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); box-shadow: 0 8px 18px -6px rgba(154,52,18,0.6);
  transform: translate(-50%, -50%); will-change: transform;
}
.p2 { background: var(--clay); }
.p3 { background: var(--accent-deep); }

/* Three.js CTA globe scene */
.cta-globe-wrap {
  width: min(1040px, 96vw); height: min(660px, 62vw);
  min-width: 880px; min-height: 540px;
}
.cta-globe-canvas,
.cta-globe-fallback { position: absolute; inset: 0; }
.cta-globe-canvas { z-index: 2; opacity: 0; transition: opacity 0.7s var(--ease); }
.cta-globe-canvas canvas { display: block; width: 100%; height: 100%; }
.cta-globe-wrap.globe-ready .cta-globe-canvas { opacity: 1; }
.cta-globe-wrap.globe-ready .cta-globe-fallback { opacity: 0; }
.cta-globe-fallback {
  z-index: 2; opacity: 0.68; transition: opacity 0.5s var(--ease);
  filter: drop-shadow(0 34px 46px rgba(87,31,11,0.18));
}
.fallback-globe {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 56%; height: 56%; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 25%, rgba(255,250,240,0.82) 0%, transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(87,31,11,0.28) 0%, transparent 56%),
    radial-gradient(circle at 47% 44%, rgba(252,245,234,0.8), rgba(220,191,150,0.42) 68%, rgba(154,52,18,0.2) 100%);
  border: 1px solid rgba(124,45,18,0.24);
  box-shadow: inset -22px -28px 56px -28px rgba(87,31,11,0.48), 0 20px 54px -32px rgba(87,31,11,0.5);
}
.fallback-globe::before,
.fallback-globe::after {
  content: ''; position: absolute; inset: 13%; border-radius: 50%;
  border: 1px solid rgba(124,45,18,0.14);
}
.fallback-globe::after { inset: 28% 10%; border-left: 0; border-right: 0; }
.fallback-ring {
  position: absolute; top: 50%; left: 50%;
  width: 86%; height: 28%; border-radius: 50%;
  border: 1px dashed rgba(124,45,18,0.22);
  translate: -50% -50%;
}
.fr2 { width: 84%; height: 32%; rotate: 28deg; border-color: rgba(194,65,12,0.2); }
.fr3 { width: 78%; height: 24%; rotate: -24deg; }
.cta-product {
  z-index: 3;
  width: 38px; height: 38px; border-radius: 12px;
  color: #FFF6ED;
  background: linear-gradient(145deg, rgba(213,83,24,0.9), rgba(154,52,18,0.92));
  box-shadow: 0 12px 24px -10px rgba(87,31,11,0.58), inset 0 1px 0 rgba(255,246,237,0.38);
  opacity: 0;
  will-change: transform, opacity, filter;
  transition: opacity 0.25s linear, filter 0.25s linear;
}
.cta-product svg { display: block; }
.p2 { background: linear-gradient(145deg, rgba(124,45,18,0.86), rgba(87,31,11,0.9)); }
.p3 { background: linear-gradient(145deg, rgba(154,52,18,0.94), rgba(67,24,9,0.86)); }
.p4 { background: linear-gradient(145deg, rgba(232,147,94,0.72), rgba(194,65,12,0.86)); }

/* Premium trade-lane redesign */
.cta-arcs .arc {
  stroke-width: 1.75;
  stroke-dasharray: 12 18;
  opacity: 0.2;
}
.cta-arcs .arc2 { stroke-width: 1.45; opacity: 0.17; }
.cta-arcs .arc3 { stroke-width: 1.15; opacity: 0.14; }
body[data-anim="on"] .cta-arcs .arc { animation-duration: 40s; }
body[data-anim="on"] .cta-arcs .arc2 { animation-duration: 48s; }
body[data-anim="on"] .cta-arcs .arc3 { animation-duration: 56s; }

.mote,
.route-glyph,
.cta-product { display: none; }

.lane-dot {
  position: absolute; top: 0; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, #E7A177 0%, #C2410C 62%, rgba(194,65,12,0) 72%);
  box-shadow: 0 0 0 6px rgba(194,65,12,0.1), 0 0 22px rgba(194,65,12,0.34);
  opacity: 0;
  offset-rotate: 0deg;
}
.ld1, .ld4 { offset-path: path("M -40,440 C 320,300 540,300 720,360 C 940,430 1180,300 1500,160"); }
.ld2, .ld5 { offset-path: path("M -40,180 C 280,300 520,330 720,290 C 980,240 1200,300 1500,420"); }
.ld3, .ld6 { offset-path: path("M -40,520 C 360,500 560,470 720,470 C 940,470 1160,500 1500,470"); }
body[data-anim="on"] .lane-dot { animation: lanedot 16s linear infinite; }
body[data-anim="on"] .ld2 { animation-delay: -5s; animation-duration: 19s; }
body[data-anim="on"] .ld3 { animation-delay: -9s; animation-duration: 22s; }
body[data-anim="on"] .ld4 { animation-delay: -12s; animation-duration: 24s; }
body[data-anim="on"] .ld5 { animation-delay: -15s; animation-duration: 27s; }
body[data-anim="on"] .ld6 { animation-delay: -18s; animation-duration: 30s; }
@keyframes lanedot {
  0% { offset-distance: 0%; opacity: 0; transform: scale(0.75); }
  12% { opacity: 0.72; }
  82% { opacity: 0.58; }
  100% { offset-distance: 100%; opacity: 0; transform: scale(0.95); }
}

.route-vehicle {
  position: absolute; top: 0; left: 0;
  width: 25px; height: 25px;
  color: rgba(124,45,18,0.74);
  filter: drop-shadow(0 10px 16px rgba(87,31,11,0.18));
  opacity: 0;
  offset-rotate: 0deg;
}
.route-vehicle svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.rv-plane { offset-path: path("M -40,440 C 320,300 540,300 720,360 C 940,430 1180,300 1500,160"); }
.rv-ship { offset-path: path("M -40,180 C 280,300 520,330 720,290 C 980,240 1200,300 1500,420"); width: 29px; height: 29px; color: rgba(87,31,11,0.58); }
.rv-cargo { offset-path: path("M -40,520 C 360,500 560,470 720,470 C 940,470 1160,500 1500,470"); width: 27px; height: 27px; color: rgba(154,52,18,0.56); }
body[data-anim="on"] .route-vehicle { animation: routevehicle 30s linear infinite; }
body[data-anim="on"] .rv-ship { animation-duration: 38s; animation-delay: -12s; }
body[data-anim="on"] .rv-cargo { animation-duration: 44s; animation-delay: -22s; }
@keyframes routevehicle {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 0.5; }
  78% { opacity: 0.42; }
  100% { offset-distance: 100%; opacity: 0; }
}

@media (max-width: 760px) {
  .hero-motion { inset: 72px 0 0; opacity: 0.62; }
  .hero-route { stroke-width: 1.45; opacity: 0.16; }
  .hero-route-1 { display: none; }
  .hero-route-2 { opacity: 0.12; }
  .hero-route-3 { opacity: 0.12; }
  .hero-copy::before { inset: -20px -24px -28px -24px; }
  .cta-globe-wrap { width: 680px; height: 430px; }
  .cta-globe { width: 240px; height: 240px; }
  .cta-inner { padding: 96px 0; }
  .cta-globe-wrap { min-width: 680px; min-height: 430px; }
  .cta h2 { font-size: 36px; max-width: 340px; }
  .cta p { max-width: 280px; line-height: 1.5; }
  .cta-product { width: 34px; height: 34px; }
  .route-vehicle { width: 24px; height: 24px; opacity: 0.36; }
  .rv-ship, .rv-cargo { width: 26px; height: 26px; }
  .lane-dot { width: 5px; height: 5px; }
  .qrow { grid-template-columns: 1fr; }
}

/* Footer */
.footer { background: var(--clay-deep); color: #D9A786; padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer .wordmark span { color: #F4EBDD; }
.footer-links { display: flex; gap: 28px; font-size: 15px; }
.footer-links a:hover { color: #F4EBDD; }
.footer-copy { font-size: 14px; color: #A56A45; }

/* Direction switcher */
.dir-switch {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 4px;
  background: rgba(43, 29, 18, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 235, 221, 0.2); border-radius: 999px; padding: 5px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
}
.dir-switch a { color: rgba(244, 235, 221, 0.7); padding: 7px 14px; border-radius: 999px; }
.dir-switch a:hover { color: #FFFFFF; }
.dir-switch a.cur { background: var(--accent); color: #FFF6ED; }

/* Word-stagger entrance */
.reveal-words .w { display: inline-block; }
body[data-anim="on"] .reveal-words .w {
  opacity: 0; transform: translateY(0.55em) rotate(1.5deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(0.1s + var(--wi) * 70ms);
}
body[data-anim="on"] .reveal-words.in .w { opacity: 1; transform: none; }
.reveal-words .w.hl { font-style: italic; color: var(--accent); }

/* Reveals */
body[data-anim="on"] .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
body[data-anim="on"] .reveal.in { opacity: 1; transform: none; }
body[data-anim="on"] .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); transition-delay: var(--d, 0s); }
body[data-anim="on"] .reveal-img.in { clip-path: inset(0 0 0 0); }

/* Contact */
.contact { background: var(--sand-deep); border-top: 1px solid var(--hairline); padding: 104px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1120px; margin: 0 auto; }
.contact-card {
  background: #FFFCF5; border: 1px solid var(--hairline); border-radius: var(--radius);
  min-width: 0;
  padding: 34px 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(87, 31, 11, 0.3); }
.contact-card h3 { font-size: 26px; }
.contact-card p { font-size: 16.5px; color: var(--muted); line-height: 1.7; }
.contact-link { color: var(--accent); font-weight: 600; }
.contact-link:hover { color: var(--accent-deep); text-decoration: underline; }

@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 520px; }
}

/* Quote modal */
.qmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; }
.qmodal.show { visibility: visible; }
.qmodal-backdrop { position: absolute; inset: 0; background: rgba(43, 29, 18, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.qmodal.show .qmodal-backdrop { opacity: 1; }
.qmodal-panel {
  position: relative; width: 100%; max-width: 560px;
  background: #FFFCF5; border-radius: 22px; padding: 0;
  box-shadow: 0 40px 90px -30px rgba(43, 29, 18, 0.6);
  opacity: 0; transform: translateY(28px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  overflow: hidden;
}
.qmodal-scroll {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 44px 44px 38px;
  scrollbar-width: thin;
  scrollbar-color: #D8BFA4 transparent;
}
.qmodal-scroll::-webkit-scrollbar { width: 12px; }
.qmodal-scroll::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.qmodal-scroll::-webkit-scrollbar-thumb {
  background: #D8BFA4; border-radius: 999px;
  border: 4px solid #FFFCF5; background-clip: padding-box;
}
.qmodal-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); border: 4px solid #FFFCF5; background-clip: padding-box; }
.qmodal-form-view[hidden], .qmodal-success[hidden] { display: none; }
.qmodal.show .qmodal-panel { opacity: 1; transform: none; }
/* When the anim-off fallback is active, never let entrance transitions hide the modal */
body[data-anim="off"] .qmodal-backdrop, body[data-anim="off"] .qmodal-panel { transition: none; }
body[data-anim="off"] .qmodal.show .qmodal-backdrop { opacity: 1; }
body[data-anim="off"] .qmodal.show .qmodal-panel { opacity: 1; transform: none; }
body[data-anim="off"] .qmodal-success { animation: none; }
.qmodal-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  border: none; background: var(--sand); color: var(--ink); border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.qmodal-close:hover { background: var(--sand-deep); transform: rotate(90deg); }
.qmodal-panel h3 { font-size: 32px; margin: 10px 0 22px; }
#qform { display: flex; flex-direction: column; gap: 16px; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#qform label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.optional-label { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
#qform input, #qform textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1.5px solid var(--hairline); border-radius: 10px;
  padding: 13px 14px; min-height: 48px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#qform textarea { resize: vertical; min-height: 84px; }
#qform input:focus, #qform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15); }
#qform input::placeholder, #qform textarea::placeholder { color: #B3A18C; font-weight: 400; }
.qsubmit { margin-top: 6px; width: 100%; }
.qsubmit[disabled] { cursor: wait; opacity: 0.72; }
.qform-status {
  font-size: 14px;
  line-height: 1.5;
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(194, 65, 12, 0.08);
  border: 1px solid rgba(194, 65, 12, 0.2);
  color: var(--accent-deep);
}
.qform-status.ok {
  background: rgba(34, 128, 74, 0.08);
  border-color: rgba(34, 128, 74, 0.24);
  color: #22603F;
}
.qnote { font-size: 14px; color: var(--muted); text-align: center; }
.qmodal-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 18px 0 8px; animation: qsuccessin 0.45s var(--ease); }
@keyframes qsuccessin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qmodal-success h3 { font-size: 30px; margin: 6px 0 0; }
.qmodal-success p { color: var(--muted); max-width: 360px; }
.qmodal-success .btn { margin-top: 8px; }
body.qmodal-open { overflow: hidden; }

@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .nav-links { gap: 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr); gap: 40px; }
  .hero h1 { font-size: clamp(48px, 6vw, 68px); }
  .hero-media { height: 500px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .why-grid { gap: 44px; }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .contact-card { padding: 30px 24px; }
}

@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }
  .wrap { padding: 0 24px; }
  .nav-inner { height: 72px; padding: 0 24px; }
  .wordmark span { font-size: 23px; }
  .nav-toggle { display: flex; position: relative; z-index: 61; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #FFFCF5;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    box-shadow: 0 24px 60px -34px rgba(43,29,18,0.58);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }
  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 16px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--sand); }
  .nav-links .btn {
    margin-top: 8px;
    min-height: 50px;
    width: 100%;
    color: #FFF6ED !important;
  }

  .hero { padding: 120px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 660px; }
  .hero h1 { font-size: clamp(46px, 10vw, 64px); max-width: 620px; }
  .hero-sub { font-size: 18px; max-width: 560px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-media { height: min(560px, 88vw); border-radius: 260px 260px 16px 16px; }
  .badge-spin { left: -18px; bottom: 34px; width: 118px; height: 118px; }
  .hero-meta { flex-wrap: wrap; gap: 14px 24px; }
  .stats-grid { padding: 52px 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-media-stack { height: 440px; }
  .cta h2 { font-size: clamp(36px, 7vw, 48px); }
  .contact-grid { grid-template-columns: 1fr; max-width: 560px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-links { flex-wrap: wrap; gap: 16px 24px; }
}

@media (max-width: 560px) {
  html, body { overflow-x: hidden; }
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { left: 12px; right: 12px; }
  .hero { padding: 112px 0 56px; }
  .hero-copy { gap: 22px; }
  .hero-copy::before { inset: -18px -16px -26px -16px; }
  .kicker { font-size: 12px; letter-spacing: 0.18em; gap: 10px; }
  .kicker::before { width: 24px; }
  .hero h1 { font-size: clamp(44px, 13vw, 56px); line-height: 1.03; }
  .hero-sub { font-size: 18px; line-height: 1.65; }
  .hero-ctas { flex-wrap: wrap; gap: 12px; }
  .hero-ctas .btn { flex: 1 1 150px; min-width: 0; padding: 0 22px; }
  .hero-meta { flex-direction: column; align-items: flex-start; margin-top: 10px; padding-top: 18px; }
  .hero-media { height: 420px; max-width: 100%; border-radius: 220px 220px 14px 14px; }
  .badge-spin { width: 104px; height: 104px; left: auto; right: -8px; bottom: 28px; }
  .marquee { padding: 16px 0; }
  .marquee-track { gap: 38px; }
  .marquee-track span { font-size: 12px; gap: 38px; }
  .stats-grid { grid-template-columns: 1fr; padding: 42px 20px; gap: 0; }
  .stat, .stat:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding: 22px 0;
  }
  .stat:first-child { border-top: none; padding-top: 0; }
  .stat-num { font-size: 48px; }
  .section { padding: 78px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 38px; }
  .section-head .lede { font-size: 17px; }
  .svc-card { padding: 30px 26px 26px; }
  .svc-card h3 { font-size: 28px; }
  .svc-card p { font-size: 16px; }
  .why { padding-top: 78px; }
  .why-item { padding: 20px 0; }
  .why-item:hover, .why-item.active { padding-left: 12px; }
  .why-item-head strong { font-size: 23px; }
  .why-detail { margin-left: 0; }
  .why-media-stack { height: 360px; border-radius: 14px; }
  .cta-inner { padding: 92px 0; }
  .cta-inner::before { width: 120vw; height: 420px; }
  .cta h2 { font-size: 36px; }
  .cta p { font-size: 16px; }
  .contact { padding: 78px 0; }
  .contact-card { padding: 28px 28px; }
  .contact-card p { font-size: 15.5px; overflow-wrap: anywhere; }
  .qmodal { padding: 12px; align-items: stretch; }
  .qmodal-panel { max-width: none; border-radius: 18px; margin: auto 0; }
  .qmodal-scroll { max-height: calc(100vh - 24px); padding: 36px 22px 28px; }
  .qmodal-panel h3 { font-size: 28px; }
  .qrow { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-anim="on"] .reveal, body[data-anim="on"] .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  body[data-anim="on"] .reveal-words .w { opacity: 1; transform: none; transition: none; }
  body[data-anim="on"] .marquee-track, body[data-anim="on"] .hero-media img,
  body[data-anim="on"] .hero-route,
  body[data-anim="on"] .badge-spin svg, body[data-anim="on"] .cta-ring,
  body[data-anim="on"] .globe-map, body[data-anim="on"] .cta-product,
  body[data-anim="on"] .mote, body[data-anim="on"] .route-glyph,
  body[data-anim="on"] .cta-arcs .arc,
  body[data-anim="on"] .lane-dot, body[data-anim="on"] .route-vehicle,
  body[data-anim="on"] .svc-card:hover .svc-icon [pathLength],
  body[data-anim="on"] .svc-card.open .svc-icon [pathLength],
  body[data-anim="on"] .why-item.active .why-progress i { animation: none; }
  .svc-chip { opacity: 1; transform: none; transition: none; }
  .why-img { transition: none; }
  .mote { opacity: 0.4; }
  html { scroll-behavior: auto; }
}
