/* Wall of Fame — "The Founding Era"
   Tokens and values follow design_handoff_founding_era/README.md.
   Border radius is 0 everywhere; there are no shadows — depth comes from
   the background glows and the panel fills. */

:root {
  /* Ground */
  --bg:            #0b0812;
  --glow-1:        #2b1745;
  --glow-2:        #1d1030;

  /* Surfaces */
  --panel-fill:    rgba(255, 255, 255, .03);
  --form-top:      #171021;
  --form-bottom:   #120c1b;
  --input-fill:    #1c1526;

  /* Gold */
  --gold:          #d4b578;
  --gold-light:    #e8d3a3;
  --gold-pale:     #f0e0b8;
  --gold-deep:     #b8945a;
  --gold-deeper:   #a8854e;
  --gold-on:       #221a10;

  /* Purple accent */
  --purple:        #a78bda;

  /* Text */
  --text-strong:   #e6e0ec;
  --text:          #c9c2d0;
  --text-body:     #b5aec2;
  --text-muted:    #a99bb8;
  --text-faint:    #7d7290;

  /* Borders */
  --border-soft:   rgba(212, 181, 120, .18);
  --border:        rgba(212, 181, 120, .25);
  --border-input:  rgba(212, 181, 120, .2);

  /* Type */
  --font-display:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui:       'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --section-gap:   40px;
  --column-gap:    48px;
  --panel-pad:     32px;
  --form-gap:      16px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, fieldset, legend { margin: 0; }

/* Several toggled elements are display:flex, which would otherwise win
   over the [hidden] attribute's UA rule. */
[hidden] { display: none !important; }
fieldset { border: 0; padding: 0; min-width: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

::selection { background: #3a2a5e; color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- Frame */

.page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 78% 8%,  var(--glow-1) 0%, rgba(43, 23, 69, 0) 60%),
    radial-gradient(900px 600px at 85% 55%,  var(--glow-2) 0%, rgba(29, 16, 48, 0) 65%),
    var(--bg);
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* ------------------------------------------------------------ Masthead */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 6px;
  line-height: 1;
  color: var(--gold-light);
}

.wordmark-lg { font-size: 38px; }
.wordmark-star { color: var(--gold); }

.wordmark-sub {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-muted);
}

.private-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text);
}

/* -------------------------------------------------------------- Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "content form"
    "footer  form";
  column-gap: var(--column-gap);
  row-gap: var(--section-gap);
  align-items: start;
}

.content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  min-width: 0;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px;
  align-items: center;
  min-height: 420px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kicker {
  font-size: 14px;
  letter-spacing: 5px;
  font-weight: 500;
  color: var(--purple);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--gold-light);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title {
    background: linear-gradient(100deg, var(--gold-pale), var(--gold) 55%, var(--gold-deeper));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-subline {
  font-size: 17px;
  letter-spacing: 4px;
  font-weight: 500;
  color: var(--text-strong);
}

.gold-rule {
  width: 44px;
  border-top: 2px solid var(--gold);
}

.body-copy {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-body);
}

.hero-note {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--purple);
}

.hero-media { min-width: 0; height: 420px; }

/* -------------------------------------------------------------- Panels */

.panel {
  background: var(--panel-fill);
  border: 1px solid var(--border-soft);
  padding: var(--panel-pad);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.panel-star { font-size: 18px; color: var(--gold); }

.panel-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--gold-light);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-icon { flex: none; }

.pillar-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-light);
}

.pillar-body {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}

/* ------------------------------------------------------- What we build */

.building {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--text-strong);
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.build-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.build-media { height: 200px; min-width: 0; }

.build-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gold-light);
}

.build-body {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}

/* ------------------------------------------------------- Closing panel */

.closing {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px;
}

.closing-star { flex: none; }

.closing-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.closing-copy .body-copy { line-height: 1.6; }

.closing-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-strong);
}

/* -------------------------------------------------------------- Footer */

.site-footer {
  grid-area: footer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  text-align: center;
}

.footer-note {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-faint);
}

.footer-accent { color: var(--purple); }

/* --------------------------------------------------------------- Media */

.media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder shown until the real photograph is dropped into assets/. */
.media-placeholder { display: none; }

.media.is-empty img { display: none; }

.media.is-empty .media-placeholder {
  display: flex;
  align-items: flex-end;
  position: absolute;
  inset: 0;
  padding: 14px;
  border: 1px dashed var(--border);
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(43, 23, 69, .55) 0%, rgba(43, 23, 69, 0) 70%),
    rgba(255, 255, 255, .02);
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ----------------------------------------------------------- Form panel */

.form-panel {
  grid-area: form;
  align-self: start;
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, var(--form-top), var(--form-bottom));
  border: 1px solid var(--border);
  padding: 30px 26px;
}

.form-panel form,
.form-success {
  display: flex;
  flex-direction: column;
  gap: var(--form-gap);
}

.form-success { align-items: center; text-align: center; padding: 20px 0; }

.form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--gold-light);
  text-align: center;
}

.form-subline {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.choice-group legend {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--text);
}

.label-optional { color: var(--text-faint); }

.field input,
.field textarea {
  background: var(--input-fill);
  border: 1px solid var(--border-input);
  border-radius: 0;
  color: var(--text-strong);
  padding: 11px 12px;
  font-size: 14px;
  font-family: var(--font-ui);
  width: 100%;
}

.field textarea { resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--purple); }

.field-error {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--purple);
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text);
  cursor: pointer;
}

.choice input {
  accent-color: var(--purple);
  flex: none;
  margin: 0;
}

.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit {
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  border: none;
  border-radius: 0;
  color: var(--gold-on);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 15px 16px;
  cursor: pointer;
}

.submit:hover { filter: brightness(1.08); }
.submit:active { filter: brightness(.95); }

.submit[disabled] {
  cursor: default;
  filter: none;
  opacity: .6;
}

.form-status {
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--purple);
  border: 1px solid var(--border-input);
  padding: 10px 12px;
}

.privacy {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
}

.privacy svg { flex: none; margin-top: 2px; }

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

/* Below ~1024px the layout stacks: the form loses its sticky behaviour and
   follows the closing banner, and the card grids drop from 4 to 2 columns. */
@media (max-width: 1023px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "form"
      "footer";
  }

  .form-panel {
    position: static;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-media { height: 320px; }

  .pillars,
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .shell { padding: 0 20px 40px; }

  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-title { font-size: 44px; }
  .hero-media { height: 260px; }

  .panel { padding: 24px; }
  .closing { flex-direction: column; align-items: flex-start; padding: 24px; }

  .pillars,
  .build-grid { grid-template-columns: minmax(0, 1fr); }

  .form-panel { padding: 24px 20px; }
}
