/* =========================================================
   STAR MODEL — Editorial Design System
   Manual de marca: Negro #080808, Oro #C9A06E, Off-white #F5F0EA
   ========================================================= */

:root {
  /* Palette — Manual de Marca Oficial */
  --paper:       #F5F0EA;   /* off-white cálido (base) */
  --paper-pure:  #FFFFFF;   /* blanco puro (contraste puntual) */
  --paper-2:     #EDE6DC;   /* off-white oscuro (hover) */
  --paper-3:     #E5DCCC;   /* crema más cálida */
  --ink:         #080808;   /* negro oficial */
  --ink-soft:    #2A2520;   /* negro cálido suave */
  --rule:        #D9CFBE;   /* línea sobre off-white */
  --rule-dark:   rgba(245,240,234,0.12);
  --mute:        #8A8170;

  --gold:        #C9A06E;   /* oro principal */
  --gold-light:  #F0D090;   /* oro claro */
  --gold-dark:   #7A5C28;   /* oro oscuro */
  --gold-tint:   rgba(201,160,110,0.12);

  /* Masthead height — updated per breakpoint below */
  --mast-h: 78px;

  /* Type */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Menlo", monospace;

  /* Motion */
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --pad-x: clamp(18px, 4vw, 40px);
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  html, body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
@media (max-width: 900px) { button { cursor: pointer; } }

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

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background 0.2s;
  background: var(--gold);
  box-shadow:
    0 0 0 2px #FFFFFF,
    0 0 0 3px #080808,
    0 2px 14px rgba(0,0,0,0.35);
}
.cursor.hover {
  width: 56px; height: 56px;
  background: var(--gold);
  box-shadow:
    0 0 0 2px #FFFFFF,
    0 0 0 3px #080808,
    0 6px 28px rgba(0,0,0,0.45);
}
.cursor.drag {
  width: 72px; height: 72px;
  background: var(--gold);
  box-shadow:
    0 0 0 2px #FFFFFF,
    0 0 0 3px #080808,
    0 10px 32px rgba(0,0,0,0.5);
}
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
  color: #080808;
  background: var(--gold);
  padding: 5px 9px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9), 0 4px 14px rgba(0,0,0,0.35);
}
.cursor-label.show { opacity: 1; }

@media (max-width: 900px) {
  .cursor, .cursor-label { display: none; }
}

