:root {
  --ink: #111d31;
  --text: #4f5e70;
  --blue: #205fa8;
  --blue-dark: #174979;
  --orange: #ee6a2d;
  --paper: #f6f8fa;
  --soft: #eaf1f6;
  --line: #d8e0e7;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 224, 231, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { font-size: 14px; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; color: #445266; font-size: 14px; font-weight: 700; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.nav-links .active { color: var(--blue); }
.language-picker { position: relative; flex: none; color: #445266; font-size: 13px; font-weight: 750; }
.language-picker summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; white-space: nowrap; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after { content: "⌄"; margin-left: 6px; }
.language-picker summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.language-options { position: absolute; top: 100%; right: 0; z-index: 20; min-width: 154px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(17,29,49,.13); }
.language-options a { display: block; padding: 8px 10px; border-radius: 5px; white-space: nowrap; }
.language-options a:hover, .language-options a:focus-visible, .language-options a[aria-current="page"] { color: var(--blue); background: var(--soft); }

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 77% 18%, rgba(32, 95, 168, .14), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f1f6f9 66%, #e8f0f5 100%);
}
.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 66px;
}
.kicker { color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 18px 0 20px; max-width: 690px; font-size: clamp(52px, 7vw, 88px); line-height: .98; letter-spacing: -.04em; }
.lead { max-width: 650px; margin: 0; color: var(--text); font-size: 19px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue-dark); }
.button-secondary { border: 1px solid #bdc7d2; background: rgba(255,255,255,.7); }
.logo-stage { min-height: 400px; display: grid; place-items: center; position: relative; }
.logo-stage img { position: relative; width: min(355px, 88%); filter: drop-shadow(0 18px 22px rgba(20,45,88,.15)); }

.section { padding: 84px 0 92px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.section-head p { max-width: 480px; margin: 0 0 6px; color: var(--text); font-size: 16px; }

.featured {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.featured-art { min-height: 330px; display: grid; place-items: center; padding: 36px; background: linear-gradient(145deg, #18263a, #2e3f3d); }
.featured-art img { width: min(560px, 96%); filter: drop-shadow(0 16px 20px rgba(0,0,0,.42)); }
.featured-art.card-image { min-height: 0; aspect-ratio: 16 / 9; padding: 0; background: #080b10; }
.featured-art.card-image img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.featured-copy { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.label { color: #8b5c17; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.featured-copy h3, .project-copy h3 { margin: 14px 0 12px; line-height: 1.08; }
.featured-copy h3 { font-size: 34px; }
.featured-copy p, .project-copy p { margin: 0; color: var(--text); }
.text-link { margin-top: 23px; color: var(--blue); font-size: 14px; font-weight: 850; }
.card-link .text-link { display: inline-block; }
.card-link {
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-link:hover, .card-link:focus-visible {
  transform: translateY(-4px);
  border-color: #a9c0d4;
  box-shadow: 0 18px 42px rgba(30, 55, 80, .12);
  outline: none;
}
.card-link:focus-visible { box-shadow: 0 0 0 3px rgba(32, 95, 168, .2), 0 18px 42px rgba(30, 55, 80, .12); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.project-art { height: 205px; display: grid; place-items: center; padding: 24px; background: #eef4f7; }
.project-card:nth-child(2) .project-art { background: #edf6fa; }
.project-card:nth-child(3) .project-art { background: #f7eee6; }
.project-art img { max-height: 158px; object-fit: contain; }
.project-art.card-image { padding: 0; overflow: hidden; background: #080b10; }
.project-art.card-image img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.project-copy { padding: 24px 24px 26px; }
.project-copy h3 { font-size: 24px; }
.project-copy p { min-height: 72px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .card-link { transition: none; }
}

.about { border-top: 1px solid var(--line); background: var(--soft); }
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; padding: 70px 0; }
.about h2 { margin: 0 0 16px; font-size: 35px; }
.about p { margin: 0; color: var(--text); }
.contact { padding-left: 42px; border-left: 1px solid #c8d4dd; }
.contact strong { display: block; margin-bottom: 12px; font-size: 17px; }
.email { color: var(--blue); font-weight: 850; }
.socials { margin-top: 17px; color: #536173; font-size: 13px; }

.go-hero { padding: 76px 0 48px; background: linear-gradient(135deg, #fff, #edf4f8); border-bottom: 1px solid var(--line); }
.go-hero-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
.go-hero img { width: 94px; height: 94px; object-fit: contain; }
.go-hero h1 { margin: 4px 0 12px; font-size: clamp(43px, 6vw, 68px); }
.go-hero p { max-width: 650px; margin: 0; color: var(--text); font-size: 18px; }
.gateway { padding: 48px 0 92px; }
.gateway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gateway-card {
  min-height: 260px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(30, 55, 80, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gateway-card:hover, .gateway-card:focus-visible { transform: translateY(-3px); border-color: #a9c0d4; box-shadow: 0 18px 42px rgba(30,55,80,.11); }
.gateway-image { width: 100%; height: 190px; display: grid; place-items: center; padding: 14px; background: #edf3f7; }
.gateway-image.dark { background: linear-gradient(145deg, #18263a, #2e3f3d); }
.gateway-image.warm { background: #f7eee6; }
.gateway-image img { max-height: 124px; object-fit: contain; }
.gateway-image.card-image { aspect-ratio: 16 / 9; height: auto; padding: 0; background: #080b10; }
.gateway-image.card-image img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.gateway-copy { padding: 26px 28px 30px; }
.gateway-copy h2 { margin: 10px 0 8px; font-size: 28px; line-height: 1.08; }
.gateway-copy p { margin: 0; color: var(--text); font-size: 15px; }
.gateway-copy .text-link { display: inline-block; }
.gateway-note { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: #eef3f7; color: var(--text); font-size: 14px; }

/* Individual project pages */
.project-page { --project-accent: var(--blue); --project-accent-soft: rgba(32,95,168,.12); }
.project-wayward { --project-accent: #8d621f; --project-accent-soft: rgba(186,128,35,.14); }
.project-ownshelf { --project-accent: #b77714; --project-accent-soft: rgba(225,163,53,.16); }
.project-driveguardian { --project-accent: #0888ca; --project-accent-soft: rgba(8,136,202,.13); }
.project-cartoon { --project-accent: #8b4b20; --project-accent-soft: rgba(139,75,32,.14); }

.project-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, var(--project-accent-soft), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f1f5f8 100%);
}
.project-hero-grid { min-height: 560px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 58px; padding-top: 58px; padding-bottom: 58px; }
.project-intro h1 { margin: 15px 0 20px; font-size: clamp(52px, 7vw, 78px); }
.project-wordmark, .cartoon-wordmark { width: min(560px, 100%); max-height: 210px; object-fit: contain; object-position: left center; }
.cartoon-wordmark { max-height: 180px; }
.project-lead { margin: 24px 0 0; max-width: 650px; color: var(--text); font-size: 19px; line-height: 1.7; }
.status-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.status-row span { padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--project-accent) 35%, #d2dae1); border-radius: 999px; color: var(--project-accent); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; }
.project-hero-media { margin: 0; overflow: hidden; border: 1px solid rgba(22,34,53,.14); border-radius: 17px; background: #111a28; box-shadow: 0 26px 60px rgba(22,34,53,.14); }
.project-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-hero-media figcaption { padding: 10px 14px; color: #dce4ea; background: #162235; font-size: 12px; }
.app-logo-stage, .wide-logo-stage { min-height: 330px; display: grid; place-items: center; margin: 0; padding: 46px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 26px 60px rgba(22,34,53,.09); }
.app-logo-stage img { width: min(360px, 80%); }
.wide-logo-stage img { width: min(620px, 100%); }
.project-section { padding: 78px 0; }
.project-section-soft { border-block: 1px solid var(--line); background: var(--soft); }
.project-section-dark { color: #f6f8fa; background: #172132; }
.project-section-dark .eyebrow { color: #f1a052; }
.project-section-dark p { color: #cbd4de; }
.reading-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 74px; align-items: start; }
.reading-grid h1, .reading-grid h2 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -.025em; }
.eyebrow { color: var(--project-accent); font-size: 12px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.prose p { margin: 0 0 18px; color: var(--text); font-size: 17px; line-height: 1.75; }
.wayward-story { max-width: 940px; }
.wayward-story h1 { max-width: 900px; margin: 16px 0 36px; font-size: clamp(42px, 5.7vw, 70px); line-height: 1.08; }
.wayward-prose { max-width: 760px; padding-left: 28px; border-left: 3px solid #c7a46d; }
.wayward-prose p { font-size: 18px; line-height: 1.8; margin-bottom: 24px; }
.section-head.compact { margin-bottom: 26px; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feature-list article { padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feature-list h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.15; }
.feature-list p { margin: 0; color: var(--text); font-size: 15px; }
.media-story { display: grid; grid-template-columns: .72fr 1.28fr; gap: 62px; align-items: center; }
.media-story.reverse { grid-template-columns: 1.18fr .82fr; }
.media-story.reverse .landscape-media { order: 0; }
.media-story h2, .status-panel h2 { margin: 12px 0 17px; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.08; }
.media-story p { color: var(--text); font-size: 17px; line-height: 1.72; }
.portrait-media, .landscape-media { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #101722; }
.portrait-media img { width: 100%; max-height: 620px; object-fit: cover; object-position: top center; }
.landscape-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.review-note { padding-left: 15px; border-left: 3px solid var(--project-accent); font-size: 14px !important; }
.status-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.project-switcher { border-top: 1px solid var(--line); background: #eef2f5; }
.project-switcher .shell { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.project-switcher span { color: #6c7887; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-switcher div div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.project-switcher a { padding: 9px 12px; border: 1px solid #cbd4dc; border-radius: 7px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 800; }
.project-switcher a:hover, .project-switcher a:focus-visible { border-color: var(--blue); }

.site-footer { border-top: 1px solid #cbd5de; background: #e3eaf0; }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #526071; font-size: 12px; }
.footer-inner strong { color: var(--ink); letter-spacing: .1em; }
.mockup-note { position: fixed; right: 14px; bottom: 14px; z-index: 20; padding: 8px 12px; border-radius: 999px; color: #fff; background: #162235; font-size: 10px; font-weight: 800; letter-spacing: .08em; opacity: .82; }

@media (max-width: 820px) {
  .shell { width: min(100% - 30px, 680px); }
  .nav { min-height: 68px; gap: 14px; }
  .nav-links { gap: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a[href="#about"] { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 22px; padding: 50px 0 44px; }
  .logo-stage { order: -1; min-height: 260px; }
  .logo-stage img { width: min(285px, 82%); }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .featured { grid-template-columns: 1fr; }
  .featured-art { min-height: 265px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-copy p { min-height: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact { padding-left: 0; border-left: 0; }
  .go-hero-inner { grid-template-columns: 1fr; }
  .go-hero img { width: 76px; height: 76px; }
  .gateway-grid { grid-template-columns: 1fr; }
  .project-hero-grid, .reading-grid, .media-story, .media-story.reverse, .status-panel { grid-template-columns: 1fr; }
  .project-hero-grid { min-height: 0; gap: 34px; padding-top: 44px; padding-bottom: 50px; }
  .project-hero-media { order: -1; }
  .project-intro h1 { font-size: 56px; }
  .app-logo-stage, .wide-logo-stage { order: -1; min-height: 250px; padding: 34px; }
  .reading-grid, .media-story, .status-panel { gap: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .portrait-media { max-width: 520px; }
  .project-switcher .shell { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
  .project-switcher div div { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 680px); }
  .site-header { position: relative; }
  .nav { min-height: 64px; flex-wrap: wrap; gap: 0 12px; padding: 6px 0; }
  .language-picker { font-size: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 10px; letter-spacing: .055em; }
  .nav-links { order: 3; width: 100%; justify-content: flex-end; gap: 16px; font-size: 13px; }
  .nav-links a[href="#projects"] { display: none; }
  .hero-grid { padding-top: 24px; padding-bottom: 36px; gap: 8px; }
  .logo-stage { min-height: 180px; }
  .logo-stage img { width: min(210px, 72%); }
  h1 { font-size: clamp(38px, 10vw, 46px); }
  .lead { font-size: 17px; }
  .section { padding: 48px 0 54px; }
  .about-grid { padding: 48px 0; gap: 26px; }
  .about h2 { font-size: 30px; line-height: 1.13; }
  .featured-copy { padding: 30px 26px; }
  .gateway-image { width: 100%; height: 160px; }
  .gateway-image.card-image { height: auto; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-hero-grid { padding-top: 24px; padding-bottom: 38px; gap: 24px; }
  .project-hero-media { border-radius: 12px; }
  .project-intro h1 { font-size: clamp(36px, 9vw, 42px); }
  .project-lead { font-size: 17px; }
  .project-section { padding: 44px 0; }
  .wayward-prose { padding-left: 18px; }
  .wayward-prose p { font-size: 17px; }
  .reading-grid h1, .reading-grid h2 { font-size: clamp(31px, 8vw, 36px); }
  .section-head h2 { font-size: 34px; }
  .feature-list { gap: 12px; }
  .feature-list article { padding: 20px; }
  .feature-list h3 { font-size: 21px; }
  .status-panel { padding: 24px 20px; gap: 18px; }
  .status-panel h2, .media-story h2 { font-size: 34px; }
  .project-switcher div div { display: grid; width: 100%; }
  .project-switcher a { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
}
