:root {
  --ink: #14233b;
  --ink-soft: #455062;
  --paper: #f7f5ef;
  --paper-deep: #e9edf0;
  --stone: #b9aa8c;
  --bronze: #b99257;
  --bronze-dark: #8a6232;
  --gold: #d8b75e;
  --navy: #14233b;
  --navy-deep: #0d192c;
  --white: #fffdf8;
  --line: rgba(20, 35, 59, 0.14);
  --shadow: 0 24px 70px rgba(13, 25, 44, 0.16);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

section {
  scroll-margin-top: 76px;
}

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

a {
  color: inherit;
}

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

.sr-only,
.skip-link {
  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:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--gold);
  background: var(--navy);
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 12px 40px rgba(13, 25, 44, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
  gap: 30px;
  align-items: center;
}

.site-nav a {
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--bronze);
}

.nav-toggle {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: inherit;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  color: var(--gold);
  background: rgba(216, 183, 94, 0.1);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.nav-toggle-line {
  position: absolute;
  width: 17px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 140ms ease;
}

.nav-toggle-line:first-child {
  transform: translateY(-6px);
}

.nav-toggle-line:nth-child(2) {
  transform: translateY(0);
}

.nav-toggle-line:nth-child(3) {
  transform: translateY(6px);
}

.site-header.is-open .nav-toggle {
  color: var(--gold);
  background: var(--navy);
  border-color: var(--navy);
  transform: rotate(90deg);
}

.site-header.is-open .nav-toggle-line:first-child {
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(13, 25, 44, 0.24), rgba(13, 25, 44, 0.72)),
    linear-gradient(90deg, rgba(13, 25, 44, 0.78), rgba(13, 25, 44, 0.12));
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  padding: 118px 0 50px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--bronze);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 650;
  line-height: 1.04;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 5.05rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.08;
}

.approach h2 {
  max-width: 720px;
  font-size: clamp(1.9rem, 3.1vw, 2.85rem);
}

h2 + p {
  margin-top: clamp(22px, 3vw, 34px);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.hero p {
  max-width: 590px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--bronze);
}

.button-primary:hover {
  background: var(--bronze-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.52);
  background: rgba(255, 253, 248, 0.08);
}

.section {
  width: var(--container);
  padding: 64px 0;
  margin: 0 auto;
}

.projects-section {
  position: relative;
  width: auto;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  scroll-margin-top: 76px;
}

.projects-section .section-heading {
  width: 100%;
  padding: 48px 0 34px;
  margin: 0 auto;
  text-align: center;
}

.split-layout,
.section-heading,
.contact-layout {
  display: grid;
  gap: 36px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading > p {
  margin-top: 0;
}

.section-heading p,
.copy-stack,
.contact-layout > div > p,
.contact-layout address {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.process-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.projects-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
}

.projects-grid:has(.project-card:only-child) .project-card {
  width: 100%;
}

.projects-grid:has(.project-card:only-child) .project-image {
  height: clamp(300px, 32vw, 440px);
}

.projects-grid:has(.project-card:only-child) .project-body {
  align-items: end;
  min-height: 100%;
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
}

.projects-grid:has(.project-card:only-child) .project-body h3 {
  max-width: 720px;
  font-size: clamp(1.6rem, 3.4vw, 2.95rem);
}

.project-card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--navy-deep);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(13, 25, 44, 0.03), rgba(13, 25, 44, 0.62)),
    linear-gradient(90deg, rgba(13, 25, 44, 0.32), rgba(13, 25, 44, 0.02));
  pointer-events: none;
  transition: background 220ms ease;
}

.project-card-default::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 36%, rgba(216, 183, 94, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.06), rgba(255, 253, 248, 0));
  pointer-events: none;
}

.project-card-default::after {
  background:
    linear-gradient(180deg, rgba(13, 25, 44, 0.08), rgba(13, 25, 44, 0.72)),
    linear-gradient(90deg, rgba(13, 25, 44, 0.28), rgba(13, 25, 44, 0.12));
}

