/* ==========================================================================
   rutkow.ski — light / blue-teal technical leadership theme
   ========================================================================== */

:root {
  /* surfaces */
  --bg:        #f4f8fb;
  --bg-wash:   #eaf3f7;
  --surface:   #ffffff;
  --surface-2: #fbfdfe;

  /* ink */
  --ink:    #0a1c2b;
  --ink-2:  #35566c;
  --ink-3:  #6b8ca3;

  /* brand */
  --blue:      #0a6ea8;
  --blue-deep: #084c74;
  --blue-soft: #d9ecf6;
  --teal:      #0d8f8a;
  --teal-soft: #d5f0ec;
  --accent:    #14b8a6;

  /* lines + shadow */
  --line:      #dbe9f1;
  --line-2:    #c6dced;
  --shadow-sm: 0 1px 2px rgba(10,60,90,.06), 0 2px 6px rgba(10,60,90,.05);
  --shadow-md: 0 2px 4px rgba(10,60,90,.05), 0 10px 28px -8px rgba(10,60,90,.16);
  --shadow-lg: 0 4px 8px rgba(10,60,90,.05), 0 24px 56px -16px rgba(10,60,90,.22);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }   /* keep aspect ratio when width/height attrs are present */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 640; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--wash { background: linear-gradient(180deg, var(--bg-wash), var(--bg)); border-block: 1px solid var(--line); }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 2px;
}
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head p { margin-top: 14px; font-size: 17.5px; color: var(--ink-2); }

