/* ============================================================================
   CARTÓN MORÓN — Editorial Monolith
   Design system: cream + dark + orange accent, Playfair-led typography,
   asymmetric layouts, kinetic transitions, custom cursor.
============================================================================ */

/* ───────────────────────── Design Tokens ───────────────────────── */
:root {
  /* Color — tinted neutrals, no pure black/white */
  --cream: #faf6ef;
  --cream-deep: #f3ecdd;
  --cream-soft: #f7f1e3;
  --ink: #0d0a06;
  --ink-soft: #1a1410;
  --ink-muted: #3a2f22;
  --kraft: #c4956a;
  --kraft-pale: #e4d4ba;
  --kraft-deep: #8a6540;
  --accent: #c4622a;
  --accent-deep: #a44e1e;
  --border: rgba(13, 10, 6, 0.1);
  --border-strong: rgba(13, 10, 6, 0.2);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  /* Scale — fluid, capped for legibility */
  --fs-label: clamp(0.625rem, 0.55rem + 0.3vw, 0.75rem);
  --fs-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h3: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.8rem + 3vw, 5rem);
  --fs-hero: clamp(3rem, 2rem + 5vw, 6.5rem);
  --fs-display: clamp(4rem, 3rem + 8vw, 10rem);

  /* Space */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 32px;
  --sp-lg: 64px;
  --sp-xl: 120px;
  --sp-2xl: 180px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.24s;
  --dur: 0.5s;
  --dur-slow: 0.9s;

  /* Layout */
  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ───────────────────────── Reset ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { -webkit-user-drag: none; user-select: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--cream); }

/* ───────────────────────── Typography ───────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
h4 { font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem); font-weight: 500; line-height: 1.2; }
p { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--kraft-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--kraft-deep);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--kraft); }
.eyebrow--light::before { background: var(--kraft); }

.lead {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 48ch;
}

/* ───────────────────────── Layout ───────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1720px; }

.section {
  padding: var(--sp-xl) 0;
  position: relative;
}
.section--sm { padding: var(--sp-lg) 0; }
.section--tight { padding: 60px 0 var(--sp-lg); }
.section--dark {
  background: var(--ink);
  color: var(--cream);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark .lead { color: rgba(250,246,239,0.72); }
.section--cream-deep { background: var(--cream-deep); }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.rule--strong { background: var(--border-strong); }
.rule--dark { background: rgba(250,246,239,0.14); }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--ink); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--cream); --btn-border: var(--accent); }
.btn--primary::after { background: var(--ink); }
.btn--primary:hover { color: var(--cream); border-color: var(--ink); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); }

.btn--light {
  --btn-bg: transparent; --btn-fg: var(--cream); --btn-border: rgba(250,246,239,0.4);
}
.btn--light::after { background: var(--cream); }
.btn--light:hover { color: var(--ink); border-color: var(--cream); }

.btn--lg { padding: 22px 40px; font-size: 1rem; }
.btn--sm { padding: 12px 22px; font-size: 0.85rem; }

.btn__arrow {
  width: 14px; height: 14px;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(4px, -4px); }

.btn[data-magnetic] { will-change: transform; }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  background: transparent;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), color 0.45s var(--ease);
}
.site-header.scrolled {
  background: rgba(250,246,239,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.site-header--dark {
  color: var(--cream);
}
.site-header--dark.scrolled {
  background: rgba(13,10,6,0.88);
  color: var(--cream);
  border-bottom-color: rgba(250,246,239,0.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-md);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-logo a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 1;
  position: relative;
}
.site-logo__img {
  height: 80px;
  width: auto;
  display: block;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.site-logo a:hover .site-logo__img { transform: rotate(-3deg) scale(1.04); }
.site-header.scrolled .site-logo__img { height: 56px; }

/* Light logo (cream silhouette) — visible on dark header */
.site-logo__img--light { display: none; }
.site-header--dark:not(.scrolled) .site-logo__img--dark { display: none; }
.site-header--dark:not(.scrolled) .site-logo__img--light { display: block; }

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 38px);
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  color: inherit;
}
.main-nav a::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.main-nav a:hover::before,
.main-nav .current-menu-item > a::before {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions .btn { padding: 12px 22px; font-size: 0.85rem; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: inherit;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; order: 3; }
  .header-actions { display: none; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--cream);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    padding: 120px var(--gutter) 60px;
    z-index: 99;
    overflow-y: auto;
  }
  .main-nav.active { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .main-nav a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -0.02em;
  }
  .main-nav a::before { display: none; }
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  min-height: min(900px, 100svh);
  padding: 140px 0 80px;
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-lg);
  align-items: center;
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero__wrap { grid-template-columns: 1fr; align-items: start; gap: var(--sp-md); }
}

