:root {
  --ink: #182126;
  --paper: #ffffff;
  --soft: #f5f2ff;
  --violet: #6d46d9;
  --violet-dark: #43278f;
  --mint: #c9f4df;
  --mint-dark: #195944;
  --yellow: #ffd85e;
  --coral: #ff8f83;
  --line: #dcd8ea;
  --muted: #5d6570;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,216,234,.75);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; text-decoration: none; font-weight: 950; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { width: 1.103em; height: 1.103em; flex: 0 0 auto; margin-right: -.034em; }
.brand-name { font-size: 1.28rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #3d4350; text-decoration: none; font-weight: 700; font-size: .94rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--violet); }
.nav-coffee { color: var(--violet) !important; }
.nav-cta { padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--yellow); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 72px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,216,94,.55) 0 8%, transparent 8.2%),
    radial-gradient(circle at 72% 74%, rgba(201,244,223,.9) 0 17%, transparent 17.2%),
    linear-gradient(135deg, #fff 0%, #fbfaff 60%, #f5f2ff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.eyebrow { margin: 0 0 18px; color: var(--violet); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 900; }
h1, h2, h3 { margin-top: 0; line-height: 1.07; letter-spacing: -.045em; }
h1 { max-width: 800px; margin-bottom: 22px; font-size: clamp(3.2rem, 7.2vw, 6.5rem); }
.accent { color: var(--violet); position: relative; white-space: nowrap; }
.accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .12em; background: var(--yellow); z-index: -1; transform: rotate(-1deg); }
.lead { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 21px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover, .button:focus-visible { transform: translate(-2px,-2px); }
.button-primary { color: white; background: var(--violet); box-shadow: 5px 5px 0 var(--ink); }
.button-secondary { background: white; box-shadow: 5px 5px 0 var(--mint); }
.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.pixel-window { width: min(430px, 86vw); aspect-ratio: 1; overflow: hidden; border: 3px solid var(--ink); border-radius: 42px; background: #fff8fa; box-shadow: 15px 15px 0 var(--violet), -13px -13px 0 var(--mint); position: relative; }
.pixel-window img { width: 300%; max-width: none; position: absolute; left: -200%; top: -100%; image-rendering: pixelated; }
.art-note { position: absolute; right: -8px; bottom: 8px; padding: 11px 15px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 14px; font-weight: 900; transform: rotate(-3deg); }

.signal-bar { background: var(--ink); color: white; }
.signal-list { min-height: 74px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px 44px; font-weight: 800; }
.signal-list span::before { content: "✦"; margin-right: 10px; color: var(--yellow); }

.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.section h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); margin-bottom: 0; }
.section-intro { max-width: 700px; color: var(--muted); font-size: 1.14rem; margin: 0; }

