/* GSTAAD Project's
   Ivory paper and the navy of the logo. The % slash (dx/dy = .61) splits things in two,
   and the stepped tints of the wordmark ("TAAD" knocked out of blocks) mark time and sequence.
   Newsreader for titles and figures, Public Sans for reading and numbers in tables. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/newsreader.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../fonts/newsreader-italic.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/publicsans.woff2') format('woff2'); }

:root {
  --paper:   #f4f1e9;
  --paper-2: #ebe6d9;
  --card:    #fcfbf7;
  --ink:     #131b2b;
  --ink-2:   #434c5c;
  --ink-3:   #6c7381;
  --line:    rgba(19, 27, 43, .15);
  --line-2:  rgba(19, 27, 43, .08);

  --navy:    #13305f;   /* logo */
  --navy-d:  #0c214a;
  --s1:      #13305f;   /* the wordmark steps, dark to light */
  --s2:      #2b4774;
  --s3:      #435d88;
  --s4:      #5b739b;
  --s5:      #7488ab;
  --s6:      #a7b4cb;
  --on-navy:   #f1eee6;
  --on-navy-2: #b4bfd3;
  --brass:   #a7803a;
  --brass-l: #d9b46a;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans:  'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut:   clamp(1rem, 4vw, 3.5rem);
  --max:   1240px;
  --r:     4px;
  --slash: .61;         /* run per unit of rise of the logo's slash */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0; font-optical-sizing: auto; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--on-navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.3rem; border-radius: var(--r); border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--navy { background: var(--navy); color: var(--on-navy); }
.btn--navy:hover { background: var(--navy-d); }
.btn--line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--navy); color: var(--navy); }
.btn--ivory { background: var(--on-navy); color: var(--navy); }
.btn--ivory:hover { background: #fff; }
.btn svg { width: 1em; height: 1em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 233, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 76px; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand__iso { width: 34px; height: 28px; fill: var(--navy); }
.brand__word { width: 128px; height: 25px; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { text-decoration: none; font-size: .95rem; color: var(--ink-2); padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav__links a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); transition: transform .25s; }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__drawer { border-top: 1px solid var(--line); padding: .5rem var(--gut) 1.2rem; display: grid; }
.nav__drawer[hidden] { display: none; }
.nav__drawer a { text-decoration: none; padding: .85rem 0; border-bottom: 1px solid var(--line-2); font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}
@media (min-width: 961px) { .nav__drawer { display: none !important; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.55rem, 5.4vw, 4.6rem); font-weight: 350; color: var(--navy); max-width: 13ch; }
.hero h1 em { font-weight: 400; }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 2.8rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 36rem; }
.hero__facts div { display: grid; gap: .2rem; }
.hero__facts dt { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.hero__facts dd { margin: 0; font-size: .88rem; color: var(--ink-3); line-height: 1.45; }

/* the simulator: an invoice that turns into an advance and a remainder */
.sim { background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 rgba(19,27,43,.04), 0 24px 48px -28px rgba(19, 48, 95, .35); }
.sim__doc { padding: 1.4rem 1.5rem 1.3rem; border-bottom: 1px dashed var(--line); position: relative; }
.sim__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sim__head h2 { font-size: 1.5rem; color: var(--navy); }
.sim__folio { font-size: .85rem; color: var(--ink-3); }
.sim__parties { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1.2rem; margin: .9rem 0 0; font-size: .88rem; }
.sim__parties div { display: flex; gap: .4rem; border-bottom: 1px dotted var(--line); padding-bottom: .3rem; }
.sim__parties dt { color: var(--ink-3); }
.sim__parties dd { margin: 0; }
.sim__total { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 1.1rem; }
.sim__total span { font-size: .88rem; color: var(--ink-3); padding-bottom: .5rem; }
.sim__total output { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }

.sim__ctrl { padding: 1.1rem 1.5rem 0; display: grid; gap: 1.05rem; }
.field-row { display: grid; gap: .45rem; }
.field-row__top { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-2); }
.field-row__top b { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--navy) var(--p, 50%), var(--paper-2) var(--p, 50%)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--paper-2); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--navy); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--card); border: 2px solid var(--navy); box-shadow: 0 2px 6px rgba(19,48,95,.25); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--navy); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: .5rem 0; font-size: .9rem; cursor: pointer; border-left: 1px solid var(--line); transition: background-color .15s, color .15s; font-variant-numeric: tabular-nums; }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--navy); color: var(--on-navy); }
.seg input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: -2px; }

.sim__out { padding: 1.3rem 1.5rem 1.4rem; }
.split { position: relative; height: 58px; border-radius: 3px; overflow: hidden; background: var(--s5); }
.split__adv { position: absolute; inset: 0 auto 0 0; width: calc(var(--a, 85%) + 18px); background: var(--navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 0 100%); transition: width .35s cubic-bezier(.3,.7,.2,1); }
.split__gap { position: absolute; top: 0; bottom: 0; left: calc(var(--a, 85%) + 18px); width: 7px; background: var(--card);
  transform: skewX(-31.4deg); transform-origin: top left; margin-left: -1px; transition: left .35s cubic-bezier(.3,.7,.2,1); }
