/* ==========================================================================
   BLUSHWIRE — platform identity
   Near-black base, blush-rose + wire-cyan accents, grotesk typography.
   ========================================================================== */

:root {
  --void:       #0b0e15;
  --panel:      #12161f;
  --panel-up:   #171c27;
  --ink:        #f1efe9;
  --muted:      #9aa0ae;
  --line:       rgba(255, 255, 255, .08);
  --blush:      #ff5f8f;
  --wire:       #59d8ff;
  --grad:       linear-gradient(100deg, var(--blush), var(--wire));

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 72rem;
  --container-narrow: 44rem;
  --radius-lg: 20px;
  --header-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--void);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--wire); text-decoration-color: rgba(89, 216, 255, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--blush); color: #1a0510; padding: .6rem 1rem; font-size: .85rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .65, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.1rem;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(11, 14, 21, .88); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: .55rem 1.25rem; min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .14em; color: var(--ink);
}
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; z-index: 210; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; } .nav-toggle::before { top: 14px; } .nav-toggle::after { top: 28px; }
body.nav-open .nav-toggle span { opacity: 0; }
body.nav-open .nav-toggle::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11, 14, 21, .97); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--ink); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 6rem) 1.25rem 5.5rem;
  background:
    radial-gradient(50rem 26rem at 80% -10%, rgba(255, 95, 143, .13), transparent 60%),
    radial-gradient(46rem 24rem at 8% 115%, rgba(89, 216, 255, .09), transparent 60%),
    var(--void);
}
.hero-inner { max-width: var(--container); margin: 0 auto; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.7rem, 6.5vw, 4.8rem); line-height: 1.04;
  letter-spacing: -.02em; margin-bottom: 1.4rem;
}
.hero-lede { font-size: 1.12rem; color: var(--muted); max-width: 36rem; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(60rem 30rem at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(60rem 30rem at 50% 0%, black, transparent 75%);
}

/* ---------- Projects ---------- */
.projects { padding: 4.5rem 1.25rem 5.5rem; }
.projects-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.project-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink);
  transition: transform .3s cubic-bezier(.2, .65, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .22); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.card-visual {
  height: 190px; display: flex; align-items: flex-end; padding: 1.2rem;
  position: relative; overflow: hidden;
}
.card-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 14, 21, .55));
}
.card-wordmark {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.15;
  letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.card-osww .card-visual {
  background:
    radial-gradient(24rem 10rem at 20% 120%, rgba(47, 200, 171, .5), transparent 60%),
    linear-gradient(160deg, #11566b, #062430);
}
.card-sim .card-visual {
  background:
    linear-gradient(180deg, rgba(11, 14, 21, .1), rgba(11, 14, 21, .4)),
    url("../paramotorsim/assets/media/dunes-preview.png") center/cover;
}
.card-body { padding: 1.5rem 1.4rem 1.7rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-kicker { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-body h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.card-body > p:not(.card-kicker) { font-size: .92rem; color: var(--muted); flex: 1; }
.card-cta { font-size: .85rem; font-weight: 600; color: var(--wire); margin-top: .4rem; }
.card-cta-dim { color: var(--muted); }
.card-boat .card-visual {
  background:
    linear-gradient(180deg, rgba(11, 14, 21, .15), rgba(11, 14, 21, .5)),
    url("../boatsim/assets/media/bay-map.jpg") center/cover;
}
.card-ghost { border-style: dashed; background: transparent; justify-content: center; }

/* ---------- About ---------- */
.about { padding: 0 1.25rem 6rem; }
.about-inner { max-width: var(--container-narrow); margin: 0 auto; }
.about h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.015em; margin-bottom: 1rem; }
.about p { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 1.25rem 2.5rem; }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 1.2rem;
}
.footer-inner nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-fine { font-size: .8rem; color: var(--muted); opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .projects-inner { grid-template-columns: 1fr; max-width: 30rem; }
}
@media (max-width: 640px) {
  .card-visual { height: 150px; }
}
