/* ---------- Colors & fonts (change these to restyle the whole site) ---------- */
:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --text: #f5f5f2;
  --muted: #9a9a94;
  --accent: #ccfc1a;          /* logo lime */
  --line: rgba(245, 245, 242, .12);
  --display: "Bebas Neue", Impact, sans-serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gap: 16px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: .02em; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(4.5rem, 15vw, 11rem); }
h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
em, .script { font-family: var(--script); font-style: italic; text-transform: none; color: var(--accent); letter-spacing: 0; }
.script { font-size: .62em; margin: 0 .06em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.big { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 400; line-height: 1.6; }
.center { text-align: center; justify-content: center; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 500; font-size: .9rem; }
.text-link:hover { text-decoration: underline; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 500; color: var(--accent); margin-bottom: 1.25rem; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
  padding: .95em 1.8em;
  font: 600 .8rem var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-small { padding: .6em 1.2em; font-size: .7rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(to bottom, rgba(10,10,10,.85), rgba(10,10,10,0));
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(10,10,10,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; line-height: 0; }
.logo img { height: 34px; width: auto; }
.hero-logo { margin: 0 0 1.5rem -1%; line-height: 0; }
.hero-logo img { width: min(100%, 820px); height: auto; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.nav nav { display: flex; align-items: center; gap: 2rem; }
.nav nav a:not(.btn) { text-decoration: none; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 600px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 9rem 0 5rem; }
.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 7rem 0 clamp(3.5rem, 9vh, 6rem);
  background: radial-gradient(ellipse at 70% 30%, #2a2e22 0%, #141512 45%, #0a0a0a 80%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -40px;
  background: center / cover no-repeat;
  filter: blur(18px) saturate(1.1) brightness(.6);
  transform: scale(1.05);
  transition: opacity 1s;
}
/* Home page: size to content instead of filling the screen */
.hero-home { min-height: 0; padding: calc(72px + clamp(1.5rem, 4vw, 3rem)) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.75) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,.3) 50%, rgba(10,10,10,.5) 100%);
}
.hero-content { position: relative; width: 100%; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); opacity: .8; max-width: 34ch; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* Featured (latest) video */
.featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.featured.is-short { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.featured-thumb {
  position: relative; padding: 0; border: 0; cursor: pointer; background: #000; overflow: hidden;
  aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  border-radius: 16px; isolation: isolate; /* isolation keeps corners round while the image zooms on hover (Safari) */
}
.featured.is-short .featured-thumb { aspect-ratio: 9 / 16; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.featured-thumb:hover img { transform: scale(1.04); }
.featured-thumb .play { position: absolute; inset: 0; margin: auto; }
.featured-label { font-family: var(--script); font-style: italic; color: var(--accent); font-size: 1.3rem; margin-bottom: .3rem; }
.featured-meta h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: .3em; }
@media (max-width: 480px) { .filters button { padding: .7em 1em; letter-spacing: .14em; } }
@media (max-width: 760px) {
  .featured, .featured.is-short { grid-template-columns: 1fr; }
  .featured.is-short .featured-thumb { width: min(60vw, 240px); }
}

.scroll-cue { position: absolute; right: 40px; bottom: 40px; width: 1px; height: 70px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); }
.stats-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; padding-block: 1.75rem; }
.stat { text-align: center; }
.stat strong { display: block; font: 400 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); letter-spacing: .04em; }
.stat span { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.about { background: var(--bg-raised); border-top: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }
/* Photo collage: Golden Gate tall on the left, camera big top-right, three below */
.about-photos {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, clamp(80px, 11vw, 140px));
  grid-template-areas: "gg cam cam" "gg cam cam" "gg tun ski" "ws tun ski";
}
.about-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: #161616; }
.p-goldengate { grid-area: gg; object-position: 50% 30%; }
.p-camera { grid-area: cam; object-position: 50% 35%; }
.p-tunnel { grid-area: tun; }
.p-ski { grid-area: ski; }
.p-wakesurf { grid-area: ws; }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: .35em 1em; font-size: .75rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }

/* Filter tabs */
.controls { display: flex; flex-wrap: wrap; gap: .75rem; }
.filters { display: flex; border: 1px solid var(--line); }
.filters button {
  background: none; border: 0; cursor: pointer;
  padding: .7em 1.4em; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: background .2s, color .2s;
}
.filters button + button { border-left: 1px solid var(--line); }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--accent); color: #0a0a0a; }

