:root {
  --ink: oklch(19% 0.025 338);
  --plum: oklch(27% 0.05 338);
  --limestone: oklch(92% 0.018 82);
  --sand: oklch(79% 0.04 70);
  --brass: oklch(69% 0.09 76);
  --light: oklch(96% 0.008 82);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 20rem;
  color: var(--light);
  background: var(--ink);
  font-family: "Onest", Arial, sans-serif;
  font-optical-sizing: auto;
  font-kerning: normal;
}

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

main { max-width: 46rem; margin: 0 auto; overflow: hidden; background: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  min-height: min(47rem, 92svh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem 2rem;
}

.hero__photo, .hero__shade { position: absolute; inset: 0; }

.hero__photo {
  z-index: 0;
  background: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1600&q=85") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 53%, transparent 83%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 53%, transparent 83%);
  transform: scale(1.03);
  animation: settle 1.1s cubic-bezier(.16,1,.3,1) both;
}

.hero__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, oklch(13% .02 338 / .72), transparent 48%),
    linear-gradient(0deg, var(--ink) 0%, oklch(16% .025 338 / .7) 45%, transparent 78%);
}

.masthead, .hero__content { position: relative; z-index: 2; animation: rise .8s cubic-bezier(.16,1,.3,1) both; }
.masthead { display: flex; justify-content: space-between; align-items: start; animation-delay: .1s; }
.masthead p, .eyebrow, footer p { margin: 0; font-size: .69rem; letter-spacing: .115em; text-transform: uppercase; }
.masthead p { opacity: .8; }

.mark { display: grid; width: max-content; line-height: 1; }
.mark span { font-size: 2.15rem; font-weight: 700; letter-spacing: -.12em; }
.mark small { padding-top: .27rem; font-size: .49rem; letter-spacing: .14em; text-transform: uppercase; }

.hero__content { max-width: 27rem; padding-right: 1rem; animation-delay: .2s; }
.eyebrow { color: var(--sand); font-weight: 600; }
h1, h2 { margin: .7rem 0 0; font-weight: 500; letter-spacing: -.065em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 12vw, 5.2rem); line-height: .94; text-shadow: 0 .2rem 1.5rem oklch(10% .02 338 / .55); }

.contact { padding: 2rem 1.5rem max(2rem, env(safe-area-inset-bottom)); background: var(--ink); }
.section-heading { max-width: 35rem; }
h2 { color: var(--light); font-size: clamp(2.25rem, 9.5vw, 4.3rem); line-height: .98; }

.primary-link {
  min-height: 5.6rem;
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  align-items: center;
  gap: .85rem;
  margin-top: var(--space-lg);
  padding: .9rem 1rem;
  color: var(--ink);
  background: var(--limestone);
  transition: transform .35s cubic-bezier(.16,1,.3,1), background-color .35s ease;
}
.primary-link__icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid oklch(19% .025 338 / .35); border-radius: 50%; }
.primary-link svg { width: 1.25rem; height: 1.25rem; }
.primary-link strong, .primary-link small { display: block; }
.primary-link strong { font-size: 1rem; font-weight: 600; letter-spacing: -.03em; }
.primary-link small { margin-top: .2rem; color: oklch(35% .025 338); font-size: .69rem; letter-spacing: .035em; }
.arrow { font-size: 1.4rem; transition: transform .35s cubic-bezier(.16,1,.3,1); }

.routes { display: grid; margin-top: var(--space-lg); border-top: 1px solid oklch(90% .015 82 / .19); }
.routes a { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); border-bottom: 1px solid oklch(90% .015 82 / .19); font-size: .93rem; letter-spacing: -.025em; transition: color .25s ease, padding .35s cubic-bezier(.16,1,.3,1); }
.routes a span:last-child { color: var(--brass); font-size: 1.25rem; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); margin-top: 5rem; color: oklch(80% .018 82); }
footer p { max-width: 18rem; line-height: 1.45; }
footer p:last-child { text-align: right; }

a:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
@media (hover: hover) { .primary-link:hover { background: var(--sand); transform: translateY(-3px); } .primary-link:hover .arrow { transform: translate(2px,-2px); } .routes a:hover { color: var(--brass); padding-left: .5rem; } }
@media (min-width: 48rem) {
  .hero { padding: max(2.5rem, env(safe-area-inset-top)) clamp(2rem, 5vw, 5rem) 3rem; }
  .contact { padding-inline: clamp(2rem, 5vw, 5rem); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1.03); } }