.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; color: var(--ink-2); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,248,251,.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 16px rgba(10,60,90,.06); }
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-size: 16.5px; }
.brand__name span { color: var(--ink-3); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a:not(.btn) {
  display: block; padding: 8px 13px; border-radius: 8px;
  font-size: 15px; font-weight: 520; color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.nav__links a:not(.btn):hover { background: var(--blue-soft); color: var(--blue-deep); }
.nav__links a[aria-current="page"]:not(.btn) { color: var(--blue-deep); background: var(--blue-soft); }

.nav__toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-x { display: none; }
.nav__toggle[aria-expanded="true"] .icon-x { display: block; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; inset: 68px 0 auto; display: none; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav__links .btn { justify-content: center; margin-top: 6px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 15.5px; font-weight: 580; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; box-shadow: 0 1px 2px rgba(8,76,116,.2), 0 8px 20px -8px rgba(13,143,138,.55);
}
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(8,76,116,.2), 0 14px 28px -10px rgba(13,143,138,.6); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { color: var(--blue-deep); border-color: var(--blue); transform: translateY(-1px); }
.btn--sm { padding: 9px 15px; font-size: 14.5px; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 570; font-size: 15.5px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 108px) clamp(48px, 7vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(46% 52% at 78% 18%, rgba(20,184,166,.20), transparent 70%),
    radial-gradient(48% 55% at 12% 6%, rgba(10,110,168,.17), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,110,168,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,110,168,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 26%, #000 20%, transparent 78%);
          mask-image: radial-gradient(72% 62% at 50% 26%, #000 20%, transparent 78%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0,1fr); } }

.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  letter-spacing: -.035em; margin-top: 20px; font-weight: 680;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue), var(--teal) 62%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 22px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; list-style: none; }
.hero__meta li {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 13px;
  box-shadow: var(--shadow-sm);
}

/* hero panel */
.hero__panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero__panel-top {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.hero__panel-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hero__panel-top .dot:nth-child(1) { background: #f2b8b5; }
.hero__panel-top .dot:nth-child(2) { background: #f7d9a0; }
.hero__panel-top .dot:nth-child(3) { background: #a9dfc8; }
.hero__panel-top span { margin-left: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.hero__panel-body {
  padding: 18px 20px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.85;
  color: var(--ink-2); overflow-x: auto; -webkit-overflow-scrolling: touch;
}
@media (max-width: 520px) { .hero__panel-body { font-size: 11.5px; padding: 14px 16px 16px; } }
.hero__panel-body .k { color: var(--blue); }
.hero__panel-body .s { color: var(--teal); }
.hero__panel-body .c { color: var(--ink-3); }
.hero__panel-body .n { color: #b4530a; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0,1fr); } }
.stat { background: var(--surface); padding: 22px 20px; }
.stat__num { font-size: clamp(24px, 3vw, 32px); font-weight: 660; color: var(--ink); letter-spacing: -.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .55em; color: var(--teal); font-weight: 600; margin-left: 2px; }
.stat__label { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 660px) { .grid--2, .grid--3 { grid-template-columns: minmax(0,1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal-soft));
  color: var(--blue-deep); margin-bottom: 18px; border: 1px solid var(--line-2);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; }
.card p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; }
.card ul { margin-top: 14px; list-style: none; display: grid; gap: 8px; }
.card ul li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.card ul li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: linear-gradient(135deg, var(--blue), var(--teal));
}

/* ---------- cayley feature ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.18fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}
@media (max-width: 880px) { .feature { grid-template-columns: minmax(0,1fr); } }
.feature h2 { font-size: clamp(25px, 3.2vw, 34px); margin-top: 14px; }
.feature p { margin-top: 16px; }
.feature__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; }
.feature__tags li {
  font-size: 13px; font-weight: 550; padding: 6px 12px; border-radius: 999px;
  background: var(--bg-wash); color: var(--blue-deep); border: 1px solid var(--line-2);
}

/* ---------- timeline ---------- */
.timeline { list-style: none; position: relative; margin-top: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--blue) 55%, var(--line));
  border-radius: 2px;
}
.tl { position: relative; padding: 0 0 30px 38px; }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl--now::before { border-color: var(--teal); background: var(--teal); }
.tl__when { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .01em; }
.tl__role { font-size: 18px; font-weight: 620; color: var(--ink); margin-top: 4px; letter-spacing: -.02em; }
.tl__org { font-size: 15px; color: var(--blue); font-weight: 550; }
.tl__org .place { color: var(--ink-3); font-weight: 400; }
.tl__body { margin-top: 10px; font-size: 15.5px; max-width: 62ch; }

/* ---------- project cards ---------- */
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  transition: box-shadow .25s ease, border-color .2s ease;
}
.project:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.project + .project { margin-top: 26px; }
.project--flip .project__art { order: 2; }
@media (max-width: 900px) {
  .project { grid-template-columns: minmax(0,1fr); }
  .project--flip .project__art { order: 0; }
}
.project__art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,110,168,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,110,168,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(78% 70% at 50% 50%, #000 25%, transparent 82%);
          mask-image: radial-gradient(78% 70% at 50% 50%, #000 25%, transparent 82%);
}
.project__art > * { position: relative; z-index: 1; }
.project__art {
  position: relative; background: linear-gradient(150deg, var(--bg-wash), #e2eff5);
  display: grid; place-items: center; padding: 26px; min-height: 260px;
  border-right: 1px solid var(--line);
}
.project--flip .project__art { border-right: 0; border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .project__art, .project--flip .project__art { border: 0; border-bottom: 1px solid var(--line); min-height: 200px; }
}
.project__art img, .project__art svg { width: 100%; height: auto; border-radius: 10px; }
.project__art figure { margin: 0; width: 100%; }
.project__art figcaption {
  margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  text-align: center; line-height: 1.5;
}
.project__body { padding: clamp(26px, 3vw, 38px); }
.project__kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  line-height: 1.5;
}
.project__kicker .org { color: var(--teal); font-weight: 600; }
.project__body h3, .project__inner h3 { font-size: clamp(21px, 2.4vw, 26px); margin-top: 14px; }
.project__body > p, .project__inner > div > p { margin-top: 14px; font-size: 16px; }
.project__points { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.project__points li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; }
.project__points li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

/* readings table (tankbots) */
.readings { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; margin-top: 20px; }
@media (max-width: 460px) { .readings { grid-template-columns: minmax(0,1fr); } }
.readings li { background: var(--surface-2); padding: 14px 16px; }
.readings b { display: block; font-family: var(--mono); font-size: clamp(16px, 2vw, 19px); color: var(--ink);
  font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.readings span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

/* reference links */
.refs { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.refs__title {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.refs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.ref {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px 8px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 540; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ref:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--blue-deep); background: var(--surface-2); box-shadow: var(--shadow-md); }
.ref__glyph {
  width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal-soft));
  color: var(--blue-deep); font-family: var(--mono); font-size: 11px; font-weight: 700;
  border: 1px solid var(--line-2);
}
.ref__glyph svg { width: 14px; height: 14px; }
.ref__text { display: flex; flex-direction: column; line-height: 1.25; }
.ref__text small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 400; }
.ref__out { width: 13px; height: 13px; color: var(--ink-3); flex: none; margin-left: 2px; }

/* ---------- consulting ---------- */
.svc { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 20px; align-items: start; }
.svc__num {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff;
  font-family: var(--mono); font-size: 17px; font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(13,143,138,.6);
}
.svc h3 { font-size: 20px; }
.svc p, .svc .brief { max-width: 74ch; }
.svc > div > p { margin-top: 12px; }
@media (max-width: 520px) { .svc { grid-template-columns: minmax(0,1fr); gap: 14px; } }

.steps { list-style: none; counter-reset: s; display: grid; gap: 2px; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 20px 18px 60px;
  background: var(--surface); border: 1px solid var(--line); font-size: 15.5px;
}
.steps li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.steps li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.steps li + li { border-top: 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--teal);
}
.steps b { color: var(--ink); font-weight: 620; display: block; margin-bottom: 2px; }

.fit { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 660px) { .fit { grid-template-columns: minmax(0,1fr); } }
.fit__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fit__col h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.fit__col h3 svg { width: 19px; height: 19px; flex: none; }
.fit__col ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.fit__col li { font-size: 15px; padding-left: 22px; position: relative; line-height: 1.5; }
.fit__col li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 2px; }
.fit--yes h3 { color: var(--teal); }
.fit--yes li::before { background: var(--teal); }
.fit--no h3 { color: var(--ink-3); }
.fit--no li::before { background: var(--ink-3); opacity: .5; }

/* contact block */
.contact {
  background: linear-gradient(140deg, #0a3c5c, #0a6ea8 48%, #0d8f8a);
  border-radius: var(--radius-lg); padding: clamp(30px, 4.5vw, 54px);
  color: #dff0f7; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 72%);
          mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 72%);
}
.contact > * { position: relative; z-index: 1; }
.contact h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.contact .eyebrow { color: #93e8dc; }
.contact .eyebrow::before { background: linear-gradient(90deg, #93e8dc, rgba(147,232,220,.2)); }
.contact p { margin-top: 16px; max-width: 56ch; color: #d3e9f3; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact .btn--primary { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.contact .btn--primary:hover { color: var(--blue-deep); background: #f2fbfd; }
.contact .btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); box-shadow: none; }
.contact .btn--ghost:hover { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.contact__note { margin-top: 22px; font-size: 13.5px; color: rgba(224,242,250,.72); font-family: var(--mono); }

/* brief list */
.brief { list-style: none; display: grid; gap: 11px; margin-top: 18px; }
.brief li { position: relative; padding-left: 26px; font-size: 15.5px; }
.brief li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 44px 36px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: minmax(0,1.25fr) repeat(3, minmax(0,1fr)); gap: 32px; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .footer__brand { grid-column: 1 / -1; } }
.footer__brand p { margin-top: 12px; font-size: 14.5px; max-width: 34ch; color: var(--ink-3); }
.footer h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.footer ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.footer ul a { font-size: 15px; color: var(--ink-2); }
.footer ul a:hover { color: var(--blue); }
.footer__base {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--ink-3);
}
.footer__base .mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .6s cubic-bezier(.2,.7,.3,1), translate .6s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; } }

/* ---------- page header (subpages) ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 84px) clamp(32px, 4vw, 48px); }
.page-head::before {
  content: ""; position: absolute; inset: -60% -10% auto -10%; height: 160%;
  background: radial-gradient(42% 50% at 75% 22%, rgba(20,184,166,.17), transparent 70%),
              radial-gradient(46% 52% at 15% 10%, rgba(10,110,168,.15), transparent 70%);
  pointer-events: none;
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(32px, 4.8vw, 50px); margin-top: 18px; letter-spacing: -.035em; }
.page-head .lead { margin-top: 20px; max-width: 60ch; }

/* ---------- featured project ---------- */
.project--featured { grid-template-columns: minmax(0,1fr); }
.project--featured .project__art {
  border-right: 0; border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px); min-height: 0;
  background: linear-gradient(150deg, #e6f2f8, #dcedf4);
}
.project--featured .project__art img { max-width: 880px; margin-inline: auto; box-shadow: var(--shadow-md); }
.project--featured .project__inner {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: clamp(24px, 3.5vw, 48px); padding: clamp(26px, 3vw, 40px);
}
@media (max-width: 880px) { .project--featured .project__inner { grid-template-columns: minmax(0,1fr); } }

.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}

/* jump nav */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 30px; }
.jump a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 540;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}
.jump a:hover { border-color: var(--teal); color: var(--blue-deep); transform: translateY(-2px); }