/* ---------- Intro curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: 1fr;
  pointer-events: none;
}
.curtain-panel {
  background: var(--ink);
  transform-origin: top;
  animation: curtainUp 1.6s var(--ease) 1.8s forwards;
}
@keyframes curtainUp {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
.curtain-mark {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  z-index: 9001;
  pointer-events: none;
  animation: markFade 1.8s var(--ease) forwards;
  padding: 0 var(--pad-x);
}
.curtain-mark .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  opacity: 0;
  animation: markIn 0.6s var(--ease-out) 0.2s forwards;
  color: var(--gold);
}
.curtain-mark .title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(56px, 12vw, 200px);
  color: var(--paper);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: markIn 0.8s var(--ease-out) 0.4s forwards;
  text-align: center;
}
.curtain-mark .title-dot { color: var(--gold); }
.curtain-mark .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  position: absolute;
  bottom: 40px;
  right: var(--pad-x);
  opacity: 0;
  animation: markIn 0.6s var(--ease-out) 0.6s forwards;
}
@keyframes markIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes markFade {
  0%, 65% { opacity: 1; }
  85%, 100% { opacity: 0; transform: translateY(-40px); }
}

/* ---------- Masthead ---------- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px clamp(20px, 4vw, 40px);
  background: rgba(245,240,234,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  gap: 24px;
  transform: translateY(0);
  transition:
    transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    padding 0.4s var(--ease);
  will-change: transform;
}
.masthead.scrolled {
  background: rgba(245,240,234,0.86);
  border-bottom-color: var(--rule);
  padding-top: 6px;
  padding-bottom: 6px;
}
.masthead.hidden {
  transform: translateY(-105%);
}
.masthead .left, .masthead .right {
  display: flex;
  gap: clamp(22px, 2.8vw, 36px);
  align-items: center;
}
.masthead .right { justify-content: flex-end; }
.masthead .logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: height 0.4s var(--ease);
}
.masthead.scrolled .logo { height: 40px; }
.masthead .logo svg { height: 100%; width: auto; display: block; }
.masthead .logo svg path, .masthead .logo svg polygon { fill: currentColor; }
.masthead a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease);
}
.masthead a:hover { opacity: 1; }
.masthead a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.masthead a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.masthead a[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
}
.masthead a[aria-current="page"]::after {
  background: var(--gold);
  transform: scaleX(1);
}
.masthead .lang {
  display: inline-flex;
  gap: 6px;
}
.masthead .lang button {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 0.5;
}
.masthead .lang button.active { opacity: 1; color: var(--gold); }
.masthead .lang .sep { opacity: 0.3; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  justify-self: end;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 99;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--mast-h) + 32px) var(--pad-x) 32px;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); pointer-events: auto; }

/* When menu is open: masthead turns dark to blend with overlay */
body.nav-open .masthead {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-bottom-color: rgba(245,240,234,0.08) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.nav-open .masthead a { color: var(--paper); }
body.nav-open .nav-toggle { border-color: rgba(245,240,234,0.5); }

.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(245,240,234,0.1);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,240,234,0.5);
}
.mobile-nav-head .eyebrow { color: var(--gold); }
.mobile-nav-head .tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--paper);
  white-space: nowrap;
}
.mobile-nav-head .tag .dot { color: var(--gold); }

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding: 32px 0;
}
.mobile-nav > nav > a {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(36px, 10vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  position: relative;
  padding-left: 38px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mobile-nav.open > nav > a { opacity: 1; transform: translateY(0); }
.mobile-nav.open > nav > a:nth-child(1) { transition-delay: 0.10s; }
.mobile-nav.open > nav > a:nth-child(2) { transition-delay: 0.16s; }
.mobile-nav.open > nav > a:nth-child(3) { transition-delay: 0.22s; }
.mobile-nav.open > nav > a:nth-child(4) { transition-delay: 0.28s; }
.mobile-nav.open > nav > a:nth-child(5) { transition-delay: 0.34s; }
.mobile-nav > nav > a:hover,
.mobile-nav > nav > a:active { color: var(--gold); }
.mobile-nav > nav > a::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
}

.mobile-nav-foot {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,240,234,0.1);
}
.mobile-nav-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,234,0.5);
  padding: 6px 0;
}
.mobile-nav-meta .v {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
  opacity: 0.9;
  text-align: right;
  font-style: normal !important;
  line-height: 1.2;
}
.mobile-nav-meta a.v { border-bottom: 1px solid rgba(245,240,234,0.2); padding-bottom: 2px; }
.mobile-nav-meta a.v:hover { color: var(--gold); border-bottom-color: var(--gold); }