.split__dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--card); transition: left .35s cubic-bezier(.3,.7,.2,1); }
.split__dot--a { top: 8px; left: calc(var(--a, 85%) - 15px); }
.split__dot--b { bottom: 8px; left: calc(var(--a, 85%) + 18px); }
.split__legend { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-top: .9rem; }
.split__legend div { display: grid; gap: .1rem; }
.split__legend div:last-child { text-align: right; }
.split__legend span { font-size: .84rem; color: var(--ink-3); }
.split__legend output { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.split__legend .adv output { color: var(--navy); }
.split__legend .rem output { color: var(--s4); }

.steps { margin-top: 1.2rem; }
.steps__bar { display: flex; gap: 3px; height: 14px; }
.steps__bar i { flex: 1; border-radius: 1px; transition: background-color .3s; }
.steps__ends { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sim__note { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.sim__go { margin-top: 1.1rem; width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
}
@media (max-width: 520px) {
  .hero__facts { grid-template-columns: 1fr; gap: .9rem; }
  .sim__doc, .sim__ctrl, .sim__out { padding-left: 1.1rem; padding-right: 1.1rem; }
  .sim__parties { grid-template-columns: 1fr; }
  .seg label { font-size: .82rem; }
}

/* stepped strip: the wordmark's blocks, used as a rule between sections */
.strip { display: flex; height: 10px; }
.strip i { flex: 1; }
.strip i:nth-child(1) { background: var(--s1); } .strip i:nth-child(2) { background: var(--s2); }
.strip i:nth-child(3) { background: var(--s3); } .strip i:nth-child(4) { background: var(--s4); }
.strip i:nth-child(5) { background: var(--s5); } .strip i:nth-child(6) { background: var(--s6); }

/* ---------- sections ---------- */
.sec { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.sec__head h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--navy); max-width: 18ch; }
.sec__head p { color: var(--ink-2); max-width: 34rem; }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; } }

/* services: tabs on wide screens, a stacked list otherwise */
.svc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.svc__tabs { display: none; }
.svc__panels { display: grid; gap: 3.5rem; }
.panel { display: grid; gap: 1.4rem; }
.panel__fig { background: var(--paper-2); border-radius: 6px; padding: clamp(1rem, 3vw, 2rem); }
.panel__fig svg { width: 100%; height: auto; }
.panel h3 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); color: var(--navy); }
.panel h3 span { font-family: var(--sans); font-size: .9rem; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: .6rem; vertical-align: .35em; letter-spacing: 0; }
.panel p { color: var(--ink-2); max-width: 40rem; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1.5rem; }
.panel li { padding: .7rem 0 .7rem 1.5rem; border-top: 1px solid var(--line); position: relative; font-size: .97rem; }
.panel li::before { content: ''; position: absolute; left: 0; top: 1.18rem; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }

.js .svc { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .js .svc { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
  .js .svc__tabs { display: grid; align-content: start; border-top: 1px solid var(--line); position: sticky; top: 100px; }
  .js .svc__panels { display: block; }
  .js .panel[hidden] { display: none; }
  .js .panel h3 span { display: none; }
}
.tab { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: baseline; gap: .4rem; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 1.05rem .2rem; cursor: pointer; color: var(--ink-2); transition: color .2s, background-color .2s; }
.tab__n { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tab__t { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }
.tab__mark { width: 18px; height: 15px; fill: var(--navy); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; align-self: center; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); }
.tab[aria-selected="true"] .tab__t { font-style: italic; }
.tab[aria-selected="true"] .tab__mark { opacity: 1; transform: none; }
.js .panel:not([hidden]) { animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .panel:not([hidden]) { animation: none; } }

/* illustration palette */
.il .c1 { fill: var(--s1); } .il .c2 { fill: var(--s2); } .il .c3 { fill: var(--s3); }
.il .c4 { fill: var(--s4); } .il .c5 { fill: var(--s5); } .il .c6 { fill: var(--s6); }
.il .cb { fill: var(--brass); } .il .cp { fill: var(--card); } .il .cq { fill: var(--paper); }
.il .cf { fill: var(--paper-2); } .il .cd { fill: var(--navy-d); } .il .cbd { fill: #7d5f2a; }
.il .ln { fill: none; stroke: var(--ink); stroke-opacity: .2; stroke-width: 1; }
.il .lk { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il .lb { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il .ld { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 4 5; }
.il .tx { font: 500 13px var(--sans); fill: var(--ink-2); }
.il .tx-s { font: 400 11px var(--sans); fill: var(--ink-3); }
.il .tx-n { font: 400 22px var(--serif); fill: var(--navy); }
.il .tx-w { font: 600 12px var(--sans); fill: var(--on-navy); }
.il .bd { stroke: var(--line); stroke-width: 1; }

/* ---------- process (navy band) ---------- */
.band { background: var(--navy-d); color: var(--on-navy); }
.band .sec__head h2 { color: var(--on-navy); }
.band .sec__head p { color: var(--on-navy-2); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; counter-reset: f; }
.flow li { display: grid; grid-template-rows: auto 1fr; }
.flow__block { height: clamp(120px, 14vw, 170px); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 1rem 1.1rem; }
.flow li:nth-child(1) .flow__block { background: var(--s2); }
.flow li:nth-child(2) .flow__block { background: var(--s3); }
.flow li:nth-child(3) .flow__block { background: var(--s4); }
.flow li:nth-child(4) .flow__block { background: var(--s5); }
.flow__block b { font: 300 clamp(5rem, 9vw, 8rem)/.8 var(--serif); color: var(--navy-d); letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.flow__body { padding: 1.3rem 1.1rem 0 0; }
.flow h3 { font-size: 1.45rem; color: var(--on-navy); }
.flow p { margin-top: .6rem; color: var(--on-navy-2); font-size: .97rem; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 2rem; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .flow__block { height: 110px; } }

/* ---------- requirements ---------- */
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.req h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--navy); max-width: 14ch; }
.req__intro { margin-top: 1.2rem; color: var(--ink-2); max-width: 32rem; }
.looks { margin-top: 2rem; display: grid; gap: 0; }
.looks div { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.looks dt { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.25; }
.looks dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
.docs { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2.2rem); position: relative; }
.docs::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px; border-radius: 6px 6px 0 0;
  background: linear-gradient(to right, var(--s1) 0 16.66%, var(--s2) 0 33.33%, var(--s3) 0 50%, var(--s4) 0 66.66%, var(--s5) 0 83.33%, var(--s6) 0); }
.docs h3 { font-size: 1.7rem; color: var(--navy); }
.docs > p { margin-top: .5rem; color: var(--ink-3); font-size: .95rem; }
.docs ol { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: d; }
.docs li { counter-increment: d; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; padding: .85rem 0; border-top: 1px solid var(--line-2); }
.docs li::before { content: counter(d, decimal-leading-zero); font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.docs li b { display: block; font-weight: 600; }
.docs li span { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 860px) { .req { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .looks div { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- company ---------- */
.company { background: var(--paper-2); }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.co h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--navy); max-width: 16ch; }
.co__text p { margin-top: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.co__facts { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.co__facts div { padding: .9rem 0; border-top: 1px solid var(--line); }
.co__facts dt { font-size: .85rem; color: var(--ink-3); }
.co__facts dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.3; }
.co__fig figure { margin: 0; }
.co__fig svg { width: 100%; height: auto; }
.co__fig figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 860px) { .co { grid-template-columns: 1fr; } .co__fig { order: -1; max-width: 520px; } }
@media (max-width: 480px) { .co__facts { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--navy); max-width: 13ch; }
.contact__text > p { margin-top: 1.2rem; color: var(--ink-2); max-width: 30rem; }
.contact__mail { display: inline-block; margin-top: 1.8rem; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--navy); padding-bottom: .1rem; }
.contact__mail:hover { color: var(--brass); border-color: var(--brass); }
.contact__where { margin-top: 1.4rem; font-size: .95rem; color: var(--ink-3); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .35rem; font-size: .88rem; color: var(--ink-2); }
.form label small { color: var(--ink-3); }
.form input, .form select, .form textarea { width: 100%; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: 1rem; color: var(--ink); transition: border-color .2s, background-color .2s; }
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: var(--card); }
.form [aria-invalid="true"] { border-color: #a63a2a; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .3rem; }
.form__foot p { font-size: .82rem; color: var(--ink-3); flex: 1 1 16rem; }
.form__status { grid-column: 1 / -1; font-size: .92rem; color: var(--navy); min-height: 1.4em; }
.form__status.is-err { color: #a63a2a; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--navy-d); color: var(--on-navy-2); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .92rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.foot__brand { display: flex; align-items: center; gap: .8rem; color: var(--on-navy); text-decoration: none; }
.foot__brand .brand__iso { fill: var(--on-navy); width: 40px; height: 32px; }
.foot__brand .brand__word { width: 136px; height: 27px; }
.foot__legal { margin-top: 1.2rem; max-width: 26rem; line-height: 1.6; }
.foot h2 { font: 600 .95rem/1.3 var(--sans); color: var(--on-navy); margin-bottom: .8rem; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-navy); }
.foot__base { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(241, 238, 230, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .84rem; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- legal page ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--navy); }
.legal h2 { font-size: 1.55rem; color: var(--navy); margin-top: 2.4rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-top: .9rem; }
.legal ul { padding-left: 1.2rem; }
.legal .upd { margin-top: .8rem; font-size: .9rem; color: var(--ink-3); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
