/* ==========================================================================
   Gold Star Bullion Security — the gilt-edged bearer certificate
   FACE colourway: the public site. REVERSE colourway lives in portal.css.
   ========================================================================== */

:root{
  /* Brand: black wordmark, #EAB41E star. No green anywhere. */
  --ink:          #0A0908;
  --ink-2:        #26231E;
  --field:        #141311;   /* the plate: warm charcoal, never pure black */
  --field-deep:   #0C0B0A;   /* bar, masthead, footer */
  --field-band:   #1A1815;   /* alternating dark band */
  --field-lift:   #232019;
  --field-line:   #35312A;

  /* Stock */
  --tint:         #F1F1F0;
  --tint-2:       #E6E6E4;
  --tint-3:       #DCDCD9;

  /* The two inks struck on the plate */
  --gilt:         #EAB41E;   /* the brand gold, straight off the logo */
  --gilt-lift:    #F6C948;
  --gilt-deep:    #8A6A0F;
  --carmine:      #B4241A;
  --carmine-lift: #D9402F;   /* marks, rules, borders */
  --carmine-text: #F0907F;   /* carmine as TEXT on the plate */

  /* Text on the plate, tinted from the ground, never flat grey */
  --on-field:      #F5F3EE;
  --on-field-soft: #B5AFA2;
  --on-field-mute: #8B8578;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Libre Franklin", "Franklin Gothic", Helvetica, Arial, sans-serif;
  --figure:  "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Measure and rhythm */
  --measure: 68ch;
  --page:    min(1240px, 100% - 3rem);
  --rule:    1px;

  /* Press and register */
  --press:  180ms cubic-bezier(.16,1,.3,1);
  --press-slow: 260ms cubic-bezier(.16,1,.3,1);

  --shadow-plate: 0 1px 0 rgba(255,255,255,.04), 0 14px 34px -18px rgba(0,0,0,.8);
  --shadow-lift:  0 2px 2px -1px rgba(0,0,0,.5), 0 22px 48px -24px rgba(0,0,0,.9);
}

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

html{
  -webkit-text-size-adjust:100%;
  scrollbar-color: var(--gilt) var(--field-deep);
  scrollbar-width: thin;
}

body{
  margin:0;
  background:var(--field);
  color:var(--on-field);
  font-family:var(--body);
  font-size:clamp(15px,.4vw + 14px,16.5px);
  line-height:1.62;
  font-weight:380;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* The safety tint printed under everything: the guilloche ground at 4%. */
body::before{
  content:"";
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.030) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-115deg, rgba(255,255,255,.022) 0 1px, transparent 1px 11px);
  opacity:.9;
}
body > *{ position:relative; z-index:1; }

/* ---- Browser surfaces --------------------------------------------------- */
::selection{ background:var(--carmine); color:#fff; }
::-moz-selection{ background:var(--carmine); color:#fff; }
input,textarea,select{ caret-color:var(--carmine); }

::-webkit-scrollbar{ width:12px; height:12px; }
::-webkit-scrollbar-track{ background:var(--field-deep); }
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--gilt-lift),var(--gilt) 45%,var(--gilt-deep));
  border:3px solid var(--field-deep); border-radius:99px;
}
::-webkit-scrollbar-thumb:hover{ background:var(--gilt-lift); }

:focus-visible{
  outline:2px solid var(--gilt-lift);
  outline-offset:2px;
  border-radius:1px;
}

a{ color:inherit; text-decoration-thickness:from-font; text-underline-offset:.18em; }
a:hover{ text-decoration-color:var(--gilt); }

/* ---- Type --------------------------------------------------------------- */
h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:620;
  /* Slightly expanded: the logo's caps are wide, and the display face answers it. */
  font-stretch:110%;
  font-variation-settings:"wdth" 110;
  line-height:1.02;
  letter-spacing:-.022em;
  text-wrap:balance;
  margin:0 0 .5em;
}
h1{ font-size:clamp(2.3rem,4.7vw,4.05rem); font-weight:680; letter-spacing:-.032em; }
h2{ font-size:clamp(1.7rem,3vw,2.6rem); font-weight:650; letter-spacing:-.028em; }
h3{ font-size:clamp(1.14rem,1.5vw,1.44rem); letter-spacing:-.018em; }
h4{ font-size:1.02rem; font-family:var(--body); font-weight:640; font-stretch:100%; font-variation-settings:normal; letter-spacing:0; line-height:1.35; }

p{ margin:0 0 1.15em; max-width:var(--measure); }
p:last-child{ margin-bottom:0; }

.lede{ font-size:clamp(1.06rem,1.15vw,1.24rem); color:var(--on-field); line-height:1.56; max-width:60ch; }
.soft{ color:var(--on-field-soft); }

/* Spaced small caps: the field label, as printed on the document. */
.label{
  font-family:var(--body);
  font-size:.66rem;
  font-weight:620;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--on-field-mute);
  display:block;
  margin:0 0 .38rem;
}

/* Every figure. Tabular by law. */
.fig,.figure,td.num,th.num,.stat b{
  font-family:var(--figure);
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  letter-spacing:-.02em;
}
.fig-gilt{ color:var(--gilt-lift); }
.fig-carmine{ color:var(--carmine-text); }

/* ---- Page furniture ----------------------------------------------------- */
.wrap{ width:var(--page); margin-inline:auto; }

/* The gilt edge of the document, at page scale, once. */
.gilt-edge{
  position:fixed; top:0; left:0; right:0; height:3px; z-index:60;
  background:linear-gradient(90deg,var(--gilt-deep),var(--gilt-lift) 18%,var(--gilt) 34%,var(--gilt-lift) 52%,var(--gilt-deep) 72%,var(--gilt) 88%,var(--gilt-lift));
}

.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--gilt); color:var(--ink); padding:.7rem 1.1rem;
  font-weight:640; font-size:.85rem;
}
.skip:focus{ left:1rem; top:1rem; }

/* ---- Contact bar -------------------------------------------------------- */
.bar{
  background:var(--field-deep);
  border-bottom:var(--rule) solid rgba(234,180,30,.24);
  font-size:.76rem;
}
.bar .wrap{ display:flex; gap:1.6rem; align-items:center; justify-content:space-between; min-height:38px; flex-wrap:wrap; padding-block:.35rem; }
.bar-lines{ display:flex; gap:1.5rem; flex-wrap:wrap; align-items:center; }
.bar a{ color:var(--on-field-soft); text-decoration:none; display:inline-flex; gap:.45rem; align-items:center; }
.bar a:hover{ color:var(--gilt-lift); }
.bar .fig{ color:var(--on-field); }
.bar svg{ width:13px; height:13px; flex:none; opacity:.7; }

/* ---- Masthead ----------------------------------------------------------- */
.masthead{
  background:var(--field-deep);
  border-bottom:var(--rule) solid var(--field-line);
  position:sticky; top:0; z-index:50;
}
.masthead .wrap{ display:flex; align-items:center; gap:1.5rem; min-height:76px; }

.mark{ display:flex; align-items:center; gap:.85rem; text-decoration:none; flex:none; }
.mark-seal{ width:42px; height:42px; color:var(--gilt); flex:none; }
.mark-text{ display:flex; flex-direction:column; line-height:1; }
.mark-name{
  font-family:var(--display); font-weight:660;
  font-size:1.12rem; letter-spacing:-.01em; color:var(--on-field);
}
.mark-sub{
  font-family:var(--figure); font-size:.58rem; letter-spacing:.24em;
  text-transform:uppercase; color:var(--gilt); margin-top:.34rem;
}

