/* ─────────────────────────────────────────────────────────────────────────
   Paweł Skarbek — personal site
   Editorial, cream paper, charcoal ink, amber accent.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --paper:    #f3ede2;
  --paper-2:  #ece5d6;
  --ink:      #1a1815;
  --ink-2:    #2a2722;
  --muted:    #6b665d;
  --muted-2:  #8c867a;
  --rule:     rgba(26, 24, 21, 0.14);
  --rule-2:   rgba(26, 24, 21, 0.08);
  --accent:   #e8722d;
  --accent-2: oklch(from var(--accent) calc(l - 0.06) c h);

  --display: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif:   "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sans:    "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max:    1440px;
  --rail:   88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture — two-stop vignette so the cream feels printed */
body {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 247, 232, 0.7) 0%, transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(232, 219, 196, 0.5) 0%, transparent 55%),
    var(--paper);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #fff8; }

/* ── Common primitives ──────────────────────────────────────────────────── */

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  color: var(--ink);
  font-weight: 500;
  transition: color .2s, border-color .2s;
}
.inline-link:hover { color: var(--accent); border-color: var(--accent); }
.inline-link span:last-child { transition: transform .2s; }
.inline-link:hover span:last-child { transform: translateX(3px); }

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

.section {
  position: relative;
  padding: clamp(80px, 9vw, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid var(--rule-2);
}

.sec-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-head-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
  align-self: start;
}
.sec-head-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.sec-head-title em {
  font-style: normal;
  color: var(--accent);
}

/* ── Nav ────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding .25s, background .25s, backdrop-filter .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--rule-2);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Lang switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.lang-opt {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
  text-transform: uppercase;
  font-weight: 500;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-on { color: var(--ink); }
.lang-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--accent);
  margin: 0 2px;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  /* tiny optical adjustment so PS sits visually centered next to the separator */
  padding-top: 1px;
}
.nav-sep {
  display: inline-block;
  width: 1.5px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.nav-mark-name { font-weight: 500; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.nav-mark-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.nav.is-dense .nav-mark-role { display: none; }
@media (max-width: 1100px) { .nav-mark-role { display: none; } }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
}
.nav-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 2px;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-no {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
@media (max-width: 860px) { .nav-links { display: none; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(140px, 16vw, 220px) var(--gutter) clamp(96px, 11vw, 160px);
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-rail { flex-direction: row; flex-wrap: wrap; gap: 14px; border-top: 0; padding-top: 0; }
}

.hero-body { max-width: 1100px; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(24px, 4vw, 40px);
}

.hero-brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.3vw, 6px);
}
.hero-brand-first,
.hero-brand-last {
  display: block;
  font-weight: 500;
  font-style: normal;
}
.hero-brand-dot {
  color: var(--accent);
  display: inline-block;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(24px, 3.2vw, 40px) 0 clamp(24px, 3vw, 36px);
}
.hero-role-rule {
  height: 1px;
  width: clamp(40px, 6vw, 96px);
  background: var(--ink);
  flex-shrink: 0;
}

.hero-tagline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  max-width: 1100px;
  text-wrap: balance;
}
.hero-tagline .hl-em {
  display: inline;
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}

.hero-footer {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .hero-footer { grid-template-columns: 1fr; align-items: start; } }

.hero-sub {
  max-width: 580px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ── Positioning ────────────────────────────────────────────────────────── */

.positioning {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.positioning-label {
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  display: inline-block;
}
.positioning-text {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.positioning-quote {
  color: var(--accent);
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  margin: 0 0.06em;
}
@media (max-width: 700px) { .positioning { grid-template-columns: 1fr; } }

/* ── About ──────────────────────────────────────────────────────────────── */

.section-about .about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 880px) { .section-about .about-grid { grid-template-columns: 1fr; } }

.about-side dl { margin: 0; }
.about-side dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-2);
}
.about-side dl > div:first-child { border-top: 1px solid var(--ink); }
.about-side dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}
.about-side dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.4;
}

