/* ============================================================
   Explora Journeys Swiss SailGP Team — prototype stylesheet
   Brand: Explora Navy #0C2340 · Switzerland Red #DA291C
   Type:  Founders Grotesk (brand guideline: Light + Semi-bold)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('../fonts/FoundersGrotesk-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk XCond'; src: url('../fonts/FoundersGroteskXCond-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk Cond'; src: url('../fonts/FoundersGroteskCond-Lt.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0C2340;
  --navy-deep: #071729;
  --navy-card: #102C4E;
  --red: #DA291C;
  --white: #FFFFFF;
  --mist: #93A5BD;
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-soft: rgba(255, 255, 255, 0.08);

  --font-body: 'Founders Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Founders Grotesk XCond', 'Arial Narrow', sans-serif;
  --font-cond: 'Founders Grotesk Cond', 'Arial Narrow', sans-serif;

  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--red); color: var(--white); }

.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* Subtle nautical chart grid on alternate sections */
.chart-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 88px 88px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 23, 41, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 26px;
  max-width: 1480px; margin: 0 auto;
  padding: 0 var(--pad-x);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }

.countdown {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
  flex-shrink: 0;
}
.countdown-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mist); white-space: nowrap;
}
.countdown-digits { display: flex; gap: 10px; font-family: var(--font-cond); font-size: 21px; line-height: 1; }
.countdown-digits span { min-width: 34px; }
.countdown-digits b { font-family: var(--font-body); font-weight: 600; font-size: 11px; color: var(--mist); margin-left: 1px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop > summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--white); cursor: pointer;
  border-bottom: 2px solid transparent;
}
.main-nav > a:hover, .nav-drop > summary:hover { color: var(--mist); }
.main-nav > a[aria-current="page"] { border-bottom-color: var(--red); }

.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: ''; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}
.nav-drop[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 210px; padding: 8px;
  background: var(--navy-deep); border: 1px solid var(--hairline);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.nav-drop-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; font-size: 14.5px; font-weight: 400;
}
.nav-drop-menu a:hover { background: var(--navy-card); }
.nav-drop-menu a:not(.int)::after { content: '↗'; font-size: 12px; color: var(--mist); }
/* seta de "link externo" reutilizável — cabeçalho (Merchandising) e rodapé (Schedule, Tickets, Merchandising, Media Center) */
.ext-link::after { content: '↗'; font-size: 0.72em; margin-left: 5px; opacity: 0.65; vertical-align: 1px; }

.nav-socials { display: flex; align-items: center; gap: 4px; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--hairline); }
.nav-socials a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--white); }
.nav-socials a:hover { color: var(--red); }
.nav-socials svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--hairline); color: var(--white);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #b92015; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #e8edf4; }

/* ---------- Signature heading: finish-line rule with Swiss cross ---------- */
.section-head { display: flex; align-items: baseline; gap: 28px; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em;
}
.finish-line { flex: 1; display: flex; align-items: center; min-width: 60px; transform: translateY(-8px); }
.finish-line::before { content: ''; flex: 1; height: 2px; background: var(--red); }
.finish-line::after {
  content: ''; width: 14px; height: 14px; margin-left: 6px; flex-shrink: 0;
  background:
    linear-gradient(var(--white), var(--white)) center / 8px 2.5px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 2.5px 8px no-repeat,
    var(--red);
}
.section-head .view-all {
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mist); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
}
.section-head .view-all:hover { color: var(--white); }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red);
}
.eyebrow--mist { color: var(--mist); }

section { padding: clamp(64px, 9vw, 110px) 0; }
.section-deep { background: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 0;
  min-height: max(620px, calc(100svh - var(--header-h)));
  display: flex; align-items: flex-end;
  isolation: isolate; overflow: hidden;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 62% 40%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,35,64,0.55) 0%, rgba(12,35,64,0.1) 35%, rgba(7,23,41,0.88) 88%),
    linear-gradient(100deg, rgba(12,35,64,0.55) 0%, rgba(12,35,64,0) 55%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vw, 110px); }
