/* ===== Tipografías (servidas desde el propio sitio, licencia OFL) ===== */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/anton.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/archivo.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Tokens ===== */
:root {
  --paper: #F6EEDC;
  --ink: #17130F;
  --ink-soft: #4A4036;
  --orange: #E8551F;
  --orange-deep: #B53A12;   /* naranja para texto pequeño sobre fondos claros (contraste AA) */
  --yellow: #F5B82E;
  --yellow-soft: #FAD67A;
  --cream: #FFF8EA;
  --paper-line: rgba(246, 238, 220, .25);

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
/* grano de papel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .08;
  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");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
mark { background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.brands :focus-visible, .services :focus-visible, .ai :focus-visible, .footer :focus-visible { outline-color: var(--orange); }
.video :focus-visible { outline-color: var(--paper); }
.ai .lab :focus-visible { outline-color: var(--ink); }
main { overflow-x: clip; }
/* sin palabras sueltas al final de títulos y párrafos */
h1, h2, h3, .kicker, .quote__pre, .career__markets, .services__proof, .services__sub { text-wrap: balance; }
p { text-wrap: pretty; }

/* idioma: el HTML trae español visible; JS cambia a inglés */
html:not([lang="en"]) [data-l="en"],
html[lang="en"] [data-l="es"] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px;
}
.skip:focus { top: 12px; }

.ico { width: 18px; height: 18px; flex: none; transition: translate .15s ease; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 700 15px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  padding: 16px 24px; border-radius: 99px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:hover .ico { translate: 3px 0; }
.btn:active { transform: none; box-shadow: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { box-shadow: 4px 4px 0 var(--orange); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 13px; }
.btn--lg { padding: 20px 30px; font-size: clamp(15px, 2.4vw, 20px); text-transform: none; letter-spacing: 0; }

.link-under {
  font-weight: 700; text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 3px no-repeat;
  padding-bottom: 2px;
}

/* ===== Etiquetas ===== */
.kicker, .eyebrow {
  font: 800 13px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.kicker { color: var(--orange-deep); margin-bottom: 18px; }
.eyebrow { color: var(--orange-deep); margin-bottom: 14px; }
.eyebrow--yellow { color: var(--yellow); }

.h-serif {
  font: 400 clamp(36px, 5.4vw, 64px)/1.02 var(--serif);
  letter-spacing: -.01em;
}
.h-serif em { color: var(--orange); }
.h-serif--light { color: var(--paper); }

.tag {
  display: inline-block;
  font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 7px 11px; border-radius: 4px;
  transform: rotate(-2deg);
  margin: 18px 0 12px;
}
.tag--orange { background: var(--orange); color: var(--ink); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 24px/1 var(--display); letter-spacing: .01em; text-decoration: none;
  white-space: nowrap;
}
.nav__spark { width: 22px; height: 22px; fill: var(--orange); animation: spin 12s linear infinite; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  white-space: nowrap;
  font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat;
  transition: background-size .2s ease;
}
.nav__links a:hover { background-size: 100% 3px; }
.nav__right { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; padding: 3px; border-radius: 99px;
  border: 2px solid var(--ink); background: var(--cream); cursor: pointer;
  font: 800 12px/1 var(--sans); letter-spacing: .06em;
  color: var(--ink); text-decoration: none;
}
.lang__opt { padding: 6px 9px; border-radius: 99px; color: var(--ink-soft); }
html[lang="es"] .lang__opt[data-for="es"],
html[lang="en"] .lang__opt[data-for="en"] { background: var(--ink); color: var(--paper); }

/* menú de celular (funciona sin JS gracias a <details>) */
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  font: 800 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 99px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--orange); color: var(--ink); }
.menu:not([open]) .menu__panel { display: none; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid;
  padding: 6px var(--gutter) 20px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 16px 30px rgba(23, 19, 15, .14);
}
.menu__panel a {
  font: 400 32px/1.1 var(--display); text-transform: uppercase; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid rgba(23, 19, 15, .12);
}
.menu__panel a:last-child { border-bottom: 0; }
.menu__panel .menu__cta { color: var(--orange-deep); }

/* ===== Hero ===== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero__title { margin: 0; font-weight: 400; }
.hero__title .kicker { display: block; }
.hero__name {
  position: relative;
  font: 400 clamp(72px, 13vw, 184px)/.94 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  display: flex; flex-direction: column;
}
.hero__name > span { display: block; }
.hero__name > span:nth-child(2) { color: var(--orange); }
.hero__underline { display: block; width: min(88%, 520px); height: 24px; color: var(--ink); margin-top: 10px; }
.hero__lead { max-width: 31em; margin-top: 26px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 32px; }

.hero__art { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.hero__blob { position: absolute; left: -8%; top: 14%; width: 100%; fill: var(--yellow); }
.hero__brush { position: absolute; left: -8%; bottom: 6%; width: 64%; color: var(--ink); z-index: 3; transform: rotate(-8deg); }
.hero__photo { position: relative; z-index: 2; width: 88%; margin: 6% auto 0; filter: drop-shadow(8px 10px 0 rgba(23, 19, 15, .9)); }
.hero__burst { position: absolute; z-index: 3; width: 17%; height: 17%; top: 0; left: 4%; fill: var(--orange); }
.hero__badge { position: absolute; z-index: 4; width: 30%; right: -2%; top: 4%; aspect-ratio: 1; background: var(--ink); border-radius: 50%; }
.hero__ring { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.hero__ring text { font: 800 14px var(--sans); fill: var(--yellow); }
.hero__badge-spark { position: absolute; inset: 36%; width: 28%; height: 28%; fill: var(--orange); }
.dots {
  position: absolute; z-index: 1; right: 0; bottom: 2%;
  width: 26%; aspect-ratio: 1;
  background: radial-gradient(var(--ink) 2.2px, transparent 2.6px) 0 0 / 16px 16px;
}

/* ===== Marcas ===== */
.brands { background: var(--ink); color: var(--paper); padding: 22px 0 26px; border-block: 2px solid var(--ink); }
.brands__label {
  text-align: center; margin-bottom: 12px;
  font: 800 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow);
}
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track {
  display: flex; align-items: center; gap: 28px; padding-right: 28px; flex: none;
  animation: marquee 70s linear infinite;
  font: 400 clamp(28px, 4vw, 48px)/1.1 var(--display); text-transform: uppercase; white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--orange); font-size: .7em; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ===== Sobre mí ===== */
