/* Travel ED — design system
   Red & white, clean American group-travel brand.
   Display: Fraunces. Body: Hanken Grotesk. */

:root {
  --red:    #d1202f;
  --red-d:  #a5161f;
  --red-l:  #f7dcdc;
  --paper:  #ffffff;
  --cream:  #fbf6f4;   /* subtle off-white section background */
  --ink:    #1c1717;
  --muted:  #6f6763;
  --line:   #ece2dd;

  --radius:   14px;
  --radius-l: 24px;
  --shadow:   0 20px 55px -26px rgba(209, 32, 47, .40);
  --shadow-s: 0 8px 26px -16px rgba(28, 23, 23, .45);

  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: 1160px;

  /* Legacy aliases so older inline styles keep working after the rebrand */
  --ocean: var(--red); --ocean-d: var(--red-d);
  --coral: var(--red); --coral-d: var(--red-d);
  --sand: #f2e7e2; --sand-l: var(--cream);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--red-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-ocean { background: var(--ink); color: #fff; }   /* dark accent button */
.btn-ocean:hover { background: #000; transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--wrap); margin: 0 auto; }
.brand { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer .brand-logo { height: 28px; }
.brand .mark { width: 26px; height: 26px; border-radius: 50%; background: var(--red); display: inline-grid; place-items: center; flex: none; }
.brand .mark svg { width: 15px; height: 15px; fill: #fff; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--red); }
/* Keep button text legible in the nav (plain-link rule above is more specific than .btn-*) */
.nav-links a.btn-primary, .nav-links a.btn-ocean { color: #fff; opacity: 1; }
.nav-links a.btn-primary:hover, .nav-links a.btn-ocean:hover { color: #fff; }
.nav-links a.btn-ghost:hover { color: var(--red); }

/* ---------- Hero + plane splash ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: #fff; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { /* left-weighted wash: keeps headline readable, lets photos show at right */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, rgba(165,22,31,.94) 0%, rgba(165,22,31,.58) 46%, rgba(28,23,23,.22) 100%);
}

/* Hero photo collage that assembles 1 -> 2 -> 3 -> 6 with white separators */
.collage {
  position: absolute; inset: 0; z-index: 1; display: grid; background: #fff;
  grid-template-columns: 1fr 0fr 0fr; grid-template-rows: 1fr 0fr; gap: 0;
  animation: assemble 3s cubic-bezier(.6,.05,.3,1) forwards;
}
.collage .cell { overflow: hidden; background: #e9e0da; position: relative;
  transition: transform .38s cubic-bezier(.2,.7,.3,1), box-shadow .38s ease, border-radius .38s ease; }
/* Each photo slowly breathes/drifts on its own so the hero feels alive on EVERY device
   (mobile included, where there's no hover). Staggered timing + directions keep it organic. */
.collage .cell img { width: 100%; height: 100%; object-fit: cover; will-change: transform;
  animation: heroDriftA 17s ease-in-out infinite alternate; }
.collage .cell:nth-child(1) img { animation: heroDriftA 16s ease-in-out infinite alternate; animation-delay: -3s; }
.collage .cell:nth-child(2) img { animation: heroDriftB 20s ease-in-out infinite alternate; animation-delay: -9s; }
.collage .cell:nth-child(3) img { animation: heroDriftC 18s ease-in-out infinite alternate; animation-delay: -5s; }
.collage .cell:nth-child(4) img { animation: heroDriftB 19s ease-in-out infinite alternate; animation-delay: -12s; }
.collage .cell:nth-child(5) img { animation: heroDriftC 22s ease-in-out infinite alternate; animation-delay: -2s; }
.collage .cell:nth-child(6) img { animation: heroDriftA 21s ease-in-out infinite alternate; animation-delay: -7s; }
@keyframes heroDriftA { from { transform: scale(1.05); } to { transform: scale(1.11) translate(-2%, -1.5%); } }
@keyframes heroDriftB { from { transform: scale(1.06) translate(1%, 0); } to { transform: scale(1.12) translate(-1.5%, -2%); } }
@keyframes heroDriftC { from { transform: scale(1.05) translate(0, 1%); } to { transform: scale(1.1) translate(2%, -1.5%); } }
@media (prefers-reduced-motion: reduce) {
  .collage .cell img { animation: none !important; transform: scale(1.02); }
}
/* Hover on a hero photo (desktop): it lifts above the red wash into full colour, pops, shadows.
   The headline stays on top (z-index 5) and photos never cover it. */
@media (hover: hover) {
  .collage .cell:hover { transform: scale(1.06); z-index: 3; border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0,0,0,.42); }
}
@keyframes assemble {
  0%,14%  { grid-template-columns: 1fr 0fr 0fr; grid-template-rows: 1fr 0fr; gap: 0; }
  36%     { grid-template-columns: 1fr 1fr 0fr; grid-template-rows: 1fr 0fr; gap: 4px; }
  58%     { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 0fr; gap: 4px; }
  82%,100%{ grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .collage { animation: none; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
}
.hero-inner { position: relative; z-index: 5; max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 128px; color: #fff; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); color: #fff; max-width: 15ch; }
.hero h1 em { font-style: italic; }
.hero .lede { font-size: 19px; color: rgba(255,255,255,.9); margin: 22px 0 32px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: #fff; color: var(--red); border-color: #fff; }

/* Splash overlay: a plane flies across an arc, then the logo/wordmark reveal */
.splash { position: fixed; inset: 0; z-index: 200; background: var(--red); display: grid; place-items: center; animation: splashOut .8s ease 2.6s forwards; }
.splash.hidden { display: none; }
.splash svg { width: min(70vw, 520px); overflow: visible; }
.splash .arc { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 520; stroke-dashoffset: 520; animation: drawArc 1.5s ease .2s forwards; }
.splash .plane { fill: #fff; transform-box: fill-box; transform-origin: center;
  offset-path: path("M20,150 Q220,20 430,120"); offset-distance: 0%;
  animation: flyPlane 1.6s cubic-bezier(.5,.1,.4,1) .2s forwards; }
.splash .word { opacity: 0; animation: wordIn .6s ease 1.7s forwards; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
@keyframes flyPlane { to { offset-distance: 100%; } }
@keyframes wordIn { to { opacity: 1; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .splash { animation: splashOut .3s ease .3s forwards; }
  .splash .arc, .splash .plane, .splash .word { animation-duration: .3s; animation-delay: 0s; }
}

.pop-in { opacity: 0; transform: translateY(16px); animation: pop .7s cubic-bezier(.2,.7,.3,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.tint { background: var(--cream); }
.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px; }
.step .num { font-family: var(--display); font-size: 15px; color: #fff; background: var(--red); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Trip cards ---------- */
.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trip-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trip-card .photo { aspect-ratio: 4/3; background: var(--sand); overflow: hidden; position: relative; }
.trip-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.trip-card:hover .photo img { transform: scale(1.05); }
.trip-card .tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.trip-card .tag.past { color: var(--ink); }
.trip-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.trip-card .place { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.trip-card h3 { font-size: 24px; }
.trip-card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.trip-price { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.trip-price .total { font-family: var(--display); font-size: 22px; }
.trip-price .mo { font-size: 13px; color: var(--muted); }
.trip-price .mo b { color: var(--red); font-size: 16px; }

/* ---------- Calendar ---------- */
.cal-list { display: grid; gap: 16px; }
.cal-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 24px; transition: box-shadow .2s ease; }
.cal-row:hover { box-shadow: var(--shadow-s); }
.cal-date { text-align: center; background: var(--red-l); border-radius: 12px; padding: 12px 8px; }
.cal-date .m { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-d); }
.cal-date .d { font-family: var(--display); font-size: 30px; color: var(--red-d); line-height: 1; }
.cal-row h3 { font-size: 22px; }
.cal-row .meta { color: var(--muted); font-size: 14px; margin-top: 3px; }
.cal-row .right { text-align: right; display: grid; gap: 8px; justify-items: end; }

/* ---------- Stories / blog ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.story { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.story .photo { aspect-ratio: 3/2; background: var(--sand); overflow: hidden; }
.story .photo img { width: 100%; height: 100%; object-fit: cover; }
.story .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.story h3 { font-size: 24px; }
.story p { color: var(--muted); font-size: 15px; flex: 1; }
.story .stat { font-size: 13px; color: var(--ink); font-weight: 600; }

/* ---------- Panels / forms ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-s); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  font-family: var(--body); font-size: 15px; background: var(--cream); color: var(--ink);
  transition: border .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.msg { font-size: 14px; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.msg.err { display: block; background: #fbe0e0; color: #a5161f; }
.msg.ok  { display: block; background: #e2f0e6; color: #1c6b4d; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; background: var(--red); overflow: hidden; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.auth-visual .quote { position: absolute; inset: auto 40px 48px; color: #fff; font-family: var(--display); font-size: 30px; line-height: 1.2; }
.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-form .inner { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 38px; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); margin-bottom: 30px; }
.auth-toggle { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-toggle button { background: none; border: none; color: var(--red); font-weight: 600; cursor: pointer; font-family: var(--body); font-size: 14px; }

/* ---------- Dashboard ---------- */
.dash { padding: 40px 0 80px; }
.dash-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.dash-head h1 { font-size: 40px; }
.dash-head p { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat .l { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.stat .v { font-family: var(--display); font-size: 34px; margin-top: 6px; }
.stat.accent { background: var(--red); color: #fff; border-color: var(--red); }
.stat.accent .l { color: rgba(255,255,255,.8); }

.booking-list { display: grid; gap: 18px; }
.booking { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; display: grid; grid-template-columns: 88px 1fr auto; gap: 22px; align-items: center; }
.booking .thumb { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--sand); }
.booking h3 { font-size: 22px; }
.booking .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.progress { height: 9px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-top: 14px; max-width: 340px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-d), var(--red)); border-radius: 999px; }
.progress-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.booking .right { text-align: right; }
.booking .right .due { font-size: 13px; color: var(--muted); }
.booking .right .amt { font-family: var(--display); font-size: 26px; color: var(--red); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .04em; }
.pill.active { background: #e2f0e6; color: #1c6b4d; }
.pill.paid { background: var(--red-l); color: var(--red-d); }
.pill.forfeited { background: #f4e3d0; color: #8a5a12; }
.pill.overdue { background: #fbe0e0; color: #a5161f; }

.credit-banner { background: var(--cream); border: 1px dashed var(--red); border-radius: var(--radius-l); padding: 20px 24px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.credit-banner .k { font-family: var(--display); font-size: 30px; color: var(--red); }

.referral { background: linear-gradient(120deg, var(--red), var(--red-d)); color: #fff; border-radius: var(--radius-l); padding: 26px 28px; margin-bottom: 24px; }
.referral h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.referral p { color: rgba(255,255,255,.9); font-size: 15px; margin-bottom: 16px; max-width: 60ch; }
.referral .link-row { display: flex; gap: 10px; flex-wrap: wrap; }
.referral input { flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 10px; border: none; font-family: var(--body); font-size: 14px; background: rgba(255,255,255,.15); color: #fff; }
.referral input::selection { background: #fff; color: var(--red); }
.referral .btn { background: #fff; color: var(--red); }
.referral .btn:hover { background: var(--cream); }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 90px; }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 25px; margin: 34px 0 12px; }
.legal p, .legal li { color: #35322d; font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal .callout { background: var(--cream); border-left: 3px solid var(--red); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 20px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #e8ded9; padding: 60px 0 34px; margin-top: 40px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer a { color: #e8ded9; opacity: .8; text-decoration: none; font-size: 14px; display: block; margin-top: 10px; }
.footer a:hover { opacity: 1; color: var(--red); }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(232,222,217,.55); margin-bottom: 4px; }
.footer .cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer .fine { width: 100%; border-top: 1px solid rgba(232,222,217,.18); margin-top: 30px; padding-top: 22px; font-size: 13px; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { padding: 90px 24px 96px; }
  .steps, .trip-grid, .story-grid, .stat-row { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .booking, .cal-row { grid-template-columns: 1fr; text-align: left; }
  .booking .right, .cal-row .right { text-align: left; justify-items: start; }
  .nav-links a:not(.btn) { display: none; }
  .cal-date { width: 96px; }
}

/* ---------- Polish pass ---------- */
:root { color-scheme: light; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-color: var(--ink); }
.btn:active { transform: translateY(0) scale(.985); }

/* Scroll-reveal (applied by js/config.js; no-ops without JS or with reduced motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Two-column form that stacks on phones (replaces cramped inline grids) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Admin stat row: 4-up on desktop, 2x2 on phones */
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stat-row.four { grid-template-columns: 1fr 1fr; } }

/* Hero collage on small screens: static 2x3 grid (skip the assemble animation) */
@media (max-width: 640px) {
  .collage { animation: none; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 3px; }
}

/* Sign-in photo: full-strength image under a proper red gradient (was muddy 50% opacity) */
.auth-visual img { opacity: 1; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(165,22,31,.18), rgba(110,9,16,.82)); }
.auth-visual .quote { z-index: 2; }

/* Mobile menu (button + panel are injected by js/config.js) */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: 1px solid var(--line); border-radius: 10px;
    padding: 12px; cursor: pointer; min-height: 44px;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-panel { display: none; }
  .nav-panel.open { display: grid; gap: 2px; padding: 8px 24px 18px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
  .nav-panel a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); padding: 12px 4px; }
  .nav-panel a.btn { justify-content: center; margin-top: 8px; color: #fff; }
  .nav-panel a.btn-ghost { color: var(--ink); }
}
@media (min-width: 901px) { .nav-panel { display: none !important; } }
/* Small phones: the nav CTA lives in the menu panel; hide the cramped bar copy */
@media (max-width: 640px) { .nav-links a.btn { display: none; } }