.hero-title-sub {
  display: block;
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(22px, 3vw, 34px); letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(58px, 10.5vw, 138px);
  line-height: 0.9; text-transform: uppercase;
}
.hero-rule { display: flex; align-items: center; width: min(420px, 60%); margin-bottom: 26px; }
.hero-rule::before { content: ''; flex: 1; height: 3px; background: var(--red); }
.hero-rule::after {
  content: ''; width: 17px; height: 17px; margin-left: 7px;
  background:
    linear-gradient(var(--white), var(--white)) center / 9px 3px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 3px 9px no-repeat,
    var(--red);
}
.hero p { max-width: 560px; margin: 0 0 34px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.news-feature { display: block; }
.news-feature .thumb { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--navy-card); }
.news-feature img, .news-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-feature:hover img, .news-item:hover img { transform: scale(1.04); }
.news-date { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--mist); }
.news-feature h3 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.2; }
.news-feature .excerpt { margin: 0; color: var(--mist); }
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid; grid-template-columns: 1fr 148px; gap: 20px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--hairline);
}
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-card); }
.news-item h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.news-item .news-date { margin: 10px 0 0; }
a.news-feature:hover h3, a.news-item:hover h3 { color: var(--mist); }

/* ---------- Team cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.team-grid--wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.athlete-card { background: var(--navy-card); border: 1px solid var(--hairline-soft); overflow: hidden; }
.athlete-portrait {
  position: relative; aspect-ratio: 4 / 4.6;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(218,41,28,0.14), transparent 55%),
    linear-gradient(165deg, #16345C 0%, var(--navy) 70%);
  overflow: hidden;
}
.athlete-portrait::before {
  content: ''; position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotate(-8deg);
}
.athlete-portrait .initials {
  position: relative;
  font-family: var(--font-display); font-size: clamp(64px, 7vw, 96px);
  line-height: 1; color: rgba(255,255,255,0.9); text-transform: uppercase;
}
.athlete-portrait .photo-soon {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.athlete-meta { padding: 18px 20px 20px; border-top: 2px solid var(--red); }
.athlete-meta h3 { margin: 0 0 3px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.athlete-meta p { margin: 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.team-cta { margin-top: clamp(30px, 4vw, 46px); text-align: center; }

/* ---------- Schedule ---------- */
.sched-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 78vw);
  gap: 18px; overflow-x: auto; padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--red) var(--navy-card);
}
.sched-strip::-webkit-scrollbar { height: 6px; }
.sched-strip::-webkit-scrollbar-track { background: var(--navy-card); }
.sched-strip::-webkit-scrollbar-thumb { background: var(--red); }
.event-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; min-height: 220px;
  background: var(--navy-card); border: 1px solid var(--hairline-soft);
}
.event-top { display: flex; justify-content: space-between; align-items: center; }
.chip {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--hairline); color: var(--mist);
}
.chip-next { background: var(--red); border-color: var(--red); color: var(--white); }
.chip-done { color: #7FD3C4; border-color: rgba(127,211,196,0.4); }
.event-no { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--mist); text-transform: uppercase; }
.event-card h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; }
.event-date { font-family: var(--font-cond); font-size: 22px; color: rgba(255,255,255,0.85); }
.event-card--next { border-color: var(--red); box-shadow: inset 0 3px 0 var(--red); }
.podium { margin-top: auto; padding: 14px 16px; background: rgba(7,23,41,0.6); font-size: 14.5px; }
.podium-title { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.podium ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.podium li { display: flex; gap: 10px; align-items: baseline; }
.podium .pos { font-family: var(--font-cond); font-size: 17px; width: 14px; color: var(--mist); }
.podium .sui { color: var(--white); font-weight: 600; }
.podium .sui::after { content: 'SUI'; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 6px; background: var(--red); }
.sched-cta { margin-top: 26px; }

/* ---------- Social wall ---------- */
.social-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.social-tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--navy-card); }
.social-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.social-tile:hover img { transform: scale(1.06); }
.social-tile .platform {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; place-items: center; width: 28px; height: 28px;
  background: rgba(7,23,41,0.75); color: var(--white);
}
.social-tile .platform svg { width: 14px; height: 14px; fill: currentColor; }
.social-tile .handle {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 24px 12px 10px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em;
  background: linear-gradient(transparent, rgba(7,23,41,0.85));
  opacity: 0; transition: opacity 0.25s;
}
.social-tile:hover .handle, .social-tile:focus-visible .handle { opacity: 1; }
.social-note { margin-top: 18px; font-size: 14px; color: var(--mist); }

