/* ==========================================================================
   3guys media — shared site styles
   ========================================================================== */

:root {
  --bg: oklch(0.96 0.008 85);
  --bg-deep: oklch(0.92 0.012 80);
  --ink: oklch(0.18 0.012 60);
  --ink-soft: oklch(0.35 0.01 60);
  --ink-mute: oklch(0.55 0.008 60);
  --line: oklch(0.82 0.01 70);
  --accent: oklch(0.75 0.2 145);
  --accent-glow: oklch(0.75 0.2 145 / 0.5);
  --accent-deep: oklch(0.48 0.14 140);
  --card: oklch(0.99 0.006 85);
  --black: oklch(0.14 0.008 60);

  --f-display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --f-body: "Bricolage Grotesque", ui-sans-serif, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* selection */
::selection { background: var(--ink); color: var(--bg); }

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ------------------------ TYPE ------------------------ */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.serif-it { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.display-xl {
  font-size: clamp(64px, 11vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.display-lg {
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.display-md {
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.display-sm {
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}

/* ------------------------ LAYOUT ------------------------ */

.wrap {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 0 40px;
}

section { position: relative; }

/* ------------------------ NAV ------------------------ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
  pointer-events: none;
  background: oklch(0.96 0.008 85 / 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid oklch(0.18 0.012 60 / 0.08);
  transition: background 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
}
.nav.on-dark {
  background: oklch(0.18 0.012 60 / 0.4);
  color: var(--bg);
  border-bottom-color: oklch(1 0 0 / 0.08);
}
.nav > * { pointer-events: auto; }
.nav .logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav .logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav-btn { display: none; }
.nav ul {
  display: flex; gap: 36px; list-style: none;
  font-size: 14px; font-weight: 400;
  letter-spacing: -0.01em;
}
.nav ul a { position: relative; padding: 6px 0; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}
.nav ul a:hover::after, .nav ul a.active::after { 
  transform: scaleX(1); transform-origin: left; 
  box-shadow: 0 0 8px var(--accent-glow);
  background: var(--accent);
}
.nav .cta {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.nav .cta .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.65 0.15 145 / 0.6); }
  80%, 100% { box-shadow: 0 0 0 10px oklch(0.65 0.15 145 / 0); }
}

/* ------------------------ CURSOR REMOVED ------------------------ */

/* ------------------------ BUTTONS ------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px 18px 30px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}
.btn .arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease-out-expo);
}
.btn:hover { box-shadow: 0 0 15px var(--accent-glow); border-color: var(--accent); }
.btn:hover .arrow { transform: rotate(-45deg); box-shadow: 0 0 10px var(--accent-glow); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* ------------------------ PLACEHOLDER IMAGERY ------------------------ */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.88 0.01 60) 0 1px,
      transparent 1px 9px),
    oklch(0.82 0.012 65);
  color: var(--ink-soft);
  overflow: hidden;
  display: flex; align-items: flex-end;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg,
      oklch(0.22 0.01 60) 0 1px,
      transparent 1px 9px),
    oklch(0.18 0.01 60);
  color: oklch(0.7 0.01 60);
}
.ph .label {
  padding: 10px 14px;
  background: oklch(0.99 0.006 85 / 0.9);
  color: var(--ink);
  margin: 12px;
  border-radius: 999px;
}
.ph.dark .label { background: oklch(0.14 0.01 60 / 0.9); color: var(--bg); }

/* ------------------------ FOOTER ------------------------ */

.footer {
  background: var(--black);
  color: oklch(0.85 0.008 70);
  padding: 120px 0 40px;
  margin-top: 0;
}
.footer .wrap { max-width: 1480px; }
.footer .big {
  font-family: var(--f-display);
  font-size: clamp(72px, 14vw, 240px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--bg);
}
.footer .big em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-top: 100px;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-top: 48px;
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.6 0.01 70);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer .base {
  display: flex; justify-content: space-between;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  margin-top: 80px; padding-top: 28px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: oklch(0.6 0.01 70);
}

/* ------------------------ REVEAL PRIMITIVES ------------------------ */

.mask-line { overflow: hidden; display: block; }
.mask-line > * { display: block; will-change: transform; }

.fade-up { opacity: 0; transform: translateY(40px); }
.fade-up.in { opacity: 1; transform: translateY(0); transition: all 1.1s var(--ease-out-expo); }

.clip-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-out-expo);
}
.clip-reveal.in { clip-path: inset(0 0 0 0); }

.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------ MARQUEE ------------------------ */

.marquee {
  display: flex; overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 34px 0;
  gap: 80px;
}
.marquee .track {
  display: flex; gap: 80px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
}
.marquee .item {
  font-family: var(--f-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.035em;
  display: flex; align-items: center; gap: 80px;
  flex-shrink: 0;
}
.marquee .item .star {
  width: 28px; height: 28px; color: var(--accent);
}
.marquee .item em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------------------ UTILS ------------------------ */

.divider { height: 1px; background: var(--line); width: 100%; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.noise {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (max-width: 900px) {
  .nav {
    justify-content: space-between;
    padding: 14px 24px;
  }
  .nav .logo { position: relative; z-index: 1001; margin-bottom: 0; }
  
  .nav-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .nav-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: absolute;
    left: 11px;
    transition: all 0.3s ease;
  }
  .nav-btn span:nth-child(1) { top: 16px; }
  .nav-btn span:nth-child(2) { top: 24px; }
  
  .nav-btn.is-active span:nth-child(1) { top: 20px; transform: rotate(45deg); background: var(--bg); }
  .nav-btn.is-active span:nth-child(2) { top: 20px; transform: rotate(-45deg); background: var(--bg); }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--ink);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: circle(0px at calc(100% - 46px) 36px);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .nav-menu.is-open {
    clip-path: circle(150vh at calc(100% - 46px) 36px);
  }
  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
  }
  .nav-menu ul li { width: auto; }
  .nav-menu ul a {
    color: var(--bg);
    font-size: 40px;
    font-family: var(--f-display);
    padding: 10px;
  }
  .nav-menu ul a.active, .nav-menu ul a:hover {
    color: var(--accent);
  }
  .nav-menu ul a::after { display: none; }
  
  .wrap { padding: 0 24px; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mobile-hide { display: none !important; }
}

@media (max-width: 600px) {
  .footer .cols { grid-template-columns: 1fr; }
  .nav .cta { display: none; }
}
