/* Aerospace Valley opt-in.
   Flat classified-document paper. Hairlines, even fills, no elevation.
   Single accent: burnt amber, taken from the TLP:AMBER banner of the specimen. */

:root {
  /* surfaces */
  --bg-page: #F5F5F4;
  --bg-section: #ECECEA;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;

  /* ink */
  --ink: #1A1A1A;
  --ink-strong: #111110;
  --ink-body: #2C2B28;
  --ink-muted: #3F3E3A;
  --ink-faint: #4A4944;

  /* rules */
  --line: #DAD9D4;
  --line-strong: #B5B3AC;

  /* accent */
  --accent: #8F3F12;
  --accent-deep: #6C2E0B;
  --accent-wash: #F7EFE7;
  --accent-line: #D6B695;

  --font-sans: "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, monospace;

  --text-body: 1.0625rem;
  --lh-base: 1.7;

  /* 4px spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --page-pad: clamp(24px, 6vw, 112px);
  --max: 1600px;
}

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

html {
  background: var(--bg-page);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-wrap: pretty;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--ink-body);
}

p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 14px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 50;
}

.skip:focus {
  left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

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

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s6);
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--page-pad);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.wordmark span {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.brand-tagline {
  max-width: 52ch;
  padding-left: 48px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

.partners {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s2);
  text-align: right;
  min-width: 0;
}

.seilks-logo {
  display: block;
  height: 28px;
  width: auto;
}

.partner-note {
  max-width: 38ch;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

.nw {
  white-space: nowrap;
}

/* ----------------------------------------------------------------- stage */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "lead visual"
    "sub visual"
    "pitch visual";
  column-gap: clamp(48px, 5vw, 80px);
  row-gap: var(--s7);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5.5vh, 72px) var(--page-pad) var(--s9);
  align-items: start;
}

.lead { grid-area: lead; }
#subheading { grid-area: sub; }

.visual {
  grid-area: visual;
  position: static;
  align-self: start;
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
}

@media (min-width: 1100px) {
  .visual {
    position: sticky;
    top: var(--s5);
  }
}

.pitch { grid-area: pitch; }

#headline {
  margin: 0 0 var(--s6);
  color: var(--ink-strong);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.offer {
  margin: 0 0 var(--s4);
  color: var(--ink-strong);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  max-width: none;
}

.jump-line {
  margin: 0;
}

.jump {
  display: inline-block;
  color: var(--accent);
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 4px;
}

.jump:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

#subheading {
  margin: 0;
  max-width: none;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink-body);
}

#subheading p {
  margin: 0 0 1em;
}

#subheading p:last-child {
  margin-bottom: 0;
}

#subheading strong {
  color: var(--ink-strong);
  font-weight: 600;
}

.scan-list {
  list-style: none;
  margin: 0 0 1.25em;
  padding: 0;
}

.scan-list > li {
  position: relative;
  margin: 0;
  padding: 0.45em 0 0.45em 1.1em;
  color: var(--ink-strong);
  font-weight: 600;
  line-height: 1.45;
}

.scan-list > li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

/* --------------------------------------------------------------- bullets */

#bullets {
  list-style: none;
  margin: 0 0 var(--s7);
  padding: 0;
  max-width: none;
  border-top: 1px solid var(--line);
}

#bullets > li {
  margin: 0;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

#bullets > li strong {
  display: block;
  margin: 0 0 0.35em;
  color: var(--ink-strong);
  font-weight: 600;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ form */

#opt-in-form {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: var(--s6);
  max-width: 40rem;
}

.form-urgency {
  margin: 0 0 var(--s5);
  font: 600 1.0625rem/1.45 var(--font-sans);
  color: var(--ink-strong);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--s4);
}

.field-row .field {
  margin-bottom: var(--s4);
}

.field label {
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  background: var(--bg-input);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font: 400 16px/1 var(--font-sans);
}

.field input::placeholder {
  color: var(--ink-faint);
}

.field input:hover {
  border-color: var(--ink-muted);
}

.field input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--s5);
  min-height: 52px;
  padding: 0 16px;
  background: var(--accent);
  color: #FFFFFF;
  font: 600 0.875rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.cta:hover {
  background: var(--accent-deep);
}

.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.cta:active {
  background: var(--ink);
}

.cta[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.cta[disabled]:hover {
  background: var(--accent);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-note {
  margin: var(--s4) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

#form-confirmation {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.0625rem;
  line-height: 1.55;
}

#form-error {
  margin: var(--s4) 0 0;
  color: var(--ink-strong);
  font-size: 0.9375rem;
  line-height: 1.5;
}

#form-confirmation[hidden],
[hidden] {
  display: none !important;
}

/* ----------------------------------------------------- the deliverable */

.report-shot {
  margin: 0;
}

.report-cover-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-card);
  cursor: zoom-in;
  text-align: left;
}

.zoom-hint {
  display: none;
}

.report-cover-btn:hover,
.report-cover-btn:focus-visible {
  border-color: var(--ink-muted);
}

