/* Prime Web Studio — shared styles
   Editorial / Swiss minimalism
*/

:root {
  --bg:          #FAFAF7;
  --bg-elevated: #FFFFFF;
  --ink:         #0A0A0A;
  --ink-muted:   #6B6B68;
  --ink-subtle:  #B3B3AD;
  --line:        #E8E6DF;
  --accent:      #1A1A1A;
  --accent-fg:   #FAFAF7;
  --burgundy:    #4A0E1F;

  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --container:   1440px;
  --pad:         48px;
  --gutter:      24px;
}

@media (max-width: 1024px) {
  :root { --pad: 32px; }
}
@media (max-width: 768px) {
  :root { --pad: 16px; --gutter: 16px; }
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: auto; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, video { display: block; max-width: 100%; }

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Typography utilities */
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.h-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p { font-size: 17px; line-height: 1.55; color: var(--ink); }
@media (max-width: 768px) { p { font-size: 16px; } }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 400ms var(--ease), border-color 400ms var(--ease), padding 400ms var(--ease);
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  transition: transform 400ms var(--ease), width 400ms var(--ease), height 400ms var(--ease);
}
.site-header.is-scrolled .brand-logo {
  width: 36px;
  height: 36px;
}
.brand:hover .brand-logo { transform: rotate(30deg); }
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 6px;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  transition: opacity 250ms var(--ease);
}
.nav a:hover { opacity: 0.55; }
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}
/* Header CTAs — paired action buttons */
.nav a.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 280ms var(--ease), color 280ms var(--ease), transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.nav a.hbtn:hover { opacity: 1 !important; }

.nav a.hbtn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--ink);
}
.nav a.hbtn-ghost:hover {
  background: var(--ink);
  color: #FAFAF7;
}
.nav a.hbtn-ghost .hbtn-arrow {
  transition: transform 320ms var(--ease);
}
.nav a.hbtn-ghost:hover .hbtn-arrow { transform: translateX(3px); }

.nav a.hbtn-solid {
  background: #0A0A0A;
  color: #FAFAF7;
  border: 1px solid #0A0A0A;
}
.nav a.hbtn-solid .hbtn-text { color: #FAFAF7; }
.nav a.hbtn-solid .hbtn-tg { color: #FAFAF7; transition: transform 320ms var(--ease); }
.nav a.hbtn-solid:hover {
  background: #FAFAF7;
  color: #0A0A0A;
  border-color: #0A0A0A;
}
.nav a.hbtn-solid:hover .hbtn-text { color: #0A0A0A; }
.nav a.hbtn-solid:hover .hbtn-tg { color: #0A0A0A; transform: translate(2px, -2px) rotate(-8deg); }

@media (max-width: 860px) {
  .nav { gap: 8px; }
  .nav a:not(.hbtn) { display: none; }
  .nav a.hbtn { padding: 10px 14px; font-size: 12px; gap: 6px; }
}
@media (max-width: 560px) {
  .site-header { padding: 18px 16px 14px; }
  .brand small { display: none; }
  .brand span { font-size: 13px; }
  .brand-logo { width: 36px; height: 36px; }
  .nav a.hbtn-ghost .hbtn-text { display: none; }
  .nav a.hbtn-ghost { padding: 10px 12px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
  .nav a.hbtn-solid .hbtn-text { display: none; }
  .nav a.hbtn-solid { padding: 10px 12px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: transform 250ms var(--ease), background 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 14px 30px -16px rgba(0,0,0,0.5); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn .arrow {
  display: inline-block;
  transition: transform 300ms var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.split-line {
  display: block;
  overflow: hidden;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease);
  transition-delay: var(--split-delay, 0ms);
  will-change: transform;
}
.is-visible .split-line > span,
[data-split].is-visible .split-line > span {
  transform: translateY(0);
}

/* Sections */
section { position: relative; }
.section { padding: 140px 0; }
@media (max-width: 768px) { .section { padding: 96px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 80px;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
}

/* Rule */
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 120px 0 64px;
  margin-top: 0;
}
.site-footer .container { color: var(--bg); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250,250,247,0.5);
  margin-bottom: 18px;
}
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-list a {
  color: var(--bg);
  font-size: 15px;
  transition: opacity 250ms var(--ease);
}
.footer-list a:hover { opacity: 0.6; }

.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  padding: 96px 0 40px;
  border-top: 1px solid rgba(250,250,247,0.18);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer-logo {
  width: clamp(80px, 11vw, 160px);
  height: auto;
  object-fit: contain;
  filter: invert(1) brightness(2.2);
  opacity: 0.9;
  flex-shrink: 0;
}
.footer-mega-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(250,250,247,0.18);
  gap: 24px;
}
.footer-mega-foot small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(250,250,247,0.5);
  text-transform: uppercase;
}
.footer-meta {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(250,250,247,0.55);
  text-transform: uppercase;
  flex-wrap: wrap;
}

.footer-legal {
  padding: 14px 0 4px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
}
.footer-legal a {
  color: rgba(250,250,247,0.7);
  transition: color 200ms var(--ease);
}
.footer-legal a:hover { color: var(--bg); }
.footer-legal-sep { color: rgba(250,250,247,0.3); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.28);
  font-family: var(--font-body);
  color: var(--ink);
  z-index: 9990;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 350ms var(--ease), opacity 350ms var(--ease);
}
.cookie-banner.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cookie-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.cookie-title { font-size: 11px; letter-spacing: 0.15em; color: var(--ink-muted); }
.cookie-close {
  width: 24px; height: 24px;
  font-size: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
}
.cookie-close:hover { color: var(--ink); border-color: var(--ink); }
.cookie-body { padding: 16px; display: grid; gap: 14px; }
.cookie-body p { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.cookie-body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cookie-body a:hover { opacity: 0.7; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-btn {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.cookie-btn-accept { background: var(--ink); color: var(--bg); }
.cookie-btn-accept:hover { opacity: 0.85; }
.cookie-btn-decline { background: transparent; color: var(--ink); }
.cookie-btn-decline:hover { background: var(--ink); color: var(--bg); }

/* ===== Legal modal ===== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.legal-modal.is-open { opacity: 1; pointer-events: auto; }
.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
}
.legal-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px 36px 28px;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.45);
  transform: translateY(12px);
  transition: transform 300ms var(--ease);
}
.legal-modal.is-open .legal-card { transform: none; }
.legal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.legal-eyebrow { font-size: 11px; letter-spacing: 0.15em; color: var(--ink-muted); text-transform: uppercase; }
.legal-close {
  width: 32px; height: 32px;
  font-size: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
}
.legal-close:hover { color: var(--ink); border-color: var(--ink); }
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.legal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.legal-body strong { color: var(--ink); }
.legal-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-subtle);
  text-transform: uppercase;
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 999px;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #FAFAF7;
  transform: translate(-50%, -50%);
  transition: opacity 200ms var(--ease);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid #FAFAF7;
  transform: translate(-50%, -50%) scale(0.001);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.cursor-ring.is-hover {
  transform: translate(-50%, -50%) scale(1);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Page-level scrollable container hook */
main { display: block; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}
