:root {
  --bg-top: #f4eee7;
  --bg-mid: #eee7df;
  --ink: #26231f;
  --muted: #6f6962;
  --accent: #b85f3d;
  --line: rgba(38, 35, 31, 0.15);
  --dark: #171716;
  --content-width: 1180px;
  --pad-inline: clamp(24px, 7vw, 116px);
  --scroll: 0;
  --pointer-x: 0;
  --pointer-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #151515;
}

body {
  margin: 0;
  color: var(--ink);
  background: #151515;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100svh;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 4%, rgba(255,255,255,0.58), transparent 31%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 64%, #aaa6a1 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12), transparent 28%, transparent 72%, rgba(255,255,255,0.08)),
    radial-gradient(circle at 48% 78%, rgba(255,255,255,0.22), transparent 28%);
}

.hero__content,
.hero__footer {
  width: min(100%, calc(var(--content-width) + (var(--pad-inline) * 2)));
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.hero__content {
  position: relative;
  z-index: 4;
  padding-top: clamp(46px, 8vh, 94px);
  padding-bottom: 290px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
}

.identity__avatar {
  width: clamp(60px, 5.2vw, 76px);
  height: clamp(60px, 5.2vw, 76px);
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 41%;
  filter: grayscale(1) contrast(1.04);
  box-shadow: 0 12px 28px rgba(48, 39, 33, 0.13);
}

.identity__name,
.identity__role,
.hero__intro,
.hero__footer p,
.pillar p {
  margin: 0;
}

.identity__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.identity__role {
  margin-top: 7px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(10px, 0.86vw, 12px);
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.hero__copy {
  margin-top: clamp(42px, 7vh, 78px);
}

.hero__title {
  max-width: 930px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5.7vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.title-line {
  display: block;
}

.hero__title em {
  color: var(--accent);
  font-weight: 500;
}

.hero__intro {
  max-width: 760px;
  margin-top: clamp(24px, 3vh, 34px);
  color: #49453f;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
  margin-top: clamp(38px, 5vh, 62px);
}

.pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.pillar__number {
  padding-top: 2px;
  color: var(--accent);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 500;
}

.pillar__content {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.pillar h2 {
  margin: 0 0 12px;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.pillar p {
  color: #625d57;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.58;
}

.landscape {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: min(47vh, 510px);
  min-height: 320px;
  overflow: hidden;
  pointer-events: none;
}

.landscape::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  background: linear-gradient(180deg, rgba(238,231,223,0.98) 0%, rgba(238,231,223,0.2) 30%, rgba(19,19,18,0.02) 68%, rgba(15,15,15,0.46) 100%);
}

.landscape__layer {
  position: absolute;
  left: -3%;
  bottom: -2px;
  width: 106%;
  max-width: none;
  transform-origin: center bottom;
  will-change: transform;
  user-select: none;
}

.landscape__layer--back {
  z-index: 1;
  height: 78%;
  opacity: 0.77;
  transform: translate3d(
    calc(var(--pointer-x) * -3px),
    calc(var(--scroll) * -0.015px + var(--pointer-y) * -2px),
    0
  ) scale(1.035);
}

.landscape__layer--mid {
  z-index: 2;
  height: 86%;
  opacity: 0.92;
  transform: translate3d(
    calc(var(--pointer-x) * -7px),
    calc(var(--scroll) * -0.032px + var(--pointer-y) * -4px),
    0
  ) scale(1.045);
}

.landscape__layer--front {
  z-index: 3;
  height: 100%;
  transform: translate3d(
    calc(var(--pointer-x) * -12px),
    calc(var(--scroll) * -0.052px + var(--pointer-y) * -7px),
    0
  ) scale(1.055);
}

.landscape__mist {
  position: absolute;
  z-index: 4;
  left: 12%;
  right: 12%;
  bottom: 5%;
  height: 48%;
  background: radial-gradient(ellipse at center, rgba(244,239,233,0.62), rgba(244,239,233,0.18) 42%, transparent 72%);
  filter: blur(24px);
  opacity: 0.7;
  transform: translateY(calc(var(--scroll) * -0.012px));
}

.hero__footer {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: clamp(28px, 5vh, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  transform: translateX(-50%);
}

/* keep the footer/CTA reliably on-screen and visible even if the reveal
   animation doesn't fire for this absolutely-positioned element */
.hero__footer.reveal { opacity: 1; transform: translateX(-50%); }
.hero__footer.reveal.is-visible { opacity: 1; transform: translateX(-50%); }

.hero__footer::before {
  content: "";
  position: absolute;
  left: var(--pad-inline);
  right: var(--pad-inline);
  top: -34px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

.hero__footer p {
  color: rgba(255,255,255,0.67);
  font-size: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  background: rgba(20,20,19,0.82);
  color: #fff;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.18);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.cta:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.78);
  background: rgba(12,12,12,0.94);
}

.cta:focus-visible {
  outline: 3px solid rgba(184,95,61,0.38);
  outline-offset: 4px;
}

.cta__icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  color: #1c1c1b;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.cta__arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.cta:hover .cta__arrow {
  transform: translateX(4px);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 800ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (max-width: 900px) {
  .hero__content {
    padding-bottom: 410px;
  }

  .hero__title {
    max-width: 720px;
    font-size: clamp(45px, 8.4vw, 70px);
  }

  .pillars {
    grid-template-columns: 1fr;
    max-width: 680px;
    gap: 22px;
  }

  .pillar {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .pillar__content {
    padding-left: 18px;
  }

  .pillar p {
    max-width: 540px;
  }

  .landscape {
    height: 390px;
  }
}

@media (max-width: 620px) {
  :root {
    --pad-inline: 22px;
  }

  .hero {
    min-height: 1120px;
  }

  .hero__content {
    padding-top: 28px;
    padding-bottom: 380px;
  }

  .identity {
    gap: 14px;
  }

  .identity__avatar {
    width: 56px;
    height: 56px;
  }

  .identity__role {
    max-width: 230px;
  }

  .hero__copy {
    margin-top: 44px;
  }

  .hero__title {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.01;
    letter-spacing: -0.052em;
  }

  .hero__intro {
    font-size: 15px;
  }

  .desktop-break {
    display: none;
  }

  .pillars {
    margin-top: 38px;
  }

  .landscape {
    height: 330px;
  }

  .hero__footer {
    bottom: 26px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__footer::before {
    top: -25px;
  }

  .hero__footer p {
    display: none;
  }

  .cta {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .landscape__layer,
  .landscape__mist {
    transform: none !important;
  }
}
