:root {
  color-scheme: dark;
  --sc-black: #0a0a0f;
  --sc-navy-900: #0d1117;
  --sc-navy-800: #151922;
  --sc-copper-500: #c47a5a;
  --sc-copper-600: #a86448;
  --sc-copper-700: #8a4f38;
  --sc-red-700: #8b2635;
  --sc-red-800: #6e1e2a;
  --sc-beige-100: #f5f1ec;
  --sc-beige-200: #ebe4dc;
  --sc-beige-300: #d9cfc4;
  --sc-grey-600: #6b6b7b;
  --sc-grey-400: #9ca3af;
  --sc-grey-300: #d4d4e0;
  --sc-white: #f0f0f5;
  --sc-border: rgba(255, 255, 255, 0.08);
  --sc-border-strong: rgba(255, 255, 255, 0.16);
  --sc-border-dark: rgba(10, 10, 15, 0.12);
  --sc-container: min(100% - 48px, 1460px);
  --sc-gutter: clamp(24px, 5vw, 72px);
  --sc-shadow-blue: 0 0 34px rgba(37, 99, 235, 0.24);
  --sc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--sc-black);
}

section[id] {
  scroll-margin-top: 104px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--sc-beige-100);
  color: var(--sc-navy-900);
  font-size: 16px;
  line-height: 1.65;
}

body.is-menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ul {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--sc-copper-500);
  background: var(--sc-white);
  color: var(--sc-black);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms var(--sc-ease);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 20px clamp(24px, 4vw, 64px);
  background: transparent;
  transition:
    background 180ms var(--sc-ease),
    border-color 180ms var(--sc-ease),
    min-height 180ms var(--sc-ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  min-height: 72px;
  border-bottom: 1px solid var(--sc-border);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.sc-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--sc-copper-500);
  fill: currentColor;
}

.brand-wordmark {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sc-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sc-copper-500);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
}

.nav-links a,
.nav-cta,
.button,
.text-link,
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--sc-white);
  transition: color 160ms var(--sc-ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--sc-copper-500);
}

.has-chevron {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.has-chevron::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

.nav-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--sc-copper-500);
  padding: 14px 26px;
  overflow: hidden;
  transition:
    border-color 180ms var(--sc-ease),
    background 180ms var(--sc-ease),
    box-shadow 180ms var(--sc-ease),
    transform 180ms var(--sc-ease);
}

.nav-cta {
  min-width: 140px;
  color: var(--sc-white);
}

.button {
  gap: 14px;
}

.button svg,
.text-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.button-primary {
  border-color: var(--sc-red-700);
  background: var(--sc-red-700);
  color: var(--sc-white);
}

.button-secondary {
  border-color: var(--sc-white);
  background: transparent;
  color: var(--sc-white);
}

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

.button-primary:hover {
  background: var(--sc-red-800);
  border-color: var(--sc-red-800);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sc-copper-500);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--sc-black);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.85;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.9) 35%, rgba(10, 10, 15, 0.5) 58%, rgba(10, 10, 15, 0.8) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: var(--sc-container);
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 0 88px;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sc-navy-900);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  color: var(--sc-white);
  font-weight: 300;
  line-height: 1.05;
}

h1 span {
  color: var(--sc-copper-500);
  font-weight: 400;
}

.hero-copy > p:not(.section-kicker):not(.hero-tagline) {
  max-width: 540px;
  margin-bottom: 34px;
  color: var(--sc-grey-300);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

.hero-tagline {
  position: relative;
  padding-left: 24px;
  color: var(--sc-white);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-tagline::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--sc-copper-500);
  content: "";
}

/* Sections */
.section-kicker {
  position: relative;
  margin-bottom: 20px;
  color: var(--sc-red-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--sc-red-700);
  transition: color 160ms var(--sc-ease), transform 160ms var(--sc-ease);
}

.text-link:hover {
  color: var(--sc-red-800);
  transform: translateX(3px);
}

/* Values */
.values {
  background: var(--sc-beige-100);
  border-bottom: 1px solid var(--sc-border-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: var(--sc-container);
  margin: 0 auto;
}

.value-card {
  display: flex;
  gap: 22px;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--sc-border-dark);
}

.value-card:last-child {
  border-right: 0;
}

.value-card .icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  color: var(--sc-copper-500);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.value-card p {
  margin-bottom: 0;
  color: var(--sc-navy-800);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* What We Do */
.what-we-do {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: stretch;
  width: var(--sc-container);
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 60px) 0;
}

.what-we-do > .section-intro {
  grid-column: 1;
}

