:root {
  --ink: #0d1b2a;
  --ink-2: #16324f;
  --ink-soft: #2c4a66;
  --accent: #3d7eb3;
  --accent-deep: #2a5f8a;
  --accent-soft: #b7d4ea;
  --gold: #c9a227;
  --paper: #f4f1ea;
  --sheet: #fbfaf6;
  --stone: #dfe4ea;
  --stone-2: #c8d0d8;
  --muted: #4a5a68;
  --muted-2: #6b7a86;
  --line: rgba(13, 27, 42, 0.12);
  --line-strong: rgba(13, 27, 42, 0.22);
  --shadow: 0 24px 60px rgba(13, 27, 42, 0.14);
  --shadow-deep: 0 36px 80px rgba(13, 27, 42, 0.22);
  --glass: rgba(251, 250, 246, 0.78);
  --glass-strong: rgba(251, 250, 246, 0.94);
  --font-display: "Avenir Next Condensed", "Segoe UI Narrow", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.1rem, 4vw, 3.2rem);
  --shell: min(1180px, calc(100% - (var(--pad) * 2)));
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
h1, h2, h3, p, figure, ul, ol, dl { margin: 0; }
::selection { background: var(--accent); color: #fbfaf6; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--sheet);
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-solid {
  background: var(--glass);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.06);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.wordmark img {
  width: 72px;
  height: 45px;
  object-fit: contain;
  background: #111;
  border-radius: 10px;
  padding: 4px 6px;
  box-shadow: 0 8px 18px rgba(13, 27, 42, 0.16);
}
.wordmark span {
  display: grid;
  line-height: 1.1;
}
.wordmark strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.wordmark small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--ink-soft);
  opacity: 0.88;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  opacity: 1;
}
.nav-cta,
.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 999px;
}
.nav-cta {
  background: var(--ink);
  color: var(--sheet) !important;
  opacity: 1 !important;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.18);
}
.nav-cta:hover { background: var(--ink-2); }
.nav-phone {
  background: var(--accent);
  color: #fff !important;
  opacity: 1 !important;
}
.nav-phone:hover { background: var(--accent-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 126, 179, 0.2);
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.lede {
  margin-top: 1.15rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fbfaf6; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost {
  background: rgba(251, 250, 246, 0.7);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--sheet); border-color: var(--ink); }
.btn-soft { background: var(--stone); color: var(--ink); }
.btn-soft:hover { background: var(--stone-2); }

.hero {
  position: relative;
  padding: clamp(2.2rem, 6vw, 4.6rem) 0 clamp(2.8rem, 7vw, 5.2rem);
  overflow: clip;
}
.hero-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy .lede { max-width: 36rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-meta a { color: var(--ink); font-weight: 700; border-bottom: 1px solid transparent; }
.hero-meta a:hover { border-bottom-color: var(--accent); }

.photo-stack {
  position: relative;
  min-height: clamp(340px, 46vw, 500px);
}
.photo-card {
  position: absolute;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 28, 0.78));
  color: #f4efe7;
  font-size: 0.78rem;
}
.photo-card-main { inset: 0 6% 10% 0; z-index: 1; }
.photo-card-float {
  width: min(52%, 260px);
  aspect-ratio: 4/3;
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: rotate(2.2deg);
}

.section { padding: clamp(3.2rem, 8vw, 5.8rem) 0; }
.section-ink { background: var(--ink); color: var(--sheet); }
.section-ink .eyebrow { color: var(--accent-soft); }
.section-ink .muted,
.section-ink .lede { color: rgba(245, 240, 232, 0.72); }
.section-stone { background: var(--stone); }
.section-sheet { background: var(--sheet); }
.section-head {
  width: var(--shell);
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}
.section-head p { max-width: 38ch; color: var(--muted); }

.service-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.45rem;
  border-radius: 22px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.05);
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 126, 179, 0.16), transparent 70%);
}
.service-card h3 { margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.service-card .card-link {
  margin-top: 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-deep);
}
.service-card:hover {
  border-color: rgba(61, 126, 179, 0.45);
  transform: translateY(-2px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.work-stage {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.1rem;
}
.work-feature,
.work-side figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}
.work-feature img,
.work-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-feature { min-height: 360px; }
.work-side { display: grid; gap: 1.1rem; }
.work-side figure { min-height: 170px; }
.work-feature figcaption,
.work-side figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 28, 0.8));
  color: #f4efe7;
  font-size: 0.82rem;
}

