/* nosMedia — light and clean, black and white only.
   Layout follows baztan-race.com: an opening reveal, a full-screen video,
   and a big centered logo that shrinks into the header as you scroll.
   Type echoes the logo: Anton (like "MEDIA") for display, Archivo for text. */

:root {
  --paper: #ffffff;
  --mist: #f3f3f2;       /* quiet section background */
  --ink: #000000;
  --graphite: #5c5c5c;   /* secondary text */
  --rule: #e2e2e0;
  --ghost: #d6d6d4;      /* outlined background words */

  --display: "Anton", "Impact", sans-serif;
  --text: "Archivo", system-ui, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 76px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--text);
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--paper); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.005em; line-height: 0.95; margin: 0 0 0.4em;
}
h1 { font-size: clamp(3rem, 8vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h3 { font: 700 1.2rem/1.25 var(--text); margin: 0 0 0.4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--graphite); max-width: 50ch; }
.muted { color: var(--graphite); }

/* ---------- logo (the lettering as a mask, so it can be any color) ---------- */
.logo-mark {
  display: block; aspect-ratio: 702 / 498;
  background: currentColor;
  -webkit-mask: url(../img/logo.svg) center / contain no-repeat;
          mask: url(../img/logo.svg) center / contain no-repeat;
}

/* ---------- opening reveal (home only, once per visit) ---------- */
.intro { display: none; }
.js .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
  clip-path: inset(0 0 0 0);
  animation: intro-out 0.9s var(--ease) 1.25s forwards;
}
.intro .logo-mark { width: clamp(120px, 18vw, 190px); opacity: 0; transform: scale(.86); animation: intro-in .8s var(--ease) .15s forwards; }
.intro-line { position: absolute; left: 50%; bottom: 18vh; width: 120px; height: 1px; margin-left: -60px; background: var(--rule); overflow: hidden; }
.intro-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: intro-load 1.1s var(--ease) .1s forwards; }
@keyframes intro-in { to { opacity: 1; transform: none; } }
@keyframes intro-load { to { transform: scaleX(1); } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro-done .intro { display: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header);
  color: var(--ink); background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: background .35s, color .35s, border-color .35s;
}
.site-header .wrap { position: relative; height: 100%; display: flex; justify-content: space-between; align-items: center; max-width: none; }
.header-right { display: flex; align-items: center; gap: 14px; }
/* logo sits top-center; on the home page JS eases --logo-w down a little as you scroll */
.header-logo { position: absolute; left: 50%; top: 11px; width: var(--logo-w, 76px); transform: translateX(-50%); color: inherit; }
.header-logo .logo-mark { transition: background-color .35s; }
body.over-hero .site-header { background: transparent; color: var(--paper); border-color: transparent; }
main { padding-top: var(--header); }
.home main { padding-top: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font: 600 0.92rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.over-hero .site-header .pill:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.solid:hover { background: var(--paper); color: var(--ink); }
body.over-hero .site-header .pill.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.menu-lines { width: 16px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.icon-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; }
.icon-link svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .header-right .icon-link, .header-right .pill:not(.solid) { display: none; } .pill { padding: 0 14px; } }
@media (max-width: 420px) { .header-right .pill.solid span { display: none; } }


/* full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--paper); color: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.menu nav { display: grid; align-content: center; gap: 2px; }
.menu nav a { font: 400 clamp(2.8rem, 9vw, 6rem)/1.02 var(--display); text-transform: uppercase; text-decoration: none; width: fit-content; }
.menu nav a:hover, .menu nav a[aria-current="page"] { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--graphite); }
.menu-foot a { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; color: var(--paper); overflow: hidden; background: #2b3a40; }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.08) 40%, rgba(0,0,0,.5)); }
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(150px + 14vh) var(--gutter) 56px;
}
.hero-title { font-size: clamp(2.2rem, 5.2vw, 4.4rem); max-width: 15ch; margin: 0 auto 0.3em; color: var(--paper); }
@media (max-width: 700px) { .hero-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); } } /* phones keep the bigger headline */
.hero-inner p { color: rgba(255,255,255,.88); max-width: 46ch; margin: 0 auto; }
.hero .actions { justify-content: center; }
.hero .pill { height: 48px; padding: 0 22px; }
.hero .pill:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .pill.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .pill.solid:hover { background: transparent; color: var(--paper); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 1px; height: 36px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font: 600 0.98rem/1 var(--text); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.arrow { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: currentColor; }
.arrow::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--paper); border-right: 1.5px solid var(--paper); transform: translateX(-1px) rotate(45deg); }
.btn:hover .arrow::after, .btn-ghost .arrow::after { border-color: var(--paper); }
.btn:hover .arrow { background: var(--ink); }