.what-we-do > .service-cards {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.what-we-do > .quote-block {
  grid-column: 3;
}

.section-intro {
  max-width: 420px;
}

.section-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.what-we-do .section-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.section-intro > p:not(.section-kicker) {
  color: var(--sc-navy-800);
  font-size: 0.98rem;
  line-height: 1.6;
}

.what-we-do .section-intro > p:not(.section-kicker) {
  margin-bottom: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.what-we-do .section-intro .text-link {
  margin-top: 10px;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border: 1px solid var(--sc-border-dark);
  background: var(--sc-white);
  padding: 12px;
  transition:
    transform 180ms var(--sc-ease),
    border-color 180ms var(--sc-ease),
    box-shadow 180ms var(--sc-ease);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--sc-beige-300);
  box-shadow: 0 8px 20px rgba(10, 10, 15, 0.05);
}

.service-card .icon {
  grid-column: 1;
  grid-row: 1;
  width: 36px;
  height: 36px;
  margin: 0 10px 6px 0;
  color: var(--sc-copper-500);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.service-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-bottom: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-bottom: 6px;
  color: var(--sc-navy-800);
  font-size: 0.84rem;
  line-height: 1.5;
}

.service-card .text-link {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 0;
  font-size: 0.68rem;
}

/* Quote Block */
.quote-block {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sc-navy-900);
  min-height: 100%;
}

.quote-block blockquote {
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  flex: 0 0 auto;
}

.quote-block blockquote::before {
  display: block;
  margin-bottom: 8px;
  color: var(--sc-copper-500);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 0.8;
  content: "“";
}

.quote-block blockquote p {
  color: var(--sc-white);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.4;
}

.quote-block blockquote p:not(:last-child) {
  margin-bottom: 10px;
}

.quote-accent {
  color: var(--sc-copper-500) !important;
  font-weight: 400;
}

.quote-block picture {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 220px;
  position: relative;
}

.quote-block picture::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sc-navy-900) 0%, transparent 35%);
  content: "";
  pointer-events: none;
}

.quote-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Focus Areas */
.focus-areas {
  width: var(--sc-container);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) 0;
  border-top: 1px solid var(--sc-border-dark);
}

.focus-areas .section-kicker {
  text-align: center;
  margin-bottom: 40px;
}

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

.focus-card {
  display: flex;
  gap: 18px;
}

.focus-card .icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--sc-copper-500);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.focus-card h3 {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-card p {
  margin-bottom: 0;
  color: var(--sc-navy-800);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sc-gutter);
  align-items: end;
  width: var(--sc-container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--sc-border-dark);
}

.contact h2 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.contact p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--sc-navy-800);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: var(--sc-container);
  margin: 0 auto;
  border-top: 1px solid var(--sc-border-dark);
  padding: 28px 0 38px;
  color: var(--sc-navy-800);
  font-size: 0.92rem;
}

.brand-small .sc-mark {
  width: 36px;
  height: 36px;
}

.brand-small .brand-wordmark {
  font-size: 0.72rem;
}

.brand-small .brand-sub {
  display: none;
}

/* Responsive */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .nav-links {
    justify-content: end;
    gap: 24px;
  }

  .what-we-do {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  .what-we-do > .section-intro {
    grid-column: 1 / -1;
  }

  .what-we-do > .service-cards {
    grid-column: 1;
  }

  .what-we-do > .quote-block {
    grid-column: 2;
  }

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

  .value-card {
    border-right: 0;
    border-bottom: 1px solid var(--sc-border-dark);
  }

  .value-card:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 900px) {
  :root {
    --sc-container: min(100% - 32px, 1460px);
  }

  section[id] {
    scroll-margin-top: 88px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 72px;
    padding: 16px;
  }

  .brand-wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .sc-mark {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--sc-border-strong);
    background: rgba(10, 10, 15, 0.6);
    color: var(--sc-white);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--sc-border);
    border-bottom: 1px solid var(--sc-border);
    background: rgba(10, 10, 15, 0.98);
    padding: 12px 16px;
    transform: translateY(-130%);
    visibility: hidden;
    transition:
      transform 200ms var(--sc-ease),
      visibility 200ms var(--sc-ease);
  }

  .site-header.is-open .nav-links {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    border-bottom: 1px solid var(--sc-border);
    padding: 18px 0;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner {
    min-height: 100svh;
    padding-top: 112px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 11vw, 4.5rem);
  }

  .what-we-do {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .what-we-do > .section-intro,
  .what-we-do > .service-cards,
  .what-we-do > .quote-block {
    grid-column: 1;
  }

  .what-we-do > .service-cards {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .hero-actions,
  .button,
  .contact .button {
    width: 100%;
  }

  .contact .button {
    padding-inline: 16px;
    overflow-wrap: anywhere;
    text-align: center;
  }

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

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