/* ============================================================
   LAION STUDIO · casos de estudio (página editorial, sin 3D)
   Mismos tokens que la landing: oro único sobre off-black.
   ============================================================ */
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/fonts/archivo.woff2) format('woff2-variations'); }
@font-face { font-family: 'Geist Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist.woff2) format('woff2-variations'); }

:root {
  --canvas: #0a0806; --surface: #15110c; --ink: #f3eadb; --ink-soft: #b9ab94;
  --accent: #e3b45f; --accent-ink: #140f07; --hair: rgba(243, 234, 219, 0.12); --line: rgba(227, 180, 95, 0.32);
  --display: "Archivo Variable", system-ui, sans-serif; --text: "Geist Variable", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 420 1.06rem/1.62 var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, p, ul { margin: 0; }
img { display: block; max-width: 100%; }

body::after { /* grano: un cuarto iluminado, no una pantalla plana */
  content: ""; position: fixed; inset: -50%; pointer-events: none; opacity: 0.045; z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* barra */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(10,8,6,0.92), rgba(10,8,6,0.6) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 640 0.86rem var(--display); font-stretch: 118%; letter-spacing: 0.2em; }
.mark svg, .mark b { color: var(--accent); font-weight: inherit; }
.bar__r { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 0.78rem; letter-spacing: 0.16em; font-weight: 600; text-decoration: none; color: var(--ink-soft); padding: 8px 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 560; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 0 rgba(255,240,210,0.45) inset, 0 10px 30px -12px rgba(227,180,95,0.55);
  transition: transform 140ms var(--ease), background-color 160ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #ecc479; } .lang:hover { color: var(--ink); } }

main { padding: 0 var(--gutter); }

/* hero */
.hero { max-width: 72rem; margin: 0 auto; padding: clamp(48px, 12vh, 140px) 0 clamp(36px, 6vh, 64px); }
.crumb { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb span { opacity: 0.5; margin: 0 0.4em; }
h1 { margin-top: 22px; font: 760 clamp(2.8rem, 8vw, 7rem)/0.92 var(--display); font-stretch: 116%; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin-top: 26px; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.5; text-wrap: pretty; }
.meta { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.meta a { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.dot--live { background: #7fd49a; box-shadow: 0 0 0 4px rgba(127,212,154,0.14); }

/* capturas: marco técnico con esquinas + teléfono superpuesto (profundidad por solape) */
.shots { position: relative; max-width: 80rem; margin: 0 auto; padding: 0 0 clamp(60px, 9vw, 120px); }
.shot--d { position: relative; padding: 14px; }
.shot--d::before, .shot--d::after { content: ""; position: absolute; width: 34px; height: 34px; border: 1px solid var(--accent); pointer-events: none; }
.shot--d::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.shot--d::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.shot--d img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); }
.shot--m { position: absolute; right: clamp(-8px, 2vw, 40px); bottom: clamp(20px, 4vw, 60px); width: clamp(120px, 17vw, 240px); }
.shot--m img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.95), 0 0 0 6px #0f0c08; }

/* texto */
.grid { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 7vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
h2 { font: 560 0.8rem var(--text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.col p { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; text-wrap: pretty; max-width: 34ch; }
.col ul { list-style: none; padding: 0; border-top: 1px solid var(--hair); }
.col li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--hair); position: relative; color: var(--ink); }
.col li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 12px; height: 1px; background: var(--accent); }

.stack { max-width: 72rem; margin: 0 auto; padding-bottom: clamp(56px, 8vw, 110px); }
.stack ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 8px 14px; border: 1px solid var(--hair); border-radius: 10px; font-size: 0.92rem; color: var(--ink-soft); background: rgba(21,17,12,0.6); }

.next { display: block; max-width: 72rem; margin: 0 auto; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); text-decoration: none; }
.next__k { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.next__n { display: block; margin-top: 8px; font: 720 clamp(2rem, 5vw, 4rem)/1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; transition: color 200ms var(--ease); }
.next__n span { display: inline-block; transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .next:hover .next__n { color: var(--accent); } .next:hover .next__n span { transform: translateX(10px); } }

.end { max-width: 72rem; margin: 0 auto; padding: clamp(72px, 12vw, 160px) 0; }
.end h2 { font: 720 clamp(2rem, 4.4vw, 3.6rem)/1.02 var(--display); font-stretch: 112%; letter-spacing: -0.022em; color: var(--ink); text-transform: none; margin: 0; text-wrap: balance; }
.end p { margin-top: 18px; max-width: 44ch; color: var(--ink-soft); font-size: 1.12rem; }
.end__row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.link { color: var(--ink); }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); font-size: 0.86rem; color: var(--ink-soft); }
.foot a { text-decoration: none; color: var(--ink); }

/* revelado fino: una curva, 26px, escalonado 90ms */
.js .r { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .r.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .bar { height: 60px; }
  .mark { font-size: 0.74rem; letter-spacing: 0.16em; }
  .btn--sm { height: 38px; padding: 0 14px; font-size: 0.84rem; }
  .grid { grid-template-columns: 1fr; }
  .shot--d { padding: 8px; }
  .shot--d::before, .shot--d::after { width: 22px; height: 22px; }
  .shot--m { position: relative; right: auto; bottom: auto; width: 46%; margin: -18% 0 0 auto; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .js .r { opacity: 1; transform: none; transition: none; } }
