:root {
  --ink: #171714;
  --paper: #f2efe9;
  --paper-deep: #e5e0d7;
  --white: #fff;
  --accent: #d9412d;
  --muted: #6d6a63;
  --line: rgba(23, 23, 20, .16);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 15px clamp(24px, 4vw, 72px);
  color: #fff;
}
.brand {
  display: grid;
  place-items: center;
  width: 108px;
  height: 74px;
  border-radius: 4px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.brand img { width: 88px; height: 60px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); }
.main-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.main-nav a:not(.nav-contact) { text-shadow: 0 1px 16px rgba(0,0,0,.7); }
.main-nav a:hover { opacity: .72; }
.main-nav .nav-contact {
  padding: 13px 20px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border-radius: 999px;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #292b2d;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 52% 45%; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(12,12,11,.75) 0%, rgba(12,12,11,.25) 52%, rgba(12,12,11,.04) 78%),
    linear-gradient(0deg, rgba(12,12,11,.58) 0%, transparent 52%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 48px));
  margin: 0 clamp(24px, 7vw, 120px) clamp(70px, 9vh, 120px);
}
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(72px, 13vw, 196px);
  line-height: .78;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero-lead {
  margin: 32px 0 30px;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 350;
  letter-spacing: -.02em;
}
.hero-note {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 72px);
  bottom: 42px;
  max-width: 280px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  opacity: .78;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: #fff; }
.button-dark { color: #fff; background: var(--ink); }
.button-outline { border-color: var(--ink); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(36px, 8vw, 140px);
  padding: clamp(90px, 12vw, 180px) clamp(24px, 7vw, 120px);
}
.intro .section-kicker { grid-column: 1 / -1; margin-bottom: -8px; color: var(--accent); }
.intro h2, .gallery-section h2, .process-copy h2, .contact-section h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.intro-copy {
  align-self: end;
  max-width: 570px;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
  color: var(--muted);
}
.intro-copy p { margin: 0; }
.intro-copy p + p { margin-top: 22px; }

.gallery-section { padding: 0 clamp(12px, 2vw, 32px) clamp(110px, 12vw, 190px); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  padding: 0 clamp(12px, 5vw, 88px) clamp(40px, 5vw, 72px);
}
.section-heading .section-kicker { color: var(--accent); }
.gallery-section h2 { font-size: clamp(42px, 5.5vw, 78px); }
.gallery-hint { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 250px;
  gap: 12px;
}
.gallery-card {
  position: relative;
  grid-column: span 4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  background: #ccc;
  text-align: left;
}
.gallery-card.card-wide { grid-column: span 7; }
.gallery-card.card-medium { grid-column: span 5; }
.gallery-card.card-tall { grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.gallery-card:nth-child(1) img { object-position: 62% 50%; }
.gallery-card:nth-child(2) img { object-position: 48% 40%; }
.gallery-card:nth-child(4) img { object-position: 54% 45%; }
.gallery-card:nth-child(5) img { object-position: 55% 40%; }
.gallery-card:nth-child(8) img { object-position: 50% 28%; }
.gallery-card:hover img, .gallery-card:focus-visible img { transform: scale(1.035); }
.gallery-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  min-height: 100px;
  padding: 32px 28px 24px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.64), transparent);
}
.card-overlay b { font-size: 11px; letter-spacing: .12em; }
.card-overlay span { font-size: 16px; font-weight: 650; text-align: right; }

