@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --snow: #f5f3ef;
  --birch: #e8e4dd;
  --slate: #2d3436;
  --stone: #636e72;
  --pine: #4a6741;
  --frost: #b2bec3;
}

html {
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--slate);
  background-color: var(--snow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.signature {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.signature path {
  fill: var(--slate);
}

.sig-first,
.sig-last {
  clip-path: inset(0 100% 0 0);
}

.sig-first.reveal {
  clip-path: inset(0 0% 0 0);
  transition: clip-path 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}

.sig-last.reveal {
  clip-path: inset(0 0% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.noscript-title {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--slate);
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--stone);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
}

.subtitle.visible {
  animation: fadeIn 0.6s ease forwards;
}

/* Services Section */

.services {
  text-align: center;
  opacity: 0;
}

.services.visible {
  animation: fadeUp 0.5s ease forwards;
}

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.service-list li {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.02em;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--birch);
  border-radius: 100px;
  white-space: nowrap;
}

.links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.links a:hover {
  border-bottom-color: var(--stone);
}

/* Footer */

footer {
  padding: 2rem 1.5rem;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--frost);
  letter-spacing: 0.02em;
}

/* Animations */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (min-width: 640px) {
  main {
    padding: 3rem 2rem;
  }

  .hero {
    margin-bottom: 4rem;
  }

  .signature {
    max-width: 480px;
  }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .subtitle,
  .services {
    opacity: 1;
    animation: none !important;
  }

  .sig-first,
  .sig-last {
    clip-path: none !important;
    transition: none !important;
  }
}
