/* Intro page: "Hi, my name is Juan". Zebra-bead frame, red stage, camera that plays the intro video */
body.hello { background: #2b2722 url("assets/zebra-beadwork-background.webp") center / 420px auto repeat; min-height: 100vh; }
.hello-stage { position: relative; overflow: hidden; margin: 74px clamp(10px, 3vw, 40px) clamp(10px, 3vw, 40px);
  min-height: calc(100vh - 74px - clamp(10px, 3vw, 40px)); background: #5c1219; color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 0 120px rgba(0,0,0,.35); }

/* wall of Juan's faces, printed in red like a darkroom contact sheet */
.faces { position: absolute; inset: 0; background: url("assets/juan-galindo-faces-contact-sheet.webp") left center / auto 100% repeat-x;
  filter: contrast(1.25) brightness(1.08); mix-blend-mode: multiply; opacity: .95; pointer-events: none; }
.hello-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(60,8,14,0) 0%, rgba(60,8,14,.08) 45%, rgba(60,8,14,.55) 72%); }

.hello-grid { position: relative; z-index: 2; min-height: inherit; display: grid; grid-template-columns: 1.15fr 1fr;
  grid-template-areas: "cam text" "cam card"; gap: 10px 30px; align-items: center; padding: clamp(30px, 5vw, 70px) clamp(18px, 4vw, 60px); }

/* text */
.hello-text { grid-area: text; align-self: end; position: relative; z-index: 2; }
.who { font-style: italic; font-weight: 500; font-size: clamp(26px, 3.4vw, 48px); letter-spacing: -.02em; opacity: .9;
  transform: rotate(-3deg); transform-origin: left; }
