:root {
  color-scheme: light;
  --canvas: #a8a7a7;
  --paper: #efefec;
  --ink: #171514;
  --muted: #66615e;
  --burgundy: #44212f;
  --burgundy-deep: #321721;
  --line: rgba(23, 21, 20, 0.14);
  --white-line: rgba(255, 255, 255, 0.36);
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255,255,255,.25), transparent 28rem),
    linear-gradient(135deg, #b1b0ae, var(--canvas));
  font-family: "Avenir Next", Avenir, "Century Gothic", Futura, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.card {
  position: relative;
  width: min(100%, 440px);
  min-height: min(860px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid var(--white-line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(20, 14, 14, .22);
}

.portrait {
  position: relative;
  height: clamp(330px, 48vh, 500px);
  overflow: hidden;
  background: #252323;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.14), transparent 35%, rgba(0,0,0,.52));
  pointer-events: none;
}

.portrait img.person {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

body[data-person="juan"] .portrait img.person { object-position: center 24%; }
body[data-person="juan-martin"] .portrait img.person { object-position: center 42%; }

.brand-lockup {
  position: absolute;
  z-index: 2;
  top: 23px;
  left: 25px;
  display: block;
  width: 84px;
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.26));
}

body[data-person="juan"] .brand-lockup,
body[data-person="juan-martin"] .brand-lockup {
  left: auto;
  right: 23px;
  width: 80px;
  filter: drop-shadow(0 2px 10px rgba(255,255,255,.18));
}

.identity {
  position: absolute;
  z-index: 2;
  left: 25px;
  right: 25px;
  bottom: 23px;
  color: white;
}

.eyebrow {
  margin: 0 0 7px;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .84;
}

h1 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Century Gothic", Futura, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 10vw, 3.35rem);
  line-height: .96;
  font-weight: 450;
  letter-spacing: -.055em;
}

body[data-person="juan-martin"] h1 {
  font-size: clamp(2rem, 8.8vw, 3rem);
}

.role {
  margin: 11px 0 0;
  font-size: .95rem;
  line-height: 1.35;
  color: rgba(255,255,255,.86);
}

.content { padding: 25px 25px 27px; }

.statement {
  margin: 0 0 22px;
  max-width: 34ch;
  font-family: "Avenir Next", Avenir, "Century Gothic", Futura, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.16rem;
  line-height: 1.42;
  font-weight: 430;
  letter-spacing: -.025em;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: .89rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.action:active { transform: scale(.975); }
.action svg { width: 18px; height: 18px; flex: none; }
.action.primary { color: #fff; background: var(--burgundy); }
.action.primary:hover { background: var(--burgundy-deep); }
.action.secondary { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.36); }
.action.secondary:hover { border-color: rgba(91,23,39,.38); background: rgba(255,255,255,.72); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.contact-link {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255,255,255,.28);
  font-size: .75rem;
  font-weight: 620;
}

.contact-link:hover { color: var(--burgundy); border-color: rgba(91,23,39,.35); }
.contact-link svg { width: 18px; height: 18px; }

.enquiries {
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.enquiries-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.enquiry-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: "Avenir Next", Avenir, "Century Gothic", Futura, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.04rem;
}

.enquiry-link:last-child { border-bottom: 0; }

.enquiry-arrow {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  color: var(--burgundy);
  border: 1px solid rgba(68, 33, 47, .22);
  border-radius: 50%;
  background: rgba(255,255,255,.26);
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.enquiry-arrow svg { width: 15px; height: 15px; }

.enquiry-link:hover .enquiry-arrow {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
  transform: translate(1px, -1px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 19px;
  color: var(--muted);
  font-size: .76rem;
}

.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--burgundy); }

.qr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  font: inherit;
  cursor: pointer;
}

.qr-trigger:hover { color: var(--burgundy); border-color: rgba(68,33,47,.32); }
.qr-trigger svg { width: 14px; height: 14px; }
.modal-open { overflow: hidden; }
.qr-modal[hidden] { display: none; }

.qr-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(18,14,15,.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  cursor: default;
}

.qr-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  padding: 28px 28px 26px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}

.qr-close:hover { color: var(--burgundy); border-color: rgba(68,33,47,.32); }
.qr-close svg { width: 16px; height: 16px; }
.qr-brand { display: block; width: 88px; height: auto; margin: 0 auto 15px; }
.qr-code { display: block; width: 100%; height: auto; border-radius: 12px; }
.qr-panel h2 { margin: 18px 0 4px; font-size: 1.35rem; line-height: 1.15; font-weight: 560; letter-spacing: -.035em; }
.qr-panel p { margin: 0; color: var(--muted); font-size: .88rem; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 25px;
  translate: -50% 18px;
  padding: 11px 16px;
  color: #fff;
  border-radius: 999px;
  background: rgba(23,21,20,.92);
  font-size: .84rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, translate .2s ease;
}

.toast.show { opacity: 1; translate: -50% 0; }

@media (max-width: 520px) {
  .page { padding: 0; display: block; }
  .card { width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .portrait { height: 48vh; min-height: 350px; }
  .content { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