/* Hero entrance — cascading fade-up on load */
.hero > .hero__wrap > div > *,
.hero__visual > * {
  animation: heroIn 0.9s var(--ease) both;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.15s; }
.hero__lead { animation-delay: 0.3s; }
.hero__cta { animation-delay: 0.45s; }
.hero__image { animation-delay: 0.2s; animation-duration: 1.2s; }
.hero__caption { animation-delay: 0.6s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__index, .hero__scroll {
  animation: heroIn 0.9s var(--ease) 1s both;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--kraft);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hero__eyebrow::before {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--kraft);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
  max-width: 13ch;
}
.hero__title em {
  font-style: italic;
  color: var(--kraft);
  font-weight: 400;
}
.hero__title .line { display: block; }

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: rgba(250,246,239,0.72);
  max-width: 52ch;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--kraft-deep);
  width: 100%;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  animation: heroBreathing 16s ease-in-out infinite alternate;
}
.hero__image:hover img { transform: scale(1.04) !important; animation: none; }
@keyframes heroBreathing {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@media (max-width: 900px) {
  .hero__image { aspect-ratio: 3/4; max-height: 60vh; }
}

.hero__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(250,246,239,0.5);
}
.hero__caption span + span { text-align: right; }

.hero__index {
  position: absolute;
  left: var(--gutter);
  bottom: 60px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(250,246,239,0.4);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__index::before {
  content: '';
  width: 1px;
  height: 80px;
  background: rgba(250,246,239,0.2);
}
@media (max-width: 900px) { .hero__index { display: none; } }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(250,246,239,0.5);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__scroll::after {
  content: '';
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(250,246,239,0.3) 0%, rgba(250,246,239,0.3) 100%);
  position: relative;
  overflow: hidden;
}
.hero__scroll::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 56px;
  height: 1px;
  background: var(--accent);
  transform-origin: right;
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(1); transform-origin: right; }
  51%  { transform: scaleX(1); transform-origin: left; }
  100% { transform: scaleX(0); transform-origin: left; }
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ───────────────────────── Marquee ───────────────────────── */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid rgba(250,246,239,0.08);
  border-bottom: 1px solid rgba(250,246,239,0.08);
  padding: 28px 0;
}
.marquee--cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--border);
}
.marquee__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 32s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  font-style: italic;
  line-height: 1;
  will-change: transform;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  padding-right: 80px;
  transition: color 0.4s var(--ease);
}
.marquee__track span:hover { color: var(--accent); }
.marquee__track span::after {
  content: '·';
  font-style: normal;
  color: var(--accent);
  font-size: 1.3em;
  line-height: 0;
  margin-left: 80px;
  display: inline-block;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───────────────────────── Page Header ───────────────────────── */
.page-header {
  padding: 180px 0 100px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.page-header--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: rgba(250,246,239,0.08);
}
.page-header h1 {
  font-size: var(--fs-h1);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-top: 16px;
  max-width: 14ch;
}
.page-header--dark h1 { color: var(--cream); }
.page-header p {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  max-width: 52ch;
  margin-top: 24px;
}
.page-header--dark p { color: rgba(250,246,239,0.7); }

/* ───────────────────────── Section Headers ───────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: end;
  margin-bottom: var(--sp-lg);
}
@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; }
}
.section-head h2 {
  font-size: var(--fs-h2);
  max-width: 12ch;
}
.section-head .lead { margin-top: 0; }

.section-head--center {
  text-align: center;
  grid-template-columns: 1fr;
  justify-items: center;
}
.section-head--center h2 { max-width: 18ch; margin: 12px auto 0; }
.section-head--center .lead { margin: 20px auto 0; max-width: 46ch; }

/* ───────────────────────── Categories (asymmetric editorial grid) ───────────────────────── */
.cm-cats-editorial {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-auto-rows: minmax(240px, auto);
  gap: 24px;
}
.cm-cats-editorial .cm-cat {
  grid-column: span 1;
  grid-row: span 1;
}
.cm-cats-editorial .cm-cat:nth-child(1) { grid-row: span 2; }
.cm-cats-editorial .cm-cat:nth-child(4) { grid-column: 1 / -1; aspect-ratio: unset; min-height: 320px; }

@media (max-width: 900px) {
  .cm-cats-editorial { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cm-cats-editorial .cm-cat:nth-child(1),
  .cm-cats-editorial .cm-cat:nth-child(4) { grid-row: span 1; grid-column: span 2; }
}

.cm-cat {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  min-height: 260px;
}
.cm-cat__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  transform-origin: center;
}
.cm-cat:hover .cm-cat__bg { transform: scale(1.06); filter: brightness(0.85); }
.cm-cat__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,10,6,0.05) 0%, rgba(13,10,6,0.2) 45%, rgba(13,10,6,0.75) 100%);
  z-index: 1;
}
.cm-cat__body {
  position: relative;
  z-index: 2;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  color: var(--cream);
}
.cm-cat__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(250,246,239,0.75);
}
.cm-cat__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--cream);
  margin-top: 4px;
  transform: translateY(24px);
  transition: transform 0.7s var(--ease);
}
.cm-cat:hover .cm-cat__name { transform: translateY(0); }
.cm-cat__line {
  position: absolute;
  left: 32px; right: 32px;
  bottom: 24px;
  height: 1px;
  background: rgba(250,246,239,0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
  z-index: 2;
}
.cm-cat:hover .cm-cat__line { transform: scaleX(1); }
.cm-cat__arrow {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px; height: 44px;
  border: 1px solid rgba(250,246,239,0.4);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  z-index: 2;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cm-cat:hover .cm-cat__arrow {
  background: var(--accent);
  border-color: var(--accent);
}
.cm-cat__arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.cm-cat:hover .cm-cat__arrow svg { transform: translate(2px, -2px); }

/* ───────────────────────── Stats (editorial kinetic counter) ───────────────────────── */
.stats-strip {
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-lg) 0;
  border-top: 1px solid rgba(250,246,239,0.08);
  border-bottom: 1px solid rgba(250,246,239,0.08);
  overflow: hidden;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-big {
  padding: 40px 32px;
  border-left: 1px solid rgba(250,246,239,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-big:first-child { border-left: 0; }
@media (max-width: 900px) {
  .stat-big:nth-child(3) { border-left: 0; }
}
.stat-big__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 3rem + 3vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--kraft);
  font-variant-numeric: tabular-nums;
}
.stat-big__num em {
  font-style: italic;
  color: var(--accent);
}
.stat-big__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(250,246,239,0.5);
}

/* ───────────────────────── Split — image + content ───────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--sp-md); } }

.split__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--kraft-deep);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.split__media:hover img { transform: scale(1.04); }
.split__media-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.split__content h2 {
  font-size: var(--fs-h2);
  max-width: 14ch;
  margin: 12px 0 24px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
  border-top: 1px solid var(--border);
  counter-reset: step;
}
.check-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: baseline;
  font-size: 1.05rem;
}
.check-list li::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* ───────────────────────── Steps ───────────────────────── */
.steps-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) { .steps-editorial { grid-template-columns: 1fr; } }
.step-ed {
  padding: 48px 36px 48px 0;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.step-ed:last-child { border-right: 0; }
@media (max-width: 900px) {
  .step-ed { border-right: 0; border-bottom: 1px solid var(--border); padding: 32px 0; }
  .step-ed:last-child { border-bottom: 0; }
}
.step-ed__num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 4vw, 8rem);
  line-height: 0.8;
  color: var(--kraft);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  font-weight: 400;
  font-style: italic;
}
.step-ed h4 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}
.step-ed p {
  color: var(--ink-muted);
  max-width: 28ch;
  font-size: 0.98rem;
}

