:root {
  color-scheme: light;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #efebe7;
  --text: #111111;
  --muted: #68615d;
  --line: rgba(17, 17, 17, 0.13);
  --red: #d71920;
  --red-dark: #9e1117;
  --black: #090909;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 12, 10, 0.15);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #171717;
  --surface-2: #222222;
  --text: #f8f6f3;
  --muted: #b7afaa;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0 23px, var(--line) 24px, transparent 25px) 0 0 / 96px 96px,
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

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

.brand img,
.logo-stamp img,
.section-kicker img,
.contact-card img,
.hero-panel img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(215, 25, 32, 0.22);
}

.brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  max-width: 230px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.1vw, 32px);
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pill-button,
.icon-button,
.quote-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  font-weight: 800;
}

.pill-button,
.icon-button {
  min-width: 42px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
}

.icon-button {
  position: relative;
  width: 42px;
  padding: 0;
}

.moon {
  display: none;
}

:root[data-theme="dark"] .sun {
  display: none;
}

:root[data-theme="dark"] .moon {
  display: inline;
}

.quote-button,
.primary-button {
  padding: 0 18px;
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.quote-button {
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  white-space: nowrap;
}

.secondary-button {
  padding: 0 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 45%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 760px) 330px;
  align-items: end;
  gap: 40px;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 88px 0 48px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.logo-stamp,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--red);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-weight: 900;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.5vw, 6.35rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5.2vw, 5.25rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 8, 8, 0.66);
  padding: 26px;
  backdrop-filter: blur(18px);
}

.hero-panel img {
  margin-bottom: 24px;
}

.hero-panel dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.hero-panel div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel dt {
  font-size: 2.2rem;
  font-weight: 900;
}

.hero-panel dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.body-copy {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.body-copy p + p {
  margin-top: 22px;
}

.image-band {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.image-band img {
  width: 100%;
  height: clamp(250px, 36vw, 460px);
  object-fit: cover;
}

.section-heading {
  display: block;
  margin-bottom: 36px;
}

.section-heading h2 {
  max-width: 980px;
  margin-bottom: 0;
}

.narrow {
  max-width: none;
}

.brands .section-heading {
  margin-bottom: 30px;
}

.brands .section-heading h2 {
  max-width: 980px;
  font-size: clamp(2.7rem, 5.1vw, 5.45rem);
  line-height: 0.98;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 250px;
  padding: 28px;
  background: var(--surface);
}

.service-grid span,
.project-meta {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-grid p,
.marine p,
.contact p {
  color: var(--muted);
  line-height: 1.7;
}

.brand-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brand-category-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 14px 42px rgba(16, 12, 10, 0.06);
}

.brand-category-card h3 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
}

.brand-category-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--red);
}

.brand-category-card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand-category-card:nth-child(2) img {
  object-position: 82% 50%;
}

.brand-category-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.brand-category-card a:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.project-showcase {
  margin-left: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.project-toolbar p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-controls {
  display: flex;
  gap: 8px;
}

.project-arrow {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1;
}

.project-track {
  display: grid;
  grid-auto-columns: minmax(310px, 380px);
  grid-auto-flow: column;
  gap: 1px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  background: var(--line);
}

.project-track::-webkit-scrollbar {
  height: 10px;
}

.project-track::-webkit-scrollbar-track {
  background: var(--surface-2);
}

.project-track::-webkit-scrollbar-thumb {
  background: var(--red);
}

.reference-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 390px;
  padding: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), var(--surface)),
    var(--surface);
  scroll-snap-align: start;
  overflow: hidden;
}

.reference-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 26px, color-mix(in srgb, var(--red) 35%, transparent) 27px, transparent 28px) 0 0 / 92px 92px;
  opacity: 0.16;
}

.reference-card > * {
  position: relative;
  z-index: 1;
}

.reference-topline,
.reference-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-topline span,
.reference-detail span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
}

.reference-card h3 {
  max-width: 92%;
  margin: 52px 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  line-height: 1.04;
}

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

.marine {
  position: relative;
  width: 100%;
  max-width: none;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(80, 5, 8, 0.95), rgba(113, 12, 16, 0.78) 48%, rgba(0, 0, 0, 0.2)),
    url("assets/marine-architecture-section.png") center right / cover no-repeat,
    var(--black);
  color: var(--white);
  overflow: hidden;
}

.marine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, 0.1) 24px, transparent 25px) 0 0 / 96px 96px;
  opacity: 0.3;
}

.marine .section-kicker {
  color: var(--white);
}

.marine .section-kicker img {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.marine-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.marine h2 {
  max-width: 900px;
}

.marine p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card img {
  margin-bottom: 12px;
}

.contact-card a {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .desktop-nav {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    position: absolute;
    top: 16px;
    right: 18px;
  }

  .quote-button {
    display: none;
  }

  .hero-grid,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

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

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

}

@media (max-width: 680px) {
  .brand small {
    display: none;
  }

  .hero-grid {
    padding-top: 56px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .image-band,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .brand-category-grid {
    grid-template-columns: 1fr;
  }

  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-track {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
