:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --surface: #ecebe6;
  --ink: #242522;
  --muted: #5c605b;
  --line: #c8c9c2;
  --focus: #315b75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: absolute; top: -6rem; left: 1rem; z-index: 10; padding: .65rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 3rem, 1440px); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-name { font-size: 1.06rem; font-weight: 600; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.site-name:hover, .site-nav a:hover, .back-link:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .28em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); }
.site-nav a, .back-link { color: var(--ink); font-size: .94rem; text-decoration: none; white-space: nowrap; }

.hero { min-height: min(590px, 68vh); padding-block: clamp(5rem, 11vw, 10rem) clamp(5rem, 11vw, 9rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow { margin: 0 0 1.25rem; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
.hero h1 { max-width: 1200px; margin: 0; font-size: clamp(3.4rem, 9.2vw, 9.3rem); line-height: .98; font-weight: 500; letter-spacing: -.075em; }
.hero-lead { max-width: 640px; margin: clamp(1.8rem, 4vw, 3rem) 0 0; font-size: clamp(1.12rem, 2vw, 1.55rem); line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; border-bottom: 1px solid currentColor; font-weight: 600; text-decoration: none; }
.text-link:hover { gap: 1.35rem; }
.hero-link { margin-top: 2.2rem; }

.section { padding-block: clamp(4.5rem, 8vw, 9rem); scroll-margin-top: 1.5rem; }
.works-section { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading .eyebrow { margin-bottom: .8rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.2rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.08; }
.panorama-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.panorama-card { min-width: 0; }
.panorama-card:only-child { grid-column: 1 / -1; max-width: 560px; }
.card-link { display: block; height: 100%; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin: 0; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; color: #5b5e58; text-align: center; }
.card-placeholder::before { content: ""; display: block; width: min(29%, 110px); aspect-ratio: 1; border: 1px solid #aaa9a1; border-radius: 50%; }
.card-placeholder span { font-size: .79rem; letter-spacing: .1em; text-transform: uppercase; }
.card-media img { position: absolute; inset: 0; z-index: 1; }
.card-media img.is-missing { display: none; }
.card-body { padding-top: 1.25rem; }
.card-kicker { display: flex; gap: .4rem 1rem; flex-wrap: wrap; color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.card-title { margin: .55rem 0 .2rem; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2; font-weight: 500; letter-spacing: -.035em; }
.card-location { margin: 0; color: var(--muted); font-size: .94rem; }
.card-action { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.2rem; padding-bottom: .2rem; border-bottom: 1px solid var(--ink); font-size: .9rem; font-weight: 600; }
.card-link:hover .card-action { gap: 1.1rem; }
.card-link:hover .card-media img:not(.is-missing) { transform: scale(1.025); }
.content-message { margin: 0; color: var(--muted); }
.panorama-grid:not(:empty) + .content-message { display: none; }

.text-section { border-top: 1px solid var(--line); }
.section-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.section-columns .section-heading { margin-bottom: 0; }
.section-columns > p { max-width: 670px; margin: .2rem 0 0; font-size: clamp(1.2rem, 2.2vw, 1.85rem); line-height: 1.48; letter-spacing: -.025em; }
.contacts-section { padding-bottom: clamp(5rem, 10vw, 10rem); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-inner { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner a { text-decoration: none; }

.detail-main { min-height: calc(100vh - 165px); padding-block: clamp(3rem, 6vw, 6rem) clamp(5rem, 8vw, 8rem); }
.detail-heading { max-width: 900px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.detail-heading h1, .error-main h1 { margin: 0; font-weight: 500; letter-spacing: -.065em; line-height: 1.07; }
.detail-heading h1 { font-size: clamp(2.6rem, 5.25vw, 5.25rem); }
.error-main h1 { font-size: clamp(2.8rem, 6vw, 6rem); }
.detail-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin-top: 1.6rem; color: var(--muted); font-size: .87rem; letter-spacing: .04em; text-transform: uppercase; }
.detail-description { max-width: 700px; margin: 2rem 0 0; font-size: clamp(1.08rem, 1.6vw, 1.32rem); }
.viewer { width: 100%; aspect-ratio: 16 / 9; min-height: 360px; max-height: min(78vh, 850px); background: #242522; overflow: hidden; }
.viewer iframe { display: block; width: 100%; height: 100%; border: 0; }
.viewer:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; }
.viewer-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(1.25rem, 2vw, 2rem); row-gap: .4rem; margin-top: 1.15rem; }
.action-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .35rem 0 .25rem; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: var(--ink); cursor: pointer; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.action-button:hover { color: var(--muted); }
.action-status { min-height: 1.5em; margin: .65rem 0 0; color: var(--muted); font-size: .88rem; }
.error-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-main { flex: 1; padding-block: clamp(5rem, 12vw, 10rem); }
.error-main .text-link { margin-top: 2.5rem; }

@media (max-width: 1100px) {
  .panorama-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .container { width: min(100% - 2rem, 1440px); }
  .header-inner { min-height: 70px; align-items: flex-start; flex-direction: column; justify-content: center; gap: .45rem; padding-block: .8rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .site-nav a { font-size: .82rem; }
  .hero { min-height: 480px; padding-block: 5rem 6rem; }
  .hero h1 { font-size: clamp(3.25rem, 13vw, 5.8rem); }
  .panorama-grid { grid-template-columns: 1fr; gap: 3rem; }
  .section-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .viewer { aspect-ratio: auto; height: min(68vh, 610px); min-height: 400px; }
  .viewer-actions { column-gap: 1.25rem; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 3.1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .card-media img, .card-action, .text-link { transition: transform .25s ease, gap .2s ease; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
