:root {
  --ink: #0f1718;
  --ink-soft: #314142;
  --paper: #f7f5ef;
  --paper-soft: #ece9df;
  --panel: #ffffff;
  --line: rgba(15, 23, 24, 0.14);
  --accent: #ff8d19;
  --accent-dark: #cf6e0f;
  --accent-soft: #ffb56d;
  --teal: #1d8077;
  --teal-dark: #155e59;
  --green: #5d8b65;
  --coral: var(--accent);
  --shadow: 0 20px 60px rgba(15, 23, 24, 0.14);
  --header-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

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

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(16px + env(safe-area-inset-top)) clamp(20px, 5vw, 64px) 16px;
  color: #fffaf1;
  border-bottom: 0;
  background: #10161c;
}

main,
section[id] {
  scroll-margin-top: var(--header-offset);
}

.brand,
.site-footer p:first-child {
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}

.brand {
  margin-left: clamp(12px, 1.4vw, 20px);
  font-size: clamp(1.6rem, 2.5vw, 2.05rem);
  letter-spacing: -0.01em;
}

.site-footer p:first-child {
  font-size: 1.05rem;
}

.brand span,
.site-footer span {
  color: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 34px);
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 0;
  color: var(--accent);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-soft);
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fffaf1;
  background: #10191a;
}

@supports (min-height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  isolation: isolate;
  background: #0e1718;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-media::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 24, 0.97) 0%, rgba(15, 23, 24, 0.78) 42%, rgba(15, 23, 24, 0.46) 74%, rgba(15, 23, 24, 0.72) 100%),
    linear-gradient(180deg, rgba(15, 23, 24, 0.1) 0%, rgba(15, 23, 24, 0.2) 46%, rgba(15, 23, 24, 0.62) 100%),
    radial-gradient(ellipse 96% 76% at 72% 38%, rgba(72, 118, 111, 0.18) 0%, rgba(72, 118, 111, 0.1) 34%, rgba(72, 118, 111, 0) 72%),
    radial-gradient(ellipse 120% 100% at 50% 50%, rgba(29, 51, 50, 0.34) 0%, rgba(18, 31, 31, 0.16) 45%, rgba(6, 12, 13, 0.72) 100%),
    #10191a;
}

.hero-media::after {
  z-index: 1;
  opacity: 0.16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .28'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-tree {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(940px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 92px);
  padding: 120px 0 92px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
}

p {
  overflow-wrap: break-word;
  word-break: normal;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2.65rem, 5.25vw, 4.45rem);
  font-weight: 760;
}

h2 {
  max-width: 740px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 720;
}

h3 {
  font-size: 1.2rem;
  font-weight: 720;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-copy.secondary-copy {
  max-width: 690px;
  margin-top: 16px;
  color: rgba(255, 250, 241, 0.72);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
}

.hero-actions,
.contact-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: #fffaf1;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(255, 141, 25, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.secondary {
  color: #fffaf1;
  border-color: rgba(255, 250, 241, 0.34);
  background: rgba(255, 250, 241, 0.08);
}

.section-band {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-band.light {
  background: var(--paper-soft);
}

.approach {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.ways-help {
  padding-top: clamp(20px, 3vw, 36px);
}

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

.services-inner {
  width: min(1240px, calc(100% - 40px));
}

.intro-grid,
.approach-grid,
.outcomes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.intro-grid > p,
.outcomes-grid p,
.stacked-copy p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.gap-section h2 {
  max-width: 680px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.gap-section .intro-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(34px, 5vw, 64px);
}

.discovery .intro-grid,
.workflow-why .intro-grid,
.outcomes-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(34px, 5vw, 64px);
}

.discovery h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.workflow-why h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

#services-title,
#ways-title,
#value-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
}

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

#approach-title {
  max-width: 980px;
  font-size: clamp(2rem, 3.7vw, 3rem);
}

.stacked-copy p + p {
  margin-top: 18px;
}

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

.ways-heading {
  max-width: 920px;
}

.ways-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.service-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--panel);
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
  min-height: 290px;
}

.service-card h3 {
  max-width: 20ch;
  min-height: 3.05em;
  margin-top: 22px;
  line-height: 1.12;
}

.service-card:nth-child(4) h3,
.service-card:nth-child(5) h3 {
  max-width: 22ch;
}

.card-index {
  display: inline-block;
  min-width: 2.6ch;
  color: var(--coral);
  font-size: clamp(2rem, 2.9vw, 3rem);
  font-weight: 780;
  line-height: 0.92;
  letter-spacing: 0;
}

