:root {
  --navy: #071f3d;
  --navy-2: #0b2f55;
  --gold: #c9821e;
  --gold-2: #e2ad4b;
  --cream: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(251, 250, 247, 0.92);
  --surface-dark: rgba(7, 31, 61, 0.92);
  --text: #14213d;
  --muted: rgba(20, 33, 61, 0.7);
  --line: rgba(7, 31, 61, 0.12);
  --line-strong: rgba(7, 31, 61, 0.18);
  --shadow: 0 24px 70px rgba(7, 31, 61, 0.12);
  --shadow-soft: 0 18px 42px rgba(7, 31, 61, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 130, 30, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(7, 31, 61, 0.08), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, #f8f5ef 30%, #fbfaf7 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(7, 31, 61, 0.03) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(7, 31, 61, 0.02), transparent 55%);
  opacity: 0.7;
  z-index: -2;
}

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

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

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

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-180%);
  z-index: 120;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.page-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.6;
}

.page-orb--one {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(201, 130, 30, 0.28), transparent 68%);
}

.page-orb--two {
  width: 26rem;
  height: 26rem;
  top: 9rem;
  right: -9rem;
  background: radial-gradient(circle, rgba(7, 31, 61, 0.18), transparent 70%);
}

.page-orb--three {
  width: 22rem;
  height: 22rem;
  left: 20%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(226, 173, 75, 0.2), transparent 68%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7, 31, 61, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(7, 31, 61, 0.1);
  box-shadow: 0 16px 34px rgba(7, 31, 61, 0.12);
  background: var(--surface-strong);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  line-height: 1;
}

.brand-copy span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-toggle {
  display: inline-grid;
  align-content: center;
  justify-items: center;
  width: 48px;
  height: 48px;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(7, 31, 61, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  gap: 8px;
  margin: 8px 0 0;
  padding: 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(7, 31, 61, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.header-cta {
  display: none;
}

.page-shell main {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 16px 48px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.2rem, 12vw, 6.9rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

p {
  margin: 0;
}

.hero {
  display: grid;
  gap: 24px;
  padding: 26px 0 16px;
}

.hero__content {
  display: grid;
  gap: 16px;
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
}

.hero__body {
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--solid {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(201, 130, 30, 0.25);
}

.button--solid:hover,
.button--solid:focus-visible {
  box-shadow: 0 18px 34px rgba(201, 130, 30, 0.34);
}

.button--ghost {
  border-color: rgba(7, 31, 61, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.hero__pills,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__pills li,
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(7, 31, 61, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero__media,
.feature-band__image,
.cta-band__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(7, 31, 61, 0.08), rgba(201, 130, 30, 0.08));
}

.hero__media {
  min-height: 330px;
}

.hero__media img,
.feature-band__image img,
.cta-band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 18ch;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7, 31, 61, 0.84);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(7, 31, 61, 0.2);
}

.section {
  display: grid;
  gap: 24px;
  padding: 44px 0 0;
}

.section__header {
  display: grid;
  gap: 10px;
  max-width: 64rem;
}

.section__body {
  max-width: 60rem;
  color: var(--muted);
  line-height: 1.75;
}

.card-grid,
.split-grid,
.timeline {
  display: grid;
  gap: 14px;
}

.card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(7, 31, 61, 0.1);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.card--image {
  padding: 0;
  overflow: hidden;
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(7, 31, 61, 0.08);
}

.card__tag {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.card__link {
  color: var(--gold);
  font-weight: 800;
}

.card__link::after {
  content: '→';
  margin-left: 8px;
}

.list-grid {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(7, 31, 61, 0.08);
}

.list-item span {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  flex: 0 0 auto;
}

.list-item p {
  line-height: 1.6;
}

.split-grid {
  align-items: start;
}

.timeline article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 31, 61, 0.1);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.timeline span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 31, 61, 0.1);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.feature-band {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #081b34 100%);
  box-shadow: var(--shadow);
}

.feature-band__copy {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.feature-band__copy h2 {
  color: #fff;
}

.feature-band__image {
  border-radius: 0;
  box-shadow: none;
  min-height: 230px;
}

.feature-band__image img {
  min-height: 230px;
}

.cta-band {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(7, 31, 61, 0.08);
  box-shadow: var(--shadow);
}

.cta-band__content {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.cta-band__content p {
  color: var(--muted);
  line-height: 1.75;
}

.cta-band__image {
  border-radius: 0;
  box-shadow: none;
  min-height: 220px;
}

.cta-band__image img {
  min-height: 220px;
}

.form-panel {
  display: grid;
  gap: 16px;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(7, 31, 61, 0.1);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.field span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(7, 31, 61, 0.12);
  background: rgba(251, 250, 247, 0.98);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(201, 130, 30, 0.5);
  box-shadow: 0 0 0 4px rgba(201, 130, 30, 0.12);
}

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

.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.form-success {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 138, 88, 0.08);
  border: 1px solid rgba(15, 138, 88, 0.2);
  color: #0f6a41;
}

.site-footer {
  width: min(100%, 1240px);
  margin: 48px auto 0;
  padding: 28px 16px 52px;
  display: grid;
  gap: 26px;
  border-top: 1px solid rgba(7, 31, 61, 0.1);
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand p {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.65;
}

.footer-links {
  display: grid;
  gap: 20px;
}

.footer-links h2 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(7, 31, 61, 0.08);
  color: var(--muted);
}

.footer-meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.99);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1200px;
}

body.page--home .hero__media {
  min-height: 380px;
}

body.page--service .hero__media,
body.page--hub .hero__media,
body.page--area .hero__media,
body.page--project .hero__media,
body.page--about .hero__media,
body.page--contact .hero__media,
body.page--quote .hero__media {
  min-height: 320px;
}

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

  [data-reveal],
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-tilt] {
    transform: none !important;
  }
}

