/* ============================================
   SDK — Shared Design System
   $100k Editorial
============================================ */
:root {
  --paper:   #F4EEE0;
  --white:   #FEFCF8;
  --ink:     #19120A;
  --ox:      #8B3A3A;
  --sienna:  #A35C15;
  --stone:   #8C7E6E;
  --linen:   #E1D7C5;
  --char:    #252018;
  --dim:     rgba(25,18,10,0.1);
  --si-dim:  rgba(163,92,21,0.2);
  --f-display: 'Fraunces', serif;
  --f-text:    'Cormorant Garamond', serif;
  --f-ui:      'Inter', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-ui);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; }

/* ---- Grain ---- */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  transition: width 0.25s ease, height 0.25s ease,
              background 0.25s ease, border-color 0.25s ease,
              opacity 0.25s ease;
  will-change: transform;
}
.cursor.hover {
  width: 56px; height: 56px;
  background: rgba(25,18,10,0.06);
  border-color: var(--sienna);
}
.cursor.press { width: 22px; height: 22px; background: var(--sienna); border-color: var(--sienna); }
@media (pointer: coarse) { .cursor { display: none; } body, a, button { cursor: auto; } }

/* ---- Page Curtain ---- */
.page-curtain {
  position: fixed; inset: 0;
  background: var(--char); z-index: 5000;
  transform-origin: top;
  animation: curtain-out 0.7s cubic-bezier(0.76,0,0.24,1) 0.1s forwards;
}
@keyframes curtain-out { to { transform: scaleY(0); } }

/* ---- Scroll Reveals ---- */
[data-reveal] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].on { clip-path: inset(0 0 0% 0); }
[data-reveal-fade] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal-fade].on { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 0.08s; }
[data-d="2"] { transition-delay: 0.16s; }
[data-d="3"] { transition-delay: 0.24s; }
[data-d="4"] { transition-delay: 0.32s; }
[data-d="5"] { transition-delay: 0.40s; }
[data-d="6"] { transition-delay: 0.48s; }

