/* The Practical Skipper — site styles v2 (animated dusk scene, banner palette)
   Palette: navy #0E2A3B (base), caribbean #00F0D5 (the one accent), coral #F2735A (emphasis),
   sand #F6EFE0 (text on navy, paper). Print shades on sand: deep teal #007A6E, deep coral #B84A33. */

@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.woff2") format("woff2"), url("assets/fonts/Inter-Regular.woff") format("woff"), url("assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Bold.woff2") format("woff2"), url("assets/fonts/Inter-Bold.woff") format("woff"), url("assets/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0E2A3B; --navy-2: #11344A; --navy-3: #0A1C29;
  --caribbean: #00F0D5; --coral: #F2735A; --sand: #F6EFE0;
  --deep-teal: #007A6E; --deep-coral: #B84A33; --muted: #9FB6C3;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px; --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--navy); color: var(--sand); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--caribbean); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.the { color: var(--coral); letter-spacing: .18em; }
.fine { font-size: .85rem; color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(10, 28, 41, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(159, 182, 195, .15); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--caribbean); font-weight: 700; letter-spacing: .04em; font-size: .95rem; }
.brand-wheel { width: 30px; height: 30px; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-wheel { transform: rotate(180deg); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--sand); text-decoration: none; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--caribbean); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* buttons */
.btn { display: inline-block; background: var(--caribbean); color: var(--navy) !important; text-decoration: none; padding: 14px 24px; border-radius: 10px; border: 2px solid var(--caribbean); font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 240, 213, .28); }
.btn-ghost { background: rgba(10, 28, 41, .35); color: var(--caribbean) !important; }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
a:focus-visible, .btn:focus-visible, input:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---------- hero: animated dusk scene ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; overflow: hidden; background: #0A1B27; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 28, 41, .8) 0%, rgba(10, 28, 41, .45) 45%, rgba(10, 28, 41, 0) 70%); pointer-events: none; }
.hero-inner { z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 150px; }
.lockup-the { display: flex; align-items: center; gap: 16px; margin: 0; color: var(--coral); font-weight: 700; letter-spacing: .3em; font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.spin { animation: spin 50s linear infinite; }
.hero h1 { color: var(--caribbean); font-size: clamp(2.6rem, 8vw, 5.8rem); letter-spacing: -.01em; margin: .1em 0 .15em; text-shadow: 0 0 40px rgba(0, 240, 213, .18); }
.slogan { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1em; }
.lead { max-width: 34em; color: #D9E3E8; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }
.launch { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--sand); background: rgba(10, 28, 41, .55); border: 1px solid rgba(242, 115, 90, .6); border-radius: 999px; padding: 5px 16px 5px 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 2s ease-out infinite; }

.rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .15s; } .r3 { animation-delay: .3s; } .r4 { animation-delay: .45s; } .r5 { animation-delay: .6s; }

/* scene parts */
.tw { animation: tw 4s ease-in-out infinite; }
.tw1 { animation-delay: 1s; animation-duration: 5s; } .tw2 { animation-delay: 2.2s; animation-duration: 3.4s; } .tw3 { animation-delay: .6s; animation-duration: 6s; }
.sun { animation: sun 9s ease-in-out infinite; transform-origin: 1305px 600px; }
.bob { animation: bob 7s ease-in-out infinite; transform-origin: 1265px 604px; }
.bob2 { animation: bob2 4s ease-in-out infinite; transform-origin: 0 0; }
.bob3 { animation: bob3 2.6s ease-in-out infinite; transform-origin: 100px 696px; }
.win { animation: win 11s steps(1) infinite; }
.flq { animation: flq 1.2s steps(1) infinite; }
.shimmer { animation: shimmer 3.5s ease-in-out infinite; }
.cruise { animation: cruise 60s linear infinite; }
.wv1 { animation: drift 90s linear infinite; }
.wv2 { animation: drift 60s linear infinite; }
.wv3 { animation: drift 38s linear infinite; }

