@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/dm-sans-500.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-700.ttf") format("truetype");
}

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-serif-display-400.ttf") format("truetype");
}

:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #07152a;
  background: #f7f0e4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #07152a;
  --cream: #f7f0e4;
  --coral: #ff6247;
  --yellow: #ffd84d;
  --lilac: #aaa0f4;
  --lime: #b9ec55;
  --line: rgba(7, 21, 42, 0.28);
}

* { box-sizing: border-box; }

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button,
a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--cream);
}

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

.entry-experience {
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 72px;
  width: 100%;
  height: 100svh;
  min-height: 590px;
  overflow: hidden;
  background: var(--cream);
}

.entry-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 3.4vw;
  color: var(--ink);
  background: var(--cream);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.entry-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.entry-position {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.enter-site,
.enter-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.enter-site:hover,
.enter-site:focus-visible,
.enter-primary:hover,
.enter-primary:focus-visible {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 0 0 0 var(--ink);
  transform: translate(4px, 4px);
}

.entry-stage {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
}

.entry-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--yellow); }

.entry-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 760ms cubic-bezier(0.72, 0, 0.18, 1);
  will-change: transform;
}

.entry-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.entry-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: relative;
  z-index: 2;
}

.slide-kicker {
  margin: 0 0 1.1rem;
  font-size: clamp(0.72rem, 0.85vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.entry-slide h1,
.entry-slide h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(4rem, 8.5vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.slide-lead {
  max-width: 38rem;
  margin: 1.45rem 0 0;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.45;
}

.entry-slide-one {
  color: var(--cream);
  background: var(--ink);
}

.entry-slide-one .entry-photo {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.015);
  animation: photo-breathe 12s ease-in-out infinite alternate;
}

.photo-wash {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 42, 0.34);
}

.slide-one-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(75rem, 82vw);
  height: 100%;
  padding: 5vh 4vw 6.5vh;
}

.slide-one-content h1 {
  max-width: 10ch;
  text-shadow: 0 2px 24px rgba(7, 21, 42, 0.3);
}

.slide-one-content .slide-lead {
  max-width: 31rem;
  color: rgba(247, 240, 228, 0.92);
}

.slide-note {
  position: absolute;
  right: 3.4vw;
  bottom: 3.2vh;
  z-index: 2;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.entry-slide-two {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  color: var(--ink);
  background: var(--lilac);
}

.slide-two-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5vh 4vw;
}

.slide-two-content h2 {
  max-width: 9ch;
  font-size: clamp(3.6rem, 7vw, 8rem);
}

.slide-two-content .slide-lead { max-width: 36rem; }

.moving-pieces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 0;
  border-left: 1px solid var(--ink);
}

.moving-piece {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2vw, 2.25rem);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: transform 320ms ease;
}

.moving-piece:hover { transform: translateY(-7px); }
.moving-piece span { font-size: 0.75rem; font-weight: 700; }

.moving-piece strong {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.piece-messages { background: var(--cream); }
.piece-jobs { background: var(--yellow); }
.piece-receipts { background: var(--coral); }
.piece-people { background: var(--lime); }

.entry-slide-three {
  color: var(--ink);
  background: var(--yellow);
}

.entry-slide-three .entry-photo { object-position: center 58%; }

.action-card {
  position: absolute;
  top: 5vh;
  right: 4vw;
  bottom: 5vh;
  display: flex;
  flex-direction: column;
  width: min(48rem, 51vw);
  padding: clamp(1.4rem, 2.6vw, 3.1rem);
  background: rgba(247, 240, 228, 0.96);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.action-card h2 { font-size: clamp(3rem, 5.7vw, 6.8rem); }

.action-card .slide-lead {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: clamp(0.92rem, 1.15vw, 1.15rem);
}

.action-list {
  display: grid;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--ink);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  border-bottom: 1px solid var(--ink);
}

.action-row small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-row strong { text-align: right; }

.entry-slide-four {
  color: var(--ink);
  background: var(--coral);
}

.closure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  grid-template-rows: auto auto auto;
  gap: clamp(1rem, 2vh, 1.8rem) clamp(1.5rem, 3vw, 3.5rem);
  align-content: center;
  height: 100%;
  padding: 4.4vh 4vw;
}

.closure-heading h2 { font-size: clamp(3.9rem, 7.7vw, 8.8rem); }

.promise-ribbon {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
  padding: 1rem 1.35rem;
  background: var(--yellow);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.promise-ribbon strong {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
  white-space: nowrap;
}

.promise-ribbon span {
  max-width: 18rem;
  font-weight: 700;
  line-height: 1.2;
}

.closure-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
}

.closure-benefits div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 122px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--ink);
}

.closure-benefits div:nth-child(1) { background: var(--cream); }
.closure-benefits div:nth-child(2) { background: var(--lilac); }
.closure-benefits div:nth-child(3) { background: var(--lime); }
.closure-benefits span { font-size: 0.7rem; font-weight: 700; }

