:root {
  --paper: #f4f2ec;
  --paper-2: #fbfaf6;
  --card: #ffffff;
  --ink: #17181b;
  --ink-soft: #4c4f55;
  --ink-faint: #6b6e74;
  --line: #e2ded3;
  --line-strong: #ccc7ba;
  --cobalt: #1c46d0;
  --cobalt-deep: #16379f;
  --cobalt-wash: #eaeefb;
  --on-cobalt: #fbfaf6;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(100% - 2.5rem, 1140px);
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: var(--container);
  margin-inline: auto;
  position: relative;
}

::selection {
  background: var(--cobalt);
  color: var(--on-cobalt);
}

/* —— Eyebrow / labels —— */
.label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.label-muted {
  color: var(--ink-faint);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wordmark-dot {
  color: var(--cobalt);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-right a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  color: var(--on-cobalt) !important;
  background: var(--cobalt);
  padding: 0.5rem 1rem;
  border-radius: 7px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--cobalt-deep);
}

@media (max-width: 640px) {
  .nav-right a:not(.nav-cta) {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cobalt);
  color: var(--on-cobalt);
}

.btn-primary:hover {
  background: var(--cobalt-deep);
  box-shadow: 0 12px 26px rgba(28, 70, 208, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

/* —— Hero —— */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--cobalt);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-aside {
  border-left: 2px solid var(--cobalt);
  padding: 0.35rem 0 0.35rem 1.4rem;
}

.hero-aside p {
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.hero-aside p:last-child {
  margin-bottom: 0;
}

.hero-aside strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Section scaffold —— */
section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 52ch;
  margin-bottom: 2.75rem;
}

.section-head .label {
  display: block;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Reveal is progressive enhancement: content is visible by default and only
   hidden when JS is confirmed running (html.js set by the inline head script). */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* —— Services —— */
.services {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(23, 24, 27, 0.06);
}

.service-num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cobalt);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  flex-grow: 1;
}

.service-price {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.service-price span {
  color: var(--ink-faint);
  font-weight: 500;
}

/* —— Positioning / the agency alternative —— */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 0.5rem;
}

.compare-card {
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.85rem;
  border: 1px solid var(--line);
}

.compare-them {
  background: var(--paper-2);
}

.compare-us {
  background: var(--cobalt);
  color: var(--on-cobalt);
  border-color: var(--cobalt);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}

.compare-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.compare-card li {
  font-size: 0.96rem;
  padding-left: 1.5rem;
  position: relative;
}

.compare-them li {
  color: var(--ink-soft);
}

.compare-them li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.compare-us li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* —— Process —— */
.process-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}

.process-step {
  border-top: 2px solid var(--cobalt);
  padding-top: 1.1rem;
}

.process-step .step-n {
  counter-increment: step;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cobalt);
}

.process-step .step-n::before {
  content: "0" counter(step);
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.4rem;
}

.process-step p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* —— Work / case studies —— */
.work {
  background: var(--ink);
  color: var(--paper);
}

.work .label {
  color: #8ea2f0;
}

.work .section-title {
  color: var(--paper);
}

.work .section-lead {
  color: #b7b9bd;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.case-card {
  border: 1px solid #2b2d33;
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  background: #1d1f24;
}

.case-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ea2f0;
}

.case-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.5rem;
  color: var(--paper);
}

.case-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #b7b9bd;
}

.case-note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: #86888e;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy p {
  color: var(--ink-soft);
  max-width: 36ch;
}

.contact-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
  border-color: var(--cobalt);
}

.contact-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.contact-form .btn-primary {
  justify-self: start;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0.1rem 0 0;
}

.form-note a {
  color: var(--ink-soft);
}

.form-note a:hover {
  color: var(--cobalt);
}

/* Honeypot — visually removed, still in the form for bots */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.form-status.is-ok {
  color: var(--cobalt);
}

.form-status.is-error {
  color: #a3312a;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* —— Ethos strip (name meaning) —— */
.ethos {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.ethos-inner {
  max-width: 44rem;
}

.ethos dfn {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cobalt);
}

.ethos p {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  padding: 2.25rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.footer-inner a {
  text-decoration: none;
  color: #b7b9bd;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-inner a:hover {
  color: var(--paper);
}

.footer-meta {
  font-size: 0.85rem;
  color: #86888e;
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .hero-grid,
  .service-grid,
  .compare-grid,
  .case-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    border-left: none;
    border-top: 2px solid var(--cobalt);
    padding: 1.2rem 0 0;
  }

  .process-rail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .process-rail {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
