:root {
  color-scheme: light;
  --ink: #151816;
  --muted: #5f6862;
  --paper: #fbfcf8;
  --white: #ffffff;
  --line: #d9ded6;
  --teal: #116a63;
  --teal-dark: #0a413d;
  --amber: #c98b2b;
  --coral: #c95e4d;
  --steel: #2f3b43;
  --soft: #eef4ef;
  --shadow: 0 22px 70px rgba(18, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(251, 252, 248, 0.86);
  border-bottom: 1px solid rgba(217, 222, 214, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  padding: 118px clamp(18px, 6vw, 78px) 74px;
  overflow: hidden;
  color: var(--white);
}

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

.hero picture {
  display: block;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 17, 16, 0.88), rgba(8, 17, 16, 0.62) 44%, rgba(8, 17, 16, 0.18)),
    linear-gradient(0deg, rgba(8, 17, 16, 0.58), rgba(8, 17, 16, 0.05) 46%);
}

.hero-content {
  position: relative;
  width: min(100%, 760px);
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(31px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

#process-title {
  max-width: 1120px;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.06;
}

#process-title span {
  display: block;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-copy strong {
  color: #63d39a;
  font-weight: 900;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 6vw, 78px);
}

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

.section-heading p,
.why-intro p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading .section-punchline {
  margin-top: 14px;
  color: var(--teal);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.12;
}

.process-punchline {
  max-width: 920px;
  color: var(--teal);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.12;
}

.cards,
.work-grid,
.process,
.split,
.why,
.contact-section {
  display: grid;
  gap: 18px;
}

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

.card,
.line-card,
.process article,
.work-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  min-height: 220px;
  padding: 24px;
}

.icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--teal);
  font-weight: 900;
}

.card p,
.line-card p,
.process p,
.work-card p,
.proof-list {
  color: var(--muted);
}

.split,
.why,
.contact-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.line-card {
  padding: 24px;
  box-shadow: none;
}

.process-section {
  background: var(--soft);
}

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

.process article {
  padding: 28px;
}

.process span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.why {
  background: var(--steel);
  color: var(--white);
}

.why .eyebrow,
.why-intro p,
.proof-list {
  color: rgba(255, 255, 255, 0.75);
}

.proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.proof-list li::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

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

.work-card {
  overflow: hidden;
}

.work-card > div:last-child {
  padding: 24px;
}

.work-card a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.small {
  font-size: 15px;
}

.work-shot {
  display: grid;
  align-items: center;
  justify-items: center;
  height: clamp(240px, 25vw, 430px);
  padding: 18px;
  background: #0b1220;
}

.work-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.work-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-section {
  background: #f3f5f1;
}

.contact-copy {
  position: sticky;
  top: 96px;
}

address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

address a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

label span {
  color: var(--muted);
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd7cf;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(17, 106, 99, 0.18);
  border-color: var(--teal);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 78px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.blog-page-hero {
  padding-top: 132px;
  background: var(--soft);
}

.blog-page-hero h1 {
  max-width: 1040px;
  color: var(--ink);
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
}

.blog-page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
}

.blog-list {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
}

.blog-card {
  min-height: 0;
}

.blog-card h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.blog-card a,
.article-shell a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 850;
}

.article-shell {
  max-width: 860px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-shell p,
.article-shell li {
  color: var(--muted);
  font-size: 18px;
}

.article-shell .article-lead {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.45;
}

.article-shell h2 {
  margin-top: 38px;
  font-size: clamp(27px, 3vw, 42px);
}

.article-shell ul {
  padding-left: 24px;
}

.ai-floater {
  position: fixed;
  z-index: 30;
  right: auto;
  bottom: auto;
  left: max(18px, calc(100vw - 410px));
  top: 44vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  width: min(350px, calc(100vw - 36px));
  border: 1px solid rgba(34, 211, 188, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 29, 45, 0.98), rgba(8, 14, 25, 0.98)),
    #0b1220;
  box-shadow: 0 24px 80px rgba(2, 8, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: translateX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.ai-floater.is-pending {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
}

.ai-floater.is-hidden {
  display: none;
}

.ai-floater.is-tucked {
  transform: translateX(calc(100% - 42px));
}

.ai-floater-handle,
.ai-floater-close {
  border: 0;
  background: transparent;
  color: #22d3c4;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.ai-floater-handle {
  width: 42px;
  border-right: 1px solid rgba(34, 211, 188, 0.16);
  background:
    radial-gradient(circle at 50% 32%, rgba(34, 211, 188, 0.26), transparent 30px),
    rgba(15, 23, 42, 0.75);
  cursor: grab;
  font-size: 20px;
  touch-action: none;
  user-select: none;
}

.ai-floater.is-dragging {
  transition: none;
}

.ai-floater.is-dragging .ai-floater-handle {
  cursor: grabbing;
}

.ai-floater.is-tucked .ai-floater-handle {
  color: #06121f;
  background: #22d3c4;
}

.ai-floater-body {
  padding: 15px 12px 15px 16px;
}

.ai-floater-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ai-floater-topline span {
  color: #22d3c4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-floater-topline small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 188, 0.28);
  border-radius: 999px;
  color: #9ff7ec;
  background: rgba(34, 211, 188, 0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ai-floater-title {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.22;
}

.ai-floater-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ai-floater-metrics span {
  display: grid;
  gap: 1px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.ai-floater-metrics b {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.ai-floater a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  border-radius: 8px;
  background: #22d3c4;
  color: #04111d;
  font-weight: 900;
  text-decoration: none;
}

.ai-floater a:hover {
  background: #5eeadd;
  color: #04111d;
}

.ai-floater-close {
  align-self: start;
  width: 38px;
  height: 38px;
  color: #94a3b8;
  font-size: 24px;
}

.ai-floater-close:hover {
  color: #ffffff;
}

@media (max-width: 920px) {
  .services-grid,
  .process,
  .work-grid,
  .split,
  .why,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .nav a {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: 96svh;
    padding: 112px 18px 54px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 46px);
    line-height: 1.02;
  }

  .hero-content,
  .hero-content * {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-content {
    width: min(330px, calc(100vw - 52px));
    max-width: min(330px, calc(100vw - 52px));
  }

  .hero-copy {
    width: min(330px, calc(100vw - 52px));
    max-width: min(330px, calc(100vw - 52px));
  }

  .hero-copy {
    font-size: 17px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(8, 17, 16, 0.88), rgba(8, 17, 16, 0.45));
  }

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

  .section {
    padding: 58px 18px;
  }

  .card {
    min-height: 0;
  }

  .footer {
    display: grid;
  }

  .ai-floater {
    left: 14px;
    top: 52vh;
    width: min(318px, calc(100vw - 28px));
  }
}
