/* SVF — Shared styles
   ---------------------------------------------
   Palette: #FFFFFF #FAFAF7 #111111
   Accents: #E63946 (red) #3A8C5F (green) #F4C430 (yellow)
*/

:root {
  --bg: #ffffff;
  --bg-alt: #fafaf7;
  --ink: #111111;
  --ink-soft: #555555;
  --hair: #e9e8e2;
  --red: #e63946;
  --green: #3a8c5f;
  --yellow: #f4c430;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.display, h1, h2, h3 {
  font-family: "Clash Display", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: "ss01" on;
}

/* — type scale (only 5 sizes) — */
.t-mono     { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.t-body     { font-size: 17px; line-height: 1.6; }
.t-lead     { font-size: 22px; line-height: 1.45; }
.t-h3       { font-size: clamp(28px, 3.2vw, 44px); }
.t-h2       { font-size: clamp(48px, 7vw, 96px); }
.t-h1       { font-size: clamp(64px, 12vw, 168px); }

/* — layout — */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: 120px 0; position: relative; }
.section.tight { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
@media (max-width: 720px) { .section { padding: 72px 0; } .section.tight { padding: 56px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}

.hair { height: 1px; background: var(--hair); width: 100%; }

/* — nav — */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { padding: 12px 32px; border-bottom-color: var(--hair); }
@media (max-width: 720px) { .nav { padding: 14px 20px; } }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--red); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  align-items: center; justify-content: center;
  cursor: pointer;
  background: transparent;
}
.hamburger span {
  display: block; width: 16px; height: 1.5px; background: var(--ink);
  position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: #fff;
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-top .nav-logo { color: #fff; }
.mobile-menu-top .nav-logo .dot { background: var(--yellow); }
.mobile-menu-close {
  width: 36px; height: 36px; border: 1px solid #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent; color: #fff;
}
.mobile-menu-list { display: flex; flex-direction: column; gap: 8px; margin-top: 60px; }
.mobile-menu-list a {
  color: #fff;
  text-decoration: none;
  font-family: "Clash Display", sans-serif;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu-list a .num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: rgba(255,255,255,0.5); }
.mobile-menu-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.mobile-menu-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c92e3b; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); padding: 12px 0; }
.btn-ghost:hover { color: var(--red); }

.btn .play-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block;
}
.btn .arrow { width: 18px; height: 12px; }

/* — sticky book-a-call pill — */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--red);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(230,57,70,0.35);
  transition: transform 0.2s ease;
}
.float-cta:hover { transform: translateY(-2px) scale(1.02); }
.float-cta.show { display: inline-flex; }
.float-cta .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s infinite;
}

/* — footer — */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 100px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 15px; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--yellow); }

.footer .signoff {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 24px;
}
.footer .signoff .red { color: var(--red); }
.footer .signoff em { font-style: italic; font-weight: 500; color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* — placeholder media (dark rectangles for video/photo) — */
.media {
  position: relative;
  background: #111;
  color: #fff;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 14px
    );
  pointer-events: none;
}
.media .play-badge {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease;
}
.media .play-badge svg { width: 22px; height: 22px; margin-left: 3px; }
.media:hover .play-badge { transform: scale(1.08); }
.media .meta {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  z-index: 2;
}
.media .timecode {
  position: absolute;
  top: 14px; right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  z-index: 2;
}
.media.has-poster .play-badge { background: rgba(255,255,255,0.95); color: var(--ink); }
.media.has-poster .play-badge svg { fill: var(--ink); }

/* — reveal animation utilities — */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* — sticker / doodle accents — */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sticker.red { background: var(--red); color: #fff; }
.sticker.green { background: var(--green); color: #fff; }
.sticker.yellow { background: var(--yellow); color: var(--ink); }
.sticker.outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }

/* highlight stroke (yellow underline behind word) */
.hl {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: 0.05em;
  height: 0.32em;
  background: var(--yellow);
  z-index: -1;
  border-radius: 2px;
  transform: skew(-8deg);
}
.hl.red::after { background: var(--red); opacity: 0.18; }
.hl.green::after { background: var(--green); opacity: 0.22; }

.italic-accent { font-style: italic; font-family: "Clash Display", serif; }

/* — custom cursor (desktop only) — */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.22s ease, height 0.22s ease, background 0.22s ease, opacity 0.22s ease;
  mix-blend-mode: difference;
  display: none;
}
.cursor.over-media {
  width: 78px; height: 78px;
  background: var(--red);
  mix-blend-mode: normal;
}
.cursor .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center; height: 100%;
}
.cursor.over-media .lbl { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* — reduced motion — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* — text reveal stagger (used on hero) — */
.split-line { overflow: hidden; display: block; }
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.split-line.in > span { transform: translateY(0); }

/* — page wipe transition — */
.page-wipe {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 999;
  transform: translateY(100%);
  pointer-events: none;
}
.page-wipe.in { animation: wipeIn 0.6s cubic-bezier(0.7,0,0.3,1) forwards; }
@keyframes wipeIn {
  0% { transform: translateY(100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
