/* ===== Design tokens ===== */
:root {
  --color-bg: #000000;
  --color-ink: #ffffff;
  --color-ink-soft: rgba(255, 255, 255, 0.45);
  --color-ink-faint: rgba(255, 255, 255, 0.3);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

html,
body {
  overflow-x: hidden;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__photo {
  /* True full-bleed, edge to edge -- matches the reference's plain
     background-cover photo instead of a boxed-in side panel. */
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0.92) 65%,
    #000 85%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0.92) 65%,
    #000 85%
  );
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  /* Darken/flatten the naturally bright studio backdrop so it reads as
     moody rather than a bright rectangle -- closer to the reference's
     inherently dark, dimly-lit source photo. */
  filter: grayscale(1) contrast(1.1) brightness(0.5);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.65) 30%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.15) 80%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero__text {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 560px;
  padding: var(--space-5) var(--space-3) var(--space-5) 8%;
}

.hero__name {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-ink);
}

.hero__name span {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  overflow-wrap: break-word;
}

.hero__role {
  margin: 0 0 1rem;
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.hero__tagline {
  max-width: 384px;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.hero__bio {
  max-width: 320px;
  margin-bottom: 1.5rem;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  line-height: 1.6;
  color: var(--color-ink-faint);
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-ink-faint);
  transition: transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.hero__social a:hover {
  transform: scale(1.1);
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease);
}

.hero__cta:hover {
  transform: scale(1.02);
}

.hero__footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--space-3) var(--space-4);
  text-align: center;
}

.hero__footer span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ===== Reveal ===== */
/* Visible by default so content never depends on JS to appear.
   JS opts an element into the fade-in by adding .reveal--armed first. */
.reveal.reveal--armed {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.reveal--armed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive hero ===== */
@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .hero__photo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 42vh;
    min-height: 280px;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.55) 75%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .hero__photo img {
    object-fit: contain;
    object-position: center top;
  }

  .hero__text {
    max-width: none;
    padding: var(--space-4) var(--space-3) var(--space-3);
    align-items: flex-start;
  }

  .hero__name span {
    /* Decoupled from the desktop clamp so small phones (~320-400px)
       scale down instead of holding at the 2.2rem desktop floor. */
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .hero__bio {
    font-size: clamp(0.9rem, 3.6vw, 0.95rem);
  }

  .hero__footer span {
    font-size: 0.75rem;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .hero__social {
    gap: var(--space-1);
  }

  .hero__cta {
    padding: 0.85rem 1.8rem;
  }
}
