/* ==========================================================================
   Beldon Capital — coming soon
   Palette : paper #F5F4F1 · ink #0C0C0B · soft #56544E · faint #8A8781
   Type    : Marcellus (display) · Jost (utility / body)
   ========================================================================== */

:root{
  --paper:      #F5F4F1;
  --paper-lift: #FBFAF8;
  --paper-sink: #EDECE8;
  --ink:        #0C0C0B;
  --ink-soft:   #56544E;
  --ink-faint:  #8A8781;
  --hair:       rgba(12, 12, 11, .16);
  --hair-soft:  rgba(12, 12, 11, .09);

  --gutter: clamp(10px, 1.7vw, 22px);
  --pad:    clamp(20px, 3.2vw, 44px);
  --ease:   cubic-bezier(.22, .61, .36, 1);
}

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

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  padding: var(--gutter);
  min-height: 100svh;
  background:
    radial-gradient(115% 85% at 50% 34%, var(--paper-lift) 0%, var(--paper) 52%, var(--paper-sink) 100%);
  color: var(--ink);
  font-family: "Jost", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fine paper tooth over the whole surface --------------------------------- */
.grain{
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The plate: a hairline frame holding the whole composition ---------------- */
.plate{
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 5vh, 56px);
  min-height: calc(100svh - var(--gutter) * 2);
  padding: var(--pad);
  border: 1px solid var(--hair);
}

/* Corner metadata ---------------------------------------------------------- */
.meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(9.5px, 1.05vw, 11px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: rise .9s var(--ease) 1.85s forwards;
}

.meta--bottom{ animation-delay: 1.95s; }

.meta__item{ white-space: nowrap; }

.meta__item--end{ text-align: right; }

.meta__link{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}

.meta__link:hover,
.meta__link:focus-visible{
  color: var(--ink);
  border-bottom-color: var(--hair);
}

