:root {
  color-scheme: light;
  --canvas: #f6f4ee;
  --canvas-deep: #edf1f6;
  --ink: #161b23;
  --navy: #162640;
  --muted: #64718a;
  --blue: #326fca;
  --blue-soft: #eaf1fb;
  --red: #ba0918;
  --gold: #e6b45f;
  --line: #dee3e9;
  --white: #fff;
  --radius: 28px;
  --page-width: 1400px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Reserve the scrollbar track on short pages to prevent navigation shifts. */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(.project-dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.skip-link {
  position: fixed; z-index: 100; top: -80px; left: 18px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--navy); color: white;
}
.skip-link:focus { top: 12px; }
.site-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 244, 238, .95);
  border-bottom: 1px solid rgba(22, 38, 64, .11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 62px; max-width: var(--page-width); margin: 0 auto;
  padding: 0 clamp(22px, 4.2vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-wordmark { display: inline-block; color: var(--navy); font-family: Arial, Helvetica, sans-serif; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.065em; white-space: nowrap; }
.brand-wordmark-dot { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.language-switch {
  display: inline-flex; align-items: center; gap: 3px;
  flex-shrink: 0; padding-left: 13px;
  border-left: 1px solid rgba(22, 38, 64, .22);
}
.language-switch button {
  min-width: 35px; height: 32px; border: 0; border-radius: 8px;
  padding: 0 7px; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 800; letter-spacing: .035em;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.language-switch button:hover { color: var(--navy); background: #eae9e4; }
.language-switch button[aria-pressed="true"] {
  background: #eae9e4; color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--red);
}
.primary-nav { display: flex; align-items: center; gap: 3px; }
.primary-nav a {
  text-decoration: none; color: #2d3c53;
  font-size: 15px; font-weight: 650; letter-spacing: -.015em;
  padding: 8px 13px; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.primary-nav a:hover { background: #e8eaf0; color: var(--blue); }
.primary-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 11px;
  border: 1px solid var(--line); border-radius: 13px;
  background: transparent; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; width: 100%; margin: 5px 0; background: var(--navy); border-radius: 2px; }
main { flex: 1; }
.home {
  width: 100%; max-width: var(--page-width); margin: auto;
  padding: clamp(30px, 4vw, 64px) clamp(22px, 4.2vw, 64px) 34px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: center; gap: clamp(24px, 4vw, 64px); margin-top: 0;
}
.hero-title {
  margin: 0; max-width: 910px;
  font-size: clamp(54px, 6.1vw, 96px); font-weight: 760;
  line-height: .99; letter-spacing: -.078em;
}
.hero-title .under-blue { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .065em; text-underline-offset: .10em; }
.hero-title .under-red { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: .065em; text-underline-offset: .10em; }
.hero-art {
  display: block; width: 100%; max-width: 620px; height: auto;
  border-radius: 18px; mix-blend-mode: multiply;
}
.hero-rule { height: 1px; background: #ced2d5; margin: clamp(30px, 4vw, 58px) 0 0; }
.home-footnote {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: var(--muted); font-size: 14px; margin-top: 11px;
}
.home-footnote .spark { font-size: 19px; color: var(--navy); vertical-align: -1px; }
.catalogue-backdrop {
  background: linear-gradient(170deg, #edf1f6 0%, #f4f5f7 55%, #eef3f8 100%);
  min-height: calc(100dvh - 62px);
  padding: 14px clamp(10px, 2vw, 30px) 40px;
}
.catalogue-panel {
  max-width: 1320px; margin: 0 auto; padding: clamp(22px, 2.5vw, 40px);
  background: rgba(255, 255, 255, .88); border: 1px solid #e1e8ef;
  border-radius: clamp(28px, 3vw, 42px); box-shadow: 0 22px 70px rgba(32, 60, 105, .07);
}
.catalogue-heading { display: block; }
.catalogue-heading h1 {
  margin: 0; font-weight: 790; font-size: clamp(40px, 4vw, 58px);
  letter-spacing: -.066em; line-height: 1.08; color: var(--navy);
}
.catalogue-heading p {
  margin: 8px 0 0; max-width: 760px;
  color: #586982; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45;
}
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.project-card {
  min-width: 0; text-align: left; appearance: none; color: inherit; cursor: pointer;
  border: 1px solid #dae3ed; border-radius: 22px; background: var(--white);
  padding: 0; overflow: hidden;
  box-shadow: 0 6px 16px rgba(37, 65, 104, .035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px); border-color: #b5cae7;
  box-shadow: 0 18px 38px rgba(39, 66, 108, .11);
}
.project-card:active { transform: translateY(-2px); }
.thumb {
  aspect-ratio: 1.78 / 1; width: 100%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--thumb-bg, #e7f0fa); position: relative;
}
.thumb::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1;
  border-radius: 50%; background: rgba(255,255,255,.34); filter: blur(6px);
  right: -18%; top: -65%;
}
.thumb svg { display: block; width: 89%; height: 90%; position: relative; overflow: visible; }
.thumb-label {
  position: absolute; top: 18px; left: 18px;
  font-size: 11px; letter-spacing: .09em; font-weight: 850;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.5);
  color: var(--navy); border-radius: 999px; padding: 7px 11px;
}
.project-info { padding: 17px 19px 18px; display: flex; flex-direction: column; flex: 1; min-height: 166px; }
.project-info h2 {
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", ui-sans-serif, sans-serif;
  color: var(--navy); letter-spacing: -.035em;
  font-size: clamp(20px, 1.7vw, 25px); line-height: 1.15; margin: 0;
}
.project-info p { color: #5e7089; font-size: 14px; line-height: 1.48; margin: 8px 0 14px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card-tag {
  padding: 6px 10px; border-radius: 999px; color: #fff;
  font-size: 11px; font-weight: 850; letter-spacing: .06em;
  background: var(--tag-color, #3d7bd5); white-space: nowrap;
}
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 750; white-space: nowrap; }
.card-more svg { transition: transform .2s ease; }
.project-card:hover .card-more svg { transform: translateX(4px); }
.empty-state { color: var(--muted); font-size: 17px; }
.site-footer { border-top: 1px solid #e2e0d8; background: var(--canvas); }
.footer-inner {
  max-width: var(--page-width); margin: auto; min-height: 66px;
  padding: 14px clamp(22px, 4.2vw, 64px); display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-inner a { font-weight: 750; font-size: 14px; color: var(--navy); text-decoration: none; }
.footer-inner a:hover { color: var(--blue); }
.project-dialog {
  width: min(92vw, 560px); max-height: min(85dvh, 760px); padding: 0;
  border: 1px solid #d8e0e9; border-radius: 32px; color: var(--navy);
  box-shadow: 0 35px 90px rgba(4, 18, 44, .26); overflow: auto;
}
.project-dialog::backdrop { background: rgba(10, 20, 38, .55); backdrop-filter: blur(7px); }
.dialog-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 3px 15px rgba(0,0,0,.07);
  font-size: 28px; line-height: 1; cursor: pointer; color: var(--navy);
}
.dialog-art { height: 215px; display: grid; place-items: center; background: var(--thumb-bg, #eaf1fb); }
.dialog-art svg { width: 83%; height: 88%; }
.dialog-copy { padding: 24px clamp(22px, 3vw, 36px) 28px; }
.dialog-category { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-size: 12px; }
.dialog-copy h2 { margin: 12px 0 10px; font-size: clamp(28px, 3.7vw, 38px); letter-spacing: -.06em; line-height: 1.1; }
.dialog-copy p { color: #526580; font-size: 15px; line-height: 1.48; margin: 0 0 25px; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dialog-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 21px; border-radius: 999px; background: var(--navy);
  color: #fff; font-weight: 750; font-size: 15px; text-decoration: none;
}
.dialog-link:hover { background: var(--blue); }
.dialog-note { color: var(--muted); font-size: 13px; }
@media (min-width: 1500px) { .catalogue-panel { max-width: 1420px; } }
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 540px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { min-height: 58px; }
  .brand-wordmark { font-size: 27px; }
  .header-actions { gap: 8px; }
  .language-switch { padding-left: 9px; }
  .language-switch button { min-width: 30px; padding: 0 4px; }
  .menu-toggle { display: block; margin-left: 0; }
  .primary-nav {
    position: absolute; top: calc(100% - 1px); left: 0; right: 0;
    display: none; background: var(--canvas);
    padding: 15px 22px 22px; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(22,38,64,.08);
    flex-direction: column; align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { display: block; padding: 15px 16px; }
  .home { padding-top: 34px; min-height: 64dvh; }
  .hero-title { font-size: clamp(44px, 9.5vw, 68px); }
  .hero-art { max-width: 460px; }
  .hero-rule { margin-top: 34px; }
  .catalogue-backdrop { min-height: calc(100dvh - 58px); padding: 8px 8px 24px; }
  .catalogue-panel { border-radius: 22px; padding: 20px 14px 24px; }
  .project-grid { gap: 14px; margin-top: 20px; }
  .project-info { padding: 16px 17px 17px; min-height: 155px; }
  .project-info h2 { font-size: 21px; }
  .project-info p { font-size: 14px; }
  .card-tag { font-size: 10px; padding: 8px 10px; }
  .card-more { font-size: 13px; }
  .footer-inner { align-items: start; }
}
@media (max-width: 590px) {
  .project-grid { grid-template-columns: 1fr; gap: 21px; }
  .thumb { aspect-ratio: 1.9 / 1; }
  .project-info { min-height: 150px; }
  .home-footnote { align-items: start; }
  .footer-inner { flex-direction: column; gap: 10px; }
  .dialog-art { height: 215px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