.about {
  display: grid; grid-template-columns: .8fr 1.2fr;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.about__tag {
  position: relative; overflow: hidden; overflow: clip;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  background: var(--orange);
  border-right: 2px solid var(--ink);
}
.about__tag .eyebrow { color: var(--ink); }
.stats { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 18px; }
.stats li {
  display: grid; grid-template-columns: 1.7em 1fr; align-items: center; gap: 14px;
  font-size: clamp(56px, 6vw, 84px);
  padding-top: 14px; border-top: 2px solid var(--ink);
}
.stats b { font: 400 1em/.9 var(--display); }
.stats li > span { font: 700 15px/1.35 var(--sans); max-width: 17em; }
.about__seal { position: absolute; z-index: 0; width: 240px; height: 240px; right: -70px; bottom: -70px; fill: var(--yellow); opacity: .9; animation: spin 30s linear infinite; }
.about__body { padding: clamp(40px, 6vw, 88px) var(--gutter); max-width: 760px; align-self: center; }
.about__body p:not(.about__sign) { margin-top: 26px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); }
.about__sign { margin-top: 22px; font: italic 400 30px/1 var(--serif); color: var(--orange-deep); }

/* ===== Servicios ===== */
.services {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: minmax(260px, .8fr) 2fr;
  grid-template-areas: "head list" "cta list";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 72px); row-gap: 28px;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.services__head { grid-area: head; }