/* ---------- Partners ---------- */
.partner-group { margin-bottom: clamp(34px, 5vw, 54px); }
.partner-group:last-child { margin-bottom: 0; }
.partner-group-title {
  margin: 0 0 18px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist);
}
.partner-row { display: grid; gap: 16px; }
.partner-row--title { grid-template-columns: minmax(0, 520px); }
.partner-row--suppliers { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.partner-tile {
  position: relative; display: grid; place-items: center;
  min-height: 120px; padding: 26px 22px;
  background: var(--white); color: var(--navy);
  transition: transform 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.partner-tile:hover { transform: translateY(-4px); }
.partner-tile img { max-height: 64px; width: auto; max-width: 82%; }
.partner-tile .wordmark { font-size: 22px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.partner-tile .wordmark small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: #5B6B80; margin-top: 4px; }
.partner-tile--title { min-height: 170px; }
.partner-tile .ext { position: absolute; top: 10px; right: 12px; font-size: 13px; color: #9AA7B8; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding: clamp(70px, 10vw, 120px) 0 clamp(44px, 6vw, 70px); border-bottom: 1px solid var(--hairline-soft); overflow: hidden; }
.page-hero h1 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(52px, 8vw, 104px); line-height: 0.92; text-transform: uppercase; }
.page-hero .lede { max-width: 640px; margin: 14px 0 0; font-size: clamp(17px, 1.7vw, 20px); color: var(--mist); }
.page-hero .hero-rule { margin-top: 22px; margin-bottom: 0; }
/* A secção logo a seguir a um cabeçalho de texto (News, Contact) não deve somar
   o seu próprio espaçamento de topo ao espaçamento de baixo do cabeçalho —
   o resultado ficava com um vazio enorme entre os dois. */
.page-hero + section { padding-top: clamp(22px, 3vw, 38px); }

/* ---------- Team page ---------- */
.squad-section { padding: clamp(44px, 6vw, 72px) 0; }
.squad-section + .squad-section { border-top: 1px solid var(--hairline-soft); }
.squad-title { display: flex; align-items: baseline; gap: 22px; margin-bottom: 30px; }
.squad-title h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; line-height: 1; }
.squad-title .count { font-family: var(--font-cond); font-size: 22px; color: var(--mist); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.staff-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--navy-card); border: 1px solid var(--hairline-soft); border-left: 2px solid var(--red); }
.staff-card .initials {
  display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0;
  font-family: var(--font-display); font-size: 24px;
  background: var(--navy); border: 1px solid var(--hairline);
}
.staff-card h3 { margin: 0 0 2px; font-size: 17.5px; font-weight: 600; line-height: 1.2; }
.staff-card p { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mist); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-block h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; line-height: 1; }
.contact-block p { color: var(--mist); margin: 0 0 10px; }
.contact-person { margin-top: 20px; padding: 22px 24px; background: var(--navy-card); border-left: 2px solid var(--red); }
.contact-person strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.contact-person a { color: var(--white); border-bottom: 1px solid var(--red); }
.contact-person a:hover { color: var(--mist); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 16px; font-weight: 300; color: var(--white);
  background: rgba(255,255,255,0.05); border: 1px solid var(--hairline);
  padding: 13px 15px; border-radius: 0; width: 100%;
}
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,0.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,0.07); }
.field textarea { min-height: 150px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 15px; color: #7FD3C4; }
.form-msg[hidden] { display: none; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--mist); margin: 4px 0 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal .updated { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); margin-bottom: 36px; }
.legal h2 { margin: 44px 0 14px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.legal h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 600; }
.legal p, .legal li { color: rgba(255,255,255,0.82); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; padding: 18px 22px; background: var(--navy-card); border-left: 2px solid var(--red); margin: 14px 0; }
.legal a { border-bottom: 1px solid var(--red); }
.legal a:hover { color: var(--mist); }