.service-card p,
.approach-item p {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.service-card p {
  margin-top: 22px;
}

.approach-list {
  border-top: 1px solid var(--line);
}

.approach-item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.approach-item p {
  margin-top: 0;
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.way-card {
  min-height: 230px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--panel);
}

.way-card h3 {
  max-width: 22ch;
  line-height: 1.16;
}

.way-card p {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.outcome-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-weight: 640;
}

.outcome-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.contact {
  padding-top: clamp(64px, 8vw, 104px);
}

.contact-panel {
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 8px;
  color: #fffaf1;
  background:
    radial-gradient(circle at 18% 24%, rgba(107, 160, 180, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(28, 55, 63, 0.9), rgba(15, 23, 24, 0.98));
}

.contact-panel .eyebrow {
  color: var(--accent);
}

.contact-panel h2 {
  max-width: 700px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 250, 241, 0.78);
  font-size: 1.06rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 18, 0.72);
  backdrop-filter: blur(8px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(780px, calc(100dvh - 32px));
  overflow: auto;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(107, 160, 180, 0.16), transparent 34%),
    var(--paper);
  box-shadow: 0 32px 90px rgba(5, 10, 10, 0.34);
}

.contact-close {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
}

.contact-close:hover,
.contact-close:focus-visible {
  background: #fff;
}

.contact-dialog-copy {
  max-width: 560px;
  padding-right: 36px;
}

.contact-dialog h2 {
  max-width: 560px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.contact-dialog-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full,
.contact-status,
.contact-form-actions {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 720;
}

.form-field label span {
  color: rgba(49, 65, 66, 0.72);
  font-weight: 620;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 24, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.form-field input {
  min-height: 48px;
  padding: 10px 12px;
}

.form-field textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(255, 141, 25, 0.2);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 680;
}

.contact-status[data-state="success"] {
  color: var(--teal-dark);
}

.contact-status[data-state="error"] {
  color: var(--accent-dark);
}

.contact-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-form-actions p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-form-actions a {
  color: var(--accent);
  font-weight: 720;
}

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

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

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
    min-height: 0;
  }

  .card-index {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .intro-grid,
  .approach-grid,
  .outcomes-grid,
  .approach-item {
    grid-template-columns: 1fr;
  }

  .gap-section .intro-grid,
  .discovery .intro-grid,
  .workflow-why .intro-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-offset: 160px;
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
    width: 100%;
    max-width: none;
    font-size: 0.74rem;
  }

  .hero {
    min-height: 860px;
    min-height: max(100svh, 860px);
  }

  @supports (min-height: 100dvh) {
    .hero {
      min-height: max(100dvh, 860px);
    }
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(15, 23, 24, 0.98) 0%, rgba(15, 23, 24, 0.82) 48%, rgba(15, 23, 24, 0.54) 100%),
      radial-gradient(ellipse 120% 72% at 68% 60%, rgba(72, 118, 111, 0.16) 0%, rgba(72, 118, 111, 0.08) 38%, rgba(72, 118, 111, 0) 74%),
      radial-gradient(ellipse 130% 100% at 50% 52%, rgba(29, 51, 50, 0.3) 0%, rgba(6, 12, 13, 0.78) 100%),
      #10191a;
  }

  .hero-tree {
    width: 100%;
    height: 100%;
    object-position: 64% center;
    opacity: 0.56;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 150px 0 72px;
  }

  h1 {
    max-width: 14ch;
    font-size: clamp(2.35rem, 8.8vw, 3.75rem);
  }

  .gap-section h2 br {
    display: none;
  }

  .discovery h2 br {
    display: none;
  }

  .workflow-why h2 br {
    display: none;
  }

  .hero-actions .button,
  .contact-panel .button {
    width: 100%;
  }

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

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

  .service-card {
    grid-column: auto;
    min-height: 0;
  }

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

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

@media (max-width: 420px) {
  :root {
    --header-offset: 160px;
  }

  .hero {
    min-height: 780px;
    min-height: max(100svh, 780px);
  }

  @supports (min-height: 100dvh) {
    .hero {
      min-height: max(100dvh, 780px);
    }
  }

  .button {
    min-height: 46px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-modal {
    align-items: end;
    padding: 12px;
  }

  .contact-dialog {
    max-height: calc(100dvh - 24px);
  }
}
