/* Hyte CrossFit — proposal · base layer (tokens, type, buttons, header, menu, footer, loader, wipe, cursor)
   Concept «Readout»: Hyte as a performance instrument in Gulf light. */
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-latin.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/martian-latin.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap; }

:root {
  --shell: #eef1ee;
  --paper: #f8f8f5;
  --ink: #0b1a20;
  --ink-2: #2f434a;
  --muted: #55676d;
  --aqua: #a6d2d6;
  --aqua-2: #d3e8e8;
  --gulf: #1d5c66;
  --signal: #f05a28;
  --signal-text: #b23c12;
  --sun: #f7c9a2;
  --line: rgba(11, 26, 32, .14);
  --line-light: rgba(238, 241, 238, .18);
  --sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --hdr: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--shell); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-stretch: 100%; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* type */
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; font-weight: 400; line-height: 1.5; }
.display { font-family: var(--sans); font-weight: 760; font-stretch: 118%; line-height: .95; letter-spacing: -.028em; }
.h2 { font-size: clamp(2.1rem, 5vw, 4.6rem); }
.h3 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.kicker { color: var(--signal-text); margin: 0 0 1.1rem; display: block; }
.sec--dark .kicker, .ph--dark .kicker { color: var(--signal); }
.link { display: inline-flex; gap: .5rem; align-items: center; color: var(--signal-text); text-decoration: none; padding: 10px 0; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* lines inside split titles (JS wraps words) */
[data-split] .w { display: inline-block; }

/* buttons */
.btn { --bg: transparent; --fg: var(--ink); --bd: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 48px; padding: 0 1.25rem; border: 1px solid var(--bd); background: var(--bg); color: var(--fg); text-decoration: none;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease); white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--ink)); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn .ico { transition: transform .35s var(--ease); }
@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover { color: var(--fg-h, #fff); border-color: var(--fill, var(--ink)); }
  .btn:hover .ico { transform: translateX(3px); }
}
.btn--signal { --bg: var(--signal); --fg: #fff; --bd: var(--signal); --fill: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: #fff; --bd: var(--ink); --fill: var(--signal); }
.btn--line { --fill: var(--ink); }
.btn--line-light { --fg: #fff; --bd: rgba(255,255,255,.5); --fill: #fff; --fg-h: var(--ink); }
.btn--glass { --bg: rgba(11,26,32,.28); --fg: #fff; --bd: rgba(255,255,255,.55); --fill: #fff; --fg-h: var(--ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost { --fg: var(--ink); --bd: var(--line); }
.btn--lg { min-height: 56px; padding: 0 1.6rem; font-size: .78rem; }
.btn--sm { min-height: 42px; padding: 0 1rem; font-size: .68rem; }

/* frame: thin HUD corners around media */
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none; border: 0 solid var(--ink); }
.frame::before { left: -7px; top: -7px; border-left-width: 1px; border-top-width: 1px; }
.frame::after { right: -7px; bottom: -7px; border-right-width: 1px; border-bottom-width: 1px; }
.frame--dark::before, .frame--dark::after { border-color: var(--aqua); }
.frame img { width: 100%; }

/* header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--ink); transition: background .4s var(--ease), color .4s var(--ease), transform .45s var(--ease); }
.hdr__bar { height: var(--hdr); max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 1.6rem; }
.hdr__logo { display: flex; align-items: center; min-height: 48px; margin-right: auto; }
.hdr__logo img { width: 128px; height: auto; }
.hdr.is-solid { background: rgba(238, 241, 238, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-over { color: #fff; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.nav { display: flex; align-items: center; gap: 1.35rem; font-size: .9rem; font-weight: 520; }
.nav > a, .nav summary { text-decoration: none; padding: 8px 0; cursor: pointer; position: relative; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: "+"; font-family: var(--mono); margin-left: .35rem; font-size: .75em; }
.nav__dd[open] summary::after { content: "–"; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav > a:hover::after, .nav > a[aria-current]::after { transform: scaleX(1); }
.nav__dd { position: relative; }
.nav__drop { position: absolute; top: calc(100% + 14px); left: -18px; width: 280px; padding: 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(11,26,32,.35); }
.nav__drop a { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav__drop a:last-child { border-bottom: 0; }
.nav__drop a:hover, .nav__drop a[aria-current] { background: var(--aqua-2); }
.hdr__status { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.hdr__status i, [data-status] i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
[data-status].is-open i { background: #2fb36d; box-shadow: 0 0 0 4px rgba(47,179,109,.18); }
.burger { display: none; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; background: transparent; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; padding: calc(var(--hdr) + 18px) var(--gut) 32px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav__k { color: var(--aqua); margin: 1.2rem 0 .4rem; }
.mnav__list { list-style: none; border-top: 1px solid var(--line-light); }
.mnav__list a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-stretch: 115%; font-weight: 650; font-size: 1.45rem; border-bottom: 1px solid var(--line-light); }
.mnav__list--sm a { font-size: 1.12rem; min-height: 46px; font-weight: 520; font-stretch: 100%; }
.mnav__ctas { display: grid; gap: 10px; margin: 26px 0 18px; }
.mnav__ctas .btn--line { --fg: #fff; --bd: rgba(255,255,255,.5); }
.mnav__meta { color: var(--aqua); line-height: 2.4; }
.mnav__meta a { text-decoration: none; padding: 10px 0; }
body.menu-open { overflow: hidden; }
body.menu-open .hdr { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }

/* footer */
.ftr { background: var(--ink); color: var(--shell); padding: clamp(56px, 8vw, 110px) 0 28px; overflow: hidden; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--signal); }
.ftr__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.ftr__logo img { width: 190px; }
.ftr__coords { color: var(--aqua); text-align: right; margin: 0; }
.ftr__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; }
.ftr h2 { color: var(--aqua); margin-bottom: 14px; font-weight: 400; }
.ftr ul { list-style: none; }
.ftr li { padding: 5px 0; }
.ftr li a { display: inline-block; padding: 4px 0; }
.ftr__social { display: flex; gap: 18px; flex-wrap: wrap; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.hours th { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding-right: 16px; white-space: nowrap; }
.hours--ftr th, .hours--ftr td { border-color: var(--line-light); font-size: .9rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--signal-text); }
.hours--ftr tr.is-today th, .hours--ftr tr.is-today td { color: var(--signal); }
.ftr__big { margin: 10px 0 18px; font-weight: 800; font-stretch: 125%; line-height: .8; letter-spacing: -.04em; font-size: clamp(5rem, 24vw, 22rem); display: flex; justify-content: space-between; color: transparent; -webkit-text-stroke: 1px rgba(166,210,214,.4); user-select: none; }
.ftr__big span:last-child { color: var(--signal); -webkit-text-stroke: 0; }
.ftr__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--aqua); padding-top: 18px; border-top: 1px solid var(--line-light); }
.ftr__legal a { padding: 8px 0; display: inline-block; }

