:root {
  --bg: #f2ede3;
  --bg-deep: #ded3c2;
  --surface: rgba(255, 252, 245, 0.74);
  --surface-solid: #f8f2e8;
  --text: #171411;
  --muted: #5f554a;
  --line: rgba(23, 20, 17, 0.12);
  --accent: #9f6d33;
  --accent-soft: rgba(159, 109, 51, 0.12);
  --shadow: 0 22px 60px rgba(28, 20, 9, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --scroll-shift: 0px;
  --blueprint-tilt: 0deg;
  --blueprint-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(159, 109, 51, 0.11), transparent 24%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 50%, #e7ddcf 100%);
  color: var(--text);
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

.blueprint-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ── WMG Network Illustration ────────────────────────────────────── */

/*
  Left-side cream wash: keeps text readable without hiding the
  right-side illustration. The SVG mask does the finer fade.
*/
.blueprint-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(248, 242, 232, 0.82) 0%,
      rgba(248, 242, 232, 0.52) 20%,
      rgba(248, 242, 232, 0.16) 40%,
      rgba(248, 242, 232, 0.04) 60%,
      transparent 100%
    ),
    radial-gradient(ellipse at 10% 36%, rgba(248, 242, 232, 0.48), transparent 26%);
}

/* Full-viewport SVG layer */
.network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  /*
    Mask: transparent on far left (text safe zone) →
    partial at 20% → full visibility by 48%
    Network is visible from center-right through the right edge.
  */
  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0.10)  0%,
    rgba(0,0,0,0.38)  17%,
    rgba(0,0,0,0.72)  33%,
    rgba(0,0,0,0.92)  44%,
    black             54%
  );
}

/* ── Layer 0: Continent fills ───────────────────────────────────── */
.continents path {
  fill: rgba(140, 110, 70, 0.07);
  stroke: rgba(140, 110, 70, 0.26);
  stroke-width: 0.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ── Layer 0: Graticule grid ────────────────────────────────────── */
.graticule line {
  stroke: rgba(140, 110, 70, 0.07);
  stroke-width: 0.5;
}

/* ── Layer 1: Always-visible structural arcs ────────────────────── */
.global-arcs path {
  fill: none;
  stroke: rgba(140, 110, 70, 0.11);
  stroke-width: 0.9;
}

/* ── Layer 2: Network arcs (drawn in via JS stroke-dashoffset) ──── */
.net-arc {
  fill: none;
  stroke: rgba(140, 110, 70, 0.38);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0;
  /* dasharray / dashoffset set by JS from getTotalLength() */
  transition:
    opacity 700ms ease,
    stroke-dashoffset 2200ms cubic-bezier(0.22, 0.58, 0.42, 0.98);
}

/* Faint structural arcs (wave 1) */
.net-arc.l1 {
  stroke: rgba(140, 110, 70, 0.16);
  stroke-width: 0.8;
  transition:
    opacity 1200ms ease,
    stroke-dashoffset 3500ms cubic-bezier(0.22, 0.58, 0.42, 0.98);
}

/* Long-haul intercontinental routes — more visible than l1, slower draw */
.net-arc.longhaul {
  stroke: rgba(140, 110, 70, 0.28);
  stroke-width: 1.1;
  transition:
    opacity 1000ms ease,
    stroke-dashoffset 4800ms cubic-bezier(0.12, 0.55, 0.32, 0.98);
}

/* !important overrides the inline stroke-dashoffset set by JS */
.net-arc.active {
  stroke-dashoffset: 0 !important;
  opacity: 1;
}

/* ── Hub rings (concentric decorative circles around major nodes) ── */
.hub-ring {
  fill: none;
  stroke: rgba(140, 110, 70, 0.26);
  stroke-width: 0.65;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.15);
  transition:
    opacity  800ms ease 250ms,
    transform 900ms cubic-bezier(0.18, 1.1, 0.40, 1) 250ms;
}

/* Outer (fainter) double-ring */
.hub-ring.r2 {
  stroke: rgba(140, 110, 70, 0.13);
  stroke-width: 0.5;
  transition:
    opacity  900ms ease 350ms,
    transform 1100ms cubic-bezier(0.18, 1.1, 0.40, 1) 350ms;
}

.hub-ring.active {
  opacity: 1;
  transform: scale(1);
}

/* ── Layer 3: Nodes ─────────────────────────────────────────────── */

/* Small satellite nodes */
.net-node {
  fill: rgba(160, 120, 70, 0.56);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition:
    opacity 400ms ease,
    transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Medium nodes — slightly more opaque */
.net-node.med {
  fill: rgba(160, 120, 70, 0.70);
}

/* Hub nodes — full opacity + warm glow */
.net-node.hub {
  fill: rgba(162, 122, 66, 0.86);
  filter: drop-shadow(0 0 6px rgba(155, 110, 52, 0.50));
}

.net-node.active {
  opacity: 1;
  transform: scale(1);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px) saturate(120%);
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(200, 200, 200, 0.28);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-img {
  display: block;
  height: 140px;
  width: auto;
  object-fit: contain;
  margin: -28px 0;
}

.brand-monogram {
  fill: #2f4f4a;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-wordmark {
  fill: #2f4f4a;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.site-nav a,
.button,
.contact-link,
.eyebrow,
.engagement-index,
.core-label,
.visual-note span {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.site-nav {
  display: inline-flex;
  gap: 1.3rem;
  font-size: 0.72rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero,
.section {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 2.75rem;
  align-items: center;
  min-height: auto;
  padding-top: 3.75rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  max-width: 34rem;
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2rem 0;
}


.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
}

.hero-lead,
.about-copy p,
.engagement p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 30rem;
  margin: 1.35rem 0 0;
  font-size: 1.02rem;
  color: rgba(57, 45, 32, 0.9);
}

.hero-lead-two {
  margin-top: 0.9rem;
  color: rgba(57, 45, 32, 0.72);
  font-size: 0.97rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 0.76rem;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #f8f2e8;
}

.button-secondary,
.contact-link {
  border: 1px solid rgba(23, 20, 17, 0.16);
  background: rgba(255, 255, 255, 0.25);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.visual-stage {
  position: relative;
  width: min(100%, 42rem);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 22px 60px rgba(60, 44, 18, 0.08));
}

.visual-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 48%, rgba(159, 109, 51, 0.14), transparent 52%);
}

