/* Northpine — site styles */

:root {
  --paper: #f4f1e9;
  --paper-soft: #ece7da;
  --cream: #fbf9f3;
  --ink: #161f1a;
  --ink-2: #33403a;
  --muted: #67736c;
  --line: #d8d1c2;
  --line-strong: #c2b9a7;
  --pine: #17402f;
  --pine-2: #1f4d39;
  --pine-3: #2b5f48;
  --copper: #ad5f39;
  --copper-soft: #c9805c;
  --max: 1180px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
  --shadow: 0 24px 60px -32px rgba(22, 31, 26, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--pine);
  color: var(--cream);
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ───────────────────────── header ───────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-head.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-word {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  font-size: 14.5px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}

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

.nav a:hover::after,
.nav a.is-active::after {
  right: 0;
}

.head-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  background: var(--pine);
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.head-cta:hover {
  background: var(--pine-2);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger span:first-child {
  top: 18px;
}

.burger span:last-child {
  bottom: 18px;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ───────────────────────── buttons ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--pine);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--pine-2);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--cream);
  color: var(--pine);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(251, 249, 243, 0.3);
  color: var(--cream);
}

.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(251, 249, 243, 0.06);
}

.btn-outline-dark {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}

.text-link:hover {
  border-color: var(--ink);
  gap: 12px;
}

.text-link svg {
  width: 13px;
  height: 13px;
}

.inline-link {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

/* ───────────────────────── hero ───────────────────────── */

.hero {
  padding: 34px 0 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--pine);
  color: var(--cream);
  padding: clamp(40px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  min-height: 580px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.hero h1 {
  font-size: clamp(44px, 5.6vw, 82px);
  color: var(--cream);
  max-width: 13ch;
}

.hero .lede {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(251, 249, 243, 0.72);
}

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

.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(251, 249, 243, 0.15);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-meta strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--cream);
}

.hero-meta span {
  font-size: 12.5px;
  color: rgba(251, 249, 243, 0.55);
}

.hero-art {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contours {
  position: absolute;
  inset: -10% -12% -10% -10%;
  width: 122%;
  height: 120%;
  opacity: 0.9;
}

.contours path {
  fill: none;
  stroke: rgba(251, 249, 243, 0.16);
  stroke-width: 1;
}

.contours path:nth-child(3n) {
  stroke: rgba(201, 128, 92, 0.4);
}

.contours .core {
  fill: var(--copper-soft);
  stroke: none;
  filter: drop-shadow(0 0 18px rgba(201, 128, 92, 0.7));
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(251, 249, 243, 0.18);
  border-radius: 50%;
}

.orbit.o1 {
  width: 300px;
  height: 300px;
}

.orbit.o2 {
  width: 430px;
  height: 430px;
  animation: spin 90s linear infinite;
}

.orbit.o2::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper-soft);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-card {
  position: relative;
  z-index: 2;
  width: min(300px, 100%);
  background: rgba(251, 249, 243, 0.06);
  border: 1px solid rgba(251, 249, 243, 0.16);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.status-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 249, 243, 0.6);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd6a6;
  box-shadow: 0 0 0 0 rgba(127, 214, 166, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 214, 166, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(127, 214, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 214, 166, 0);
  }
}

.status-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 44px;
  line-height: 1;
  margin: 18px 0 4px;
}

.status-card p {
  font-size: 13px;
  color: rgba(251, 249, 243, 0.55);
}

.status-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  margin-top: 18px;
}

.status-bars i {
  flex: 1;
  background: rgba(251, 249, 243, 0.22);
  border-radius: 2px;
  height: 40%;
}

.status-bars i:nth-child(1) { height: 34%; }
.status-bars i:nth-child(2) { height: 46%; }
.status-bars i:nth-child(3) { height: 40%; }
.status-bars i:nth-child(4) { height: 58%; }
.status-bars i:nth-child(5) { height: 52%; }
.status-bars i:nth-child(6) { height: 66%; }
.status-bars i:nth-child(7) { height: 48%; }
.status-bars i:nth-child(8) { height: 62%; }
.status-bars i:nth-child(9) { height: 74%; }
.status-bars i:nth-child(10) { height: 58%; }
.status-bars i:nth-child(11) { height: 80%; }
.status-bars i:nth-child(12) { height: 68%; }
.status-bars i:nth-child(13) { height: 88%; }
.status-bars i:nth-child(14) { height: 76%; }

.status-bars i:nth-child(4n) {
  background: rgba(201, 128, 92, 0.7);
}