.services__sub { margin-top: 18px; max-width: 22em; color: rgba(246, 238, 220, .78); }
.services__zig { width: 150px; height: 20px; color: var(--yellow); margin-top: 22px; }
.services__cta { grid-area: cta; }
.services__list { grid-area: list; display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
.services__list li { padding: 2px 26px; border-left: 1px solid var(--paper-line); }
.services__ico { width: 32px; height: 32px; fill: var(--orange); }
.services__list li:nth-child(4n+2) .services__ico,
.services__list li:nth-child(4n+3) .services__ico { fill: var(--yellow); }
.services__list h3 { margin: 14px 0 8px; font: 400 29px/1.08 var(--serif); }
.services__list p { font-size: 15.5px; color: rgba(246, 238, 220, .78); }
.services__list .services__proof {
  display: flex; gap: 8px; margin-top: 14px;
  font: 700 13px/1.4 var(--sans); color: var(--yellow);
}
.services__proof::before { content: "✺"; color: var(--orange); flex: none; }

/* ===== Trabajo ===== */
.work { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); }
.work__head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.work__head .eyebrow { grid-column: 1 / -1; }
.work__intro { max-width: 26em; color: var(--ink-soft); padding-bottom: 10px; }

/* letras recortadas tipo collage */
.cutout { font: 400 clamp(52px, 9vw, 120px)/1 var(--display); text-transform: uppercase; }
.cutout__letters { display: inline-flex; flex-wrap: wrap; gap: .04em; }
.cutout--big .cutout__letters { justify-content: center; }
.cutout__gap { display: inline-block; width: .3em; }
.cutout b {
  font-weight: 400; display: inline-block;
  padding: .04em .1em .02em;
  background: var(--ink); color: var(--paper);
  border-radius: 3px;
}
.cutout b:nth-child(3n+1) { background: var(--orange); color: var(--ink); transform: rotate(-4deg); }
.cutout b:nth-child(3n+2) { background: var(--ink); color: var(--yellow); transform: rotate(3deg) translateY(4px); }
.cutout b:nth-child(3n)   { background: var(--yellow); color: var(--ink); transform: rotate(-2deg) translateY(-3px); }
.contact .cutout b:nth-child(3n) { background: var(--cream); }

/* video con portada: el reproductor solo carga al darle play */
.video {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 2px solid var(--ink); border-radius: 12px;
}
.video--vertical { aspect-ratio: 9 / 16; }
.video--2x1 { aspect-ratio: 2 / 1; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video:hover img { transform: scale(1.04); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.video__play svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.video__play:hover { background: var(--orange); transform: scale(1.08); }
.video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 19, 15, .35));
}
.video.is-playing::after, .video.is-playing .video__play, .video.is-playing img { display: none; }

/* caso destacado */
.feature {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 36px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.feature__media { display: grid; gap: 14px; }
.feature__text .tag { margin-top: 0; }
.feature__text h3 { font: 400 clamp(52px, 7vw, 96px)/.92 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.feature__text p:not(.tag):not(.feature__stamp) { margin-top: 12px; }
.feature__stamp {
  position: relative; width: 150px; height: 150px; margin-top: 22px;
  display: grid; place-items: center; text-align: center;
  transform: rotate(-8deg);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.feature:hover .feature__stamp { transform: rotate(4deg) scale(1.08); }
.feature__stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--orange); }
.feature__stamp > span { position: relative; font: 400 18px/1.05 var(--display); text-transform: uppercase; }

/* tarjetas */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.card {
  position: relative;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px) clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px) rotate(-.3deg); }
.card--cream { background: var(--cream); }
.card--yellow { background: var(--yellow-soft); }
.card--orange { background: var(--orange); }
.card--orange .tag { background: var(--cream); color: var(--ink); }
.card h3 { font: 400 clamp(28px, 3vw, 36px)/1.05 var(--serif); }
.card__client { font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 12px; }
.card p:last-child { font-size: 16px; }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }

/* ===== La meta (correo) ===== */
.quote {
  position: relative; overflow: hidden; overflow: clip;
  background: var(--orange);
  border-block: 2px solid var(--ink);
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  text-align: center;
}
.quote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(23, 19, 15, .22) 1.3px, transparent 1.6px) 0 0 / 9px 9px;
  mask-image: linear-gradient(115deg, #000 0%, transparent 45%, transparent 70%, #000 100%);
}
.quote > :not(.quote__burst) { position: relative; }
.quote__burst { position: absolute; width: 260px; height: 260px; right: -60px; top: -60px; fill: var(--yellow); animation: spin 26s linear infinite; }
/* notificación de correo */
.quote__mail {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 30px; padding: 12px 18px 12px 12px;
  background: var(--cream); color: var(--ink); text-align: left;
  border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink);
  rotate: -3deg;
}
.quote__mail-icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink);
}
.quote__mail-icon svg { width: 24px; height: 24px; }
.quote__mail-text b { display: block; font: 800 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.quote__mail-text small { display: block; margin-top: 3px; font: italic 400 18px/1.2 var(--serif); }
.quote__mail-time { align-self: flex-start; font: 700 12px/1 var(--sans); color: var(--ink-soft); }
.quote__mail::after {
  content: ""; position: absolute; top: -7px; right: -7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--ink);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23, 19, 15, .55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(23, 19, 15, 0); } }