/* ---- NAV ---- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#site-nav.solid {
  background: rgba(239,232,212,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--dim);
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 17px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--ink);
}
.nav-logo span { font-style: italic; }
.nav-menu { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-menu a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); transition: color 0.2s;
  position: relative;
}
.nav-menu a.active, .nav-menu a:hover { color: var(--sienna); }
.nav-menu .nav-cta {
  border: 1px solid var(--ink); padding: 6px 18px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-menu .nav-cta:hover {
  background: var(--ink); color: var(--paper);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }
#mm {
  display: none; position: fixed; inset: 0;
  background: var(--paper); z-index: 600;
  flex-direction: column; align-items: center; justify-content: center; gap: 48px;
}
#mm.open { display: flex; }
#mm a {
  font-family: var(--f-display); font-size: 44px; font-weight: 400;
  color: var(--ink); transition: color 0.2s;
}
#mm a:hover { color: var(--sienna); font-style: italic; }
.mm-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; font-size: 28px;
  color: var(--stone); font-weight: 300; font-family: var(--f-ui);
}

/* ---- MARQUEE ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--dim); border-bottom: 1px solid var(--dim); padding: 14px 0; }
.marquee-track {
  display: flex; gap: 0;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes scroll-left { to { transform: translateX(-50%); } }
.marquee-item {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--stone);
  padding: 0 40px; border-right: 1px solid var(--dim);
  white-space: nowrap;
}
.marquee-item.accent { color: var(--sienna); }

/* ---- FOOTER ---- */
#site-footer {
  background: var(--char);
  border-top: 2px solid rgba(163,92,21,0.35);
  padding: 64px 52px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 48px; align-items: start; margin-bottom: 48px;
}
.footer-brand .f-name {
  font-family: var(--f-display); font-size: 20px; font-weight: 400;
  color: rgba(239,232,212,0.9); margin-bottom: 6px;
}
.footer-brand .f-name em { font-style: italic; }
.footer-brand .f-desc {
  font-size: 12px; color: rgba(239,232,212,0.3);
  line-height: 1.7; max-width: 210px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.footer-links a {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(239,232,212,0.3); transition: color 0.2s;
}
.footer-links a:hover { color: var(--sienna); }
.footer-right { text-align: right; }
.footer-socials { display: flex; gap: 16px; justify-content: flex-end; margin-bottom: 14px; }
.footer-socials a { color: rgba(239,232,212,0.25); transition: color 0.2s; }
.footer-socials a:hover { color: var(--sienna); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-copy { font-size: 10px; color: rgba(239,232,212,0.18); letter-spacing: 0.06em; }
.footer-bottom {
  border-top: 1px solid rgba(239,232,212,0.07);
  padding-top: 24px; text-align: center;
  font-size: 10px; color: rgba(239,232,212,0.12);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---- TYPOGRAPHY ---- */
.label-sm {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone);
}
.rule-gold { width: 48px; height: 1.5px; background: var(--sienna); }
.rule-dim  { width: 100%; height: 1px; background: var(--dim); }

/* ---- FORMS ---- */
.sdk-form { display: flex; flex-direction: column; gap: 28px; }
.sdk-field { display: flex; flex-direction: column; gap: 6px; }
.sdk-field label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.sdk-field input, .sdk-field select, .sdk-field textarea {
  font-family: var(--f-ui); font-size: 15px; color: var(--ink);
  background: transparent; border: none;
  border-bottom: 1px solid rgba(25,18,10,0.18);
  padding: 10px 0; outline: none; width: 100%;
  transition: border-color 0.2s; appearance: none;
}
.sdk-field input:focus, .sdk-field select:focus, .sdk-field textarea:focus { border-bottom-color: var(--sienna); }
.sdk-field textarea { resize: vertical; min-height: 100px; }
.sdk-btn {
  font-family: var(--f-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 36px; background: #1C2B3A; color: var(--paper);
  border: none; align-self: flex-start; transition: background 0.2s;
}
.sdk-btn:hover { background: var(--char); }

/* ---- SOCIAL ICONS INLINE ---- */
.si { display: flex; align-items: center; gap: 8px; }
.si svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- RESPONSIVE NAV ---- */
@media (max-width: 768px) {
  #site-nav { padding: 0 24px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  #site-footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand .f-desc { max-width: none; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer-right { text-align: center; }
  .footer-socials { justify-content: center; }
}

/* ---- VIDEO PLAYER ---- */
.video-wrap {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden; background: var(--char);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* =============================================
   MICRO INTERACTIONS & PREMIUM ELEMENTS
============================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--sienna); z-index: 9998;
  width: 0%; transition: width 0.05s linear;
}

/* Magnetic button base */
.mag-btn {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  overflow: hidden; transition: transform 0.3s ease;
}
.mag-btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.76,0,0.24,1);
}
.mag-btn:hover::before { transform: translateY(0); }

/* Underline-sweep links */
.sweep-link {
  position: relative; display: inline-block;
}
.sweep-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
}
.sweep-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Floating label form fields */
.float-field { position: relative; padding-top: 20px; }
.float-field input, .float-field textarea, .float-field select {
  padding-top: 4px;
}
.float-field label {
  position: absolute; top: 20px; left: 0;
  font-size: 14px; color: var(--stone);
  transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease;
  pointer-events: none; letter-spacing: normal; text-transform: none;
}
.float-field.active label,
.float-field input:focus ~ label,
.float-field textarea:focus ~ label,
.float-field input:not(:placeholder-shown) ~ label,
.float-field textarea:not(:placeholder-shown) ~ label {
  top: 0; font-size: 9px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sienna);
}
.float-field input, .float-field textarea {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(25,18,10,0.18);
  padding: 10px 0 10px; outline: none; width: 100%;
  font-size: 15px; color: var(--ink);
  transition: border-color 0.25s;
  font-family: var(--f-ui);
}
.float-field input:focus, .float-field textarea:focus { border-bottom-color: var(--sienna); }
.float-field input::placeholder, .float-field textarea::placeholder { color: transparent; }

/* Card hover lift */
.lift {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(25,18,10,0.12);
}

