/* =========================================================
   DUNPIKE — styles
   Colors and fonts live in :root so you can change them in one place.
   ========================================================= */

:root {
  --black: #0a0a0a;
  --white: #f2f1ee;
  --grey: #8a8a86;        /* muted text on black */
  --grey-dark: #5f5f5b;   /* muted text on white */
  --line: rgba(242, 241, 238, 0.16);
  --line-dark: rgba(10, 10, 10, 0.14);

  --font-wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 4vw, 56px);   /* page side padding */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Logo path styling (used in every inline SVG copy of the mark) */
svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 14;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* ---------- Header ----------
   mix-blend-mode: difference makes the white header turn black
   automatically when it scrolls over a light section. */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform 0.5s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark { width: 26px; height: 26px; }
.brand__word {
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.28em;
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: 12px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Shared bits ---------- */
section { padding: clamp(96px, 14vw, 200px) var(--pad); }

.light {
  background: var(--white);
  color: var(--black);
}

.label {
  margin: 0 0 40px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.light .label { color: var(--grey-dark); }

.statement {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-wide);
  font-stretch: 100%;
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.muted { color: var(--grey); }
.light .muted { color: var(--grey-dark); }

/* Scroll reveal (script.js adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(16px, 2vw, 28px);
  overflow: hidden;
}

/* Big logo that "draws" itself on load */
.hero__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(46vw, 46vh);
  height: auto;
  transform: translate(-50%, -62%);
  color: var(--white);
}
.hero__mark path {
  stroke-width: 6;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s var(--ease) 0.3s forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero__bottom { position: relative; }

.hero__tag {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* Full-width wordmark. script.js sizes it to fill the screen exactly. */
.hero__word {
  display: inline-block;   /* so script.js can measure the text's real width */
  margin: 0;
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 18vw;
  line-height: 0.8;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 1.4s var(--ease) 0.9s forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Mission ---------- */
.mission .statement { max-width: 24ch; }

/* ---------- Capabilities ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.section-head .label,
.section-head__note { margin-bottom: 24px; }
.section-head__note {
  margin-top: 0;
  font-size: 14px;
  color: var(--grey);
}

.cap-list { display: grid; }

.cap {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.cap:hover { padding-left: 16px; }

.cap__num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--grey);
}
.cap__title {
  margin: 0;
  font-family: var(--font-wide);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cap__text {
  margin: 0;
  max-width: 42ch;
  color: var(--grey);
}

/* ---------- Visual band ---------- */
.band {
  position: relative;
  height: 80vh;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.band__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.band__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vh, 70vw);
  transform: translate(-50%, -50%);
  color: var(--white);
  will-change: transform;
}
.band__mark path { stroke-width: 2; }
.band__meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey);
}

/* ---------- Careers ---------- */
.careers__text {
  max-width: 44ch;
  margin: 32px 0 48px;
  font-size: 18px;
  color: var(--grey-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn:hover,
.btn:focus-visible {
  background: var(--black);
  color: var(--white);
}

/* ---------- Contact ---------- */
.contact__email {
  display: inline-block;
  font-family: var(--font-wide);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(32px, 7vw, 120px);
  letter-spacing: -0.02em;
  line-height: 1;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
  word-break: break-word;
}
.contact__email:hover,
.contact__email:focus-visible { border-color: currentColor; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer__left,
.footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer__mark { width: 18px; height: 18px; color: var(--white); }
#clock { font-variant-numeric: tabular-nums; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .menu-btn { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: var(--pad);
    background: #000;
    font-family: var(--font-wide);
    font-stretch: 112%;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .menu-open .nav {
    opacity: 1;
    pointer-events: auto;
  }
  /* Keep the full-screen menu solid black while it's open */
  .menu-open .header { mix-blend-mode: normal; }

  .cap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero__mark { width: 62vw; }
}

/* Respect people who turn off animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .hero__word { opacity: 1; transform: none; }
  .hero__mark path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
