:root {
  --ink: #0c0c0c;
  --paper: #f3f1ec;
  --mute: #8d8a84;
  --signal: #ff4f1a;
  --gutter: clamp(16px, 3.2vw, 48px);
  --band: clamp(64px, 11vh, 112px);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* One fixed screen: header / hero / billboard */
.frame {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 1fr var(--band);
  grid-template-columns: minmax(0, 1fr);
}

/* Header floats over the hero so the portrait bleeds to the top edge */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.4vh, 28px) var(--gutter);
}

.wordmark {
  text-decoration: none;
  font-weight: 800;
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.actions { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }

.link {
  background: none;
  border: 0;
  padding: 6px 0;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .25s ease;
}
.link:hover, .link:focus-visible { background-size: 100% 2px; outline: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  background: transparent;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill:hover, .pill:focus-visible { background: var(--paper); color: var(--ink); outline: none; }
.pill.solid { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.pill.solid:hover, .pill.solid:focus-visible { background: var(--paper); border-color: var(--paper); }

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
}

.copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 72px 0 0 var(--gutter);
  /* let the headline run over the portrait */
  margin-right: -40%;
  pointer-events: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(8px, 2vh, 20px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; }

h1 {
  margin: 0;
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.01em;
  /* sized by width and by height, so it never overflows a short screen */
  font-size: min(17.5vw, 27vh);
}
h1 span { display: block; }
h1 span:first-child { color: var(--signal); }

.line {
  margin: clamp(14px, 3vh, 32px) 0 0;
  max-width: 26ch;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--paper);
}

/* Portrait: cutout standing in an arch that rises out of the billboard */
.portrait {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 18% 3% 0;
  background: var(--signal);
  border-radius: 1000px 1000px 0 0;
}
.portrait img {
  position: relative;
  display: block;
  height: 90%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

/* Rolling billboard */
.billboard {
  position: relative;
  z-index: 3;
  /* clip the rolling track sideways, but let the title sit above the band */
  overflow-x: clip;
  overflow-y: visible;
  background: var(--signal);
  color: var(--ink);
  display: flex;
  align-items: center;
}

.track {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: roll var(--roll, 120s) linear infinite;
}
.billboard:hover .track { animation-play-state: paused; }

.billboard-title {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
}

.track li {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex: none;
  padding: 0 0.9em;
  font-weight: 900;
  font-stretch: 80%;
  text-transform: uppercase;
  font-size: clamp(26px, calc(var(--band) * 0.42), 46px);
  line-height: 1;
  white-space: nowrap;
}
.track li::after {
  content: "";
  width: 0.22em;
  height: 0.22em;
  margin-left: 1.3em;
  border-radius: 50%;
  background: var(--ink);
}
.track i {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

@keyframes roll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .track { animation-duration: calc(var(--roll, 120s) * 4); }
}

/* Dialogs */
dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgb(12 12 12 / 0.72); backdrop-filter: blur(6px); }
dialog[open] { animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
}
.sheet .kicker { margin: 0; color: #5c5a55; }
.sheet h2 {
  margin: 0 0 6px;
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 0.9;
}
.sheet .pill { border-color: var(--ink); }
.sheet .pill:not(.solid):hover, .sheet .pill:not(.solid):focus-visible { background: var(--ink); color: var(--paper); }
.sheet .pill.solid:hover, .sheet .pill.solid:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}
.close:hover, .close:focus-visible { background: rgb(12 12 12 / 0.08); outline: none; }

.email {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  word-break: break-all;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.sheet label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sheet input {
  font: inherit;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.sheet input:focus { outline: 3px solid var(--signal); outline-offset: 1px; }
.sheet button[type="submit"] { margin-top: 6px; }
.note { margin: 0; font-size: 15px; line-height: 1.4; }

/* Phones & narrow screens: stack, portrait fills the space behind the type */
@media (max-width: 760px) {
  .wordmark { font-size: 13px; }
  .pill { padding: 8px 18px; font-size: 14px; }
  .link { font-size: 14px; }

  .hero { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .portrait {
    grid-column: 1;
    grid-row: 1;
    padding-top: 64px;
  }
  .portrait::before { inset: 30% 12% 0; }
  .portrait img { height: 100%; }
  /* fade the bottom of the photo to black so the headline sits on dark */
  .portrait::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(transparent, var(--ink) 75%);
  }
  .copy {
    grid-row: 2;
    grid-column: 1;
    margin: -11vh 0 0;
    padding: 0 var(--gutter) calc(clamp(20px, 4vh, 36px) + 30px);
  }
  .kicker { color: var(--paper); }
  h1 { font-size: min(21vw, 17vh); }
  .line { max-width: 22ch; text-shadow: 0 1px 12px rgb(12 12 12 / 0.6); }
}

/* Client area: same frame, no billboard */
.members .frame { grid-template-rows: 1fr; }
.members .hero { grid-template-columns: minmax(0, 1fr); }
.members .copy { margin: 0; padding-right: var(--gutter); }
.members .line { max-width: 40ch; }