/* ---------- Newsletter band + footer ---------- */
.newsletter-band { background: var(--navy-deep); border-top: 1px solid var(--hairline-soft); padding: clamp(56px, 8vw, 90px) 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.newsletter-inner h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); line-height: 0.95; text-transform: uppercase; }
.newsletter-inner .sub { margin: 0; color: var(--mist); max-width: 420px; }
.newsletter-form .form-grid { grid-template-columns: 1fr 1fr; }

.site-footer { background: var(--navy-deep); border-top: 1px solid var(--hairline-soft); padding: clamp(44px, 6vw, 64px) 0 30px; }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(30px, 5vw, 70px); align-items: start; padding-bottom: 38px; border-bottom: 1px solid var(--hairline-soft); }
.footer-logo img { width: 168px; height: auto; }
.footer-nav { display: flex; gap: clamp(28px, 4vw, 64px); flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.footer-col a { display: block; padding: 4px 0; font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--hairline); color: var(--white); }
.footer-socials a:hover { border-color: var(--red); color: var(--red); }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; font-size: 13.5px; color: var(--mist); }
.footer-bottom a { color: var(--mist); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .countdown-label { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--hairline);
    padding: 10px var(--pad-x) 22px;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav > a, .nav-drop > summary { padding: 14px 4px; border-bottom: 1px solid var(--hairline-soft); font-size: 17px; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; }
  .nav-socials { border-left: 0; padding: 16px 0 0; margin: 0; }
  .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter-inner, .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .countdown { display: none; }
  .brand img { height: 44px; }
  .team-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .newsletter-form .form-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr 110px; }
  .section-head { flex-wrap: wrap; gap: 14px; }
  .finish-line { min-width: 100%; order: 3; transform: none; }
}

/* ============================================================
   V2 additions: athlete photos & profiles, news, articles,
   What is SailGP, navy partner tiles, home-race chip
   ============================================================ */

/* Partner tiles: navy (white logos) by default; white variant for Explora */
.partner-tile { background: var(--navy-card); color: var(--white); border: 1px solid var(--hairline-soft); }
.partner-tile .ext { color: var(--mist); }
.partner-tile img { max-height: 58px; }
.partner-tile--white { background: var(--white); color: var(--navy); }
.partner-tile--white .ext { color: #9AA7B8; }
.partner-tile--white img { max-height: 74px; }

/* Athlete photo cards */
.athlete-card { position: relative; }
a.athlete-card { display: block; }
.athlete-portrait img.cutout {
  position: absolute; bottom: 0; left: 50%;
  height: 90%; width: auto; max-width: 96%;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.4));
  transition: transform 0.35s ease;
}
a.athlete-card:hover .cutout { transform: translateX(-50%) scale(1.04); }
.athlete-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.athlete-meta .go { color: var(--mist); font-size: 18px; transition: transform 0.2s, color 0.2s; }
a.athlete-card:hover .go { transform: translateX(4px); color: var(--red); }

