:root {
  --taupe: #b2a89b;
  --taupe-dark: #a3998b;
  --taupe-light: #c9c1b6;
  --ink: #141210;
  --white: #ffffff;
  --muted: #3d3832;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--taupe);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
}
.logo {
  font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 700;
  font-size: 18px; letter-spacing: .06em; text-decoration: none; color: var(--white);
}
.topbar nav { display: flex; gap: 26px; }
.topbar nav a {
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--white); opacity: .85;
}
.topbar nav a:hover { opacity: 1; }

/* ---------- shared type ---------- */
.display {
  font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 700;
  color: var(--white); letter-spacing: .02em; line-height: 1;
  text-transform: uppercase;
}
.eyebrow {
  font-size: clamp(14px, 1.4vw, 17px); color: var(--white); letter-spacing: .02em;
}
.eyebrow strong { font-weight: 700; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: min(100%, 230px); padding: 18px 34px;
  background: var(--ink); color: var(--white); border-radius: 999px;
  font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}

/* ---------- home ---------- */
.stage {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 86px clamp(16px, 4vw, 60px) 28px; overflow: hidden;
}
.intro { text-align: center; }
.stage .display { font-size: clamp(30px, 4.6vw, 68px); margin-top: 14px; }

.talents {
  flex: 1; width: 100%; max-width: 1500px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 30px);
  align-items: end; margin-top: 2vh;
}
.talent {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; text-decoration: none;
}
.talent img {
  width: auto; max-width: 100%; height: min(58vh, 640px); object-fit: contain;
  transition: transform .3s ease;
}
.talent .pill { margin-top: 2.6vh; }
.talent:hover img, .talent:focus-visible img { transform: translateY(-10px) scale(1.02); }
.talent:hover .pill, .talent:focus-visible .pill { transform: scale(1.05); background: #2a2622; }
.talent:focus-visible { outline: none; }

.tagline {
  margin-top: 26px; max-width: 640px; text-align: center;
  font-size: clamp(13px, 1.2vw, 15px); line-height: 1.6; color: var(--muted);
}

/* ---------- MY WORK BOARD ---------- */
.board {
  position: relative; overflow: hidden; color: #f6e6d6;
  min-height: min(62vw, 980px); padding: 0;
  background-color: #7d0d18;
  background-image:
    linear-gradient(rgba(246,230,214,.35), rgba(246,230,214,.35)), linear-gradient(rgba(246,230,214,.35), rgba(246,230,214,.35)),
    linear-gradient(rgba(246,230,214,.35), rgba(246,230,214,.35)), linear-gradient(rgba(246,230,214,.35), rgba(246,230,214,.35)),
    radial-gradient(ellipse at center, rgba(60,0,8,0) 40%, rgba(40,0,6,.55) 100%),
    url("assets/red-paper-texture-background.avif");
  background-size: 1px 100%, 1px 100%, 100% 1px, 100% 1px, 100% 100%, cover;
  background-position: 31% 0, 69% 0, 0 12%, 0 88%, 0 0, center;
  background-repeat: no-repeat;
}
.board-marks { position: absolute; inset: 14px 18px auto 18px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; z-index: 4; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.board-marks span:nth-child(2) { margin-left: 29%; }
.board-photo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(78%, 1300px); aspect-ratio: 16 / 9; z-index: 1;
  background: url("https://static.wixstatic.com/media/2b3e5a_be712ba55f5e46d18f59c668c255a2e7~mv2.jpg/v1/fill/w_2000,h_1125,al_c,q_85,enc_auto/juan-galindo-white-shirt-red-background.jpg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 47% 47% at 50% 50%, #000 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 47% 47% at 50% 50%, #000 50%, transparent 100%);
  filter: brightness(.72) contrast(1.08) saturate(1.1);
}
.board-title {
  position: absolute; left: 6%; top: 50%; transform: translateY(-50%); z-index: 3;
  font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -.055em; line-height: .86;
  font-size: clamp(54px, 9.5vw, 170px); color: #f6e6d6;
  text-shadow: 0 4px 24px rgba(30,0,4,.55);
}
.board-title .arrow { font-weight: 400; letter-spacing: -.02em; }
.board-name {
  position: absolute; left: 6%; bottom: 6%; z-index: 3;
  font-size: clamp(13px, 1.2vw, 16px); line-height: 1.35;
  background: #140306; padding: 10px 14px;
}
.board-name b { font-weight: 700; }

.tile {
  position: absolute; z-index: 2; width: clamp(64px, 7.2vw, 120px);
  display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #f6e6d6;
  transform: translate(-50%, -50%); transition: transform .25s ease;
}
.tile .tile-img {
  display: block; width: 100%; aspect-ratio: 1; background-color: #fff;
  background-image: url("assets/brand-logos-sprite.webp"); background-size: 400% 300%; background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(20,0,4,.5); outline: 3px solid #fff;
}
.tile span.label {
  margin-top: 10px; font-size: clamp(9px, .8vw, 12px); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; text-align: center; white-space: nowrap;
  background: #140306; padding: 4px 8px;
}
.tile:hover, .tile:focus-visible { transform: translate(-50%, -50%) scale(1.12); z-index: 5; }

@media (max-width: 820px) {
  .board { min-height: 0; padding: 60px 16px 40px; display: flex; flex-direction: column; align-items: center;
    background-image: radial-gradient(ellipse at center, rgba(60,0,8,0) 40%, rgba(40,0,6,.55) 100%), url("assets/red-paper-texture-background.avif");
    background-size: 100% 100%, cover; background-repeat: no-repeat; background-position: 0 0, center; }
  .board-marks { display: none; }
  .board-photo { position: relative; left: auto; top: auto; transform: none; width: 100%; }
  .board-title { position: relative; left: auto; top: auto; transform: none; margin-top: -18%; text-align: center; font-size: 56px; }
  .board-name { position: relative; left: auto; bottom: auto; text-align: center; margin: 14px 0 26px; }
  .board-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; width: 100%; padding: 0 6px; }
  .tile, .tile:hover { position: static; width: 100%; transform: none; }
  .tile .tile-img { box-shadow: 0 6px 14px rgba(20,0,4,.45); outline-width: 2px; }
  .tile span.label { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 34px; margin-top: 8px; padding: 4px; font-size: 10px; line-height: 1.25; white-space: normal; }
}

/* ---------- work page ---------- */
.work-hero { padding: 130px 20px 56px; text-align: center; }
.work-hero .display { font-size: clamp(34px, 5.4vw, 76px); margin-top: 12px; }
.work-hero .lede { margin: 16px auto 0; max-width: 560px; color: var(--muted); line-height: 1.6; }

.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  padding: 14px; background: rgba(178,168,155,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20,18,16,.12);
}
.tabs a {
  text-decoration: none; padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--ink); color: var(--ink);
}
.tabs a.active, .tabs a:hover { background: var(--ink); color: var(--white); }

