@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-condensed-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/barlow-condensed-300-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/barlow-condensed-900-italic.woff2") format("woff2");
}

/* Arial scaled to Barlow Condensed's width/metrics to avoid layout shift on swap */
@font-face {
  font-family: "Barlow Condensed Fallback";
  font-weight: 100 500;
  src: local("Arial"), local("ArialMT");
  size-adjust: 70.3%;
  ascent-override: 142.3%;
  descent-override: 28.5%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Barlow Condensed Fallback";
  font-weight: 501 900;
  src: local("Arial"), local("ArialMT");
  size-adjust: 79.1%;
  ascent-override: 126.4%;
  descent-override: 25.3%;
  line-gap-override: 0%;
}

:root {
  --yellow: #f5c518;
  --yellow-dark: #d9a900;
  --black: #111111;
  --ink: #2b2b2b;
  --white: #ffffff;
  --paper: #fafafa;
  --font: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", Arial, sans-serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Background: slanted stripes echoing the logo's italic strokes */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stripe {
  position: absolute;
  top: -20%;
  height: 140%;
  transform: skewX(-18deg);
  transition: translate 0.4s ease-out;
}

.stripe--1 {
  right: -6vw;
  width: 22vw;
  background: var(--black);
}

.stripe--2 {
  right: 18vw;
  width: 3vw;
  background: var(--yellow);
}

.stripe--3 {
  right: 23vw;
  width: 0.8vw;
  background: var(--black);
  opacity: 0.12;
}

.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 4vh, 3rem) clamp(1.25rem, 6vw, 6rem);
  padding-bottom: max(clamp(1rem, 3vh, 2.5rem), env(safe-area-inset-bottom));
}

.logo {
  display: block;
  width: clamp(180px, 28vw, 360px);
  height: auto;
  max-height: 14vh;
  object-fit: contain;
  object-position: left;
}

.hero {
  max-width: 60rem;
  animation: rise 0.8s ease-out both;
}

.hero h1 {
  font: inherit;
}

/* Kept in the h1 for search engines and screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.title {
  display: block;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
  font-size: clamp(3.5rem, min(16vw, 20vh), 11rem);
  letter-spacing: -0.01em;
  margin: clamp(0.5rem, 2vh, 1.25rem) 0;
}

.title span {
  display: block;
}

.title__accent {
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--black);
  paint-order: stroke fill;
}

.lead {
  font-style: italic;
  font-weight: 300;
  font-size: min(clamp(1.05rem, 2.8vh, 1.6rem), 3.8vw);
  line-height: 1.3;
  color: var(--ink);
}

.lead span {
  display: block;
  white-space: nowrap;
}

.services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: clamp(0.75rem, 2.5vh, 1.5rem);
}

.services li {
  font-weight: 600;
  font-size: clamp(0.8rem, 1.8vh, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border: 2px solid var(--black);
  background: var(--white);
  transform: skewX(-12deg);
}

.services li:hover {
  background: var(--yellow);
}

.gauge {
  width: min(100%, 26rem);
  margin-top: clamp(0.75rem, 3vh, 2rem);
}

.gauge__labels {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(0.85rem, 1.8vh, 1rem);
  margin-bottom: 0.35rem;
}

.gauge__value {
  letter-spacing: 0.1em;
}

.gauge__track {
  height: 10px;
  border-radius: 999px;
  background: #e4e4e4;
  overflow: hidden;
}

.gauge__fill {
  height: 100%;
  width: 85%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow-dark), var(--yellow));
  transform-origin: left;
  animation: fill 2.2s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-weight: 400;
  font-size: clamp(0.8rem, 1.8vh, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__line {
  flex: 0 1 8rem;
  height: 4px;
  border-radius: 999px;
  background: var(--yellow);
}

.footer__credit a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
  background: var(--yellow);
}

.footer__credit a:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

@keyframes rise {
  from { transform: translateY(24px); }
  to { transform: none; }
}

@keyframes fill {
  from { transform: scaleX(0); }
}

/* Narrow screens: thin out the stripes so text stays readable */
@media (max-width: 700px) {
  .stripe { top: -6%; height: 22%; }
  .stripe--1 { width: 18vw; right: -8vw; }
  .stripe--2 { width: 4vw; right: 13vw; }
  .stripe--3 { display: none; }
  .logo { width: min(58vw, 240px); }
  .services li:last-child { display: none; }
  .footer { gap: 0.4rem 0.6rem; letter-spacing: 0.12em; white-space: nowrap; }
  .footer__line { flex-basis: 3rem; }
  .footer__credit { flex-basis: 100%; }
}

@media (max-height: 560px) {
  .services { display: none; }
}

@media (max-height: 420px) {
  .gauge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .gauge__fill { animation: none; }
  .stripe { transition: none; }
}
