/* ==========================================================================
   PRAGMATICA TECH LTD — design system
   SIC 62020, information technology consultancy.

   Direction: an advisory practice, not a software vendor. So the site is
   light-first and editorial — warm ivory paper, a serif display face, wide
   margins, hairline gold rules — punctuated by deep midnight-slate bands
   where the argument needs weight. One accent only (antique gold), used as
   a line and a mark rather than as a fill, which is what keeps it quiet.
   ========================================================================== */

:root {
  /* --- paper surfaces --- */
  --paper:      #ffffff;
  --canvas:     #faf8f4;
  --mist:       #f3f0e9;
  --mist-2:     #e9e4d9;

  /* --- ink surfaces --- */
  --ink-950:    #070c13;
  --ink-900:    #0b1019;
  --ink-850:    #101825;
  --ink-800:    #16202f;
  --ink-700:    #1f2c3d;

  /* --- type on paper --- */
  --ink:        #101823;
  --text:       #37455a;
  --text-2:     #5a6b81;
  --text-3:     #7d8b9d;

  /* --- type on ink --- */
  --on-ink:     #eef1f6;
  --on-ink-2:   #a7b4c6;
  --on-ink-3:   #78889d;

  /* --- lines --- */
  --line:       rgba(16, 24, 35, 0.12);
  --line-soft:  rgba(16, 24, 35, 0.065);
  --line-dark:  rgba(255, 255, 255, 0.10);
  --line-dark-2:rgba(255, 255, 255, 0.18);

  /* --- accent: antique gold --- */
  --gold:       #b08636;
  --gold-ink:   #8d6821;   /* text weight on paper */
  --gold-2:     #cfa963;   /* on ink */
  --gold-3:     #ecd9ac;   /* highlights on ink */
  --gold-soft:  rgba(176, 134, 54, 0.30);
  --gold-wash:  rgba(176, 134, 54, 0.07);

  /* --- supporting cool --- */
  --slate:      #35566f;
  --slate-2:    #5c7f9b;

  --shadow-1:   0 1px 2px rgba(11, 16, 25, 0.06);
  --shadow-2:   0 22px 50px -30px rgba(11, 16, 25, 0.42);
  --shadow-3:   0 46px 100px -50px rgba(11, 16, 25, 0.55);

  --radius-s:   6px;
  --radius:     12px;
  --radius-l:   20px;

  --container:  1180px;
  --gutter:     clamp(20px, 5vw, 46px);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.14;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); line-height: 1.1; letter-spacing: -0.018em; }
h3 { font-size: clamp(1.16rem, 1.7vw, 1.36rem); }
h4 { font-size: 1.02rem; letter-spacing: -0.008em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

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

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

::selection { background: rgba(176, 134, 54, 0.20); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-s);
  font-size: .9rem;
}
.skip-link:focus { left: 16px; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 830px; }
.center { text-align: center; }

.band {
  position: relative;
  padding: clamp(70px, 8vw, 122px) 0;
  background: var(--canvas);
}
.band--paper  { background: var(--paper); }
.band--mist   { background: var(--mist); }
.band--tight  { padding: clamp(52px, 6vw, 84px) 0; }

/* dark bands ------------------------------------------------------------ */
.band--ink {
  background: var(--ink-900);
  color: var(--on-ink-2);
}
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band--ink strong { color: #fff; }
.band--ink a { color: var(--gold-3); }
.band--ink a:hover { color: #fff; }
.band--deep { background: var(--ink-950); }

/* a hairline of gold sitting on the seam between two bands */
.band__hair {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 22%, var(--gold-soft) 78%, transparent);
}

/* faint engraved grid, used sparingly on ink bands */
.band--rule::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}
.band > .container { position: relative; z-index: 1; }

