/* =========================================================
   Jeremi Martin — portfolio
   Idea: una sala de proyección a oscuras; cada proyecto se
   enciende como una pantalla.
   ========================================================= */

@view-transition { navigation: auto; }

:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --bg-3: #1d1a17;
  --line: #2b2723;
  --ink: #eee9e1;
  --ink-2: #aaa39a;
  --ink-3: #8a837a;
  --accent: #d4ff3a;
  --accent-ink: #0c0b0a;
  --accent-text: #d4ff3a;
  --pending: #ffcf4a;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Geist", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  --pad: clamp(16px, 4.5vw, 72px);
  --max: 1440px;
  --radius: 18px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #efebe4;
  --bg-2: #e6e1d8;
  --bg-3: #dcd6cb;
  --line: #cbc4b8;
  --ink: #15130f;
  --ink-2: #4f4a43;
  --ink-3: #6e685f;
  --accent: #d4ff3a;
  --accent-ink: #15130f;
  --accent-text: #4a6400;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(16px, 0.35vw + 15px, 18px) / 1.6 var(--f-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.serif { font-family: var(--f-display); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Marcas para datos que faltan: que nunca se publiquen sin verse */
.pending { color: var(--pending); background: color-mix(in srgb, var(--pending) 12%, transparent); padding: 0 .3em; border-radius: 4px; font-family: var(--f-mono); font-size: .8em; }
.demo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--pending); border: 1px solid color-mix(in srgb, var(--pending) 45%, transparent);
  padding: 4px 7px; border-radius: 99px;
}

/* Grano sobre todo: textura de proyector */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { opacity: .08; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 80;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------------- Preloader ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
}
.loader-name { font-family: var(--f-display); font-size: clamp(48px, 10vw, 160px); line-height: 1; letter-spacing: -.02em; overflow: hidden; display: flex; }
.loader-name span { display: inline-block; transform: translateY(110%); }
.loader-name .sp { width: .28em; }
.loader-count { position: absolute; right: var(--pad); bottom: var(--pad); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.loader-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) - 14px); height: 1px; background: var(--line); }
.loader-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.no-loader .loader { display: none; }

/* ---------------- Cabecera ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 70;
  transition: transform .5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
}
.site-header.is-solid .bar { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; min-height: 44px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font: 400 17px/1 var(--f-display); font-style: italic;
  transition: transform .6s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(-360deg); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; color: var(--ink-2); font-size: 15px;
  transition: color .25s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); transition: color .25s, background-color .25s;
}
.theme-toggle:hover { color: var(--ink); background: var(--bg-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .menu-btn { display: grid; width: 44px; height: 44px; place-items: center; }
  .menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out); }
  .menu-btn span + span { margin-top: 6px; }
  .menu-btn .lines { display: grid; }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav .btn { display: none; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 65; background: var(--bg);
  display: grid; align-content: center; gap: 8px; padding: var(--pad);
  clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .8s var(--ease-out), visibility 0s; }
.mobile-menu a { font: 400 clamp(44px, 13vw, 72px)/1.05 var(--f-display); }
.mobile-menu a:nth-child(even) { font-style: italic; color: var(--ink-2); }
.mobile-menu .mono { margin-top: 32px; color: var(--ink-3); }

/* ---------------- Botones ---------------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 99px; overflow: hidden; isolation: isolate;
  background: var(--b-bg); color: var(--b-fg); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease-out), color .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--accent-ink); }
.btn:active { transform: scale(.97); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.magnetic { will-change: transform; }

/* ---------------- Cursor ---------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
}
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--ink); }
.cursor-ring {
  position: absolute; width: 40px; height: 40px; margin: -20px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor-ring span { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .25s; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px; border-color: var(--accent); }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor-ring span { opacity: 1; }
.cursor.is-label .cursor-dot, .cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding: 120px var(--pad) 28px; overflow: hidden; isolation: isolate;
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-gl-fallback {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 70% 35%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, #2b2117, transparent 70%), var(--bg);
}
:root[data-theme="light"] .hero-gl-fallback { background: radial-gradient(60% 50% at 70% 35%, #f6ffd4, transparent 70%), var(--bg); }

/* Foto: se funde con el fondo por la izquierda y por abajo */
.hero-photo {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(56vw, 980px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 26%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 26%);
  mask-composite: intersect;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%;
  transform-origin: 60% 30%; will-change: transform;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 75% 30%, transparent 40%, color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}