@media (min-width: 720px) {
  .site-header {
    padding: 14px 20px;
  }

  .hero {
    gap: 28px;
  }

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

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

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

  .feature-band {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }

  .feature-band__image img {
    min-height: 100%;
  }

  .cta-band {
    grid-template-columns: 1fr 0.9fr;
    align-items: stretch;
  }

  .cta-band__image img {
    min-height: 100%;
  }

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

  .field--full {
    grid-column: 1 / -1;
  }

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

@media (min-width: 1024px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 16px 24px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    grid-column: auto;
    justify-self: center;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .header-cta {
    display: inline-flex;
  }

  .page-shell main {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    align-items: center;
    gap: 34px;
    padding: 38px 0 20px;
  }

  .hero__content {
    gap: 18px;
  }

  .hero__media {
    min-height: 520px;
  }

  .hero__media img {
    min-height: 520px;
  }

  .section {
    padding-top: 56px;
  }

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

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

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

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

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

@media (min-width: 1280px) {
  .hero {
    gap: 40px;
  }

  .hero__content {
    max-width: 58rem;
  }

  .hero__media {
    min-height: 560px;
  }

  .hero__media img {
    min-height: 560px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: rgba(10, 22, 43, 0.82);
    --surface-strong: rgba(10, 22, 43, 0.94);
    --text: #f5f1e9;
    --muted: rgba(245, 241, 233, 0.74);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.18);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(201, 130, 30, 0.16), transparent 26%),
      radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%),
      linear-gradient(180deg, #04111f 0%, #071f3d 45%, #081429 100%);
  }

  body::before {
    background:
      linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
  }

  .site-header {
    background: rgba(7, 31, 61, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle,
  .site-nav a,
  .button--ghost,
  .hero__pills li,
  .chip,
  .card,
  .quote-form,
  .cta-band,
  .timeline article,
  .list-item {
    background: rgba(7, 31, 61, 0.58);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .nav-toggle span {
    background: #f5f1e9;
  }

  .button--ghost {
    color: #f5f1e9;
  }

  .hero__badge {
    background: rgba(10, 22, 43, 0.88);
  }

  .card__link,
  .eyebrow,
  .footer-links h2 {
    color: var(--gold-2);
  }

  .card p,
  .hero__body,
  .section__body,
  .footer-brand p,
  .footer-links a,
  .footer-meta,
  .list-item p,
  .form-note {
    color: var(--muted);
  }

  .field input,
  .field select,
  .field textarea {
    background: rgba(10, 22, 43, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f1e9;
  }

  .skip-link {
    background: #f5f1e9;
  }
}