.visual-panel-hero {
  transform:
    scale(1.16)
    translateY(calc(var(--scroll-shift) * -0.04))
    rotate(calc(var(--blueprint-tilt) * 0.18));
}

.visual-panel::before,
.visual-panel::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(23, 20, 17, 0.1);
}

.visual-panel::after {
  inset: auto 14% 18% 14%;
  height: 18%;
  border-radius: 999px;
  filter: blur(0.2px);
}

.visual-orbit {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(23, 20, 17, 0.38);
}

.orbit-a {
  animation: spin 18s linear infinite;
}

.orbit-b {
  inset: 32%;
  border-style: dashed;
  border-color: rgba(23, 20, 17, 0.26);
  animation: spinReverse 24s linear infinite;
}

.visual-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.core-label {
  font-size: 0.64rem;
  color: rgba(79, 61, 40, 0.86);
  text-shadow: 0 1px 0 rgba(248, 242, 232, 0.55);
}

.visual-core strong {
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  color: rgba(28, 22, 16, 0.96);
  text-shadow:
    0 0 18px rgba(248, 242, 232, 0.95),
    0 2px 0 rgba(248, 242, 232, 0.7);
}

.visual-note {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(248, 242, 232, 0.92);
  border: 1px solid rgba(76, 56, 30, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(76, 56, 30, 0.06);
}

.visual-note span,
.engagement-index {
  font-size: 0.66rem;
}

.visual-note small {
  color: rgba(72, 57, 39, 0.9);
  font-size: 0.8rem;
}

.note-one {
  top: 12%;
  left: 10%;
}

.note-two {
  right: 8%;
  top: 20%;
}

.note-three {
  left: 16%;
  bottom: 12%;
}

.about-side {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.about-visual {
  position: relative;
  min-height: 100%;
  border-left: 1px solid rgba(23, 20, 17, 0.12);
}

.about-visual-line {
  position: absolute;
  left: -1px;
  width: 72px;
  height: 1px;
  background: rgba(23, 20, 17, 0.12);
}

.line-one {
  top: 18%;
}

.line-two {
  top: 62%;
}

.about-visual-dot {
  position: absolute;
  left: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(23, 20, 17, 0.14);
  background: var(--surface-solid);
}

.dot-one {
  top: calc(18% - 7px);
}

.dot-two {
  top: calc(40% - 7px);
}

.dot-three {
  top: calc(62% - 7px);
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-heading {
  max-width: 60rem;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.title-wide {
  max-width: none;
  width: 55%;
  white-space: nowrap;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
}

.about-layout,
.contact-shell {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.about-layout,
.contact-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-copy p + p {
  margin-top: 1.2rem;
}

.about-points {
  display: grid;
  gap: 1rem;
}

.engagement {
  padding: 1.5rem;
  background: rgba(255, 249, 241, 0.52);
  border: 1px solid rgba(23, 20, 17, 0.08);
}

.point {
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
}

.point h3,
.engagement h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.point p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.engagement-index {
  color: var(--accent);
}

.engagement h3 {
  margin-top: 0.7rem;
}

.engagement p {
  margin: 0.8rem 0 0;
}

.contact-actions {
  display: grid;
  gap: 0.85rem;
}

.contact-address {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.25rem;
  border-radius: 0;
  font-size: 0.76rem;
  background: var(--surface);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .about-layout,
  .contact-shell,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .visual-stage {
    width: min(100%, 34rem);
  }

  .visual-panel-hero {
    transform: scale(1);
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-copy::before {
    inset: -1rem -1rem -1rem -1rem;
    background: rgba(248, 242, 232, 0.9);
  }

  .about-side {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .title-wide {
    width: 100%;
    white-space: normal;
  }

  .about-visual {
    min-height: 120px;
    border-left: 0;
    border-top: 1px solid rgba(23, 20, 17, 0.12);
  }

  .about-visual-line {
    left: auto;
    top: -1px;
    width: 1px;
    height: 72px;
  }

  .line-one {
    left: 22%;
  }

  .line-two {
    left: 62%;
  }

  .about-visual-dot {
    top: -8px;
  }

  .dot-one {
    left: calc(22% - 7px);
  }

  .dot-two {
    left: calc(42% - 7px);
  }

  .dot-three {
    left: calc(62% - 7px);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1.2rem 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
  }

  .hero,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .visual-note {
    padding: 0.7rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  :root {
    --scroll-shift: 0px;
    --blueprint-tilt: 0deg;
    --blueprint-scale: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