.closure-benefits strong {
  max-width: 18rem;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.15;
}

.enter-primary {
  align-self: end;
  justify-self: stretch;
  min-height: 64px;
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--yellow);
}

.enter-primary:hover,
.enter-primary:focus-visible {
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 0 0 var(--yellow);
}

.entry-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3.4vw;
  color: var(--cream);
  background: var(--ink);
  border-top: 1px solid rgba(247, 240, 228, 0.2);
}

.lets-talk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 206px;
  min-height: 38px;
  padding: 0.55rem 1.6rem;
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.lets-talk:hover,
.lets-talk:focus-visible {
  color: var(--ink);
  background: var(--cream);
  outline: none;
}

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

@keyframes photo-breathe {
  from { transform: scale(1.015); }
  to { transform: scale(1.055); }
}

@media (max-width: 900px) {
  .entry-experience { grid-template-rows: 68px minmax(0, 1fr) 68px; }
  .entry-header { grid-template-columns: auto 1fr; padding: 0 1rem; }
  .entry-logo { height: 56px; }
  .entry-position { display: none; }

  .enter-site {
    justify-self: end;
    min-height: 40px;
    padding: 0.65rem 0.8rem;
    font-size: 0.66rem;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .entry-slide-two {
    grid-template-columns: 1fr;
    grid-template-rows: 1.05fr 0.95fr;
  }

  .slide-two-content { padding: 4vh 1.2rem 2vh; }
  .slide-two-content h2 { font-size: clamp(3.25rem, 10vw, 5.5rem); }
  .slide-two-content .slide-lead { max-width: 46rem; margin-top: 0.85rem; }
  .moving-pieces { border-top: 1px solid var(--ink); border-left: 0; }
  .moving-piece { min-height: 0; padding: 0.8rem 1rem; }

  .action-card {
    top: 3vh;
    right: 1rem;
    bottom: 3vh;
    left: 1rem;
    width: auto;
    padding: 1.4rem;
  }

  .action-card h2 { font-size: clamp(3rem, 9vw, 5.7rem); }

  .closure-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    gap: 1rem;
    padding: 3vh 1.2rem;
  }

  .closure-heading h2 { font-size: clamp(3.8rem, 10.5vw, 6.6rem); }
  .promise-ribbon { min-height: 62px; }
  .closure-benefits { grid-column: 1; }
  .closure-benefits div { min-height: 92px; }

  .enter-primary {
    justify-self: start;
    min-width: 210px;
    min-height: 52px;
  }

  .entry-footer { padding: 0 1rem; }
  .lets-talk { min-width: 190px; }
}

@media (max-width: 540px) {
  .entry-experience {
    min-height: 0;
    grid-template-rows: 62px minmax(0, 1fr) 64px;
  }

  .entry-logo { height: 50px; }
  .entry-slide h1,
  .entry-slide h2 { line-height: 0.92; }

  .slide-one-content {
    justify-content: flex-end;
    width: 100%;
    padding: 2rem 1.1rem 4.5rem;
  }

  .slide-one-content h1 { font-size: clamp(3.75rem, 19vw, 5.2rem); }

  .slide-one-content .slide-lead {
    max-width: 19rem;
    margin-top: 0.85rem;
    font-size: 0.95rem;
  }

  .slide-note { right: auto; bottom: 1.2rem; left: 1.1rem; }
  .slide-two-content { padding: 1.35rem 1.1rem 1rem; }
  .slide-two-content h2 { font-size: clamp(3.05rem, 15vw, 4.4rem); }
  .slide-two-content .slide-kicker { margin-bottom: 0.65rem; }

  .slide-two-content .slide-lead {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .moving-piece strong { font-size: 1.55rem; }

  .action-card {
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 1.1rem;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .action-card h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .action-card .slide-kicker { margin-bottom: 0.7rem; }

  .action-card .slide-lead {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .action-row { min-height: 42px; font-size: 0.82rem; }
  .closure-layout { gap: 0.72rem; padding: 1rem; }
  .closure-heading .slide-kicker { margin-bottom: 0.6rem; }
  .closure-heading h2 { font-size: clamp(3.05rem, 15.5vw, 4.35rem); }

  .promise-ribbon {
    gap: 0.75rem;
    min-height: 54px;
    padding: 0.7rem 0.8rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .promise-ribbon strong { font-size: 1.7rem; }
  .promise-ribbon span { font-size: 0.75rem; }
  .closure-benefits { grid-template-columns: 1fr; }

  .closure-benefits div {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0.7rem;
  }

  .closure-benefits strong { font-size: 0.86rem; }
  .enter-primary { justify-self: stretch; min-height: 46px; }
  .entry-footer { justify-content: center; }
  .lets-talk { width: min(100%, 230px); min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