/* ---------- Rows (YouTube-style shelves) ---------- */
:root { --gutter: 16px; }
@media (min-width: 720px) { :root { --gutter: 40px; } }
.shelves { padding-top: clamp(2.5rem, 6vw, 4rem); }
.shelf { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.shelf-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.shelf-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.shelf-actions .text-link { margin-right: .75rem; white-space: nowrap; }
.shelf-arrow {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--line); color: var(--text);
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
  transition: border-color .2s, color .2s, opacity .2s;
}
.shelf-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.shelf-arrow:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .shelf-arrow { display: none; } } /* touch screens just swipe */

/* The track runs edge to edge but its first card lines up with the page content */
.shelf-track {
  --inset: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--inset) .5rem; scroll-padding-inline: var(--inset);
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track .tile { flex: 0 0 auto; scroll-snap-align: start; }
.shelf-track .tile.long { width: clamp(250px, 26vw, 330px); }
.shelf-track .tile.short { width: clamp(150px, 15vw, 200px); }

/* ---------- Video grid ----------
   Shorts take 1 column (9:16). Regular videos span 3 columns (16:9),
   which makes both about the same height on wide screens. */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 2rem var(--gap);
  align-items: start;
}
.tile { text-decoration: none; display: block; min-width: 0; }
.tile.long { grid-column: span 2; }
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile.long { grid-column: span 3; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.thumb { position: relative; overflow: hidden; background: #161616; border-radius: 12px; isolation: isolate; }
.short .thumb { aspect-ratio: 9 / 16; }
.long .thumb { aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.tile:hover .thumb img { transform: scale(1.05); filter: brightness(.75); }
.thumb .play { position: absolute; inset: 0; margin: auto; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }
.tile:hover .thumb .play, .tile:focus-visible .thumb .play { opacity: 1; transform: none; }
.badge {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.75); color: var(--text);
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .25em .55em;
}
.tile-meta { padding-top: .75rem; }
.tile-meta h3 {
  font: 500 .95rem/1.35 var(--sans); text-transform: none; letter-spacing: 0; margin: 0 0 .25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.tile:hover h3 { color: var(--accent); }
.tile-meta p { font-size: .8rem; color: var(--muted); margin: 0; }

.skeleton { aspect-ratio: 9 / 16; background: linear-gradient(100deg, #141414 40%, #202020 50%, #141414 60%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 3rem 0; }
.more { text-align: center; margin: 2.5rem 0 0; }

/* Play button */
.play {
  display: block; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(10,10,10,.35); border: 1px solid rgba(243,237,228,.7);
  backdrop-filter: blur(4px);
}
.play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 16px solid var(--text); border-block: 11px solid transparent; }
.play { position: relative; }

/* ---------- Player pop-up ---------- */
.player {
  width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.player.is-short { width: min(400px, 92vw); }
.player::backdrop { background: rgba(5,4,3,.92); backdrop-filter: blur(6px); }
.player-frame { aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.player.is-short .player-frame { aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; }
.player-meta h3 { font: 500 1.05rem/1.4 var(--sans); text-transform: none; letter-spacing: 0; margin: 0; }
.player-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px;
  background: none; border: 1px solid var(--line); cursor: pointer; font-size: 1rem;
}
.player-close:hover { border-color: var(--text); }

/* ---------- Contact page ---------- */
.page { padding: calc(72px + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 9vw, 7rem); }
.page h1 { font-size: clamp(3.2rem, 9vw, 6rem); }
.nav nav a[aria-current="page"] { color: var(--accent); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-email { margin: 1.25rem 0 0; color: var(--muted); }
.contact-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: 16px; margin-top: 1.75rem; display: block; }
@media (max-width: 860px) { .contact-email { margin: 1.25rem 0 0; color: var(--muted); }
.contact-photo { aspect-ratio: 16 / 10; } }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.contact-list strong { font: 400 1.5rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.contact-list span { color: var(--muted); font-size: .9rem; }

/* ---------- Forms ---------- */
.hidden { display: none; }
.form { display: grid; gap: 1.5rem; }
.contact-form { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .5rem; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--sans); color: var(--text); letter-spacing: 0; text-transform: none;
  background: transparent; border: 0; border-bottom: 1px solid rgba(245,245,242,.25); border-radius: 0;
  padding: .6em 0; width: 100%; transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form ::placeholder { color: #5e5e5a; }
.form select option { background: var(--bg-raised); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form .btn { justify-self: start; margin-top: .5rem; }

/* ---------- Footer ---------- */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer .logo img { height: 28px; }
.socials { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.socials a.email { text-transform: none; letter-spacing: .02em; }
.socials a { text-decoration: none; text-transform: uppercase; }
.socials a:hover { color: var(--accent); }

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