/* ==========================================================================
   Section furniture
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.band--ink .eyebrow { color: var(--gold-2); }
.band--ink .eyebrow::before { background: var(--gold-2); }

.section-head { max-width: 780px; margin-bottom: clamp(38px, 4.6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.lede {
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.66;
  color: var(--text-2);
}
.band--ink .lede { color: var(--on-ink-2); }

.rule {
  width: 62px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 26px;
  border-radius: 2px;
}
.section-head--center .rule { margin-left: auto; margin-right: auto; }
.band--ink .rule { background: var(--gold-2); }

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .005em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.btn--primary:hover {
  background: var(--ink-800);
  color: #fff;
  transform: translateY(-1px);
}
.btn--gold {
  background: var(--gold);
  color: #1a1207;
}
.btn--gold:hover { background: var(--gold-2); color: #1a1207; transform: translateY(-1px); }

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

.band--ink .btn--ghost { color: #fff; border-color: var(--line-dark-2); }
.band--ink .btn--ghost:hover { color: #fff; border-color: var(--gold-2); background: rgba(207, 169, 99, .10); }
.band--ink .btn--primary { background: #fff; color: var(--ink-900); }
.band--ink .btn--primary:hover { background: var(--gold-3); color: var(--ink-950); }

.btn--sm { padding: 10px 20px; font-size: .87rem; }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gold-ink);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
}
.textlink:hover { color: var(--ink); border-color: var(--ink); }
.textlink svg { transition: transform .2s ease; }
.textlink:hover svg { transform: translateX(3px); }
.band--ink .textlink { color: var(--gold-3); border-color: rgba(236, 217, 172, .35); }
.band--ink .textlink:hover { color: #fff; border-color: #fff; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -24px rgba(11, 16, 25, .5);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.brand__name em { font-style: normal; color: var(--gold-ink); }
.brand__sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 3px; }
.nav__links a {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 450;
  color: var(--text);
  transition: color .18s ease, background .18s ease;
}
.nav__links a:hover { color: var(--ink); background: rgba(16, 24, 35, .045); }
.nav__links a.is-active { color: var(--ink); font-weight: 500; }
.nav__links a.is-active::after {
  content: "";
  display: block;
  height: 1.5px;
  background: var(--gold);
  margin: 3px 13px -4px;
}
.nav__cta { margin-left: 12px; }
.nav__cta.is-active::after { display: none; }

/* the .nav__links a rules above are more specific than .btn--primary,
   so the CTA needs its colours restated here */
.nav__links a.btn--primary { color: #fff; background: var(--ink-900); }
.nav__links a.btn--primary:hover { color: #fff; background: var(--ink-800); }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 12px;
  top: 21px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: background .2s ease;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; font-size: 1rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 8px 0 0; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 108px);
  background:
    radial-gradient(70% 90% at 88% 8%, rgba(176, 134, 54, .10), transparent 62%),
    radial-gradient(60% 70% at 6% 96%, rgba(53, 86, 111, .08), transparent 60%),
    var(--canvas);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(38px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-ink);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.hero__lede { font-size: clamp(1.05rem, 1.55vw, 1.2rem); color: var(--text-2); max-width: 560px; margin-bottom: 30px; }

.hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-family: var(--font-mono);
  font-size: .73rem;
  letter-spacing: .07em;
  color: var(--text-2);
  margin-bottom: 26px;
}
.hero__stamp b { color: var(--ink); font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-2);
}
.hero__fact svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* --- hero brief card ---------------------------------------------------- */
.brief {
  position: relative;
  background: var(--ink-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.brief::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.brief__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-dark);
}
.brief__title {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}
.brief__tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--gold-2);
  border: 1px solid rgba(207, 169, 99, .32);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.brief__body { padding: 8px 22px 22px; }

.brief__row { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.brief__row:last-child { border-bottom: 0; padding-bottom: 6px; }
.brief__row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}
.brief__label { font-size: .95rem; color: #fff; font-weight: 500; }
.brief__value {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--gold-2);
  white-space: nowrap;
}
.brief__note { font-size: .84rem; color: var(--on-ink-3); line-height: 1.55; }

.meter {
  height: 3px;
  background: rgba(255, 255, 255, .09);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 11px;
}
.meter__fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-3));
  transition: width 1.15s cubic-bezier(.22, .8, .28, 1);
}

.brief__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .022);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--on-ink-3);
}
.brief__foot svg { width: 14px; height: 14px; color: var(--gold-2); flex-shrink: 0; }

