/* ============================================================
   lyncc.io — Shared base styles (all pages)
   Built on the lyncc Design System tokens.
   Fonts per brief: Space Grotesk (headlines) · Outfit (body) · Sora (accents)
   ============================================================ */
@import url('../assets/colors_and_type.css');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif; /* headlines */
  --font-text:    'Outfit', system-ui, sans-serif;        /* body / UI */
  --font-mono:    'Sora', system-ui, sans-serif;          /* accents / labels / metadata */
}
/* Tweakable font overrides land on <html data-fontset="..."> */
html[data-fontset="sora-head"]   { --font-display:'Sora', system-ui, sans-serif; --font-mono:'Space Grotesk', system-ui, sans-serif; }
html[data-fontset="outfit-head"] { --font-display:'Outfit', system-ui, sans-serif; }

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--fg-1);
  background: var(--bg-paper);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 940px; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--t-eyebrow); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3);
  margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--lyncc-yellow-700); display: inline-block; }
.eyebrow.on-ink { color: var(--lyncc-yellow); }
.eyebrow.on-ink::before { background: var(--lyncc-yellow); }
.eyebrow.center { justify-content: center; }

.h-display { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.03; letter-spacing: -.028em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.muted { color: var(--fg-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--lyncc-yellow); color: var(--lyncc-ink); }
.btn-primary:hover { background: var(--lyncc-yellow-600); transform: translateY(-2px); box-shadow: var(--sh-yellow); }
.btn-primary:active { background: var(--lyncc-yellow-700); transform: translateY(0); }
.btn-ink { background: var(--lyncc-ink); color: var(--fg-on-ink); }
.btn-ink:hover { background: var(--bg-ink-2); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-card); border-color: var(--fg-1); transform: translateY(-2px); }
.btn-ghost.on-ink { color: var(--fg-on-ink); border-color: var(--border-ink); }
.btn-ghost.on-ink:hover { background: var(--bg-ink-2); border-color: var(--fg-on-ink-2); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--fg-1); transition: gap var(--dur) var(--ease-out); }
.arrow-link svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease-out); }
.arrow-link:hover { gap: 11px; }
.arrow-link.gold { color: var(--lyncc-yellow-700); }
.arrow-link.on-ink { color: var(--lyncc-yellow); }

/* ============================================================ NAV ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(250,250,247,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border-1); }
/* dark-hero pages keep light logo until scrolled; light pages get ink nav immediately */
.nav-inner { display: flex; align-items: center; gap: 36px; height: 94px; }
.nav-logo { height: 54px; width: auto; transition: opacity var(--dur) var(--ease-out); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 14px; }
.nav-links a { font-family: var(--font-text); font-size: 15px; font-weight: 500; color: var(--fg-2); position: relative; padding: 4px 0; transition: color var(--dur) var(--ease-out); }
.nav.on-dark:not(.scrolled) .nav-links a { color: var(--fg-on-ink-2); }
.nav.on-dark:not(.scrolled) .nav-links a:hover { color: var(--fg-on-ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: currentColor; transition: width var(--dur) var(--ease-out); }
.nav-links a:hover { color: var(--fg-1); }
.nav-links a:hover::after, .nav-links a.current::after { width: 100%; }
.nav-links a.current { color: var(--fg-1); }
.nav.on-dark:not(.scrolled) .nav-links a.current { color: var(--lyncc-yellow); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 22px; font-size: 14.5px; }
.nav-burger { display: none; background: none; border: none; padding: 8px; color: var(--fg-1); }
.nav.on-dark:not(.scrolled) .nav-burger { color: var(--fg-on-ink); }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--lyncc-ink); color: var(--fg-on-ink);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 40px; transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--fg-on-ink); padding: 10px 0; border-bottom: 1px solid var(--border-ink); }
.mobile-menu .btn { margin-top: 28px; align-self: stretch; width: 100%; justify-content: center; padding: 18px 24px; font-size: 18px; }

/* ============================================================ SECTION SHELL ============================================================ */
.section { padding: 104px 0; }
.section.tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 18px; }
.ink-section { background: var(--lyncc-ink); color: var(--fg-on-ink); }
.ink-section .h2 { color: var(--fg-on-ink); }