#report-cover {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.tally {
  font: 500 0.8125rem/1 var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
}

/* ------------------------------------------------------------ why offered */

#why-offered {
  background: var(--bg-section);
  border-top: 1px solid var(--line);
}

.why-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s8) var(--page-pad);
}

#why-offered h2 {
  margin: 0 0 var(--s4);
  color: var(--ink-strong);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
}

#why-offered p {
  margin: 0;
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-body);
}

/* ---------------------------------------------------------------- footer */

#site-footer {
  background: var(--bg-page);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s7) var(--page-pad) var(--s8);
}

.footer-top {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.gicat-mark {
  flex: 0 0 auto;
  height: 22px;
  width: auto;
  display: block;
}

.footer-copy {
  margin: 0;
  max-width: 78ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

.footer-copy a {
  color: var(--ink-muted);
}

#rgpd {
  max-width: 78ch;
  margin: var(--s5) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font: 400 0.75rem/1.6 var(--font-sans);
  color: var(--ink-faint);
}

#rgpd:target {
  color: var(--ink-body);
  border-top-color: var(--accent);
}

/* -------------------------------------------------------------- lightbox */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(26, 26, 26, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5) var(--page-pad);
}

#lightbox[hidden] {
  display: none !important;
}

#lightbox .lightbox-frame {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 94vh;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  overflow: auto;
}

#lightbox img {
  display: block;
  max-width: 100%;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
  font: 500 1.15rem/1 var(--font-mono);
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1099px) {
  /* Single column: switch off the grid and drive the reading order with
     flow order. `.pitch` dissolves so its bullets and form become direct
     flex items, letting the report specimen slot in between them. */
  .stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s6);
    padding-top: var(--s7);
  }

  .pitch {
    display: contents;
  }

  .lead { order: 1; }
  #subheading { order: 2; }
  #bullets { order: 3; margin-bottom: 0; }
  .visual { order: 4; }
  #opt-in-form { order: 5; }

  .visual {
    position: static;
    max-width: 42rem;
    width: 100%;
  }

  #headline {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
  }

}

@media (max-width: 760px) {
  :root {
    --page-pad: 20px;
    --text-body: 1.0625rem;
  }

  /* Dense header led by the two logos on a single row. `.brand` and
     `.partners` dissolve so their children become direct grid items,
     letting the OwlyScan lockup and the SEILKS logo share the top line
     (space-between) while the supporting texts wrap underneath. */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--s4);
    row-gap: 6px;
    grid-template-areas:
      "lockup seilks"
      "tagline tagline"
      "note note";
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand,
  .partners {
    display: contents;
  }

  .brand-lockup {
    grid-area: lockup;
  }

  .seilks-logo {
    grid-area: seilks;
    justify-self: end;
    /* The lockup reads "SEI · DIGITAL PARTNER"; keep it tall enough that
       the subtitle stays legible and never looks truncated. */
    height: 34px;
  }

  .brand-tagline {
    grid-area: tagline;
    padding-left: 0;
    margin-top: 2px;
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: none;
  }

  .partner-note {
    grid-area: note;
    text-align: left;
    font-size: 0.6875rem;
    line-height: 1.4;
    max-width: none;
  }

  .stage {
    padding: var(--s6) var(--page-pad) var(--s7);
    row-gap: var(--s5);
  }

  #headline {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: var(--s5);
  }

  .offer {
    font-size: 1.0625rem;
    max-width: none;
  }

  #subheading,
  #bullets > li {
    font-size: 1.0625rem;
  }

  .jump-line {
    margin-bottom: var(--s5);
  }

  .visual {
    max-width: none;
  }

  /* Crop the specimen to its head — TLP:AMBER banner, title, first rows —
     instead of shrinking the whole page into an unreadable grey chip. */
  #report-cover {
    height: 300px;
    object-fit: cover;
    object-position: top;
  }

  /* The image stays the sole tappable trigger for the lightbox; the 300px
     crop gives it a comfortable target well over 44px. The chip is a
     visual cue only — pointer-events none so the button still receives
     the tap. */
  .report-cover-btn {
    cursor: pointer;
  }

  .zoom-hint {
    display: flex;
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    pointer-events: none;
  }

  /* Restore emphasis to the urgency mentions: amber ink on amber wash. */
  .form-urgency {
    color: var(--accent);
    background: var(--accent-wash);
    border-left: 3px solid var(--accent);
    padding: var(--s3) var(--s4);
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #opt-in-form {
    padding: var(--s5) var(--s4);
    max-width: none;
  }

  .cta {
    min-height: 52px;
  }

  .why-inner {
    padding: var(--s6) var(--page-pad);
  }

  #why-offered p {
    font-size: 1.0625rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
  }

  .footer-inner {
    padding: var(--s6) var(--page-pad) var(--s7);
  }

  #lightbox {
    padding: 12px;
  }

  .lightbox-close {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  #headline {
    font-size: 1.35rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}