/* Background videos never show a play button: each one stays invisible over its still
   image until it is actually playing (blocked autoplay, Low Power Mode, slow internet). */
.js video[data-autoplay] { opacity: 0; transition: opacity .6s ease; }
.js video[data-autoplay].is-playing { opacity: 1; }
video[data-autoplay]::-webkit-media-controls,
video[data-autoplay]::-webkit-media-controls-start-playback-button,
video[data-autoplay]::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.service .clip, .slide { background-size: cover; background-position: center; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.section.mist { background: var(--mist); }
.section-head { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.text-link { font-weight: 600; text-underline-offset: 6px; }

/* outlined word drifting behind a section head */
.ghost {
  position: absolute; left: 0; top: clamp(24px, 4vw, 56px); z-index: 0;
  font: 400 clamp(6rem, 19vw, 17rem)/0.85 var(--display); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px var(--ghost);
  white-space: nowrap; pointer-events: none; user-select: none;
  transform: translateX(var(--gx, 0px));
}
.section > .wrap { position: relative; z-index: 1; }

/* statement that fills in word by word as you scroll */
.reveal-text {
  font: 500 clamp(1.7rem, 3.9vw, 3.3rem)/1.14 var(--text); letter-spacing: -0.025em;
  max-width: 22ch; margin: 0 0 clamp(40px, 6vw, 72px);
}
.reveal-text .w { opacity: var(--o, 1); transition: opacity .15s linear; }
.js .reveal-text .w { --o: .14; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); }
.story p { color: var(--graphite); }
.story > div:last-child { padding-top: 4px; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--paper); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.section.mist .service { background: var(--paper); }
.service .clip { aspect-ratio: 4 / 3; position: relative; background: #ccd; }
.service .clip video, .service .clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 24px 24px 28px; }
.service-body p { color: var(--graphite); margin: 0; }
.service-body h3 { font: 400 1.9rem/1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
/* Four services: one row of four on wide screens, 2×2 below that, so none sits alone. */
.services:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.services:has(> :nth-child(4):last-child) .service-body h3 { font-size: 1.6rem; }
@media (max-width: 1200px) { .services:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .services, .services:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } .service .clip { aspect-ratio: 16 / 9; } }

/* how it works: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0 0 0 clamp(28px, 4vw, 56px); position: relative; display: grid; gap: clamp(48px, 7vw, 88px); counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--rule); }
.steps::after { content: ""; position: absolute; left: 0; top: 6px; width: 1px; height: calc((100% - 12px) * var(--fill, 1)); background: var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.steps h3 { font: 400 clamp(2rem, 4.4vw, 3.6rem)/0.95 var(--display); text-transform: uppercase; margin: 0; display: flex; gap: 18px; align-items: baseline; }
.steps h3::before { content: "0" counter(step); font: 600 0.95rem/1 var(--text); letter-spacing: 0; }
.steps p { color: var(--graphite); margin: 6px 0 0; }
@media (max-width: 760px) { .steps li { grid-template-columns: 1fr; gap: 10px; } }

/* O‘ahu slider: tall cards with vertical titles */
.slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
.slider::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 clamp(220px, 24vw, 300px); aspect-ratio: 9 / 15; scroll-snap-align: start;
  position: relative; border-radius: 18px; overflow: hidden; background: #333; color: var(--paper);
}
.slide video, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 55%); }
.slide span {
  position: absolute; z-index: 1; left: 18px; top: 22px;
  writing-mode: vertical-rl; font: 400 clamp(1.8rem, 2.6vw, 2.4rem)/1 var(--display); text-transform: uppercase;
}
.slider-controls { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.slider-bar { flex: 1; height: 2px; background: var(--rule); position: relative; }
.slider-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bar, 25%); background: var(--ink); transition: width .2s; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.round:hover { background: var(--ink); color: var(--paper); }
.round svg { width: 18px; height: 18px; }
.round:disabled { opacity: .3; cursor: default; background: var(--paper); color: var(--ink); }
.stock-note { font-size: 0.85rem; color: var(--graphite); margin: 14px 0 0; }