.nav{ margin-left:auto; display:flex; align-items:center; gap:.15rem; }
.nav a{
  display:block; padding:.62rem .78rem; font-size:.83rem; font-weight:500;
  color:var(--on-field-soft); text-decoration:none; border-radius:2px;
  transition:color var(--press), background var(--press);
  white-space:nowrap;
}
.nav a:hover{ color:var(--on-field); background:rgba(255,255,255,.05); }
.nav a[aria-current="page"]{ color:var(--on-field); box-shadow:inset 0 -2px 0 var(--gilt); }

.nav-group{ position:relative; }
.nav-group > button{
  font:inherit; font-size:.83rem; font-weight:500; color:var(--on-field-soft);
  background:none; border:0; cursor:pointer; padding:.62rem .78rem;
  display:inline-flex; align-items:center; gap:.35rem; border-radius:2px;
  transition:color var(--press), background var(--press);
}
.nav-group > button:hover{ color:var(--on-field); background:rgba(255,255,255,.05); }
.nav-group > button svg{ width:9px; height:9px; transition:transform var(--press); }
.nav-group[data-open="true"] > button svg{ transform:rotate(180deg); }
.nav-menu{
  position:absolute; top:calc(100% + 6px); left:0; min-width:210px;
  background:var(--field-deep); border:var(--rule) solid var(--field-line);
  box-shadow:var(--shadow-lift); padding:.3rem; display:none; z-index:60;
}
.nav-group[data-open="true"] .nav-menu{ display:block; }
.nav-menu a{ padding:.55rem .7rem; font-size:.82rem; }

.nav-vault{
  margin-left:.6rem; padding:.6rem 1.1rem !important;
  border:var(--rule) solid var(--gilt); color:var(--gilt-lift) !important;
  font-weight:600; letter-spacing:.05em; font-size:.76rem !important; text-transform:uppercase;
}
.nav-vault:hover{ background:var(--gilt) !important; color:var(--ink) !important; }

.nav-toggle{
  display:none; margin-left:auto; background:none; border:var(--rule) solid var(--field-line);
  color:var(--on-field); width:42px; height:38px; cursor:pointer; align-items:center; justify-content:center;
}
.nav-toggle svg{ width:18px; height:18px; }

/* ---- The spot strip: no figure floats ----------------------------------- */
.spot{
  background:var(--field-deep);
  border-bottom:var(--rule) solid rgba(234,180,30,.3);
  overflow:hidden;
}
.spot .wrap{ display:grid; grid-template-columns:repeat(5,1fr); gap:0; }
.spot-cell{
  padding:.85rem 1.1rem;
  border-right:var(--rule) solid rgba(234,180,30,.16);
  display:flex; flex-direction:column; gap:.15rem; min-width:0;
}
.spot-cell:first-child{ padding-left:0; }
.spot-cell:last-child{ border-right:0; padding-right:0; }
.spot-name{
  font-family:var(--figure); font-size:.6rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--on-field-mute); display:flex; align-items:baseline; gap:.4rem;
}
.spot-name b{ color:var(--gilt); font-weight:500; }
.spot-val{
  font-family:var(--figure); font-variant-numeric:tabular-nums;
  font-size:1.06rem; color:var(--gilt-lift); letter-spacing:-.02em; font-weight:500;
}
.spot-val.plain{ color:var(--on-field); }
.spot-chg{ font-family:var(--figure); font-size:.68rem; font-variant-numeric:tabular-nums; }
.spot-chg[data-dir="up"]{ color:#5FBF86; }
.spot-chg[data-dir="down"]{ color:var(--carmine-text); }
.spot-chg[data-dir="flat"]{ color:var(--on-field-mute); }
.spot-note{
  grid-column:1/-1; padding:.5rem 0 .7rem; border-top:var(--rule) solid rgba(234,180,30,.12);
  font-size:.68rem; color:var(--on-field-mute);
  display:flex; gap:.55rem; align-items:baseline; flex-wrap:nowrap;
}
.spot-note svg{ flex:none; translate:0 2px; }
.spot-note > span{ flex:1 1 auto; min-width:0; }
.spot-note .fig{ color:var(--on-field-soft); }

/* ---- The certificate face ----------------------------------------------- */
.certificate{
  position:relative;
  padding:clamp(2.6rem,5vw,4.6rem) 0 clamp(3rem,5vw,4.4rem);
  border-bottom:var(--rule) solid var(--field-line);
  overflow:hidden;
}
.cert-border{
  position:absolute; inset:clamp(.9rem,1.6vw,1.6rem);
  border:var(--rule) solid rgba(234,180,30,.34);
  pointer-events:none;
}
.cert-border::after{
  content:""; position:absolute; inset:5px;
  border:var(--rule) solid rgba(234,180,30,.16);
}
.cert-rosette{
  position:absolute; right:-9%; top:50%; translate:0 -50%;
  width:min(720px,66vw); aspect-ratio:1; color:var(--gilt);
  opacity:.30; pointer-events:none;
}
.cert-rosette svg{ width:100%; height:100%; }

.cert-grid{
  position:relative;
  display:grid; grid-template-columns:1fr minmax(290px,352px); gap:clamp(2rem,3.4vw,3.4rem);
  align-items:start;
}
.cert-issue{
  display:flex; gap:1.6rem; flex-wrap:wrap; align-items:baseline;
  padding-bottom:1.1rem; margin-bottom:1.6rem;
  border-bottom:var(--rule) solid rgba(234,180,30,.26);
  font-family:var(--figure); font-size:.64rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--on-field-mute);
}
.cert-issue b{ color:var(--gilt); font-weight:500; }

.cert h1{ margin-bottom:.34em; }
.cert h1 .thin{ font-weight:500; font-style:italic; color:var(--gilt-lift); letter-spacing:-.026em; }

.cert-terms{
  margin-top:2.1rem; display:grid; gap:0;
  border-top:var(--rule) solid rgba(234,180,30,.26);
  max-width:60ch;
}
.cert-term{
  display:grid; grid-template-columns:minmax(120px,1fr) 2fr; gap:1.4rem;
  padding:.72rem 0; border-bottom:var(--rule) solid rgba(234,180,30,.14);
  font-size:.9rem;
}
.cert-term dt{
  font-family:var(--body); font-size:.64rem; font-weight:620; letter-spacing:.2em;
  text-transform:uppercase; color:var(--on-field-mute); padding-top:.2em;
}
.cert-term dd{ margin:0; color:var(--on-field); }

/* ---- The counterfoil: one slot, three registered objects ---------------- */
.counterfoil{
  background:var(--field-deep);
  border:var(--rule) solid rgba(234,180,30,.4);
  box-shadow:var(--shadow-lift);
  position:relative;
}
.counterfoil::before{
  /* the perforation */
  content:""; position:absolute; left:0; right:0; top:-1px; height:1px;
  background-image:radial-gradient(circle,var(--gilt) 1px,transparent 1.4px);
  background-size:9px 1px; opacity:.55;
}
.cf-head{
  padding:1rem 1.4rem .85rem;
  border-bottom:var(--rule) solid rgba(234,180,30,.28);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.cf-head span{
  font-family:var(--figure); font-size:.62rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--gilt-lift);
}
.cf-body{ padding:1.4rem; }
.cf-body > p{ font-size:.86rem; color:var(--on-field-soft); margin-bottom:1.1rem; }

