:root {
  --orange: #dd6127; --orange-600: #b8491a; --orange-300: #f5a67c; --orange-100: #fbe9df; --orange-50: #fdf4ef;
  --ink: #232528; --ink-800: #2e3135; --ink-700: #4f5257; --ink-500: #8a8d93; --ink-300: #c9cbce;
  --line: #e6e3de; --surface-2: #f3f1ee; --surface: #fbfaf8; --white: #fff; --in-range: #2f8f6b;
  --shadow: 0 8px 24px rgba(35,37,40,.08); --max: 1200px; --measure: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "IBM Plex Sans","Helvetica Neue",Arial,sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-600); }
h1,h2,h3,h4 { margin: 0; font-family: "Space Grotesk","Helvetica Neue",Arial,sans-serif; letter-spacing: -.01em; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow { font-family: "IBM Plex Mono",Menlo,monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 6px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-600); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.dark .btn-ghost:hover { background: var(--white); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--orange); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,250,248,.94); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav > ul > li { list-style: none; position: relative; }
.nav ul { list-style: none; padding: 0; margin: 0; }
.nav > ul { display: flex; gap: 2px; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); padding: 8px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; font-weight: 500; }
.nav a:hover, .nav button:hover, .nav a.active { color: var(--orange); background: var(--orange-50); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 50; font: inherit; font-size: 14px; color: var(--ink); }
.nav > ul > li::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* keeps hover alive while moving to the dropdown */
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { display: block; padding: 9px 12px; font-size: 14px; white-space: nowrap; }
.nav .chev { width: 12px; height: 12px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { font-family: "IBM Plex Mono",Menlo,monospace; font-size: 12px; letter-spacing: .06em; color: var(--ink-700); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.lang:hover { border-color: var(--ink); color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: 12px 0 20px; }
.mobile-nav.open { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { display: inline-flex; margin-top: 18px; border-bottom: 0; color: var(--white); }
.mobile-nav .group { font-family: "IBM Plex Mono",Menlo,monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); padding: 18px 0 4px; }

/* Sections */
.sec { padding: 88px 0; }
.sec.alt { background: var(--surface-2); }
.sec.dark { background: var(--ink); color: var(--white); }
.sec.dark .eyebrow { color: var(--orange-300); }
.sec.dark p, .sec.dark li { color: var(--ink-300); }
.sec.dark h1, .sec.dark h2, .sec.dark h3, .sec.dark h4, .sec.dark strong { color: var(--white); }
.sec.tight { padding: 56px 0; }
.sec + .sec.tight { padding-top: 0; }
.sec.cta { text-align: center; }
.sec.cta .stack { align-items: center; margin: 0 auto; }
.sec.cta p { max-width: 640px; }
.sec-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
h3, .h3 { font-size: 22px; }
h4 { font-size: 17px; }
.sub { font-size: 20px; line-height: 1.45; color: var(--ink-700); font-family: "Space Grotesk",sans-serif; font-weight: 500; }
.sec.dark .sub { color: var(--orange-300); }
.stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.stack > .btn { margin-top: 6px; }
.stack.prose-col { max-width: var(--measure); }
.stack p, .stack li { color: var(--ink-700); }
.stack ul { padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; gap: 28px; align-items: start; }
.sec .wrap > * + * { margin-top: 56px; }
.row.center { align-items: center; }
.row.cards { align-items: stretch; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.card h3, .card h4 { font-size: 20px; }
.row.n4 .card h3 { font-size: 24px; }
.card p { font-size: 15px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .checks { margin-top: 0; }
.sec.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.icon-wrap { width: 48px; height: 48px; border-radius: 10px; background: var(--orange-100); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-wrap img { width: 28px; height: 28px; filter: invert(43%) sepia(72%) saturate(1500%) hue-rotate(340deg) brightness(92%) contrast(90%); }
.sec.dark .icon-wrap { background: rgba(221,97,39,.18); }
.sec.dark .icon-wrap img { filter: invert(76%) sepia(28%) saturate(900%) hue-rotate(330deg) brightness(105%); }
.icon-lg { width: 64px; height: 64px; border-radius: 14px; }
.icon-lg img { width: 36px; height: 36px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd6127' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.sec.dark .checks li::before { background-color: rgba(221,97,39,.25); }
.photo { margin: 0; }
.blurbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; width: 100%; }
.blurbs .card { padding: 20px; gap: 12px; }
.blurbs .card h3 { font-size: 16px; }
.stack > .blurbs + .btn { margin-top: 10px; }
.photo img { width: 100%; border-radius: 16px; object-fit: cover; }
.photo.tall img { aspect-ratio: 4/3; }
.figure-sm img { max-height: 320px; width: auto; }
.logo-cell { height: 96px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 14px; }
.logo-cell img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.logo-grid.n9 { grid-template-columns: repeat(9, minmax(0,1fr)); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; }
.gallery.n2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.subnav { position: sticky; top: 80px; z-index: 30; background: rgba(251,250,248,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; }
.subnav a { font-family: "IBM Plex Mono",Menlo,monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-700); padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.subnav a:hover { color: var(--orange); background: var(--orange-50); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.mosaic { display: grid; grid-template-columns: repeat(9, minmax(0,1fr)); gap: 10px; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; filter: grayscale(.2); transition: filter .2s, transform .2s; }
.mosaic a:hover img { filter: none; transform: translateY(-3px); }
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; position: relative; padding-bottom: 36px; }
.tl-item::before { content: ""; position: absolute; left: 27px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-num { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: "IBM Plex Mono",Menlo,monospace; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.tl-body { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.tl-body p, .tl-body li { color: var(--ink-700); }
.tl-body em { color: var(--orange); font-style: normal; font-weight: 600; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.post-card:hover { color: inherit; border-color: var(--ink-500); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-card h3 { font-size: 19px; }
.post-card p { font-size: 14px; color: var(--ink-700); }
.post-card .date { font-family: "IBM Plex Mono",Menlo,monospace; font-size: 12px; color: var(--ink-500); }
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--ink); color: var(--white); border-radius: 20px; overflow: hidden; }
.featured img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.featured .fe-body { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.featured h2 { font-size: clamp(24px, 2.6vw, 32px); }
.featured p { color: var(--ink-300); }
.prose { max-width: var(--measure); font-size: 17px; }
.prose > * + * { margin-top: 1.2em; }
.prose p, .prose li { color: var(--ink-700); }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose h4 { font-size: 18px; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 3px solid var(--orange); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--ink-700); font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.post-meta { font-family: "IBM Plex Mono",Menlo,monospace; font-size: 12px; letter-spacing: .06em; color: var(--ink-500); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field .req { color: var(--orange); }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { grid-column: 1 / -1; font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: var(--in-range); font-weight: 500; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.optin { background: var(--ink); color: var(--white); border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.optin h2 { font-size: clamp(24px, 2.8vw, 34px); color: var(--white); }
.optin p { color: var(--ink-300); }
.optin .form { grid-template-columns: 1fr; max-width: 420px; }
.optin .field input { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white); }
.optin .btn { justify-self: start; }
.optin .thanks { display: none; }
.optin.done .form, .optin.done .optin-copy p { display: none; }
.optin.done .thanks { display: block; color: var(--orange-300); font-weight: 500; }
.optin .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.stack > .map, .stack > .form, .stack > .optin, .stack > .posts, .stack > .featured, .stack > .timeline, .stack > .logo-grid, .stack > .mosaic, .stack > .gallery, .stack > .team { width: 100%; align-self: stretch; }
.map-btn { border: 0; background: none; cursor: pointer; font: inherit; }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); min-height: 380px; position: relative; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map .map-btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--ink-700); padding: 24px; }
.map.loaded .map-btn { display: none; }
.event { display: flex; flex-direction: column; gap: 14px; }
.event .photo img { aspect-ratio: 4/3; }
.event .stack { gap: 4px; }
.event p { font-size: 15px; line-height: 1.8; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card h3 { font-size: 17px; }
.partner { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.partner .logo-cell { height: 96px; border: 0; padding: 0; }
.partner h3 { font-size: 19px; }
.partner p { font-size: 15px; color: var(--ink-700); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.member img, .member .avatar { width: 100%; aspect-ratio: 1; object-fit: cover; }
.member .avatar { background: var(--orange-100); color: var(--orange); display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk",sans-serif; font-size: 64px; font-weight: 600; }
.member .mb { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.member h3 { font-size: 19px; }
.member .role { font-family: "IBM Plex Mono",Menlo,monospace; font-size: 12px; letter-spacing: .04em; color: var(--orange); }
.member .bio { font-size: 14px; color: var(--ink-700); }
.member .bio p + p { margin-top: .6em; }
.member details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--orange); list-style: none; margin-top: 4px; }
.member details summary::-webkit-details-marker { display: none; }
.member details[open] summary { margin-bottom: 8px; }
.member .quote { font-size: 14px; color: var(--ink-700); border-left: 3px solid var(--orange); padding-left: 12px; font-style: italic; margin-top: 8px; }
.member .li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 8px; }
.member .li svg { width: 16px; height: 16px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.person { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.person img { width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.person p { font-weight: 600; color: var(--ink); }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; width: 100%; }
.founder { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.founder h3 { font-size: 16px; }
.founder p { font-size: 13px; color: var(--ink-500); }
.dl-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 72px 0 72px; }
.hero.dark { background: var(--ink); color: var(--white); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.02em; }
.hero .sub { font-size: 22px; }
.hero.dark .sub { color: var(--orange-300); }
.hero p.lead { font-size: 19px; line-height: 1.55; color: var(--ink-700); max-width: 560px; }
.hero.dark p, .hero.dark li { color: var(--ink-300); }
.hero .stack { gap: 22px; }
.hero .photo img { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero .stack.prose-col { max-width: 820px; }
.hero-video { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,37,40,.85) 0%, rgba(35,37,40,.4) 60%, rgba(35,37,40,.2) 100%); }
.hero-video .wrap { position: relative; z-index: 1; padding: 96px 0; }
.hero-video h1 { font-size: clamp(40px, 5.2vw, 68px); max-width: 760px; }
.hero-video .sub { color: var(--orange-300); font-size: 22px; max-width: 640px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--ink-300); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { width: 200px; height: auto; background: var(--white); padding: 10px 14px; border-radius: 8px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: var(--ink-300); display: block; font-size: 14px; margin: 8px 0; }
.site-footer a:hover { color: var(--orange-300); }
.site-footer p { font-size: 14px; }
.legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.legal a { display: inline; margin: 0 6px; }

@media (max-width: 1080px) {
  .logo-grid.n9, .mosaic { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row.n4, .row.n5 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 1040px) {
  .nav, .lang.desktop { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero .grid, .featured, .optin, .partner { grid-template-columns: 1fr; }
  .hero .photo img { height: 320px; }
  .row.n2, .row.n3 { grid-template-columns: 1fr !important; }
  .row.n3.cards { grid-template-columns: 1fr !important; }
  .team, .posts, .people, .gallery, .logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sec { padding: 64px 0; }
  .hero-video { min-height: 520px; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .row.n4, .row.n5, .founders, .team, .posts, .people { grid-template-columns: 1fr !important; }
  .mosaic, .logo-grid, .logo-grid.n9 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .optin { padding: 28px; }
  .header-inner { height: 68px; }
  .header-actions .btn { display: none; }
  .subnav { top: 68px; }
  .mobile-nav.open { max-height: calc(100vh - 68px); }
  .brand img { height: 36px; }
}
