/* ==========================================================================
   3P Overseas — Coming Soon
   Design tokens follow the agency design system (see .claude/skills/).
   ========================================================================== */

:root {
  /* Color system */
  --color-primary: #0E3B36;
  --color-primary-dark: #082622;
  --color-secondary: #1B4842;
  --color-accent: #C08A2E;
  --color-accent-text: #8C6220; /* darker accent shade for text use — passes WCAG AA (5.17:1) on --color-background */
  --color-background: #FAFAF8;
  --color-surface: #F1EEE7;
  --color-border: #E1DCCF;
  --color-text: #16221F;
  --color-muted: #55635C;
  --color-success: #2E7D5B;
  --color-warning: #B25E1F;
  --color-error: #B3402F;

  /* Typography */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --fs-display: clamp(2.5rem, 1.4rem + 5vw, 4.75rem);
  --fs-h2: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --fs-body-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius + shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-elevated:
    0 1px 2px rgba(8, 38, 34, 0.08),
    0 12px 32px -12px rgba(8, 38, 34, 0.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Grain texture (subtle, decorative) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark {
  width: 64px;
  height: 69px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.brand-wordmark-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}
.brand-wordmark-secondary {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  color: var(--color-muted);
}
.header-pill {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-24);
  text-align: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  color: var(--color-accent-text);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fade-up 0.7s var(--ease) forwards;
  animation-delay: 0.05s;
}
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  opacity: 0;
  animation: fade-up 0.8s var(--ease) forwards;
  animation-delay: 0.15s;
}
.subhead {
  font-size: var(--fs-body-lg);
  color: var(--color-muted);
  max-width: 46ch;
  margin: var(--space-6) auto 0;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) forwards;
  animation-delay: 0.28s;
}

/* ---------- Route (signature element) ---------- */
.route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-16) auto 0;
  max-width: 560px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: 0.42s;
}
.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.route-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-background);
  box-shadow: 0 0 0 1px var(--color-border);
}
.route-node--end .route-node-dot { background: var(--color-accent); }
.route-node-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  white-space: nowrap;
}
.route-line {
  position: relative;
  flex: 1;
  height: 1px;
  background-image: linear-gradient(to right, var(--color-border) 60%, transparent 0%);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  background-position: center;
  min-width: 80px;
}
.route-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(46, 125, 91, 0.15);
  transform: translate(-50%, -50%);
  animation: travel 4.5s ease-in-out infinite;
}

/* ---------- Status line ---------- */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  color: var(--color-muted);
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: 0.52s;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ---------- Checkpoints ---------- */
.checkpoints {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-32);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.checkpoint {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.checkpoint.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.checkpoint-index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.checkpoint h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}
.checkpoint p {
  color: var(--color-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.footer-contact { font-size: var(--fs-small); }
.footer-contact a {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  font-weight: 500;
}
.footer-contact a:hover { color: var(--color-primary); }
.fine-print {
  font-size: var(--fs-caption);
  color: var(--color-muted);
}

/* ---------- Animations ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes travel {
  0%   { left: 0%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow, .headline, .subhead, .route, .status-line {
    animation: none;
    opacity: 1;
  }
  .route-dot { animation: none; left: 50%; opacity: 1; }
  .status-dot { animation: none; }
  .checkpoint {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .checkpoints { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: var(--space-6) var(--space-4); }
  .hero { padding: var(--space-12) var(--space-4) var(--space-16); }
  .route {
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-12);
  }
  .route-line {
    width: 1px;
    height: 48px;
    min-width: 0;
    background-image: linear-gradient(to bottom, var(--color-border) 60%, transparent 0%);
    background-size: 1px 10px;
  }
  .route-dot { animation: travel-vertical 4.5s ease-in-out infinite; }
  .checkpoints { padding-bottom: var(--space-24); }
}

@keyframes travel-vertical {
  0%   { top: 0%; left: 50%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; left: 50%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .route-dot { animation: none !important; }
}
