:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5d6863;
  --line: #d9ded8;
  --paper: #fbfaf6;
  --paper-2: #f1f3ed;
  --paper-3: #e9eee6;
  --green: #173f35;
  --green-2: #235e4f;
  --terracotta: #a95f42;
  --gold: #c9a46b;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(24, 33, 31, 0.12);
  --shadow-strong: 0 26px 90px rgba(12, 27, 23, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(13, 29, 26, 0.58);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

nav a {
  border-bottom: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.reserved-link {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.reserved-link:hover,
.reserved-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.76);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 86px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 34%, rgba(201, 164, 107, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(8, 22, 20, 0.96) 0%, rgba(8, 22, 20, 0.78) 42%, rgba(8, 22, 20, 0.2) 78%),
    url("assets/hero-engineering.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(251, 250, 246, 0.98));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e0a184;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

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

.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

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

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section,
.services-section,
.method-section,
.studio-section,
.contact-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.intro-section {
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 860px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.split p,
.section-heading + p,
.contact-layout p,
.studio-band p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.services-section {
  position: relative;
  background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 95, 66, 0.35);
  box-shadow: 0 22px 70px rgba(24, 33, 31, 0.16);
}

.service-index {
  display: inline-flex;
  color: var(--terracotta);
  font-weight: 800;
  font-size: 13px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.method-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(23, 63, 53, 0.96), rgba(20, 38, 34, 0.98)),
    url("assets/hero-engineering.png") center / cover no-repeat;
}

.method-section .section-kicker {
  color: #dca085;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.method-steps article {
  min-height: 260px;
  padding: 30px;
  background: rgba(14, 32, 28, 0.82);
}

.method-steps span {
  color: #dca085;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.method-steps h3 {
  color: var(--white);
}

.method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.studio-section {
  color: var(--white);
  background:
    linear-gradient(90deg, var(--green), #102620 70%),
    var(--green);
}

.studio-section .section-kicker {
  color: #dca085;
}

.studio-band {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 32px;
  align-items: center;
}

.studio-band p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 440px);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}

.contact-layout p {
  margin-top: 18px;
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--terracotta);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-label {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel a {
  color: var(--green-2);
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 800;
}

.contact-panel span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #111917;
  font-size: 14px;
}

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

.reserved-page {
  min-height: 100vh;
  background: var(--paper-2);
}

.reserved-header {
  background: rgba(13, 29, 26, 0.86);
}

.reserved-hero {
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 128px 0 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 24%, rgba(201, 164, 107, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(13, 29, 26, 0.98), rgba(23, 63, 53, 0.93)),
    url("assets/hero-engineering.png") center / cover no-repeat;
}

.reserved-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 360px);
  gap: clamp(32px, 7vw, 92px);
  align-items: end;
}

.reserved-status {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.reserved-status span {
  color: #dca085;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.reserved-status strong {
  color: var(--white);
  font-size: 24px;
}

.tools-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

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

.tool-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.tool-state {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--green);
  background: var(--paper-3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding-top: 16px;
  }

  nav {
    gap: 12px;
    font-size: 13px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 102px;
    background:
      linear-gradient(90deg, rgba(8, 22, 20, 0.96) 0%, rgba(8, 22, 20, 0.84) 66%, rgba(8, 22, 20, 0.56) 100%),
      url("assets/hero-engineering.png") center / cover no-repeat;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .split,
  .service-grid,
  .method-steps,
  .studio-band,
  .contact-layout,
  .reserved-layout,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .studio-band {
    align-items: start;
  }
}

@media (max-width: 1080px) and (min-width: 821px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  nav a:nth-child(2),
  nav a:nth-child(3),
  nav a:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  nav a {
    display: none;
  }

  nav a:last-child {
    display: inline;
  }

  .hero {
    min-height: 84vh;
  }

  h1 {
    font-size: clamp(44px, 15vw, 62px);
  }

  .service-card,
  .method-steps article {
    min-height: auto;
    padding: 24px;
  }
}
