:root {
  --navy: #14235c;
  --blue: #1565c0;
  --blue-dark: #0d4c9a;
  --blue-soft: #e8f1fc;
  --flame: #e8501c;
  --text: #1a1d23;
  --muted: #5f6673;
  --border: #e3e6eb;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }
a:hover { color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 20px; letter-spacing: 0.3px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Hero */
.hero { padding: 64px 0 56px; text-align: center; background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%); }
.hero img.logo { width: 280px; margin: 0 auto 28px; }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stores { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
section h2 { font-size: 30px; line-height: 1.25; color: var(--navy); margin: 0 0 12px; }
section .intro { color: var(--muted); max-width: 680px; margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #d6dcf0; }
.cta-box .btn { background: #fff; color: var(--navy); border-color: #fff; }
.cta-box .btn:hover { background: var(--blue-soft); }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft); border: 2px solid var(--blue); }

/* Legal / text pages */
.page { padding: 48px 0 64px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: 34px; color: var(--navy); margin: 0 0 6px; line-height: 1.2; }
.page .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.page h2 { font-size: 22px; color: var(--navy); margin: 36px 0 10px; }
.page h3 { font-size: 18px; margin: 24px 0 8px; }
.page p, .page li { color: #2c313a; }
.page ul { padding-left: 22px; }
.note { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 14px 18px; border-radius: 8px; margin: 20px 0; }

/* FAQ */
details { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details[open] summary { margin-bottom: 8px; }

/* Form */
form.partner { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
label .req { color: var(--flame); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #cdd3dc; border-radius: 8px;
  background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 16px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e6f4ea; color: #145a2a; }
.form-msg.err { display: block; background: #fdecea; color: #8a1c13; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 14px; color: var(--muted); background: var(--bg-alt); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero img.logo { width: 220px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 17px; }
  section { padding: 44px 0; }
  section h2 { font-size: 25px; }
  .grid, .row2 { grid-template-columns: 1fr; }
  .cta-box { padding: 26px; }
  .page h1 { font-size: 28px; }
}

.small-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ===== Aurora motion layer (animated orange/blue gradient) ===== */
:root { --ember: #ff7a3d; --sky: #2f8bff; --ink: #0a1230; }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff; padding: 96px 0 88px; text-align: center;
}
.hero .aurora, .hero .aurora i { position: absolute; pointer-events: none; }
.hero .aurora { inset: 0; z-index: -2; overflow: hidden; }
.hero .aurora i {
  width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(70px); opacity: .85;
  will-change: transform; mix-blend-mode: screen;
}
.hero .aurora i:nth-child(1) { background: radial-gradient(circle, var(--flame) 0%, transparent 62%); left: -18vmax; top: -22vmax; animation: drift1 18s ease-in-out infinite alternate; }
.hero .aurora i:nth-child(2) { background: radial-gradient(circle, var(--blue) 0%, transparent 62%); right: -20vmax; top: -10vmax; animation: drift2 22s ease-in-out infinite alternate; }
.hero .aurora i:nth-child(3) { background: radial-gradient(circle, var(--ember) 0%, transparent 60%); left: 20%; bottom: -34vmax; width: 52vmax; height: 52vmax; opacity: .6; animation: drift3 26s ease-in-out infinite alternate; }
.hero .aurora i:nth-child(4) { background: radial-gradient(circle, var(--sky) 0%, transparent 60%); right: 8%; bottom: -30vmax; width: 44vmax; height: 44vmax; opacity: .55; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-16vmax, 12vmax, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(-12vmax, -9vmax, 0) scale(1.2); } }

/* film grain + fading lines for depth */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.14), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 84px);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}

.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: .3px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 22px;
}
.hero .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255,122,61,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,122,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,61,0); } }

