:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d8;
  --ink: #14171c;
  --ink-soft: #3a3f48;
  --muted: #6a6f78;
  --line: #d5cfc2;
  --accent: #9c7d4f;
  --accent-deep: #6f5734;
  --hero: #0e1116;
  --hero-2: #161b22;
  --forest: #1c322c;
  --white: #f8f5ee;
  --danger: #8b3a2a;
  --ok: #2d5a45;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

::selection {
  background: #d8c29a;
  color: var(--hero);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

p {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--white);
  color: var(--ink);
  padding: 8px 14px;
}

.skip-link:focus {
  top: 16px;
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.section-index span:first-child {
  color: var(--accent);
}

.section-head {
  max-width: 720px;
  margin-bottom: 72px;
}

.section-head h2,
.about-grid h2,
.markets-layout h2,
.contact-intro h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.section-lead {
  margin-top: 22px;
  color: var(--ink-soft);
  max-width: 58ch;
}

.meta-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: var(--hero);
  border-color: var(--accent);
}

.btn-solid:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(248, 245, 238, 0.28);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-header {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--hero);
}

.btn-header:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
}

.header-inner .btn-header {
  display: none;
}

.btn-full {
  width: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.wordmark-mark svg {
  width: 100%;
  height: 100%;
}

.wordmark-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  color: var(--white);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(244, 240, 232, 0.92);
  color: var(--ink);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

body.nav-open .site-header {
  background: var(--hero);
  color: var(--white);
  border-bottom-color: rgba(248, 245, 238, 0.1);
  backdrop-filter: none;
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: none;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: none;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease);
}

.menu-toggle::before {
  transform: translate(-50%, -7px);
}

.menu-toggle::after {
  transform: translate(-50%, 5px);
}

.menu-toggle[aria-expanded="true"]::before,
body.nav-open .menu-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after,
body.nav-open .menu-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  width: 100%;
  height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  background: var(--hero);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 36px 24px 48px;
  gap: 22px;
  font-family: var(--serif);
  font-size: 2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav .btn {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 100svh;
  background: radial-gradient(1200px 700px at 80% 10%, #1c2430 0%, var(--hero) 55%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 48px) 0 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-geometry {
  position: absolute;
  width: min(720px, 92vw);
  right: -8%;
  top: 8%;
  opacity: 0.22;
  stroke: var(--accent);
  stroke-width: 0.8;
  fill: none;
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 72px;
  max-width: 820px;
  margin-left: max(24px, calc((100% - var(--max)) / 2));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 245, 238, 0.62);
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.96;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: #d8c29a;
}

.hero-lead {
  max-width: 52ch;
  margin: 28px 0 36px;
  color: rgba(248, 245, 238, 0.72);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(248, 245, 238, 0.1);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero-meta > div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(248, 245, 238, 0.1);
}

.hero-meta span:last-child {
  color: rgba(248, 245, 238, 0.82);
}

.about-grid {
  display: grid;
  gap: 36px;
}

.about-copy {
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.about-foot {
  display: grid;
  gap: 28px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.about-foot p {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.services {
  background: var(--paper-2);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 6px;
}

.service-list h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.service-list p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.approach {
  background: var(--forest);
  color: var(--white);
}

.approach .section-index,
.approach .section-lead,
.approach .step-num {
  color: rgba(248, 245, 238, 0.55);
}

.approach .section-index span:first-child,
.approach .step-num {
  color: #d8c29a;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  padding: 32px 0;
  border-top: 1px solid rgba(248, 245, 238, 0.12);
}

.steps h3 {
  font-size: 2rem;
  margin: 10px 0 12px;
}

.steps p {
  color: rgba(248, 245, 238, 0.7);
  max-width: 46ch;
}

.why-grid {
  display: grid;
  gap: 20px;
}

.why-grid article {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.why-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}

.why-grid h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.why-grid p {
  color: var(--ink-soft);
  max-width: 42ch;
}

.markets {
  background: var(--paper-2);
}

.markets-layout {
  display: grid;
  gap: 48px;
}

.market-list {
  display: grid;
  gap: 0;
}

.market-list > div {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.market-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.market-list h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.market-list p {
  color: var(--ink-soft);
}

.contact {
  padding-bottom: 140px;
}

.contact-grid {
  display: grid;
  gap: 64px;
}

.contact-intro p {
  margin: 22px 0 40px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.contact-intro address {
  font-style: normal;
  display: grid;
  gap: 24px;
}

.contact-intro a {
  border-bottom: 1px solid var(--accent);
}

.contact-form {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 32px 24px;
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-bottom-color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

.form-status {
  min-height: 1.4em;
  font-size: 14px;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-err {
  color: var(--danger);
}

.site-footer {
  background: var(--hero);
  color: rgba(248, 245, 238, 0.72);
  padding: 72px 0 36px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.site-footer .wordmark {
  color: var(--white);
}

.footer-tag {
  max-width: 36ch;
}

.footer-meta {
  display: grid;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid rgba(248, 245, 238, 0.1);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 245, 238, 0.1);
  font-size: 13px;
  color: rgba(248, 245, 238, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .reveal,
  .hero-geometry {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .hero-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .hero-meta > div {
    border-bottom: 0;
    padding: 28px 0 36px;
  }

  .hero-meta > div + div {
    padding-left: 24px;
    border-left: 1px solid rgba(248, 245, 238, 0.1);
  }

  .about-foot,
  .why-grid,
  .field-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid article:last-child {
    grid-column: 1 / -1;
  }

  .contact-form {
    padding: 40px 36px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .header-inner .btn-header {
    display: inline-flex;
  }

  .nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .about-foot {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-list li {
    grid-template-columns: 80px 1fr;
    padding: 32px 8px;
    transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
  }

  .service-list li:hover {
    background: rgba(255, 255, 255, 0.35);
    padding-left: 16px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .steps li {
    padding: 0 8px 0 0;
    border-top: 0;
    border-left: 1px solid rgba(248, 245, 238, 0.12);
    padding-left: 22px;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid article,
  .why-grid article:last-child {
    grid-column: auto;
    padding: 0 8px 0 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 28px;
  }

  .markets-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 88px 0;
  }

  .section-shell,
  .header-inner,
  .hero-content,
  .hero-meta {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero-content {
    margin-left: auto;
  }
}