/* anchor offset under sticky header */
[id] { scroll-margin-top: 88px; }

/* ---------- inquiry panel ---------- */
.form__note { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.form__panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-md);
}
.contact-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.72fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .contact-split { grid-template-columns: minmax(0,1fr); } }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card + .contact-card { margin-top: 16px; }
.contact-card h3 { font-size: 16px; }
.contact-card p { margin-top: 8px; font-size: 15px; }
.contact-card a { font-weight: 550; }


/* ---------- sticky two-column split (trajectory) ---------- */
.split-sticky {
  display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (max-width: 900px) { .split-sticky { grid-template-columns: minmax(0,1fr); gap: 8px; } }
.split-sticky__aside { position: sticky; top: 96px; align-self: start; }
.split-sticky__aside .section-head { margin-bottom: 0; }
@media (max-width: 900px) {
  .split-sticky__aside { position: static; }
  .split-sticky__aside .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
}
.split-sticky .tl__body { max-width: none; }

/* line breaks that only make sense once the headline has room */
.br-lg { display: none; }
@media (min-width: 760px) { .br-lg { display: inline; } }

/* ---------- video embed ---------- */
.embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #062a3d; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line-2);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@supports not (aspect-ratio: 16 / 9) {
  .embed { height: 0; padding-bottom: 56.25%; }
}

