:root {
  --cream: #b1a43f;
  --paper: #fffefa;
  --ink: #1d1e1b;
  --smoke: #565750;
  --hairline: #e9e4d7;
  --red: #df1715;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

/* Screens & Identity */
.landing-screen, .docs-screen { min-height: 100svh; }
.landing-identity, .docs-identity { min-height: 100svh; display: grid; place-items: center; background: var(--cream); }
.identity-copy { display: flex; width: min(100% - 3rem, 48rem); flex-direction: column; align-items: center; text-align: center; }
.wordmark { margin: 0; color: var(--paper); font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 900; letter-spacing: -0.09em; line-height: 0.84; }
.wordmark-mark { display: inline-block; width: 0.17em; height: 0.17em; margin: 0 0.075em 0.13em 0.13em; vertical-align: baseline; background: var(--red); }

/* Social Marks on Landing Page */
.social-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1.2rem, 2.5vh, 2rem);
}
.social-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: var(--smoke);
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, transform 180ms ease;
}
.social-mark svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.social-mark:hover {
  color: var(--red);
  transform: translateY(-1px);
}
.social-mark:focus-visible {
  color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Status Copy */
.status-copy { margin-top: clamp(3rem, 7vh, 5.5rem); color: var(--smoke); }
.status-copy p, .docs-link, .panel-eyebrow, .card-label, .form-group label {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.52em;
}
.status-copy span {
  display: block;
  margin-top: 0.55rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 700;
}

/* Navigation Links */
.docs-link {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  color: var(--smoke);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}
.docs-link:hover, .docs-link:focus-visible {
  color: var(--red);
  outline: none;
  transform: translateY(-2px);
}
.landing-nav, .identity-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 1.8vh, 1.25rem);
  margin-top: clamp(2.5rem, 5vh, 3.8rem);
}
.landing-nav .docs-link, .identity-nav .docs-link {
  margin-top: 0;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
}
.identity-nav .docs-link[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Document / Content Panel */
.docs-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(38rem, 1.25fr);
  background: var(--cream);
}
.docs-identity { min-height: 100svh; }
.document-panel {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.65);
  border-radius: 1.75rem 0 0 1.75rem;
  background: var(--paper);
  box-shadow: -18px 0 50px rgba(43,40,29,0.08);
  animation: panel-enter 520ms cubic-bezier(0.16,1,0.3,1) both;
}
.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem,4vw,3.25rem) clamp(1.5rem,4vw,3.5rem) 1.35rem;
  border-bottom: 1px solid var(--hairline);
}
.panel-eyebrow { color: var(--smoke); font-size: 0.67rem; letter-spacing: 0.25em; }
.quiet-status {
  display: inline-block;
  width: 0.52rem;
  height: 0.52rem;
  margin-right: 0.48rem;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(223,23,21,0.25);
  animation: quiet-pulse 2.8s ease-in-out infinite;
}
.panel-header h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.3rem,2.4vw,2rem);
  letter-spacing: -0.045em;
  color: var(--ink);
}
.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  padding-top: 0.22rem;
}
.panel-action, .panel-footer a {
  color: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.panel-action { white-space: nowrap; }
.panel-action:hover, .panel-action:focus-visible,
.panel-footer a:hover, .panel-footer a:focus-visible {
  color: var(--red);
  outline: none;
}

/* Stage containers */
.pdf-stage { min-height: 0; padding: clamp(1rem,2.2vw,2rem); background: #f5f4f1; }
.pdf-stage iframe {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  border: 1px solid #dedbd2;
  border-radius: 0.7rem;
  background: #fff;
}
.panel-stage {
  min-height: 0;
  padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--paper);
  overflow-y: auto;
}
.stage-container {
  max-width: 42rem;
  margin: 0 auto;
}
.stage-lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink);
}

/* Forms & Notices */
.contact-form, .partner-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.subtle-fallback {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--smoke);
}
.subtle-fallback p {
  margin: 0;
}
.subtle-fallback a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 150ms ease;
}
.subtle-fallback a:hover, .subtle-fallback a:focus-visible {
  color: var(--red);
  outline: none;
}

/* Partner Interest Form & Notice */
.notice-box {
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--cream);
  border-radius: 0 0.5rem 0.5rem 0;
  background: #fbfaf5;
  margin-bottom: 2.25rem;
}
.notice-box p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--smoke);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-group label {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  color: var(--ink);
}
.form-group label .req {
  color: var(--red);
  font-weight: 400;
  letter-spacing: normal;
}
.form-group label .opt {
  color: var(--smoke);
  font-weight: 400;
  letter-spacing: normal;
}
.form-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 0.4rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(29, 30, 27, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}
.form-error {
  padding: 0.85rem 1.1rem;
  border-radius: 0.4rem;
  background: #fdf2f2;
  border: 1px solid rgba(223, 23, 21, 0.3);
  color: var(--red);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}
.form-actions {
  margin-top: 0.5rem;
}
.form-button {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 0.4rem;
  padding: 0.95rem 1.8rem;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
.form-button:hover {
  background: var(--red);
  transform: translateY(-1px);
}
.form-button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.privacy-note {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--smoke);
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}

/* Panel Footer & Navigation */
.panel-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.05rem clamp(1.5rem,4vw,3.5rem);
  border-top: 1px solid var(--hairline);
  color: var(--smoke);
  font-size: 0.76rem;
}
.panel-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.panel-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  width: 100%;
  padding-top: 0.65rem;
  border-top: 1px solid var(--hairline);
}
.panel-footer-nav a {
  color: var(--smoke);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 150ms ease;
}
.panel-footer-nav a:hover, .panel-footer-nav a:focus-visible {
  color: var(--red);
  outline: none;
}
.panel-footer-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Animations & Media Queries */
@keyframes panel-enter { from { opacity: 0; transform: translateX(6%); } to { opacity: 1; transform: translateX(0); } }
@keyframes quiet-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(223,23,21,0.2); opacity: 0.72; } 50% { box-shadow: 0 0 0 0.45rem rgba(223,23,21,0); opacity: 1; } }

@media (max-width: 900px) {
  .docs-screen { display: block; }
  .docs-identity { display: none; }
  .document-panel { min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 540px) {
  .identity-copy { width: min(100% - 2rem, 30rem); }
  .wordmark { font-size: clamp(3.15rem,14vw,5.1rem); }
  .status-copy { margin-top: 3.5rem; }
  .status-copy p, .docs-link { font-size: 0.72rem; letter-spacing: 0.38em; }
  .status-copy span { font-size: 0.92rem; }
  .landing-nav, .identity-nav { gap: 0.75rem; margin-top: 2rem; }
  .panel-header { gap: 1rem; padding: 1.3rem 1.15rem 1rem; }
  .panel-actions { gap: 0.6rem 0.9rem; }
  .panel-action { font-size: 0.65rem; }
  .pdf-stage { padding: 0.85rem; }
  .pdf-stage iframe { min-height: 24rem; }
  .panel-stage { padding: 1.3rem 1.15rem; }
  .panel-footer { padding: 0.9rem 1.15rem; font-size: 0.68rem; }
  .panel-footer-meta { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .panel-footer-nav { gap: 0.55rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .document-panel, .quiet-status, .social-mark, .docs-link, .panel-action, .form-button { animation: none; transition: none; }
}
