@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --ink: #07151b;
  --ink-soft: #0d222a;
  --paper: #f3f0e8;
  --paper-deep: #e3ddcf;
  --gold: #e0b361;
  --sea: #8fd5c0;
  --mist: #b7c8c5;
  --line: rgba(243, 240, 232, 0.18);
  --dark-line: rgba(7, 21, 27, 0.13);
  --shadow: 0 24px 60px rgba(7, 21, 27, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-underline-offset: 0.22em; }
button, input, textarea, select { font: inherit; }
button, .button { transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out); }
button:active, .button:active { transform: scale(.97); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font: 500 .72rem/1.3 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.display { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.055em; line-height: .96; }
.nav { position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--paper); font: 500 .83rem/1 'DM Mono', monospace; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(224,179,97,.7); border-radius: 50%; color: var(--gold); font-size: .68rem; letter-spacing: 0; }
.brand-logo { width: 42px; height: 42px; padding: 3px; object-fit: contain; background: var(--paper); border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 1rem; color: var(--mist); font-size: .85rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--paper); }
.nav-links .nav-cta { padding: .62rem .9rem; color: var(--ink); background: var(--gold); border-radius: 99px; font-weight: 700; }
.nav-links .nav-cta:hover { color: var(--ink); background: #f2ce85; }

.hero { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero::before { content: ''; position: absolute; width: 840px; height: 840px; top: -380px; right: -240px; border: 1px solid rgba(143,213,192,.26); border-radius: 44% 56% 67% 33% / 42% 32% 68% 58%; box-shadow: 0 0 0 70px rgba(143,213,192,.035), 0 0 0 140px rgba(224,179,97,.025); transform: rotate(-18deg); }
.hero::after { content: ''; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(243,240,232,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(243,240,232,.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero-content { position: relative; z-index: 1; min-height: 570px; padding: 5rem 0 4rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .55fr); align-items: center; gap: 2rem; }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(3.15rem, 7.2vw, 6rem); }
.hero-copy { max-width: 680px; margin: 1.45rem 0 0; color: var(--mist); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: .82rem 1.15rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; }
.button-primary { color: var(--ink); background: var(--gold); }
.button-primary:hover { background: #f3ce83; }
.button-secondary { color: var(--paper); border-color: rgba(243,240,232,.38); }
.button-secondary:hover { background: rgba(243,240,232,.08); border-color: var(--paper); }
.hero-note { display: flex; align-self: center; max-width: 290px; align-items: center; gap: 1rem; padding: 1.25rem; border-top: 1px solid var(--gold); background: rgba(255,255,255,.035); color: var(--mist); font-size: .91rem; }
.hero-note strong { display: block; margin-bottom: .55rem; color: var(--paper); }
.hero-logo { width: 92px; height: 92px; flex: 0 0 auto; padding: 7px; object-fit: contain; background: var(--paper); border-radius: 18px; box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.scroll-cue { position: absolute; bottom: 1.4rem; left: 50%; z-index: 2; color: var(--mist); font: .66rem 'DM Mono', monospace; letter-spacing: .16em; text-transform: uppercase; transform: translateX(-50%); }

.intro { padding: clamp(4rem, 10vw, 8.5rem) 0; }
.intro-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 6rem); }
.section-number { color: #8b7b56; font: .7rem 'DM Mono', monospace; letter-spacing: .14em; }
.intro h2, .pilot h2, .join h2 { margin: 0; font-size: clamp(2.5rem, 5.7vw, 4.55rem); }
.lead { max-width: 700px; margin: 1.5rem 0 0; color: #30434a; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.system-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4rem; background: var(--dark-line); border: 1px solid var(--dark-line); }
.system-list article { min-height: 220px; padding: 1.45rem; background: var(--paper); }
.system-list .mini { margin: 0 0 2.2rem; color: #7b6e55; font: .7rem 'DM Mono', monospace; }
.system-list h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.45rem; letter-spacing: -.03em; }
.system-list p { margin: .75rem 0 0; color: #526167; font-size: .94rem; }

.studio { padding: clamp(4rem, 9vw, 7rem) 0; color: var(--paper); background: var(--ink-soft); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.studio-card { min-height: 290px; padding: clamp(1.45rem, 4vw, 3rem); background: var(--ink-soft); }
.studio-card h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.studio-card p { max-width: 480px; margin: 1rem 0 0; color: var(--mist); }
.studio-card .card-index { margin: 0 0 3.8rem; color: var(--gold); font: .68rem 'DM Mono', monospace; letter-spacing: .14em; }

.pilot { padding: clamp(4.5rem, 10vw, 8rem) 0; background: #d9e5df; }
.pilot-top { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.pilot .eyebrow { color: #496b62; }
.pilot .lead { color: #345149; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.2rem; }
.role { display: flex; min-height: 235px; flex-direction: column; justify-content: space-between; padding: 1.4rem; background: rgba(243,240,232,.72); border: 1px solid rgba(7,21,27,.12); }
.role-label { color: #506d64; font: .68rem 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.role h3 { margin: .8rem 0 0; font-family: Fraunces, Georgia, serif; font-size: 1.6rem; letter-spacing: -.04em; }
.role p { margin: 1rem 0 0; color: #3f5851; font-size: .92rem; }
.role .state { padding-top: 1rem; color: #6a6756; border-top: 1px solid rgba(7,21,27,.12); font-size: .8rem; }
.notice { max-width: 900px; margin: 3.1rem auto 0; padding: 1.3rem 1.45rem; border-left: 3px solid var(--gold); background: rgba(7,21,27,.075); color: #253d37; }
.notice strong { color: var(--ink); }

.join { padding: clamp(4.5rem, 10vw, 8rem) 0; color: var(--paper); background: var(--ink); }
.join-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 8vw, 7rem); align-items: end; }
.join p { max-width: 620px; color: var(--mist); font-size: 1.08rem; }
.join-panel { padding: 1.4rem; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.join-panel p { margin: 0; font-size: .92rem; }
.join-panel .mono { margin-bottom: .8rem; color: var(--gold); font: .68rem 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }

.footer { color: var(--mist); background: #051015; }
.footer-inner { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line); }
.footer-brand { color: var(--paper); font: .82rem 'DM Mono', monospace; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .83rem; }

.form-page { min-height: 100vh; background: linear-gradient(135deg, #e2ebe6 0%, var(--paper) 46%, #f1e4c7 100%); }
.form-header { color: var(--paper); background: var(--ink); }
.form-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.form-back { color: var(--mist); font-size: .88rem; text-decoration: none; }
.form-back:hover { color: var(--paper); }
.form-wrap { width: min(830px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.form-intro { max-width: 740px; }
.form-intro h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.3rem); }
.form-intro p { color: #33464b; font-size: 1.05rem; }
.form-card { margin-top: 2rem; padding: clamp(1.15rem, 4vw, 2.4rem); background: rgba(255,255,255,.62); border: 1px solid rgba(7,21,27,.14); box-shadow: var(--shadow); }
.disclosure { margin: 0 0 2rem; padding: 1rem 1.1rem; background: #f8e6bd; border-left: 3px solid #bd8734; color: #493712; font-size: .93rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field.full { grid-column: 1 / -1; }
label, legend { color: #1a3036; font-weight: 700; font-size: .9rem; }
.hint { margin: -.15rem 0 .1rem; color: #607277; font-size: .79rem; }
input, select, textarea { width: 100%; padding: .72rem .78rem; color: var(--ink); background: rgba(255,255,255,.82); border: 1px solid #aebdb9; border-radius: 7px; }
textarea { min-height: 132px; resize: vertical; }
fieldset { margin: 1.5rem 0; padding: 1rem 1.05rem .75rem; border: 1px solid #b9c3bd; }
fieldset legend { padding: 0 .3rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; margin: .75rem 0; color: #31454a; font-size: .88rem; }
.check input { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; margin: .13rem 0 0; accent-color: var(--ink-soft); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; }
.form-error, .form-success { margin: 1rem 0; padding: .9rem 1rem; border-radius: 6px; font-size: .92rem; }
.form-error { color: #68272d; background: #f7dedf; border: 1px solid #d99a9f; }
.form-success { color: #164939; background: #d7efe4; border: 1px solid #93cbae; }
.form-submit { width: 100%; margin-top: .3rem; cursor: pointer; }
.fine-print { margin: 1rem 0 0; color: #657378; font-size: .76rem; }

.review-page { min-height: 100vh; background: #eef1ec; }
.review-main { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.review-login { width: min(460px, calc(100% - 2rem)); margin: 8vh auto; padding: 1.7rem; background: white; border: 1px solid #c7d0cb; box-shadow: var(--shadow); }
.review-login h1, .review-main h1 { margin: 0; font-family: Fraunces, Georgia, serif; letter-spacing: -.045em; }
.review-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.review-top p { margin: .4rem 0 0; color: #53666a; }
.review-logout { color: #344b51; font-size: .86rem; }
.review-table-wrap { overflow-x: auto; background: white; border: 1px solid #c8d2ce; }
.review-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: .86rem; }
.review-table th { padding: .75rem; color: #53666a; background: #eef2ef; font: .67rem 'DM Mono', monospace; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.review-table td { padding: .9rem .75rem; border-top: 1px solid #e2e7e3; vertical-align: top; }
.review-table .copy { max-width: 280px; white-space: pre-wrap; color: #44585d; }
.status-form { display: flex; gap: .4rem; align-items: center; }
.status-form select { min-width: 118px; padding: .42rem; font-size: .78rem; }
.status-form button { padding: .42rem .55rem; cursor: pointer; color: white; background: var(--ink-soft); border: 0; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.empty { padding: 3rem 1rem; color: #617377; text-align: center; }

@media (max-width: 760px) {
  .nav-inner { min-height: 72px; align-items: flex-start; padding: 1rem 0; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: .65rem .85rem; font-size: .78rem; }
  .hero-content { min-height: 620px; padding-top: 4.5rem; grid-template-columns: 1fr; }
  .hero-note { align-self: end; }
  .intro-grid, .pilot-top, .join-grid { grid-template-columns: 1fr; }
  .system-list, .roles, .studio-grid { grid-template-columns: 1fr; }
  .system-list article { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-header-inner { min-height: 64px; }
  .footer-inner { min-height: 150px; align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
