:root {
  --ink: #0a0a0a;
  --panel: #111214;
  --panel-2: #18191c;
  --line: #303238;
  --paper: #f3f0e9;
  --muted: #aaa9a5;
  --orange: #f04b23;
  --orange-dark: #b92c10;
  --mint: #55b7a8;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 99; background: var(--orange); color: white; padding: 10px 14px; }
.skip-link:focus { top: 16px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(10,10,10,.9); backdrop-filter: blur(16px); }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--orange); color: var(--orange); font-family: Impact, "Arial Narrow", sans-serif; font-size: 20px; transform: skew(-7deg); }
.brand-name { line-height: 1.05; text-transform: uppercase; }
.brand-name small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #d7d5cf; font-size: .88rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--orange); }
.nav-cta { border: 1px solid var(--orange); padding: 10px 15px; color: white; }
.menu-button { display: none; border: 0; background: transparent; color: white; padding: 8px; font-size: 1.5rem; }

.hero { position: relative; min-height: 78vh; display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.5) 43%, rgba(0,0,0,.1) 70%), linear-gradient(0deg, rgba(0,0,0,.82), transparent 52%); }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 112px 0 72px; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: .77rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 400; line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(4rem, 10vw, 8.8rem); max-width: 850px; }
.hero h1 span { color: var(--orange); }
.hero-copy { max-width: 610px; margin: 22px 0 30px; color: #d6d4ce; font-size: clamp(1rem, 2vw, 1.2rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--orange); background: var(--orange); color: white; font-size: .82rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.button:hover, .button:focus-visible { background: #ff5c31; }
.button.secondary { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.5); }
.button.secondary:hover { border-color: white; background: rgba(0,0,0,.7); }

