:root {
  --paper: #ffffff;
  --ink: #10100f;
  --muted: #686864;
  --line: rgba(16, 16, 15, .15);
  --container: 1480px;
  --gutter: clamp(20px, 3.35vw, 64px);
  --ease: cubic-bezier(.45, 0, .2, 1);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.first-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--brand);
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 0;
  background: #fff;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: calc(100svh - 73px);
  align-items: center;
  justify-content: center;
  padding-block: clamp(46px, 7vh, 88px);
  animation: hero-enter 800ms var(--ease) both;
}

.hero__content {
  display: flex;
  width: 100%;
  max-width: 1150px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(20px, 3vh, 34px);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 450;
  line-height: .96;
  letter-spacing: -.058em;
}

.hero__emphasis {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.hero__emphasis::after {
  position: absolute;
  z-index: -1;
  inset: -.02em -.08em;
  background: #dfff00;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  animation: selection-reveal 900ms ease-out 500ms both;
}

.mobile-break { display: none; }

.hero__description {
  max-width: 610px;
  margin: clamp(26px, 4vh, 42px) 0 0;
  color: #41413e;
  font-size: clamp(15px, 1.15vw, 18px);
}

.button {
  display: inline-flex;
  width: fit-content;
  min-width: 180px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  margin-top: clamp(24px, 3.5vh, 36px);
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover { background: #30302d; transform: translateY(-2px); }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes selection-reveal {
  to { transform: scaleX(1); }
}

.site-footer { position: relative; z-index: 5; padding-block: 26px; background: var(--paper); }

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 13px;
}

.footer-contact { position: relative; justify-self: start; }
.footer-contact--phone { justify-self: end; }
.footer__copyright { justify-self: center; }

.footer-contact__trigger {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 2px 0;
  cursor: pointer;
}

.contact-popover {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 0;
  display: flex;
  width: max-content;
  max-width: calc(100vw - (var(--gutter) * 2));
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 14px;
  visibility: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(16, 16, 15, .1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(.98);
  transform-origin: bottom left;
  transition: opacity 210ms var(--ease), transform 210ms var(--ease), visibility 0s linear 210ms;
}

.footer-contact--phone .contact-popover {
  right: 0;
  left: auto;
  transform-origin: bottom right;
}

.contact-popover.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.contact-popover__value { white-space: nowrap; }

.contact-popover__copy {
  min-height: 34px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  transition: background 180ms ease;
}

.contact-popover__copy:hover { background: #30302d; }

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .first-screen { min-height: 92svh; }
  .site-header__inner { min-height: 62px; }
  .hero__inner { min-height: calc(92svh - 63px); padding-block: clamp(34px, 6vh, 52px); }
  .hero__content { align-items: center; text-align: center; }
  .eyebrow { margin-bottom: 20px; }
  h1 { max-width: 390px; font-size: clamp(38px, 9.5vw, 42px); line-height: 1; }
  .mobile-break { display: initial; }
  .hero__description { max-width: 350px; margin-top: 25px; font-size: 15px; line-height: 1.55; }
  .button { min-width: 180px; min-height: 50px; margin-top: 24px; font-size: 17px; }
  .footer__inner { font-size: 12px; }
  .footer-contact { position: static; }
  .contact-popover,
  .footer-contact--phone .contact-popover {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(.98);
    transform-origin: bottom center;
  }
  .contact-popover.is-open { transform: translateX(-50%) translateY(0) scale(1); }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero__inner { justify-content: center; padding-block: 30px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(40px, 7vw, 74px); }
  .hero__description { margin-top: 20px; }
  .button { min-height: 46px; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__emphasis::after { animation: none; transform: scaleX(1); }
}