.mobile-nav-lang {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(245,240,234,0.08);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,234,0.5);
}
.mobile-nav-lang .lang { display: inline-flex; gap: 6px; }
.mobile-nav-lang .lang button {
  color: var(--paper);
  opacity: 0.5;
  padding: 6px 8px;
  min-width: 44px; min-height: 44px;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.mobile-nav-lang .lang button.active { opacity: 1; color: var(--gold); }
.mobile-nav-lang .lang .sep { opacity: 0.3; align-self: center; }

@media (max-width: 900px) {
  :root { --mast-h: 68px; }
  .masthead { grid-template-columns: auto 1fr auto; padding: 8px 20px; gap: 12px; }
  .masthead .left { display: none; }
  .masthead .right { display: none; }
  .masthead .logo { height: 46px; grid-column: 2; justify-content: flex-start; }
  .nav-toggle { display: grid; }
}
@media (max-width: 600px) {
  :root { --mast-h: 58px; }
  .masthead { padding: 6px 16px; }
  .masthead .logo { height: 40px; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: calc(var(--mast-h) + 24px) var(--pad-x) 40px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle gold accent line */
  content: "";
  position: absolute;
  top: 72px;
  left: var(--pad-x);
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 3.8s forwards;
}
.hero-issue {
  position: absolute;
  top: 100px;
  right: var(--pad-x);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.8;
}
.hero-issue .big {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 36px;
  letter-spacing: -0.02em;
  display: block;
  color: var(--gold-dark);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(64px, 17vw, 300px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-top: auto;
  position: relative;
  padding-left: 0.08em;
  padding-right: 0.08em;
}
.hero-title .row {
  display: block;
  overflow: hidden;
  padding: 0.18em 0 0.3em;
  margin: -0.18em 0 -0.3em;
}
.hero-title .row span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn 1.2s var(--ease-out) forwards;
}
.hero-title .row:nth-child(1) span { animation-delay: 3.4s; }
.hero-title .row:nth-child(2) span { animation-delay: 3.55s; }
.hero-title .italic { font-style: italic; }
.hero-title .amp {
  font-style: italic;
  color: var(--gold);
  font-size: 0.5em;
  vertical-align: 0.4em;
  margin: 0 0.08em;
}
@keyframes riseIn {
  to { transform: translateY(0); }
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 4.2s forwards;
}
.hero-meta .k {
  opacity: 0.55;
  font-size: 9px;
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  opacity: 0.85;
}
.hero-meta .v {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: var(--pad-x);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 4.4s forwards;
}
.hero-scroll .line {
  width: 50px; height: 1px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Section header ---------- */
.section {
  padding: clamp(64px, 10vw, 120px) var(--pad-x);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 60px;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.section-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(40px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.section-title em { font-style: italic; color: var(--gold-dark); }
.section-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
  text-align: right;
  line-height: 1.6;
}

/* ---------- Manifest (editorial statement) ---------- */
.manifest {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.manifest::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.manifest .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 48px;
}
.manifest .quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(36px, 6.5vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: 80px;
}
.manifest .quote em { font-style: normal; color: var(--gold); opacity: 0.9; }
.manifest .body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(201,160,110,0.25);
  max-width: 1200px;
}
.manifest .body p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 55ch;
  color: rgba(245,240,234,0.78);
}
.manifest .body p strong { color: var(--gold-light); font-weight: 500; }
.manifest .body .lead {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: start;
}

/* ---------- Contact sheet / roster ---------- */
.roster {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px 16px;
  row-gap: 80px;
}
.model {
  grid-column: span 3;
  position: relative;
  cursor: none;
}
.model:nth-child(6n+1) { grid-column: span 4; }
.model:nth-child(6n+3) { grid-column: span 3; margin-top: 60px; }
.model:nth-child(6n+5) { grid-column: span 4; }
.model:nth-child(6n+6) { grid-column: span 3; margin-top: 40px; }

.model-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--rule);
}
.model-placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      #E5DCCC 0 2px,
      #D9CFBE 2px 4px
    );
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: transform 0.8s var(--ease);
}
.model-placeholder::before {
  content: attr(data-name);
  position: absolute;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 72px;
  color: var(--gold-dark);
  opacity: 0.22;
  letter-spacing: -0.02em;
}
.model:hover .model-placeholder { transform: scale(1.04); }