/* ───────────────────────── logos strip ───────────────────────── */

.clients {
  padding: 46px 0 0;
}

.clients-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 54px;
}

.clients-row span {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: 0.06em;
  color: #8b9187;
  transition: color 0.25s var(--ease);
}

.clients-row span:hover {
  color: var(--ink);
}

/* ───────────────────────── sections ───────────────────────── */

.section {
  padding: clamp(72px, 9vw, 122px) 0 0;
}

.section-tight {
  padding-top: 0;
}

/* ───────────────────────── case studies ───────────────────────── */

.case {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(44px, 6vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.case-side {
  position: sticky;
  top: 110px;
  align-self: start;
}

.case-side .tag {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

.case-side h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.case-side .case-meta {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.case-side .case-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.case-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.case-body p + p {
  margin-top: 18px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.case-metrics strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-metrics span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.case-quote {
  margin: 30px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--copper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}

.case-quote cite {
  display: block;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
} 


.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  max-width: 16ch;
}

.section-head .intro {
  max-width: 38ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

/* capability cards */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 270px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card-num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 46px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.card .card-link {
  margin-top: auto;
  padding-top: 26px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card .card-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* ───────────────────────── work ───────────────────────── */

.work-section {
  padding: clamp(72px, 9vw, 122px) 0 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.work-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.work-visual {
  position: relative;
  min-height: 260px;
  background: var(--pine);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.work-card.wide .work-visual {
  flex: 0 0 44%;
  min-height: 340px;
}

.work-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-visual .tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 249, 243, 0.7);
  border: 1px solid rgba(251, 249, 243, 0.2);
  padding: 6px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.work-visual .big-num {
  position: relative;
  z-index: 2;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.9;
  color: var(--cream);
  letter-spacing: -0.04em;
}

.work-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.work-body .meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-body h3 {
  font-size: clamp(23px, 2.3vw, 30px);
  max-width: 24ch;
}

.work-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 52ch;
}

.work-body .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
}

/* metrics strip */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 38px 10px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  border-left: 0;
}

.metric strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ───────────────────────── process ───────────────────────── */

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

.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.1fr;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  color: var(--copper);
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 27px;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 58ch;
}

/* ───────────────────────── insights ───────────────────────── */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.post-card:hover {
  background: var(--cream);
  transform: translateY(-3px);
}

.post-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.post-card h3 {
  font-size: 23px;
  line-height: 1.15;
}

.post-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.post-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13.5px;
}

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

.post-row {
  display: grid;
  grid-template-columns: 150px 1fr 130px;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.2s var(--ease);
}

.post-row:hover {
  background: rgba(236, 231, 218, 0.4);
}

.post-row .date {
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
}

.post-row h2 {
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.post-row p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

.post-row .cat {
  justify-self: end;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ───────────────────────── cta ───────────────────────── */

.cta {
  padding: clamp(72px, 9vw, 122px) 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(40px, 6vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(201, 128, 92, 0.22);
  box-shadow: 0 0 0 60px rgba(201, 128, 92, 0.05),
    0 0 0 120px rgba(201, 128, 92, 0.03);
}

.cta-panel h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  max-width: 18ch;
}

.cta-panel p {
  margin-top: 16px;
  color: rgba(251, 249, 243, 0.6);
  max-width: 44ch;
  font-size: 15.5px;
}

.cta-panel .btn {
  flex: none;
  position: relative;
  z-index: 2;
}

/* ───────────────────────── footer ───────────────────────── */

.site-foot {
  margin-top: 30px;
  background: var(--pine);
  color: var(--cream);
  padding: 64px 0 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 54px;
}

.brand-foot .brand-word {
  color: var(--cream);
}

.foot-brand p {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(251, 249, 243, 0.55);
}

.foot-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 249, 243, 0.45);
  margin-bottom: 18px;
}

.foot-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(251, 249, 243, 0.82);
  padding: 5px 0;
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--cream);
}

.foot-col .foot-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(251, 249, 243, 0.45);
  margin-top: 12px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 249, 243, 0.14);
  font-size: 12.5px;
  color: rgba(251, 249, 243, 0.5);
}

.foot-bottom a {
  color: inherit;
}

.foot-bottom a:hover {
  color: var(--cream);
}

/* ───────────────────────── page hero (subpages) ───────────────────────── */

.page-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(36px, 5vw, 60px);
}

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

.page-hero h1 {
  font-size: clamp(44px, 6.6vw, 92px);
  max-width: 18ch;
}

.page-hero .lede {
  margin-top: 24px;
  max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--muted);
}

