/* ==========================================================================
   Starmines Consulting — starmines.co.uk

   Layout concept: colour blocks on a white sheet. The boxes of an IT
   architecture diagram, made cheerful. Square corners, a strict grid, flat
   colour, 2px ink rules. The mosaic is the one loud element; everything
   around it is ink on white.

   Colour carries meaning:
     cobalt = build     coral = staff     mint = run
     sun    = advise / highlight          pink = spare block
   ========================================================================== */

:root {
  --ink: #16132d;
  --ink-2: #4a4763;
  --ink-3: #6a6784;
  --white: #ffffff;
  --fog: #f3f2f7;
  --rule: #dcdae6;

  --cobalt: #2a3ffb;
  --coral: #ff6a3d;
  --mint: #1fcb8f;
  --sun: #ffc933;
  --pink: #ff90d0;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --gem: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);   /* a square block turned 45 degrees: the brand's star */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--sun); color: var(--ink); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -70px; z-index: 300; background: var(--sun); color: var(--ink); padding: 12px 18px; font: 700 15px var(--display); text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---- colour contexts ----------------------------------------------------- */
.section, .hero, .site-footer { --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); --line: var(--rule); --edge: var(--ink); --mark: var(--sun); --gold: var(--cobalt); --bg: var(--white); }
.section--tint { --bg: var(--fog); }
.section--deep, .section--cobalt { --fg: var(--white); --fg-2: rgba(255,255,255,.84); --fg-3: rgba(255,255,255,.7); --line: rgba(255,255,255,.3); --edge: var(--white); --gold: var(--sun); }
.section--deep { --bg: var(--ink); }
.section--cobalt { --bg: var(--cobalt); }
.section--sun { --bg: var(--sun); --fg-2: #37334d; --fg-3: #4a4660; --line: rgba(22,19,45,.3); --mark: var(--white); }

/* ---- type ---------------------------------------------------------------- */
.eyebrow, .mono { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow { margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--coral); }
.section--deep .eyebrow::before, .section--cobalt .eyebrow::before { background: var(--sun); }
.section--sun .eyebrow::before { background: var(--ink); }
.display { font: 800 clamp(52px, 8.2vw, 116px)/.98 var(--display); letter-spacing: -.045em; color: var(--fg); }
.display--page { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.02; text-wrap: balance; }
.title { font: 800 clamp(32px, 4.2vw, 58px)/1.04 var(--display); letter-spacing: -.035em; color: var(--fg); text-wrap: balance; }
.title--sm { font-size: clamp(27px, 3vw, 40px); }
.display em, .title em { font-style: normal; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: .13em; text-underline-offset: .1em; text-decoration-skip-ink: none; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 58ch; text-wrap: pretty; }
.lede strong, .prose strong { font-weight: 700; color: var(--fg); }
.prose { color: var(--fg-2); max-width: 64ch; }
.prose p + p { margin-top: 1.1em; }
.verb { display: inline-block; padding: 0 .14em .04em; margin-left: -.05em; background: var(--cobalt); color: var(--white); transform: rotate(-1.6deg); transition: transform .3s cubic-bezier(.5,1.8,.4,1); cursor: default; }
.verb--staff { background: var(--coral); color: var(--ink); transform: rotate(1.2deg); }
.verb--run { background: var(--mint); color: var(--ink); transform: rotate(-.8deg); }
.verb:hover { transform: rotate(0) scale(1.04); }

/* ---- buttons: a text block with an arrow block bolted on ----------------- */
.btn { display: inline-flex; align-items: stretch; gap: 20px; padding: 15px 22px; font: 700 16.5px/1.25 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; color: var(--white); background: var(--ink); border: 2px solid var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn .arr { display: grid; place-items: center; width: 54px; margin: -15px -22px -15px 0; background: var(--sun); color: var(--ink); font-size: 19px; transition: background .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--coral); }
.btn:hover .arr { background: var(--coral); }
.btn:active { transform: none; box-shadow: none; }
.btn--ghost { background: var(--white); color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn--plain { font-family: var(--text); font-weight: 600; letter-spacing: 0; }
.section--deep .btn, .section--cobalt .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.section--deep .btn--ghost, .section--cobalt .btn--ghost { background: transparent; color: var(--white); }
.section--deep .btn:hover, .section--cobalt .btn:hover { box-shadow: 5px 5px 0 var(--sun); }
.section--sun .btn .arr { background: var(--white); }
.section--sun .btn:hover { box-shadow: 5px 5px 0 var(--white); }
.section--sun .btn:hover .arr { background: var(--coral); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link { display: inline-flex; align-items: center; gap: 8px; font: 700 16px var(--display); text-decoration: none; color: inherit; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link::after { content: "→"; transition: transform .2s; }
.link:hover::after { transform: translateX(5px); }

/* ---- header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px var(--pad); background: var(--white); border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
/* The logo is the name alone, with one detail: the dot of the "i" is a square
   block. The square sits over the letter's own dot, so the text stays a real
   "Starmines" for search engines, screen readers and copy and paste. */
.brand__name { font: 800 25px/1 var(--display); letter-spacing: -.045em; }
.brand__name .i { position: relative; display: inline-block; letter-spacing: 0; margin-right: -.045em; }
.brand__name .i::after { content: ""; position: absolute; left: 50%; top: .061em; width: .21em; height: .21em; background: var(--cobalt); transform: translateX(-50%); }
.section--deep .brand__name .i::after, .section--cobalt .brand__name .i::after { background: var(--sun); }
.brand__sub { font: 500 14.5px/1 var(--text); color: var(--ink-2); padding-left: 11px; border-left: 2px solid var(--ink); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { font: 600 15.5px var(--text); color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--coral); }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--ink); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; position: relative; flex: none; }
.nav-toggle span[aria-hidden], .nav-toggle span[aria-hidden]::before { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.nav-toggle span[aria-hidden] { top: 16px; }
.nav-toggle span[aria-hidden]::before { left: 0; right: 0; top: 9px; }
.nav-open .nav-toggle { background: var(--sun); }
.nav-open .nav-toggle span[aria-hidden] { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span[aria-hidden]::before { top: 0; transform: rotate(-90deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--pad) 26px; background: var(--white); border-bottom: 2px solid var(--ink); display: none; }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { font: 700 24px var(--display); letter-spacing: -.02em; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .site-nav .btn { margin-top: 22px; justify-content: space-between; }
}
@media (max-width: 360px) { .brand__sub { display: none; } }

/* ---- mosaic: the brand pattern ------------------------------------------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 1; width: 100%; }
.mosaic i { display: block; position: relative; background: var(--b, var(--ink)); transition: transform .55s cubic-bezier(.5,1.7,.4,1); }
.mosaic i::before { content: ""; position: absolute; inset: 0; background: var(--f, var(--sun)); }
.mosaic i:hover { transform: rotate(90deg); z-index: 1; }
.m-q1::before { border-radius: 100% 0 0 0; }
.m-q2::before { border-radius: 0 100% 0 0; }
.m-q3::before { border-radius: 0 0 100% 0; }
.m-q4::before { border-radius: 0 0 0 100%; }
.m-c::before { border-radius: 50%; inset: 14% !important; }
.m-h::before { border-radius: 999px 999px 0 0; inset: 50% 0 0 0 !important; }
.m-l::before { border-radius: 100% 0 100% 0; }
.m-t::before { clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.m-s::before { clip-path: var(--gem); inset: 16% !important; }
.m-d::before { inset: 30% !important; }
.m-b::before { display: none; }
.mosaic--strip { aspect-ratio: 2 / 1; }
.mosaic--row { grid-template-columns: repeat(16, 1fr); aspect-ratio: 16 / 1; }
@media (max-width: 700px) { .mosaic--row { grid-template-columns: repeat(8, 1fr); aspect-ratio: 8 / 1; } .mosaic--row i:nth-child(n+9) { display: none; } }
@keyframes pop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.mosaic--hero i { animation: pop .6s cubic-bezier(.5,1.6,.4,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }

/* ---- hero ---------------------------------------------------------------- */
.hero { background: var(--white); padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero .display span.ln { display: block; }
.hero .display span.ln + span.ln { margin-top: .07em; }
.hero .lede { margin-top: 30px; }
.hero .btn-row { margin-top: 32px; }
.hero--page { padding: clamp(40px, 5vw, 72px) 0 clamp(44px, 6vw, 80px); border-bottom: 2px solid var(--ink); }
.hero--page .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 360px); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero--page .hero__inner > * { grid-column: 1; justify-self: start; }
.hero--page .hero__inner > .mosaic { grid-column: 2; grid-row: 1 / span 3; justify-self: stretch; }
.hero__copy { max-width: 640px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid .mosaic { max-width: 440px; }
  .hero--page .hero__inner { grid-template-columns: 1fr; }
  .hero--page .hero__inner > .mosaic { grid-column: 1; grid-row: auto; margin-top: 36px; }
}
@media (max-width: 520px) { .hero .btn { width: 100%; justify-content: space-between; } }

/* ---- marquee ------------------------------------------------------------- */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; gap: 40px; padding-left: 40px; font: 700 clamp(18px, 2vw, 25px)/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee span::after { content: ""; width: 16px; height: 16px; background: var(--sun); clip-path: var(--gem); }
.marquee span:nth-child(4n+2)::after { background: var(--coral); }
.marquee span:nth-child(4n+3)::after { background: var(--mint); }
.marquee span:nth-child(4n)::after { background: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- sections ------------------------------------------------------------ */
.section { position: relative; padding: clamp(64px, 8.5vw, 120px) 0; background: var(--bg); color: var(--fg); }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.section--ruled { border-top: 2px solid var(--ink); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section__head--stack { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* ---- three pillars ------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); }
.pillar { display: flex; flex-direction: column; align-items: flex-start; min-height: 360px; padding: 28px 28px 30px; background: var(--cobalt); color: var(--white); }
.pillar + .pillar { border-left: 2px solid var(--ink); }
.pillar--staff { background: var(--coral); color: var(--ink); }
.pillar--run { background: var(--mint); color: var(--ink); }
.pillar .mono { color: var(--ink); background: var(--white); padding: 5px 9px; font-size: 12px; }
.pillar h3 { font: 800 clamp(44px, 5vw, 72px)/1 var(--display); letter-spacing: -.045em; margin: 26px 0 16px; }
.pillar p { font-size: 16.5px; line-height: 1.5; margin-bottom: 26px; max-width: 34ch; }
.pillar .link { margin-top: auto; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } .pillar + .pillar { border-left: 0; border-top: 2px solid var(--ink); } }

/* ---- practice wall ------------------------------------------------------- */
.practices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.practice { --c: var(--sun); --on: var(--ink); display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 20px 20px 18px; background: var(--white); color: var(--ink); text-decoration: none; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transition: background .2s, color .2s; }
.practice:nth-child(5n+2) { --c: var(--cobalt); --on: var(--white); }
.practice:nth-child(5n+3) { --c: var(--coral); }
.practice:nth-child(5n+4) { --c: var(--pink); }
.practice:nth-child(5n) { --c: var(--mint); }
.practice__g { width: 46px; height: 46px; margin-bottom: 14px; background: var(--c); transition: transform .45s cubic-bezier(.5,1.7,.4,1), background .2s; }
.practice:nth-child(4n+1) .practice__g { border-radius: 100% 0 0 0; }
.practice:nth-child(4n+2) .practice__g { border-radius: 50%; }
.practice:nth-child(4n+3) .practice__g { border-radius: 100% 0 100% 0; }
.practice h3 { font: 700 20px/1.15 var(--display); letter-spacing: -.02em; }
.practice p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); transition: color .2s; }
.practice__arr { margin-top: auto; padding-top: 8px; font-size: 22px; line-height: 1; transition: transform .2s; }
.practice:hover, .practice:focus-visible { background: var(--c); color: var(--on); }
.practice:hover p, .practice:focus-visible p { color: var(--on); }
.practice:hover .practice__g, .practice:focus-visible .practice__g { background: var(--on); transform: rotate(90deg); }
.practice:hover .practice__arr { transform: translateX(6px); }
@media (max-width: 1100px) { .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .practice { min-height: 0; } }
@media (max-width: 520px) { .practices { grid-template-columns: 1fr; } }

/* ---- ownership dial (radio buttons, works without JavaScript) ------------ */
.dial { position: relative; }
.dial > input { position: absolute; opacity: 0; pointer-events: none; }
.dial__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--white); }
.dial__tabs label { padding: 18px 16px; font: 700 clamp(15px, 1.5vw, 19px)/1.2 var(--display); letter-spacing: -.01em; text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.dial__tabs label + label { border-left: 2px solid var(--white); }
.dial__tabs label:hover { background: rgba(255,255,255,.14); }
#dial-1:checked ~ .dial__tabs label[for="dial-1"], #dial-2:checked ~ .dial__tabs label[for="dial-2"], #dial-3:checked ~ .dial__tabs label[for="dial-3"] { background: var(--sun); color: var(--ink); }
#dial-1:focus-visible ~ .dial__tabs label[for="dial-1"], #dial-2:focus-visible ~ .dial__tabs label[for="dial-2"], #dial-3:focus-visible ~ .dial__tabs label[for="dial-3"] { outline: 3px solid var(--white); outline-offset: 4px; }
.dial__scale { display: flex; justify-content: space-between; margin: 12px 0 44px; font: 700 12.5px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.dial__panel { display: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px 64px; align-items: start; }
#dial-1:checked ~ .dial__panels .dial__panel:nth-child(1), #dial-2:checked ~ .dial__panels .dial__panel:nth-child(2), #dial-3:checked ~ .dial__panels .dial__panel:nth-child(3) { display: grid; }
.dial__panel h3 { font: 800 clamp(34px, 4.2vw, 60px)/1 var(--display); letter-spacing: -.04em; }
.dial__tag { margin: 14px 0 16px; font: 700 21px/1.3 var(--display); color: var(--sun); }
.dial__panel p { color: var(--fg-2); max-width: 46ch; }
.own { display: flex; height: 52px; margin: 0 0 22px; border: 2px solid var(--white); font: 700 14px var(--text); }
.own span { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; overflow: hidden; transition: flex-basis .3s; }
.own span:first-child { flex: 0 1 var(--you); min-width: 56px; }
.own span:last-child { flex: 1 0 108px; background: var(--sun); color: var(--ink); border-left: 2px solid var(--white); }
.raci > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.raci dt { color: var(--fg-3); }
.raci dd { font-weight: 600; }
@media (max-width: 860px) { .dial__panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dial__tabs { grid-template-columns: 1fr; } .dial__tabs label + label { border-left: 0; border-top: 2px solid var(--white); } .dial__scale { display: none; } .dial__tabs { margin-bottom: 36px; } }

/* ---- sectors ------------------------------------------------------------- */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 2px solid var(--ink); }
.sector { --c: var(--cobalt); display: grid; grid-template-columns: 18px minmax(0, 236px) minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.sector::before { content: ""; width: 16px; height: 16px; background: var(--c); align-self: center; }
.sector:nth-child(5n+2) { --c: var(--coral); } .sector:nth-child(5n+3) { --c: var(--mint); } .sector:nth-child(5n+4) { --c: var(--sun); } .sector:nth-child(5n) { --c: var(--pink); }
.sector:nth-child(3n+2)::before { border-radius: 50%; }
.sector:nth-child(3n)::before { border-radius: 100% 0 0 0; }
.sector h3 { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.sector p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 1000px) { .sectors { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sector { grid-template-columns: 18px minmax(0, 1fr); } .sector p { grid-column: 2; } }

/* ---- prototype offer ----------------------------------------------------- */
.offer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px 72px; align-items: center; }
.stamp { justify-self: center; display: flex; flex-direction: column; justify-content: space-between; width: min(100%, 340px); aspect-ratio: 1; padding: 28px 30px; background: var(--ink); color: var(--white); transform: rotate(4deg); transition: transform .4s cubic-bezier(.5,1.8,.4,1); }
.stamp:hover { transform: rotate(-2deg) scale(1.03); }
.stamp span { font: 700 13px var(--text); letter-spacing: .1em; text-transform: uppercase; }
.stamp b { font: 800 clamp(96px, 11vw, 150px)/.8 var(--display); letter-spacing: -.06em; color: var(--sun); }
.stamp em { font: 700 30px/1 var(--display); font-style: normal; letter-spacing: -.02em; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .stamp { justify-self: start; width: 260px; } }

/* ---- step tracks (real sequences, so they are numbered) ------------------ */
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: t; border-top: 2px solid var(--edge); }
.track--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.track li { --blk: var(--cobalt); --blk-on: var(--white); padding: 0 26px 0 0; counter-increment: t; }
.track li:nth-child(5n+2) { --blk: var(--coral); --blk-on: var(--ink); } .track li:nth-child(5n+3) { --blk: var(--mint); --blk-on: var(--ink); } .track li:nth-child(5n+4) { --blk: var(--sun); --blk-on: var(--ink); } .track li:nth-child(5n) { --blk: var(--pink); --blk-on: var(--ink); }
.track li::before { content: counter(t); display: grid; place-items: center; width: 40px; height: 40px; margin: -21px 0 20px; background: var(--blk); color: var(--blk-on); font: 800 18px var(--display); }
.section--sun .track li, .section--deep .track li { --blk: var(--ink); --blk-on: var(--sun); }
.section--deep .track li { --blk: var(--sun); --blk-on: var(--ink); }
.track h3 { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.track p { font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
@media (max-width: 980px) { .track, .track--5 { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--edge); margin-left: 20px; } .track li { padding: 0 0 30px 40px; } .track li:last-child { padding-bottom: 0; } .track li::before { margin: 0 0 12px -61px; } }

/* ---- lists and small parts ---------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 600 13.5px var(--text); padding: 6px 11px; border: 1.5px solid var(--fg); color: var(--fg); white-space: nowrap; }
.chips--lg li { font-size: 15.5px; padding: 9px 15px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.ticks li + li { margin-top: 12px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 13px; background: var(--coral); }
.ticks li:nth-child(4n+2)::before { background: var(--cobalt); border-radius: 50%; }
.ticks li:nth-child(4n+3)::before { background: var(--mint); border-radius: 100% 0 0 0; }
.ticks li:nth-child(4n)::before { background: var(--sun); border-radius: 50%; }
.section--deep .ticks li:nth-child(4n+2)::before { background: var(--pink); }
.ticks strong { color: var(--fg); font-weight: 700; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.principle { --c: var(--cobalt); padding: 24px 0 30px; border-top: 2px solid var(--edge); }
.principle:nth-child(5n+2) { --c: var(--coral); } .principle:nth-child(5n+3) { --c: var(--mint); } .principle:nth-child(5n+4) { --c: var(--sun); } .principle:nth-child(5n) { --c: var(--pink); }
.principle span { font: 700 12.5px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.principle .blk { display: block; width: 20px; height: 20px; background: var(--c); }
.principle:nth-child(3n+2) .blk { border-radius: 50%; } .principle:nth-child(3n) .blk { border-radius: 100% 0 0 0; }
.principle h3 { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; margin: 14px 0 8px; }
.principle p { font-size: 15.5px; line-height: 1.55; color: var(--fg-2); }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 72px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.tech { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0 32px; border-top: 2px solid var(--ink); }
.tech dt, .tech dd { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.tech dt { font: 700 19px var(--display); letter-spacing: -.02em; padding-top: 24px; }
@media (max-width: 700px) { .tech { grid-template-columns: 1fr; } .tech dt { border-bottom: 0; padding-bottom: 0; } }
.aside-note { margin-top: 26px; padding: 18px 22px; background: var(--sun); color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.aside-note a { font-weight: 700; text-underline-offset: 3px; }

/* ---- brief builder ------------------------------------------------------- */
.brief fieldset { border: 0; padding: 0; margin-bottom: 38px; min-width: 0; }
.brief legend { padding: 0; margin-bottom: 16px; font: 700 13px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.chipset { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { --c: var(--sun); --on: var(--ink); position: relative; cursor: pointer; }
.chip:nth-child(5n+2) { --c: var(--cobalt); --on: var(--white); } .chip:nth-child(5n+3) { --c: var(--coral); } .chip:nth-child(5n+4) { --c: var(--pink); } .chip:nth-child(5n) { --c: var(--mint); }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: 12px 17px; border: 2px solid var(--white); font: 700 clamp(15px, 1.4vw, 18px)/1.2 var(--display); letter-spacing: -.01em; color: var(--white); user-select: none; transition: background .15s, color .15s, transform .25s cubic-bezier(.5,1.8,.4,1); }
.chip:hover span { background: rgba(255,255,255,.14); }
.chip input:checked + span { background: var(--c); border-color: var(--c); color: var(--on); transform: rotate(-2deg); }
.chip:nth-child(even) input:checked + span { transform: rotate(1.5deg); }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.brief__out { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-top: 34px; border-top: 2px solid var(--white); }
.brief__out p { font: 700 clamp(22px, 2.5vw, 34px)/1.2 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.brief__out p b { color: var(--sun); font-weight: 800; }
.brief__alt { margin-top: 22px; font-size: 15.5px; color: var(--fg-3); }
.brief__alt a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 760px) { .brief__out { grid-template-columns: 1fr; } .brief__out .btn { justify-content: space-between; } }

/* ---- closing band on inner pages ----------------------------------------- */
.cta .title { font-size: clamp(36px, 5.4vw, 76px); line-height: 1; max-width: 16ch; }
.cta .lede { margin-top: 22px; }
.cta .btn-row { margin-top: 34px; }

/* ---- footer -------------------------------------------------------------- */
.site-footer { background: var(--white); color: var(--ink-2); font-size: 15.5px; border-top: 2px solid var(--ink); }
.site-footer .wrap { padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px 48px; }
.footer-grid h2 { font: 700 13px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-grid p { max-width: 34ch; margin-top: 16px; line-height: 1.55; }
.site-footer .footer-base a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.site-footer .footer-base span:first-child { max-width: 82ch; }
.site-footer .footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding: 22px var(--pad) 28px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- legal pages ---------------------------------------------------------- */
.legal { max-width: calc(760px + 2 * var(--pad)); margin-left: 0; }
.legal h2 { font: 800 clamp(22px, 2.2vw, 28px)/1.15 var(--display); letter-spacing: -.03em; margin: 44px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 14px; }
.legal li { position: relative; padding-left: 26px; }
.legal li + li { margin-top: 12px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 11px; height: 11px; background: var(--cobalt); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---- services page ------------------------------------------------------- */
.stack { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; gap: 0; border: 2px solid var(--ink); background: var(--ink); gap: 2px; }
.stack a { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 78px; padding: 14px 20px; background: var(--white); color: var(--ink); text-decoration: none; transition: filter .15s; }
.stack a:hover { filter: brightness(.94) saturate(1.2); }
.stack a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.stack b { font: 700 18px/1.2 var(--display); letter-spacing: -.02em; }
.stack span { font-size: 14px; line-height: 1.4; opacity: .82; }
.stack__layers { display: grid; gap: 2px; }
.stack__row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.stack a.stack__rail { writing-mode: vertical-rl; align-items: center; justify-content: center; padding: 16px 0; background: var(--ink); color: var(--white); }
.stack a.stack__rail--l { transform: rotate(180deg); }
.stack a.stack__top { background: var(--sun); }
.stack a.stack__base { background: var(--mint); }
.stack a[href="#engineering"] { background: var(--cobalt); color: var(--white); }
.stack a[href="#automation"] { background: var(--coral); }
.stack a[href="#platforms"] { background: var(--pink); }
@media (max-width: 700px) { .stack { grid-template-columns: 1fr; } .stack a.stack__rail, .stack a.stack__rail--l { writing-mode: horizontal-tb; transform: none; padding: 16px 20px; min-height: 0; } .stack__row { grid-template-columns: 1fr; } }

.svc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 72px; align-items: start; }
.svc-index { position: sticky; top: 100px; }
.svc-index h2 { font: 700 13px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.svc-index a { display: block; padding: 7px 0 7px 14px; border-left: 3px solid var(--rule); font: 600 15px/1.3 var(--text); color: var(--ink-2); text-decoration: none; transition: color .15s, border-color .15s; }
.svc-index a span { display: none; }
.svc-index a:hover { color: var(--ink); border-left-color: var(--ink); }
.svc-index a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--coral); }
.svc { --c: var(--sun); padding: 56px 0; border-top: 2px solid var(--ink); }
.svc:nth-child(5n+2) { --c: var(--cobalt); } .svc:nth-child(5n+3) { --c: var(--coral); } .svc:nth-child(5n+4) { --c: var(--pink); } .svc:nth-child(5n) { --c: var(--mint); }
.svc:first-child { padding-top: 0; border-top: 0; }
.svc:last-child { padding-bottom: 0; }
.svc__n { display: block; width: 52px; height: 52px; background: var(--c); font-size: 0; }
.svc:nth-child(4n+1) .svc__n { border-radius: 100% 0 0 0; } .svc:nth-child(4n+2) .svc__n { border-radius: 50%; } .svc:nth-child(4n+3) .svc__n { border-radius: 100% 0 100% 0; }
.svc h2 { font: 800 clamp(30px, 3.6vw, 48px)/1.04 var(--display); letter-spacing: -.035em; margin: 20px 0 14px; }
.svc__sum { font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 58ch; }
.svc__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 48px; margin-top: 30px; }
.svc__body h3 { font: 700 13px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.svc__aside { padding: 24px 24px 26px; background: var(--fog); align-self: start; }
.svc__aside > * + h3 { margin-top: 24px; }
.svc__aside p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.svc__aside .chips li { background: var(--white); }
.svc__aside .link { margin-top: 24px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; border: 2px solid var(--ink); }
.trio > div { padding: 20px 22px 24px; }
.trio > div + div { border-left: 2px solid var(--ink); }
.trio > div:nth-child(1) { background: var(--sun); } .trio > div:nth-child(2) { background: var(--pink); } .trio > div:nth-child(3) { background: var(--mint); }
.trio h3 { font: 700 21px var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.trio p { font-size: 15px; line-height: 1.5; }
@media (max-width: 1000px) { .svc-layout { grid-template-columns: 1fr; gap: 40px; } .svc-index { position: static; } .svc-index ol { display: flex; flex-wrap: wrap; gap: 8px; } .svc-index a { border: 1.5px solid var(--ink); padding: 7px 12px; color: var(--ink); } .svc-index a.is-active { background: var(--sun); border-color: var(--ink); } }
@media (max-width: 760px) { .svc__body { grid-template-columns: 1fr; } .trio { grid-template-columns: 1fr; } .trio > div + div { border-left: 0; border-top: 2px solid var(--ink); } }

/* ---- sourcing page ------------------------------------------------------- */
.spectrum { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; font: 700 12.5px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.spectrum i { flex: 1; height: 2px; background: var(--fg); position: relative; }
.spectrum i::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--fg); border-right: 2px solid var(--fg); transform: rotate(45deg); }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); }
.model { display: flex; flex-direction: column; padding: 28px 28px 30px; background: var(--white); }
.model + .model { border-left: 2px solid var(--ink); }
.model__tag { font: 700 12.5px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.model h3 { font: 800 clamp(26px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: -.035em; margin: 14px 0 8px; }
.model__line { font: 700 18px/1.3 var(--display); margin-bottom: 14px; }
.model p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.model__own { margin-top: auto; padding-top: 26px; }
.meter { height: 16px; border: 2px solid var(--ink); margin-bottom: 10px; }
.meter b { display: block; height: 100%; background: var(--coral); border-right: 2px solid var(--ink); }
.model:nth-child(2) .meter b { background: var(--sun); } .model:nth-child(3) .meter b { background: var(--mint); border-right: 0; }
.model__own span { font: 600 14px var(--text); color: var(--ink-2); }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } .model + .model { border-left: 0; border-top: 2px solid var(--ink); } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid var(--ink); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.cmp tr:last-child > * { border-bottom: 0; }
.cmp thead th, .cmp thead td { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; border-bottom: 2px solid var(--ink); }
.cmp thead th:nth-child(2) { background: var(--coral); } .cmp thead th:nth-child(3) { background: var(--sun); } .cmp thead th:nth-child(4) { background: var(--mint); }
.cmp tbody th { font: 700 14.5px var(--text); width: 21%; }
.cmp td { color: var(--ink-2); width: 26%; }
.cmp th + td, .cmp td + td, .cmp thead th { border-left: 1px solid var(--rule); }
.cmp td strong { color: var(--ink); font-weight: 700; }
.coreflex { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 240px; padding: 24px 24px 0; border: 2px solid var(--edge); border-bottom-width: 2px; }
.coreflex i { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.coreflex i::before { content: ""; height: var(--f); background: repeating-linear-gradient(135deg, var(--sun) 0 2px, transparent 2px 7px); border: 2px solid var(--sun); border-bottom: 0; }
.coreflex i::after { content: ""; height: 38%; background: var(--sun); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; font: 600 14px var(--text); color: var(--fg-3); }
.legend span::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -1px; background: var(--sun); }
.legend span.is-flex::before { background: repeating-linear-gradient(135deg, var(--sun) 0 2px, transparent 2px 5px); outline: 2px solid var(--sun); outline-offset: -2px; }
.legend em { font-style: normal; margin-left: auto; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; cursor: pointer; font: 700 20px/1.25 var(--display); letter-spacing: -.02em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--ink); color: var(--white); font: 600 22px/1 var(--display); transition: transform .25s, background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); color: var(--ink); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 66ch; }
.faq a { font-weight: 700; text-underline-offset: 3px; }