.model-index {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 8px;
  z-index: 2;
}
.model-new {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--gold);
  padding: 4px 8px;
  text-transform: uppercase;
  z-index: 2;
}
.model-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  padding-top: 14px;
  gap: 8px;
  border-top: 1px solid var(--ink);
  margin-top: 2px;
  position: relative;
}
.model-caption::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.model:hover .model-caption::before { width: 100%; }
.model-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.model-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.7;
  line-height: 1.6;
}
.model-stats {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 6px;
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.model-stats span::before {
  content: attr(data-k);
  color: var(--gold-dark);
  margin-right: 4px;
  opacity: 0.8;
}

/* ---------- Services (agency/school cards) ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.service {
  background: var(--paper);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  min-height: 520px;
  position: relative;
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width 0.7s var(--ease);
}
.service:hover::before { width: 100%; }
.service:hover { background: var(--paper-2); }
.service.dark { background: var(--ink); color: var(--paper); }
.service.dark:hover { background: #141414; }
.service-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.service.dark .service-num { color: var(--gold); }
.service-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.service-body {
  font-size: 15px;
  line-height: 1.55;
  max-width: 40ch;
  opacity: 0.85;
}
.service-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  border-top: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.service-foot .arrow {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  transition: transform 0.5s var(--ease);
}
.service:hover .arrow { transform: translateX(10px); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  background: var(--paper-2);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marq 40s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track .dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
}
@keyframes marq {
  to { transform: translateX(-50%); }
}

/* ---------- Clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.client {
  aspect-ratio: 1.6 / 1;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
  padding: 20px;
  text-align: center;
}
.client::before {
  content: attr(data-city);
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--gold-dark);
  font-style: normal;
}
.client:hover {
  background: var(--ink);
  color: var(--paper);
}
.client:hover::before { color: var(--gold); opacity: 0.9; }

/* ---------- Editorial columns (news / journal) ---------- */
.journal {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.entry {
  display: block;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  position: relative;
}
.entry::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.entry:hover::before { width: 100%; }
.entry-img {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      90deg,
      #E5DCCC 0 2px,
      #D9CFBE 2px 4px
    );
  margin-bottom: 20px;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  overflow: hidden;
}
.entry-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.5s;
}
.entry:hover .entry-img::after { opacity: 0.14; }
.entry-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.entry-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.entry-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Footer / colophon ---------- */
.colophon {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 120px) var(--pad-x) 40px;
  position: relative;
}
.colophon::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.colophon-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(80px, 22vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  border-bottom: 1px solid rgba(201,160,110,0.2);
  padding-bottom: 40px;
  margin-bottom: 60px;
}
.colophon-mark .dot { color: var(--gold); }
.colophon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(201,160,110,0.2);
}
.colophon-col h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
}
.colophon-col ul { list-style: none; }
.colophon-col li {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.colophon-col li a {
  display: inline-block;
  transition: transform 0.4s var(--ease), color 0.3s;
  position: relative;
}
.colophon-col li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.colophon-col li a:hover { transform: translateX(8px); color: var(--gold-light); }
.colophon-col li a:hover::after { width: 100%; }
.colophon-col p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245,240,234,0.7);
  max-width: 36ch;
}
.colophon-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 32px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
}
.colophon-foot .right { text-align: right; }
.colophon-foot .center { text-align: center; color: var(--gold); opacity: 0.8; }

/* ---------- Utility ---------- */
.rule { border-top: 1px solid var(--rule); }
.rule-ink { border-top: 1px solid var(--ink); }

/* ---------- Valores (manual de marca) ---------- */
.values {
  background: var(--paper-2);
  padding: clamp(64px, 10vw, 120px) var(--pad-x);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  margin-top: 60px;
}
.value {
  background: var(--paper);
  padding: 48px 40px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
  min-height: 320px;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.value::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}
.value:hover::before { width: 100%; }
.value:hover { background: var(--ink); color: var(--paper); }
.value:hover .value-num { color: var(--gold); opacity: 0.9; }
.value-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
  opacity: 0.3;
  transition: color 0.5s, opacity 0.5s;
}
.value h4 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.value p {
  font-size: 14px;
  line-height: 1.55;
  max-width: 38ch;
}

/* ---------- Historia timeline ---------- */
.history {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
}
.history .section-head { border-bottom-color: rgba(201,160,110,0.2); }
.history .section-num { color: var(--gold); }
.history .section-tag { color: var(--paper); opacity: 0.6; }
.history .section-title em { color: var(--gold); }
.history-list {
  border-top: 1px solid rgba(201,160,110,0.2);
}
.hist-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(201,160,110,0.15);
  align-items: baseline;
  transition: padding 0.5s var(--ease), background 0.4s;
  padding-left: 0;
}
.hist-item:hover { padding-left: 24px; background: rgba(201,160,110,0.04); }
.hist-year {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.hist-body h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.6;
  font-weight: 400;
}
.hist-body p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 55ch;
}