/* ==========================================================================
   Grids & cards
   ========================================================================== */

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 660px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.card__idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--gold-ink);
  margin-bottom: 16px;
}
.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--gold-wash);
  margin-bottom: 18px;
}
.card__icon svg { width: 20px; height: 20px; color: var(--gold-ink); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--text-2); }
.card__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.card__list li {
  position: relative;
  padding-left: 17px;
  font-size: .88rem;
  color: var(--text-2);
  margin-bottom: .4em;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* cards on ink */
.band--ink .card {
  background: rgba(255, 255, 255, .028);
  border-color: var(--line-dark);
}
.band--ink .card:hover { border-color: rgba(207, 169, 99, .4); background: rgba(255, 255, 255, .045); }
.band--ink .card p { color: var(--on-ink-2); }
.band--ink .card__idx { color: var(--gold-2); }
.band--ink .card__icon { background: rgba(207, 169, 99, .10); border-color: var(--line-dark-2); }
.band--ink .card__icon svg { color: var(--gold-2); }
.band--ink .card__list { border-top-color: var(--line-dark); }
.band--ink .card__list li { color: var(--on-ink-2); }
.band--ink .card__list li::before { background: var(--gold-2); }

/* ==========================================================================
   Service detail blocks (services.html)
   ========================================================================== */

.svc {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(34px, 4vw, 52px) 0;
  border-top: 1px solid var(--line-soft);
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc__aside { position: relative; }
.svc__num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--gold-ink);
  margin-bottom: 12px;
}
.svc__aside h3 { font-size: clamp(1.35rem, 2.2vw, 1.72rem); line-height: 1.16; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.svc__body p { color: var(--text-2); }
.svc__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.svc__grid > div { font-size: .91rem; }
.svc__grid dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
}
.svc__grid dd { margin: 0; color: var(--text); }

@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc__grid { grid-template-columns: 1fr; }
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text-2);
  background: var(--paper);
}
.band--ink .tag { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); color: var(--on-ink-2); }

/* ==========================================================================
   Process rail
   ========================================================================== */

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  counter-reset: rail;
}
.rail__step { position: relative; padding-top: 30px; }
.rail__step::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.band--ink .rail__step::before { background: var(--line-dark); }
.rail__step::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.rail__n {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--gold-ink);
  margin-bottom: 9px;
}
.band--ink .rail__n { color: var(--gold-2); }
.rail__step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.rail__step p { font-size: .9rem; color: var(--text-2); }
.band--ink .rail__step p { color: var(--on-ink-2); }

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