.about-body {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.about-p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about-p-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.about-body .name-accent {
  color: var(--accent);
  font-weight: 500;
}
.about-body .inline-link { margin-top: 10px; align-self: flex-start; }

/* ── Services ───────────────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s;
  position: relative;
}
.svc-card:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.svc-card:nth-child(3n) { border-right: 0; }
@media (max-width: 980px) {
  .svc-card { border-right: 1px solid var(--rule-2); }
  .svc-card:nth-child(3n) { border-right: 1px solid var(--rule-2); }
  .svc-card:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .svc-card { border-right: 0 !important; }
}

.svc-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 4px; }
.svc-head h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
.svc-desc { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.svc-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-bullets li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.svc-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ── Case studies ───────────────────────────────────────────────────────── */

.cases {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.case {
  border-bottom: 1px solid var(--rule);
}
.case-head {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 32px 4px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: padding .3s;
}
.case-head:hover { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.case.is-open .case-head { padding-bottom: 16px; }
.case-head-no { padding-top: 8px; }
.case-cat { display: block; margin-bottom: 8px; }
.case-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
  max-width: 880px;
  transition: color .25s;
}
.case-head:hover .case-title { color: var(--accent); }
.case-head-aff {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
}
.case-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transition: background .2s, color .2s;
}
.case.is-open .case-plus { background: var(--ink); color: var(--paper); }

.case-body {
  padding: 0 4px 40px calc(56px + clamp(16px, 3vw, 40px));
  display: grid;
  gap: 28px;
  max-width: 1100px;
  animation: caseIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes caseIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.case-summary {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  max-width: 820px;
  text-wrap: pretty;
}
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 56px;
}
@media (max-width: 760px) { .case-meta-grid { grid-template-columns: 1fr; gap: 22px; } }
.case-meta-grid > div { display: flex; flex-direction: column; gap: 8px; }
.case-meta-grid p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.case-outcome {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-outcome li {
  color: var(--ink-2);
  font-size: 15.5px;
  padding-left: 18px;
  position: relative;
}
.case-outcome li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 10px; height: 1px;
  background: var(--accent);
}
.case-tags {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-tags li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .case-head { grid-template-columns: 36px 1fr auto; gap: 14px; }
  .case-head-aff { padding-top: 4px; justify-self: end; }
  .case-body { padding-left: 4px; }
}

/* ── Leadership ─────────────────────────────────────────────────────────── */

.pull-quote {
  margin: 0 0 clamp(48px, 6vw, 72px);
  max-width: 1200px;
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.pull-quote blockquote em {
  font-style: normal;
  color: var(--accent);
}
.quote-mark {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.05em;
  margin-right: 0.08em;
}
.pull-quote figcaption {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-body p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}
.lead-setup ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lead-setup li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--rule-2);
}
.lead-setup li:first-child { border-top: 1px solid var(--ink); }
.lead-setup li strong {
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.005em;
}
.lead-setup li span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
@media (max-width: 1100px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }
.principles li {
  padding: 40px 24px 36px 24px;
  border-right: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.principles li:first-child { padding-left: 0; }
.principles li:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 1100px) {
  .principles li { padding-left: 24px; padding-right: 24px; }
  .principles li:nth-child(2n) { border-right: 0; padding-right: 0; }
  .principles li:nth-child(2n+1) { border-right: 1px solid var(--rule-2); padding-left: 0; }
}
@media (max-width: 600px) {
  .principles li { padding-left: 0; padding-right: 0; border-right: 0; }
}
.principles h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}
.principles p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ── Tech ───────────────────────────────────────────────────────────────── */

.tech-intro {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 clamp(40px, 5vw, 64px);
  max-width: 920px;
  text-wrap: pretty;
}

.tech-groups {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}
.tech-group {
  display: grid;
  grid-template-columns: 280px 1.2fr 1.4fr;
  gap: clamp(16px, 3vw, 48px);
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 980px) { .tech-group { grid-template-columns: 1fr; gap: 14px; } }
.tech-group-head { display: flex; align-items: baseline; gap: 14px; }
.tech-group-head h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.tech-group > p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 540px;
}
.tech-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
@media (max-width: 980px) { .tech-items { justify-content: flex-start; } }
.tech-items li {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--paper) 60%, white 10%);
  transition: border-color .2s, color .2s, background .2s;
}
.tech-items li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.section-contact {
  padding: clamp(100px, 11vw, 180px) var(--gutter) clamp(80px, 9vw, 140px);
}
.contact-inner { max-width: 1280px; }
.contact-kicker { display: inline-block; padding-top: 12px; border-top: 1px solid var(--ink); margin-bottom: 32px; }

.contact-grid-main {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 980px) { .contact-grid-main { grid-template-columns: 1fr; gap: 56px; } }

.contact-lead { min-width: 0; }

.contact-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.contact-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 560px;
  text-wrap: pretty;
}