/* ========== Responsive breakpoints ========== */
@media (max-width: 1200px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .manifest .body { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; }
  .journal { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .model { grid-column: span 6 !important; margin-top: 0 !important; }
  .model:nth-child(6n+1), .model:nth-child(6n+5) { grid-column: span 6 !important; }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-tag { text-align: left; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .hist-item { grid-template-columns: 160px 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .masthead { padding: 14px var(--pad-x); }
  .hero { padding-top: calc(var(--mast-h) + 16px); min-height: 92vh; }
  .hero-issue { position: static; text-align: left; margin-bottom: 32px; }
  .hero-issue .big { font-size: 28px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-meta .v { font-size: 16px; }
  .hero-scroll { display: none; }
  .journal { grid-template-columns: 1fr; gap: 32px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { aspect-ratio: 2 / 1; }
  .model { grid-column: span 12 !important; }
  .model:nth-child(6n+1), .model:nth-child(6n+5) { grid-column: span 12 !important; }
  .colophon-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .colophon-foot { grid-template-columns: 1fr; gap: 12px; }
  .colophon-foot .right, .colophon-foot .center { text-align: left; }
  .values-grid { grid-template-columns: 1fr; }
  .value { padding: 32px 24px; min-height: auto; }
  .hist-item { grid-template-columns: 1fr; gap: 12px; }
  .hist-item:hover { padding-left: 0; }
  .marquee-track { font-size: 42px; gap: 36px; }
  .marquee-track span { gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .manifest { padding-top: 80px; padding-bottom: 80px; }
  .manifest .eyebrow { margin-bottom: 32px; }
  .manifest .quote { margin-bottom: 48px; }
}

/* Page variants */
body[data-page="models"] .hero { min-height: 70vh; }
body[data-page="models"] .hero-title { font-size: clamp(56px, 15vw, 260px); }

/* Interior pages: faster intro */
body[data-page]:not([data-page="home"]) .hero-title .row span {
  animation-delay: 0.3s !important;
}
body[data-page]:not([data-page="home"]) .hero-title .row:nth-child(2) span {
  animation-delay: 0.45s !important;
}
body[data-page]:not([data-page="home"]) .hero-meta { animation-delay: 0.9s !important; }
body[data-page]:not([data-page="home"]) .hero-scroll { animation-delay: 1.1s !important; }
body[data-page]:not([data-page="home"]) .hero::before { animation-delay: 0.6s !important; }

/* Form styles (casting) */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.01em;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  color: var(--ink);
  outline: none;
  cursor: none;
  transition: border-color 0.3s;
}
@media (max-width: 900px) { .field input, .field textarea, .field select { cursor: auto; font-size: 20px; } }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 0.4; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  border-bottom-width: 2px;
}
.field textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.3s, color 0.3s;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .btn { cursor: pointer; } }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--gold); }
.btn > * { position: relative; z-index: 1; }
.btn .arr {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}

/* Tweaks button */
.tweaks-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  display: none;
}
.tweaks-btn.show { display: block; }

/* ============================================================
   RESPONSIVE FIXES — 2026-04-24
   Breakpoints: 1200 / 900 / 640 / 480
   ============================================================ */

/* Base safety — prevent horizontal overflow ever */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, svg { max-width: 100%; height: auto; }