/* ───────────────────────── CTA banner ───────────────────────── */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-lg);
  align-items: end;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .cta-banner { grid-template-columns: 1fr; padding: 60px 32px; }
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(196,98,42,0.3), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: var(--fs-h2);
  line-height: 0.96;
  max-width: 14ch;
  color: var(--cream);
}
.cta-banner p {
  color: rgba(250,246,239,0.7);
  max-width: 42ch;
  margin-top: 16px;
}
.cta-banner__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
@media (min-width: 901px) { .cta-banner__actions { align-items: stretch; min-width: 280px; } }

/* ───────────────────────── Forms ───────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  outline: none;
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.5;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(13,10,6,0.25);
  font-style: italic;
}
.form-field:focus-within {
  border-bottom-color: var(--accent);
}

.form__submit { margin-top: 40px; }
.form__submit .btn { width: 100%; justify-content: center; }

.form-success {
  text-align: center;
  padding: 60px 20px;
}
.form-success__mark {
  width: 64px; height: 64px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
}
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--ink-muted); max-width: 42ch; margin: 0 auto; }

/* ───────────────────────── Contact page ───────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: var(--sp-lg);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info {
  position: sticky;
  top: 120px;
  padding: 40px;
  background: var(--cream-deep);
}
.contact-info__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__item .eyebrow { margin-bottom: 8px; }
.contact-info__item p,
.contact-info__item a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.contact-info__item a:hover { color: var(--accent); }

/* ───────────────────────── About ───────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-lg);
  margin-bottom: 80px;
}
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } }
.about-intro h2 {
  font-size: var(--fs-h2);
  line-height: 0.96;
  max-width: 10ch;
}
.about-intro__body {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
}
.about-intro__body p + p { margin-top: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: 48px 36px;
  border-right: 1px solid var(--border);
}
.value-card:last-child { border-right: 0; }
@media (max-width: 900px) {
  .value-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .value-card:last-child { border-bottom: 0; }
}
.value-card__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 20px;
}
.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.value-card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ───────────────────────── Blog ───────────────────────── */
.blog-hero-featured {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  align-items: end;
}
@media (max-width: 900px) { .blog-hero-featured { grid-template-columns: 1fr; } }
.blog-featured-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--kraft-deep);
}
.blog-featured-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.5s var(--ease);
}
.blog-featured-media:hover img { transform: scale(1.04); }
.blog-featured-body h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  max-width: 14ch;
  margin: 20px 0 16px;
  letter-spacing: -0.035em;
}
.blog-featured-body h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.blog-featured-body h2 a:hover { background-size: 100% 1px; }
.blog-featured-body p { color: var(--ink-muted); max-width: 48ch; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
}
.blog-meta__dot { width: 3px; height: 3px; background: currentColor; border-radius: 999px; }

