@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy: #081426;
  --navy-deep: #060d1a;
  --cream: #f5f3ef;
  --gold: #dfbb79;
  --quiet: #abbacf;
  --line: #a3b4d134;
  --ink: #17263d;
  --paper-line: #17263d30;
  color-scheme: dark;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--cream);
  background: var(--navy-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, dl, dd, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:not([hidden]) { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, calc(100% - 104px)); margin-inline: auto; }
.label { color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: .17em; font-weight: 600; }
.skip { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 16px; background: var(--cream); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.top { position: relative; z-index: 5; }
.nav { min-height: 83px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 13px; align-items: center; font-size: .61rem; letter-spacing: .13em; text-transform: uppercase; line-height: 1.35; }
.brand-plate { display: grid; place-items: center; width: 85px; height: 49px; background: var(--cream); padding: 4px 8px; }
.brand-plate img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.links { display: flex; align-items: center; gap: clamp(18px, 3vw, 52px); font-size: .88rem; }
.links a:hover, .footer a:hover { color: var(--gold); }
.nav-cta, .menu { padding: 11px 15px; border: 1px solid var(--line); background: transparent; }
.nav-cta span, .menu span { margin-left: 8px; }
.menu { display: none; }

.hero { position: relative; padding-top: clamp(25px, 5vh, 68px); padding-bottom: 24px; }
.hero-title { position: relative; z-index: 2; text-align: center; padding-inline: 3px; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7.6rem); line-height: .98; font-weight: 500; letter-spacing: -.077em; margin-top: 12px; }
.hero h1 em { color: var(--gold); font-weight: inherit; font-style: normal; }
.gallery { position: relative; }
.scene { height: clamp(320px, 53vh, 560px); position: relative; isolation: isolate; touch-action: pan-y; }
.scene canvas, .field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene canvas { opacity: 0; }
.scene[data-renderer="webgl"] canvas { opacity: 1; cursor: grab; }
.scene[data-dragging] canvas { cursor: grabbing; }
.field {
  z-index: -1;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    radial-gradient(ellipse at 50% 52%, #31486770, #19294344 40%, transparent 73%);
  mask-image: radial-gradient(ellipse at center, #000 24%, transparent 77%);
}
.field::before, .field::after { content: ""; position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%); height: 76%; width: auto; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; }
.field::after { height: 97%; border-style: dashed; }
.poster { position: absolute; inset: 3% 0; display: grid; place-items: center; pointer-events: none; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scene[data-renderer="webgl"] .poster { visibility: hidden; }
.gallery-foot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
  padding: 18px 0 2px;
  border-top: 1px solid var(--line);
}
.gallery-copy p { max-width: 38ch; color: var(--quiet); font-size: .91rem; line-height: 1.45; }
.text-link { display: inline-flex; gap: 19px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid; margin-top: 16px; color: var(--gold); font-size: .9rem; font-weight: 600; }
.text-link:hover span { transform: translateY(2px); }
.text-link span { transition: transform .2s ease; }
.gallery-place { justify-self: end; text-align: right; text-transform: uppercase; color: var(--cream); font-size: .72rem; line-height: 1.6; letter-spacing: .12em; grid-column: 3; }
.gallery-place span { color: var(--quiet); }
.scene-controls { text-align: center; }
.mode { display: inline-flex; border: 1px solid var(--line); padding: 3px; gap: 3px; }
.mode button { background: transparent; border: 0; min-height: 42px; padding: 0 13px; font-size: .78rem; white-space: nowrap; }
.mode button[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); font-weight: 700; }
.mode button:hover:not([aria-pressed="true"]) { background: #aec0da18; }
.drag-note { color: var(--quiet); font-size: .72rem; margin-top: 7px; }

.light { background: var(--cream); color: var(--ink); color-scheme: light; }
.light .label { color: #765724; }
.about, .contact { padding-block: clamp(75px, 10vw, 148px); }
h2, .perspective p { font-size: clamp(2.6rem, 6.1vw, 6.15rem); font-weight: 500; line-height: .99; letter-spacing: -.067em; }
h2 em, .perspective em { color: var(--gold); font-style: normal; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px,8vw,130px); margin-top: 27px; align-items: end; }
.about-grid p, .contact-grid p { max-width: 43ch; line-height: 1.63; font-size: clamp(1rem,1.5vw,1.19rem); }
.facts { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 56px; border-block: 1px solid var(--paper-line); }
.facts div { padding: 19px 24px; }
.facts div + div { border-left: 1px solid var(--paper-line); }
.facts dt, .contact-row span { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; color: #765724; }
.facts dd { margin-top: 7px; font-size: clamp(1rem,2vw,1.55rem); font-weight: 600; }
.services { padding-block: clamp(75px, 10vw, 139px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px,7vw,108px); align-items: start; }
.services h2 { margin-top: 20px; font-size: clamp(2.55rem, 4.4vw, 4.75rem); }
.services-heading > p:last-child { max-width: 35ch; margin-top: 23px; line-height: 1.6; color: var(--quiet); }
.service-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); padding: 27px 0 27px 24px; border-left: 2px solid transparent; transition: border-color .25s; }
.service-list li:hover { border-left-color: var(--gold); }
.service-list h3 { font-size: clamp(1.35rem,2.5vw,2.2rem); font-weight: 500; letter-spacing: -.04em; }
.service-list p { color: var(--quiet); line-height: 1.5; margin-top: 7px; max-width: 42ch; }

