:root {
  --ink: #102033;
  --ink-soft: #1a3148;
  --slate: #4d6073;
  --mist: #e8eef3;
  --paper: #f5f7fa;
  --white: #ffffff;
  --brass: #b08b57;
  --brass-deep: #8f6e3f;
  --line: rgba(16, 32, 51, 0.12);
  --shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --container: 1120px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(176, 139, 87, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(26, 49, 72, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f9fb 0%, var(--paper) 40%, #eef2f6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img,
iframe {
  max-width: 100%;
  border: 0;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brass-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
  color: var(--slate);
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 250, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
}

.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
}

.site-nav a.is-active::after,
.site-nav a:not(.btn):hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--brass);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 0.4rem 0;
  transition: transform 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  background: var(--ink);
  color: var(--white) !important;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 32, 51, 0.03);
}

.btn-sm {
  min-height: 2.35rem;
  padding-inline: 0.95rem;
  font-size: 0.84rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 22, 36, 0.88), rgba(16, 32, 51, 0.62)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=2000&q=80")
      center / cover no-repeat;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(176, 139, 87, 0.22), transparent 35%),
    linear-gradient(0deg, rgba(10, 18, 28, 0.55), transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  max-width: 760px;
  margin-left: max(calc((100% - var(--container)) / 2), 1.25rem);
  margin-right: auto;
  width: min(760px, calc(100% - 2.5rem));
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-hero {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  margin-bottom: 0.7rem;
  color: var(--white);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero .btn-ghost {
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  padding: 4.5rem 0 2rem;
}

.page-hero .lead {
  color: var(--slate);
}

.page-hero .eyebrow a {
  color: var(--brass-deep);
}

.section {
  padding: 4.5rem 0;
}

.section.muted {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: end;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.15rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.expertise-item {
  display: block;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.6rem 1.4rem 1.5rem;
  transition: background 0.25s ease, transform 0.25s ease;
  min-height: 100%;
}

.expertise-item:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.expertise-index {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin-bottom: 0.85rem;
}

.expertise-item h2,
.expertise-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.expertise-item p {
  margin: 0;
  font-size: 0.95rem;
}

.section-cta {
  margin-top: 2rem;
}

.contact-band {
  padding-top: 0;
}

.contact-band-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  padding: 2.4rem;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-band-inner h2,
.contact-band-inner p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.contact-band .btn-ghost {
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-band .text-link {
  color: var(--white);
  border-bottom-color: var(--brass);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.values-grid article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.prose {
  max-width: 42rem;
}

.prose p {
  font-size: 1.05rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-aside {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.aside-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.aside-list li {
  border-bottom: 1px solid var(--line);
}

.aside-list a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-layout .map-panel {
  grid-column: 1 / -1;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-cards-stack {
  grid-template-columns: 1fr;
}

.contact-cards article {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.contact-cards a {
  font-weight: 600;
}

.contact-form {
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 139, 87, 0.18);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-note.is-success {
  color: #1f6b45;
}

.form-note.is-error {
  color: #9b2c2c;
}

.form-alert {
  margin-bottom: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.form-alert.is-success {
  border-color: rgba(31, 107, 69, 0.35);
  color: #1f6b45;
}

.form-alert.is-error {
  border-color: rgba(155, 44, 44, 0.35);
  color: #9b2c2c;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-panel {
  min-height: 360px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--mist);
}

.map-panel iframe {
  width: 100%;
  height: 420px;
}

.site-footer {
  margin-top: 3rem;
  padding: 3.5rem 0 1.5rem;
  background: #0c1826;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-mark {
  border-color: rgba(176, 139, 87, 0.7);
  color: var(--brass);
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand .brand-text em,
.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a:hover {
  color: var(--brass);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .split,
  .detail-layout,
  .values-grid,
  .footer-grid,
  .contact-band-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .contact-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.4rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.is-active::after,
  .site-nav a:not(.btn):hover::after {
    display: none;
  }

  .site-nav .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