/* preloader: counter + line, then the panel rises (height) */
.loader, .wipe, .cross { display: none; }
.intro .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 400; background: var(--ink); color: var(--shell); }
.intro .loader.is-done { display: none; }
.loader__in { width: min(520px, 80vw); display: grid; grid-template-columns: 1fr auto; row-gap: 14px; align-items: end; }
.loader__k { color: var(--aqua); }
.loader__n { font-size: 1.1rem; color: var(--signal); }
.loader__line { grid-column: 1 / -1; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
.loader__logo { grid-column: 1 / -1; width: 180px; opacity: 0; }

/* page transition: panel rises from the bottom with a scan line */
.js .wipe { display: block; position: fixed; inset: 0; z-index: 350; background: var(--ink); transform: translateY(100%); pointer-events: none; }
.arriving .wipe { transform: translateY(0); }
.wipe__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); box-shadow: 0 0 24px 2px rgba(240,90,40,.6); }
.wipe__to { position: absolute; left: var(--gut); bottom: 28px; color: var(--aqua); }

/* crosshair cursor (fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .js .cross { display: block; position: fixed; left: 0; top: 0; z-index: 380; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s; }
  .js .cross.is-live { opacity: 1; }
  .cross__h, .cross__v { position: absolute; background: var(--signal); }
  .cross__h { width: 22px; height: 1px; left: -11px; top: 0; }
  .cross__v { width: 1px; height: 22px; left: 0; top: -11px; }
  .cross__xy { position: absolute; left: 14px; top: 10px; font-size: .6rem; color: var(--signal-text); white-space: nowrap; }
  .cross.is-dark .cross__xy { color: var(--signal); }
  .cross.is-hot .cross__h { width: 40px; left: -20px; } .cross.is-hot .cross__v { height: 40px; top: -20px; }
}

@media (max-width: 1180px) {
  .nav, .hdr__status { display: none; }
  .burger { display: block; }
  .hdr__bar { gap: 12px; }
}
@media (max-width: 760px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; }
  .hdr__logo img { width: 112px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .ftr__top { flex-direction: column; align-items: flex-start; }
  .ftr__coords { text-align: left; }
  .mono { font-size: .75rem; }
}
@media (max-width: 420px) {
  .hdr__cta span { font-size: .64rem; }
  .hdr__cta { padding: 0 .8rem; }
  .hdr__cta .ico { display: none; }
  .ftr__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .loader, .js .wipe, .js .cross { display: none !important; }
}