.slot{ position:relative; display:flex; }
.slot input{
  flex:1; min-width:0;
  font-family:var(--figure); font-size:1rem; font-variant-numeric:tabular-nums;
  letter-spacing:.04em; text-transform:uppercase;
  padding:.92rem 1rem; color:var(--on-field);
  background:#0A0908;
  border:var(--rule) solid var(--field-line); border-right:0;
  transition:border-color var(--press), background var(--press);
}
.slot input::placeholder{ color:var(--on-field-mute); letter-spacing:.04em; }
.slot input:focus{ outline:none; border-color:var(--gilt); background:#070606; }
.slot:focus-within{ outline:2px solid var(--gilt-lift); outline-offset:2px; }
.slot button{
  font:inherit; font-family:var(--body); font-weight:640; font-size:.74rem;
  letter-spacing:.14em; text-transform:uppercase;
  padding:.92rem 1.15rem; cursor:pointer; white-space:nowrap;
  background:var(--gilt); color:var(--ink);
  border:var(--rule) solid var(--gilt);
  transition:background var(--press), color var(--press);
}
.slot button:hover{ background:var(--gilt-lift); }
.slot button:active{ background:var(--gilt-deep); color:var(--on-field); }

.cf-kinds{
  margin:1.1rem 0 0; padding:0; list-style:none;
  display:grid; gap:.42rem;
  font-size:.75rem; color:var(--on-field-mute);
}
.cf-kinds li{ display:grid; grid-template-columns:auto 1fr; gap:.7rem; align-items:baseline; }
.cf-kinds code{
  font-family:var(--figure); font-size:.72rem; color:var(--gilt-lift);
  letter-spacing:.02em; background:none;
}
.cf-foot{
  padding:.85rem 1.4rem; border-top:var(--rule) solid rgba(234,180,30,.2);
  font-size:.72rem; color:var(--on-field-mute);
  display:flex; gap:.6rem; align-items:center;
}
.cf-foot svg{ width:13px; height:13px; flex:none; color:var(--gilt-lift); }

/* ---- Guilloche ---------------------------------------------------------- */
.guilloche-band{ display:block; width:100%; height:44px; color:var(--gilt); opacity:.5; }
.rule-band{ margin:0; padding:0; border:0; }
.guilloche-rosette{ width:100%; height:100%; display:block; }

/* The trace: a guilloche-weight line on a drawn ten-division scale. */
.trace{ display:block; width:100%; height:132px; }
.trace-graticule line{ stroke:var(--gilt); }
.trace-echo{ stroke:var(--gilt); }
.trace-line{ stroke:var(--gilt-lift); stroke-linecap:round; stroke-linejoin:round; }
.trace-head{ fill:var(--gilt-lift); stroke:var(--field-deep); stroke-width:1.2; }

/* ---- Sections ----------------------------------------------------------- */
.section{ padding:clamp(3.2rem,6vw,5.6rem) 0; }
.section--deep{ background:var(--field-band); border-block:var(--rule) solid var(--field-line); }
.section-head{ max-width:62ch; margin-bottom:clamp(2rem,3.4vw,3rem); }
.section-head p{ color:var(--on-field-soft); }

/* Clauses: services printed as numbered terms, because a clause reference is
   information the reader uses when they ring up. */
.clauses{ counter-reset:clause; display:grid; gap:0; border-top:var(--rule) solid rgba(234,180,30,.24); }
.clause{
  display:grid; grid-template-columns:auto minmax(0,22ch) minmax(0,1fr) auto;
  gap:clamp(1rem,2.4vw,2.4rem); align-items:start;
  padding:clamp(1.4rem,2.2vw,1.9rem) 0;
  border-bottom:var(--rule) solid rgba(234,180,30,.16);
  text-decoration:none; color:inherit;
  transition:background var(--press);
  position:relative;
}
.clause:hover{ background:rgba(255,255,255,.035); }
.clause:hover .clause-go{ color:var(--gilt-lift); transform:translateX(3px); }
.clause-no{
  counter-increment:clause;
  font-family:var(--figure); font-size:.7rem; color:var(--carmine-text);
  font-variant-numeric:tabular-nums; padding-top:.42em; min-width:3.2ch;
}
.clause-no::before{ content:"§ " counter(clause,decimal-leading-zero); }
.clause h3{ margin:0 0 .28rem; font-size:clamp(1.28rem,1.8vw,1.7rem); }
.clause-tag{
  font-family:var(--figure); font-size:.6rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--on-field-mute);
}
.clause p{ margin:0; font-size:.92rem; color:var(--on-field-soft); max-width:52ch; }
.clause-go{ color:var(--gilt); padding-top:.5em; transition:color var(--press), transform var(--press); }
.clause-go svg{ width:18px; height:18px; display:block; }

/* ---- Panels (the ruled data panel on stock) ----------------------------- */
.panel{
  background:var(--field-deep);
  border:var(--rule) solid var(--field-line);
  box-shadow:var(--shadow-plate);
}
.panel-head{
  padding:.9rem 1.2rem; border-bottom:var(--rule) solid var(--field-line);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.panel-head h3{ margin:0; font-size:1.05rem; }
.panel-head .label{ margin:0; }
.panel-body{ padding:1.2rem; }

/* ---- Buttons ------------------------------------------------------------ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  font-family:var(--body); font-weight:620; font-size:.78rem;
  letter-spacing:.13em; text-transform:uppercase;
  padding:.86rem 1.5rem; cursor:pointer; text-decoration:none;
  border:var(--rule) solid transparent; background:none;
  transition:background var(--press), color var(--press), border-color var(--press), box-shadow var(--press);
}
.btn svg{ width:15px; height:15px; }
.btn-gilt{ background:var(--gilt); color:var(--ink); border-color:var(--gilt); }
.btn-gilt:hover{ background:var(--gilt-lift); border-color:var(--gilt-lift); }
.btn-gilt:active{ background:var(--gilt-deep); color:var(--on-field); }
.btn-line{ border-color:rgba(234,180,30,.55); color:var(--gilt-lift); }
.btn-line:hover{ border-color:var(--gilt); background:rgba(234,180,30,.12); }
.btn-quiet{ color:var(--on-field-soft); border-color:var(--field-line); }
.btn-quiet:hover{ color:var(--on-field); border-color:var(--on-field-mute); }
.btn:disabled,.btn[aria-disabled="true"]{ opacity:.45; cursor:not-allowed; }
.btn-row{ display:flex; gap:.75rem; flex-wrap:wrap; margin-top:1.8rem; }

/* ---- Forms -------------------------------------------------------------- */
.field{ margin-bottom:1.15rem; }
.field label{
  display:block; font-size:.66rem; font-weight:620; letter-spacing:.2em;
  text-transform:uppercase; color:var(--on-field-mute); margin-bottom:.4rem;
}
.field .req{ color:var(--carmine-text); }
.input,.field input,.field select,.field textarea{
  width:100%; font-family:var(--body); font-size:.95rem; color:var(--on-field);
  background:var(--field-deep); border:var(--rule) solid var(--field-line);
  padding:.76rem .9rem; transition:border-color var(--press), background var(--press);
}
.field input::placeholder,.field textarea::placeholder{ color:var(--on-field-mute); }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--gilt); background:#0A0908;
  box-shadow:0 0 0 2px rgba(234,180,30,.22);
}
.field textarea{ min-height:150px; resize:vertical; line-height:1.6; }
.field .hint{ font-size:.74rem; color:var(--on-field-mute); margin-top:.36rem; }
.field .err{ font-size:.76rem; color:var(--carmine-text); margin-top:.36rem; display:flex; gap:.4rem; align-items:center; }
.field.has-error input,.field.has-error textarea,.field.has-error select{ border-color:var(--carmine-lift); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:1.15rem; }