/* Stagger list items */
.stagger-list li { opacity: 0; transform: translateX(-16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger-list.on li { opacity: 1; transform: none; }
.stagger-list.on li:nth-child(1) { transition-delay: 0.05s; }
.stagger-list.on li:nth-child(2) { transition-delay: 0.1s; }
.stagger-list.on li:nth-child(3) { transition-delay: 0.15s; }
.stagger-list.on li:nth-child(4) { transition-delay: 0.2s; }
.stagger-list.on li:nth-child(5) { transition-delay: 0.25s; }
.stagger-list.on li:nth-child(6) { transition-delay: 0.3s; }
.stagger-list.on li:nth-child(7) { transition-delay: 0.35s; }
.stagger-list.on li:nth-child(8) { transition-delay: 0.4s; }

/* Page exit transition */
.page-exit {
  position: fixed; inset: 0;
  background: var(--char); z-index: 4999;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.76,0,0.24,1);
}
.page-exit.out { transform: scaleY(1); }

/* Rotating badge */
.rotating-badge {
  width: 90px; height: 90px; position: relative;
  flex-shrink: 0;
}
.rotating-badge svg {
  animation: spin 12s linear infinite;
  width: 100%; height: 100%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rotating-badge .badge-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--f-display); font-size: 10px;
  font-weight: 700; color: var(--sienna);
}

/* Accordion */
.accordion-item { border-bottom: 1px solid var(--dim); }
.accordion-trigger {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; text-align: left;
  font-family: var(--f-display); font-size: 20px; font-weight: 400;
  color: var(--ink); transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--sienna); }
.accordion-icon {
  font-size: 24px; color: var(--stone);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); color: var(--sienna); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), padding 0.35s ease;
  padding-bottom: 0;
}
.accordion-body.open { max-height: 400px; padding-bottom: 24px; }
.accordion-body p {
  font-family: var(--f-text); font-size: 17px;
  color: rgba(25,18,10,0.7); line-height: 1.75;
}

/* Horizontal tab slider */
.tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--dim); margin-bottom: 40px; }
.tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 12px 24px; margin-bottom: -1px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--stone);
  transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
.tab-btn.active { color: var(--sienna); border-bottom-color: var(--sienna); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Number ticker */
.stat-num {
  font-family: var(--f-display); font-size: clamp(48px,6vw,80px);
  font-weight: 400; color: var(--ink); line-height: 1;
}
.stat-label { font-size: 12px; color: var(--stone); letter-spacing: 0.08em; margin-top: 6px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  [data-reveal], [data-reveal-fade] { transition: none !important; }
  .page-curtain { animation: none; transform: scaleY(0); }
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--ox); color: var(--paper);
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  z-index: 10001; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Hero scroll cue */
.hero-scroll-cue {
  position: absolute; bottom: 36px; left: 56px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; z-index: 3;
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--sienna), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
  display: block;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* Speaking CTA section */
#speaking-cta {
  background: var(--ink);
  padding: 100px 52px;
}
.sct-inner { max-width: 680px; }
.sct-label { color: rgba(163,92,21,0.7); margin-bottom: 20px; display: block; }
.sct-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
  color: rgba(239,232,212,0.9); margin-bottom: 20px;
}
.sct-title em { font-style: italic; color: rgba(163,92,21,0.85); }
.sct-text {
  font-family: var(--f-text); font-size: 18px; line-height: 1.7;
  color: rgba(239,232,212,0.45); margin-bottom: 40px;
  max-width: 560px;
}
.sct-actions { display: flex; gap: 36px; flex-wrap: wrap; }
.sct-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(239,232,212,0.5);
  border-bottom: 1px solid rgba(239,232,212,0.15); padding-bottom: 4px;
  transition: gap 0.3s, color 0.25s, border-color 0.25s;
}
.sct-link:hover { gap: 20px; color: rgba(239,232,212,0.9); border-color: rgba(239,232,212,0.4); }
.sct-link-primary {
  color: var(--sienna); border-color: rgba(163,92,21,0.4);
}
.sct-link-primary:hover { color: rgba(163,92,21,1); border-color: var(--sienna); }
@media (max-width: 768px) {
  #speaking-cta { padding: 72px 24px; }
}