.quote__pre { max-width: 26em; margin: 0 auto 20px; font: italic 400 clamp(22px, 2.6vw, 32px)/1.25 var(--serif); }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 400 clamp(44px, 8vw, 112px)/.98 var(--serif); letter-spacing: -.02em; }
.q-line { display: inline-block; }
.quote mark {
  font-style: italic; padding: 0 .06em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
}
.quote__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px; padding-bottom: 6px;
  font: 800 15px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border-bottom: 3px solid var(--ink);
}
.quote__cta:hover .ico { translate: 4px 0; }

/* ===== IA ===== */
.ai {
  background: var(--ink); color: var(--paper);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  border-top: 2px solid var(--ink);
}
.ai > * { max-width: var(--max); margin-inline: auto; }
.ai .eyebrow { color: var(--yellow); }
.ai__title { font: 400 clamp(44px, 7.4vw, 104px)/.98 var(--serif); letter-spacing: -.02em; max-width: 14em; }
.ai__title em { color: var(--orange); }
.ai__intro { max-width: 40em; margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(246, 238, 220, .8); }

.ai__show {
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start;
  margin-top: clamp(40px, 6vw, 72px);
}
.ai__video { position: sticky; top: 110px; transform: rotate(-2deg); }
.ai__video .video { border-color: var(--paper); box-shadow: 6px 6px 0 var(--orange); }
.ai__caption { margin-top: 16px; font: italic 400 20px/1.2 var(--serif); text-align: center; color: var(--yellow-soft); }