.perspective {
  display: grid;
  align-items: center;
  min-height: clamp(320px,47vw,530px);
  background: linear-gradient(112deg, #102036, #0b1424 57%, #263752);
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.perspective::before, .perspective::after { content: ""; width: 62%; height: 145%; position: absolute; top: -26%; right: -6%; transform: skew(-31deg); border: 1px solid #dfbb794a; z-index: -1; }
.perspective::after { right: -25%; height: 175%; top: -43%; border-color: #dfbb7930; }
.contact-grid { align-items: start; }
.contact-grid p { margin-top: 19px; }
.contact-grid .text-link { color: #624416; margin-top: 24px; }
.contact-list { border-top: 1px solid var(--paper-line); }
.contact-row { display: grid; gap: 7px; padding: 17px 0; border-bottom: 1px solid var(--paper-line); overflow-wrap: anywhere; }
a.contact-row:hover strong { text-decoration: underline; }
.contact-row strong { font-size: 1.05rem; }
.contact-row small { color: #455369; font-size: .87rem; }
.footer { padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer p, .footer > a:last-child { font-size: .74rem; line-height: 1.45; color: var(--quiet); }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 60px); }
  .gallery-foot { gap: 16px; }
}

@media (max-width: 670px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 67px; flex-wrap: wrap; gap: 10px; }
  .brand-plate { width: 71px; height: 42px; }
  .brand { gap: 9px; }
  .nav:has(.menu:not([hidden])) .menu { display: block; }
  .nav .links { width: 100%; justify-content: space-between; gap: 8px; padding: 0 0 12px; }
  .nav:has(.menu:not([hidden])) .links { display: none; position: absolute; left: 0; top: 100%; padding: 16px 18px; background: var(--navy); border-bottom: 1px solid var(--line); }
  .nav:has(.menu:not([hidden])) .links.open { display: flex; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(3.2rem, 11.2vw, 5.5rem); line-height: .92; }
  .hero h1 em { display: block; }
  .scene { height: clamp(248px, 40svh, 365px); }
  .gallery-foot { grid-template-columns: minmax(0,1fr) auto; padding-top: 14px; align-items: start; }
  .scene-controls { grid-row: 1; grid-column: 1 / -1; }
  .gallery-place { grid-column: 2; font-size: .61rem; }
  .gallery-copy p { font-size: .88rem; }
  .about-grid, .contact-grid, .services { grid-template-columns: 1fr; }
  .facts { margin-top: 34px; }
  .facts div { padding: 12px 9px; min-width: 0; }
  .facts dt { font-size: .6rem; }
  .facts dd { font-size: clamp(.71rem, 3.2vw, 1rem); overflow-wrap: anywhere; }
  .service-list li { padding-inline-start: 13px; }
  .footer { flex-wrap: wrap; }
  .footer p { flex: 1; }
}
@media (max-width: 380px) {
  .gallery-foot { grid-template-columns: minmax(0,1fr); }
  .gallery-place { grid-column: 1; justify-self: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) { .drag-note { display: none; } .scene[data-renderer="webgl"] canvas { cursor: default; } }