/* ==========================================================================
   Split feature
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.split--aside { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 900px) { .split, .split--aside { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 15px;
  font-size: .96rem;
  color: var(--text-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: var(--gold-wash);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--gold-ink);
  border-bottom: 1.5px solid var(--gold-ink);
  transform: rotate(-45deg);
}
.checks strong { display: block; color: var(--ink); font-weight: 550; margin-bottom: 2px; }
.band--ink .checks li { color: var(--on-ink-2); }
.band--ink .checks li::before { border-color: rgba(207, 169, 99, .45); background: rgba(207, 169, 99, .12); }
.band--ink .checks li::after { border-color: var(--gold-3); }
.band--ink .checks strong { color: #fff; }

/* ==========================================================================
   Panel (bordered instrument box)
   ========================================================================== */

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-1);
}
.panel--ink {
  background: var(--ink-900);
  border-color: var(--line-dark);
  color: var(--on-ink-2);
}
.panel--ink h3, .panel--ink h4 { color: #fff; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.panel--ink .panel__head { border-bottom-color: var(--line-dark); }
.panel__title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.panel--ink .panel__title { color: var(--on-ink-3); }

/* definition rows — used for registered company details */
.spec { margin: 0; }
.spec__row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec__row:last-child { border-bottom: 0; }
.spec__k {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 3px;
}
.spec__v { color: var(--ink); font-size: .97rem; }
.panel--ink .spec__row { border-bottom-color: var(--line-dark); }
.panel--ink .spec__k { color: var(--on-ink-3); }
.panel--ink .spec__v { color: #fff; }
@media (max-width: 640px) { .spec__row { grid-template-columns: 1fr; gap: 4px; } }

/* ==========================================================================
   Figures / commitments
   ========================================================================== */

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure { background: var(--paper); padding: 30px 26px; }
.figure__n {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.figure__n em { font-style: italic; color: var(--gold-ink); }
.figure__l {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 9px;
}
.figure p { font-size: .86rem; color: var(--text-2); }
.band--ink .figures { background: var(--line-dark); border-color: var(--line-dark); }
.band--ink .figure { background: var(--ink-850); }
.band--ink .figure__n { color: #fff; }
.band--ink .figure__n em { color: var(--gold-2); }
.band--ink .figure p { color: var(--on-ink-2); }
@media (max-width: 900px) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .figures { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pull quote / statement
   ========================================================================== */

.statement {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.statement__mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.statement blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.012em;
  color: #fff;
}
.statement blockquote em { font-style: italic; color: var(--gold-3); }
.statement figcaption {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}

/* ==========================================================================
   Sectors
   ========================================================================== */

.sector {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.sector:last-child { border-bottom: 0; }
.sector__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--gold-wash);
}
.sector__icon svg { width: 18px; height: 18px; color: var(--gold-ink); }
.sector h4 { margin-bottom: 5px; }
.sector p { font-size: .91rem; color: var(--text-2); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: 880px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  transition: color .18s ease;
}
.faq__q:hover { color: var(--gold-ink); }
.faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease, padding .32s ease;
  padding: 0 4px;
  color: var(--text-2);
  font-size: .96rem;
}
.faq__item.is-open .faq__a { max-height: 640px; padding: 0 4px 24px; }
.band--ink .faq__item { border-bottom-color: var(--line-dark); }
.band--ink .faq__q { color: #fff; }
.band--ink .faq__q:hover { color: var(--gold-3); }
.band--ink .faq__a { color: var(--on-ink-2); }

/* ==========================================================================
   Contact
   ========================================================================== */

.route {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.route:hover { border-color: var(--gold-soft); transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.route__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gold-wash);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.route__icon svg { width: 19px; height: 19px; color: var(--gold-ink); }
.route h3 { font-size: 1.12rem; margin-bottom: 8px; }
.route p { font-size: .92rem; color: var(--text-2); margin-bottom: 14px; }
.route__addr {
  margin-top: auto;           /* pin the subject line to the foot of every card */
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--gold-ink);
  word-break: break-word;
}

.mailbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.mailbox__k {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.mailbox__v {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  word-break: break-word;
}
.mailbox__v a { color: var(--ink); border-bottom: 1px solid var(--gold-soft); }
.mailbox__v a:hover { color: var(--gold-ink); border-color: var(--gold); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta {
  position: relative;
  background:
    radial-gradient(60% 120% at 82% 12%, rgba(176, 134, 54, .16), transparent 60%),
    var(--ink-950);
  overflow: hidden;
}
.cta__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-ink-2); font-size: 1.06rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 30px; }
.cta__note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--on-ink-3);
}

/* ==========================================================================
   Prose (legal pages)
   ========================================================================== */

.prose { max-width: 820px; }
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.62rem);
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.1em; }
.prose__meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--text-3);
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
}
.prose__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.prose__toc a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  color: var(--text-2);
  background: var(--paper);
}
.prose__toc a:hover { border-color: var(--gold); color: var(--gold-ink); }

.callout {
  border-left: 2px solid var(--gold);
  background: var(--gold-wash);
  padding: 18px 22px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 26px 0;
  font-size: .95rem;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.pagehead {
  position: relative;
  padding: clamp(52px, 6vw, 88px) 0 clamp(40px, 5vw, 62px);
  background:
    radial-gradient(60% 100% at 90% 0%, rgba(176, 134, 54, .09), transparent 62%),
    var(--canvas);
  border-bottom: 1px solid var(--line-soft);
}
.pagehead__inner { max-width: 860px; }
.crumbs {
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--gold-ink); }
.crumbs span { margin: 0 8px; color: var(--gold); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink-950);
  color: var(--on-ink-3);
  padding: clamp(56px, 6vw, 82px) 0 34px;
  font-size: .92rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 54px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand__name em { color: var(--gold-2); }
.footer .brand__sub { color: var(--on-ink-3); }
.footer__blurb { color: var(--on-ink-3); max-width: 330px; font-size: .9rem; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-ink-2);
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--on-ink-3); }
.footer a:hover { color: #fff; }
.footer__addr { font-style: normal; color: var(--on-ink-3); line-height: 1.75; }
.footer__addr a { color: var(--gold-2); }
.footer__addr a:hover { color: var(--gold-3); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: .82rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__reg {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .07em;
  color: var(--on-ink-3);
}

/* ==========================================================================
   404
   ========================================================================== */

.notfound {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 0;
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 15vw, 9rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.notfound__code em { font-style: italic; color: var(--gold-ink); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, .8, .28, 1), transform .7s cubic-bezier(.22, .8, .28, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .meter__fill { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
