/* SOU — Web tokens (old money palette, Soho House × Aman direction) */

:root {
  /* Ink — Soho House deep forest with cool undertone */
  --ink:        #0F1612;
  --ink-2:      #161E18;
  --ink-3:      #1F2920;

  /* Paper — ivory cream */
  --paper:      #F1EADB;
  --paper-2:    #E5DBC2;
  --cream:      #D4C5A2;

  /* Text on paper */
  --on-paper-1: #14181A;
  --on-paper-2: #2E3A30;
  --on-paper-3: #5C6358;
  --on-paper-4: #5F5E4D; /* P3-E (2026-05-26): #7A7964 = 3.4:1 (fail) → #5F5E4D = 4.6:1 (AA PASS) */

  /* Text on ink */
  --on-ink-1:   #F1EADB;
  --on-ink-2:   #BDB69A;
  --on-ink-3:   #837C5E;

  /* Oxblood */
  --wine:       #5A1B22;
  --wine-2:     #7A2B30;

  /* Antique brass — used sparingly */
  --brass:      #B0935E;
  --brass-2:    #6B5535; /* V31 P1-3 — WCAG AA fix: 5.4:1 on paper (was #927649 = 3.37:1 fail) */
  --brass-soft: rgba(176, 147, 94, 0.16);

  /* Deep ivy */
  --forest:     #2B4232;

  /* Hairlines */
  --line:       rgba(40, 50, 38, 0.20);
  --line-2:     rgba(40, 50, 38, 0.10);
  --line-ink:   rgba(241, 234, 219, 0.20);
  --line-ink-2: rgba(241, 234, 219, 0.10);

  /* Type families */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', 'Söhne', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: #0A0E0B;
  color: var(--on-ink-1);
  font-feature-settings: 'ss01', 'cv11';
  /* P2.1 — Android Chrome + Samsung Internet pull-to-refresh disable.
     Hero scroll-scrub sequence ve apply form data loss önleme. */
  overscroll-behavior-y: contain;
}

/* P2.1 — Mobile touch feedback (premium hissi).
   Mobile'da :hover yok, parmak basıldığında scale-down ile visual cue. */
a:active, button:active, [role="button"]:active, .chip:active,
.intent-card:active, .next-btn:active, .back-btn:active, .submit:active,
.btn-cream:active, .btn-ghost:active, .nav-cta:active, .menu-link:active,
.share-platform-btn:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

/* Mono label */
/* ───────────────────────────────────────────────────────────────────────
   v3 EXTENSION (Elite Team Sentezi — Brand + CDO + SEO önerileri)
   ─────────────────────────────────────────────────────────────────────── */

:root {
  /* Wordmark üç boyutu (Brand önerisi) */
  --wordmark-cinematic: clamp(96px, 14vw, 220px);
  --wordmark-nav:       32px;
  --wordmark-favicon:   16px;

  /* Grain iki yoğunluk (Brand önerisi) — paper section %3, ink section %6 */
  --grain-light-opacity: 0.03;
  --grain-dark-opacity:  0.06;

  /* Akt tema renkleri (Brand renk matrisi)
     Wine maksimum 4 section: Mektup + Ceremony + Apply + CTA hover
     Brass: nav hover + hairline + altın çizgi + mum mührü
     Forest: House Code + Safety+ paneli */
  --akt-i-bg:   var(--paper);     /* Giriş — paper ivory */
  --akt-ii-bg:  var(--paper-2);   /* Ürün — paper-2 */
  --akt-iii-bg: var(--paper);     /* Deneyim — paper */
  --akt-iv-bg:  var(--ink);       /* Karar — ink dark */
  --akt-v-bg:   var(--paper-2);   /* Destek — paper-2 */

  /* Section padding standardı */
  --section-pad-y:   clamp(80px, 12vh, 140px);
  --section-pad-x:   clamp(24px, 5vw, 48px);
  --section-max-w:   1080px;
  --section-narrow:  720px;
  --section-text-max: 60ch;
}

/* Brand thread — her section'ın üst/alt sınırı için */
.brand-hairline {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--brass) 50%,
    transparent 100%);
  opacity: 0.4;
  border: 0;
  width: 100%;
  margin: 0;
}

/* ────────────────────────────────────────────────
   World-class polish utilities (Awwwards + Aman patterns)
   ──────────────────────────────────────────────── */

/* Brass-tinted selection — küçük detay, üye fark eder */
::selection {
  background: var(--brass-soft, rgba(176,147,94,0.32));
  color: var(--ink);
}

/* OpenType refinement — tabular sayılar + ligatures */
html {
  font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1;
}
.tabular { font-variant-numeric: tabular-nums; }

/* Drop cap — editorial weight (Manifesto/Hakkında ilk paragraf) */
.drop-cap::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 5.4em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.14em 0 0;
  color: var(--wine);
  letter-spacing: -0.02em;
}

/* Underline-reveal hover — Monocle/Hermès standard
   (image-zoom yerine kullanılır, premium discipline) */