.areas {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.area-pills span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.16);
  font-size: 0.9rem;
  font-weight: 600;
}
.areas-photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transform: rotate(1deg);
}
.areas-photo img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  object-position: center;
}

.cta-band {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.page-hero { padding: clamp(2.2rem, 6vw, 4rem) 0 1.4rem; }
.page-hero .shell {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: end;
}
.page-hero figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-hero img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.prose {
  width: min(740px, var(--shell));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose strong { color: var(--ink); }

.split {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}
.split figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.detail-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.detail-card {
  display: grid;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.05);
  padding: 1.4rem 1.35rem;
}
.detail-card p { color: var(--muted); font-size: 0.98rem; margin-top: 0.6rem; }

.contact-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}
.contact-card,
.form-card {
  border-radius: 26px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.contact-card h2 { margin-bottom: 0.8rem; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.contact-list span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
}
.contact-list a,
.contact-list strong {
  font-size: 1.08rem;
  font-weight: 700;
}
.form-card h2 { margin-bottom: 0.55rem; }
.form-card .lede { margin-top: 0.4rem; margin-bottom: 1.2rem; max-width: none; font-size: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field { display: grid; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 126, 179, 0.2);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
}
.form-thanks {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #e3eef7;
  border: 1px solid #b7cfe0;
  color: #16324f;
}
.form-card.is-sent .form-grid,
.form-card.is-sent .form-actions { display: none; }
.form-card.is-sent .form-thanks { display: block; }
.form-thanks a { color: var(--ink); font-weight: 700; text-decoration: underline; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.site-footer {
  padding: 2.6rem var(--pad) 2.8rem;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.footer-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.site-footer a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--glass-strong);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.chat-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  min-height: 52px;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 700;
  box-shadow: var(--shadow-deep);
}
.chat-dock {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 90;
  width: min(360px, calc(100vw - 28px));
  display: none;
  border-radius: 22px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.chat-dock.is-open { display: block; }
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: var(--sheet);
}
.chat-head p { font-size: 0.86rem; color: rgba(247, 249, 244, 0.72); }
.chat-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
}
.chat-body { padding: 1rem 1.1rem 1.15rem; }
.chat-dock.is-sent .chat-fields,
.chat-dock.is-sent .chat-actions { display: none; }
.chat-thanks { display: none; color: #16324f; }
.chat-dock.is-sent .chat-thanks { display: block; }
.chat-fields { display: grid; gap: 0.7rem; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.85rem; }

.quote-grid,
.gallery-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.quote-card,
.gallery-grid figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.05);
}
.quote-card { padding: 1.4rem 1.35rem; }
.quote-card p { color: var(--muted); font-size: 0.98rem; }
.quote-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.gallery-grid figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.service-photo {
  margin: -1.45rem -1.45rem 1rem;
  overflow: hidden;
}
.service-photo img {
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: cover;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    right: var(--pad);
    left: var(--pad);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem;
    border-radius: 18px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    border-radius: 12px;
  }
  .nav-cta, .nav-phone { justify-content: center; }
  .hero-grid,
  .section-head,
  .service-grid,
  .work-stage,
  .areas,
  .cta-band,
  .page-hero .shell,
  .split,
  .detail-grid,
  .contact-grid,
  .footer-grid,
  .form-grid,
  .quote-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .photo-stack { min-height: 300px; }
  .photo-card-main { inset: 0 10% 16% 0; }
  .work-feature { min-height: 240px; }
  .cta-band .actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.1rem, 11vw, 2.9rem); }
  .site-header { height: 68px; }
  :root { --nav-h: 68px; }
  .wordmark img { width: 60px; height: 38px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .chat-launch { right: 12px; bottom: 12px; }
  .chat-dock { right: 12px; bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  .btn,
  .service-card,
  .site-header,
  .photo-card {
    transition: none !important;
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
