@import url('/brand/tokens.css');

:root {
  color-scheme: light;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--brand-ink);
  background: var(--brand-paper);
  --blue: var(--brand-blue);
  --teal: var(--brand-teal);
  --red: var(--brand-red);
  --ink: var(--brand-ink);
  --paper: var(--brand-paper);
  --muted: var(--brand-muted-light);
  --line: var(--brand-line-light);
  --max: var(--brand-max);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); }
body, button, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
p { line-height: 1.6; }
:focus-visible { outline: 3px solid rgba(36, 87, 166, 0.42); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 68px; display: flex; align-items: center; border-bottom: 1px solid var(--brand-line-dark); background: rgba(10,10,10,0.97); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; min-width: 0; }
.nav { display: flex; align-items: center; gap: 2px; color: #c6cbd1; font-size: 0.79rem; }
.nav a { padding: 9px 8px; border-radius: 5px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.08); color: #fff; }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--brand-line-dark); border-radius: 6px; background: transparent; color: #fff; }
.menu-button span { width: 18px; height: 2px; display: block; margin: 3px; background: currentColor; }

.hero { padding: 94px 0 78px; background: #0e1724; color: #fff; border-bottom: 5px solid var(--blue); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr); gap: 64px; align-items: center; }
.eyebrow { margin-bottom: 16px; color: #84aeea; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow.blue { color: var(--blue); }
.hero h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(3rem, 5.8vw, 5.8rem); line-height: 0.94; }
.hero-lead { max-width: 760px; color: #c7d0dc; font-size: clamp(1.02rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid currentColor; border-radius: 6px; font-size: 0.85rem; font-weight: 800; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button.secondary { border-color: rgba(255,255,255,0.42); color: #fff; }
.button.dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.hero-note { padding: 24px 0 2px 25px; border-left: 3px solid var(--blue); }
.hero-note strong { display: block; margin-bottom: 9px; }
.hero-note p { color: #bdc8d5; font-size: 0.86rem; }
.hero-note span { color: #84aeea; font-size: 0.7rem; font-weight: 800; }
.app-diptych { position: relative; min-height: 430px; margin: 0; }
.app-window { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,0.28); border-radius: 6px; background: #0a0a0a; box-shadow: 0 24px 48px rgba(0,0,0,0.34); }
.app-window img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.app-window span { display: block; padding: 10px 12px; color: #dce4ec; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.app-window-oasis { top: 0; left: 0; width: 88%; }
.app-window-aesia { right: 0; bottom: 42px; width: 78%; }
.app-diptych figcaption { position: absolute; right: 0; bottom: 0; width: 78%; color: #9eb0c2; font-size: 0.7rem; line-height: 1.45; }

.catalog-section { padding: 82px 0 90px; }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,0.48fr); gap: 60px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1; }
.section-heading > p { margin-bottom: 0; color: var(--muted); }
.catalog-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 18px; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-weight: 700; cursor: pointer; }
.filter.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.search { width: min(310px, 100%); }
.search span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.search input { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); }
.result-count { margin: 18px 0; color: var(--muted); font-size: 0.76rem; }
.project-list { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 34px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.project[hidden] { display: none; }
.project-media { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-copy { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 34px; align-items: start; }
.project-kicker { margin-bottom: 8px; color: var(--blue); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.project h3 { margin-bottom: 8px; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.project-description { color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 0.65rem; font-weight: 700; }
.status { border-color: #8bb8ae; color: var(--teal); }
.project-side { display: grid; gap: 8px; }
.project-side a { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 0.76rem; font-weight: 800; }
.project-side a:first-child { border-color: var(--blue); background: var(--blue); color: #fff; }
.project-updated { margin: 8px 0 0; color: var(--muted); font-size: 0.68rem; }
.empty { padding: 34px 0; color: var(--muted); }

.method-band { padding: 76px 0; background: #0e1724; color: #fff; }
.method-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 72px; }
.method-grid h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }
.method-grid ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--brand-line-dark); }
.method-grid li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--brand-line-dark); color: #d5dbe3; }
.method-grid li span { color: #84aeea; font-size: 0.72rem; font-weight: 800; }
.closing { padding: 76px 0; background: #fff; }
.closing-grid { display: grid; grid-template-columns: 1fr 0.62fr; gap: 60px; align-items: end; }
.closing h2 { margin-bottom: 0; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 0.98; }
.closing p { color: var(--muted); }
.site-footer { min-height: 74px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.74rem; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.site-footer a { color: inherit; text-decoration: none; transition: color 160ms ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--blue); }

@media (max-width: 1020px) {
  .menu-button { display: grid; }
  .nav { position: absolute; top: 68px; right: 22px; width: min(340px, calc(100vw - 44px)); display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--brand-line-dark); border-radius: 7px; background: #101722; box-shadow: 0 20px 45px rgba(0,0,0,0.38); }
  .nav.open { display: flex; }
  .nav a { padding: 11px; }
  .hero-grid, .section-heading, .method-grid, .closing-grid { grid-template-columns: 1fr; gap: 30px; }
  .app-diptych { width: min(720px, 100%); min-height: 480px; }
  .project { grid-template-columns: 270px minmax(0,1fr); }
  .project-copy { grid-template-columns: 1fr; gap: 18px; }
  .project-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero { padding: 72px 0 58px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
  .app-diptych { min-height: 0; display: grid; gap: 14px; }
  .app-window { position: static; width: 100%; }
  .app-diptych figcaption { position: static; width: 100%; }
  .catalog-section { padding: 62px 0 70px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .project { grid-template-columns: 1fr; gap: 20px; }
  .project-side { grid-template-columns: 1fr; }
  .method-band, .closing { padding: 62px 0; }
  .site-footer { padding-block: 22px; align-items: flex-start; flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
}

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