/* Centre stage ------------------------------------------------------------- */
.stage{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

/* The mark, drawn in ---------------------------------------------------- */
.mark{
  width: auto;
  height: clamp(92px, 13vw, 150px);
  color: var(--ink);
  overflow: visible;
}

.mark__bowl,
.mark__stem{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.25s var(--ease) forwards;
}

.mark__bowl{ animation-delay: .15s; }
.mark__stem{ animation-delay: .78s; animation-duration: .6s; }

.mark__dot{
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: dot .5s var(--ease) 1.28s forwards;
}

/* Wordmark ----------------------------------------------------------------- */
.wordmark{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .46em;
  margin: clamp(26px, 4vh, 44px) 0 0;
  font-family: "Marcellus", "Optima", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.45rem, 5vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-wrap: balance;
}

.wordmark__word{ display: inline-flex; }

.wordmark span span{
  display: inline-block;
  opacity: 0;
  transform: translateY(.32em);
  animation: letter .85s var(--ease) forwards;
}

.wordmark__word:nth-child(1) span:nth-child(1){ animation-delay: 1.30s; }
.wordmark__word:nth-child(1) span:nth-child(2){ animation-delay: 1.35s; }
.wordmark__word:nth-child(1) span:nth-child(3){ animation-delay: 1.40s; }
.wordmark__word:nth-child(1) span:nth-child(4){ animation-delay: 1.45s; }
.wordmark__word:nth-child(1) span:nth-child(5){ animation-delay: 1.50s; }
.wordmark__word:nth-child(1) span:nth-child(6){ animation-delay: 1.55s; }
.wordmark__word:nth-child(2) span:nth-child(1){ animation-delay: 1.62s; }
.wordmark__word:nth-child(2) span:nth-child(2){ animation-delay: 1.67s; }
.wordmark__word:nth-child(2) span:nth-child(3){ animation-delay: 1.72s; }
.wordmark__word:nth-child(2) span:nth-child(4){ animation-delay: 1.77s; }
.wordmark__word:nth-child(2) span:nth-child(5){ animation-delay: 1.82s; }
.wordmark__word:nth-child(2) span:nth-child(6){ animation-delay: 1.87s; }
.wordmark__word:nth-child(2) span:nth-child(7){ animation-delay: 1.92s; }

.eyebrow{
  margin: clamp(14px, 2vh, 20px) 0 0;
  font-size: clamp(9.5px, 1.05vw, 11px);
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: rise .9s var(--ease) 2.05s forwards;
}

.rule{
  display: block;
  width: clamp(40px, 6vw, 64px);
  height: 1px;
  margin: clamp(30px, 4.6vh, 46px) 0;
  background: var(--hair);
  transform: scaleX(0);
  animation: sweep .9s var(--ease) 2.15s forwards;
}

.lede{
  max-width: 46ch;
  margin: 0;
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  line-height: 1.85;
  letter-spacing: .012em;
  color: var(--ink-soft);
  text-wrap: pretty;
  opacity: 0;
  animation: rise 1s var(--ease) 2.3s forwards;
}

/* Sign-up ------------------------------------------------------------------ */
.signup{
  width: min(380px, 100%);
  margin-top: clamp(38px, 6vh, 64px);
  text-align: left;
  opacity: 0;
  animation: rise 1s var(--ease) 2.5s forwards;
}

.signup__label{
  display: block;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.signup__field{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  transition: border-color .45s var(--ease);
}

.signup__field:focus-within{ border-bottom-color: var(--ink); }

.signup__input{
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .02em;
}

.signup__input::placeholder{ color: var(--ink-faint); opacity: 1; }
.signup__input:focus{ outline: none; }

.signup__submit{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  margin: -6px -4px -6px 0;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

.signup__submit svg{ width: 15px; height: 15px; }

.signup__submit:hover{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.signup__submit:focus-visible,
.meta__link:focus-visible,
.signup__input:focus-visible{
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.signup__note,
.signup__status{
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

.signup__status{
  display: none;
  color: var(--ink-soft);
}

.signup__status.is-visible{ display: block; }
.signup__status.is-error{ color: var(--ink); }

.signup.is-sent .signup__field,
.signup.is-sent .signup__note,
.signup.is-sent .signup__label{ display: none; }

.signup.is-sent .signup__status{
  margin-top: 0;
  font-size: 13.5px;
  letter-spacing: .03em;
  color: var(--ink-soft);
}

/* 404 ---------------------------------------------------------------------- */
.notfound__title{
  margin: clamp(26px, 4vh, 44px) 0 0;
  font-family: "Marcellus", "Optima", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise .9s var(--ease) 1.35s forwards;
}

.link{
  display: inline-block;
  margin-top: clamp(28px, 4.4vh, 44px);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: rise .9s var(--ease) 1.6s forwards;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}

.link:hover,
.link:focus-visible{
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.link:focus-visible{ outline: 1px solid var(--ink); outline-offset: 6px; }

/* Small screens ------------------------------------------------------------ */
@media (max-width: 560px){
  .plate{ gap: 32px; }
  .meta{ font-size: 9px; letter-spacing: .16em; }
  .meta__long{ display: none; }
  .lede{ font-size: 14.5px; line-height: 1.8; }
}

/* Short viewports: keep the whole composition on one screen */
@media (max-height: 720px){
  :root{ --pad: clamp(16px, 2.4vw, 26px); }
  .plate{ gap: clamp(16px, 2.6vh, 28px); }
  .mark{ height: clamp(66px, 12.5vh, 104px); }
  .wordmark{ font-size: clamp(1.3rem, 4.4vw, 2.1rem); }
  .lede{ font-size: 14px; line-height: 1.7; }
  .signup{ margin-top: clamp(22px, 4vh, 40px); }
}

/* Motion preferences ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .meta,
  .eyebrow,
  .lede,
  .signup,
  .notfound__title,
  .link,
  .rule,
  .mark__dot,
  .mark__bowl,
  .mark__stem,
  .wordmark span span{
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

/* Keyframes ---------------------------------------------------------------- */
@keyframes draw{
  from{ stroke-dashoffset: 1; }
  to{ stroke-dashoffset: 0; }
}

@keyframes dot{
  from{ opacity: 0; transform: scale(.4); }
  to{ opacity: 1; transform: scale(1); }
}

@keyframes letter{
  from{ opacity: 0; transform: translateY(.32em); }
  to{ opacity: 1; transform: translateY(0); }
}

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

@keyframes sweep{
  from{ transform: scaleX(0); }
  to{ transform: scaleX(1); }
}