/* big closing call to action */
.cta { text-align: center; }
.cta h2 { font-size: clamp(3rem, 9vw, 8rem); max-width: 12ch; margin: 0 auto 0.3em; }
.cta p { margin: 0 auto; }
.cta .actions { justify-content: center; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-head h1 { max-width: 14ch; position: relative; }
.page-head .lead { position: relative; }

.frame { position: relative; overflow: hidden; border-radius: 18px; background: var(--mist); aspect-ratio: 16 / 9; }
.frame > video, .frame > iframe, .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.frame.portrait { aspect-ratio: 4 / 5; }
.placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px; color: var(--graphite); }
.placeholder strong { font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--display); text-transform: uppercase; color: var(--ink); }
.play { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; background: var(--ink); display: grid; place-items: center; }
.play::after { content: ""; border-left: 15px solid var(--paper); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

.film-list { display: grid; gap: clamp(56px, 8vw, 104px); }
.film { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: end; }
.film-meta h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.film-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 0.95rem; }
.film-meta dt { color: var(--graphite); }
.film-meta dd { margin: 0; }
@media (max-width: 860px) { .film { grid-template-columns: 1fr; gap: 18px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; width: 100%;
  padding: 14px 16px; border: 1px solid #c9c9c6; border-radius: 12px; background: var(--paper);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form-note { font-size: 0.9rem; color: var(--graphite); margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status.error { text-decoration: underline; }
.contact-side { display: grid; gap: 26px; align-content: start; }
.contact-side a { font-weight: 600; text-underline-offset: 5px; }
.contact-side p { margin: 0 0 4px; }

/* book a call */
.book-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 6vw, 80px); }
.book-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.book-points b { display: block; }
.book-points span { color: var(--graphite); }
.calendar-box { background: var(--mist); border-radius: 18px; min-height: 560px; display: grid; overflow: hidden; }
.calendar-box iframe { width: 100%; min-height: 640px; border: 0; background: var(--paper); }
.calendar-soon { display: grid; place-content: center; text-align: center; gap: 10px; padding: 40px 24px; }
.calendar-soon p { margin: 0 auto; }
.cal-mock { display: grid; grid-template-columns: repeat(7, 34px); gap: 6px; justify-content: center; margin: 0 auto 14px; }
.cal-mock i { height: 34px; border-radius: 8px; background: var(--paper); }
.cal-mock i.on { background: var(--ink); opacity: .1; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } .calendar-box { min-height: 0; } }

/* ---------- footer (the one black block) ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 104px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-top .logo-mark { width: 120px; color: var(--paper); margin-bottom: 20px; }
.site-footer h3 { font-size: 0.95rem; margin-bottom: 14px; color: #9a9a9a; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer p { color: #b5b5b5; }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid #2a2a2a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8a8a8a; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- review funnel ---------- */
.review-page { min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; background: var(--mist); }
.review-card { width: 100%; max-width: 440px; background: var(--paper); border-radius: 24px; padding: 40px 28px; text-align: center; }
.review-card > .logo-mark { width: 92px; margin: 0 auto 26px; }
.review-card h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
.review-card p { margin-left: auto; margin-right: auto; }
.stars { display: flex; justify-content: center; gap: 4px; margin: 24px 0 8px; }
.star { background: none; border: 0; padding: 4px; cursor: pointer; color: #d4d4d2; font-size: 2.7rem; line-height: 1; }
.star.lit { color: var(--ink); }
.star-hint { color: var(--graphite); font-size: 0.9rem; min-height: 1.6em; margin: 0; }
.review-step[hidden] { display: none; }
.review-step .btn { width: 100%; margin-top: 8px; }
.review-step .form { text-align: left; margin: 20px auto 0; }
.review-step .form .btn { justify-self: stretch; }
.small-link { display: inline-block; margin-top: 18px; color: var(--graphite); font-size: 0.9rem; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .js .intro { display: none; }
  .scroll-cue::after { animation: none; }
  .js .reveal-text .w { --o: 1; }
  .menu, .menu.open { transition: none; }
}
