/* Hero adapted from José Ochoa's official site to the KHAOZ preview sizes. */
:root {
  --ink: #121212;
  --paper: #ede7de;
  --orange: #ff5b24;
  --gutter: clamp(24px, 4.5vw, 88px);
  color-scheme: dark;
  color: var(--paper);
  background: var(--ink);
  font-family: Barlow, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow: hidden; }
body, h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }

.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  min-height: 88px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font: 900 23px Archivo, Arial, sans-serif;
  letter-spacing: -.045em;
  transform: skewX(-9deg);
  white-space: nowrap;
}
.wordmark::after {
  content: '';
  display: block;
  height: 3px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--orange) 70%, transparent);
}
.site-sections { display: flex; gap: clamp(24px, 3.4vw, 64px); font-size: 17px; font-weight: 600; }

.hero { position: relative; isolation: isolate; height: 100vh; overflow: clip; }
.hero-paper { position: absolute; inset: 0; z-index: -3; background: url('hero-paper.webp') center / cover; }
.hero-glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 18% 95%, #f9551820, transparent 58%); }
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 24% 68%, #ff6d281f, transparent 52%);
  opacity: .35;
}
.hero-subject { position: absolute; inset: 92px auto -2px 3.5%; width: 40%; z-index: -1; }
.hero-subject img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(14px 4px 20px #0005);
}
.hero-copy {
  position: relative;
  margin-left: 43%;
  width: 53%;
  height: 100%;
  padding: 110px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font: 900 clamp(76px, 13.65vw, 260px)/.84 Archivo, Arial, sans-serif;
  letter-spacing: -.072em;
  color: #f0eeea;
  transform: skewX(-9deg);
}
.surname { position: relative; display: block; width: max-content; margin-top: .075em; isolation: isolate; }
.surname::after {
  content: attr(data-echo);
  position: absolute;
  z-index: -1;
  inset: .13em auto auto .09em;
  color: #aaa5a017;
  -webkit-text-stroke: 1px #b8b3ad33;
}
.hero-nickname {
  display: flex;
  gap: 22px;
  align-items: center;
  width: 94%;
  margin-top: 24px;
  font: italic 900 clamp(32px, 4.55vw, 86px)/1 Archivo, Arial, sans-serif;
  letter-spacing: -.04em;
  color: var(--orange);
  transform: skewX(-5deg);
}
.hero-nickname span { height: 3px; flex: 1; background: linear-gradient(90deg, var(--orange), transparent); }
.hero-context { margin-top: 20px; color: #d2ceca; font-size: clamp(16px, 1.55vw, 27px); font-style: italic; }
.hero-context span { padding-inline: 8px; }
.hero-actions { display: flex; gap: 18px; margin-top: 38px; }
.button {
  min-width: 200px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .015em;
  text-align: center;
  transition: background .25s, color .25s, transform .25s;
}
.button:hover { transform: translateY(-3px); }
.button-orange { background: var(--orange); border-color: var(--orange); color: #0b0b0b; box-shadow: 0 4px 0 #943010, 0 16px 30px #ff5b2421; }
.button-orange:hover { background: #ff794b; }
.button-outline { background: linear-gradient(145deg, #282520aa, #101010a6); border-color: #bfb7ab99; box-shadow: 0 4px 0 #0008, 0 13px 28px #0003; }
.button-outline:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 1200px) {
  .hero-actions { gap: 12px; }
  .button { min-width: 0; font-size: 14px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; }
  .wordmark { font-size: 20px; }
  .site-sections { display: none; }
  .hero-paper { background-position: 22% center; }
  .hero-glow { z-index: 0; background: linear-gradient(0deg, #101010dd 0%, #10101050 36%, transparent 66%); }
  .hero-subject { inset: 76px auto auto 23%; width: 77%; height: 68%; }
  .hero-subject img { height: auto; object-position: top center; mask-image: linear-gradient(#000 75%, transparent); }
  .hero-copy { z-index: 1; margin: 0; width: 100%; padding: 0 24px 57px; justify-content: flex-end; }
  .hero h1 { font-size: min(22vw, 14vh); line-height: .86; }
  .hero-nickname { width: 100%; gap: 20px; margin-top: 18px; font-size: clamp(24px, 8.6vw, 56px); }
  .hero-context { margin-top: 16px; font-size: clamp(12px, 3.85vw, 16px); font-style: normal; }
  .hero-context span { padding-inline: 3px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .button { flex: 1; padding: 9px 5px; min-height: 48px; font-size: clamp(11px, 3.6vw, 14px); }
}

@media (prefers-reduced-motion: no-preference) {
  .preview-started .hero-subject, .preview-started .hero-copy { animation: hero-arrive 1s both; }
  .preview-started .hero-copy { animation-delay: .12s; }
  .preview-started .hero-glow::after { animation: glow-breathe 6s ease-in-out infinite alternate; }
  .preview-paused .hero-subject, .preview-paused .hero-copy, .preview-paused .hero-glow::after { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
@keyframes hero-arrive {
  from { opacity: .65; translate: 0 15px; }
  to { opacity: 1; translate: 0; }
}
@keyframes glow-breathe {
  from { opacity: .35; }
  to { opacity: 1; }
}
