/* Buildsfer coming soon */

:root {
  --ink: #022848;        /* logo navy */
  --slate: #4e6172;      /* logo slate */
  --orange: #fd7417;     /* logo orange */
  --paper: #f4f5f6;      /* plastered wall */
  --rule: #d8dce1;
  --mist: #a9b7c6;       /* secondary text on navy */
  --white: #ffffff;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Top bar ---------- */

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: clamp(130px, 14vw, 172px);
  height: auto;
}

.topbar-mail {
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.topbar-mail:hover { color: var(--slate); }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 4.5rem) var(--gutter) 0;
  min-height: calc(86svh - 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  column-gap: clamp(2rem, 6vw, 6rem);
}

.hero-copy {
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 12ch;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--slate);
}

/* ---------- Countdown ---------- */

.countdown {
  margin-top: clamp(2rem, 5vh, 3rem);
}

.countdown-caption {
  margin: 0 0 .75rem;
  font-weight: 600;
  font-size: 1rem;
}

.countdown-row {
  display: flex;
  border-top: 2px solid var(--ink);
  max-width: 34rem;
}

.unit {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  padding: .7rem .9rem 0 0;
}
.unit + .unit {
  border-left: 1px solid var(--rule);
  padding-left: .9rem;
}

.value {
  display: block;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  font-variation-settings: "wdth" 104;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.value.tick { animation: tick .45s var(--ease); }

.unit:last-child .value { color: var(--orange); }

.label {
  margin-top: .35rem;
  font-size: .875rem;
  color: var(--slate);
}

.countdown-done {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  border-top: 2px solid var(--ink);
  padding-top: .8rem;
  max-width: 34rem;
}

/* ---------- Actions ---------- */

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: .95rem 1.4rem;
  border-radius: 3px;
  transition: background-color .2s, color .2s;
}
.button:hover { background: var(--orange); color: var(--ink); }

.actions-note {
  margin: 0;
  font-size: .9rem;
  color: var(--slate);
  max-width: 19rem;
}

/* ---------- The mark, standing on the ground line ---------- */

.hero-mark {
  display: flex;
  justify-content: flex-end;
}

.mark {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 344 / 358;
  /* the bars' base sits at 96.9% of the image height; push it onto the ground line */
  transform: translateY(3.1%);
}

.piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ground {
  height: 4px;
  background: var(--orange);
  transform-origin: left center;
  position: relative;
  z-index: 1;
}

/* ---------- Foundation: services + footer ---------- */

.foundation {
  background: var(--ink);
  color: var(--white);
}

.foundation-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
}

.foundation-intro {
  max-width: 38rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.foundation-intro p {
  margin: .9rem 0 0;
  color: var(--mist);
}

.services {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem);
}

.service-group {
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 1.1rem;
}

.service-group h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  font-variation-settings: "wdth" 106;
}

.service-group p {
  margin: .5rem 0 0;
  font-size: .95rem;
  color: var(--mist);
}

.service-group ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.service-group li {
  padding: .55rem 0;
  font-size: .98rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--mist);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer p { margin: 0; }
.footer a { color: var(--white); text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* ---------- Load sequence: ground is laid, bars rise, beams are lowered in ---------- */

.js .ground { animation: lay .8s var(--ease) both; }

.js .bar {
  animation: rise .9s var(--ease) both;
}
.js .bar-1 { animation-delay: .55s; }
.js .bar-2 { animation-delay: .7s; }
.js .bar-3 { animation-delay: .85s; }

.js .beam { animation: lower .8s var(--ease) both; }
.js .b-bottom { animation-delay: 1.35s; }
.js .b-middle { animation-delay: 1.5s; }
.js .b-top    { animation-delay: 1.65s; }

.js .hero-copy,
.js .topbar { animation: appear .9s ease both; }
.js .topbar { animation-delay: .1s; }
.js .hero-copy { animation-delay: .25s; }

@keyframes lay {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes rise {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes lower {
  from { transform: translateY(-22%); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes appear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tick {
  from { transform: translateY(-.18em); opacity: .25; }
  to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy { padding-bottom: 2.5rem; }
  .hero-mark { justify-content: flex-end; }
  .mark { width: 150px; }
  .topbar-mail { font-size: .875rem; }
  .actions-note { max-width: none; }
}

@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
  .unit { padding-right: .5rem; }
  .unit + .unit { padding-left: .6rem; }
  .label { font-size: .8rem; }
}