.project-card:hover::after {
  background:
    linear-gradient(180deg, rgba(13, 25, 44, 0), rgba(13, 25, 44, 0.54)),
    linear-gradient(90deg, rgba(13, 25, 44, 0.24), rgba(13, 25, 44, 0));
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-image {
  display: block;
  height: clamp(330px, 38vw, 520px);
  overflow: hidden;
  background: var(--paper-deep);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card-default .project-image {
  display: grid;
  place-items: center;
  background: var(--navy-deep);
}

.project-card-default .project-image img {
  width: min(30%, 180px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.project-body {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  padding: clamp(24px, 4vw, 48px);
  color: var(--white);
}

.project-body h3 {
  display: inline-flex;
  width: fit-content;
  max-width: 360px;
  padding: 0.14em 0.22em 0.18em;
  margin: 0;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  border-radius: 6px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 750;
  line-height: 1.1;
  text-transform: uppercase;
}

.process-section,
.contact-section {
  width: auto;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: var(--navy-deep);
  color: var(--white);
}

.process-section .section-heading p,
.process-section article p,
.contact-section p,
.contact-section .contact-layout > p {
  color: rgba(255, 253, 248, 0.72);
}

.process-grid article,
.feature-grid article {
  position: relative;
  min-height: 190px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.6);
}

.process-grid article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-color: rgba(255, 253, 248, 0.15);
  background: rgba(255, 253, 248, 0.06);
}

.process-grid article::before {
  position: absolute;
  top: -18px;
  right: 12px;
  content: attr(data-step);
  color: rgba(216, 183, 94, 0.11);
  font-size: clamp(7.5rem, 15vw, 12.5rem);
  font-weight: 800;
  line-height: 0.8;
  pointer-events: none;
}

.process-grid h3,
.process-grid p {
  position: relative;
  z-index: 1;
}

.feature-grid article {
  background: var(--white);
}

.contact-section {
  padding-top: clamp(76px, 9vw, 132px);
  padding-bottom: clamp(76px, 9vw, 132px);
}

.contact-layout {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.contact-layout h2 {
  max-width: 850px;
}

.contact-layout p {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.email-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  max-width: 100%;
  margin-top: 8px;
  padding: 0.12em 0.18em 0.18em;
  color: var(--gold);
  border-radius: 6px;
  font-size: clamp(1.42rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.04;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 220ms ease, transform 220ms ease;
}

.email-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0.08em 0 -0.02em;
  content: "";
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  border-radius: inherit;
  opacity: 0;
  transform: scaleX(0.92) scaleY(0.74);
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.email-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.email-cta:hover::before {
  opacity: 1;
  transform: scaleX(1) scaleY(1);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(216, 183, 94, 0.36);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 34px max(20px, calc((100vw - 1120px) / 2));
  color: rgba(255, 253, 248, 0.75);
  background: var(--navy-deep);
  text-align: center;
}

.footer-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.lightbox {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 0ms linear 260ms;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0ms;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 44, 0.84);
  opacity: 0;
  transition: opacity 260ms ease;
}

.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100svh - clamp(28px, 6vw, 64px));
  padding: clamp(12px, 1.2vw, 18px);
  overflow: hidden;
  background: var(--navy-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.is-open .lightbox-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox-panel img {
  width: 100%;
  height: min(68svh, 680px);
  object-fit: cover;
  background: #1f1c18;
  border-radius: 6px;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  padding: 0;
  color: var(--white);
  background: rgba(13, 25, 44, 0.58);
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox-close::before,
.lightbox-close::after,
.lightbox-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: currentColor;
  transform-origin: center;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(13, 25, 44, 0.76);
}

.lightbox-close {
  top: clamp(22px, 2.6vw, 34px);
  right: clamp(22px, 2.6vw, 34px);
  width: 46px;
  height: 46px;
}

.lightbox-close::before,
.lightbox-close::after {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-arrow {
  top: calc(50% - 34px);
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
}

.lightbox-arrow::before {
  width: 15px;
  height: 15px;
  background: transparent;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  border-radius: 2px;
}

.lightbox-prev::before {
  transform: translate(-42%, -50%) rotate(-135deg);
}

.lightbox-next::before {
  transform: translate(-58%, -50%) rotate(45deg);
}

.lightbox-prev {
  left: clamp(24px, 2.8vw, 36px);
}

.lightbox-next {
  right: clamp(24px, 2.8vw, 36px);
}

.lightbox-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 18px clamp(6px, 0.8vw, 12px) 2px;
  color: var(--white);
}

.lightbox-caption h2 {
  margin-bottom: 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 750;
}

.lightbox-caption p,
.lightbox-caption span {
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
}

.lightbox-caption span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 12px;
  color: var(--gold);
  border: 1px solid rgba(216, 183, 94, 0.28);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

body.has-lightbox {
  overflow: hidden;
}

@media (max-width: 759px) {
  .site-header {
    min-height: 70px;
    padding: 13px 20px;
  }

  .site-header.is-open {
    background: rgba(247, 245, 239, 0.98);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.94rem;
    letter-spacing: 0.07em;
  }

  .site-header.is-open .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 6px;
    padding: 10px;
    overflow: visible;
    color: var(--white);
    background: rgba(13, 25, 44, 0.94);
    border: 1px solid rgba(216, 183, 94, 0.26);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(13, 25, 44, 0.28);
    backdrop-filter: blur(18px);
  }

  .site-header.is-open .site-nav::before {
    position: absolute;
    top: -7px;
    right: 35px;
    width: 14px;
    height: 14px;
    content: "";
    background: rgba(13, 25, 44, 0.94);
    border-top: 1px solid rgba(216, 183, 94, 0.26);
    border-left: 1px solid rgba(216, 183, 94, 0.26);
    transform: rotate(45deg);
  }

  .site-header.is-open .site-nav a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 16px;
    color: var(--white);
    background: rgba(255, 253, 248, 0.045);
    border: 1px solid rgba(255, 253, 248, 0.08);
    border-radius: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  }

  .site-header.is-open .site-nav a::after {
    width: 6px;
    height: 6px;
    content: "";
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    opacity: 0.7;
    transform: rotate(45deg);
  }

  .site-header.is-open .site-nav a:hover,
  .site-header.is-open .site-nav a:focus-visible {
    color: var(--gold);
    background: rgba(216, 183, 94, 0.12);
    border-color: rgba(216, 183, 94, 0.28);
    outline: 0;
  }
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .split-layout,
  .section-heading {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    align-items: center;
  }

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

  .projects-section .section-heading {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 230px;
    place-items: center;
    width: 100%;
    padding: 70px 20px 58px;
    margin: 0;
    overflow: hidden;
    text-align: center;
  }

  .projects-section .section-heading::before {
    position: absolute;
    inset: 0;
    content: "";
    background: #e8ecec;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
  }

  .projects-section .section-heading > * {
    position: relative;
    z-index: 1;
  }

  .projects-section .section-heading h2 {
    max-width: none;
  }

  .projects-section .section-heading p {
    max-width: 720px;
    margin: 14px auto 0;
  }

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

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

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

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
