:root {
  --f-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-serif-italic: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #1a1a1a;
  --ink-mute: #666666;
  --line-soft: #1a1a1a22;
  --tint-yellow: #ffe98a;
  --tint-mint: #b8f2d3;
  --tint-sky: #b8d5ff;
  --tint-pink: #ffc8ee;
  --tint-cream: #f2f2f2;
  --accent: #cf142b;
  --accent-secondary: #ffc900;
  --accent-on: #ffffff;
  --btn-primary-bg: #ff62a0;
  --btn-primary-fg: #000000;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 130px);
  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  --bg: #161616;
  --bg-elev: #1f1f1f;
  --card: #1f1f1f;
  --ink: #ffffff;
  --ink-2: #ebebeb;
  --ink-mute: #999999;
  --line-soft: #ffffff22;
  --tint-yellow: #3a3617;
  --tint-mint: #173a26;
  --tint-sky: #1a2a4a;
  --tint-pink: #3a1a30;
  --tint-cream: #1f1f1f;
  --shadow: 5px 5px 0 #fff;
  --shadow-lg: 8px 8px 0 #fff;
  --shadow-sm: 3px 3px 0 #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; background: none; border: 0; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.block {
  position: relative;
  padding-block: var(--section-y);
}
.block + .block { border-top: 2px solid var(--ink); }
.block-yellow { background: var(--tint-yellow); }
.block-mint { background: var(--tint-mint); }
.block-sky { background: var(--tint-sky); }
.block-pink { background: var(--tint-pink); }
.block-cream { background: var(--tint-cream); }

.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .95;
}

h1 em, h2 em, .display em {
  font-family: var(--f-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-elev);
  border-bottom: 2px solid var(--ink);
}
.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 36px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
}
.wordmark span:nth-child(2) { color: var(--accent); }
.wordmark-large { font-size: 26px; }
.flag-dot {
  display: inline-block;
  width: .34em;
  height: .34em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: .18em;
  vertical-align: .34em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu {
  position: relative;
}
.nav-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-weight: 500;
}
.nav-link:hover,
.nav-link:focus { color: var(--btn-primary-bg); }
.nav-caret {
  width: 7.65px;
  height: 7.65px;
  margin-left: 10px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  opacity: .6;
  transform: translateY(-2px) rotate(45deg);
}
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  z-index: 60;
  min-width: min(640px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 24px;
  background: var(--bg-elev);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s var(--ease);
}
.nav-menu:hover .mega-menu,
.nav-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu .meta {
  margin-bottom: 14px;
  color: #000;
  font-weight: 800;
}
.mega-menu a {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 3px 0 1px;
  margin-top: 8px;
  font-size: 14.5px;
  border-bottom: 2px solid transparent;
}
.mega-menu a:hover,
.mega-menu a:focus { border-bottom-color: var(--btn-primary-bg); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-secondary { background: var(--accent-secondary); color: #000; }
.btn-ghost { background: transparent; }
.btn-white { background: #fff; color: #000; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.card, .card-flat {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
}
.card {
  box-shadow: var(--shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }

.chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-weight: 500;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1.5px solid var(--ink);
}
.chip-accent { background: var(--accent); color: var(--accent-on); }
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ph {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  aspect-ratio: 16 / 10;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-mute);
  background: var(--bg-elev);
  padding: 2px 6px;
  border: 1px solid var(--ink);
}

.hero-block { overflow: hidden; padding-top: clamp(64px, 9vw, 120px); }
.hero-block .wrap,
.join-block .wrap { position: relative; }
.hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(54px, 9vw, 132px);
  letter-spacing: -.075em;
}
.hero-title em {
  color: var(--btn-primary-bg);
  letter-spacing: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
  margin-top: 48px;
}
.hero-grid p {
  margin: 0;
  max-width: 560px;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.maltese-cross {
  position: absolute;
  color: var(--accent);
  fill: currentColor;
}
.maltese-cross path {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.hero-cross {
  top: 80px;
  right: 80px;
  width: 76px;
  height: 76px;
}
.squiggle {
  position: absolute;
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}
.hero-squiggle {
  top: 200px;
  right: 220px;
  width: 120px;
}

.ticker {
  margin-top: clamp(48px, 7vw, 88px);
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 18px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee {
  display: flex;
  width: max-content;
  animation: scroll-x 45s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-inline: 36px;
  border-right: 2px dashed var(--line-soft);
}
.ticker-item strong {
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: -.075em;
}
.ticker-item span {
  font-family: var(--f-mono);
  font-size: 13px;
  white-space: nowrap;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}
.sec-head h2, .section-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: -.075em;
  line-height: .98;
}
.article-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.feature-card { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.feature-card h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -.075em;
  line-height: 1.05;
}
.feature-card p { margin: 0; color: var(--ink-2); }
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-row { padding: 16px; display: flex; gap: 16px; }
.small-ph { width: 92px; height: 92px; flex: 0 0 92px; aspect-ratio: auto; }
.small-ph::after { display: none; }
.article-row h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.2; }

.founder-grid, .startup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.founder-card, .startup-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.founder-head, .startup-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.founder-head small, .event-row small {
  display: block;
  color: var(--ink-mute);
  font-family: var(--f-mono);
  font-size: 12px;
}
.avatar, .logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.075em;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--tint-pink);
}
.logo-tile {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-secondary);
  color: #000;
}
.startup-head .meta { margin-left: auto; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.section-title { font-size: clamp(28px, 3.4vw, 46px); }
.block-sky .section-title em { color: var(--ink); }
.section-copy { max-width: 420px; color: var(--ink-2); margin: 12px 0 28px; }
.list-panel {
  overflow: hidden;
  background: var(--bg-elev);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.service-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-top: 2px solid var(--ink);
}
.service-row:first-child { border-top: 0; }
.service-row:hover { background: var(--accent-secondary); color: #000; }
.service-row span, .service-row small { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); }
.service-row small { grid-column: 2; }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
}
.event-date {
  padding-right: 14px;
  text-align: center;
  border-right: 2px solid var(--ink);
}
.event-date strong { display: block; font-size: 20px; }