.blog-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) { .blog-grid-3 { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--kraft-pale);
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder {
  width: 100%; height: 100%;
  background: var(--kraft-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--kraft-deep);
}
.post-card__placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.post-card h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.post-card h3 a:hover { background-size: 100% 1px; }
.post-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Single post */
.post-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 0 120px;
}
.post-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.post-title {
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.post-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: none;
}
.post-content h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  line-height: 1.1;
  margin: 60px 0 20px;
  letter-spacing: -0.025em;
}
.post-content h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  margin: 40px 0 16px;
}
.post-content a {
  color: var(--accent);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: opacity 0.3s var(--ease);
}
.post-content a:hover { opacity: 0.7; }
.post-content ul, .post-content ol {
  margin: 24px 0;
  padding-left: 20px;
  list-style: disc;
}
.post-content ul li, .post-content ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.post-content blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-style: italic;
  line-height: 1.3;
  padding: 32px 0 32px 32px;
  margin: 40px 0;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  letter-spacing: -0.015em;
}

.post-cta-block {
  margin: 80px 0 40px;
  padding: 60px 48px;
  background: var(--cream-deep);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-md);
  align-items: center;
}
@media (max-width: 768px) { .post-cta-block { grid-template-columns: 1fr; padding: 40px 28px; } }
.post-cta-block h3 {
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1.1;
}
.post-cta-block p { color: var(--ink-muted); margin: 12px 0 0; }
.post-cta-block__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.back-link:hover { color: var(--accent); transform: translateX(-4px); }