.hero-main { align-self: center; display: grid; gap: clamp(16px, 2.2vw, 28px); width: min(100%, var(--max)); margin-inline: auto; justify-items: start; }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 2.4s var(--ease-soft) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.hero-title {
  font-family: var(--f-sans); font-weight: 600; letter-spacing: -.055em; line-height: .86;
  font-size: clamp(64px, 13.5vw, 230px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-family: var(--f-display); font-weight: 400; letter-spacing: -.03em; padding-right: .04em; }
.hero-title .dot { color: var(--accent-text); }
.hero-role { font-size: clamp(22px, 2.4vw, 38px); letter-spacing: -.03em; line-height: 1.1; font-weight: 500; }
.rotator { display: inline-grid; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.rot-word { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--accent-text); letter-spacing: -.01em; display: inline-block; }
.hero-sub { max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--ink-2); }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px 32px; align-items: end;
  width: min(100%, var(--max)); margin: 48px auto 0; border-top: 1px solid var(--line); padding-top: 18px;
}
.hero-facts dt { color: var(--ink-3); margin-bottom: 6px; }
.hero-facts dd { margin: 0; font-size: 15px; color: var(--ink); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }
.scroll-cue i { width: 1px; height: 28px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 860px) {
  .hero { padding-top: 0; grid-template-rows: auto 1fr auto; }
  .hero-photo {
    position: relative; inset: auto; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); height: 58svh;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 40%); mask-image: linear-gradient(to top, transparent 0%, #000 40%);
  }
  .hero-photo img { object-position: 64% 22%; }
  .hero-main { margin-top: -12svh; align-self: end; }
  .hero-facts { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .hero-facts > div:nth-child(2), .scroll-cue-wrap { display: none; }
}

/* ---------------- Encabezados de sección ---------------- */
.section { padding-block: clamp(96px, 14vw, 200px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.sec-kicker { color: var(--ink-3); display: flex; gap: 14px; align-items: center; }
.sec-kicker b { color: var(--accent-text); font-weight: 500; }
.sec-title { font-size: clamp(44px, 7vw, 112px); line-height: .92; letter-spacing: -.045em; font-weight: 600; }
.sec-title em { font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em; }
.sec-lead { color: var(--ink-2); max-width: 44ch; font-size: clamp(17px, 1.2vw, 20px); }
@media (min-width: 900px) { .sec-lead { justify-self: end; } }

/* ---------------- Trabajo (anillo 3D interactivo) ---------------- */
.featured { position: relative; height: 100svh; min-height: 640px; overflow: hidden; border-top: 1px solid var(--line); }
.ring-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none; }
.ring-canvas.is-dragging { cursor: grabbing; }
.ring-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.featured::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 26%, transparent 50%);
}
@media (min-width: 900px) {
  .featured::after { background: linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 28%, transparent 50%); }
}
.featured-head { position: absolute; z-index: 1; top: clamp(88px, 12vh, 120px); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 16px; pointer-events: none; }
.featured-hint { color: var(--ink-3); }
.featured-info {
  position: absolute; z-index: 1; left: var(--pad); bottom: clamp(28px, 7vh, 72px); right: var(--pad);
  display: grid; gap: 14px; pointer-events: none;
}
@media (min-width: 900px) { .featured-info { right: auto; width: min(560px, 42vw); } }
.featured-count { color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: center; }
.featured-count b { color: var(--ink); font-weight: 500; }
.featured-title { font-size: clamp(44px, 6.4vw, 104px); line-height: .92; letter-spacing: -.05em; font-weight: 600; overflow: hidden; padding-bottom: .06em; }
.featured-title span { display: inline-block; }
.featured-tagline { font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 2vw, 30px); line-height: 1.15; color: var(--ink-2); max-width: 26ch; min-height: 2.3em; }
.featured-actions { display: flex; gap: 8px; align-items: center; pointer-events: auto; margin-top: 6px; }
.ring-nav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .2s var(--ease-out);
}
.ring-nav:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.ring-nav:active { transform: scale(.92); }
.ring-nav.prev { margin-left: 8px; }
.no-webgl .featured { display: none; }
@media (max-width: 899px) { .featured-hint { display: none; } }

