/* DeenHack Maldives 2026 */
:root {
  /* palette: teal-black ground, lime green accent, white ink */
  --ground: #061113;
  --surface: #0c1b1d;
  --surface-2: #132527;
  --surface-3: #1c3133;
  --ink: #ffffff;
  --ink-soft: #c0d2d2;
  --paper: #edf6f5;
  --paper-ink-soft: #3f5354;
  --lime: #b5f84f;
  --lime-hover: #c8fb7a;
  --on-lime: #0c1404;
  --line: #2b4a4c;
  --danger: #ff6b5e;
  --danger-text: #ff8f85;
  --placeholder: #84a1a2;
  --accent-text: var(--lime);
  --on-paper: #0c1404;
  color-scheme: dark;

  /* type */
  --f-head: "Poppins", system-ui, sans-serif;
  --f-body: "Poppins", system-ui, sans-serif;
  --t-display: clamp(38px, 9vw, 128px);
  --t-h2: clamp(36px, 6vw, 72px);
  --t-h3: clamp(22px, 2.4vw, 28px);
  --t-lead: clamp(18px, 2vw, 22px);
  --t-body: 16px;
  --t-small: 14px;

  /* spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: clamp(96px, 13vw, 168px);
  --nav-h: 68px;
  --cut: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23b5f84f' stroke-width='1'%3E%3Cpath d='M40 14l7.4 10.6 12.7-2.1-2.1 12.7L68.6 40l-10.6 7.4 2.1 12.7-12.7-2.1L40 68.6l-7.4-10.6-12.7 2.1 2.1-12.7L11.4 40l10.6-7.4-2.1-12.7 12.7 2.1z'/%3E%3Cpath d='M40 26l14 14-14 14-14-14z'/%3E%3Cpath d='M0 0l11.4 11.4M80 0L68.6 11.4M0 80l11.4-11.4M80 80L68.6 68.6M40 0v14M40 80V66M0 40h11.4M80 40H68.6'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230b0b0a' stroke-width='1'%3E%3Cpath d='M40 14l7.4 10.6 12.7-2.1-2.1 12.7L68.6 40l-10.6 7.4 2.1 12.7-12.7-2.1L40 68.6l-7.4-10.6-12.7 2.1 2.1-12.7L11.4 40l10.6-7.4-2.1-12.7 12.7 2.1z'/%3E%3Cpath d='M40 26l14 14-14 14-14-14z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: var(--t-h2); margin-bottom: var(--s5); text-wrap: balance; max-width: 16ch; }
h3 { font-size: var(--t-h3); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: var(--s2) var(--s4); font-weight: 700; }
.skip:focus { top: var(--s3); }

.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }

/* buttons: flat pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--s6); border: 0; border-radius: 999px;
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--lime-hover); }
.btn--dark { background: var(--surface-2); color: var(--ink); }
.btn--dark:hover { background: var(--surface-3); }
.btn--ink { background: var(--ground); color: var(--ink); }
.btn--ink:hover { background: var(--surface-2); }
.btn--sm { min-height: 42px; padding: 0 var(--s5); font-size: 15px; --cut: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--ground); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; font: 600 20px var(--f-head); margin-right: auto; }
.brand__mark { width: 28px; height: 28px; color: var(--accent-text); }
.brand__yr { color: var(--accent-text); margin-left: 2px; }
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__links a { display: block; padding: var(--s2) 10px; color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="true"] { color: var(--accent-text); }
.nav__toggle { display: none; }

@media (max-width: 1100px) {
  .nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; order: 3; background: var(--surface-2); border: 0; color: var(--ink); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease); }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 2px;
    background: var(--ground); padding: var(--s3) 20px var(--s6);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px var(--s4); font: 600 22px var(--f-head); color: var(--ink); background: var(--surface); }
}

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: var(--s9) 0 var(--s8); }
.hero__inner { position: relative; }
.hero__pattern { position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); background-size: 80px; opacity: .07; }
.hero__title { font-size: var(--t-display); font-weight: 600; letter-spacing: -0.035em; line-height: .9; }
.theme { margin-top: var(--s5); font: 600 clamp(22px, 3vw, 34px)/1.1 var(--f-head); color: var(--accent-text); }
.hero__tag { font-size: var(--t-lead); max-width: 46ch; margin-top: var(--s4); line-height: 1.45; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5); margin-top: var(--s6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }
.countdown { display: flex; gap: 3px; }
.countdown div { min-width: 76px; padding: var(--s3) var(--s3) 10px; background: var(--surface); }
.countdown b { display: block; font: 600 clamp(30px, 5vw, 44px)/1 var(--f-head); font-variant-numeric: tabular-nums; }
.countdown span { font-size: var(--t-small); color: var(--ink-soft); }
.countdown__note { font-size: var(--t-small); color: var(--ink-soft); margin-top: var(--s3); text-align: right; }
@media (max-width: 700px) {
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero__row { flex-direction: column-reverse; align-items: stretch; }
  .hero__ctas .btn { flex: 1; padding: 0 var(--s3); font-size: 15px; }
  .countdown div { flex: 1; min-width: 0; }
  .countdown__note { text-align: left; }
}

/* lime strip */
.strip { background: var(--lime); color: var(--on-lime); padding: var(--s5) 20px; text-align: center; }
.strip p { font: 600 clamp(20px, 3vw, 32px)/1.15 var(--f-head); letter-spacing: -0.01em; }

/* sections */
.section { padding: var(--s9) 0; position: relative; }
.section--tint { background: var(--surface); }
.lead { font-size: var(--t-lead); color: var(--ink); max-width: 54ch; }
.sub { font-size: var(--t-h3); margin: var(--s8) 0 var(--s5); }

/* about */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: var(--s7) 0 0; }
.facts div { background: var(--surface); padding: var(--s6); border-radius: var(--r-md); display: flex; flex-direction: column; }
.facts dt { font: 500 var(--t-small)/1.3 var(--f-body); color: var(--ink-soft); padding-bottom: var(--s5); }
.facts dd { margin: 0; display: grid; gap: var(--s2); }
.facts strong { font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--f-head); letter-spacing: -0.02em; color: var(--ink); }
.facts dd span { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.facts div:first-child { background: var(--lime); }
.facts div:first-child dt, .facts div:first-child strong, .facts div:first-child span { color: var(--on-lime); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div { min-height: 0; padding: var(--s5); } .facts dt { padding-bottom: var(--s4); } }

/* grids */
.grid { display: grid; gap: 3px; margin-top: var(--s7); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--people { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.grid--logos { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
@media (max-width: 520px) { .grid--people, .grid--logos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .person h3 { font-size: 17px; overflow-wrap: anywhere; } }

.card { background: var(--surface); padding: var(--s6) var(--s5); }
.section--tint .card { background: var(--ground); }
.card h3 { margin-bottom: var(--s4); }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.card li { padding: 10px var(--s3); background: var(--surface-2); }
#ch-cards { display: flex; gap: var(--s2); align-items: flex-start; }
#ch-cards .ch-col { flex: 1; min-width: 0; display: grid; gap: var(--s2); }
#ch-cards .card--hl { background: var(--lime); color: var(--on-lime); }
#ch-cards .card--hl li { background: rgba(0,0,0,.1); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tags li { padding: 10px var(--s4); background: var(--surface-2); font-size: 16px; font-weight: 500; }
.section--tint .tags li { background: var(--surface-3); }

/* programme */
.tabs { display: flex; gap: 3px; margin-top: var(--s7); }
.tab {
  min-height: 60px; padding: 0 var(--s6); border: 0; border-radius: 0; background: var(--ground); cursor: pointer;
  color: var(--ink-soft); font: 600 18px var(--f-head); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; line-height: 1.15;
  transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab small { font: 500 var(--t-small) var(--f-body); }
.tab[aria-selected="true"] { background: var(--lime); color: var(--on-lime); }
@media (max-width: 560px) { .tab { flex: 1; min-width: 0; padding: 0 var(--s2); font-size: 16px; } }
.timeline { list-style: none; margin: 3px 0 0; padding: 0; display: grid; gap: 3px; }
.timeline li { display: grid; grid-template-columns: 190px 1fr auto; align-items: start; gap: var(--s5); padding: var(--s5); background: var(--ground); }
.panel__title { font-size: var(--t-h3); margin: var(--s6) 0 var(--s4); }
.spk { display: grid; text-align: right; font-weight: 600; white-space: nowrap; }
.spk small { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.is-key .spk small { color: inherit; }
.timeline .t { font: 600 17px/1.5 var(--f-head); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.timeline strong { font-size: 17px; font-weight: 600; display: block; line-height: 1.5; }
.timeline .note { color: var(--ink-soft); }
.timeline .is-break { background: var(--surface-2); }
.timeline .is-break strong { font-weight: 500; }
.timeline .is-key { background: var(--lime); color: var(--on-lime); }
.timeline .is-key .t { color: var(--on-lime); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s4); } .spk { text-align: left; display: flex; gap: var(--s2); align-items: baseline; } .spk:empty { display: none; } }
.panel[hidden] { display: none; }
.panel { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* judging */
.rubric { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; gap: 3px; }
.rubric li { display: grid; grid-template-columns: minmax(0, 300px) 1fr 56px; align-items: center; gap: var(--s5); padding: var(--s4) var(--s5); background: var(--ground); }
.rubric__label { font-weight: 500; }
.rubric__bar { height: 14px; background: var(--surface-2); }
.rubric__bar i { display: block; height: 100%; width: var(--w); background: var(--lime); transform-origin: left; transition: transform 1s var(--ease); }
.rubric .pts { font: 600 26px var(--f-head); font-variant-numeric: tabular-nums; text-align: right; }
.rubric li.rubric__total { background: var(--surface-2); }
.rubric__total .pts { color: var(--accent-text); }
@media (max-width: 640px) {
  .rubric li { grid-template-columns: 1fr 48px; gap: var(--s2) var(--s3); }
  .rubric__bar { grid-column: 1 / -1; grid-row: 2; }
}
.callout { margin-top: var(--s5); font: 600 var(--t-h3)/1.2 var(--f-head); max-width: 30ch; }
.prizes-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3px; margin-top: var(--s8); }
.prizes-wrap > div { background: var(--ground); padding: var(--s6) var(--s5); }
.prizes-wrap > div:first-child { background: var(--lime); color: var(--on-lime); }
.prizes-wrap .sub { margin: 0 0 var(--s5); }
@media (max-width: 860px) { .prizes-wrap { grid-template-columns: 1fr; } }
.prizes { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.prizes li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.prizes .place { font: 600 22px var(--f-head); }
.prizes .amt { font: 600 clamp(32px, 5vw, 56px)/1 var(--f-head); letter-spacing: -0.02em; white-space: nowrap; }
.prizes li:not(:first-child) .amt { font-size: clamp(24px, 3.4vw, 38px); }

/* investors */
.invest { background: var(--paper); color: var(--on-paper); }
.invest h2 { max-width: 14ch; }
.invest__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; }
.invest .lead { color: var(--on-paper); }
.invest__list { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.invest__list li { background: var(--ground); color: var(--ink); padding: var(--s6) var(--s5); }
.invest__list strong { display: block; font: 600 var(--t-h3) var(--f-head); color: var(--accent-text); margin-bottom: var(--s2); }
.invest__list p { color: var(--ink-soft); }
.invest__cta { margin-top: var(--s6); }
@media (max-width: 860px) { .invest__grid, .invest__list { grid-template-columns: 1fr; } }

/* people */
.person { padding: var(--s3); transition: background-color .2s; }
.person:hover { background: var(--surface-2); }
.person__photo { aspect-ratio: 4 / 5; margin-bottom: var(--s4); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; position: relative; }
.person__photo::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .1; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.person__initials { font: 600 48px var(--f-head); color: var(--accent-text); position: relative; }
.person__photo svg { width: 36%; color: var(--surface-3); position: relative; }
.person h3 { font-size: 21px; margin: 0 var(--s1) var(--s1); }
.person p { font-size: var(--t-small); color: var(--ink-soft); margin: 0 var(--s1) var(--s1); }
.person--soon h3 { color: var(--ink-soft); }

/* partners */
.partner-main { margin-top: var(--s7); display: grid; grid-template-columns: 2fr 1fr; gap: var(--s2); margin-bottom: var(--s2); }
@media (max-width: 860px) { .partner-main { grid-template-columns: 1fr; } }
.logo-box { padding: var(--s6) var(--s5); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); min-height: 160px; background: var(--ground); }
.logo-box img { max-height: 64px; width: auto; }
.logo-box .role { font-size: var(--t-small); color: var(--ink-soft); }
.logo-box .nm { font: 600 24px var(--f-head); }
.logo-box--main { min-height: 260px; background: var(--paper); color: var(--on-paper); margin-bottom: 3px; }
.logo-box--main .role { color: var(--paper-ink-soft); }
.logo-box--main .nm { font-size: clamp(48px, 9vw, 112px); letter-spacing: -0.03em; }
.logo-box--main img { max-height: 120px; }

.logo-box--join { background: var(--surface-2); gap: var(--s3); }
.logo-box--join .nm { color: var(--ink-soft); }
@media (max-width: 400px) { .logo-box--join { padding-inline: var(--s3); } .logo-box--join .btn { padding: 0 var(--s3); font-size: 14px; white-space: normal; text-align: center; } }

.logo-box--co { min-height: 260px; background: var(--surface-2); gap: var(--s3); }
.logo-box--co .nm { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.logo-box--invite .btn { margin-top: var(--s2); }

/* teams */
.empty { grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate; padding: var(--s7) var(--s6); background: var(--surface); border-radius: var(--r-lg); display: flex; align-items: center; gap: var(--s5); }
.empty::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); background-size: 72px; opacity: .08; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.empty__icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-md); background: var(--lime); color: var(--on-lime); }
.empty__icon svg { width: 40px; height: 40px; }
.empty strong { display: block; font: 600 clamp(20px, 2.4vw, 28px)/1.2 var(--f-head); color: var(--ink); margin-bottom: var(--s1); letter-spacing: -0.01em; }
.empty p { color: var(--ink-soft); }
@media (max-width: 560px) { .empty { flex-direction: column; align-items: flex-start; padding: var(--s6) var(--s5); } }
.team__group { font-size: var(--t-small); font-weight: 700; color: var(--accent-text); }
.team h3 { margin: var(--s1) 0 var(--s2); }
.team .proj { margin-bottom: var(--s3); }
.team .members { font-size: var(--t-small); color: var(--ink-soft); }

/* faq */
.faq { margin-top: var(--s7); display: grid; gap: 3px; }
.faq details { background: var(--ground); transition: background-color .2s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) var(--s8) var(--s5) var(--s5); position: relative; font: 600 20px/1.25 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: var(--s5); top: 50%; width: 16px; height: 2px; background: var(--lime); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--accent-text); }
.faq .ans { padding: 0 var(--s8) var(--s5) var(--s5); color: var(--ink-soft); }

/* form */
.choices.as-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: var(--s7); }
.as-switch .choice span { width: 100%; min-height: 72px; padding: var(--s3) var(--s5); font: 600 20px/1.15 var(--f-head); flex-direction: column; align-items: flex-start; justify-content: center; background: var(--surface); }
.as-switch .choice small { font: 500 var(--t-small) var(--f-body); opacity: .85; }
.form { margin-top: 3px; display: grid; gap: 3px; }
.form[hidden] { display: none; }
fieldset { border: 0; padding: var(--s6) var(--s5); margin: 0; background: var(--surface); display: grid; gap: var(--s4); min-width: 0; }
legend { float: left; width: 100%; font: 600 22px var(--f-head); padding: 0; margin-bottom: var(--s2); }
legend + * { clear: both; }
.opt { font: 500 var(--t-small) var(--f-body); color: var(--ink-soft); margin-left: var(--s1); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.row:has(.field--sm) { grid-template-columns: 1fr 120px; }
@media (max-width: 600px) { .row, .row:has(.field--sm) { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.field__label { font-size: 15px; font-weight: 500; }
input:not([type="radio"]):not([type="checkbox"]), textarea {
  width: 100%; min-height: 52px; padding: var(--s3) 14px; font: 500 17px var(--f-body); color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); border-radius: 0; transition: border-color .2s;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus { outline: none; border-color: var(--accent-text); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choice { position: relative; display: flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 var(--s4); background: var(--surface-2); font-size: 16px; font-weight: 500; color: var(--ink-soft); transition: background-color .15s, color .15s; }
.choice:hover span { color: var(--ink); background: var(--surface-3); }
.choices--tight { gap: 6px; }
.choices--tight .choice span { min-width: 46px; justify-content: center; padding: 0 10px; font-size: 15px; }
.choice input:checked + span { background: var(--lime); color: var(--on-lime); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.choices.invalid .choice span { box-shadow: inset 0 0 0 1px var(--danger); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--lime); }
.check.invalid span { color: var(--danger-text); }
.reveal { display: grid; gap: var(--s4); animation: fade .25s var(--ease); }
.reveal[hidden] { display: none; }
.form__error { color: var(--danger-text); font-weight: 600; text-align: center; padding: var(--s3) 0; }
.form .btn--block { margin-top: var(--s4); min-height: 60px; font-size: 18px; }
.success { margin-top: var(--s7); padding: var(--s8) var(--s6); background: var(--lime); color: var(--on-lime); animation: fade .4s var(--ease); }
.success svg { width: 56px; height: 56px; margin-bottom: var(--s4); display: block; }
.success h3 { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--s2); }

/* team members */
.hint { color: var(--ink-soft); font-size: 15px; }
.members { display: grid; gap: 3px; }
.member { background: var(--surface-2); padding: var(--s5); display: grid; gap: var(--s4); }
.member__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.member__head h4 { margin: 0; font: 600 20px var(--f-head); }
.member .choice span { background: var(--surface-3); }
.member .choice input:checked + span { background: var(--lime); }
.member__remove { background: none; border: 0; color: var(--ink-soft); font: 500 15px var(--f-body); text-decoration: underline; cursor: pointer; padding: var(--s2); }
.member__remove:hover { color: var(--ink); }
#add-member { justify-self: start; }
#add-member[hidden] { display: none; }

/* footer */
.footer { padding: var(--s8) 0 var(--s6); background: var(--surface); }
.footer__name { font: 600 clamp(40px, 9vw, 132px)/.9 var(--f-head); letter-spacing: -0.035em; color: var(--accent-text); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); margin-top: var(--s6); }
.footer__row p { max-width: 40ch; }
.footer__email { font-weight: 700; font-size: 19px; }
.socials { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; gap: var(--s4); }
.socials a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.socials a:hover { color: var(--ink); }

/* entrance */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
.rubric:not(.in) .rubric__bar i { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}

@media (max-width: 400px) {
  .nav__inner { gap: var(--s2); }
  .brand { font-size: 18px; }
  .brand__mark { width: 24px; height: 24px; }
  .nav__cta { padding: 0 var(--s3); }
}
@media (max-width: 340px) { .nav__cta { display: none; } }

/* rounded everywhere */
:root { --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-pill: 999px; }
.nav__toggle, .tags li, .choice span, .tab, .as-switch .choice span { border-radius: var(--r-pill); }
.as-switch .choice span { border-radius: var(--r-md); }
.tabs { gap: var(--s2); }
input:not([type="radio"]):not([type="checkbox"]), textarea, .countdown div, .card li, .member { border-radius: var(--r-sm); }
.card, .timeline li, .rubric li, .prizes-wrap > div, .invest__list li, .person, .person__photo, .logo-box,
.empty, .faq details, fieldset, .success, .strip { border-radius: var(--r-md); }
.grid, .timeline, .rubric, .faq, .form, .invest__list, .prizes-wrap, .as-switch { gap: var(--s2); }
.rubric__bar, .rubric__bar i { border-radius: var(--r-pill); }
.strip { border-radius: 0; }
.logo-box--main, .logo-box--co { border-radius: var(--r-lg); margin-bottom: 0; }
.timeline { margin-top: var(--s3); }
@media (max-width: 1100px) { .nav__links a { border-radius: var(--r-sm); } }

/* light mode */
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f7f9f4;
  --surface: #edf1e8;
  --surface-2: #e2e8dc;
  --surface-3: #d4dccd;
  --ink: #0e1510;
  --ink-soft: #46524b;
  --paper: #0e1510;
  --paper-ink-soft: #b7c3bc;
  --on-paper: #ffffff;
  --line: #c3cdc4;
  --danger: #c8372b;
  --danger-text: #b3261e;
  --placeholder: #6b7a71;
  --accent-text: #3b7400;
  --pattern: var(--pattern-dark);
}
:root[data-theme="light"] .hero__pattern { opacity: .05; }
:root[data-theme="light"] .invest__list li { background: var(--surface); color: var(--ink); }
:root[data-theme="light"] .invest__list strong { color: var(--accent-text); }

/* theme toggle */
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); cursor: pointer; transition: background-color .2s; }
.theme-toggle:hover { background: var(--surface-3); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (max-width: 1100px) { .theme-toggle { order: 2; } }
@media (max-width: 340px) { .brand__yr { display: none; } .theme-toggle, .nav__toggle { width: 40px; height: 40px; } }
