:root {
  --ink: #1b1e22;
  --text: #33383e;
  --muted: #6b737c;
  --line: #e3e5e8;
  --photo: #e9ebed;
  --accent: #35516b; /* muted steel blue – links/focus only */
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.15; max-width: 20em; }
h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; line-height: 1.4; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--accent); }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.ph { color: #9aa1a9; font-style: italic; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: .24em; padding-bottom: 3px; border-bottom: 1.5px solid var(--ink); }
.wordmark-sm { font-size: .9rem; }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* Button */
.button { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 2px; padding: 14px 26px; font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; }
.button:hover { background: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero { padding: 96px 0 0; }
.hero .button { margin-top: 40px; }
.photo { background: var(--photo); display: grid; place-items: center; aspect-ratio: 3 / 2; }
.photo span { color: #9aa1a9; font-size: .9rem; }
.photo-hero { margin-top: 72px; aspect-ratio: 21 / 9; }

/* Sections: label column + content column */
.section { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 96px 0; border-top: 1px solid var(--line); }
.hero + .section { margin-top: 96px; border-top: 0; padding-top: 0; }

.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.row { padding: 0 0 36px; }
.row h3 { margin-bottom: 8px; }
.row p { color: var(--muted); }

.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ref h3 { margin: 20px 0 6px; }
.ref p { color: var(--muted); }
.ref p.ph { color: #9aa1a9; margin-top: 4px; font-size: .95rem; }

.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { color: var(--ink); font-weight: 600; font-size: .95rem; }
.facts dd { margin: 0; }
.facts-compact div { grid-template-columns: 110px 1fr; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-details > p { margin-bottom: 28px; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.form input, .form textarea { font: 400 1rem/1.4 var(--font); color: var(--ink); border: 1px solid #cfd3d8; border-radius: 2px; padding: 11px 12px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form textarea { resize: vertical; }
.form .button { justify-self: start; margin-top: 4px; }
.form-error { color: #9b2c1f; font-size: .9rem; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.footer-inner > span:last-child { margin-left: auto; }

@media (max-width: 900px) {
  .section { grid-template-columns: 1fr; gap: 28px; padding: 72px 0; }
  .hero + .section { margin-top: 72px; }
  h2 { font-size: 1.45rem; }
  .nav a:not(.nav-contact) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 40px, var(--wrap)); }
  .hero { padding-top: 56px; }
  .hero .button { margin-top: 28px; }
  .photo-hero { margin-top: 48px; aspect-ratio: 4 / 3; }
  .section { padding: 56px 0; }
  .hero + .section { margin-top: 56px; }
  h1 { font-size: 1.8rem; }
  .rows, .refs, .contact { grid-template-columns: 1fr; }
  .rows .row { padding-bottom: 28px; }
  .refs { gap: 36px; }
  .facts div, .facts-compact div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner > span:last-child { margin-left: 0; }
}

/* Photos */
.hero-figure { margin: 72px 0 0; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--photo); }
.hero-figure figcaption, .gallery figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }

.section-wide { display: block; }
.section-wide > h2 { margin-bottom: 40px; }
.section-wide .refs { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.ref img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--photo); }
.ref .ref-meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.ref p { font-size: .97rem; }
.ref > p:not(.ref-meta):not(.ph) { color: var(--text); }

.gallery-title { margin: 88px 0 24px; font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--photo); }

@media (max-width: 900px) {
  .section-wide .refs { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-figure { margin-top: 48px; }
  .hero-img { aspect-ratio: 4 / 3; }
  .section-wide .refs { grid-template-columns: 1fr; gap: 40px; }
  .gallery-title { margin-top: 56px; }
  .gallery { gap: 12px; }
}

/* production: partner card without photo – shown as a plain tile */
.ref-note { background: #f3f4f6; aspect-ratio: 3 / 2; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.ref-note h3 { margin-top: 0; }
@media (max-width: 640px) { .ref-note { aspect-ratio: auto; padding: 24px; } }
.section-wide .refs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .section-wide .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .section-wide .refs { grid-template-columns: minmax(0, 1fr); } }

/* v2: language switcher, lead, steps, skip link */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }
.header-right { display: flex; align-items: center; gap: 32px; }
.langs { display: flex; gap: 10px; font-size: .8rem; letter-spacing: .06em; padding-left: 24px; border-left: 1px solid var(--line); }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.lead { margin-top: 28px; max-width: 40em; font-size: 1.12rem; color: var(--text); }
.hero .hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero .hero-actions .button { margin-top: 0; }
.hero-call { color: var(--muted); font-size: .95rem; }
.hero-call a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-figure picture { display: block; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.steps li { counter-increment: step; padding: 0 0 36px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--muted); font-size: .85rem; letter-spacing: .08em; margin-bottom: 6px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }
.contact-cta { margin-bottom: 32px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 900px) {
  .header-right { gap: 20px; }
  .langs { padding-left: 16px; }
}
@media (max-width: 640px) {
  .lead { font-size: 1.02rem; margin-top: 20px; }
  .hero .hero-actions { margin-top: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-bottom: 28px; }
  .nav-contact { display: none; }
  .langs { border-left: 0; padding-left: 0; }
}

/* v3: home top – two Atlas Pavilion photos side by side, render below */
.hero { padding-top: 64px; }
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.hero-pair figure, .hero-render { margin: 0; }
.hero-pair img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--photo); }
.hero-render { margin-top: 40px; }
.hero-render picture { display: block; }
.hero-render img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--photo); }
.hero-pair figcaption, .hero-render figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.hero-render .credit { color: #8a9199; margin-left: .6em; padding-left: .6em; border-left: 1px solid var(--line); }
@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .hero-pair { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .hero-render { margin-top: 28px; }
  .hero-render img { aspect-ratio: 4 / 3; }
  .hero-render .credit { display: block; margin: 2px 0 0; padding: 0; border: 0; }
}