/* ---- Notices ------------------------------------------------------------ */
.notice{
  display:grid; grid-template-columns:auto 1fr; gap:.85rem; align-items:start;
  padding:.95rem 1.15rem; margin-bottom:1.4rem; font-size:.88rem;
  border:var(--rule) solid;
}
.notice svg{ width:17px; height:17px; margin-top:.12em; flex:none; }
.notice-ok{ border-color:rgba(99,192,142,.5); background:rgba(99,192,142,.1); color:#BFE6D1; }
.notice-err{ border-color:rgba(217,64,47,.55); background:rgba(180,36,26,.16); color:#F2C2C7; }
.notice-info{ border-color:rgba(234,180,30,.45); background:rgba(234,180,30,.1); color:#E8D8AE; }

/* ---- Tables ------------------------------------------------------------- */
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
table.ledger{ width:100%; border-collapse:collapse; font-size:.86rem; }
table.ledger th,table.ledger td{
  padding:.68rem .8rem; text-align:left; vertical-align:top;
  border-bottom:var(--rule) solid rgba(234,180,30,.16);
}
table.ledger th{
  font-family:var(--body); font-size:.62rem; font-weight:620; letter-spacing:.16em;
  text-transform:uppercase; color:var(--on-field-mute); white-space:nowrap;
  border-bottom-color:rgba(234,180,30,.4);
}
table.ledger td.num,table.ledger th.num{ text-align:right; font-family:var(--figure); font-variant-numeric:tabular-nums; }
table.ledger tbody tr:hover{ background:rgba(255,255,255,.03); }
table.ledger tbody tr:last-child td{ border-bottom:0; }

/* A changed row moves and stays lit until it has been noticed. */
tr[data-unseen="1"]{ background:rgba(180,36,26,.10); }
tr[data-unseen="1"] td:first-child{ box-shadow:inset 3px 0 0 var(--carmine); }
.unseen-mark{
  font-family:var(--figure); font-size:.6rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--carmine-text); border:var(--rule) solid rgba(217,64,47,.55);
  padding:.1rem .35rem; margin-left:.5rem; white-space:nowrap;
}

/* ---- Status ------------------------------------------------------------- */
.status{
  display:inline-flex; align-items:center; gap:.45rem;
  font-family:var(--body); font-size:.68rem; font-weight:600; letter-spacing:.1em;
  text-transform:uppercase; white-space:nowrap;
  padding:.22rem .55rem; border:var(--rule) solid;
}
.status::before{ content:""; width:6px; height:6px; flex:none; }
.status[data-tone="settled"]{ color:#8FD9A8; border-color:rgba(143,217,179,.45); }
.status[data-tone="settled"]::before{ background:#8FD9A8; border-radius:99px; }
.status[data-tone="moving"]{ color:var(--gilt-lift); border-color:rgba(217,188,106,.45); }
.status[data-tone="moving"]::before{ background:var(--gilt-lift); }
.status[data-tone="stopped"]{ color:#F0A8B0; border-color:rgba(217,64,47,.5); }
.status[data-tone="stopped"]::before{ background:var(--carmine-lift); rotate:45deg; }

/* ---- The blank: evidence not yet supplied ------------------------------- */
.blank{
  display:inline-flex; align-items:baseline; gap:.55rem;
  font-family:var(--figure); font-size:.74rem; color:var(--on-field-mute);
  letter-spacing:.06em;
}
.blank::before{
  content:""; display:inline-block; width:6.5ch; height:1px;
  background:repeating-linear-gradient(90deg,var(--on-field-mute) 0 4px,transparent 4px 7px);
  translate:0 -.28em;
}
.credentials{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:0;
  border:var(--rule) solid rgba(234,180,30,.24);
}
.credentials div{
  padding:1.05rem 1.2rem;
  border-right:var(--rule) solid rgba(234,180,30,.16);
  border-bottom:var(--rule) solid rgba(234,180,30,.16);
}
.credentials div:last-child{ border-right:0; }

/* ---- Prose pages -------------------------------------------------------- */
.prose{ max-width:var(--measure); }
.prose h2{ margin-top:2.6rem; font-size:clamp(1.5rem,2.2vw,2rem); }
.prose h2:first-child{ margin-top:0; }
.prose h3{ margin-top:2rem; }
.prose ul,.prose ol{ padding-left:1.15rem; margin:0 0 1.15em; }
.prose li{ margin-bottom:.44em; }
.prose li::marker{ color:var(--gilt); }
.prose strong{ font-weight:640; color:var(--on-field); }
.prose .fig{ color:var(--gilt-lift); }
.prose blockquote{
  margin:1.6rem 0; padding:.2rem 0 .2rem 1.3rem;
  border-left:1px solid var(--gilt); color:var(--on-field-soft); font-style:italic;
}

/* Definition tables used across the freight pages */
.spec{ width:100%; border-collapse:collapse; margin:1.4rem 0; font-size:.88rem; }
.spec th,.spec td{ padding:.62rem .8rem; text-align:left; border-bottom:var(--rule) solid rgba(234,180,30,.16); }
.spec th{
  font-size:.62rem; font-weight:620; letter-spacing:.16em; text-transform:uppercase;
  color:var(--on-field-mute); border-bottom-color:rgba(234,180,30,.4); white-space:nowrap;
}
.spec td.num{ text-align:right; font-family:var(--figure); font-variant-numeric:tabular-nums; color:var(--gilt-lift); }

/* ---- Page head ---------------------------------------------------------- */
.pagehead{
  padding:clamp(2.4rem,4.2vw,3.8rem) 0 clamp(1.8rem,3vw,2.6rem);
  border-bottom:var(--rule) solid var(--field-line);
  background:var(--field-deep);
  position:relative; overflow:hidden;
}
.pagehead .wrap{ position:relative; }
.pagehead h1{ font-size:clamp(2.1rem,4.4vw,3.5rem); margin-bottom:.3em; }
.pagehead p{ color:var(--on-field-soft); max-width:58ch; margin:0; }
.crumbs{
  font-family:var(--figure); font-size:.63rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--on-field-mute); margin-bottom:1.1rem; display:flex; gap:.5rem; flex-wrap:wrap;
}
.crumbs a{ color:var(--gilt); text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }
.pagehead-rosette{
  position:absolute; right:-6%; top:50%; translate:0 -50%;
  width:min(420px,44vw); aspect-ratio:1; color:var(--gilt); opacity:.20; pointer-events:none;
}

/* ---- Footer ------------------------------------------------------------- */
.foot{ background:var(--field-deep); border-top:var(--rule) solid var(--field-line); }
.foot-top{ padding:clamp(2.6rem,4.5vw,3.8rem) 0; }
.foot-grid{
  display:grid; grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(140px,1fr));
  gap:clamp(1.6rem,3vw,3rem);
}
.foot h4{
  font-size:.64rem; font-weight:620; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gilt); margin:0 0 1rem;
}
.foot ul{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.foot a{ color:var(--on-field-soft); text-decoration:none; font-size:.86rem; }
.foot a:hover{ color:var(--gilt-lift); }
.foot address{ font-style:normal; font-size:.86rem; color:var(--on-field-soft); line-height:1.75; }

.subscribe{ margin-top:1.3rem; }
.subscribe form{ display:flex; max-width:340px; }
.subscribe input{
  flex:1; min-width:0; font-family:var(--body); font-size:.85rem;
  padding:.68rem .8rem; background:var(--field); color:var(--on-field);
  border:var(--rule) solid var(--field-line); border-right:0;
}
.subscribe input:focus{ outline:none; border-color:var(--gilt); }
.subscribe form:focus-within{ outline:2px solid var(--gilt-lift); outline-offset:2px; }
.subscribe button{
  font-family:var(--body); font-size:.68rem; font-weight:640; letter-spacing:.12em;
  text-transform:uppercase; padding:.68rem .95rem; cursor:pointer;
  background:var(--gilt); color:var(--ink); border:var(--rule) solid var(--gilt);
}
.subscribe button:hover{ background:var(--gilt-lift); }
.subscribe p{ font-size:.74rem; color:var(--on-field-mute); margin:.55rem 0 0; }

/* Microtext, as printed on the real instrument. */
.microtext{
  overflow:hidden; white-space:nowrap; user-select:none;
  font-family:var(--figure); font-size:6px; letter-spacing:.32em; text-transform:uppercase;
  color:var(--gilt); opacity:.42; line-height:1.9; padding:.4rem 0;
  border-top:var(--rule) solid rgba(234,180,30,.18);
  border-bottom:var(--rule) solid rgba(234,180,30,.18);
}
.foot-base{
  padding:1.1rem 0 1.6rem; font-size:.76rem; color:var(--on-field-mute);
  display:flex; gap:1.2rem; justify-content:space-between; flex-wrap:wrap; align-items:center;
}
.foot-base a{ font-size:.76rem; }
.foot-base .studio{ color:var(--on-field-mute); }
.foot-base .studio a{ color:var(--gilt); }

/* ---- Print -------------------------------------------------------------- */
@media print{
  body{ background:#fff; color:#000; }
  body::before,.bar,.masthead,.spot,.foot,.gilt-edge,.counterfoil{ display:none !important; }
  .certificate,.section,.pagehead{ border:0; padding:1rem 0; background:none; }
  a{ text-decoration:none; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width:1080px){
  .cert-grid{ grid-template-columns:1fr; }
  .cert-rosette{ right:-24%; opacity:.13; }
  .spot .wrap{ grid-template-columns:repeat(2,1fr); }
  .spot-cell{ border-bottom:var(--rule) solid rgba(234,180,30,.14); }
  .spot-cell:nth-child(2n){ border-right:0; padding-right:0; }
  .spot-cell:nth-child(2n+1){ padding-left:0; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  :root{ --page:min(1240px,100% - 2rem); }
  .nav-toggle{ display:inline-flex; }
  .nav{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0; padding:.5rem;
    background:var(--field-deep); border-bottom:var(--rule) solid var(--field-line);
    box-shadow:var(--shadow-lift); max-height:calc(100dvh - 76px); overflow-y:auto;
  }
  .masthead[data-nav="open"] .nav{ display:flex; }
  .nav a{ padding:.8rem .7rem; font-size:.92rem; }
  .nav-group{ position:static; }
  .nav-group > button{ width:100%; justify-content:space-between; padding:.8rem .7rem; font-size:.92rem; }
  .nav-menu{
    position:static; display:none; border:0; box-shadow:none; background:none;
    padding:0 0 .4rem .9rem; border-left:1px solid var(--field-line); margin-left:.7rem;
  }
  .nav-vault{ margin:.5rem 0 0; text-align:center; justify-content:center; }
  .clause{ grid-template-columns:auto 1fr; gap:.7rem 1.1rem; }
  .clause-tag{ grid-column:2; }
  .clause p{ grid-column:2; }
  .clause-go{ display:none; }
  .cert-term{ grid-template-columns:1fr; gap:.2rem; }
  .field-row{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .bar .wrap{ justify-content:flex-start; gap:1rem; }
  .foot-grid{ grid-template-columns:1fr; }
  .spot .wrap{ grid-template-columns:1fr 1fr; }
  .slot{ flex-direction:column; }
  .slot input{ border-right:var(--rule) solid var(--field-line); border-bottom:0; }
  /* Two buttons sharing 358px force a 2-word label onto two lines; stack them. */
  .btn-row{ flex-direction:column; align-items:stretch; }
  .btn-row .btn{ width:100%; }
}

/* ---- Motion ------------------------------------------------------------- */
@media (prefers-reduced-motion:no-preference){
  /* Scoped to .js: without scripting the plate is simply already in register,
     so content is never invisible waiting for an observer that may not run. */
  .js .register{
    opacity:0; transform:translateY(10px);
    transition:opacity var(--press-slow), transform var(--press-slow);
  }
  .js .register.struck{ opacity:1; transform:none; }
  .js .register[data-delay="1"]{ transition-delay:60ms; }
  .js .register[data-delay="2"]{ transition-delay:120ms; }
  .js .register[data-delay="3"]{ transition-delay:180ms; }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---- Utilities ---------------------------------------------------------- */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}
.stack{ display:grid; gap:1.2rem; }
.cols-2{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:clamp(1.6rem,3vw,3rem); align-items:start; }
.cols-3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:clamp(1.4rem,2.4vw,2.4rem); align-items:start; }
.mt-0{ margin-top:0 } .mb-0{ margin-bottom:0 }
.center{ text-align:center }

/* ---- Close: full-width, no panel ---------------------------------------- */
.close-grid{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) auto;
  gap:clamp(1.4rem,3vw,3rem); align-items:end;
  padding-bottom:clamp(1.8rem,3vw,2.6rem);
  border-bottom:var(--rule) solid rgba(234,180,30,.26);
}
.close-head{ margin:0; font-size:clamp(1.9rem,3.2vw,2.9rem); }
.close-body{ margin:0; color:var(--on-field-soft); font-size:.94rem; max-width:46ch; }
.close-act{ display:flex; }

/* Contact lines as a ruled row, not cards. */
.lines{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.line{
  display:block; padding:1.3rem 1.4rem 1.3rem 0; text-decoration:none;
  border-right:var(--rule) solid rgba(234,180,30,.16);
  transition:background var(--press);
}
.line:last-child{ border-right:0; }
.line:not(:first-child){ padding-left:1.4rem; }
.line:hover{ background:rgba(255,255,255,.035); }
.line .label{ margin-bottom:.5rem; }
.line-no{
  font-family:var(--figure); font-size:1.02rem; color:var(--gilt-lift);
  letter-spacing:-.02em; display:block;
}
.line:hover .line-no{ color:var(--on-field); }
.line-email{ font-family:var(--body); font-size:.9rem; letter-spacing:0; }

@media (max-width:900px){
  .close-grid{ grid-template-columns:1fr; align-items:start; }
  .lines{ grid-template-columns:1fr 1fr; }
  .line{ border-bottom:var(--rule) solid rgba(234,180,30,.16); }
  .line:nth-child(2n){ border-right:0; }
  .line:nth-child(2n+1){ padding-left:0; }
}
@media (max-width:520px){
  .lines{ grid-template-columns:1fr; }
  .line{ border-right:0; padding-left:0 !important; }
}

/* ---- Engraved vignettes -------------------------------------------------
   Steel-plate line engravings, printed as gilt ink via mask rather than
   pasted on as white rectangles. Decorative: they carry no information the
   surrounding copy does not already state, so they are aria-hidden.        */
.vignette{
  display:block; width:100%;
  background-color:var(--gilt);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain;     mask-size:contain;
  -webkit-mask-position:center;  mask-position:center;
}
.vignette-bars  { -webkit-mask-image:url("../img/engraving-bars.webp");  mask-image:url("../img/engraving-bars.webp");  aspect-ratio:1000/629; }
.vignette-vault { -webkit-mask-image:url("../img/engraving-vault.webp"); mask-image:url("../img/engraving-vault.webp"); aspect-ratio:760/797; }
.vignette-air   { -webkit-mask-image:url("../img/engraving-air.webp");   mask-image:url("../img/engraving-air.webp");   aspect-ratio:1000/472; }
.vignette-sea   { -webkit-mask-image:url("../img/engraving-sea.webp");   mask-image:url("../img/engraving-sea.webp");   aspect-ratio:1000/747; }

/* The plate: a vignette struck above the clauses, as on the document itself. */
.plate-vignette{
  display:grid; justify-items:center; gap:.8rem;
  padding-bottom:clamp(1.4rem,2.4vw,2.1rem); margin-bottom:clamp(1.4rem,2.4vw,2.1rem);
  border-bottom:var(--rule) solid rgba(234,180,30,.2);
}
/* The plate follows its section heading closely; it is part of that block. */
.section-head + .plate-vignette{ margin-top:clamp(-1.6rem,-2vw,-1rem); }
.plate-vignette .vignette{ max-width:min(620px,78%); }
.plate-vignette .guilloche-band{ max-width:min(680px,86%); height:26px; }

/* In an aside, the vignette heads the column. */
.aside-vignette{
  padding:1.4rem 1.2rem; border:var(--rule) solid rgba(234,180,30,.24);
  background:var(--field-deep);
}
.aside-vignette .vignette{ max-width:100%; margin-inline:auto; }
.aside-vignette figcaption{
  margin-top:1rem; padding-top:.9rem; border-top:var(--rule) solid rgba(234,180,30,.18);
  font-size:.76rem; color:var(--on-field-mute); text-align:center;
}

@media (max-width:860px){
  .plate-vignette .vignette{ max-width:78%; }
}

/* ==========================================================================
   THE REVERSE SIDE
   The certificate printed on safety-tint stock. Not a theme flip: it is the
   other side of the same document, and it works by re-pointing the very same
   semantic tokens every component already reads.
   ========================================================================== */
.section--tint{
  --on-field:      #141311;
  --on-field-soft: #3C3A35;
  --on-field-mute: #55524B;
  --field:         #F1F1F0;
  --field-deep:    #E6E6E4;
  --field-band:    #E6E6E4;
  --field-lift:    #DCDCD9;
  --field-line:    #CBCBC7;
  --gilt:          #7A5D0C;
  --gilt-lift:     #7A5D0C;
  --gilt-deep:     #5C450A;
  --carmine-text:  #A3160C;
  --shadow-plate:  0 1px 1px rgba(10,9,8,.05), 0 12px 30px -20px rgba(10,9,8,.45);
  --shadow-lift:   0 2px 3px -1px rgba(10,9,8,.08), 0 20px 44px -26px rgba(10,9,8,.55);

  background:var(--field);
  color:var(--on-field);
  border-block:var(--rule) solid #D8D8D4;
}
/* The stock carries the same guilloche watermark as the face, in ink not gilt. */
.section--tint::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    repeating-linear-gradient(112deg, rgba(10,9,8,.028) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-112deg, rgba(10,9,8,.020) 0 1px, transparent 1px 12px);
}
.section--tint{ position:relative; }
.section--tint > *{ position:relative; }

.section--tint .panel{ background:#fff; border-color:var(--field-line); }
.section--tint .panel-head{ background:var(--field-deep); border-bottom-color:var(--field-line); }
.section--tint .credentials,
.section--tint .credentials div{ border-color:#D8D8D4; }
.section--tint .clause{ border-bottom-color:#D8D8D4; }
.section--tint .clauses{ border-top-color:#CBCBC7; }
.section--tint .clause:hover{ background:rgba(10,9,8,.035); }
.section--tint .spec th,.section--tint .spec td{ border-bottom-color:#D8D8D4; }
.section--tint .spec th{ border-bottom-color:#CBCBC7; }
.section--tint table.ledger th{ border-bottom-color:#CBCBC7; }
.section--tint table.ledger th,.section--tint table.ledger td{ border-bottom-color:#D8D8D4; }
.section--tint .cert-terms{ border-top-color:#CBCBC7; }
.section--tint .cert-term{ border-bottom-color:#D8D8D4; }
.section--tint .prose blockquote{ border-left-color:var(--gilt); }
.section--tint .prose li::marker{ color:var(--gilt); }
.section--tint .vignette{ background-color:var(--gilt); }
.section--tint .guilloche-band{ color:var(--gilt); opacity:.34; }
.section--tint .aside-vignette{ background:#fff; border-color:var(--field-line); }

/* Buttons need explicit re-tuning: gilt-on-ink inverts to white-on-gilt. */
.section--tint .btn-gilt{ background:#7A5D0C; color:#fff; border-color:#7A5D0C; }
.section--tint .btn-gilt:hover{ background:#5C450A; border-color:#5C450A; }
.section--tint .btn-line{ border-color:#B08E2C; color:#5C450A; }
.section--tint .btn-line:hover{ background:rgba(122,94,20,.09); border-color:#7A5D0C; }
.section--tint .btn-quiet{ color:#3C3A35; border-color:#CBCBC7; }
.section--tint .btn-quiet:hover{ color:var(--ink); border-color:#55524B; }

.section--tint .field input,.section--tint .field select,.section--tint .field textarea,
.section--tint .input{ background:#fff; border-color:#CBCBC7; color:var(--ink); }
.section--tint .field input:focus,.section--tint .field select:focus,.section--tint .field textarea:focus{
  background:#fff; border-color:var(--gilt); box-shadow:0 0 0 2px rgba(122,94,20,.2);
}
.section--tint .field input::placeholder,.section--tint .field textarea::placeholder{ color:#5E7268; }

.section--tint .notice-ok{ border-color:#A7CDB8; background:#E1EFE6; color:#124A33; }
.section--tint .notice-err{ border-color:#E0A9AE; background:#FAEBEC; color:#7B0E19; }
.section--tint .notice-info{ border-color:#D5BE86; background:#F7F0DE; color:#5C450A; }

.section--tint .status[data-tone="settled"]{ color:#155F41; border-color:#9CC7AF; background:#E1EFE6; }
.section--tint .status[data-tone="settled"]::before{ background:#155F41; }
.section--tint .status[data-tone="moving"]{ color:#5C450A; border-color:#D5BE86; background:#F7F0DE; }
.section--tint .status[data-tone="moving"]::before{ background:#7A5D0C; }
.section--tint .status[data-tone="stopped"]{ color:#8E1220; border-color:#E0A9AE; background:#FAEBEC; }
.section--tint .status[data-tone="stopped"]::before{ background:#A8121F; }

.section--tint .blank::before{
  background:repeating-linear-gradient(90deg,#55524B 0 4px,transparent 4px 7px);
}
.section--tint ::selection{ background:var(--carmine); color:#fff; }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.certificate{ min-height:min(760px, 88dvh); display:flex; align-items:center; }
.certificate > .wrap{ width:var(--page); margin-inline:auto; }

.hero-media{ position:absolute; inset:0; overflow:hidden; z-index:0; background:var(--field-deep); }
.hero-slide{
  position:absolute; inset:0; opacity:0; visibility:hidden;
  transition:opacity 900ms cubic-bezier(.4,0,.2,1), visibility 0s linear 900ms;
}
.hero-slide[data-active="true"]{ opacity:1; visibility:visible; transition-delay:0s, 0s; }
.hero-slide img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  /* A light grade only. The gold has to stay gold. */
  filter:brightness(1.16) saturate(1.12) contrast(1.02);
}
/* Two scrims: one raking left for the headline, one overall to seat the image
   in the security-green world without draining the metal of its colour. */
.hero-media::after{
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:
    linear-gradient(96deg, rgba(7,6,5,.95) 0%, rgba(7,6,5,.90) 32%, rgba(6,24,17,.72) 48%, rgba(14,13,11,.30) 66%, rgba(14,13,11,.12) 84%, rgba(14,13,11,.30) 100%),
    linear-gradient(180deg, rgba(10,9,8,.50) 0%, transparent 20%, transparent 74%, rgba(10,9,8,.58) 100%);
}
.hero-media::before{
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px);
}
/* Only .wrap is in flow. The border and rosette must stay absolute, or they
   become flex items and shove the certificate content off its left margin. */
.certificate > .wrap{ position:relative; z-index:4; }
.cert-border,.cert-rosette{ z-index:4; }

/* Controls */
.hero-controls{
  position:absolute; z-index:6; right:clamp(1.6rem,3vw,2.8rem); bottom:clamp(1.6rem,3vw,2.6rem);
  display:flex; align-items:center; gap:.75rem;
}
.hero-dots{ display:flex; gap:.45rem; align-items:center; }
.hero-dot{
  width:42px; height:3px; padding:0; cursor:pointer; border:0; background:none;
  display:block; position:relative;
}
/* The rule itself is a pseudo-element scaled on the compositor: animating
   width would thrash layout on every advance. */
.hero-dot::after{
  content:""; position:absolute; inset:0;
  background:rgba(242,247,241,.34);
  transform:scaleX(.62); transform-origin:left center;
  transition:background var(--press), transform var(--press);
}
.hero-dot:hover::after{ background:rgba(242,247,241,.62); }
.hero-dot[aria-current="true"]::after{ background:var(--gilt-lift); transform:scaleX(1); }
.hero-btn{
  width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--on-field); background:rgba(8,7,6,.55);
  border:var(--rule) solid rgba(234,180,30,.45);
  transition:background var(--press), border-color var(--press), color var(--press);
}
.hero-btn:hover{ background:var(--gilt); color:var(--ink); border-color:var(--gilt); }
.hero-btn svg{ width:14px; height:14px; }
.hero-count{
  font-family:var(--figure); font-size:.66rem; letter-spacing:.14em;
  color:var(--on-field-soft); font-variant-numeric:tabular-nums; min-width:5ch;
}
.hero-caption{
  position:absolute; z-index:6; left:clamp(1.6rem,3vw,2.8rem); bottom:clamp(1.6rem,3vw,2.6rem);
  font-size:.74rem; color:var(--on-field-mute); max-width:34ch;
  border-left:1px solid rgba(234,180,30,.5); padding-left:.7rem;
}

@media (max-width:860px){
  /* Drop out of flex: a statically-positioned control bar would otherwise
     become a second flex item and squeeze the certificate off the screen. */
  .certificate{ display:block; min-height:0; }
  .hero-controls{
    position:static; width:var(--page); margin:1.6rem auto 0;
    justify-content:flex-start; flex-wrap:wrap;
  }
  .hero-caption{ display:none; }
  .hero-media::after{
    background:
      linear-gradient(180deg, rgba(8,7,6,.86) 0%, rgba(8,7,6,.80) 45%, rgba(14,13,11,.72) 100%);
  }
}
@media (prefers-reduced-motion:reduce){
  .hero-slide{ transition:none; }
}
.rot-r{ transform:rotate(90deg); }
.rot-l{ transform:rotate(-90deg); }

/* ---- Page head with a plate ---------------------------------------------- */
.pagehead--media{
  min-height:clamp(300px,38vw,430px);
  display:flex; align-items:flex-end;
  padding-top:clamp(3rem,6vw,5rem);
}
.pagehead-media{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.pagehead-media img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  filter:brightness(1.16) saturate(1.12) contrast(1.02);
}
.pagehead-media::after{
  content:""; position:absolute; inset:0;
  background:
    /* Weighted to bottom-left, because that is where the title sits. */
    linear-gradient(180deg, transparent 0%, transparent 26%, rgba(6,5,4,.52) 60%, rgba(6,5,4,.90) 100%),
    linear-gradient(96deg, rgba(7,6,5,.92) 0%, rgba(7,6,5,.82) 34%, rgba(14,13,11,.48) 60%, rgba(14,13,11,.20) 84%, rgba(14,13,11,.32) 100%),
    linear-gradient(180deg, rgba(10,9,8,.50) 0%, transparent 30%, transparent 100%);
}
.pagehead-media::before{
  content:""; position:absolute; inset:0; z-index:1;
  background-image:repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px);
}
.pagehead--media .wrap{ z-index:2; }
.pagehead--media .lede{ color:var(--on-field); }
.pagehead--media .crumbs{ color:var(--on-field-soft); }
.pagehead--media h1,.pagehead--media .lede{ text-shadow:0 1px 18px rgba(6,5,4,.55); }
.pagehead--media .pagehead-rosette{ z-index:1; opacity:.14; }

/* The counterfoil is a machined recess, not a printed panel: it keeps the face
   colourway even when it sits on the reverse stock. */
.section--tint .counterfoil{
  --on-field:      #F5F3EE;
  --on-field-soft: #B5AFA2;
  --on-field-mute: #8B8578;
  --field-deep:    #0C0B0A;
  --field-line:    #35312A;
  --gilt:          #EAB41E;
  --gilt-lift:     #F6C948;
  --carmine-text:  #EE8A93;
  color:var(--on-field);
  border-color:rgba(234,180,30,.5);
}
.section--tint .counterfoil .slot button{ background:var(--gilt); color:#16181A; border-color:var(--gilt); }
.section--tint .counterfoil .slot button:hover{ background:var(--gilt-lift); border-color:var(--gilt-lift); }
.section--tint .counterfoil .slot input{ background:#070606; border-color:var(--field-line); color:var(--on-field); }

/* ==========================================================================
   DEPOSIT CERTIFICATE — public view
   The same component the portal renders, printed on the reverse stock so it
   reads as the document it is rather than a panel.
   ========================================================================== */
.deposit{
  background:#fff; border:var(--rule) solid #CBCBC7;
  box-shadow:0 1px 1px rgba(10,9,8,.05), 0 14px 34px -22px rgba(10,9,8,.5);
  position:relative; overflow:hidden; color:#0B120E;
  --cert-ink:      #0B120E;
  --cert-ink-2:    #3C3A35;
  --cert-ink-3:    #55524B;
  --cert-line:     #DEDEDB;
  --cert-line-2:   #CBCBC7;
  --cert-stock:    #F1F1F0;
  --cert-gilt:     #7A5D0C;
}
.deposit::before{
  content:""; position:absolute; top:0; left:0; right:0; height:3px; z-index:1;
  background:linear-gradient(90deg,#8A6A0F,#F6C948 18%,#EAB41E 34%,#F6C948 52%,#8A6A0F 72%,#EAB41E 88%,#F6C948);
}
.deposit-head{
  display:flex; align-items:center; gap:1rem;
  padding:1.5rem 1.4rem 1.2rem; border-bottom:var(--rule) solid var(--cert-line-2);
  background:var(--cert-stock);
}
.deposit-seal{ width:46px; height:46px; color:var(--cert-gilt); flex:none; }
.deposit-head h2{
  margin:0; font-family:var(--display); font-size:1.24rem; font-weight:650;
  letter-spacing:-.024em; color:var(--cert-ink); line-height:1.12;
}
.deposit-head p{
  margin:.28rem 0 0; font-family:var(--figure); font-size:.62rem;
  letter-spacing:.24em; text-transform:uppercase; color:var(--cert-ink-3);
}
.deposit-head .status{ margin-left:auto; }
.deposit-head .status[data-tone="settled"]{ color:#155F41; border-color:#9CC7AF; background:#E1EFE6; }
.deposit-head .status[data-tone="settled"]::before{ background:#155F41; border-radius:99px; }
.deposit-head .status[data-tone="moving"]{ color:#5C450A; border-color:#D5BE86; background:#F7F0DE; }
.deposit-head .status[data-tone="moving"]::before{ background:#7A5D0C; }
.deposit-head .status[data-tone="stopped"]{ color:#8E1220; border-color:#E0A9AE; background:#FAEBEC; }
.deposit-head .status[data-tone="stopped"]::before{ background:#A8121F; rotate:45deg; }

.deposit-body{
  padding:1.5rem 1.4rem;
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:clamp(1.4rem,3vw,2.4rem);
  align-items:start;
}
.deposit-body--sub{ border-top:var(--rule) solid var(--cert-line-2); background:var(--cert-stock); }

.deposit-photo{ margin:0; width:clamp(150px,17vw,196px); }
.deposit-photo img{
  display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover;
  border:var(--rule) solid var(--cert-line-2); background:var(--cert-stock);
}
.deposit-photo figcaption{
  margin-top:.55rem; font-family:var(--figure); font-size:.58rem;
  letter-spacing:.18em; text-transform:uppercase; color:var(--cert-ink-3); text-align:center;
}
/* Withheld photograph: the frame is drawn, so the omission is legible. */
.deposit-photo-blank{
  aspect-ratio:1; display:grid; place-items:center;
  border:var(--rule) dashed var(--cert-line-2); background:var(--cert-stock); color:#A9A69E;
}

.deposit-fields{ margin:0; display:grid; gap:0; border-top:var(--rule) solid var(--cert-line-2); }
.deposit-fields--wide{ grid-column:1 / -1; }
.deposit-fields > div{
  display:grid; grid-template-columns:minmax(150px,.85fr) minmax(0,1.6fr); gap:1rem;
  padding:.62rem 0; border-bottom:var(--rule) solid var(--cert-line);
  font-size:.9rem; align-items:baseline;
}
.deposit-fields dt{
  font-family:var(--body); font-size:.62rem; font-weight:660; letter-spacing:.18em;
  text-transform:uppercase; color:var(--cert-ink-3);
}
.deposit-fields dd{ margin:0; color:var(--cert-ink); }
.deposit-fields .fig{ font-family:var(--figure); font-variant-numeric:tabular-nums; }
.deposit-fields .fig-gilt{ color:var(--cert-gilt); }
.deposit-fields .soft{ color:var(--cert-ink-3); }

.cert-withheld{
  display:inline-flex; align-items:center; gap:.45rem;
  font-size:.78rem; color:var(--cert-ink-3);
  padding:.16rem .5rem; border:var(--rule) dashed var(--cert-line-2); background:var(--cert-stock);
}
.cert-withheld svg{ flex:none; opacity:.8; }

.deposit-foot{ padding:1.2rem 1.4rem 1.5rem; border-top:var(--rule) solid var(--cert-line-2); }
.deposit-foot p{ font-size:.8rem; color:var(--cert-ink-2); margin:0 0 .8rem; max-width:none; }
.deposit-foot a{ color:var(--cert-gilt); }
.deposit-note,.deposit-warn{
  display:grid; grid-template-columns:auto 1fr; gap:.7rem; align-items:start;
  padding:.85rem 1rem; font-size:.83rem !important;
}
.deposit-note{ border:var(--rule) solid #CBCBC7; background:var(--cert-stock); color:var(--cert-ink-2); }
.deposit-warn{ border:var(--rule) solid #E0A9AE; background:#FAEBEC; color:#7B0E19; }
.deposit-note svg,.deposit-warn svg{ margin-top:.15em; flex:none; }
.deposit-warn a{ color:#7B0E19; }
.deposit-issued{ font-size:.74rem !important; color:var(--cert-ink-3) !important; margin-bottom:0 !important; }

@media (max-width:720px){
  .deposit-body{ grid-template-columns:1fr; }
  .deposit-photo{ width:min(190px,55%); }
  .deposit-fields > div{ grid-template-columns:1fr; gap:.2rem; }
}

/* ---- Brand mark ---------------------------------------------------------- */
.brand-mark{ display:block; width:auto; height:auto; max-width:100%; }
.mark{ gap:0; }
.mark .brand-mark{ height:38px; width:auto; }
.foot .mark .brand-mark{ height:34px; }
@media (max-width:860px){ .mark .brand-mark{ height:32px; } }

/* ---- Compliance pages ---------------------------------------------------- */
.legal{
  display:grid; grid-template-columns:minmax(210px,250px) minmax(0,1fr);
  gap:clamp(2rem,4vw,4rem); align-items:start;
}
/* Grid items default to min-width:auto, so a wide table would push the column
   open and scroll the whole page instead of scrolling inside its own wrapper. */
.legal > *{ min-width:0; }
.legal-body .table-scroll{ max-width:100%; }
.legal-body .spec{ min-width:34rem; }
.legal-aside{ position:sticky; top:96px; }
.legal-nav{ display:grid; gap:0; border-top:var(--rule) solid var(--field-line); }
.legal-nav a{
  display:block; padding:.6rem 0; font-size:.86rem; text-decoration:none;
  color:var(--on-field-soft); border-bottom:var(--rule) solid var(--field-line);
  transition:color var(--press), padding var(--press);
}
.legal-nav a:hover{ color:var(--on-field); padding-left:.3rem; }
.legal-nav a[aria-current="page"]{
  color:var(--on-field); font-weight:600; box-shadow:inset 2px 0 0 var(--gilt); padding-left:.6rem;
}
.legal-updated{ margin-top:1.4rem; font-size:.8rem; }
.legal-updated .fig{ color:var(--gilt); }

.legal-body h2{ margin-top:2.4rem; font-size:clamp(1.36rem,1.9vw,1.7rem); }
.legal-body h2:first-child{ margin-top:0; }
.legal-body h3{ margin-top:1.7rem; font-size:1.06rem; }
.legal-body ol > li{ margin-bottom:.55em; }
.legal-body .spec th{ white-space:normal; }
.legal-rule{ border:0; border-top:var(--rule) solid var(--field-line); margin:2.4rem 0 1.4rem; }
.legal-contact{
  display:grid; grid-template-columns:auto 1fr; gap:.7rem; align-items:start;
  font-size:.86rem; color:var(--on-field-soft);
}
.legal-contact svg{ margin-top:.2em; flex:none; color:var(--gilt); }

/* A definition-style clause list used across the compliance set. */
.legal-defs{ margin:1.2rem 0; display:grid; gap:0; border-top:var(--rule) solid var(--field-line); }
.legal-defs > div{
  display:grid; grid-template-columns:minmax(160px,.8fr) minmax(0,2fr); gap:1.2rem;
  padding:.75rem 0; border-bottom:var(--rule) solid var(--field-line); font-size:.9rem;
}
.legal-defs dt{ font-weight:640; color:var(--on-field); }
.legal-defs dd{ margin:0; color:var(--on-field-soft); }

@media (max-width:900px){
  .legal{ grid-template-columns:1fr; }
  .legal-aside{ position:static; }
  .legal-defs > div{ grid-template-columns:1fr; gap:.2rem; }
}
