:root {
  --ink: #192528;
  --muted: #536266;
  --paper: #f8f7f3;
  --sand: #ece9df;
  --accent: #d96945;
  --white: #ffffff;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(calc(100% - 2.5rem), var(--max-width)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 10; top: -4rem; left: 1rem; padding: .65rem 1rem; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 1rem; }
.intro-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow: hidden; background: var(--white); opacity: 1; transition: opacity .75s ease, visibility 0s linear .75s; }
.intro-screen img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-screen.is-hidden { visibility: hidden; pointer-events: none; opacity: 0; }

.site-header { border-bottom: 1px solid rgba(25, 37, 40, .12); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; object-fit: contain; border-radius: 50%; }
.brand-wordmark { display: block; width: clamp(8.8rem, 25vw, 12rem); height: 3rem; margin-left: -1.65rem; object-fit: cover; object-position: center; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: var(--muted); font-size: .93rem; font-weight: 700; text-decoration: none; }
.nav-list a:hover { color: var(--ink); }

.hero { padding: clamp(4rem, 10vw, 8rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .6fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; }
.eyebrow, .card-label, .project-number, .project-tag { margin: 0 0 1rem; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.07; letter-spacing: -.045em; }
h1 { max-width: 13ch; font-size: clamp(3rem, 7vw, 6.2rem); }
h2 { max-width: 17ch; font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.45rem; }
.lead { max-width: 60ch; margin: 1.75rem 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.button { display: inline-flex; align-items: center; gap: .75rem; padding: .85rem 1.15rem; border: 1px solid var(--ink); color: var(--white); background: var(--ink); font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.button:hover { color: var(--ink); background: transparent; }
.hero-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 5px solid var(--accent); background: var(--white); box-shadow: 0 1rem 2.5rem rgba(25, 37, 40, .08); }
.hero-card p:last-child { margin-bottom: 0; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--sand); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 9vw, 9rem); }
.prose { max-width: 58ch; color: var(--muted); }
.prose p:first-child { margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading > p { max-width: 36ch; margin: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-card { display: flex; flex-direction: column; min-height: 18rem; padding: 1.75rem; background: var(--white); }
.project-card h3 { margin-bottom: 1rem; }
.project-card > p:not(.project-number):not(.project-tag) { color: var(--muted); }
.project-tag { margin-top: auto; margin-bottom: 0; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); color: var(--white); background: var(--ink); }
.contact-panel h2 { max-width: 18ch; }
.contact-panel > div > p:last-child { max-width: 50ch; margin-bottom: 0; color: #dbe0dd; }
.button-light { flex: 0 0 auto; border-color: var(--white); background: var(--white); color: var(--ink); }
.button-light:hover { color: var(--white); background: transparent; }
.site-footer { background: var(--white); }
.site-footer p { margin: 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 760px) {
  .container { width: min(calc(100% - 2rem), var(--max-width)); }
  .header-content { align-items: flex-start; flex-direction: column; justify-content: center; gap: .55rem; padding: 1rem 0; }
  .nav-list { justify-content: flex-start; gap: .6rem 1.1rem; }
  .hero-grid, .split-layout, .project-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 34rem; }
  .section-heading, .contact-panel, .footer-content { align-items: flex-start; flex-direction: column; }
  .project-card { min-height: 0; }
  .button-light { width: 100%; justify-content: center; }
  .footer-content { padding: 1.5rem 0; }
}

@media (max-width: 380px) {
  h1 { font-size: 2.65rem; }
  .nav-list { font-size: .86rem; }
}