.pillars { display: grid; }
.pillars > li {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 18px;
  padding: 26px 0; border-top: 1px solid rgba(246, 238, 220, .22);
}
.pillars > li:first-child { border-top: 0; padding-top: 0; }
.pillars > li > :not(.pillars__n) { grid-column: 2; }
.pillars__n { grid-row: span 4; font: 400 44px/1 var(--display); color: var(--orange); }
.pillars > li:nth-child(even) .pillars__n { color: var(--yellow); }
.pillars h3 { font: 400 clamp(28px, 3vw, 36px)/1.05 var(--serif); }
.pillars p { margin-top: 8px; color: rgba(246, 238, 220, .78); }
.pillars__example { margin-top: 16px; max-width: 480px; }
.pillars__example img { width: 100%; border: 2px solid var(--paper); border-radius: 10px; background: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.pillars__example figcaption { margin-top: 10px; font: 700 13px/1.3 var(--sans); color: var(--yellow-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li {
  font: 700 13px/1 var(--sans);
  padding: 8px 12px; border-radius: 99px;
  border: 2px solid var(--paper); color: var(--paper);
  transition: transform .2s ease;
}
.chips li:first-child { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chips li:hover { transform: translateY(-3px) rotate(-3deg); }

.lab {
  display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; overflow: hidden;
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--paper); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--orange);
}
.lab__logo { display: grid; place-items: center; background: #264433; padding: 24px; border-right: 2px solid var(--ink); }
.lab__logo img { width: 100%; max-width: 280px; transition: transform .3s ease; }
.lab__logo:hover img { transform: scale(1.05) rotate(-2deg); }
.lab__text { padding: clamp(20px, 3vw, 36px); }
.lab__text .tag { margin-top: 0; }
.lab__text h3 { font: 400 clamp(44px, 5vw, 64px)/.95 var(--display); text-transform: uppercase; }
.lab__text > p:not(.tag) { margin-top: 10px; max-width: 40em; }
.lab__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.lab__links a:not(.btn) { font: 800 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }

.toolbox { margin-top: clamp(48px, 7vw, 88px); padding-top: 36px; border-top: 2px dashed rgba(246, 238, 220, .35); }
.toolbox__title { font: 400 clamp(36px, 5vw, 60px)/1 var(--display); text-transform: uppercase; color: var(--yellow); }
.toolbox__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 36px; margin: 28px 0 0; }
.toolbox__grid dt { font: 800 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.toolbox__grid dd { margin: 0; font: 400 24px/1.35 var(--serif); }
.toolbox__grid small { font: 400 14px var(--sans); color: rgba(246, 238, 220, .6); }

/* ===== Trayectoria ===== */
.career {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: .95fr 1.3fr .8fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.career__markets { margin-top: 18px; font: 800 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }

.langs {
  position: relative; margin-top: 32px; padding: 20px 20px 18px;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
}
.langs h3 { margin-bottom: 14px; font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
.langs ul { display: grid; gap: 12px; }
.langs li { display: grid; grid-template-columns: 76px auto 1fr; align-items: center; gap: 12px; }
.langs__name { font: 400 24px/1 var(--serif); }
.langs__level { font: 700 14px/1.2 var(--sans); }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 18px; height: 12px; border: 2px solid var(--ink); border-radius: 3px; }
.meter i.on { background: var(--orange); }
.langs__cert { margin-top: 14px; }
.langs__cert .tag { margin: 0; }
.langs__note { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.career__cv { margin-top: 26px; }

.timeline { margin: 0; padding: 0 0 0 26px; border-left: 3px solid var(--ink); }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--ink);
}
.timeline li:nth-child(even)::before { background: var(--yellow); }
.timeline__when { font: 400 20px/1 var(--display); letter-spacing: .02em; color: var(--orange-deep); }
.timeline h3 { margin-top: 6px; font: 400 26px/1.15 var(--serif); }
.timeline h3 + p { margin-top: 6px; font-size: 15.5px; color: var(--ink-soft); }

.career__side { display: grid; gap: 24px; align-content: start; }
.career__side > div {
  position: relative;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 14px;
  padding: 18px 18px 16px; box-shadow: 4px 4px 0 var(--ink);
}
.career__side > div:nth-child(2) { background: var(--yellow-soft); transform: rotate(1deg); }
.career__side h3 { font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 10px; }
.career__side > div:nth-child(2) h3 { color: var(--ink); }
.career__side p { font-size: 15px; }
.career__side p + p { margin-top: 10px; }

/* ===== Contacto ===== */
.contact {
  position: relative; overflow: hidden; overflow: clip;
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  text-align: center;
}
.contact .eyebrow { color: var(--ink); }
.cutout--big { font-size: clamp(48px, 11vw, 150px); }
.contact__lead { max-width: 30em; margin: 26px auto 0; font-size: clamp(18px, 2vw, 22px); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 30px; }
.social a { display: inline-block; padding-block: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.contact__spark { position: absolute; fill: var(--orange); pointer-events: none; }
.contact__spark--a { width: 110px; height: 110px; left: 3%; top: 6%; animation: spin 18s linear infinite; }
.contact__spark--b { width: 170px; height: 170px; right: 4%; bottom: 10%; fill: var(--ink); animation: spin 26s linear infinite reverse; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--paper); padding: 0 var(--gutter); }
.footer__made {
  max-width: 760px; margin: 0 auto; padding: 30px 0 26px;
  display: flex; justify-content: center; align-items: flex-start; gap: 12px;
  text-align: center;
  font: italic 400 clamp(18px, 2vw, 22px)/1.4 var(--serif);
}
.footer__made b { margin-right: 6px; font: 800 13px/1 var(--sans); font-style: normal; letter-spacing: .1em; color: var(--yellow); }
.footer__made svg { width: 18px; height: 18px; margin-top: 6px; fill: var(--orange); flex: none; }
.footer__row {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding: 24px 0 28px; border-top: 1px dashed rgba(246, 238, 220, .3);
  font-size: 14px;
}
.footer__brand { display: inline-flex; align-items: center; gap: 8px; font: 400 22px/1 var(--display); }
.footer__brand svg { width: 18px; height: 18px; fill: var(--orange); }

/* =====================================================================
   Collage + animaciones
   Todo el contenido se ve aunque no haya animación: los efectos son adorno.
   Las animaciones con scroll solo corren en navegadores que las soportan.
   ===================================================================== */

/* cinta adhesiva */
.feature, .langs { position: relative; }
.feature::before, .card:nth-child(odd)::before, .langs::before, .career__side > div:first-child::before {
  content: ""; position: absolute; z-index: 3;
  top: -14px; left: 50%; width: 112px; height: 30px;
  translate: -50% 0; rotate: -3deg;
  background: rgba(255, 248, 234, .72);
  border-left: 2px dashed rgba(23, 19, 15, .12); border-right: 2px dashed rgba(23, 19, 15, .12);
  box-shadow: 0 1px 2px rgba(23, 19, 15, .15);
  pointer-events: none;
}
.card:nth-child(4n+1)::before { left: 22%; rotate: -8deg; }
.card:nth-child(4n+3)::before { left: 78%; rotate: 6deg; }
.feature::before { left: 12%; rotate: -10deg; width: 140px; }
.langs::before { left: 80%; rotate: 8deg; width: 90px; }

/* círculo de plumón */
.circled { position: relative; display: inline-block; white-space: nowrap; }
.marker { position: absolute; left: -9%; top: -16%; width: 118%; height: 136%; overflow: visible; pointer-events: none; }
.marker path { fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* barra de progreso de lectura */
.progress {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transform-origin: 0 50%; transform: scaleX(0);
  display: none;
}

.cutout b { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.cutout b:hover { transform: rotate(10deg) scale(1.15) !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes rise { from { translate: 0 35%; clip-path: inset(0 0 100% 0); } to { translate: 0 0; clip-path: inset(-20% -5% -20% -5%); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes paste { from { translate: 0 40px; rotate: -3deg; scale: .96; opacity: 0; } to { translate: 0 0; rotate: 0deg; scale: 1; opacity: 1; } }
@keyframes drop { from { translate: 0 -60px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes mail-drop {
  0%   { transform: translateY(-160px) rotate(-16deg) scale(.8); opacity: 0; }
  45%  { transform: translateY(12px) rotate(5deg) scale(1.03); opacity: 1; }
  62%  { transform: translateY(-6px) rotate(-4deg) scale(1); }
  78%  { transform: translateY(0) rotate(3deg); }
  90%  { transform: rotate(-1.5deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes mail-ring { 0%, 100% { rotate: 0deg; } 15% { rotate: -18deg; } 30% { rotate: 16deg; } 45% { rotate: -12deg; } 60% { rotate: 9deg; } 75% { rotate: -5deg; } }
@keyframes line-in { from { opacity: 0; translate: 0 .35em; clip-path: inset(0 0 100% 0); } to { opacity: 1; translate: 0 0; clip-path: inset(-20% -5% -30% -5%); } }
@keyframes highlight { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* entrada del hero al cargar */
.hero__name > span { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero__name > span:nth-child(2) { animation-delay: .12s; }
.hero__underline { stroke-dasharray: 1; animation: draw 1s .7s ease-out both; }
.hero__art { animation: pop .8s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hero__badge { animation: pop .7s .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero__burst { animation: pop .6s .55s both, spin 20s 1.2s linear infinite; }
.hero .kicker, .hero__lead, .hero__ctas { animation: paste .7s .35s cubic-bezier(.2, .8, .2, 1) both; }
.hero__lead { animation-delay: .45s; }
.hero__ctas { animation-delay: .55s; }

/* animaciones ligadas al scroll */
@supports (animation-timeline: view()) {
  .progress { display: block; animation: grow linear both; animation-timeline: scroll(root); }

  .feature, .card, .lab, .pillars > li, .timeline li, .career__side > div, .langs,
  .services__list li, .toolbox__grid > div, .stats li {
    animation: paste linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }

  .cutout b { animation: drop linear both; animation-timeline: view(); }
  .cutout b:nth-child(1) { animation-range: entry 0% entry 40%; }
  .cutout b:nth-child(2) { animation-range: entry 6% entry 46%; }
  .cutout b:nth-child(3) { animation-range: entry 12% entry 52%; }
  .cutout b:nth-child(4) { animation-range: entry 18% entry 58%; }
  .cutout b:nth-child(5) { animation-range: entry 24% entry 64%; }
  .cutout b:nth-child(6) { animation-range: entry 30% entry 70%; }
  .cutout b:nth-child(7) { animation-range: entry 36% entry 76%; }
  .cutout b:nth-child(8) { animation-range: entry 42% entry 82%; }
  .cutout b:nth-child(9) { animation-range: entry 48% entry 88%; }
  .cutout b:nth-child(10) { animation-range: entry 54% entry 94%; }
  .cutout b:nth-child(11) { animation-range: entry 60% entry 100%; }

  .marker path { animation: draw linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  /* el correo "llega": cae, rebota y el ícono vibra; luego aparece la frase y se pinta el resaltado */
  .mailbox { animation: mail-drop linear both; animation-timeline: view(); animation-range: entry 60% cover 40%; }
  .env__flap { animation: env-open linear both; animation-timeline: view(); animation-range: cover 38% cover 48%; }
  .env__letter { animation: letter-out linear both; animation-timeline: view(); animation-range: cover 44% cover 56%; }
  .quote__mail-icon svg { animation: mail-ring linear both; animation-timeline: view(); animation-range: cover 40% cover 54%; }
  .quote__pre { animation: paste linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
  .q-line { animation: line-in linear both; animation-timeline: view(); animation-range: entry 15% entry 100%; }
  .q-line + br + .q-line { animation-range: entry 45% cover 22%; }
  .quote mark { animation: highlight linear both; animation-timeline: view(); animation-range: cover 15% cover 32%; }
  .quote__cta { animation: paste linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .progress { display: none; }
  .cutout b:hover, .chips li:hover { transform: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1240px) {
  .services { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "cta"; grid-template-rows: auto; }
  .toolbox__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1140px) {
  .nav__links { display: none; }
  .menu { display: block; }
}
@media (max-width: 760px) {
  .nav__cta { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; order: -1; }
  .about { grid-template-columns: 1fr; }
  .about__tag { border-right: 0; border-bottom: 2px solid var(--ink); }
  .about__seal { width: 150px; height: 150px; right: -64px; bottom: auto; top: -56px; }
  .work__head { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card--wide { grid-template-columns: 1fr; }
  .ai__show { grid-template-columns: 1fr; }
  .ai__video { position: static; max-width: 320px; margin-inline: auto; width: 100%; }
  .toolbox__grid { grid-template-columns: repeat(2, 1fr); }
  .career { grid-template-columns: 1fr; }
  .contact__spark--b { top: -46px; right: -46px; bottom: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding-block: 10px; gap: 10px; }
  .nav__brand { font-size: 19px; }
  .nav__spark { width: 18px; height: 18px; }
  .services__list { grid-template-columns: 1fr; row-gap: 0; }
  .services__list li { border-left: 0; border-top: 1px solid var(--paper-line); padding: 24px 0; }
  .feature__stamp { width: 124px; height: 124px; }
  .feature__stamp > span { font-size: 15px; }
  .video__play { width: 62px; height: 62px; }
  .pillars > li { grid-template-columns: 44px 1fr; column-gap: 12px; }
  .pillars__n { font-size: 32px; }
  .lab { grid-template-columns: 1fr; }
  .lab__logo { border-right: 0; border-bottom: 2px solid var(--ink); }
  .toolbox__grid { gap: 22px; }
  .toolbox__grid dd { font-size: 20px; }
  .langs li { grid-template-columns: 64px auto 1fr; gap: 10px; }
  .meter i { width: 14px; }
  .contact__spark--a { width: 64px; height: 64px; top: 4%; }
  .contact__spark--b { width: 110px; height: 110px; }
  .hero { padding-top: 24px; row-gap: 18px; }
  .hero__art { max-width: 200px; }
  .hero__badge { width: 40%; right: -12%; top: -2%; }
  .hero__text { display: flex; flex-direction: column; }
  .hero__ctas { order: 1; margin-top: 20px; }
  .hero__lead { order: 2; margin-top: 24px; }
  .quote__burst { width: 160px; height: 160px; }
  .footer__row { flex-direction: column; text-align: center; }
}
@media (max-width: 380px) {
  .nav__brand { font-size: 16px; }
  .nav__spark { display: none; }
  .lang__opt { padding: 5px 7px; }
  .menu summary { padding: 9px 11px; }
  .btn { white-space: normal; }
}


/* =====================================================================
   3D: tarjetas que se inclinan, estrella 3D, sobre que se abre, hoja del CV
   ===================================================================== */

/* tarjetas que se inclinan con el mouse (JS agrega .tilt solo en computadora) */
.tilt { position: relative; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.tilt.is-tilting { transition: transform .08s linear; }
.card.tilt:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.tilt-glare {
  position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .45), transparent 55%);
  mix-blend-mode: soft-light;
}
.tilt.is-tilting .tilt-glare { opacity: 1; }

/* estrella 3D de la portada (reemplaza a la plana cuando carga) */
.hero__star3d { position: absolute; z-index: 3; left: -6%; top: -9%; width: 29%; aspect-ratio: 1; pointer-events: none; }
.hero__star3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.hero__star3d.is-ready canvas { opacity: 1; }
.hero__art:has(.hero__star3d.is-ready) .hero__burst { visibility: hidden; }

/* sobre que se abre (estado final = abierto; la animación va de cerrado a abierto) */
.mailbox { display: inline-block; margin-bottom: 34px; }
.env { position: relative; width: min(300px, 74vw); aspect-ratio: 300 / 190; perspective: 900px; margin: 70px auto 0; }
.env__back { position: absolute; inset: 0; background: #EFD7AA; border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink); }
.env__letter {
  position: absolute; z-index: 2; left: 7%; right: 7%; top: 5%; height: 88%;
  padding: 10px 14px; text-align: left;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 6px;
  transform: translateY(-58%);
}
.env__letter b { display: block; font: 800 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.env__letter i { display: block; height: 6px; margin-top: 7px; border-radius: 3px; background: rgba(23, 19, 15, .16); }
.env__letter i.short { width: 60%; }
.env__letter em { display: block; margin-top: 8px; font: italic 400 17px/1.15 var(--serif); color: var(--orange-deep); }
.env__front { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; fill: #F4E1BA; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.env__flap {
  position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 58%;
  fill: #E8C98F; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round;
  transform-origin: 50% 0; transform: rotateX(180deg);
}
.env__flap path { vector-effect: non-scaling-stroke; }
.mailbox { position: relative; }
.mailbox .quote__mail { position: absolute; left: 62%; bottom: -30px; margin: 0; white-space: nowrap; }
@keyframes env-open { 0% { transform: rotateX(0deg); z-index: 4; } 49% { z-index: 4; } 50%, 100% { z-index: 1; } 100% { transform: rotateX(180deg); } }
@keyframes letter-out { 0% { transform: translateY(12%); opacity: 0; } 18% { opacity: 1; } 100% { transform: translateY(-58%); opacity: 1; } }

/* hoja del CV que se levanta al pasar el cursor */
.cv-link { position: relative; isolation: isolate; }
.cv-sheet {
  position: absolute; z-index: -1; left: 50%; bottom: calc(100% - 14px);
  width: 54px; height: 70px; margin-left: -27px;
  background:
    linear-gradient(var(--orange), var(--orange)) 8px 9px / 55% 6px no-repeat,
    repeating-linear-gradient(to bottom, rgba(23, 19, 15, .22) 0 3px, transparent 3px 10px) 8px 24px / calc(100% - 16px) 46px no-repeat,
    #fff;
  border: 2px solid var(--ink); border-radius: 4px;
  pointer-events: none; opacity: 0;
  transform-origin: 50% 100%;
  transform: perspective(420px) translateY(26px) rotateX(78deg) scale(.7);
  transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), opacity .2s ease;
}
.cv-sheet::after { content: ""; position: absolute; top: -2px; right: -2px; border-style: solid; border-width: 0 14px 14px 0; border-color: var(--paper) var(--paper) var(--ink) var(--ink); }
.cv-link:hover .cv-sheet, .cv-link:focus-visible .cv-sheet { opacity: 1; transform: perspective(420px) translateY(0) rotateX(0deg) rotate(-8deg) scale(1); }

@media (max-width: 700px) {
  .mailbox .quote__mail { position: relative; left: auto; bottom: auto; margin: -22px auto 0; }
  .mailbox { display: block; }
  .hero__star3d { left: -4%; top: -6%; width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-sheet { display: none; }
}
