:root {
  --ink: #f4efe5;
  --muted: #b5b4aa;
  --coal: #11130f;
  --panel: #181a16;
  --panel-deep: #0d0f0c;
  --brass: #d6a84e;
  --teal: #58c6b8;
  --line: rgba(244, 239, 229, 0.16);
  --page: min(100% - 48px, 1320px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--coal);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 12px;
  background: var(--brass);
  color: #11130f;
  font-weight: 800;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(17, 19, 15, 0.92), rgba(17, 19, 15, 0));
  transition: background .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(17, 19, 15, .94); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .92rem; font-weight: 760; }
.brand-mark { width: 36px; height: 36px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .24)); }
.brand-text { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 3px; }
.site-nav a { padding: 9px 12px; color: rgba(244, 239, 229, .78); font-size: .84rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav .nav-cta { margin-left: 8px; border: 1px solid var(--line); color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: currentColor; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .55fr);
  gap: clamp(44px, 9vw, 170px);
  align-items: end;
  min-height: min(820px, 88vh);
  padding: 184px max(24px, calc((100vw - 1320px) / 2)) 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 25%, rgba(88, 198, 184, .14), transparent 25rem),
    radial-gradient(circle at 92% 88%, rgba(214, 168, 78, .17), transparent 28rem),
    linear-gradient(135deg, #10120f, #171914 62%, #0e100d);
}
.hero::after { content: ""; position: absolute; right: max(24px, calc((100vw - 1320px) / 2)); bottom: 42px; left: max(24px, calc((100vw - 1320px) / 2)); height: 1px; background: var(--line); }
.hero-content, .hero-side { position: relative; z-index: 1; }
.eyebrow, .section-kicker, .project-type {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 11ch; margin-bottom: 22px; font-size: clamp(4.1rem, 9vw, 8.2rem); line-height: .88; letter-spacing: -.055em; }
h1 em { color: var(--teal); font-style: normal; }
h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: .94; letter-spacing: -.045em; }
h3 { margin-bottom: 12px; font-size: clamp(1.55rem, 2.4vw, 2.35rem); line-height: 1; letter-spacing: -.03em; }
.hero-copy { max-width: 610px; margin-bottom: 31px; color: rgba(244, 239, 229, .8); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 21px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 19px; border: 1px solid transparent; font-size: .85rem; font-weight: 800; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--brass); color: #12130f; }
.button-primary:hover, .button-primary:focus-visible { background: #e8ba5f; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); font-size: .82rem; font-weight: 780; }
.text-link:hover, .text-link:focus-visible { color: var(--ink); }
.hero-side { align-self: center; border-left: 1px solid var(--line); padding: 17px 0 17px 25px; }
.hero-side p { margin-bottom: 12px; font-size: clamp(1.6rem, 2.8vw, 2.8rem); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; }
.hero-side span { color: var(--muted); font-size: .8rem; }

.section { padding: clamp(76px, 10vw, 150px) max(24px, calc((100vw - 1320px) / 2)); }
.intro { background: var(--panel-deep); }
.intro-grid, .section-heading, .contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .62fr); gap: clamp(32px, 9vw, 150px); align-items: end; }
.intro-grid p, .section-heading > p, .contact-grid p { max-width: 530px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }

.projects { background: #141612; }
.section-heading { margin-bottom: clamp(38px, 6vw, 74px); }
.section-heading > p { padding-bottom: 6px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); background: #10120f; }
.project-card > img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; filter: saturate(.95) contrast(1.06); transition: transform .4s ease, filter .4s ease; }
.project-card:hover > img { transform: scale(1.035); filter: saturate(1.1) contrast(1.08); }
.project-copy { padding: clamp(24px, 3vw, 36px); }
.project-copy > p:not(.project-type) { max-width: 550px; margin-bottom: 27px; color: var(--muted); }
.project-type { color: var(--teal); }
.project-primal .project-type { color: var(--brass); }
.project-links { display: flex; flex-wrap: wrap; gap: 22px; }

.expertise { background: var(--panel-deep); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.expertise-grid article { min-height: 255px; padding: 28px 28px 24px 0; border-right: 1px solid var(--line); }
.expertise-grid article + article { padding-left: 28px; }
.expertise-grid article:last-child { border-right: 0; }
.expertise-grid span { display: block; margin-bottom: 52px; color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
.expertise-grid h3 { max-width: 10ch; }
.expertise-grid p { max-width: 275px; margin-bottom: 0; color: var(--muted); }

.contact { background: linear-gradient(120deg, #252419, #151712 58%, #10120f); }
.contact-grid { align-items: center; }
.contact-grid h2 { max-width: 10ch; }
.contact-grid p { margin-bottom: 25px; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 29px max(24px, calc((100vw - 1320px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }

/* Shared legal pages */
.legal-page { min-height: 100vh; padding-top: 70px; }
.legal-hero { background: #141612; }
.legal-hero h1 { max-width: none; margin-bottom: 18px; }
.legal-hero > p { max-width: 720px; color: var(--muted); font-size: 1.1rem; }
.legal-content { background: var(--panel-deep); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 18px; }
.legal-card { border: 1px solid var(--line); padding: clamp(24px, 4vw, 38px); background: rgba(244, 239, 229, .035); }
.legal-card-wide { grid-column: 1 / -1; }
.legal-card h2 { margin-bottom: 21px; font-size: clamp(1.9rem, 3.3vw, 3rem); }
.legal-card p { max-width: 780px; color: rgba(244, 239, 229, .84); }
.legal-card dl { display: grid; gap: 18px; margin: 0; }
.legal-card dt { color: var(--brass); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.legal-card dd { margin: 6px 0 0; color: rgba(244, 239, 229, .84); font-size: 1.05rem; }
.legal-card a { color: var(--teal); }
.legal-note { color: var(--muted) !important; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  :root { --page: min(100% - 36px, 1320px); }
  .site-header { padding: 12px 18px; background: rgba(17, 19, 15, .95); border-bottom-color: var(--line); }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: .83rem; }
  .nav-toggle { display: block; position: relative; z-index: 22; }
  .site-nav { position: fixed; inset: 0; z-index: 21; display: grid; align-content: center; justify-items: center; gap: 12px; background: rgba(17, 19, 15, .98); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { min-width: min(270px, calc(100vw - 48px)); border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 1.35rem; text-align: center; }
  .site-nav .nav-cta { margin: 10px 0 0; border: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; gap: 42px; min-height: auto; padding: 138px 18px 62px; }
  .hero::after { right: 18px; bottom: 29px; left: 18px; }
  .hero-side { justify-self: start; padding: 14px 0 14px 19px; }
  .section { padding: 76px 18px; }
  .intro-grid, .section-heading, .contact-grid, .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { margin-bottom: 38px; }
  .project-grid, .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid { border-top: 0; gap: 0; }
  .expertise-grid article, .expertise-grid article + article { min-height: 0; padding: 25px 0; border-top: 1px solid var(--line); border-right: 0; }
  .expertise-grid span { margin-bottom: 25px; }
  .expertise-grid h3 { max-width: none; }
  .site-footer { flex-direction: column; padding: 25px 18px; }
  .legal-page { padding-top: 58px; }
}

@media (max-width: 440px) {
  .brand-text { max-width: 165px; white-space: normal; line-height: 1.05; }
  h1 { font-size: clamp(3.6rem, 17vw, 5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .project-copy { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
