:root {
  --navy: #07182c;
  --navy-soft: #0d2239;
  --paper: #f6f3ed;
  --paper-deep: #ece8e0;
  --white: #ffffff;
  --ink: #1e2933;
  --muted: #626b73;
  --copper: #a65b2b;
  --copper-dark: #85431f;
  --copper-light: #d29a72;
  --rule: #d9d3c9;
  --container: min(1160px, calc(100vw - 64px));
  --header-height: 82px;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--copper-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  translate: 0 -150%;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  transition: translate 160ms ease;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 15, 28, 0.74);
  backdrop-filter: blur(14px);
  color: var(--white);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(4, 15, 28, 0.96);
  box-shadow: 0 12px 34px rgba(2, 9, 17, 0.24);
}

.header-inner {
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}

.wordmark,
.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.wordmark {
  min-height: 44px;
  justify-content: center;
}

.wordmark strong,
.footer-brand strong {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wordmark span,
.footer-brand span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav > span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.header-call {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 3px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.header-call:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.header-call__short {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(760px, 100svh, 940px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: #041326;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  display: block;
  overflow: hidden;
  background: #041326;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(4, 15, 28, 0.98) 0%,
      rgba(4, 15, 28, 0.94) 23%,
      rgba(4, 15, 28, 0.74) 43%,
      rgba(4, 15, 28, 0.2) 70%,
      rgba(4, 15, 28, 0.16) 100%
    ),
    linear-gradient(
      0deg,
      rgba(4, 15, 28, 0.72) 0%,
      rgba(4, 15, 28, 0.08) 46%,
      rgba(4, 15, 28, 0.24) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: inherit;
  margin: 0 auto;
  padding: calc(var(--header-height) + 74px) 0 88px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(535px, 43vw);
}

.kicker {
  margin: 0 0 22px;
  color: var(--copper-light);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kicker--dark {
  color: var(--copper-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 6.15vw, 6.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.87;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: 0.13em;
  color: rgba(255, 255, 255, 0.93);
}

.hero-lede {
  max-width: 500px;
  margin: 32px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--copper-light);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

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

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button--primary {
  border-color: var(--copper);
  background: linear-gradient(135deg, #b96731, #944820);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(3, 11, 20, 0.24);
}

.button--primary:hover {
  border-color: var(--copper-dark);
  background: var(--copper-dark);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.06);
}

.section-inner,
.footer-inner,
.footer-bottom {
  width: var(--container);
  margin: 0 auto;
}

.services-section,
.about-section,
.inquiry-section {
  scroll-margin-top: var(--header-height);
}

.services-section {
  padding: 126px 0 132px;
  background: var(--paper);
}

.section-heading {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: clamp(48px, 8vw, 112px);
}

.section-heading h2,
.about-heading h2 {
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 211px;
  padding: 34px 36px;
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--rule);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(7, 24, 44, 0.06);
}

.service-card--featured {
  min-height: 440px;
  grid-column: span 7;
  grid-row: span 2;
  background:
    radial-gradient(circle at 88% 12%, rgba(215, 161, 123, 0.17), transparent 30%),
    linear-gradient(145deg, var(--navy-soft), var(--navy));
  color: var(--white);
  box-shadow: 0 28px 70px rgba(7, 24, 44, 0.2);
}

.service-number {
  color: var(--copper-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-card--featured .service-number {
  color: var(--copper-light);
}

.service-card h3,
.specialty-card h3 {
  margin: 0;
  color: var(--navy);
}

.service-card--featured h3 {
  color: var(--white);
}

.service-card p {
  max-width: 610px;
  margin: 17px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.service-card--featured p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.04rem;
}

.specialty-heading {
  margin-top: 82px;
  padding-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
}

.specialty-heading .kicker {
  margin: 0;
}

.specialty-heading > p:last-child {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.specialty-card {
  min-height: 184px;
  padding: 30px 28px 34px;
  border-bottom: 1px solid var(--rule);
}

.specialty-card:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--rule);
}

.specialty-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.about-section {
  padding: 128px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(184, 104, 54, 0.18), transparent 31%),
    linear-gradient(135deg, #10283f 0%, var(--navy) 72%);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  align-items: end;
  gap: clamp(60px, 10vw, 140px);
}

.about-heading h2 {
  max-width: 760px;
  color: var(--white);
}

.about-copy {
  padding-left: 28px;
  border-left: 2px solid var(--copper);
}

.about-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1.06rem;
  line-height: 1.85;
}

.text-link {
  min-height: 44px;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration-color: var(--copper-light);
  text-transform: uppercase;
}

.inquiry-intro h2 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.65rem, 4.7vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.inquiry-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #e9e4dc 0%, var(--paper) 100%);
}

.inquiry-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1fr);
  align-items: start;
  gap: clamp(64px, 9vw, 128px);
}

.inquiry-intro > p:not(.kicker) {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-list {
  max-width: 520px;
  margin: 42px 0 0;
  border-top: 1px solid var(--rule);
  font-style: normal;
}

.contact-list a {
  min-height: 74px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  text-decoration: none;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list strong {
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.inquiry-card {
  scroll-margin-top: calc(var(--header-height) + 24px);
  border: 1px solid var(--rule);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(7, 24, 44, 0.11);
}

.inquiry-card__heading {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--rule);
}

.inquiry-card__heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 700;
}

.inquiry-card__heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.inquiry-form {
  padding: 30px 32px 34px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.field-label-row > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #bbb7af;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 13px;
}

.field textarea {
  min-height: 150px;
  padding: 12px 13px;
  line-height: 1.55;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #8d8982;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(166, 91, 43, 0.13);
  outline: none;
}

.privacy-note {
  margin: 2px 0 24px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.button--wide {
  width: 100%;
}

.form-status {
  min-height: 1.45em;
  margin: 12px 0 0;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.noscript-note {
  margin: 0 32px 32px;
  font-size: 0.82rem;
}

.site-footer {
  padding: 58px 0 18px;
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 1fr auto minmax(300px, auto);
  align-items: end;
  gap: 52px;
}

.footer-location {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom {
  min-height: 54px;
  padding-top: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 44px, 760px);
  }

  .hero {
    min-height: max(900px, 100svh);
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(4, 15, 28, 0.03) 0%,
        rgba(4, 15, 28, 0.1) 34%,
        rgba(4, 15, 28, 0.75) 55%,
        rgba(4, 15, 28, 0.96) 70%,
        rgba(4, 15, 28, 0.99) 100%
      ),
      linear-gradient(
        90deg,
        rgba(4, 15, 28, 0.22) 0%,
        rgba(4, 15, 28, 0.03) 50%,
        rgba(4, 15, 28, 0.22) 100%
      );
  }

  .hero-inner {
    padding: clamp(470px, 53svh, 560px) 0 72px;
    align-items: flex-end;
  }

  .hero-copy {
    width: min(100%, 650px);
  }

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

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 30px;
  }

  .section-heading > p {
    max-width: 680px;
  }

  .service-card--featured {
    min-height: 360px;
    grid-column: span 12;
    grid-row: auto;
  }

  .service-card:not(.service-card--featured) {
    grid-column: span 6;
  }

  .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specialty-card:not(:nth-child(3n + 1)) {
    border-left: 0;
  }

  .specialty-card:nth-child(even) {
    border-left: 1px solid var(--rule);
  }

  .about-grid {
    max-width: 760px;
    align-items: start;
    gap: 48px;
  }

  .about-copy {
    max-width: 650px;
  }

  .inquiry-grid {
    gap: 54px;
  }

  .inquiry-intro {
    max-width: 650px;
  }

  .inquiry-card {
    max-width: 650px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-contact {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --container: calc(100% - 36px);
    --header-height: 72px;
  }

  .header-inner {
    gap: 18px;
  }

  .primary-nav {
    display: none;
  }

  .header-call {
    justify-self: end;
  }

  .hero {
    min-height: max(880px, 100svh);
  }

  .hero-inner {
    padding: clamp(390px, 48svh, 450px) 0 58px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13.5vw, 3.9rem);
    letter-spacing: -0.045em;
  }

  .kicker {
    margin-bottom: 18px;
    font-size: 0.62rem;
  }

  .hero-lede {
    margin-top: 24px;
    padding-left: 14px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 32px;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .inquiry-section {
    padding: 72px 0;
  }

  .services-section,
  .about-section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 42px;
    gap: 22px;
  }

  .section-heading > p,
  .about-copy p {
    font-size: 1rem;
  }

  .service-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card--featured,
  .service-card:not(.service-card--featured) {
    min-height: 0;
    padding: 28px 24px 30px;
    grid-column: auto;
    gap: 58px;
  }

  .service-card--featured {
    min-height: 330px;
  }

  .specialty-heading {
    margin-top: 58px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .specialty-heading > p:last-child {
    text-align: left;
  }

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

  .specialty-card {
    min-height: 0;
    padding: 25px 4px 27px;
  }

  .specialty-card:nth-child(even) {
    border-left: 0;
  }

  .about-copy {
    padding-left: 20px;
  }

  .inquiry-intro h2 {
    font-size: clamp(2.45rem, 11.5vw, 3.45rem);
  }

  .inquiry-grid {
    gap: 42px;
  }

  .contact-list {
    margin-top: 34px;
  }

  .inquiry-card__heading {
    padding: 24px 22px 21px;
  }

  .inquiry-form {
    padding: 26px 22px 30px;
  }

  .noscript-note {
    margin: 0 22px 28px;
  }

  .footer-inner {
    padding-bottom: 36px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-media {
    top: var(--header-height);
  }

  .hero-media img {
    object-fit: contain;
    object-position: center top;
  }

  .header-call {
    min-width: 64px;
    padding: 0 14px;
  }

  .header-call__full {
    display: none;
  }

  .header-call__short {
    display: inline;
  }

  .hero-actions {
    align-items: stretch;
  }

  .contact-list a {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

}

@media (max-width: 390px) {
  .wordmark strong {
    font-size: 0.98rem;
  }

  .wordmark span {
    font-size: 0.55rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero-media,
  .hero-overlay,
  .hero-actions,
  .inquiry-form,
  .footer-bottom a {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero,
  .inquiry-section,
  .site-footer {
    min-height: 0;
    padding: 36px 0;
    background: #fff;
    color: #111;
  }

  .hero-inner,
  .inquiry-grid,
  .footer-inner {
    display: block;
  }

  .hero h1,
  .inquiry-intro h2,
  .footer-brand strong {
    color: #111;
  }
}