.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 66px); line-height: 1.06; letter-spacing: -.02em; max-width: 16ch; margin: 0 auto 20px; font-weight: 800; }
.hero h1 em {
  font-style: normal; background: linear-gradient(100deg, #ffb48a, var(--ember) 35%, #8ec2ff 70%, #fff);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }
.hero p.lead { color: rgba(255,255,255,.82); font-size: clamp(17px, 2vw, 20px); max-width: 660px; }
.hero .stores { color: rgba(255,255,255,.62); }

.hero .btn { background: linear-gradient(135deg, var(--flame), var(--ember)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -8px rgba(232,80,28,.7); transition: transform .2s, box-shadow .2s; }
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(232,80,28,.85); background: linear-gradient(135deg, var(--flame), var(--ember)); }
.hero .btn-outline { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .btn-outline:hover { background: rgba(255,255,255,.18); box-shadow: none; }

/* hero stats strip */
.hero .stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.hero .stats div { padding: 14px 22px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 130px; }
.hero .stats b { display: block; font-size: 26px; line-height: 1.1; }
.hero .stats span { font-size: 13px; color: rgba(255,255,255,.7); }

/* cards: rotating gradient edge on hover */
.card { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--ang), var(--flame), var(--blue), var(--ember), var(--flame));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 5s linear infinite; pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -18px rgba(20,35,92,.35); }
.card:hover::before { opacity: 1; }
@keyframes spin { to { --ang: 360deg; } }

/* CTA box: living gradient */
.cta-box { background: linear-gradient(135deg, var(--navy), var(--blue-dark), #8a3a12, var(--navy)); background-size: 300% 300%; animation: flow 14s ease infinite; }
@keyframes flow { 50% { background-position: 100% 50%; } }

/* scroll reveal (class added by JS only, so no-JS stays visible) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* 404 */
.nf { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; text-align: center; padding: 110px 0 120px; }
.nf h1 { color: #fff; font-size: clamp(90px, 22vw, 220px); line-height: .95; margin: 0; letter-spacing: -.04em; font-weight: 900;
  background: linear-gradient(100deg, var(--ember), #fff 45%, var(--sky)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
.nf p { color: rgba(255,255,255,.8); }
.nf .btn { background: linear-gradient(135deg, var(--flame), var(--ember)); border-color: transparent; }
.nf .aurora { position: absolute; inset: 0; z-index: -1; }
.nf .aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .8; mix-blend-mode: screen; }
.nf .aurora i:nth-child(1) { background: radial-gradient(circle, var(--flame), transparent 62%); left: -20vmax; top: -20vmax; animation: drift1 18s ease-in-out infinite alternate; }
.nf .aurora i:nth-child(2) { background: radial-gradient(circle, var(--blue), transparent 62%); right: -20vmax; bottom: -25vmax; animation: drift2 22s ease-in-out infinite alternate; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .hero .aurora i { filter: blur(50px); }
  .hero .stats div { min-width: 0; flex: 1 1 40%; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .aurora i, .nf .aurora i, .hero h1 em, .nf h1, .cta-box, .card::before, .hero .badge::before { animation: none !important; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
.nf .btn-outline { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.nf .btn-outline:hover { background: rgba(255,255,255,.18); }
.nf-sub{font-size:22px;font-weight:600;margin:8px 0 6px}
.nf-actions{margin-top:26px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ===== v3: richer motion ===== */
/* reveal uses translate/opacity so it never fights tilt transforms */
.js .rv { opacity: 0; transform: none; translate: 0 26px; transition: opacity .75s cubic-bezier(.22,1,.36,1), translate .75s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; translate: 0 0; }

/* scroll progress */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 50; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--flame), var(--ember), var(--sky)); box-shadow: 0 0 12px rgba(255,122,61,.6); pointer-events: none; }

/* glass header */
.site-header { transition: background .3s, box-shadow .3s, border-color .3s; }
.site-header.scrolled { background: rgba(255,255,255,.78); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 8px 30px -18px rgba(10,18,48,.45); border-color: transparent; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s; background: linear-gradient(90deg, var(--flame), var(--blue)); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* canvas particle layer */
canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero > .wrap, .lib-hero > .wrap { position: relative; z-index: 1; }

/* floating fault-code chips in the hero */
.fchip { position: absolute; z-index: 0; font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; color: #fff;
  padding: 9px 13px; border-radius: 10px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); animation: bob 7s ease-in-out infinite; pointer-events: none; }
.fchip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: blink 1.6s steps(2) infinite; }
.fchip.b::before { background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.fchip.c1 { left: 7%; top: 24%; } .fchip.c2 { right: 8%; top: 20%; animation-delay: -2s; } .fchip.c3 { left: 12%; bottom: 20%; animation-delay: -4s; }
.fchip.c4 { right: 11%; bottom: 24%; animation-delay: -1s; } .fchip.c5 { left: 24%; top: 10%; animation-delay: -3s; opacity: .8; } .fchip.c6 { right: 24%; bottom: 9%; animation-delay: -5s; opacity: .8; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 900px) { .fchip { display: none; } }

/* brand marquee */
.marquee { overflow: hidden; padding: 18px 0; background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { color: rgba(255,255,255,.55); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 46px; }
.marquee span::after { content: "✦"; color: var(--ember); font-size: 12px; }
@keyframes slide { to { transform: translateX(-50%); } }
section { padding: 72px 0; }

/* card spotlight + tilt */
.card, .tile { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s, translate .3s; }
.card:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); translate: 0 -5px; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,122,61,.14), rgba(21,101,192,.08) 45%, transparent 70%); }
.card:hover::after { opacity: 1; }
.card .icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s, color .3s; }
.card:hover .icon { transform: translateY(-3px) scale(1.12) rotate(-6deg); background: linear-gradient(135deg, var(--flame), var(--ember)); color: #fff; }

/* animated heading underline */
section h2 { position: relative; display: inline-block; }
section h2::after { content: ""; display: block; height: 4px; width: 56px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--flame), var(--blue)); transition: width .9s cubic-bezier(.22,1,.36,1) .2s; }
.cta-box h2::after { background: linear-gradient(90deg, var(--ember), #fff); }
.js section h2.rv::after { width: 0; }

/* shimmer on primary buttons */
.btn { position: relative; overflow: hidden; }
.hero .btn:not(.btn-outline)::after, .nf .btn:not(.btn-outline)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { left: -80%; } 100% { left: 140%; } }
.nf .aurora i:nth-child(3) { background: radial-gradient(circle, var(--ember), transparent 62%); left: 30%; bottom: -30vmax; opacity: .5; animation: drift3 24s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .fchip, .marquee .track, .fchip::before, .hero .btn::after, .nf .btn::after { animation: none !important; }
  .progress { display: none; }
}

/* FAQ block */
.faq-wrap { max-width: 820px; }
#faq details { transition: box-shadow .25s, border-color .25s; }
#faq details:hover { border-color: #ff9d6c; box-shadow: 0 12px 28px -18px rgba(20,35,92,.4); }
#faq details[open] { border-color: var(--blue); }
#faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--flame); transition: transform .3s; }
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { margin: 0; color: var(--muted); }

/* Search button in the header (shown on phones too, unlike the text links) */
.nav a.nav-search { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); color: var(--navy); }
.nav a.nav-search:hover { border-color: var(--blue); color: var(--blue); }
.nav a.nav-search::after { display: none; }
.nav a.nav-search svg { flex: none; }
@media (max-width: 640px) {
  .nav { gap: 10px; }
  .nav a.nav-search { padding: 9px; }
  .nav a.nav-search span { display: none; }
  .nav .btn { white-space: nowrap; }
}

/* v4 (2026-10-17): About + Contact in the menu; hamburger menu next to Search on phones and tablets */
.nav { gap: 18px; }
.nav a.nav-link { font-size: 14.5px; white-space: nowrap; }
.nav-toggle { display: none; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); cursor: pointer; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-burger:hover { border-color: var(--blue); }
.nav-burger span { display: block; width: 16px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-menu { display: none; border-top: 1px solid var(--border); background: #fff; max-height: calc(100vh - 64px); overflow-y: auto; }
.nav-menu .wrap { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; gap: 0; padding: 6px 16px 14px; }
.nav-menu a { padding: 11px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 500; font-size: 16px; }
.nav-menu a:last-child { border-bottom: 0; color: var(--blue); font-weight: 700; }
.nav-menu a[aria-current="page"] { color: var(--blue); }
.nav-toggle:checked ~ .nav-menu { display: block; }
.nav-toggle:checked ~ .wrap .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .wrap .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .wrap .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav a.nav-link { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 640px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav { gap: 8px; }
  .nav-burger { width: 36px; height: 36px; }
  .nav a.nav-search { padding: 8px; }
  .nav .btn-small { padding: 8px 11px; font-size: 13px; }
}