/* ---------- photographic project art ---------- */
.project__art--photo { display: block; padding: 0; }
.project__art--photo::before { display: none; }
.project__art--photo figure { height: 100%; display: flex; flex-direction: column; margin: 0; }
.project__art--photo picture { display: block; flex: 1; min-height: 250px; position: relative; }
.project__art--photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block;
}
.project__art--photo figcaption {
  margin: 0; padding: 13px 22px 15px; text-align: left;
  background: var(--surface); border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .project__art--photo picture { min-height: 220px; } }

/* ---------- stat bar: range value ---------- */
.stat__num--range {
  font-size: clamp(14px, 1.5vw, 19px); line-height: 1.35; letter-spacing: -.01em;
  white-space: nowrap;
}
.stat__num--range i { font-style: normal; color: var(--teal); padding: 0 3px; }


/* ---------- flagship: break the card out of the container on wide screens ---------- */
@media (min-width: 1280px) {
  .project--flagship {
    --flagship-w: min(1480px, calc(100vw - 96px));
    width: var(--flagship-w);
    margin-inline: calc((100% - var(--flagship-w)) / 2);
  }
  /* keep the prose at a readable measure even though the card is wider */
  .project--flagship .project__inner > div > p,
  .project--flagship .project__points { max-width: 68ch; }
}
.project--flagship .project__art .embed { max-width: 1400px; margin-inline: auto; }
.project--flagship .project__art figcaption { max-width: 76ch; margin-inline: auto; }

/* ---------- home: video showcase gets the full card width ---------- */
.feature--stack { grid-template-columns: minmax(0,1fr); align-items: start; }
.feature--stack > :first-child { max-width: 74ch; }
.feature--stack .embed { width: 100%; }

/* routing label under a footer contact address */
.footer ul .muted {
  display: block; margin-top: 2px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); line-height: 1.4;
}