/* ---------------- Índice de proyectos ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 99px; font-size: 14px; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line); transition: color .25s, background-color .3s, box-shadow .3s;
}
.chip sup { font-family: var(--f-mono); font-size: 10px; margin-left: 4px; color: var(--ink-3); }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip[aria-pressed="true"] sup { color: inherit; opacity: .6; }

.plist { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.prow { border-bottom: 1px solid var(--line); }
.prow a {
  position: relative; display: grid; align-items: center; gap: 8px 24px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: clamp(20px, 2.6vw, 34px) 0;
}
.prow a::before {
  content: ""; position: absolute; inset: 0; background: var(--bg-2); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .55s var(--ease-out); z-index: -1;
}
.prow a:hover::before, .prow a:focus-visible::before { transform: scaleY(1); }
.prow-num { color: var(--ink-3); }
.prow-title { font-size: clamp(32px, 5.4vw, 84px); line-height: .95; letter-spacing: -.045em; font-weight: 600; transition: transform .6s var(--ease-out), color .3s; }
.prow a:hover .prow-title { transform: translateX(18px); }
.prow-title em { font-family: var(--f-display); font-weight: 400; color: var(--ink-2); font-size: .5em; letter-spacing: -.01em; margin-left: .3em; vertical-align: .35em; }
.prow-meta { display: flex; gap: 18px; align-items: center; color: var(--ink-3); justify-content: end; text-align: right; }
.prow-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s, color .35s, transform .5s var(--ease-out); }
.prow a:hover .prow-arrow { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); box-shadow: none; }
.prow-thumb { display: none; }
@media (max-width: 760px) {
  .prow a { grid-template-columns: minmax(0, 1fr) auto; }
  .prow-num { display: none; }
  .prow-meta .yr, .prow-meta .cat { display: none; }
  .prow-thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--bg-3); margin-top: 8px; }
  .prow-thumb img { width: 100%; height: 100%; object-fit: cover; }
}
.prow.is-out { display: none; }

.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(280px, 26vw, 420px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  opacity: 0; transform: scale(.85); background: var(--bg-3);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.hover-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 760px) { .hover-preview { display: none; } }

/* ---------------- Proceso ---------------- */
.process { position: relative; height: 340vh; }
.process-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.process-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .process-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.process-steps { position: relative; min-height: 300px; }
.pstep { position: absolute; inset: 0 0 auto; opacity: 0; }
.pstep:first-child { opacity: 1; }
.pstep .num { font: 400 clamp(96px, 14vw, 220px)/.8 var(--f-display); font-style: italic; color: var(--accent-text); }
.pstep h3 { font-size: clamp(34px, 4.2vw, 64px); letter-spacing: -.04em; line-height: 1; font-weight: 600; margin-top: 16px; }
.pstep p { color: var(--ink-2); max-width: 38ch; margin-top: 14px; }
.process-art { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.process-art svg { width: 100%; height: 100%; }
.process-art .g { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.process-art .a { stroke: var(--accent); }
.process-art .grid-bg { stroke: var(--line); stroke-width: 1; }
.process-bar { display: flex; gap: 6px; margin-top: 28px; }
.process-bar i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.process-bar i b { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 899px) {
  .process-art { aspect-ratio: 16 / 11; max-height: 38svh; }
  .process-steps { min-height: 250px; }
  .pstep .num { font-size: 72px; }
}

/* ---------------- Sobre mí ---------------- */
.about-grid { display: grid; gap: clamp(36px, 6vw, 96px); }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center;
  clip-path: inset(100% 0 0 0 round var(--radius));
}
@media (min-width: 900px) { .portrait { position: sticky; top: 120px; } }
.portrait .initials { font: 400 clamp(120px, 16vw, 220px)/1 var(--f-display); font-style: italic; color: var(--ink-3); opacity: .5; }
.portrait .demo-tag { position: absolute; left: 16px; top: 16px; }
.portrait .ph { position: absolute; bottom: 16px; left: 16px; right: 16px; color: var(--ink-3); }
.about-text { font-size: clamp(26px, 3.2vw, 50px); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; }
.about-text { max-width: 30ch; }
.about-text .w { opacity: .52; }
.about-text em { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: 28px; }
.stat b { display: block; font-size: clamp(40px, 5.5vw, 88px); line-height: 1; letter-spacing: -.05em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); font-size: 14px; display: block; margin-top: 8px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stat:last-child { grid-column: 1 / -1; } }