/* Home race chip + card */
.chip-home { background: var(--white); border-color: var(--white); color: var(--red); font-weight: 700; }
.event-card--home { border-color: rgba(255,255,255,0.5); box-shadow: inset 0 3px 0 var(--white); }
.event-venue { font-size: 13px; color: var(--mist); letter-spacing: 0.06em; text-transform: uppercase; }
.event-flag { display: inline-block; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; vertical-align: -2px; margin-right: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.is-error { color: var(--red); }
.event-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-name-row { display: flex; align-items: center; gap: 0; }

/* Hero home-race ribbon */
.hero-ribbon {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 10px 16px;
  background: rgba(7,23,41,0.72); border: 1px solid var(--hairline);
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.hero-ribbon .cross {
  width: 15px; height: 15px; flex-shrink: 0;
  background:
    linear-gradient(var(--white), var(--white)) center / 9px 3px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 3px 9px no-repeat,
    var(--red);
}
.hero-ribbon a { color: var(--white); border-bottom: 1px solid var(--red); margin-left: 4px; }
.hero-ribbon a:hover { color: var(--mist); }

/* Athlete profile page */
.profile-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline-soft); padding: 0; }
.profile-hero .container {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 60px);
  align-items: end; min-height: 480px; padding-top: clamp(56px, 8vw, 96px);
}
.profile-intro { padding-bottom: clamp(44px, 6vw, 72px); }
.profile-intro .eyebrow { margin-bottom: 10px; }
.profile-intro h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(52px, 7.5vw, 96px); line-height: 0.9; text-transform: uppercase; }
.profile-intro .role { font-size: clamp(18px, 2vw, 23px); font-weight: 300; color: var(--mist); letter-spacing: 0.04em; }
.profile-photo { position: relative; align-self: end; display: flex; justify-content: center; }
.profile-photo::before {
  content: ''; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(218,41,28,0.22), transparent 70%);
}
.profile-photo img { position: relative; width: min(420px, 90%); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
.facts-bar { border-bottom: 1px solid var(--hairline-soft); background: var(--navy-deep); }
.facts-bar .container { display: flex; flex-wrap: wrap; gap: 0; }
.fact { padding: 20px clamp(20px, 3vw, 44px) 22px 0; margin-right: clamp(20px, 3vw, 44px); border-right: 1px solid var(--hairline-soft); }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact .k { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); margin-bottom: 4px; }
.fact .v { font-family: var(--font-cond); font-size: 24px; line-height: 1.1; }
.profile-body { max-width: 720px; }
.profile-body p { color: rgba(255,255,255,0.85); font-size: 17.5px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.back-link:hover { color: var(--white); }

/* More-from-team strip */
.more-team { border-top: 1px solid var(--hairline-soft); }
.more-team .team-grid { grid-template-columns: repeat(3, 1fr); }

/* News page + article cards */
.article-card { display: flex; flex-direction: column; background: var(--navy-card); border: 1px solid var(--hairline-soft); overflow: hidden; }
.article-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.article-card:hover img { transform: scale(1.05); }
.article-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.article-card:hover h3 { color: var(--mist); }
.article-card .excerpt { margin: 0; font-size: 14.5px; color: var(--mist); }
.article-card .news-date { margin: 0; order: -1; }
.news-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); margin-top: clamp(28px, 4vw, 44px); }

/* Article page */
.article-hero { padding: 0; border-bottom: 1px solid var(--hairline-soft); }
.article-hero .banner { max-height: 480px; overflow: hidden; }
.article-hero .banner img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; }
.article-head { padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); }
.article-head h1 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(36px, 5.4vw, 64px); line-height: 0.96; text-transform: uppercase; max-width: 900px; }
.article-head .lede { max-width: 720px; font-size: clamp(17px, 1.8vw, 20px); color: var(--mist); margin: 0; }
.article-meta { display: flex; gap: 18px; align-items: center; margin-top: 18px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.article-body { max-width: 720px; padding: clamp(36px, 5vw, 60px) 0; }
.article-body p { color: rgba(255,255,255,0.85); font-size: 17.5px; margin: 0 0 20px; }
.article-body h2 { margin: 38px 0 12px; font-size: 24px; font-weight: 600; }
.article-body ul { color: rgba(255,255,255,0.85); padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 30px 0; padding: 20px 26px;
  border-left: 3px solid var(--red); background: var(--navy-card);
  font-size: 19px; font-weight: 300; font-style: italic;
}
.article-body blockquote footer { margin-top: 10px; font-size: 13px; font-style: normal; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.related { border-top: 1px solid var(--hairline-soft); }

/* What is SailGP page */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: clamp(30px, 5vw, 50px) 0; }
.stat-block { padding: 26px 24px 28px; background: var(--navy-card); border-top: 3px solid var(--red); }
.stat-block .n { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 58px); line-height: 0.9; display: block; }
.stat-block .n small { font-size: 0.45em; letter-spacing: 0.06em; }
.stat-block .l { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.rule-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.rule-card { padding: 24px 26px; background: var(--navy-card); border-left: 2px solid var(--red); }
.rule-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.rule-card p { margin: 0; font-size: 15px; color: var(--mist); }
.crew-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 24px; }
.crew-role { padding: 18px 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--hairline-soft); }
.crew-role .initials-sm { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; font-family: var(--font-display); font-size: 15px; background: var(--red); }
.crew-role h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.crew-role p { margin: 0; font-size: 13.5px; color: var(--mist); }
.prose { max-width: 760px; }
.prose p { color: rgba(255,255,255,0.85); font-size: 17.5px; }
.wide-image { margin: clamp(30px, 5vw, 50px) 0 0; }
.wide-image img { width: 100%; }
.wide-image figcaption { margin-top: 10px; font-size: 13px; color: var(--mist); }