.process-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 760px;
  background: #dfdbd4;
}
.process-image { min-height: 660px; overflow: hidden; }
.process-image img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 35%; }
.process-copy {
  align-self: center;
  padding: clamp(58px, 8vw, 128px);
}
.process-copy .section-kicker { color: var(--accent); }
.process-copy h2 { font-size: clamp(52px, 6vw, 84px); }
.process-copy > p:not(.section-kicker) {
  margin: 34px 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.process-copy ol { margin: 0 0 40px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-copy li {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.process-copy li span { color: var(--accent); font-size: 11px; font-weight: 800; }
.text-link {
  display: inline-flex;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.contact-section {
  padding: clamp(100px, 14vw, 210px) clamp(24px, 8vw, 140px);
  text-align: center;
  color: #fff;
  background: var(--ink);
}
.contact-section .section-kicker { color: #e9705f; }
.contact-section h2 { max-width: 1000px; margin-inline: auto; }
.contact-section > p:not(.section-kicker) {
  max-width: 680px;
  margin: 36px auto;
  color: rgba(255,255,255,.68);
  font-size: 18px;
  line-height: 1.7;
}
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.contact-section .button-dark { color: var(--ink); background: #fff; }
.contact-section .button-outline { color: #fff; border-color: rgba(255,255,255,.45); }
.contact-section address { margin-top: 40px; color: rgba(255,255,255,.55); font-size: 13px; font-style: normal; }

footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(24px, 4vw, 72px);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .04em;
}
footer p { margin: 0; color: var(--muted); }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }
.footer-brand { text-decoration: none; font-weight: 850; letter-spacing: .12em; }
.mobile-call { display: none; }

.detail-dialog {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  max-height: min(820px, calc(100% - 48px));
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,.38);
}
.detail-dialog[open] { display: grid; grid-template-columns: 1.15fr .85fr; }
.detail-dialog::backdrop { background: rgba(10,10,9,.78); backdrop-filter: blur(6px); }
.dialog-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.dialog-image-wrap { min-height: 660px; overflow: hidden; background: #ddd; }
.dialog-image { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { align-self: center; padding: clamp(42px, 6vw, 84px); }
.dialog-number, .dialog-subtitle { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.dialog-content h2 { margin: 18px 0; font-size: clamp(42px, 4vw, 64px); line-height: 1; letter-spacing: -.05em; }
.dialog-subtitle { color: var(--muted); letter-spacing: .08em; }
.dialog-description { margin: 32px 0 20px; font-size: 18px; line-height: 1.6; }
.dialog-note { padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }

@media (max-width: 900px) {
  .site-header { min-height: 88px; padding: 12px 18px; }
  .brand { width: 88px; height: 60px; }
  .brand img { width: 72px; height: 50px; }
  .menu-toggle {
    position: relative;
    z-index: 42;
    display: grid;
    align-content: center;
    gap: 7px;
    width: 50px;
    height: 50px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
    background: rgba(10,10,9,.25);
    backdrop-filter: blur(8px);
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] { color: var(--ink); background: #fff; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 100px 26px 50px;
    color: var(--ink);
    background: var(--paper);
    transform: translateX(100%);
    transition: transform .32s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 25px; letter-spacing: -.03em; text-shadow: none !important; }
  .main-nav .nav-contact { margin-top: 20px; padding: 16px 22px; color: #fff; background: var(--ink); text-align: center; font-size: 15px; }
  .hero { min-height: 90svh; }
  .hero-image { object-position: 59% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,10,9,.74) 0%, rgba(10,10,9,.12) 72%); }
  .hero-content { width: calc(100% - 40px); margin: 0 20px 72px; }
  .hero h1 { font-size: clamp(66px, 23vw, 110px); }
  .hero-lead { margin: 24px 0; font-size: 22px; }
  .hero-note { display: none; }
  .intro { grid-template-columns: 1fr; gap: 26px; }
  .intro .section-kicker { margin-bottom: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .gallery-hint { margin: 0; }
  .gallery-grid { grid-auto-rows: 260px; }
  .gallery-card, .gallery-card.card-medium, .gallery-card.card-wide { grid-column: span 6; }
  .gallery-card.card-tall { grid-row: span 2; }
  .process-section { grid-template-columns: 1fr; }
  .process-image { min-height: 520px; }
  .process-copy { padding: 72px 36px; }
  footer { grid-template-columns: 1fr; text-align: center; padding-bottom: 90px; }
  footer p:nth-child(2), footer p:last-child { text-align: center; }
  .detail-dialog[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-image-wrap { min-height: min(54vh, 520px); }
}

@media (max-width: 620px) {
  .hero { min-height: 86svh; }
  .hero-image { object-position: 64% center; }
  .hero-content { margin-bottom: 58px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: 20vw; }
  .hero-lead { max-width: 280px; font-size: 20px; }
  .button { width: 100%; }
  .intro { padding: 86px 22px; }
  .intro h2, .gallery-section h2, .contact-section h2 { font-size: clamp(40px, 12.5vw, 58px); }
  .intro-copy { font-size: 17px; }
  .gallery-section { padding-inline: 8px; padding-bottom: 90px; }
  .section-heading { padding: 0 14px 34px; }
  .gallery-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 14px 14px;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-card, .gallery-card.card-medium, .gallery-card.card-wide, .gallery-card.card-tall {
    flex: 0 0 84vw;
    height: 68vh;
    max-height: 620px;
    min-height: 480px;
    scroll-snap-align: center;
  }
  .gallery-card img { object-position: 50% 50% !important; }
  .gallery-card:nth-child(1) img { object-position: 62% 50% !important; }
  .gallery-card:nth-child(8) img { object-position: 50% 30% !important; }
  .card-overlay { padding: 34px 20px 20px; }
  .process-image { min-height: 470px; }
  .process-image img { object-position: 48% 25%; }
  .process-copy { padding: 68px 22px; }
  .process-copy h2 { font-size: 15vw; }
  .contact-section { padding: 94px 22px 110px; }
  .contact-actions { display: grid; }
  .mobile-call {
    position: fixed;
    z-index: 25;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 14px 20px;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
  }
  .detail-dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    margin: 0;
  }
  .dialog-image-wrap { min-height: 48vh; }
  .dialog-content { padding: 38px 22px 100px; }
  .dialog-content h2 { font-size: 44px; }
  .dialog-actions { display: grid; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
