:root {
  --ink: #17233a;
  --ink-soft: #253651;
  --purple: #172b4d;
  --purple-2: #28466b;
  --green: #426b52;
  --green-soft: #e8f0e7;
  --gold: #bd9a58;
  --cream: #f5f2e9;
  --paper: #fffefa;
  --muted: #777d87;
  --line: rgba(255,255,255,.14);
  --dark-line: rgba(23,43,77,.13);
  --danger: #b34248;
  --shadow: 0 22px 60px rgba(23, 43, 77, .1);
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-shell { min-height: 100vh; overflow: hidden; background: var(--cream); }
.section-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { width: min(1280px, calc(100% - 48px)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--dark-line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 13px; letter-spacing: .12em; }
.brand small { font-size: 8px; letter-spacing: .16em; color: var(--muted); margin-top: 5px; }
.topnav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.topnav a, .text-link { font-size: 12px; font-weight: 700; text-decoration: none; color: #55526f; transition: color .2s ease; }
.topnav a:hover, .text-link:hover { color: var(--purple); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dark-line); border-radius: 999px; padding: 8px 12px; font-size: 10px; font-weight: 700; color: #55526f; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.live-pill i, .preview-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(66,107,82,.12); }

.hero { min-height: 420px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: center; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -1; background: linear-gradient(115deg, #172b4d 0%, #203959 65%, #2a4660 100%); clip-path: polygon(0 0, 100% 0, 100% 88%, 75% 100%, 0 85%); }
.hero-copy { padding: 70px 0 92px; color: #fff; }
.eyebrow { margin: 0 0 14px; color: #806431; font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #e2cc98; }
.hero h1, .admin-heading h1 { margin: 0; font-size: clamp(3.4rem, 7.4vw, 6rem); line-height: .94; letter-spacing: -.065em; font-weight: 760; }
.hero h1 em { color: #d6bf88; font-style: normal; }
.hero-lede { max-width: 560px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.65; }
.hero-lede strong { color: #fff; }
.hero-stat-row { display: flex; gap: 30px; margin-top: 40px; }
.hero-stat-row div { display: flex; flex-direction: column; gap: 3px; }
.hero-stat-row strong { color: #d6bf88; font-size: 11px; letter-spacing: .16em; }
.hero-stat-row span { color: rgba(255,255,255,.54); font-size: 11px; }
.hero-identity { width: 100%; max-width: 340px; min-height: 280px; justify-self: end; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px solid rgba(214,191,136,.45); border-radius: 4px; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); box-shadow: inset 0 0 0 6px rgba(255,255,255,.025); text-align: center; }
.hero-identity-mark { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(214,191,136,.55); border-radius: 50%; background: rgba(255,255,255,.96); }
.hero-identity-mark img { width: 58px; height: 58px; object-fit: contain; }
.hero-identity-name { font-family: Georgia, "Times New Roman", serif; font-size: 17px; letter-spacing: .16em; }
.hero-identity-school { margin-top: 5px; color: rgba(255,255,255,.66); font-size: 8px; font-weight: 700; letter-spacing: .19em; }
.hero-identity-rule { width: 54px; height: 1px; margin: 22px 0 14px; background: #d6bf88; }
.hero-identity-set { color: #d6bf88; font-size: 9px; font-weight: 800; letter-spacing: .2em; }

.workspace { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: 34px; align-items: start; margin-top: -22px; position: relative; z-index: 2; }
.panel { background: var(--paper); border: 1px solid rgba(23,43,77,.09); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-panel { padding: 32px; }
.panel-heading, .preview-heading, .records-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2, .preview-heading h2, .success-panel h2, .how-section h2, .admin-shell h2 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.04em; }
.required-note { margin-top: 4px; color: var(--muted); font-size: 11px; }
.progress-track { height: 4px; margin: 24px 0 7px; overflow: hidden; border-radius: 999px; background: #e5e1d9; }
.progress-track span { display: block; width: 8%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .25s ease; }
.form-status { min-height: 18px; margin: 0 0 22px; color: var(--muted); font-size: 11px; }
.form-status.error { color: var(--danger); }
.form-status.success { color: #4f8121; }
.field-grid { display: grid; gap: 18px; }
.two-up { grid-template-columns: 1fr 1fr; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field span, .field legend { padding: 0; color: #46425f; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.field b, .consent-row b, .upload-label b { color: #b56d40; }
.field input, .field textarea, .field select, .records-controls input { width: 100%; border: 1px solid #d9d8d1; border-radius: 10px; background: #fff; color: var(--ink); outline: none; padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input, .field select { height: 46px; }
.field textarea { min-height: 86px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .records-controls input::placeholder { color: #aaa7b1; }
.field input:focus, .field textarea:focus, .field select:focus, .records-controls input:focus { border-color: #78947b; box-shadow: 0 0 0 4px rgba(66,107,82,.12); background: #fff; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: #c76c70; box-shadow: 0 0 0 4px rgba(179,66,72,.1); }
.field-help { min-height: 15px; color: #9a96a5; font-size: 10px; }
.char-count { text-align: right; margin-top: -4px; }
.birthday-field { margin: 0; padding: 0; border: 0; }
.inline-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.upload-zone { margin-top: 19px; border: 1px dashed #c7c2b9; border-radius: 15px; background: rgba(246,244,238,.75); transition: border-color .2s ease, background .2s ease; }
.upload-zone.dragover { border-color: var(--green); background: var(--green-soft); }
.upload-label { min-height: 88px; padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.upload-label > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.upload-label strong { font-size: 12px; }
.upload-label small { color: var(--muted); font-size: 10px; }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--purple); color: var(--green); font-size: 21px; line-height: 1; }
.upload-button { padding: 9px 12px; border-radius: 8px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.upload-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-preview { display: flex; align-items: center; gap: 12px; padding: 0 16px 15px; }
.upload-preview img { width: 42px; height: 42px; object-fit: cover; border-radius: 9px; }
.upload-preview span { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.upload-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.upload-preview small { color: var(--muted); font-size: 10px; }
.icon-button { border: 0; color: var(--muted); background: transparent; font-size: 22px; cursor: pointer; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 21px 0 16px; color: #716d7c; font-size: 10px; line-height: 1.55; cursor: pointer; }
.consent-row input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--purple); }
.consent-row a { color: var(--purple); font-weight: 700; }
.honeypot { position: absolute; left: -9999px; }
.primary-button, .secondary-button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border-radius: 12px; padding: 0 17px; font-size: 11px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button { border: 1px solid var(--purple); color: #fff; background: var(--purple); box-shadow: 0 7px 18px rgba(23,43,77,.15); }
.primary-button:hover { transform: translateY(-2px); background: #24466c; box-shadow: 0 11px 24px rgba(23,43,77,.2); }
.primary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.secondary-button { border: 1px solid rgba(23,19,57,.15); color: var(--purple); background: transparent; }
.secondary-button:hover { border-color: var(--purple); background: rgba(23,19,57,.04); }
.submit-button { width: 100%; }
.button-arrow { font-size: 18px; font-weight: 400; }
.secure-note { margin: 14px 0 0; color: #9995a1; font-size: 9px; text-align: center; }
.secure-note span { color: #75a23a; margin-right: 5px; }

.preview-panel { position: sticky; top: 24px; padding: 21px 0 0; }
.preview-heading { padding: 0 4px 20px; }
.preview-heading .eyebrow { color: #806431; }
.preview-dot { margin: 5px 7px 0 0; }
.card-stage { padding: 36px 30px; border: 1px solid rgba(23,43,77,.08); border-radius: 20px; background: linear-gradient(145deg, #e8e6dc, #f3f0e7); box-shadow: 0 18px 44px rgba(23,43,77,.1); }
.member-card { container-type: inline-size; position: relative; aspect-ratio: 1.58 / 1; overflow: hidden; border: 2px solid #182450; border-radius: 12px; color: var(--ink); background: #fffaf0; box-shadow: 0 14px 28px rgba(23,43,77,.2), inset 0 0 0 3px #fffaf0, inset 0 0 0 5px #d99a37; }
.member-card::after { position: absolute; top: 31%; right: 5%; z-index: 0; width: 29%; aspect-ratio: 1; border: 1px solid rgba(217,102,36,.11); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 13px, rgba(217,102,36,.07) 14px 15px); content: ""; pointer-events: none; }
.card-header { position: relative; z-index: 1; height: 25%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 7.5%; overflow: hidden; border-bottom: 4px solid #df8b27; color: #fff; background: linear-gradient(112deg, #182450 0%, #263a76 70%, #37457d 100%); }
.card-header::after { position: absolute; top: 0; right: 0; bottom: 0; width: 26%; background: linear-gradient(135deg, #ef9c25, #df542e); clip-path: polygon(27% 0, 100% 0, 100% 100%, 0 100%); content: ""; }
.card-header::before { position: absolute; top: 0; right: 4%; z-index: 1; width: 1px; height: 100%; background: rgba(255,255,255,.24); content: ""; transform: skew(-27deg); }
.card-brandline { position: relative; display: flex; align-items: center; gap: 8px; }
.card-logo { position: relative; z-index: 2; width: clamp(22px, 5.5cqi, 38px); height: clamp(22px, 5.5cqi, 38px); object-fit: contain; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 2px 9px rgba(0,0,0,.2); }
.card-header-meta { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #fff; }
.card-header-meta span { font-size: clamp(5px, 1.1cqi, 8px); font-weight: 800; letter-spacing: .13em; }
.card-header-meta strong { color: #fff8e8; font-family: Georgia, "Times New Roman", serif; font-size: clamp(7px, 1.5cqi, 11px); letter-spacing: .12em; }
.card-brandline strong, .card-brandline small { display: block; line-height: 1.05; }
.card-brandline strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(7px, 1.65cqi, 12px); letter-spacing: .1em; }
.card-brandline small { color: #f2cc7d; font-size: clamp(4px, .85cqi, 6px); letter-spacing: .12em; margin-top: 4px; }
.card-body { position: relative; z-index: 1; height: 63%; display: grid; grid-template-columns: 27% 1fr; gap: 5%; align-items: center; padding: 3% 7.5% 0; }
.portrait-frame { position: relative; aspect-ratio: .8 / 1; max-height: 100%; overflow: hidden; border: 2px solid #d76531; border-radius: 6px; background: #ece8dc; box-shadow: 0 0 0 3px #f5d99e, 0 5px 14px rgba(23,43,77,.18); }
.portrait-frame img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .18; filter: grayscale(1); }
.portrait-frame img.has-photo { opacity: 1; filter: none; }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #263a76; font-size: clamp(6px, 1.3cqi, 10px); font-weight: 800; line-height: 1.4; letter-spacing: .16em; text-align: center; text-shadow: 0 1px #fff; }
.portrait-frame:has(img.has-photo) .portrait-placeholder { display: none; }
.card-details { min-width: 0; }
.card-kicker { width: fit-content; margin: 0 0 5px; border-radius: 999px; padding: 4px 8px; color: #fff; background: linear-gradient(100deg, #d95d32, #e69526); font-size: clamp(5px, .95cqi, 7px); letter-spacing: .14em; font-weight: 800; }
.card-position { display: -webkit-box; overflow: hidden; margin: 0 0 3px; color: #263a76; font-size: clamp(8px, 1.8cqi, 13px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-details h3 { overflow: hidden; margin: 0 0 4px; color: #182450; font-family: Georgia, "Times New Roman", serif; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(14px, 3.6cqi, 26px); letter-spacing: -.025em; }
.card-rule { width: 52px; height: 3px; margin: 7px 0 11px; background: linear-gradient(90deg, #d94e32 0 36%, #e99a28 36% 70%, #314b8c 70%); }
.card-detail-line { display: flex; flex-direction: column; gap: 1px; margin-top: 7px; }
.card-detail-line span { color: #777d87; font-size: clamp(5px, .95cqi, 7px); text-transform: uppercase; letter-spacing: .12em; }
.card-detail-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: clamp(7px, 1.5cqi, 11px); font-weight: 700; }
.card-quote { display: flex; gap: 4px; margin-top: 9px; color: #555f6c; }
.card-quote span { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: clamp(12px, 2.2cqi, 17px); line-height: .8; }
.card-quote p { display: -webkit-box; overflow: hidden; margin: 0; font-size: clamp(6px, 1.1cqi, 8px); line-height: 1.35; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-footer { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; justify-content: space-between; padding: 2.6% 7.5%; border-top: 3px solid #e69229; color: rgba(255,255,255,.9); background: linear-gradient(105deg, #182450, #263a76); font-size: clamp(5px, 1cqi, 7px); letter-spacing: .13em; font-weight: 800; }
.card-footer span:first-child { color: #f2cc7d; }
.preview-note { margin: 14px 5px 0; color: #878391; font-size: 10px; }
.preview-note span { color: #8aa74a; margin-right: 5px; }

.success-panel { margin-top: 34px; padding: 30px 34px; border: 1px solid rgba(66,107,82,.2); border-radius: var(--radius); background: linear-gradient(110deg, #edf3e9, #fffdf8); box-shadow: 0 18px 50px rgba(23,43,77,.07); }
.success-message { display: flex; align-items: flex-start; gap: 16px; }
.success-mark { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; }
.success-panel h2 { color: var(--purple); }
.success-panel p:not(.eyebrow) { margin: 8px 0 0; color: #6e7562; font-size: 13px; }
.success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 0 51px; }
.whatsapp-button { border-color: #9bc47a; background: #f9fff0; }
.whatsapp-glyph { color: #3a982f; font-size: 19px; line-height: 0; }
.text-button { border: 0; padding: 6px; color: #625e74; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--purple); }
.success-meta { margin-left: 51px !important; font-size: 10px !important; }

.how-section { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; padding: 115px 0 95px; }
.how-section h2 { color: var(--purple); font-size: 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-grid article { padding-top: 17px; border-top: 1px solid var(--dark-line); }
.how-grid article > span { color: #8ba850; font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.how-grid h3 { margin: 29px 0 9px; color: var(--purple); font-size: 15px; }
.how-grid p { margin: 0; color: #777482; font-size: 12px; line-height: 1.65; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 30px; border-top: 1px solid var(--dark-line); color: #918d99; font-size: 10px; }
.footer a { text-decoration: none; }

.simple-page { min-height: 100vh; padding: 60px 24px; background: linear-gradient(140deg, var(--purple), #362157); }
.simple-card { width: min(680px, 100%); margin: auto; padding: 42px; border-radius: 24px; color: #f7f6f1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.simple-card h1 { margin: 0 0 22px; font-size: 46px; line-height: .98; letter-spacing: -.06em; }
.simple-card p:not(.eyebrow) { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.75; }
.simple-card .text-link { display: inline-block; margin-bottom: 55px; color: var(--green); }

.admin-page { min-height: 100vh; background: var(--cream); }
.admin-shell { padding: 75px 0 100px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding-bottom: 36px; border-bottom: 1px solid var(--dark-line); }
.admin-heading h1 { color: var(--purple); font-size: clamp(3.2rem, 7vw, 5.7rem); }
.admin-heading p:not(.eyebrow) { color: #777482; }
.admin-login { max-width: 480px; margin: 50px auto 0; padding: 32px; }
.admin-login h2 { margin-bottom: 12px; }
.admin-login p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.admin-login form { display: grid; gap: 17px; margin-top: 22px; }
.records-panel { margin-top: 34px; padding: 28px; }
.positions-panel { margin-top: 24px; padding: 28px; }
.positions-panel > .field-help { margin: 14px 0 18px; line-height: 1.5; }
.position-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin: 20px 0; }
.position-form .field { gap: 7px; }
.position-form input { height: 44px; }
.position-form-actions { display: flex; gap: 8px; }
.position-form-actions button { min-height: 44px; }
.position-list { display: grid; gap: 8px; }
.position-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid rgba(23,43,77,.1); border-radius: 10px; background: #fff; }
.position-row-name { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.position-default { flex: 0 0 auto; border-radius: 999px; padding: 4px 8px; color: #fff; background: var(--green); font-size: 9px; font-weight: 800; }
.position-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.position-edit, .position-delete { border: 0; padding: 4px 2px; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.position-edit { color: var(--purple-2); }
.position-delete { color: #ad5558; }
.position-edit:hover, .position-delete:hover { text-decoration: underline; }
.position-edit:disabled, .position-delete:disabled { cursor: wait; opacity: .5; }
.records-controls { display: flex; align-items: center; gap: 12px; }
.records-controls input { width: 210px; height: 40px; padding: 9px 11px; font-size: 11px; }
.table-wrap { overflow-x: auto; margin-top: 25px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 10px; color: #8e8996; border-bottom: 1px solid var(--dark-line); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
td { padding: 15px 10px; border-bottom: 1px solid rgba(23,19,57,.07); color: #57536c; font-size: 11px; }
td strong { display: block; color: var(--purple); font-size: 12px; }
td small { color: #9995a1; font-size: 10px; }
.admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 130px; }
.table-action, .table-delete { border: 0; padding: 0; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; text-decoration: none; }
.table-action { color: #557d2b; }
.table-delete { color: #ad5558; }
.table-action:hover, .table-delete:hover { text-decoration: underline; }
.table-delete:disabled { cursor: wait; opacity: .5; }
.table-muted { color: #a9a5ad; font-size: 10px; }
.empty-state { padding: 35px 0 10px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
  .hero-identity { min-height: 240px; padding: 22px; }
  .workspace { grid-template-columns: 1fr; }
  .preview-panel { position: relative; top: auto; order: -1; }
  .card-stage { padding: 34px clamp(22px, 7vw, 72px); }
  .preview-heading { padding-top: 20px; }
  .how-section { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .section-wrap, .topbar { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 68px; }
  .topnav { display: none; }
  .live-pill { padding: 7px 9px; font-size: 8px; }
  .hero { display: block; min-height: auto; }
  .hero::before { clip-path: polygon(0 0, 100% 0, 100% 95%, 65% 100%, 0 92%); }
  .hero-copy { padding: 60px 0 100px; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.2rem); }
  .hero-lede { font-size: 15px; }
  .hero-identity { display: none; }
  .hero-stat-row { gap: 15px; justify-content: space-between; }
  .hero-stat-row span { font-size: 9px; }
  .form-panel { padding: 22px 17px; }
  .two-up { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .preview-panel { padding-top: 0; }
  .card-stage { padding: 22px 12px; }
  .member-card { border-radius: 8px; }
  .card-header { gap: 5px; }
  .card-brandline { gap: 5px; }
  .card-body { gap: 4%; }
  .card-kicker { margin-bottom: 2px; padding: 2px 6px; }
  .card-position { margin-bottom: 1px; font-size: 7px; line-height: 1; }
  .card-details h3 { margin-bottom: 0; font-size: 11px; line-height: 1; }
  .card-rule { margin: 2px 0 4px; }
  .card-detail-line { gap: 0; margin-top: 2px; }
  .card-detail-line span { font-size: 4px; }
  .card-detail-line strong { font-size: 6px; }
  .card-quote { margin-top: 2px; }
  .card-quote p { font-size: 5px; line-height: 1.15; }
  .success-panel { padding: 22px 18px; }
  .success-actions, .success-meta { margin-left: 0 !important; }
  .success-actions { align-items: stretch; flex-direction: column; }
  .success-actions button { width: 100%; }
  .how-section { padding: 80px 0 65px; }
  .how-section h2 { font-size: 35px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid h3 { margin-top: 16px; }
  .footer { flex-direction: column; gap: 8px; }
  .admin-shell { padding-top: 50px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading .secondary-button { width: 100%; }
  .records-toolbar { align-items: flex-start; flex-direction: column; }
  .records-controls { width: 100%; justify-content: space-between; }
  .records-controls input { width: 65%; }
  .positions-panel { padding: 22px 18px; }
  .position-form { grid-template-columns: 1fr; }
  .position-form-actions { flex-wrap: wrap; }
  .position-form-actions button { flex: 1; }
  .position-row { align-items: flex-start; padding: 11px 10px; }
  .position-row-name { align-items: flex-start; flex-direction: column; gap: 6px; }
  .position-actions { gap: 8px; }
  .simple-card { padding: 28px 22px; }
  .simple-card h1 { font-size: 38px; }
}