/* ============================================================ WORLD MAP (shared on home + about) ============================================================ */
.worldmap { position: relative; border: 1px solid var(--border-ink); border-radius: var(--r-xl); background: #161514; overflow: hidden; padding: 30px 30px 26px; }
.worldmap svg { display: block; width: 100%; height: auto; }
.wm-dot { fill: #2C2A26; }
.wm-origin { fill: var(--lyncc-yellow); }
.wm-dest { fill: #EDE9DF; }
.wm-arc { fill: none; stroke: var(--lyncc-yellow); stroke-width: 1.4; opacity: .55; stroke-dasharray: 4 6; }
.wm-marker-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; fill: var(--fg-on-ink); }
.wm-pulse { fill: var(--lyncc-yellow); opacity: .25; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-ink); }
.wm-legend .li { display: flex; align-items: flex-start; gap: 11px; max-width: 320px; }
.wm-legend .sw { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.wm-legend .sw.origin { background: var(--lyncc-yellow); }
.wm-legend .sw.dest { background: #EDE9DF; }
.wm-legend .lt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-on-ink); display: block; margin-bottom: 4px; }
.wm-legend .ld { font-size: 13px; color: var(--fg-on-ink-2); line-height: 1.5; }

/* ============================================================ FINAL CTA BAND ============================================================ */
.cta { background: var(--lyncc-yellow); color: var(--lyncc-ink); }
.cta-inner { text-align: center; max-width: 800px; margin: 0 auto; }
.cta .eyebrow { color: var(--lyncc-yellow-700); justify-content: center; }
.cta .eyebrow::before { background: var(--lyncc-ink); }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.025em; line-height: 1.05; margin: 0 0 20px; color: var(--lyncc-ink); text-wrap: balance; }
.cta p { font-size: 18px; color: #3a3320; max-width: 560px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-ink:hover { box-shadow: 0 12px 30px rgba(0,0,0,.2); }

/* ============================================================ FOOTER ============================================================ */
.footer { background: var(--lyncc-ink); color: var(--fg-on-ink); padding: 84px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--border-ink); }
.footer-brand img { height: 34px; margin-bottom: 20px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; color: var(--fg-on-ink-2); max-width: 300px; margin: 0 0 22px; }
.footer-brand .addr { font-style: normal; font-size: 13.5px; line-height: 1.6; color: var(--fg-on-ink-2); }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-on-ink-2); margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--fg-on-ink); opacity: .8; transition: opacity var(--dur) var(--ease-out); }
.footer-col a:hover { opacity: 1; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact a svg { width: 15px; height: 15px; color: var(--lyncc-yellow); }
.footer-bottom { display: flex; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom .mono { font-family: var(--font-mono); font-size: 12px; color: var(--fg-on-ink-2); }
.footer-bottom .copy { margin-left: auto; font-size: 13px; color: var(--fg-on-ink-2); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-ink); display: grid; place-items: center; color: var(--fg-on-ink-2); transition: all var(--dur) var(--ease-out); }
.footer-social a:hover { color: var(--lyncc-ink); background: var(--lyncc-yellow); border-color: var(--lyncc-yellow); }
.footer-social a svg { width: 16px; height: 16px; }

/* ============================================================ SCROLL REVEAL ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================ TWEAKS PANEL ============================================================ */
#tweaks-panel { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 300px; background: var(--bg-card);
  border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sh-xl); font-family: var(--font-text);
  display: none; overflow: hidden; }
#tweaks-panel.show { display: block; }
#tweaks-panel .tw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-1); background: var(--bg-sunken); }
#tweaks-panel .tw-head b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
#tweaks-panel .tw-head button { background: none; border: none; color: var(--fg-3); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
#tweaks-panel .tw-head button:hover { background: var(--border-1); color: var(--fg-1); }
#tweaks-panel .tw-body { padding: 16px; display: flex; flex-direction: column; gap: 18px; max-height: 70vh; overflow-y: auto; }
#tweaks-panel .tw-group > label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 9px; }
#tweaks-panel .tw-seg { display: flex; gap: 6px; flex-wrap: wrap; }
#tweaks-panel .tw-seg button { flex: 1; min-width: 70px; font-family: var(--font-text); font-size: 12.5px; font-weight: 500; padding: 9px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--bg-card); color: var(--fg-2); transition: all var(--dur) var(--ease-out); }
#tweaks-panel .tw-seg button:hover { border-color: var(--fg-3); }
#tweaks-panel .tw-seg button.active { background: var(--lyncc-ink); color: var(--fg-on-ink); border-color: var(--lyncc-ink); }
#tweaks-panel .tw-opt { display: flex; flex-direction: column; gap: 6px; }
#tweaks-panel .tw-opt button { text-align: left; font-family: var(--font-text); font-size: 13px; line-height: 1.4; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--bg-card); color: var(--fg-2); transition: all var(--dur) var(--ease-out); }
#tweaks-panel .tw-opt button:hover { border-color: var(--fg-3); }
#tweaks-panel .tw-opt button.active { border-color: var(--lyncc-ink); background: var(--bg-sunken); color: var(--fg-1); box-shadow: inset 3px 0 0 var(--lyncc-yellow); }

/* ============================================================ RESPONSIVE (shared) ============================================================ */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn:not(.nav-burger) { display: none; }
  .nav-inner { height: 74px; }
  .nav-logo { height: 42px; }
  .section { padding: 72px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom .copy { margin-left: 0; width: 100%; }
  #tweaks-panel { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
