:root {
  color-scheme: dark;
  --bg: #091018;
  --bg-soft: #101923;
  --surface: rgba(14, 22, 31, 0.88);
  --surface-strong: #131d29;
  --surface-elevated: #182332;
  --ink: #eff5fb;
  --muted: #9eaab8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #7fd6d0;
  --accent-strong: #a7e7d3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(127, 214, 208, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(167, 231, 211, 0.06), transparent 22%),
    linear-gradient(180deg, #081019 0%, var(--bg) 100%);
}

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

button {
  font: inherit;
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.site-header,
.hero,
.section,
.contact-card {
  backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d2733 0%, #0f141b 100%);
  border: 1px solid rgba(126, 224, 180, 0.22);
  color: var(--accent);
  font-weight: 700;
}

.brand-name {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.is-active {
  position: relative;
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--accent);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 18px;
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.page-title {
  max-width: 14ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

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

.cta-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cta-link:hover,
.button:hover {
  transform: translateY(-1px);
}

.cta-link,
.button-primary {
  background: var(--accent);
  color: #07110d;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 18px;
  align-items: end;
  padding: 34px;
  min-height: 70vh;
  background:
    linear-gradient(180deg, rgba(19, 29, 41, 0.88) 0%, rgba(11, 18, 26, 0.96) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-home {
  min-height: 70vh;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.hero-points span,
.panel-label,
.service-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(127, 214, 208, 0.08);
  border: 1px solid rgba(127, 214, 208, 0.18);
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.lede,
.portrait-card p,
.service-card p,
.project-item p,
.principle p,
.contact-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.narrow {
  max-width: 42rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portrait-card {
  align-self: end;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel,
.consult-form-card {
  align-self: stretch;
  padding: 22px;
  background: linear-gradient(180deg, rgba(24, 35, 50, 0.92) 0%, rgba(18, 28, 40, 0.94) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.panel-stack,
.step-grid,
.thumb-grid {
  display: grid;
  gap: 12px;
}

.flow-step,
.step-card,
.thumb-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-step {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.flow-step span,
.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(127, 214, 208, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.flow-step p,
.step-card p,
.thumb-card p,
.form-note,
.detail-list {
  color: var(--muted);
}

.portrait-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  width: 100%;
  margin-bottom: 14px;
  border: 1px dashed rgba(126, 224, 180, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(126, 224, 180, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.section {
  margin-top: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-intro {
  padding-top: 28px;
  padding-bottom: 28px;
}

.section-compact {
  padding-top: 20px;
  padding-bottom: 20px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

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

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

.split-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
}

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

.bio-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.copy-stack {
  display: grid;
  gap: 16px;
}

.service-card,
.principle {
  min-height: 150px;
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card-tall {
  min-height: 100%;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(126, 224, 180, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
}

.principle span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-card {
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-actions {
  margin-top: 18px;
}

.cta-link {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

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

.thumb-card strong {
  font-size: 1rem;
}

.callout-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.consult-form {
  display: grid;
  gap: 14px;
}

.consult-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 15, 23, 0.9);
  color: var(--ink);
  font: inherit;
}

.consult-form textarea {
  resize: vertical;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: 1px solid rgba(127, 214, 208, 0.55);
  border-color: rgba(127, 214, 208, 0.45);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .split-layout,
  .bio-layout,
  .service-grid,
  .principle-grid,
  .service-grid-wide,
  .step-grid,
  .thumb-grid,
  .callout-band,
  .split-layout-balanced {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: stretch;
  }

  .brand-name {
    white-space: normal;
  }

  .site-nav {
    gap: 12px;
  }

  .hero {
    padding: 24px;
  }

  .hero-home {
    min-height: auto;
  }

  h1 {
    max-width: none;
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .site-nav a.is-active::after {
    bottom: -6px;
  }
}