.sbeam { transform-origin: 0 0; animation: sbeam 16s ease-in-out infinite; }
.sflash { opacity: 0; transform-origin: 0 0; animation: sflash 16s linear infinite; }
.slamp { animation: slamp 16s linear infinite; }
/* searchlight: sweeps ahead, swings across the viewer (flash), looks aft, swings back (flash) */
@keyframes sbeam {
  0% { transform: rotate(-9deg) scaleX(1); } 14% { transform: rotate(7deg) scaleX(1); } 28% { transform: rotate(-4deg) scaleX(.85); }
  36% { transform: rotate(0deg) scaleX(.12); } 38% { transform: rotate(0deg) scaleX(.02); } 40% { transform: rotate(0deg) scaleX(-.12); }
  50% { transform: rotate(5deg) scaleX(-.8); } 62% { transform: rotate(-6deg) scaleX(-.9); }
  72% { transform: rotate(0deg) scaleX(-.12); } 74% { transform: rotate(0deg) scaleX(.02); } 76% { transform: rotate(0deg) scaleX(.12); }
  88% { transform: rotate(6deg) scaleX(.9); } 100% { transform: rotate(-9deg) scaleX(1); }
}
@keyframes sflash {
  0%, 35.5% { opacity: 0; transform: scale(.3); } 38% { opacity: 1; transform: scale(1); } 40.5% { opacity: 0; transform: scale(.5); }
  71.5% { opacity: 0; transform: scale(.3); } 74% { opacity: .85; transform: scale(.8); } 76.5%, 100% { opacity: 0; transform: scale(.4); }
}
@keyframes slamp { 0%, 34%, 42%, 70%, 78%, 100% { opacity: .75; } 38%, 74% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 115, 90, .7); } 100% { box-shadow: 0 0 0 12px rgba(242, 115, 90, 0); } }
@keyframes tw { 0%, 100% { opacity: .85; } 50% { opacity: .2; } }
@keyframes sun { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.45deg); } 50% { transform: translateY(4px) rotate(.45deg); } }
@keyframes bob2 { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(3px) rotate(2deg); } }
@keyframes bob3 { 0%, 100% { transform: translateY(0) rotate(-.8deg); } 50% { transform: translateY(1.5px) rotate(-.2deg); } }
@keyframes win { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 50% { opacity: 1; } }
@keyframes flq { 0% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes shimmer { 0%, 100% { opacity: .25; transform: translateX(0); } 50% { opacity: .6; transform: translateX(8px); } }
@keyframes cruise { from { transform: translateX(-520px); } to { transform: translateX(1780px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-1600px); } }

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.eyebrow { color: var(--caribbean); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin-bottom: .6em; }
.section-lead { max-width: 44em; color: #D9E3E8; margin-bottom: 44px; }

#topics { background: linear-gradient(180deg, var(--seafloor, #0A2030) 0%, var(--navy) 22%); padding-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.card { grid-column: span 2; background: var(--navy-2); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(159, 182, 195, .14); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:nth-child(4) { grid-column: 2 / span 2; }
.card:hover { transform: translateY(-6px); border-color: rgba(0, 240, 213, .55); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.card img { width: 100%; aspect-ratio: 400 / 260; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card h3 { color: var(--sand); }
.card-body p { color: #C9D6DD; font-size: .97rem; margin: 0; }

.fairway { display: block; width: 100%; height: 118px; margin-top: 72px; }
.march { animation: march 1.4s linear infinite; }
.fwl { animation: tw 2.4s ease-in-out infinite; }
@keyframes march { to { stroke-dashoffset: -22; } }

/* wave dividers */
.wave-div { height: 60px; overflow: hidden; line-height: 0; margin-top: -1px; }
.wave-div svg { display: block; width: 6400px; height: 60px; }
.wd1 { animation: wd 28s linear infinite; }
.wd2 { animation: wd 17s linear infinite; }
@keyframes wd { to { transform: translateX(-3200px); } }
.sand-end { background: var(--sand); }

/* sand (print) section */
.section-sand { background: var(--sand); color: var(--navy); overflow: hidden; padding-top: 72px; padding-bottom: 72px; }
.section-sand a { color: var(--deep-teal); }
.eyebrow-print { color: var(--deep-teal); }
.compass { position: absolute; width: 420px; height: 420px; right: -90px; top: -60px; opacity: .13; pointer-events: none; }
.needle { animation: needle 9s ease-in-out infinite; transform-origin: 0 0; }
@keyframes needle { 0%, 100% { transform: rotate(-14deg); } 40% { transform: rotate(22deg); } 70% { transform: rotate(4deg); } }
.split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: .5em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--deep-teal); border-bottom: 3px solid var(--deep-teal); transform: rotate(-45deg); }
.signup { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 40px rgba(14, 42, 59, .16); border-top: 5px solid var(--deep-teal); }
.signup label { display: block; font-weight: 700; margin-bottom: 12px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input { flex: 1 1 180px; min-width: 0; font: inherit; padding: 13px 14px; border-radius: 10px; border: 2px solid #C5D6DE; background: #fff; color: var(--navy); }
.signup .btn { background: var(--deep-teal); border-color: var(--deep-teal); color: #fff !important; }
.signup .fine { color: #51697A; margin: 12px 0 0; }

/* about */
#about { padding-top: 72px; }
.note { background: var(--navy-2); border-left: 4px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 26px; }
.note p { color: #D9E3E8; }
.guide { display: flex; align-items: center; gap: 24px; margin-top: 32px; padding: 20px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--navy-2); border-radius: var(--radius); border: 1px solid rgba(0, 240, 213, .25); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.guide:hover { transform: translateY(-4px); border-color: var(--caribbean); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.guide img { width: 150px; height: 150px; flex: none; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.guide-text { display: flex; flex-direction: column; gap: 8px; }
.guide-text strong { color: var(--caribbean); font-size: 1.15rem; line-height: 1.2; }
.guide-text span { color: #D9E3E8; font-size: .97rem; }
.guide-text .more { color: var(--coral); font-weight: 700; }
.guide:hover .more span { display: inline-block; transform: translateX(4px); transition: transform .2s ease; }

/* Ahti dialog */
dialog#ahti-more { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(0, 240, 213, .35); border-radius: 20px; background: var(--navy); color: var(--sand); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog#ahti-more::backdrop { background: rgba(5, 15, 22, .78); backdrop-filter: blur(3px); }
dialog#ahti-more[open] { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
.dlg-grid { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding: 40px 44px 36px 32px; align-items: center; }
.dlg-fig { width: 100%; height: auto; background: linear-gradient(180deg, #143A52 0%, #17405A 70%, #8E6470 96%, #F2735A 100%); border-radius: 16px; padding: 18px 10px 0; }
.dlg-grid h2 { color: var(--caribbean); font-size: clamp(1.5rem, 3vw, 2rem); }
.dlg-grid p { color: #D9E3E8; font-size: 1rem; }
.facts { margin: 0 0 1em; padding-left: 1.2em; color: #D9E3E8; font-size: .97rem; }
.facts li { margin-bottom: .3em; }
.facts li::marker { color: var(--caribbean); }
.dlg-grid blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 4px solid var(--coral); font-weight: 700; font-size: 1.1rem; background: var(--navy-2); border-radius: 0 10px 10px 0; }
.dlg-close { position: sticky; top: 10px; float: right; margin: 10px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(159, 182, 195, .4); background: var(--navy-2); color: var(--sand); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }
.dlg-close:hover { border-color: var(--caribbean); color: var(--caribbean); }
@media (max-width: 700px) { .dlg-grid { grid-template-columns: 1fr; padding: 16px 22px 28px; gap: 20px; } .dlg-fig { max-width: 190px; margin: 0 auto; } }

/* scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: .08s; } .js .cards .reveal:nth-child(3) { transition-delay: .16s; }
.js .cards .reveal:nth-child(5) { transition-delay: .08s; }
.js .card.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }

/* footer */
.site-footer { background: var(--navy-3); padding: 40px 0; border-top: 1px solid rgba(159, 182, 195, .12); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-row p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--caribbean); font-weight: 700; letter-spacing: .04em; font-size: .9rem; }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(4) { grid-column: auto; }
}
@media (max-width: 1280px) {
  .hero { align-items: flex-start; min-height: 0; }
  .scene { inset: auto 0 0 auto; width: 130%; height: auto; aspect-ratio: 16 / 9; }
  .hero-inner { padding-top: 56px; padding-bottom: 58vw; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 28, 41, .8) 0%, rgba(10, 28, 41, .5) 50%, rgba(10, 28, 41, 0) 75%); }
}
@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .scene { inset: auto 0 0 auto; width: 200%; }
  .hero-inner { padding-top: 48px; padding-bottom: 92vw; }
  .brand { font-size: .82rem; white-space: nowrap; }
  .section { padding: 72px 0; }
  .compass { width: 300px; height: 300px; right: -110px; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .fairway { height: 90px; margin-top: 48px; }
}
@media (max-width: 520px) { .guide { flex-direction: column; text-align: center; } .guide img { width: 130px; height: 130px; } }

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