.contact-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.contact-email-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.contact-email-link {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  padding: 6px 0;
}
.contact-email-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.contact-email-addr {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  transition: color .2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-email-link:hover .contact-email-addr { color: var(--accent); }
.contact-copy-icon {
  appearance: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s, background .2s, transform .15s;
  flex-shrink: 0;
}
.contact-copy-icon:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}
.contact-copy-icon:active { transform: scale(.94); }
.contact-copy-icon svg { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.contact-grid > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-2);
  align-items: baseline;
}
.contact-grid p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ── Contact form ───────────────────────────────────────────────────────── */

.contact-form-wrap {
  position: relative;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 60%),
    color-mix(in oklab, var(--paper) 92%, white 8%);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 40px -24px rgba(26,24,21,.18);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--rule-2); }
.cf-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
  text-wrap: pretty;
}

.cf-fields { display: flex; flex-direction: column; gap: 18px; }

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.cf-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.cf-field input,
.cf-field textarea {
  font: inherit;
  font-family: var(--display);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 10px;
  width: 100%;
  outline: none;
  resize: vertical;
  transition: border-color .2s, color .2s;
  letter-spacing: -0.005em;
}
.cf-field textarea {
  min-height: 96px;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--muted-2);
  font-weight: 400;
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-bottom-color: var(--ink);
}
.cf-field.is-invalid input,
.cf-field.is-invalid textarea {
  border-bottom-color: var(--accent);
}

.cf-err {
  position: absolute;
  right: 0;
  bottom: 100%;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 4px;
}

.cf-topic .cf-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding-top: 4px;
}
.cf-chip {
  appearance: none;
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px;
  flex: 1 1 0;
  text-align: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.cf-chip:hover { border-color: var(--ink); color: var(--ink); }
.cf-chip.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.cf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 8px;
}
.cf-fine {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-form .btn-primary[disabled] { opacity: .55; pointer-events: none; }

.cf-sent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0 4px;
}
.cf-sent p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.cf-sent a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.cf-sent .btn { align-self: flex-start; margin-top: 4px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--ink);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-mark { display: flex; flex-direction: column; gap: 6px; }
.footer-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.footer-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.footer-meta a:hover { color: var(--accent); }
.footer-rule { height: 1px; background: var(--rule-2); margin: 32px 0; }
.footer-row-small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

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

/* ── Scroll progress bar ────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}
.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-p, 0));
  transition: transform .08s linear;
}

/* ── Reveal / entrance animations ───────────────────────────────────────── */

/* Section-level reveal — fade-up triggered by IntersectionObserver via the
   `is-in` class. The `.reveal` base hides until shown; the contact section
   uses .reveal-instant which skips the observer (form should be ready). */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Section header — fade + slight slide from left edge, replays on scroll */
.reveal .sec-head-meta,
.reveal .sec-head-title {
  opacity: 0;
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .85s cubic-bezier(.2,.7,.2,1);
  transition-delay: .08s;
}
.reveal .sec-head-meta  { transform: translateX(-24px); }
.reveal .sec-head-title { transform: translateX(-44px); transition-delay: .18s; }
.reveal.is-in .sec-head-meta,
.reveal.is-in .sec-head-title { opacity: 1; transform: translateX(0); }

/* Contact section — headline slides from the edge like sec-head-title */
.reveal .contact-kicker,
.reveal .contact-headline,
.reveal .contact-sub {
  opacity: 0;
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .85s cubic-bezier(.2,.7,.2,1);
}
.reveal .contact-kicker   { transform: translateX(-20px); transition-delay: .08s; }
.reveal .contact-headline { transform: translateX(-44px); transition-delay: .18s; }
.reveal .contact-sub      { transform: translateY(10px); transition-delay: .30s; }
.reveal.is-in .contact-kicker,
.reveal.is-in .contact-headline,
.reveal.is-in .contact-sub { opacity: 1; transform: none; }

/* Leadership pull-quote — single mark slide from the left */
.reveal .pull-quote {
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity .8s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: .22s;
}
.reveal.is-in .pull-quote { opacity: 1; transform: translateX(0); }

/* Stagger immediate children of these specific grids/lists for a subtle
   cascade. Limited to the first ~8 children so the math doesn't get silly. */