.principles { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.principle { min-height: 160px; border: 2px solid var(--ink); border-radius: 24px; padding: 25px; background: white; box-shadow: 7px 7px 0 var(--line); display: flex; flex-direction: column; justify-content: center; }
.principle:nth-child(2) { box-shadow: 7px 7px 0 var(--mint); }
.principle:nth-child(3) { box-shadow: 7px 7px 0 var(--yellow); }
.principle:nth-child(4) { box-shadow: 7px 7px 0 var(--coral); }
.principle h3 { font-size: 1.25rem; margin-bottom: 10px; }
.principle p { margin: 0; color: var(--muted); font-size: .95rem; }

.projects { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.project { min-height: 470px; padding: 38px; border: 2px solid var(--ink); border-radius: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.project-brain { background: #fff7fa; }
.project-captn { color: white; background: var(--ink); }
.project-tag { align-self: flex-start; margin-bottom: 38px; padding: 8px 12px; border: 1.5px solid currentColor; border-radius: 999px; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; font-weight: 900; }
.project h3 { max-width: 520px; font-size: clamp(2rem, 3.5vw, 3.3rem); margin-bottom: 18px; }
.project p { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.project-captn p { color: #cdd2d6; }
.project-link { margin-top: auto; padding-top: 34px; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.brain-mini { position: absolute; width: 235px; height: 225px; right: -30px; bottom: -34px; overflow: hidden; opacity: .95; }
.brain-mini img { width: 300%; max-width: none; position: absolute; left: -200%; top: -100%; image-rendering: pixelated; }
.region-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.region { padding: 6px 11px; border-radius: 999px; background: #2d3840; color: var(--mint); font-size: .8rem; font-weight: 850; }
.captn-mark { position: absolute; right: 26px; bottom: 12px; color: rgba(255,255,255,.07); font-weight: 950; font-size: 10rem; letter-spacing: -.1em; }

.team-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: start; }
.team-copy h2 { margin-bottom: 25px; }
.team-copy p { max-width: 720px; color: var(--muted); font-size: 1.1rem; }
.manifesto { background: var(--mint); border: 2px solid var(--ink); border-radius: 28px; padding: 32px; box-shadow: 9px 9px 0 var(--violet); }
.manifesto blockquote { margin: 0; font-size: 1.45rem; line-height: 1.35; font-weight: 850; letter-spacing: -.025em; }
.manifesto p { margin: 18px 0 0; color: var(--mint-dark); font-size: .92rem; font-weight: 800; }

.responsibility { padding: 72px 0; background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.responsibility-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.responsibility h2 { font-size: clamp(2.2rem,4vw,3.7rem); margin-bottom: 0; }
.responsibility p { margin-top: 0; font-size: 1.08rem; }
.responsibility p:last-child { margin-bottom: 0; }

.contact { padding: 100px 0; }
.contact-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; padding: 50px; border-radius: 34px; background: var(--violet); color: white; box-shadow: 12px 12px 0 var(--mint); }
.contact h2 { font-size: clamp(2.4rem,5vw,4.6rem); margin-bottom: 15px; }
.contact p { color: #e9e2ff; max-width: 600px; }
.contact-list { display: grid; gap: 14px; align-content: center; }
.contact-list a { padding: 15px 17px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 16px; text-decoration: none; font-weight: 800; }
.contact-list a:hover { background: rgba(255,255,255,.2); }

.site-footer { padding: 36px 0; background: var(--ink); color: #dce1e4; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: white; text-decoration: none; font-weight: 750; }
.fine { color: #9ea8ae; font-size: .86rem; }

.page-hero { padding: 88px 0 56px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3rem,7vw,5.4rem); margin-bottom: 16px; }
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.15rem; }
.prose { max-width: 850px; padding: 70px 0 100px; }
.prose h2 { margin-top: 48px; margin-bottom: 14px; font-size: 1.7rem; letter-spacing: -.025em; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; font-size: 1.2rem; }
.prose p, .prose li { color: #454d56; }
.prose a { color: var(--violet-dark); font-weight: 750; }
.notice { margin: 26px 0; padding: 22px; border-left: 5px solid var(--violet); background: var(--soft); border-radius: 0 16px 16px 0; }
.support-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin: 36px 0; }
.support-card { padding: 26px; border: 1.5px solid var(--line); border-radius: 20px; background: white; }
.support-card h3 { margin-top: 0; }

.menu-button { display: none; background: none; border: 0; font: inherit; font-weight: 850; color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid, .section-head, .team-grid, .responsibility-grid, .contact-box { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-art { min-height: 390px; }
  .principles { grid-template-columns: repeat(2,1fr); }
  .project { min-height: 430px; }
  .section-head { gap: 20px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 26px, var(--max)); }
  .nav { min-height: 66px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; top: 66px; left: 13px; right: 13px; padding: 18px; border: 2px solid var(--ink); border-radius: 18px; background: white; box-shadow: 7px 7px 0 var(--mint); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-coffee { padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; }
  .hero { padding: 48px 0 55px; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .lead { font-size: 1.04rem; }
  .hero-art { min-height: 330px; }
  .pixel-window { border-radius: 28px; box-shadow: 9px 9px 0 var(--violet), -8px -8px 0 var(--mint); }
  .art-note { right: 2px; }
  .signal-list { padding: 18px 0; justify-content: flex-start; gap: 8px 20px; font-size: .88rem; }
  .section { padding: 68px 0; }
  .principles, .projects, .support-grid { grid-template-columns: 1fr; }
  .principle { min-height: auto; }
  .project { padding: 28px; min-height: 440px; }
  /* Keep the decorative brain in its own visual area on narrow screens. */
  .project-brain { padding-bottom: 190px; }
  .project-brain .project-tag,
  .project-brain h3,
  .project-brain p,
  .project-brain .project-link { position: relative; z-index: 1; }
  .project-brain p { max-width: 100%; }
  .project-brain .brain-mini { width: 150px; height: 142px; right: 10px; bottom: 10px; }
  .project-brain .project-link { padding-top: 24px; }
  .project p { max-width: 90%; }
  .contact { padding: 70px 0; }
  .contact-box { padding: 30px 24px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 65px 0 42px; }
  .prose { padding-top: 48px; }
}

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