:root {
  color-scheme: light;
  --bg: #f4eee3;
  --paper: #f7f1e6;
  --ink: #111312;
  --muted: #6e735f;
  --line: rgba(17, 19, 18, 0.14);
  --glass: rgba(255, 250, 240, 0.54);
  --glass-strong: rgba(255, 253, 247, 0.84);
  --sage: #9fbd6f;
  --moss: #315338;
  --clay: #f0b457;
  --sky: #8fc8bb;
  --shadow: 0 24px 70px rgba(24, 25, 23, 0.16);
  --radius: 8px;
  --page-x: 40px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.page-shell {
  min-height: 100svh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: var(--page-x);
  left: var(--page-x);
  display: flex;
  align-items: center;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-logo {
  display: block;
  width: clamp(118px, 13vw, 178px);
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 82px var(--page-x) 24px;
  overflow: hidden;
  place-items: start center;
}

.hero-intro {
  display: grid;
  justify-items: center;
  width: min(100%, 1080px);
}

.splash-hero {
  position: relative;
  width: min(88vw, 900px);
  aspect-ratio: 1382 / 1028;
  margin-top: -42px;
  overflow: hidden;
}

.splash-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-stage {
  position: relative;
  width: min(100%, 1080px);
  margin-top: -42px;
  padding-bottom: 42px;
  isolation: isolate;
}

.link-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.link-card {
  position: relative;
  display: grid;
  min-height: 230px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 253, 247, 0.92), rgba(255, 253, 247, 0.56));
  box-shadow: 0 18px 48px rgba(24, 25, 23, 0.1);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  backdrop-filter: blur(24px) saturate(1.15);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.link-card--orange {
  background: linear-gradient(150deg, #fff5e8, #ffe5c4);
}

.link-card--green {
  background: linear-gradient(150deg, #f4faef, #dff1d2);
}

.link-card--pink {
  background: linear-gradient(150deg, #fff3f5, #f9d8de);
}

.link-card--lemon {
  background: linear-gradient(150deg, #fffbe8, #f6eeb7);
}

.link-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(17, 19, 18, 0.02));
  content: "";
  pointer-events: none;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(17, 19, 18, 0.18);
  box-shadow: 0 24px 58px rgba(24, 25, 23, 0.14);
  outline: 0;
  transform: translateY(-7px);
}

.link-card__tag {
  position: relative;
  justify-self: start;
  align-self: start;
  min-height: 30px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: rgba(49, 83, 56, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
}

.link-card__icon {
  position: relative;
  align-self: center;
  justify-self: center;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: rgba(17, 19, 18, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.link-card__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.8;
}

.link-card__content {
  position: relative;
  align-self: end;
  display: grid;
  gap: 7px;
}

.link-card__title {
  max-width: 12ch;
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

.link-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(49, 83, 56, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.link-card__meta::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.45;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 80px, 1080px);
  margin: 34px auto;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-band p {
  margin: 0;
}

.contact-band a {
  color: var(--ink);
}

.section-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-modal {
  position: fixed;
  z-index: 40;
  top: 76px;
  left: 50%;
  width: min(860px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(17, 19, 18, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 34px 95px rgba(17, 19, 18, 0.28);
  transform: translateX(-50%);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 12px;
}

.video-modal__close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(17, 19, 18, 0.16);
  border-radius: 999px;
  background: #171918;
  color: var(--paper);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  outline: 0;
  background: var(--moss);
}

.video-frame {
  border: 1px solid rgba(17, 19, 18, 0.13);
  border-radius: var(--radius);
  background: #171918;
  box-shadow: 0 24px 70px rgba(24, 25, 23, 0.18);
  overflow: hidden;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #171918;
  object-fit: contain;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(17, 19, 18, 0.14);
  border-radius: 8px;
  background: rgba(17, 19, 18, 0.88);
  color: #f7f6f0;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

@media (max-width: 980px) {
  :root {
    --page-x: 22px;
  }

  .topbar {
    top: 16px;
  }

  .hero {
    padding-top: 104px;
  }

  .splash-hero {
    width: min(90vw, 720px);
    margin-top: -34px;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-stage {
    margin-top: -32px;
    padding-bottom: 44px;
  }

  .link-grid {
    width: min(100%, 680px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: auto;
  }

  .link-card,
  .link-card:nth-child(1),
  .link-card:nth-child(2),
  .link-card:nth-child(3),
  .link-card:nth-child(4) {
    min-height: 235px;
    margin-top: 0;
  }

  .contact-band {
    width: min(100% - 44px, 680px);
  }

  .video-modal {
    top: 72px;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--paper);
  }

  .topbar {
    position: absolute;
    top: 14px;
  }

  .brand-logo {
    width: 116px;
  }

  .hero {
    min-height: auto;
    padding: 92px 16px 24px;
  }

  .splash-hero {
    width: min(100%, 430px);
    margin-top: -22px;
  }

  h2 {
    font-size: 1.62rem;
  }

  .hero-stage {
    margin-top: -18px;
    padding-bottom: 18px;
  }

  .link-grid {
    position: relative;
    inset: auto;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .link-card,
  .link-card:nth-child(1),
  .link-card:nth-child(2),
  .link-card:nth-child(3),
  .link-card:nth-child(4) {
    min-height: 168px;
    margin-top: 0;
    padding: 18px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .link-card__tag {
    grid-column: 1;
    align-self: start;
  }

  .link-card__icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .link-card__content {
    grid-column: 1;
  }

  .link-card__title {
    max-width: 16ch;
    font-size: 1.1rem;
  }

  .contact-band {
    width: calc(100% - 32px);
  }

  .video-modal {
    top: 18px;
    width: calc(100vw - 24px);
    padding: 10px;
  }

  .video-modal__bar {
    gap: 10px;
  }

  .video-modal__close {
    width: 34px;
    height: 34px;
  }

  .contact-band {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto 24px;
    font-size: 0.84rem;
  }
}

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

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