.persona {
  max-width: 1180px; margin: 0 auto; padding: 80px clamp(20px, 4vw, 40px) 50px;
  scroll-margin-top: 66px;
  display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start;
}
.persona > img { width: 100%; height: auto; }
.persona h2 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); text-transform: uppercase; color: var(--white); line-height: 1; }
.persona .role { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.persona p.lede { margin-top: 14px; max-width: 640px; line-height: 1.7; color: var(--muted); }
.persona.highlight h2 { color: var(--ink); }

.projects { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--taupe-light); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(40,30,20,.14); }
.thumb {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #bfb6aa 0 10px, #c6beb3 10px 20px);
  color: #857a6c; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 16px; font-weight: 600; }
.card-body span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.divider { max-width: 1180px; margin: 0 auto; border: 0; border-top: 1px solid rgba(20,18,16,.15); }

.contact { margin-top: 60px; padding: 90px 20px 100px; text-align: center; background: var(--ink); }
.contact .display { font-size: clamp(30px, 4.4vw, 60px); }
.contact p { margin-top: 14px; color: #cfc7bc; }
.contact .pill { margin-top: 28px; background: var(--white); color: var(--ink); }
.contact .pill:hover { transform: scale(1.05); }

footer { text-align: center; padding: 22px; font-size: 12px; color: #cfc7bc; background: var(--ink); }

/* ---------- persona pages ---------- */
.persona-page { padding-top: 130px; grid-template-columns: 300px 1fr; align-items: center; }
.persona-page h1 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 700; font-size: clamp(38px, 6vw, 88px); text-transform: uppercase; color: var(--white); line-height: 1; margin-top: 8px; }
.persona-page .eyebrow { color: var(--ink); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.persona-page .lede { font-size: clamp(15px, 1.3vw, 18px); }
.persona-work { max-width: 1180px; margin: 0 auto; padding: 50px clamp(20px, 4vw, 40px) 30px; }
.persona-work h2 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .logo { font-size: 13px; max-width: 58%; line-height: 1.3; }
  .topbar nav { gap: 16px; }
  .topbar nav a { font-size: 12px; }
  .talents { grid-template-columns: repeat(2, 1fr); row-gap: 40px; margin-top: 30px; }
  .talent img { height: 340px; }
  .pill { padding: 14px 22px; min-width: 0; }
  .persona { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .persona > img { width: 180px; margin: 0 auto; }
  .persona-page { padding-top: 110px; grid-template-columns: 1fr; }
  .persona p.lede { margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) {
  .talent img { height: 270px; }
  .pill { font-size: 14px; padding: 12px 16px; }
}

/* contact: email + socials under the button */
.contact-links { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 14px; letter-spacing: .04em; }
.contact-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.contact-links a:hover { border-color: #fff; }
.contact-links span { color: #8a8178; }

/* ---------- site navigation: always on screen ---------- */
.topbar { position: fixed; padding: 12px clamp(16px, 3vw, 44px); gap: 18px; background: rgba(20,18,16,.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.logo { font-size: 15px; white-space: nowrap; }
.topbar nav { gap: 24px; align-items: center; }
.topbar nav a, .nav-drop summary { font-size: 12px; white-space: nowrap; padding: 4px 0; }
.topbar nav a[aria-current], .nav-drop summary.on { opacity: 1; box-shadow: inset 0 -2px 0 #c4161c; }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; color: var(--white); opacity: .85; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-drop[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop summary:hover, .nav-drop[open] summary { opacity: 1; }
.drop-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); min-width: 220px; display: flex; flex-direction: column;
  background: #1d1a16; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 34px rgba(0,0,0,.5); padding: 6px 0; }
.topbar .drop-menu a { padding: 12px 20px; letter-spacing: .1em; opacity: .9; }
.topbar .drop-menu a:hover, .topbar .drop-menu a:focus-visible { background: #a3191f; opacity: 1; }
.topbar .drop-menu a[aria-current] { box-shadow: inset 3px 0 0 #c4161c; }
.topbar .drop-menu a.all { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); }
.home-flow { background: var(--taupe); }
#talents, #work, #contact { scroll-margin-top: 64px; }
main.archive ~ .contact, .home-flow + .contact { margin-top: 0; }
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar nav { width: 100%; justify-content: space-between; gap: 10px; }
  .topbar nav a, .nav-drop summary { font-size: 11px; letter-spacing: .07em; }
  .logo { font-size: 13px; max-width: none; }
  .drop-menu { left: -10px; transform: none; }
  body .hello-stage { margin-top: 96px; }
  body .archive { padding-top: 120px; }
  #talents, #work, #contact { scroll-margin-top: 90px; }
}