.tools { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 16px; }
.tools .mono { color: var(--ink-3); }
.tools ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 10px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; transition: box-shadow .3s, color .3s; }
.tools li:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-text); }

/* ---------------- Marquee + servicios ---------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(18px, 2.5vw, 30px) 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { font-size: clamp(40px, 6vw, 96px); letter-spacing: -.045em; font-weight: 600; padding-right: .5em; white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; }
.marquee-track span::after { content: "✦"; font-size: .4em; color: var(--accent-text); }
.marquee-track span:nth-child(even) { font-family: var(--f-display); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--ink-2); }

.services { display: grid; gap: 12px; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }
.svc {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--line); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-start; gap: 56px;
  overflow: hidden; isolation: isolate; transition: border-color .35s, transform .5s var(--ease-out);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
}
.svc:hover { border-color: var(--ink-3); transform: translateY(-4px); }
.svc:hover::before { opacity: 1; }
.svc-n { color: var(--ink-3); }
.svc svg { width: 44px; height: 44px; stroke: var(--accent-text); fill: none; stroke-width: 1.5; }
.svc h3 { font-size: clamp(24px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.05; font-weight: 600; }
.svc p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.svc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc li { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; }

/* ---------------- Contacto ---------------- */
.contact { position: relative; padding-block: clamp(96px, 14vw, 200px) clamp(48px, 6vw, 80px); overflow: hidden; }
.contact-title { white-space: nowrap; font-size: clamp(48px, 14vw, 240px); line-height: .82; letter-spacing: -.06em; font-weight: 600; }
.contact-title em { font-family: var(--f-display); font-weight: 400; letter-spacing: -.03em; color: var(--accent-text); }
.contact-title .ch { display: inline-block; }
.contact-grid { display: grid; gap: 48px; margin-top: clamp(40px, 6vw, 88px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.contact-lead { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.3; color: var(--ink-2); max-width: 28ch; }
.email-btn {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; min-height: 56px;
  font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.02em; font-weight: 500;
  border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s;
}
.email-btn:hover { border-color: var(--accent); }
.email-btn .copy { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); padding: 7px 9px; border-radius: 99px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; min-height: 52px; font-size: 16px; width: 100%;
  transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field .err { color: #ff8a7a; font-size: 14px; min-height: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff8a7a; }
.budget { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; }
.budget legend { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.budget input { position: absolute; opacity: 0; pointer-events: none; }
.budget label { cursor: pointer; }
.budget input:checked + .chip { background: var(--ink); color: var(--bg); box-shadow: none; }
.budget input:focus-visible + .chip { outline: 2px solid var(--accent); outline-offset: 3px; }
.budget .chip { display: inline-flex; align-items: center; }
.form-note { color: var(--ink-3); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 99; translate: -50% 0;
  background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 99px; font-size: 15px;
  display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(20px); pointer-events: none;
}
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px var(--pad) 32px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; width: min(100%, var(--max)); }
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-2); }
.to-top i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.to-top:hover i { transform: translateY(-4px); background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/* ---------------- Estados iniciales (si el JS no llega, a los 5 s se muestra todo) ---------------- */
.js:not(.ready) .hero-title .line > span { transform: translateY(110%); }
.js:not(.ready) .hero-in { opacity: 0; }

/* ---------------- Revelados ---------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------------- Caso de estudio ---------------- */
.case-hero { padding: clamp(130px, 18vh, 200px) var(--pad) 40px; }
.case-hero .wrap { width: min(100%, var(--max)); }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); min-height: 44px; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.case-title { font-size: clamp(60px, 13vw, 220px); line-height: .85; letter-spacing: -.06em; font-weight: 600; }
.case-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.case-title .line > span { display: inline-block; }
.case-tagline { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 3vw, 44px); line-height: 1.1; color: var(--ink-2); margin-top: 20px; max-width: 24ch; }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: 24px; }
@media (min-width: 800px) { .case-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-meta dt { color: var(--ink-3); margin-bottom: 8px; }
.case-meta dd { margin: 0; font-size: 16px; }
.case-cover { padding: 0 var(--pad); }
.case-cover-in { width: min(100%, var(--max)); margin: 0 auto; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); view-transition-name: cover; }
.case-cover-in img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.case-body { display: grid; gap: clamp(48px, 7vw, 96px); }
.case-block { display: grid; gap: 16px; }
@media (min-width: 900px) { .case-block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.case-block h2 { color: var(--ink-3); }
.case-block p { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.25; letter-spacing: -.02em; max-width: 30ch; }
.case-metrics { display: grid; gap: 12px; }
@media (min-width: 700px) { .case-metrics { grid-template-columns: repeat(3, 1fr); } }
.case-metrics div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.case-metrics b { display: block; font-size: clamp(36px, 4vw, 60px); letter-spacing: -.05em; line-height: 1; font-weight: 600; }
.case-metrics span { color: var(--ink-3); display: block; margin-top: 10px; font-size: 14px; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.stack-list li { padding: 8px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.next-case { display: block; border-top: 1px solid var(--line); padding: clamp(64px, 10vw, 140px) var(--pad); position: relative; overflow: hidden; }
.next-case .wrap { width: min(100%, var(--max)); }
.next-case .mono { color: var(--ink-3); }
.next-title { font-size: clamp(56px, 12vw, 200px); line-height: .88; letter-spacing: -.06em; font-weight: 600; margin-top: 12px; transition: transform .7s var(--ease-out), color .3s; }
.next-case:hover .next-title { transform: translateX(24px); color: var(--accent-text); }
.next-img { position: absolute; right: var(--pad); top: 50%; width: clamp(200px, 26vw, 400px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; translate: 0 -50%; transform: rotate(4deg) scale(.9); opacity: .0; transition: opacity .5s, transform .7s var(--ease-out); }
.next-img img { width: 100%; height: 100%; object-fit: cover; }
.next-case:hover .next-img { opacity: 1; transform: rotate(-3deg) scale(1); }
@media (max-width: 760px) { .next-img { display: none; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; }

/* ---------------- Movimiento reducido ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .about-text .w { opacity: 1; }
  .portrait { clip-path: none; }
}
@media (max-width: 560px) { .hero-foot > span:first-child { display: none; } }

/* ---------------- Ajustes v2: hero con foto, caso de estudio con capturas ---------------- */
.js:not(.ready) .hero-photo { opacity: 0; }
.case-kicker { color: var(--ink-3); margin-bottom: 20px; }
.browser { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 50px 100px -60px rgba(0, 0, 0, .8); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; will-change: transform; }
.case-cover-in.browser { aspect-ratio: auto; }
.case-cover-in.browser img { height: 100%; }
.case-gallery { padding-bottom: clamp(80px, 12vw, 160px); }
.case-gallery .sec-kicker { margin-bottom: 32px; }
.shots { display: grid; gap: clamp(32px, 6vw, 96px); }
.shot { margin: 0; width: min(100%, 1100px); }
.shot:nth-child(even) { justify-self: end; }
@media (min-width: 900px) { .shot { width: 82%; } }

/* ---------------- Consentimiento y textos legales ---------------- */
.consent { display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--ink-2); min-height: 44px; padding-top: 10px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1px solid var(--ink-3); background: var(--bg-2); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease-out); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: #ff8a7a; }
.check a, .legal-note a, .legal-links a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-note { font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 70ch; }
.legal-note strong { color: var(--ink-2); font-weight: 500; }
.legal-links { color: var(--ink-3); }
.legal { padding: clamp(130px, 18vh, 200px) var(--pad) clamp(80px, 10vw, 140px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.05em; font-weight: 600; margin-bottom: 16px; }
.legal .updated { color: var(--ink-3); margin-bottom: 48px; }
.legal h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; font-weight: 600; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 500; width: 34%; }
.concept-note { color: var(--ink-3); margin-top: 24px; font-size: 11px; text-transform: none; letter-spacing: .04em; }

/* ---------------- v3: idioma, trayectoria, cita, enlaces de proyecto ---------------- */
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 99px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .25s, box-shadow .25s, background-color .25s;
}
.nav a.lang-switch::after { display: none; }
.lang-switch:hover { color: var(--accent-ink); background: var(--accent); box-shadow: none; }
@media (max-width: 860px) { .nav a.lang-switch { display: inline-grid; } }
.mobile-menu .mobile-lang { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 28px; }

.career-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .career-actions { justify-self: end; } }
.timeline { border-top: 1px solid var(--line); }
.tl-item { display: grid; gap: 8px 32px; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .tl-item { grid-template-columns: 200px minmax(0, 1fr); } }
.tl-when { color: var(--accent-text); padding-top: 6px; }
.tl-type { color: var(--ink-3); margin-bottom: 8px; }
.tl-item h3 { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.tl-org { color: var(--ink-2); margin: 8px 0 10px; font-size: 15px; }
.tl-item p:last-child { color: var(--ink-2); max-width: 62ch; }

.career-extra { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .career-extra { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.facts-card, .quote { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.facts-card .mono, .quote-kicker { color: var(--ink-3); margin-bottom: 14px; }
.facts-card dl { display: grid; gap: 10px; }
.facts-card dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.facts-card dt { color: var(--ink-2); }
.facts-card dd { margin: 0; font-weight: 500; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.22; letter-spacing: -.01em; }
.quote blockquote p::before { content: "“"; color: var(--accent-text); }
.quote blockquote p::after { content: "”"; color: var(--accent-text); }
.quote figcaption { margin-top: 22px; display: grid; gap: 2px; }
.quote figcaption b { font-weight: 600; }
.quote figcaption span { color: var(--ink-3); font-size: 14px; }
.quote-more { margin-top: 14px; color: var(--ink-3); font-size: 13px; }

.case-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.case-note { flex-basis: 100%; color: var(--ink-3); margin-top: 4px; text-transform: none; letter-spacing: .04em; }
.notfound { min-height: 100svh; display: grid; align-items: center; } .notfound h1 em { font-weight: 400; }
@media (max-width: 480px) { .logo > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* Proyectos destacados */
.feat-tag {
  display: inline-flex; align-items: center; vertical-align: middle; margin-left: .5em;
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 6px 9px; border-radius: 99px;
}

/* Modo claro: la cabecera pasa por encima de la foto (oscura) del hero → fondo propio siempre */
:root[data-theme="light"] .site-header .bar {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent);
}
:root[data-theme="light"] .nav a:not(.btn) { color: var(--ink-2); }
:root[data-theme="light"] .nav a:not(.btn):hover, :root[data-theme="light"] .nav a.is-active { color: var(--ink); }
:root[data-theme="light"] .lang-switch { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
:root[data-theme="light"] .theme-toggle { color: var(--ink); }
/* La foto se mueve y escala un poco: que su borde nunca asome por fuera del fundido */
.hero-photo { overflow: hidden; }
.hero-photo::before {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: -1px; width: 22%; pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
@media (max-width: 860px) { .hero-photo::before { display: none; } }