.hello-text h1 { margin-top: 14px; line-height: .9; }
.hello-text .hi { display: block; font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 3.3vw, 48px); letter-spacing: .02em; }
.hello-text h1 em { display: block; font-style: italic; font-weight: 700; font-size: clamp(84px, 13vw, 200px); letter-spacing: -.06em; line-height: .95; color: #fff;
  text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.tag { margin-top: 10px; font-size: clamp(15px, 1.4vw, 19px); opacity: .9; max-width: 30ch; }
.hello-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hello-cta .pill { background: #fff; color: #5c1219; min-width: 0; padding: 15px 26px; font-size: 16px; }
.hello-cta .pill:hover { transform: scale(1.04); }
.ghost-btn { font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: 13px 22px; cursor: pointer; }
.ghost-btn:hover { background: rgba(255,255,255,.12); }

/* vintage card */
.kunst { grid-area: card; justify-self: end; align-self: start; width: clamp(170px, 17vw, 240px); display: block; text-decoration: none; color: #1d1a16;
  background: linear-gradient(160deg, #f4efe2, #e6ddc8); padding: 12px 12px 34px; position: relative; transform: rotate(5deg);
  box-shadow: 0 14px 30px rgba(0,0,0,.45); transition: transform .3s ease; }
.kunst:hover, .kunst:focus-visible { transform: rotate(1deg) translateY(-6px) scale(1.03); }
.k-head { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .02em; }
.k-square { margin-top: 12px; aspect-ratio: 1 / 1.05; background: #120d0b; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #efe8da;
  background-image: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.07) 41%, transparent 43%), linear-gradient(20deg, transparent 70%, rgba(255,255,255,.05) 71%, transparent 72%); }
.k-suit { position: absolute; right: 10px; bottom: 6px; font-size: 26px; line-height: 1; }

/* the camera */
.cam-wrap { grid-area: cam; position: relative; padding-right: 12%; }
.cam { position: relative; transform: rotate(-9deg); }
.cam-top { position: absolute; left: 50%; top: -5.5%; width: 44%; height: 9%; }
.dial { position: absolute; left: 6%; bottom: 0; width: 22%; height: 120%; border-radius: 50% 50% 6px 6px; background: radial-gradient(ellipse at 50% 30%, #d9d9d9, #7b7b7b 60%, #3a3a3a); }
.shutter { position: absolute; right: 18%; bottom: 0; width: 46%; height: 70%; border-radius: 10px 10px 0 0; background: #151515; }
.cam-body { position: relative; aspect-ratio: 1.62; border-radius: 22px 30px 26px 26px; padding: 6% 4% 6% 5%; display: grid; grid-template-columns: 1fr 27%; gap: 4%;
  background: linear-gradient(160deg, #3a3a3a, #121212 35%, #1c1c1c); box-shadow: 0 28px 40px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.12), inset 0 -4px 10px rgba(0,0,0,.6); }
.cam-screen { position: relative; overflow: hidden; border-radius: 6px; background: #000; border: 6px solid #2c2c2c; box-shadow: inset 0 0 0 2px #0b0b0b; cursor: pointer; }
.cam-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.screen-empty { position: absolute; inset: 0; background: linear-gradient(180deg, #b9dff6, #eef8ff 70%); }
.cam-screen:not(.empty) .screen-empty { display: none; }
.cloud { position: absolute; background: #fff; border-radius: 40px; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.c1 { left: 34%; top: 18%; width: 26%; height: 12%; } .c1::before { width: 46%; height: 170%; left: 18%; top: -80%; } .c1::after { width: 36%; height: 130%; left: 52%; top: -50%; }
.c2 { left: -4%; top: 38%; width: 14%; height: 8%; } .c2::before { width: 60%; height: 150%; left: 30%; top: -70%; }
.hill { position: absolute; border-radius: 50%; }
.h1 { left: -20%; right: 10%; bottom: -48%; height: 80%; background: #c9df8e; }
.h2 { left: 20%; right: -30%; bottom: -55%; height: 85%; background: #8da634; }
.screen-empty p { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font-weight: 700; font-size: clamp(11px, 1.3vw, 16px); letter-spacing: .14em; text-transform: uppercase; color: #39518a; }
.hud { position: absolute; left: 8px; right: 8px; top: 6px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 2px #000; pointer-events: none; }
.cam-screen.empty .hud { color: #2b3d66; text-shadow: none; }
.rec::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #e0261d; vertical-align: 1px; }
.cam-screen.playing .rec::before { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.screen-play { all: unset; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(0,0,0,.45); cursor: pointer; transition: opacity .3s, transform .2s; }
.screen-play span { position: absolute; left: 23px; top: 17px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.screen-play:hover { transform: scale(1.08); }
.cam-screen.playing .screen-play, .cam-screen.empty .screen-play { opacity: 0; pointer-events: none; }

.cam-ctl { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; align-content: space-between; justify-items: center; align-items: center; row-gap: 3%; }
.led { position: absolute; left: -8%; top: 4%; width: 6px; height: 12px; border-radius: 3px; background: #6b5a4a; }
.b-rec { all: unset; grid-column: 2; width: 40%; aspect-ratio: .7; border-radius: 40%; background: #0c0c0c; box-shadow: inset 0 0 0 2px #333; position: relative; cursor: pointer; }
.b-rec::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #e0261d; box-shadow: 0 0 8px rgba(224,38,29,.6); }
.b-round { position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; background: #0d0d0d; box-shadow: inset 0 0 0 2px #2c2c2c, 0 2px 3px rgba(0,0,0,.6); display: grid; place-items: center; font-size: 8px; font-weight: 800; color: #eee; }
.b-cam { background: radial-gradient(circle, #2f7b74 0 22%, #0d0d0d 24%); }
.b-cam::before { content: "SCENE"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 8px; font-weight: 700; color: #ddd; border: 1px solid #aaa; padding: 0 3px; letter-spacing: .04em; }
.b-view::after { content: ""; border-left: 9px solid #ccc; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.dpad { grid-column: 1 / -1; width: 74%; aspect-ratio: 1; border-radius: 50%; background: #090909; box-shadow: inset 0 0 0 3px #2c2c2c, 0 3px 5px rgba(0,0,0,.6); display: grid; place-items: center; }
.dpad button { all: unset; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #151515; box-shadow: inset 0 0 0 2px #3a3a3a; display: grid; place-items: center; font-weight: 800; font-size: clamp(10px, 1.2vw, 16px); color: #fff; cursor: pointer; }
.dpad button:hover, .b-rec:hover { filter: brightness(1.5); }
.b-trash::after { content: ""; width: 30%; height: 34%; border: 2px solid #ccc; border-top-width: 3px; border-radius: 0 0 3px 3px; }
.strap { position: absolute; left: 97%; top: 46%; width: 30%; overflow: visible; pointer-events: none; }
.strap path { fill: none; stroke-linecap: round; }
.strap .s1 { stroke: #1c1c1c; stroke-width: 15; }
.strap .s2 { stroke: #5a5a5a; stroke-width: 9; stroke-dasharray: 3 4; }
.strap .clip { fill: #151515; }

button:focus-visible, .pill:focus-visible, .kunst:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
  .hello-grid { grid-template-columns: 1fr; grid-template-areas: "text" "cam" "card"; gap: 30px; }
  .hello-text { align-self: start; }
  .cam-wrap { padding-right: 22%; max-width: 620px; }
  .kunst { justify-self: center; }
  .faces { background-size: 100% auto; background-repeat: repeat-y; background-position: center top; }
  .hello-stage::after { background: linear-gradient(180deg, rgba(60,8,14,.6), rgba(60,8,14,.1) 45%, rgba(60,8,14,.35)); }
}
@media (max-width: 480px) {
  .cam-ctl { gap: 4% 8%; }
  .b-round { font-size: 6px; }
  .b-cam::before { font-size: 6px; top: -11px; }
  .hud { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .cam-screen.playing .rec::before { animation: none; } }