/* Fillwell Co coming-soon page. Tokens match fillwell/BRAND.md. */
:root {
  --stone: #F3F4F1;
  --spruce: #1C2623;
  --euc: #546960;
  --soft: #A9B8AF;

  /* Wordmark size: follows the width, but never so tall it crowds a short laptop screen. */
  --f: clamp(40px, min(11vw, 14vh), 128px);
  /* The fill line, as a share of the screen height. The wordmark is placed from it. */
  --line: 44%;
  --gap: clamp(28px, 6vh, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--spruce);
  color: var(--spruce);
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.layer { position: absolute; inset: 0; }
.top { background: var(--stone); color: var(--spruce); }
.under {
  background: var(--spruce);
  color: var(--stone);
  clip-path: inset(var(--line) 0 0 0);
  animation: rise 2.8s cubic-bezier(.2, .75, .25, 1) .2s both;
}
/* No "to" frame: it rises to wherever the line sits now, so a resize mid-fill still lands right. */
@keyframes rise { from { clip-path: inset(100% 0 0 0); } }

/* The wordmark. Its name sits so the fill line crosses the letters a little below their middle. */
.mark {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--line) - var(--f) * .56);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 300 var(--f)/1 Jost, Futura, "Avenir Next", sans-serif;
}
.name { letter-spacing: .3em; padding-left: .3em; } /* padding balances the space after the last L */
.co {
  display: flex;
  align-items: center;
  gap: .4em;
  margin-top: .42em;
  font-size: .27em;
  font-weight: 400;
}
.co-text { letter-spacing: .38em; padding-left: .38em; }
.rule { display: block; width: 2.6em; border-top: 1px solid currentColor; }

.kicker {
  position: absolute;
  left: 0;
  right: 0;
  top: max(clamp(24px, 6vh, 56px), env(safe-area-inset-top));
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  padding-left: .32em;
  text-transform: uppercase;
  color: var(--euc);
}

.below {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--line) + var(--f) * 1.05 + var(--gap));
  padding: 0 24px;
  text-align: center;
}
.tag { margin: 0; font: 300 clamp(22px, 2.4vw, 30px)/1.25 Jost, Futura, sans-serif; letter-spacing: .02em; }
.lede { margin: 14px auto 0; max-width: 31em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--soft); text-wrap: balance; }
.contact { margin: 22px 0 0; font-size: 15px; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  text-decoration-color: rgba(243, 244, 241, .35);
  transition: text-decoration-color .2s;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--soft); outline-offset: 4px; border-radius: 2px; }

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--soft);
}
.foot nav { display: flex; gap: 28px; }
.foot p { margin: 0; }

@media (max-width: 560px) {
  .foot { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .under { animation: none; }
  a { transition: none; }
}