/* ───────────────────────── services detail ───────────────────────── */

.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}

.service-row h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 14px;
}

.service-row .service-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}

.service-list {
  display: grid;
  gap: 0;
}

.service-list li {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.service-list li:last-child {
  border-bottom: 0;
}

.service-list li::before {
  content: "—";
  color: var(--copper);
  flex: none;
}

.engagement {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.engagement .card {
  min-height: 230px;
}

/* ───────────────────────── about ───────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.about-grid h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

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

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

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.principle {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.principle h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.principle p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.team-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.role {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--cream);
}

.role strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.role span {
  font-size: 13px;
  color: var(--muted);
}

/* ───────────────────────── contact ───────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.contact-aside h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 18px;
}

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

.contact-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.contact-list dd {
  margin: 0;
  font-size: 15.5px;
}

.contact-list dd a {
  border-bottom: 1px solid var(--line-strong);
}

.form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: clamp(24px, 3.4vw, 38px);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--pine);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.form-status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}

.form-status.ok {
  display: block;
  background: #e7f0e9;
  color: #1d4d32;
}

.form-status.err {
  display: block;
  background: #f6e8e3;
  color: #8a3c22;
}

/* ───────────────────────── article ───────────────────────── */

.article-head {
  padding: clamp(56px, 8vw, 100px) 0 0;
}

.article-head .wrap {
  max-width: 760px;
}

.article-head h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  margin-top: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) 32px 0;
}

.article p {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink-2);
  margin-top: 22px;
}

.article > p:first-child {
  margin-top: 0;
}

.article h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  margin-top: 52px;
}

.article h3 {
  font-size: 24px;
  margin-top: 36px;
}

.article ul,
.article ol {
  margin-top: 20px;
  padding-left: 24px;
  color: var(--ink-2);
}

.article ul li,
.article ol li {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.7;
  padding-left: 4px;
}

.article ul {
  list-style: none;
  padding-left: 0;
}

.article ul li {
  position: relative;
  padding-left: 22px;
}

.article ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--copper);
}

.article blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--copper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}

.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.article p code {
  background: var(--paper-soft);
  padding: 2px 5px;
  border-radius: 4px;
}

.article pre {
  margin: 26px 0 4px;
  padding: 22px;
  background: var(--ink);
  color: #e8e4d8;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}

.article pre code {
  font-size: 13.5px;
}

.article-foot {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 28px 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* ───────────────────────── careers ───────────────────────── */

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

.role-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.role-row h3 {
  font-size: 24px;
}

.role-row p {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 4px;
}

.role-row .tagline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}

/* ───────────────────────── 404 ───────────────────────── */

.lost {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.lost h1 {
  font-size: clamp(64px, 12vw, 150px);
  line-height: 0.9;
  color: var(--pine);
}

.lost p {
  margin: 24px 0 32px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 17px;
}

/* ───────────────────────── entrance ───────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 0.18s;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 0.24s;
}

/* Content is visible by default; .reveal is a no-op kept for markup hooks. */
.reveal {
  opacity: 1;
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 1040px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .foot-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 22px;
  }

  .head-inner {
    height: 68px;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    z-index: 99;
    margin: 0;
    padding: 26px 22px 34px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    font-size: 18px;
    padding: 12px 0;
    width: 100%;
  }

  .nav a::after {
    display: none;
  }

  .head-cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px 26px 40px;
    border-radius: 22px;
  }

  .hero-art {
    min-height: 320px;
    margin-top: 6px;
  }

  .hero-meta {
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 40px;
  }

  .hero h1 {
    max-width: 100%;
  }

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

  .work-card.wide {
    flex-direction: column;
  }

  .work-card.wide .work-visual {
    flex: none;
    min-height: 260px;
  }

  .step,
  .service-row,
  .about-grid,
  .contact-grid,
  .case {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-side {
    position: static;
  }

  .post-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post-row .cat {
    justify-self: start;
  }

  .step {
    gap: 10px;
  }

  .step p {
    max-width: 100%;
  }

  .principles,
  .team-roles {
    grid-template-columns: 1fr 1fr;
  }

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

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .metric {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0;
  }

  .metric:first-child {
    border-top: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

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

@media (max-width: 620px) {
  .cards,
  .insights-grid,
  .principles,
  .team-roles {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-col:last-child {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    flex-direction: column;
  }

  .article-foot {
    flex-direction: column;
  }

  .role-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .status-card {
    width: 100%;
  }

  .hero-meta strong {
    font-size: 21px;
  }

  .clients-row {
    gap: 12px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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