.link-reveal {
  background-image: linear-gradient(var(--brass), var(--brass));
  background-position: 0 100%;
  background-size: 0 1px;
  background-repeat: no-repeat;
  transition: background-size 360ms cubic-bezier(.16, .7, .2, 1);
}
.link-reveal:hover, .link-reveal:focus-visible {
  background-size: 100% 1px;
}

/* Magnetic CTA button — brass shimmer sweep (Aman/Loro Piana) */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(176,147,94,0.16) 50%,
    transparent 100%);
  transition: left 700ms cubic-bezier(.16, .7, .2, 1);
  z-index: -1;
}
.btn-shimmer:hover::before { left: 120%; }

/* Cubic-bezier easing — premium yumuşaklık */
:root {
  --ease-paper: cubic-bezier(.16, .7, .2, 1);
  --duration-deliberate: 600ms;
  --duration-considered: 360ms;
}

/* Reduced motion — accessibility şart (WCAG 2.1) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ken-burns, .ken-burns-alt,
  .wordmark-cinematic, .hairline-draw,
  .line-reveal, .breathe, .grain,
  .dust-mote, .btn-rise, .wax-stamp,
  .sig-path, .letter-unfold,
  .seal-break, .seal-crack {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .reveal, .reveal-2, .reveal-3, .reveal-4 {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Focus state — keyboard accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Skip to content link (gizli, focus'la görünür) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--on-ink-1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
}
.skip-to-content:focus {
  left: 1rem;
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.mono-sm {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Serif italic helper */
.serif-it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* Grain (used on dark scenes) */
.grain {
  position: absolute; inset: -8%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.6 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  animation: grainShift 2.4s steps(8) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2%,-1%); }
  40%  { transform: translate(2%,1%); }
  60%  { transform: translate(-1%,2%); }
  80%  { transform: translate(2%,-2%); }
  100% { transform: translate(0,0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 900ms cubic-bezier(.16,.7,.2,1), transform 900ms cubic-bezier(.16,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-2 { transition-delay: 180ms; }
.reveal-3 { transition-delay: 360ms; }
.reveal-4 { transition-delay: 540ms; }

/* Hairline draw */
.hairline-draw { transform: scaleX(0); transform-origin: left; transition: transform 1300ms cubic-bezier(.16,.7,.2,1); }
.hairline-draw.in { transform: scaleX(1); }

/* Buttons */
.btn-cream {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 32px;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 0; cursor: pointer; text-decoration: none;
  transition: background 240ms ease, transform 240ms ease;
}
.btn-cream:hover { background: #fff; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 32px;
  background: transparent; color: var(--on-ink-1);
  border: 1px solid var(--line-ink);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background 240ms ease, border-color 240ms ease;
}
.btn-ghost:hover { background: rgba(241,234,219,0.06); border-color: var(--brass); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(241,234,219,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(241,234,219,0.2); }

/* No tap highlight */
* { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Ambient amber glow */
@keyframes amberPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1.0; }
}
.amber-pulse { animation: amberPulse 6s ease-in-out infinite; }

/* Mobile fix: hero act1 eyebrow → push below floating nav on small screens
   so "EST · MMXXVI · ISTANBUL" doesn't collide with lang-picker + hamburger. */
@media (max-width: 600px) {
  .hero-eyebrow-act1 { top: 78px !important; }
}

/* ────────────────────────────────────────────────
   Sprint 3.1 — Sticky Roman numeral progress sidebar
   Desktop only. Five akts mirror the editorial chapters.
   ──────────────────────────────────────────────── */
.scroll-spine {
  position: fixed;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 10px;
  background: rgba(15,22,18,0.0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 800ms var(--ease-paper, ease);
}
.scroll-spine.ready { opacity: 0.78; }
.scroll-spine .spine-item {
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--on-ink-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  transition: color 280ms ease, transform 280ms ease;
}
.scroll-spine .spine-item .roman {
  display: inline-block;
  min-width: 26px;
  text-align: right;
  font-style: italic;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0;
  color: rgba(176,147,94,0.55);
  transition: color 280ms ease, transform 280ms ease;
}
.scroll-spine .spine-item .label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 280ms ease, transform 280ms ease;
  white-space: nowrap;
}
.scroll-spine .spine-item:hover .label,
.scroll-spine .spine-item.active .label {
  opacity: 1;
  transform: none;
}
.scroll-spine .spine-item.active .roman {
  color: var(--brass);
  transform: scale(1.08);
}
.scroll-spine .spine-item.active {
  color: var(--brass);
}
.scroll-spine .spine-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(176,147,94,0.25);
  margin-left: 28px; align-self: flex-start;
}
/* Paper sections: spine color flips */
body.spine-on-paper .scroll-spine .spine-item { color: var(--on-paper-3); }
body.spine-on-paper .scroll-spine .spine-item .roman { color: rgba(90,27,34,0.5); }
body.spine-on-paper .scroll-spine .spine-item.active .roman { color: var(--wine); }
body.spine-on-paper .scroll-spine .spine-item.active { color: var(--wine); }

@media (max-width: 980px) {
  .scroll-spine { display: none; }
}

/* ────────────────────────────────────────────────
   Sprint 3.5 — View Transitions cross-fade
   Browsers without support gracefully fall through.
   ──────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 360ms;
  animation-timing-function: var(--ease-paper, cubic-bezier(.16,.7,.2,1));
}
::view-transition-old(root) {
  animation-name: vtFadeOut;
}
::view-transition-new(root) {
  animation-name: vtFadeIn;
}
@keyframes vtFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}
@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ────────────────────────────────────────────────
   Sprint 3.6 — Custom cursor (desktop only, fine pointer)
   Two-dot cursor: solid dot + lagging brass ring.
   ──────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) and (min-width: 980px) {
  html.custom-cursor-on, html.custom-cursor-on * { cursor: none !important; }
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 10000;
    border-radius: 50%;
    will-change: transform;
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--paper);
    transform: translate(-50%, -50%);
    transition: transform 80ms ease;
  }
  .cursor-ring {
    width: 32px; height: 32px;
    border: 1px solid var(--brass);
    background: transparent;
    transform: translate(-50%, -50%);
    transition: width 200ms ease, height 200ms ease,
                opacity 200ms ease, border-color 200ms ease,
                transform 80ms ease;
    opacity: 0.7;
  }
  html.custom-cursor-on .cursor-link .cursor-ring,
  html.custom-cursor-on a:hover ~ .cursor-ring,
  html.custom-cursor-on button:hover ~ .cursor-ring,
  html.custom-cursor-on [role="button"]:hover ~ .cursor-ring {
    width: 52px; height: 52px;
    border-color: var(--wine);
    opacity: 0.9;
  }
}
.cursor-dot, .cursor-ring { display: none; }
html.custom-cursor-on .cursor-dot,
html.custom-cursor-on .cursor-ring { display: block; }

/* ────────────────────────────────────────────────
   Sprint 3.7 — Wordmark letter-unfold (one-time intro)
   ──────────────────────────────────────────────── */
@keyframes wordmarkUnfoldLetter {
  0%   { opacity: 0; transform: translateY(40%) rotateX(-90deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.wordmark-unfold {
  display: inline-flex;
  perspective: 800px;
}
.wordmark-unfold > .letter {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 100%;
  animation: wordmarkUnfoldLetter 900ms var(--ease-paper, ease) forwards;
}
.wordmark-unfold > .letter:nth-child(1) { animation-delay: 80ms; }
.wordmark-unfold > .letter:nth-child(2) { animation-delay: 260ms; }
.wordmark-unfold > .letter:nth-child(3) { animation-delay: 440ms; }
.wordmark-unfold > .letter:nth-child(4) { animation-delay: 620ms; }
.wordmark-unfold > .letter:nth-child(5) { animation-delay: 800ms; }

/* Slow drift */
@keyframes slowDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.float { animation: slowDrift 7s ease-in-out infinite; }

/* ────────────────────────────────────────────────
   V31 LUXURY RESTRAINT — Hermès/Aman/Cucinelli discipline
   "Less = more" — Awwwards tricks (cursor, sidebar, letter intro) kaldırıldı.
   Lüks markalarda yok: kullanıcıya silent + respectful UI sunulur.
   ──────────────────────────────────────────────── */
.scroll-spine { display: none !important; }
html.custom-cursor-on, html.custom-cursor-on * { cursor: auto !important; }
.cursor-dot, .cursor-ring { display: none !important; }
.wordmark-unfold > .letter {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* P3-E (2026-05-26): hero height JSX'te 260vh, CSS override KALDIRILDI.
   Eskiden 200vh !important vardı ama scrub matematiği 260vh için tunlanmış —
   200vh'de Act III erken bitiyor, headline mühür tam kırılmadan beliriyor.
   Loro Piana standardına dönmek istersek JSX inline değeri 260→200 yapılır. */
@media (max-width: 760px) {
  /* Sticky header nav linkleri mobile'da gizle (lang-picker zaten var üstte) */
  .sou-sticky-nav { display: none !important; }
}

/* ────────────────────────────────────────────────
   P2.5 (2026-05-25) — Type scale tokens (UI ajan önerisi).
   Inline clamp() dağınıklığı yerine semantic token.
   Mobile-first base, desktop max'da ölçek. Kullanım:
   - hero h1:   --type-display
   - section h2: --type-h1
   - card title: --type-h2
   - lede:      --type-body-lg
   - body:      --type-body
   - meta:      --type-body-sm
   - eyebrow:   --type-mono
   ──────────────────────────────────────────────── */
:root {
  --type-display: clamp(64px, 12vw, 132px);
  --type-h1:      clamp(44px, 8vw, 84px);
  --type-h2:      clamp(22px, 3vw, 32px);
  --type-body-lg: clamp(17px, 2vw, 22px);
  --type-body:    clamp(15.5px, 1.6vw, 18px);
  --type-body-sm: clamp(14px, 1.4vw, 16px);
  --type-mono:    clamp(9.5px, 1vw, 11px);
}

/* ────────────────────────────────────────────────
   P2.5g (2026-05-25) — Footer grid mobile breakpoint.
   Auto-fit minmax(180px) 375px'te tek kolona düşer ama tutarsız.
   600px'te 2-col explicit + 390px'te 1-col garantili.
   ──────────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 390px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
