@font-face {
  font-family: Chivo;
  src: url("assets/Chivo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/SourceSans3.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --base: #080b10;
  --band: #141b25;
  --ink: #f5f7fa;
  --muted: #b8c3d2;
  --blue: #2676f4;
  --line: #34404f;
  --display: Chivo, Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  font: 17px/1.5 var(--body);
  color: var(--ink);
  background: var(--base);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #8bb9ff; outline-offset: 4px; }
h1, h2, h3, .mark, .brand strong, figcaption { font-family: var(--display); line-height: 1.12; }
h1, h2, h3, p, figure { margin: 0; }
h1, .section h2, .mark { font-size: clamp(1.85rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; }
p { color: var(--muted); }
.wrap { width: min(1104px, calc(100% - 96px)); margin-inline: auto; }
.header { position: absolute; inset: 16px 0 auto; z-index: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 22px; background: #0a0e14; border: 1px solid var(--line); border-radius: 10px; }
.nav a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.brand strong { font-size: 2rem; font-weight: 900; letter-spacing: -.08em; }
.brand span { font-size: .78rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .94rem; }
.nav-links a:last-child { border: 1px solid var(--line); border-radius: 6px; padding: 7px 16px; }
.nav-links a:hover, .contact-card a:hover { color: #8bb9ff; }
.menu-toggle { display: none; }
.art { position: relative; height: clamp(480px, 48vw, 760px); overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.art::after { content: ""; position: absolute; inset: auto 0 0; height: 20%; background: linear-gradient(transparent, var(--base)); }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px 40px; }
.intro p { margin-top: 12px; font-size: 1.14rem; }
.actions { display: grid; justify-items: start; gap: 12px; flex-shrink: 0; }
.actions a { text-decoration: none; font-weight: 650; }
.primary { padding: 11px 20px; border-radius: 6px; background: var(--blue); }
.primary:hover { background: #185dcb; }
.secondary { justify-self: center; padding: 4px; color: var(--muted); font-size: .9rem; }
.secondary span { margin-left: 6px; }
.band { background: var(--band); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding-block: 32px; }
.cards article { padding: 4px 30px; }
.cards article:first-child { padding-left: 0; }
.cards article:last-child { padding-right: 0; }
.cards article + article { border-left: 1px solid var(--line); }
.cards .mark { color: #70b4ff; margin-bottom: 12px; }
.cards h2, .contact-card h3 { font-size: 1.42rem; }
.cards h2 { margin-bottom: 8px; }
.section { padding-block: 56px; }
.section h2 { margin-bottom: 24px; }
.gallery { container-type: inline-size; position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px)/3); gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.slide { scroll-snap-align: start; min-width: 0; }
.photo { display: block; position: relative; aspect-ratio: 2/3; overflow: hidden; border-radius: 8px; background: var(--band); cursor: zoom-in; }
.photo:focus-visible { outline-offset: -4px; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease-out; }
.photo:hover img { transform: scale(1.025); }
.photo span { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: #080b10cc; font-size: 24px; line-height: 1; }
figcaption { padding: 14px 2px 2px; font-size: 1rem; font-weight: 650; }
.arrow, .close, .menu-toggle { min-width: 44px; min-height: 44px; background: #101720; border: 1px solid #536071; border-radius: 6px; }
.arrow { font-size: 24px; line-height: 1; }
.gallery > .arrow { position: absolute; top: calc(50% - 38px); }
.gallery > .previous { left: 12px; }
.gallery > .next { right: 12px; }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow:hover:enabled, .close:hover { background: #263347; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 64px; align-items: start; }
.contact-grid h2 { margin-bottom: 20px; }
.contact-grid p { font-size: 1.1rem; }
.contact-card { padding: 28px; background: var(--base); border-radius: 10px; display: grid; justify-items: start; gap: 12px; overflow-wrap: anywhere; }
.contact-card a { text-underline-offset: 3px; }
.signature { margin-top: 24px; font-size: .84rem; }
dialog { inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: 100%; max-height: 100dvh; border: 0; padding: clamp(12px,3vw,32px); background: var(--base); color: var(--ink); }
dialog::backdrop { background: var(--base); }
html:has(dialog[open]) { overflow: hidden; }
.viewer { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 16px; height: 100%; max-width: 1440px; margin: auto; }
.viewer-header, .viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viewer-header h2 { font-size: clamp(1.1rem,2vw,1.45rem); }
.close { padding-inline: 16px; }
.enlarged { width: 100%; height: 100%; object-fit: contain; }
@container (width < 960px) { .track { grid-auto-columns: calc((100% - 16px)/2); } }
@container (width < 600px) { .track { grid-auto-columns: 100%; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .contact-grid { gap: 32px; }
  .section { padding-block: 44px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header { position: relative; inset: auto; padding-block: 12px; }
  .nav { flex-wrap: wrap; padding: 6px 12px; min-height: 56px; }
  .brand span { display: none; }
  .nav-links { width: 100%; padding: 8px 0; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { padding: 7px 16px; }
  .js .menu-toggle { display: block; }
  .js .nav-links { display: none; }
  .js .menu-toggle[aria-expanded="true"] + .nav-links { display: flex; }
  .art { height: auto; aspect-ratio: 1.95; }
  .art img { object-position: center 43%; }
  .intro { display: grid; padding-block: 24px 32px; }
  .secondary { justify-self: start; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .cards { padding-block: 0; }
  .cards article, .cards article:first-child, .cards article:last-child { padding: 24px 0; }
  .cards article + article { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding-block: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .photo img { transition: none; transform: none; }
}
