@font-face {
  font-family: Hanken Grotesk;
  src: url("assets/hanken-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Hanken Grotesk;
  src: url("assets/hanken-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Hanken Grotesk;
  src: url("assets/hanken-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f1f4e0;
  --ink: #191919;
  --clay: #c05131;
  --rust: #a53e24;
  --peach: #ee9779;
  --cream: #fbfbed;
  --quiet: #535447;
  --line: #d7dac8;
  --gutter: clamp(16px, 4vw, 68px);
  --panel: clamp(28px, 4.35vw, 70px);
  --radius: 22px;
  --dock: calc(77px + env(safe-area-inset-bottom, 0px));
  color: var(--ink);
  background: var(--paper);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body.carousel { padding-bottom: var(--dock); }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

.dark :focus-visible { outline-color: var(--peach); }
.slide :is(h1, h2):focus { outline: none; }

.shell {
  width: min(calc(100% - var(--gutter) * 2), 1440px);
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  gap: 20px;
}

.brand { display: inline-flex; justify-self: start; padding-block: 6px; }
.brand img { width: 174px; height: auto; }
.masthead-title { font-size: .9rem; font-weight: 600; color: var(--quiet); }

.menu-button {
  justify-self: end;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #bfc3ae;
  border-radius: 999px;
  font-weight: 700;
}

.menu-button:hover { background: #e5e9d4; }
.menu-icon { width: 15px; height: 11px; border-block: 1.5px solid currentColor; position: relative; }
.menu-icon::after { content: ""; width: 100%; height: 1.5px; background: currentColor; position: absolute; inset: 3.4px 0 auto; }

.deck { padding-bottom: 16px; touch-action: pan-y pinch-zoom; }

.slide {
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(540px, calc(100svh - 176px), 790px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  --muted: var(--quiet);
  --accent: var(--rust);
}

.slide + .slide { margin-top: 18px; }
.carousel .slide { margin-top: 0; }
.carousel .slide.is-entering { animation: enter .22s ease-out both; }
@keyframes enter { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.slide.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  --muted: #cbccbd;
  --accent: var(--peach);
}

.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); }
.copy { min-width: 0; align-self: center; padding: var(--panel); }
.copy h2 { font-size: clamp(2.5rem, 4.4vw, 4.8rem); line-height: .99; letter-spacing: -.062em; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1.04rem, 1.45vw, 1.32rem); line-height: 1.46; max-width: 39ch; margin-top: 22px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .115em; text-transform: uppercase; margin-bottom: 20px; }
.source { color: var(--muted); font-size: .79rem; line-height: 1.45; margin-top: 24px; }
.source a, .text-link { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent, var(--rust)); margin-top: 22px; min-height: 44px; }
.text-link:hover { text-decoration-thickness: 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
}

.button-primary { background: var(--rust); color: #fffdf5; }
.button-primary:hover { background: #84321f; }
.button-back { border-color: #c3c7b2; background: transparent; width: 48px; padding: 0; font-size: 1.38rem; }
.button-back:hover:not(:disabled) { background: #e5e9d4; }
.button-back:disabled { opacity: .37; cursor: default; }

.cover { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.cover-copy { position: relative; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: var(--panel); }
.cover-copy::before {
  position: absolute;
  content: "";
  background: url("assets/grafismo.svg") no-repeat center / contain;
  opacity: .1;
  width: 95%;
  height: 64%;
  bottom: -19%;
  left: -16%;
  pointer-events: none;
}
.cover-copy > * { position: relative; }
.cover .eyebrow { color: var(--paper); display: flex; align-items: center; gap: 9px; }
.cover .eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.cover h1 { font-size: clamp(4.2rem, 7.2vw, 8.2rem); line-height: .87; letter-spacing: -.075em; }
.cover h1 em { color: var(--peach); font-style: normal; }
.cover .lead { max-width: 27ch; margin-top: 25px; }
.cover .button { margin-top: 30px; }
.cover-mark {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(32px, 6vw, 92px);
  background: var(--clay);
}
.cover-mark img { width: min(100%, 510px); height: auto; }
.bleed-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.wellness-board, .city-board {
  position: relative;
  display: grid;
  align-content: center;
  padding: var(--panel);
  overflow: hidden;
}
.wellness-board {
  background: var(--ink);
  color: var(--paper);
  --accent: var(--peach);
  --muted: #cbccbd;
  --fact-line: #56534c;
}
.wellness-board > img { position: absolute; width: 118%; max-width: none; right: -39%; bottom: -8%; opacity: .28; pointer-events: none; }
.city-board { background: #e5e9d3; --fact-line: #c0c5ae; }
.fact-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.fact-grid > div { border-top: 1px solid var(--fact-line); padding-top: 12px; }
.fact-grid dt { color: var(--accent); font-size: clamp(1.8rem, 3.2vw, 3.75rem); line-height: 1; letter-spacing: -.06em; font-weight: 700; }
.fact-grid dd { font-size: clamp(.9rem, 1.1vw, 1.03rem); line-height: 1.36; margin-top: 7px; }
.fact-grid .fact-source { color: var(--muted); font-size: .75rem; margin-top: 8px; }
.fact-source a, .city-population a { text-underline-offset: 3px; }
.city-population { border-top: 1px solid var(--fact-line); margin-top: 24px; padding-top: 12px; font-size: .9rem; line-height: 1.4; }
.city-population a { color: var(--muted); font-size: .75rem; }

.bleed-media { min-width: 0; position: relative; background: #623a2a; }
.tennis-photo img { object-position: 50% 69%; }
.inline-stats, .growth-stats, .audience { display: grid; gap: 15px; margin-top: 28px; }
.inline-stats, .growth-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inline-stats > div, .growth-stats > div, .audience > div { border-top: 1px solid var(--line); padding-top: 12px; }
.dark :is(.inline-stats, .growth-stats) > div { border-color: #56534c; }
:is(.inline-stats, .growth-stats, .audience) dt { color: var(--accent); font-size: clamp(1.9rem, 3.5vw, 3.8rem); font-weight: 700; line-height: 1; letter-spacing: -.055em; }
:is(.inline-stats, .growth-stats, .audience) dd { color: var(--muted); font-size: .92rem; line-height: 1.24; margin-top: 6px; }

.audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience dt { font-size: clamp(1.55rem, 2.7vw, 3.05rem); }
.gender { margin-top: 22px; }
.gender p { font-size: .84rem; color: var(--quiet); line-height: 1.5; }
.gender b { color: var(--ink); }
.gender p span { margin-inline: 3px; }
.gender-bar { display: flex; height: 7px; gap: 2px; border-radius: 999px; overflow: hidden; margin-top: 9px; }
.gender-bar span:nth-child(1) { flex: 71.6; background: var(--ink); }
.gender-bar span:nth-child(2) { flex: 24.2; background: var(--clay); }
.gender-bar span:nth-child(3) { flex: 4.2; background: #bcbda9; }
.arena-photos { display: grid; grid-template: 1fr 1fr / 1.05fr 1fr; gap: 6px; background: var(--cream); min-width: 0; }
.arena-photos figure { position: relative; min-height: 0; }
.arena-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arena-main { grid-row: span 2; }
.arena-photos figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 13px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / .72));
  color: #fffdf5;
  font-size: .81rem;
  font-weight: 700;
}

.address { line-height: 1.4; margin-top: 24px; }
.map-frame, .court-examples, .circulation-photo, .video-frame, .site-examples, .phone-pair {
  min-width: 0;
  align-self: center;
  margin: 28px var(--panel) 28px 0;
}
.map-frame img { border-radius: 14px; width: 100%; height: auto; }
:is(.map-frame, .court-examples, .circulation-photo, .video-frame, .site-examples, .phone-pair) figcaption { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.circulation-photo { text-align: center; }
.circulation-photo img {
  width: min(100%, 332px, 34svh);
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
}

.growth .copy h2 { max-width: 12ch; }
.occupation { align-self: center; margin: 30px var(--panel) 30px 0; background: #25231f; border: 1px solid #514b40; padding: clamp(19px, 3.3vw, 38px); border-radius: 16px; }
.occupation h3 { font-size: clamp(1.32rem, 2vw, 2.05rem); line-height: 1; }
.occupation figcaption p { font-size: .86rem; color: var(--muted); margin-top: 7px; }
.bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.bars li { text-align: center; font-size: .84rem; color: var(--muted); }
.bar-track { height: clamp(156px, 24vh, 230px); display: block; position: relative; border-bottom: 1px solid #796b61; margin-bottom: 7px; background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #403931 calc(25% - 1px) 25%); }
.bar-track > span { position: absolute; inset: auto 16% 0; height: var(--value); border-radius: 4px 4px 0 0; background: var(--clay); }
.bars li:last-child .bar-track > span { background: var(--peach); }
.bar-track b { position: absolute; inset: auto auto calc(100% + 4px) 50%; transform: translateX(-50%); color: var(--paper); font-size: .8rem; white-space: nowrap; }

.offers { display: grid; gap: 12px; margin-top: 23px; font-size: .97rem; line-height: 1.42; color: var(--muted); }
.offers li { border-left: 2px solid var(--clay); padding-left: 13px; }
.offers strong { display: block; color: var(--ink); }
.dark .offers strong { color: var(--paper); }
.court-examples > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.court-examples img { width: 100%; height: auto; border-radius: 11px; }

.site-examples > img { width: 100%; height: auto; border-radius: 0 0 12px 12px; }
.browser-label { border: 1px solid #d4d6c4; border-bottom: 0; background: #e6ead5; border-radius: 12px 12px 0 0; padding: 8px 12px; font-size: .75rem; font-weight: 700; }
.browser-label span { color: var(--rust); margin-right: 8px; font-size: .61rem; }
.site-detail { background: #191919; margin-top: 10px; border-radius: 11px; padding: 10px; }
.site-detail img, .video-frame img { width: 100%; height: auto; border-radius: 8px; }
.video-frame img { background: #5a3526; }
.timeline { display: grid; gap: 12px; border-left: 1px solid var(--clay); margin: 24px 0 0 4px; padding-left: 17px; }
.timeline > div { position: relative; }
.timeline > div::before { content: ""; position: absolute; width: 7px; height: 7px; background: var(--clay); border-radius: 50%; left: -21px; top: 7px; }
.timeline dt { font-size: .91rem; font-weight: 700; color: var(--accent); }
.timeline dd { font-size: .94rem; color: var(--muted); margin-top: 2px; }

.single-stat { margin-top: 24px; display: grid; }
.single-stat strong { font-size: clamp(2.5rem, 4vw, 4.4rem); color: var(--accent); line-height: .98; letter-spacing: -.06em; }
.single-stat span { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.phone-pair img { width: 100%; height: auto; border-radius: 11px; border: 1px solid #6a665d; }
.instagram-media img:first-child { margin-top: 19px; }
.booking-media img, .ranking-media img { border-color: var(--line); }
.activation-photo img { object-position: 65% 50%; }

.closing { min-height: clamp(500px, calc(100svh - 176px), 790px); }
.closing .copy { max-width: min(790px, 100%); z-index: 1; }
.closing .copy > img { width: 190px; height: auto; margin-bottom: 34px; }
.closing h2 { font-size: clamp(3rem, 6.4vw, 7rem); }
.closing-graphic { position: absolute; bottom: -8%; right: -15%; max-width: 70%; width: 850px; opacity: .27; pointer-events: none; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 21px; margin-top: 27px; }
.contact-links .text-link { margin-top: 0; }

.deck-nav { position: fixed; inset: auto 0 0; z-index: 3; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--paper); border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; }
.nav-context, .nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-context { flex: 1; min-width: 0; }
.slide-count { font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slide-name { font-size: .85rem; color: var(--quiet); font-weight: 600; }
.progress-track { width: clamp(47px, 11vw, 144px); height: 4px; border-radius: 999px; background: #d6dac4; overflow: hidden; }
.progress-track > span { display: block; width: 0; height: 100%; background: var(--clay); border-radius: inherit; transition: width .2s ease; }
.nav-actions .button-primary { min-width: 119px; }

.index-dialog {
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(520px, calc(100vw - 30px));
  max-height: min(760px, calc(100dvh - 34px));
  padding: 22px;
  overscroll-behavior: contain;
}
.index-dialog::backdrop { background: rgb(15 15 11 / .65); }
.index-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.index-head h2 { font-size: 2rem; letter-spacing: -.05em; }
.index-links h3 { margin: 12px 0 3px; color: var(--rust); font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; }
.index-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 8px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.index-links a span { color: var(--quiet); font-variant-numeric: tabular-nums; font-size: .81rem; }
.index-links a:hover, .index-links a[aria-current="step"] { background: #e6ead5; }
.read-all { border: 0; background: transparent; padding: 0; text-decoration: underline; }

@media (max-width: 950px) {
  .masthead { min-height: 68px; }
  .slide { min-height: clamp(500px, calc(100svh - 162px), 720px); }
  .copy h2 { text-wrap: initial; }
  .cover h1 { font-size: clamp(3.5rem, 7.7vw, 5rem); }
  .audience { gap: 9px; }
}

@media (max-width: 720px) {
  :root { --gutter: 14px; --panel: 22px; --radius: 16px; --dock: calc(67px + env(safe-area-inset-bottom, 0px)); }
  .masthead { grid-template-columns: 1fr auto; min-height: 65px; gap: 10px; }
  .brand img { width: 154px; }
  .masthead-title { display: none; }
  .menu-button { min-height: 42px; padding: 0 12px; font-size: .87rem; }
  .deck { padding-bottom: 12px; }
  .slide { min-height: 0; }
  .cover, .split { grid-template-columns: minmax(0, 1fr); }
  .cover { min-height: calc(100svh - 145px - env(safe-area-inset-bottom, 0px)); grid-template-rows: auto minmax(200px, 1fr); }
  .cover-copy { padding: 23px 22px 25px; }
  .cover-copy::before { display: none; }
  .cover h1 { font-size: clamp(3.55rem, 13vw, 5.9rem); }
  .cover .lead { margin-top: 15px; }
  .cover .button { margin-top: 17px; }
  .copy { padding: 24px var(--panel) 22px; }
  .copy h2 { font-size: clamp(2.45rem, 9.5vw, 4.35rem); letter-spacing: -.055em; }
  .lead { margin-top: 13px; max-width: 42ch; }
  .eyebrow { font-size: .73rem; margin-bottom: 13px; }
  .source { margin-top: 17px; }
  .wellness-board, .city-board { padding: 23px var(--panel); }
  .fact-grid { gap: 17px 12px; }
  .fact-grid dt { font-size: clamp(1.55rem, 7vw, 2.8rem); }
  .bleed-media { height: clamp(220px, 44vw, 310px); }
  .inline-stats, .growth-stats, .audience { margin-top: 18px; }
  .gender { margin-top: 16px; }
  .arena-photos { height: clamp(218px, 55vw, 350px); }
  .map-frame, .court-examples, .circulation-photo, .video-frame, .site-examples, .phone-pair, .occupation { margin: 0 var(--panel) 23px; }
  .circulation-photo img { width: min(100%, 260px); }
  .occupation { padding: 16px 12px; }
  .bars { gap: 5px; margin-top: 13px; }
  .bar-track { height: 122px; }
  .bar-track b { font-size: .7rem; }
  .bars li { font-size: .73rem; }
  .offers, .timeline { margin-top: 15px; }
  .single-stat { margin-top: 15px; }
  .text-link { margin-top: 9px; }
  .closing .copy { padding: 32px var(--panel) 38px; }
  .closing .copy > img { margin-bottom: 24px; }
  .closing .contact-links { margin-top: 18px; }
  .closing-graphic { right: -24%; max-width: 105%; }
  .nav-inner { min-height: 66px; }
  .nav-context { gap: 6px; flex-wrap: wrap; }
  .slide-name { display: none; }
  .nav-actions { gap: 7px; }
  .nav-actions .button-primary { min-width: 103px; padding-inline: 11px; gap: 6px; }
  .nav-actions .button { min-height: 44px; }
  .nav-actions .button-back { width: 44px; }
}

@media (max-width: 360px) {
  :root { --gutter: 10px; --panel: 17px; }
  .cover h1 { font-size: 3.2rem; }
  .copy h2 { font-size: 2.2rem; }
  .progress-track { width: 39px; }
  .audience dt { font-size: 1.42rem; }
  .contact-links .button { padding-inline: 12px; gap: 8px; }
}

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