/* ---- contact ------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 14.5px var(--text); }
.field label i { font-style: normal; color: #c8321a; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 0; padding: 13px 15px; width: 100%; transition: box-shadow .15s; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--sun); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); max-width: 44ch; }
.form__sent { grid-column: 1 / -1; padding: 16px 18px; background: var(--mint); font-size: 15.5px; }
.form__sent a { font-weight: 700; }
.form__sent[hidden] { display: none; }
.aside-card { padding: 26px 26px 28px; background: var(--fog); }
.aside-card + .aside-card { margin-top: 14px; }
.aside-card:first-child { background: var(--cobalt); color: var(--white); }
.aside-card:first-child h2, .aside-card:first-child p { color: rgba(255,255,255,.84); }
.aside-card h2 { font: 700 13px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.aside-card .big { font: 800 clamp(23px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--white); overflow-wrap: anywhere; border-bottom: 3px solid var(--sun); }
.aside-card p { font-size: 15.5px; color: var(--ink-2); margin-top: 12px; }
.next { counter-reset: n; }
.next li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); counter-increment: n; }
.next li + li { margin-top: 16px; }
.next li span { font-size: 0; }
.next li span::before { content: counter(n); display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--sun); font: 800 15px var(--display); }
.next li strong { display: block; font: 700 17px var(--display); color: var(--ink); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form .btn { width: 100%; justify-content: space-between; } }

/* ---- about: two doors ---------------------------------------------------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.door { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 30px 34px; background: var(--white); color: var(--ink); }
.door + .door { border-left: 2px solid var(--ink); }
.door.is-here { background: var(--sun); }
.door .mono { color: var(--ink); background: var(--white); padding: 5px 9px; font-size: 12px; }
.door:not(.is-here) .mono { background: var(--ink); color: var(--white); }
.door h3 { font: 800 clamp(28px, 3vw, 40px)/1.05 var(--display); letter-spacing: -.035em; margin: 20px 0 12px; }
.door p { font-size: 16.5px; color: var(--ink-2); margin-bottom: 26px; max-width: 40ch; }
.door.is-here p { color: #37334d; }
.door .link { margin-top: auto; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door + .door { border-left: 0; border-top: 2px solid var(--ink); } }

/* ---- motion preferences and print ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
@media print {
  .site-header, .marquee, .mosaic { display: none !important; }
  .section, .hero { background: #fff !important; color: #000 !important; --fg: #000; --fg-2: #222; --fg-3: #444; }
}