.stats { background: var(--paper); color: #151515; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 26px 30px; border-right: 1px solid #cbc7bd; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Impact, "Arial Narrow", sans-serif; color: var(--orange-dark); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 400; line-height: 1.05; text-transform: uppercase; }
.stat span { font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 96px 0; }
.section-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 44px; }
.section h2 { font-size: clamp(3rem, 7vw, 6.2rem); }
.section-intro { margin: 0; color: var(--muted); max-width: 580px; }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project-card { position: relative; min-height: 560px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.project-card:first-child, .project-card:last-child { grid-column: span 6; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92), transparent 64%); }
.project-card:hover img { transform: scale(1.035); }
.project-card-content { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; }
.project-card h3 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.project-card p { margin: 10px 0 0; color: #cfcdc7; }
.project-tag { display: inline-block; margin-bottom: 10px; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }

.services { background: var(--paper); color: #121212; }
.services .section-intro { color: #5c5a55; }
.service-list { border-top: 2px solid #171717; }
.service { display: grid; grid-template-columns: 70px 1fr 1.2fr; gap: 28px; padding: 27px 0; border-bottom: 1px solid #bbb7ae; align-items: start; }
.service-number { color: var(--orange-dark); font-family: Impact, "Arial Narrow", sans-serif; font-size: 1.7rem; }
.service h3 { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.service p { margin: 0; color: #5c5a55; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.about-quote { padding-left: 24px; border-left: 4px solid var(--orange); font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.35; }
.about-copy p { color: var(--muted); }
.about-copy strong { color: white; }

.planner { background: linear-gradient(135deg, #191a1d, #0d0d0e); border-block: 1px solid var(--line); }
.planner-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; }
.planner h2 { font-size: clamp(3.4rem, 7vw, 6.8rem); }
.planner-note { color: var(--muted); }
.contact-links { display: grid; gap: 14px; margin-top: 30px; }
.contact-links > a { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-links span { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.contact-links strong { font-size: 1rem; }
.contact-links > a:hover strong, .contact-links > a:focus-visible strong { color: var(--orange); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links a { border: 1px solid #45464b; padding: 9px 12px; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.social-links a:hover, .social-links a:focus-visible { border-color: var(--orange); color: var(--orange); }
.project-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #d9d6ce; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #3b3c40; background: #0b0b0c; color: white; border-radius: 0; padding: 13px 14px; outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(240,75,35,.2); }
.form-status { min-height: 28px; grid-column: 1/-1; color: #c9c7c1; }

.coming-soon { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border: 1px solid var(--line); background: var(--panel); }
.coming-soon h3 { font-size: 2.2rem; }
.coming-soon p { margin: 8px 0 0; color: var(--muted); }
.stamp { flex: 0 0 auto; border: 2px solid var(--orange); color: var(--orange); padding: 12px 18px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); }

.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.footer-copy { max-width: 560px; color: var(--muted); }
.footer-meta { text-align: right; color: var(--muted); font-size: .82rem; }
.footer-meta a:hover, .footer-meta a:focus-visible { color: var(--orange); }

/* Project pages */
.project-hero { min-height: 72vh; position: relative; display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.12) 75%), linear-gradient(90deg, rgba(0,0,0,.6), transparent 60%); }
.project-hero-content { position: relative; z-index: 2; padding: 110px 0 54px; }
.project-hero h1 { font-size: clamp(4rem, 9vw, 8rem); }
.project-hero .subhead { margin: 18px 0 0; max-width: 700px; color: #d0cec8; font-size: 1.1rem; }
.project-overview { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: start; }
.lead { color: #d8d5ce; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.48; }
.specs { border-top: 2px solid var(--orange); }
.spec-row { display: grid; grid-template-columns: 40% 60%; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.spec-row dd { margin: 0; color: white; }
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; margin-top: 76px; align-items: center; }
.story-block.reverse .story-media { order: 2; }
.story-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.story-media.portrait { aspect-ratio: 4 / 5; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.story-copy p { color: var(--muted); }
.callout { margin: 80px 0 0; padding: 40px; border: 1px solid var(--line); background: var(--panel); }
.callout p { max-width: 900px; margin: 0; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.3vw, 2rem); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery button { grid-column: span 4; min-height: 320px; padding: 0; border: 0; background: #181818; cursor: zoom-in; overflow: hidden; }
.gallery button:nth-child(1), .gallery button:nth-child(6) { grid-column: span 8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.photo-dialog { width: min(94vw, 1200px); max-height: 92vh; padding: 0; border: 1px solid #444; background: #080808; color: white; }
.photo-dialog::backdrop { background: rgba(0,0,0,.9); }
.photo-dialog img { width: 100%; max-height: 84vh; object-fit: contain; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.7); color: white; cursor: pointer; font-size: 1.4rem; }
.back-link { display: inline-flex; margin-bottom: 20px; color: #d1cec7; font-size: .8rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.back-link:hover { color: var(--orange); }
.apache-accent .eyebrow, .apache-accent .project-tag { color: var(--mint); }
.apache-accent .specs { border-top-color: var(--mint); }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 22px 20px; background: #0b0b0c; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .section-header, .about-grid, .planner-grid, .project-overview, .story-block { grid-template-columns: 1fr; gap: 28px; }
  .project-card:first-child, .project-card:last-child { grid-column: 1 / -1; }
  .project-card { min-height: 500px; }
  .service { grid-template-columns: 48px 1fr; }
  .service p { grid-column: 2; }
  .story-block.reverse .story-media { order: 0; }
  .gallery button, .gallery button:nth-child(1), .gallery button:nth-child(6) { grid-column: span 6; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .brand-name { font-size: .82rem; }
  .hero { min-height: 74vh; }
  .hero-media::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.28) 80%); }
  .hero-content { padding-bottom: 44px; }
  h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .section { padding: 68px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid #cbc7bd; }
  .section-header { margin-bottom: 30px; }
  .project-card { min-height: 430px; }
  .service { grid-template-columns: 40px 1fr; gap: 14px; }
  .project-form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .coming-soon, .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
  .project-hero { min-height: 64vh; }
  .project-hero h1 { font-size: clamp(3.5rem, 17vw, 5.8rem); }
  .gallery button, .gallery button:nth-child(1), .gallery button:nth-child(6) { grid-column: 1 / -1; min-height: 290px; }
  .callout { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
