@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #07090c;
  --surface: #0e1217;
  --ink: #f4f5f2;
  --muted: #98a0a9;
  --line: #242a31;
  --accent: #ff713f;
  font-family: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); min-width: 320px; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  z-index: 20; background: rgba(7, 9, 12, .88); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 1rem; letter-spacing: -.02em; }
.brand b { color: var(--accent); font-weight: 700; }
.brand-mark { width: 27px; height: 27px; position: relative; transform: rotate(30deg); }
.brand-mark i { position: absolute; inset: 3px; border: 1px solid var(--accent); }
.brand-mark i:nth-child(2) { transform: translate(4px, -4px); opacity: .6; }
.brand-mark i:nth-child(3) { transform: translate(8px, -8px); opacity: .3; }
nav { display: flex; gap: clamp(20px, 4vw, 52px); font-size: .88rem; color: #c6cbd1; }
nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible { color: var(--ink); border-color: var(--accent); }

.intro { min-height: calc(100vh - 76px); padding: clamp(70px, 10vw, 140px) clamp(20px, 8vw, 130px) 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 410px); align-content: center; position: relative; overflow: hidden; }
.intro::after { content: ''; position: absolute; width: 42vw; height: 42vw; max-width: 650px; max-height: 650px; right: -9vw; top: 8vh; border: 1px solid #222a33; border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.012), 0 0 0 120px rgba(255,255,255,.008); pointer-events: none; }
.eyebrow { font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: var(--accent); margin: 0 0 26px; }
h1 { grid-column: 1 / -1; margin: 0; font-size: clamp(3.6rem, 9.2vw, 9rem); line-height: .92; letter-spacing: -.075em; font-weight: 500; max-width: 1200px; z-index: 1; }
h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1px #7e8790; }
.intro-copy { margin: clamp(38px, 6vw, 78px) 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.65; max-width: 520px; }
.scroll-link { align-self: end; justify-self: end; display: flex; gap: 28px; align-items: center; margin-top: 50px; font-family: 'DM Mono', monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.scroll-link span:last-child { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); transition: .25s ease; }
.scroll-link:hover span:last-child { background: var(--accent); color: var(--bg); transform: translateY(5px); }
.index { grid-column: 1 / -1; display: flex; gap: clamp(24px, 7vw, 94px); border-top: 1px solid var(--line); padding-top: 24px; margin-top: clamp(48px, 8vw, 92px); color: var(--muted); font-family: 'DM Mono', monospace; font-size: .72rem; text-transform: uppercase; }
.index strong { color: var(--ink); font-size: 1rem; margin-right: 7px; }

.gallery { padding: 110px clamp(20px, 5vw, 76px); }
.section-heading { max-width: 1200px; margin: 0 auto 54px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
h2 { font-size: clamp(3rem, 6vw, 6rem); line-height: .95; letter-spacing: -.06em; margin: 0; font-weight: 500; }
.section-heading > p:last-child { color: var(--muted); max-width: 380px; line-height: 1.6; margin: 0 0 8px 40px; }
.project { max-width: 1200px; margin: 0 auto 120px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: clamp(34px, 6vw, 90px); align-items: center; }
.project.reverse { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.55fr); }
.project.reverse .viewer-shell { order: 2; }
.project.reverse .project-info { order: 1; }
.viewer-shell { height: min(66vw, 660px); min-height: 420px; position: relative; background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.08), transparent 52%), #10151b; border: 1px solid var(--line); overflow: hidden; }
.project-blue .viewer-shell { --local: #3b82f6; }
.project-bronze .viewer-shell { --local: #dc8735; }
.project-green .viewer-shell { --local: #50c0ac; }
.viewer-shell::before { content: ''; position: absolute; inset: 10%; border: 1px solid color-mix(in srgb, var(--local), transparent 72%); border-radius: 50%; }
.viewer-shell::after { content: ''; position: absolute; width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--local), transparent); left: 15%; top: 50%; opacity: .35; }
model-viewer { width: 100%; height: 100%; --poster-color: transparent; position: relative; z-index: 2; }
.project-number { position: absolute; top: 20px; left: 24px; z-index: 3; font-family: 'DM Mono', monospace; color: var(--local); font-size: .8rem; }
.orbit-hint { position: absolute; right: 20px; bottom: 18px; z-index: 3; font-family: 'DM Mono', monospace; color: #cbd1d7; font-size: .72rem; letter-spacing: .08em; }
.load-error { padding: 30px; color: #f5a8a8; }
.project-info { border-top: 1px solid var(--line); padding-top: 24px; }
.project-type { font-family: 'DM Mono', monospace; color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
h3 { font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1; letter-spacing: -.055em; font-weight: 500; margin: 20px 0 28px; }
.project-info > p:not(.project-type) { color: var(--muted); line-height: 1.7; margin: 0 0 36px; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 14px 0; font-size: .82rem; }
dt { color: var(--muted); }
dd { margin: 0; font-family: 'DM Mono', monospace; text-align: right; }

.about { border-top: 1px solid var(--line); padding: clamp(80px, 10vw, 150px) clamp(20px, 12vw, 190px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .6fr); gap: 60px; align-items: end; }
.about .eyebrow { grid-column: 1 / -1; }
.about h2 { max-width: 900px; }
.about > p:last-child { color: var(--muted); line-height: 1.8; margin: 0; }
footer { border-top: 1px solid var(--line); min-height: 100px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .75rem; text-transform: uppercase; }

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; min-height: auto; }
  h1 { font-size: clamp(3.2rem, 16vw, 6rem); }
  .scroll-link { justify-self: start; }
  .index { flex-wrap: wrap; }
  .section-heading, .project, .project.reverse, .about { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin: 28px 0 0; }
  .project.reverse .viewer-shell, .project.reverse .project-info { order: initial; }
  .viewer-shell { height: 68vh; min-height: 390px; }
  .about { gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* XYZ.3D: orange, graphite and warm white from the supplied identity. */
:root { --bg: #111214; --ink: #f3f0e9; --line: #38393b; }
.site-header { height: 88px; background: rgba(17,18,20,.96); }
.brand-logo { display: block; width: 76px; height: 76px; object-fit: contain; }
nav { font-size: .95rem; }
.intro { min-height: 690px; background: #d94827; padding-top: 90px; padding-bottom: 48px; }
.intro::after { border-color: #ffffff30; transform: skew(-15deg); border-radius: 0; box-shadow: none; }
.intro .eyebrow, .intro .intro-copy, .intro .index, .intro .index strong { color: #f3f0e9; }
.intro h1 { font-weight: 700; font-style: italic; font-size: clamp(3.4rem,8.5vw,8rem); letter-spacing: -.055em; }
.intro h1 em { color: #f3f0e9; -webkit-text-stroke: 0; }
.intro .index { border-color: #ffffff60; }
.intro .scroll-link span:last-child { color: #f3f0e9; border-color: #ffffff80; }
.eyebrow, .project-type { font-size: .875rem; }
dl div { font-size: .9rem; }
.gallery, .services, .contact { scroll-margin-top: 108px; }
.plan-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.plan-links span { flex-basis: 100%; color: var(--muted); }
.plan-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; line-height: 1.8; }
.services { padding: 100px clamp(20px,6vw,100px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,90px); align-items: start; background: #f3f0e9; color: #17191b; }
.services .eyebrow { color: #b33316; }
.services h2 { margin-bottom: 50px; }
.service { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid #17191b30; }
.service > span { color: #b33316; padding-top: 5px; font-family: 'DM Mono', monospace; }
.service h3 { font-size: clamp(1.4rem,2.4vw,2.1rem); margin: 0 0 12px; letter-spacing: -.035em; line-height: 1.15; }
.service p { color: #41454a; font-size: 1rem; line-height: 1.75; margin: 0; }
.flyer img { display: block; width: 100%; height: auto; box-shadow: 0 15px 50px #00000018; }
.contact { padding: 100px clamp(20px,8vw,130px); }
.contact > p:not(.eyebrow) { max-width: 540px; color: var(--muted); font-size: 1.1rem; line-height: 1.7; margin: 32px 0; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.contact-links a { padding: 16px 0; text-decoration: underline; text-underline-offset: 5px; }
.contact-links .contact-primary { background: #d94827; color: #fff; padding: 18px 24px; text-decoration: none; }
.contact-links span { color: var(--muted); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } .intro { min-height: auto; } .flyer { max-width: 560px; } .services, .contact { padding-top: 64px; padding-bottom: 64px; } }
@media (max-width: 480px) { .site-header { padding: 0 16px; } nav { gap: 14px; font-size: .875rem; } .brand-logo { width: 64px; height: 64px; } .intro h1 { font-size: 3.25rem; } .contact-primary { font-size: .875rem; } footer { gap: 20px; line-height: 1.6; } }