.join-grid, .form-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.join-block {
  position: relative;
  overflow: hidden;
}
.wave-mark {
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
}
.join-cross {
  top: 45px;
  right: min(10vw, 140px);
  width: 117px;
  height: 117px;
}
.join-wave {
  position: relative;
  display: block;
  width: 96px;
  height: 40px;
  margin-top: 15px;
}
.join-cross-spin { animation: spin-slow 28s linear infinite; }
.join-grid h2, .simple-page h1 { margin: 0; font-size: clamp(44px, 6vw, 84px); }
.join-grid p, .simple-page p { max-width: 620px; color: var(--ink-2); font-size: 17px; }
.join-card, .form-card {
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-elev);
}
.join-card .btn { justify-content: space-between; }

.simple-page { min-height: 58vh; }
.form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
.form-card input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  color: var(--ink);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.admin-grid .card { padding: 22px; font-weight: 700; }

.site-footer {
  border-top: 2px solid var(--ink);
  padding-block: clamp(48px, 6vw, 90px);
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}
.footer-grid p { color: var(--ink-2); max-width: 320px; }
.footer-grid h3 { font-size: 15px; margin: 0 0 14px; }
.footer-grid a:not(.wordmark) {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 9px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 2px dashed var(--line-soft);
  color: var(--ink-mute);
  font-family: var(--f-mono);
  font-size: 13px;
}

@media (max-width: 980px) {
  .split-grid, .article-grid, .hero-grid, .join-grid, .form-wrap { grid-template-columns: 1fr; }
  .founder-grid, .startup-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .admin-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .nav-actions .btn-ghost { display: none; }
  .founder-grid, .startup-grid, .footer-grid, .admin-grid { grid-template-columns: 1fr; }
  .article-row { align-items: flex-start; }
  .small-ph { width: 72px; height: 72px; flex-basis: 72px; }
  .event-row { grid-template-columns: 1fr; }
  .event-date { text-align: left; border-right: 0; border-bottom: 2px solid var(--ink); padding: 0 0 10px; }
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

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