@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #050505;
  --green: #00c86f;
  --red: #ff4350;
  --muted: #a4a4a4;
}

* { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { color: #fff; background: var(--red); }

.skip-link {
  position: fixed;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: .8rem 1rem;
  color: #fff;
  background: #000;
}
.skip-link:focus { top: 1rem; }

.page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 115rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(2rem, 4.4vw, 5rem) clamp(1.4rem, 8.7vw, 10rem) clamp(1.6rem, 2.9vw, 3.2rem);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: clamp(.72rem, .92vw, 1rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  animation: fade-in .7s ease-out both;
}
.topbar p { margin: 0; }
.status { display: flex; align-items: center; gap: .72rem; }
.status span {
  width: .58rem;
  height: .58rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 .27rem rgba(0, 200, 111, .16);
  animation: status-pulse 2.6s ease-out infinite;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(3rem, 7vh, 6.5rem) 0;
  text-align: center;
}
.hero h1 {
  display: flex;
  width: min(100%, 56.5rem);
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.15rem);
  margin: 0;
}
.headline-line {
  display: block;
  width: 100%;
  overflow: hidden;
}
.headline-line.line-two { width: 84.83%; }
.line-inner {
  display: block;
  transform: translateY(112%);
  opacity: 0;
  will-change: transform, opacity;
}
.line-inner img { display: block; width: 100%; height: auto; }
.line-one .line-inner { animation: reveal-line .9s cubic-bezier(.16, 1, .3, 1) .28s forwards; }
.line-two .line-inner { animation: reveal-line .9s cubic-bezier(.16, 1, .3, 1) 3.28s forwards; }

.side-note {
  position: fixed;
  z-index: 3;
  right: clamp(.8rem, 1.4vw, 1.5rem);
  bottom: clamp(1.35rem, 2.6vw, 2.8rem);
  margin: 0;
  color: var(--ink);
  font-size: clamp(.7rem, .72vw, .82rem);
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  opacity: 0;
  transform: rotate(180deg) translateY(-.75rem);
  animation: side-in .75s ease-out 4.15s forwards;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: fade-up .75s ease-out 4.15s forwards;
}
.wordmark {
  display: block;
  width: clamp(8.8rem, 12vw, 12.8rem);
  height: auto;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: clamp(1.7rem, 2.2vw, 2.5rem);
  font-size: clamp(.7rem, .88vw, .95rem);
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.contact strong { font-weight: 800; }
.contact a {
  position: relative;
  padding: .3rem 0;
}
.contact a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: '';
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s ease;
}
.contact a:hover::after,
.contact a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.contact a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }

.copyright {
  margin: clamp(1rem, 1.5vw, 1.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(.64rem, .75vw, .78rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

@keyframes reveal-line {
  0% { opacity: 0; transform: translateY(112%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes side-in {
  from { opacity: 0; transform: rotate(180deg) translateY(-.75rem); }
  to { opacity: 1; transform: rotate(180deg) translateY(0); }
}
@keyframes status-pulse {
  0%, 65%, 100% { box-shadow: 0 0 0 .27rem rgba(0, 200, 111, .16); }
  35% { box-shadow: 0 0 0 .5rem rgba(0, 200, 111, 0); }
}

@media (max-width: 800px) {
  .page {
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 1.7rem;
  }
  .hero { padding: 3.5rem 0; }
  .hero h1 { width: min(100%, 56.5rem); }
}

@media (max-width: 560px) {
  .page { min-height: 100svh; padding-top: 1.6rem; }
  .topbar { gap: 1rem; font-size: clamp(.56rem, 2.35vw, .68rem); letter-spacing: .16em; }
  .status { gap: .48rem; white-space: nowrap; }
  .status span { width: .42rem; height: .42rem; }
  .hero { padding: 2.5rem 0; }
  .hero h1 { gap: .9rem; }
  .wordmark { width: 9.2rem; }
  .contact {
    flex-direction: column;
    gap: .25rem;
    margin-top: 1.6rem;
    font-size: clamp(.66rem, 3vw, .82rem);
    line-height: 1.45;
  }
  .contact > span { display: none; }
  .copyright { margin-top: .85rem; }
  .side-note {
    right: .55rem;
    bottom: 1rem;
    font-size: .58rem;
    letter-spacing: .16em;
  }
}

@media (max-height: 700px) and (min-width: 801px) {
  .page { padding-top: 2rem; padding-bottom: 1.5rem; }
  .hero { padding: 2rem 0; }
  .hero h1 { width: min(100%, 49rem); }
  .wordmark { width: 8.4rem; }
  .contact { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .line-inner,
  .footer,
  .status span,
  .side-note {
    animation: none;
  }
  .line-inner { opacity: 1; transform: none; }
  .footer { opacity: 1; transform: none; }
  .side-note { opacity: 1; transform: rotate(180deg); }
  .contact a::after { transition: none; }
}