/* ---------- Tablet (901-1200px) ---------- */
@media (min-width: 901px) and (max-width: 1200px) {
  .model-hero { grid-template-columns: 1fr !important; gap: 40px !important; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .service { min-height: 360px; }
  .colophon-grid { gap: 40px !important; }
}

/* ---------- All mobile <= 900px ---------- */
@media (max-width: 900px) {
  :root { --pad-x: 20px; }
  .hero-title {
    font-size: clamp(40px, 10vw, 84px) !important;
    line-height: 0.95 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .hero-title .row { white-space: normal; overflow: visible !important; }
  .hero-title .row span { white-space: nowrap; }
  .hero-issue .big { font-size: 40px !important; }
  .service { min-height: 360px; padding: 40px 28px; }
  .form { grid-template-columns: 1fr !important; gap: 20px !important; }
}

/* ---------- Mobile <= 640px ---------- */
@media (max-width: 640px) {
  :root { --pad-x: 18px; }

  /* Hero meta — stack single column */
  .hero-meta { grid-template-columns: 1fr !important; gap: 14px !important; margin-top: 24px; padding-top: 24px; }
  .hero-meta .v { font-size: 18px; }
  .hero-meta .k { font-size: 10px; }

  /* Hero body — reduce padding */
  .hero { padding-top: calc(var(--mast-h) + 20px); padding-bottom: 40px; min-height: auto; }

  /* Filters bar (models.html) — compact */
  .filters { padding: 14px var(--pad-x) !important; gap: 10px !important; font-size: 10px !important; }
  .filters .group { gap: 14px !important; }

  /* Model cards */
  .model-index, .model-new { font-size: 9px; padding: 4px 8px; top: 10px; }
  .model-caption { padding: 12px 0; }
  .model-name { font-size: 18px; }

  /* Forms */
  .field input, .field textarea, .field select {
    font-size: 17px !important;
    padding: 14px 12px !important;
    min-height: 48px;
  }
  .field label { font-size: 11px; }

  /* Service cards */
  .service { min-height: auto; padding: 32px 20px; }

  /* Footer */
  .colophon-grid { gap: 28px !important; }
  .colophon-foot { flex-direction: column; gap: 12px; text-align: center; }
  .colophon-foot .center, .colophon-foot .right { text-align: center !important; }

  /* Gallery (model.html) — 2 cols */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 3px !important; }

  /* Model hero meta dl — single col */
  .model-hero .meta dl { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Lightbox controls — bigger tap targets */
  .lightbox { padding: 16px !important; }
  .lightbox .close {
    padding: 14px 20px !important;
    min-width: 44px; min-height: 44px;
    top: 12px !important; right: 12px !important;
    font-size: 11px;
  }
  .lightbox .nav {
    font-size: 36px !important;
    padding: 16px 12px !important;
    min-width: 44px; min-height: 44px;
  }
  .lightbox .prev { left: 4px !important; }
  .lightbox .next { right: 4px !important; }
  .lightbox .counter { bottom: 14px !important; font-size: 10px; }

  /* Masthead — bigger nav-toggle for touch */
  .nav-toggle {
    width: 44px !important; height: 44px !important;
    display: flex !important; align-items: center; justify-content: center;
  }
  .masthead { padding: 8px 16px; }

  /* Curtain intro — compact: stack labels centered below title */
  .curtain-mark .num, .curtain-mark .tag {
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    position: static !important;
    left: auto !important; right: auto !important; bottom: auto !important;
    text-align: center;
    width: 100%;
    margin: 0;
  }
  .curtain-mark {
    grid-template-rows: 1fr auto 1fr !important;
    place-items: center !important;
    gap: 20px !important;
  }
  .curtain-mark .num { align-self: end; }
  .curtain-mark .tag { align-self: start; }
  .curtain-mark .title { font-size: clamp(52px, 16vw, 100px) !important; padding: 0 8px; }

  /* Mobile nav entries — bigger */
  .mobile-nav > nav > a { padding: 16px 0 16px 38px !important; font-size: clamp(36px, 10vw, 56px) !important; min-height: 56px; }

  /* Buttons — min touch target */
  .btn, .btn-primary, .btn-ghost, a[data-cursor] {
    min-height: 44px;
  }

  /* Hero-scroll hint — smaller and tap-friendly */
  .hero-scroll { display: none; }
}

/* ---------- Mobile <= 480px ---------- */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }

  .hero-title { font-size: clamp(48px, 18vw, 80px) !important; line-height: 0.9 !important; }
  .hero-issue { font-size: 9px !important; gap: 6px !important; }
  .hero-issue .big { font-size: 32px !important; }

  /* Filters — scroll horizontally if too many */
  .filters { flex-direction: column; align-items: flex-start !important; }
  .filters .group { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .filters .group::-webkit-scrollbar { display: none; }
  .filters .group button { flex-shrink: 0; }
  .count { font-size: 9px !important; }

  /* Gallery 1 col */
  .gallery-grid { grid-template-columns: 1fr !important; }

  /* Curtain: on very small, keep stacked layout from 640px rule */
  .curtain-mark .title { font-size: clamp(48px, 17vw, 80px) !important; }

  /* Masthead nav links (desktop) — should be hidden anyway */
  .masthead .left, .masthead .right { display: none; }

  /* Section padding */
  .section, .manifest, .acad-manifesto, .acad-program, .areas, .process, .extras, .close {
    padding-left: var(--pad-x) !important;
    padding-right: var(--pad-x) !important;
  }
}

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