@media (max-width: 1020px) {
  .news-page-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .profile-hero .container { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .profile-photo { order: -1; justify-content: flex-start; }
  .profile-photo img { width: min(320px, 70%); }
  .more-team .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .news-page-grid { grid-template-columns: 1fr; }
  .rule-cards { grid-template-columns: 1fr; }
  .more-team .team-grid { grid-template-columns: 1fr; }
  .fact { padding-right: 18px; margin-right: 18px; }
}

.route{padding:0}


/* ============ v3 additions ============ */
/* Hero video */
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Stronger blue filter over the hero for text legibility */
.hero::after {
  background:
    linear-gradient(180deg, rgba(12,35,64,0.68) 0%, rgba(12,35,64,0.34) 40%, rgba(7,23,41,0.92) 88%),
    linear-gradient(100deg, rgba(12,35,64,0.62) 0%, rgba(12,35,64,0.12) 60%);
}
/* Studio photo cards: photo fills the box down to the red line */
.athlete-portrait img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.35s ease;
}
a.athlete-card:hover img.photo { transform: scale(1.04); }
/* Cutouts (Nils): larger, anchored to the red line */
.athlete-portrait img.cutout { height: 97%; max-width: 98%; }
/* Profile page studio photo */
.profile-photo img.photo {
  width: min(420px, 90%); aspect-ratio: 4 / 4.8;
  object-fit: cover; object-position: center top;
  border: 1px solid var(--hairline);
}
/* F50 gallery */
.f50-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f50-gallery img { width: 100%; display: block; }
.f50-caption { margin-top: 14px; font-size: 13px; color: var(--mist); }
@media (max-width: 720px) { .f50-gallery { grid-template-columns: 1fr; } }

/* ============================================================
   Mobile: cartões de pessoas em carrossel horizontal (swipe),
   igual ao comportamento da faixa do calendário.
   Aplica-se à homepage e a cada categoria da página Team.
   Colocado no fim para vencer as regras de grelha anteriores.
   ============================================================ */
@media (max-width: 760px) {
  .team-grid,
  .team-grid--wide,
  .more-team .team-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(258px, 66vw);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--red) var(--navy-card);
    /* sangra até às margens do ecrã para o cartão seguinte "espreitar" */
    margin-inline: calc(var(--pad-x) * -1);
    padding-inline: var(--pad-x);
  }
  .team-grid::-webkit-scrollbar,
  .team-grid--wide::-webkit-scrollbar { height: 5px; }
  .team-grid::-webkit-scrollbar-track,
  .team-grid--wide::-webkit-scrollbar-track { background: var(--navy-card); }
  .team-grid::-webkit-scrollbar-thumb,
  .team-grid--wide::-webkit-scrollbar-thumb { background: var(--red); }
  .team-grid > *,
  .team-grid--wide > * { scroll-snap-align: start; }
}