/* ───────────────────────── Pagination ───────────────────────── */
.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 80px;
}
.pagination-nav .page-numbers {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pagination-nav .page-numbers:hover,
.pagination-nav .current {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.pagination-nav .prev, .pagination-nav .next { width: auto; padding: 0 18px; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-xl) 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer .wrap { position: relative; z-index: 2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(250,246,239,0.1);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cream);
}
.footer-brand span { color: var(--accent); font-style: italic; }
.footer-logo {
  display: inline-block;
  margin-bottom: 0;
}
.footer-logo img { height: 96px; width: auto; display: block; }
.footer-desc {
  color: rgba(250,246,239,0.6);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 20px;
  max-width: 36ch;
}
.footer-widget h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(250,246,239,0.5);
  margin-bottom: 24px;
  font-weight: 400;
}
.footer-widget ul { display: flex; flex-direction: column; gap: 12px; }
.footer-widget a {
  font-size: 0.95rem;
  color: rgba(250,246,239,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-widget a:hover { color: var(--kraft); transform: translateX(4px); }

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw + 2rem, 22rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250,246,239,0.15);
  text-align: center;
  white-space: nowrap;
  margin: 60px 0 40px;
  user-select: none;
  pointer-events: none;
}
.footer-wordmark em { font-style: italic; -webkit-text-stroke-color: rgba(196,98,42,0.35); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(250,246,239,0.4);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ───────────────────────── Scroll reveals ───────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  animation: revealFallback 0.01s linear 2s forwards;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* Clip-path reveal — for media blocks */
.js .reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease);
  animation: clipReveal 0.01s linear 2s forwards;
}
.js .reveal-clip.is-visible {
  clip-path: inset(0 0 0 0);
  animation: none;
}
@keyframes clipReveal {
  to { clip-path: inset(0 0 0 0); }
}

/* Split text — each line enters sequentially */
.js .split-text > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .split-text.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.js .split-text.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.js .split-text.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.js .split-text.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.js .split-text.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.js .split-text.is-visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }

/* Scale-up on reveal — for cards */
.js .reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  animation: scaleReveal 0.01s linear 2s forwards;
}
.js .reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: none;
}
@keyframes scaleReveal {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ───────────────────────── Custom Cursor ───────────────────────── */
.cm-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
  opacity: 0;
}
.cm-cursor.is-ready { opacity: 1; }
.cm-cursor.is-view {
  width: 88px; height: 88px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  display: flex; align-items: center; justify-content: center;
}
.cm-cursor.is-view::before { content: 'Ver →'; }
@media (hover: none), (pointer: coarse) {
  .cm-cursor { display: none; }
}

/* ───────────────────────── Utility ───────────────────────── */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }
.mt-4 { margin-top: 64px; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