.reveal .services-grid > *,
.reveal .principles > *,
.reveal .tech-groups > *,
.reveal .cases > *,
.reveal .lead-grid > *,
.reveal .about-grid > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in .services-grid > :nth-child(1),
.reveal.is-in .principles > :nth-child(1),
.reveal.is-in .tech-groups > :nth-child(1),
.reveal.is-in .cases > :nth-child(1),
.reveal.is-in .lead-grid > :nth-child(1),
.reveal.is-in .about-grid > :nth-child(1) { transition-delay: .24s; opacity: 1; transform: translateY(0); }
.reveal.is-in .services-grid > :nth-child(2),
.reveal.is-in .principles > :nth-child(2),
.reveal.is-in .tech-groups > :nth-child(2),
.reveal.is-in .cases > :nth-child(2),
.reveal.is-in .lead-grid > :nth-child(2),
.reveal.is-in .about-grid > :nth-child(2) { transition-delay: .32s; opacity: 1; transform: translateY(0); }
.reveal.is-in .services-grid > :nth-child(3),
.reveal.is-in .principles > :nth-child(3),
.reveal.is-in .tech-groups > :nth-child(3),
.reveal.is-in .cases > :nth-child(3) { transition-delay: .40s; opacity: 1; transform: translateY(0); }
.reveal.is-in .services-grid > :nth-child(4),
.reveal.is-in .principles > :nth-child(4),
.reveal.is-in .tech-groups > :nth-child(4),
.reveal.is-in .cases > :nth-child(4) { transition-delay: .48s; opacity: 1; transform: translateY(0); }
.reveal.is-in .services-grid > :nth-child(n+5),
.reveal.is-in .principles > :nth-child(n+5),
.reveal.is-in .tech-groups > :nth-child(n+5),
.reveal.is-in .cases > :nth-child(n+5) { transition-delay: .56s; opacity: 1; transform: translateY(0); }

/* Positioning marquee — single-element fade in */
.reveal.positioning .positioning-text { opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s; transition-delay: .08s; }
.reveal.positioning.is-in .positioning-text { opacity: 1; transform: translateY(0); }

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

/* Transition-based, replayable. .hero gets .is-in via useReveal — toggling
   it animates the cascade forward; scrolling away removes it and scrolling
   back replays. */
.hero .hero-rail .mono-label,
.hero .hero-kicker,
.hero .hero-brand-first,
.hero .hero-brand-last,
.hero .hero-role,
.hero .hero-tagline,
.hero .hero-sub,
.hero .hero-ctas {
  transition:
    opacity .55s cubic-bezier(.2,.7,.2,1),
    transform .6s cubic-bezier(.2,.7,.2,1);
}

/* Hidden state — only when .is-in is NOT on the hero */
.hero:not(.is-in) .hero-rail .mono-label,
.hero:not(.is-in) .hero-kicker,
.hero:not(.is-in) .hero-role,
.hero:not(.is-in) .hero-sub,
.hero:not(.is-in) .hero-ctas {
  opacity: 0;
  transform: translateY(8px);
}
.hero:not(.is-in) .hero-brand-first,
.hero:not(.is-in) .hero-brand-last,
.hero:not(.is-in) .hero-tagline {
  opacity: 0;
  transform: translateX(-28px);
}

/* Staggered transition delays — applied only on the way IN (i.e. when
   .is-in becomes present). Exit (scrolling away) plays without delays so
   everything fades out together. */
.hero.is-in .hero-rail .mono-label:nth-child(1) { transition-delay: .04s; }
.hero.is-in .hero-rail .mono-label:nth-child(2) { transition-delay: .08s; }
.hero.is-in .hero-rail .mono-label:nth-child(3) { transition-delay: .12s; }
.hero.is-in .hero-kicker      { transition-delay: .04s; }
.hero.is-in .hero-brand-first { transition-delay: .10s; }
.hero.is-in .hero-brand-last  { transition-delay: .18s; }
.hero.is-in .hero-role        { transition-delay: .30s; }
.hero.is-in .hero-tagline     { transition-delay: .36s; }
.hero.is-in .hero-sub         { transition-delay: .42s; }
.hero.is-in .hero-ctas        { transition-delay: .48s; }

/* Accent rule under role */
.hero-role-rule {
  transform-origin: 0 50%;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.hero:not(.is-in) .hero-role-rule { transform: scaleX(0); }
.hero.is-in .hero-role-rule       { transition-delay: .32s; }

/* Accent dot after surname */
.hero-brand-dot {
  transition:
    opacity .45s cubic-bezier(.3,.7,.4,1.4),
    transform .5s cubic-bezier(.3,.7,.4,1.5);
}
.hero:not(.is-in) .hero-brand-dot { opacity: 0; transform: scale(0.4); }
.hero.is-in .hero-brand-dot       { transition-delay: .38s; }

/* ── Plus icon flip on case open ─────────────────────────────────────────── */

.case-plus {
  transition: background .25s, color .25s;
}
.case.is-open .case-plus { background: var(--ink); color: var(--paper); }
