/* Base */
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Layout: forensic case-file. Left-aligned text column beside a live trace of funds; the form is a calm intake sheet. */
:root {
  color-scheme: dark;
  --ink: #0F1216;        /* page ground: a touch lighter than pure black to cut glare */
  --panel: #161B21;      /* raised surfaces: header, form fields */
  --line: #283039;       /* hairlines and borders */
  --cream: #E9E4DC;      /* primary text: softened cream, high contrast without halo */
  --muted: #ADA69D;      /* secondary text, warm grey toward copper */
  --copper: #B8704A;     /* accent from the logo leaf */
  --copper-hi: #D48C62;  /* hover / live trace */
  --danger: #E07A6A;

  --f-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --wrap: 72rem;
}
* { box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: var(--s3); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.brand svg { width: 34px; height: 32px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; letter-spacing: .32em; }
.brand-name small { font-size: .7em; letter-spacing: .2em; color: var(--muted); margin-left: .15em; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--cream); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--f-body); font-weight: 500; font-size: 1rem;
  padding: .8rem 1.35rem; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--copper); color: var(--ink); }
.btn-primary:hover { background: var(--copper-hi); }
.btn-ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { color: var(--ink); padding: .55rem 1rem; font-size: .92rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s7); align-items: center; padding-block: var(--s8) var(--s7);
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s7) var(--s6); } }
.hero h1 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.015em;
  margin: 0 0 var(--s5); text-wrap: balance; max-width: 18ch;
}
.lede { color: var(--muted); font-size: 1.1rem; max-width: 34rem; margin: 0 0 var(--s6); }
.lede strong { color: var(--cream); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); max-width: 34rem; }
.pillars li { display: flex; gap: var(--s3); font-size: .95rem; color: var(--cream); }
.pillars svg { flex: none; width: 18px; height: 18px; margin-top: .2rem; color: var(--copper); }
@media (max-width: 460px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Trace card */
.trace {
  position: relative; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel);
  overflow: hidden; min-width: 0;
}
.trace-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s4); padding: var(--s4) var(--s5) 0; font-size: .82rem; color: var(--muted); }
.trace-head span { white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: .5rem; color: var(--cream); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-hi); box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper) 22%, transparent); }
.trace canvas { display: block; width: 100%; height: 626px; }
.trace-foot { border-top: 1px solid var(--line); padding: var(--s3) var(--s5); font-size: .78rem; color: var(--muted); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s7); padding-block: var(--s8); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s7); } }
.contact h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 var(--s4); text-wrap: balance; }
.contact-intro p { color: var(--muted); margin: 0 0 var(--s5); max-width: 28rem; }
.direct { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.direct a { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.direct a:hover { border-color: var(--copper); }
.direct svg { width: 22px; height: 22px; color: var(--copper); flex: none; }
.direct span { font-size: .95rem; }
.direct small { display: block; color: var(--muted); font-size: .8rem; }
.safety { display: flex; gap: var(--s3); padding: var(--s4); border-radius: 12px; background: color-mix(in srgb, var(--copper) 9%, transparent); border: 1px solid color-mix(in srgb, var(--copper) 30%, transparent); font-size: .92rem; max-width: 28rem; }
.safety svg { flex: none; width: 20px; height: 20px; color: var(--copper-hi); margin-top: .15rem; }

form { display: grid; gap: var(--s4); min-width: 0; }
.field { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: var(--s4) var(--s5); transition: border-color .15s; }
.field:focus-within { border-color: var(--copper); }
.field.invalid { border-color: var(--danger); }
.field label, .field legend { display: block; font-size: .9rem; color: var(--cream); margin-bottom: var(--s1); padding: 0; }
fieldset.field { margin: 0; min-width: 0; }
/* keep the legend inside the box instead of on its top border */
fieldset.field legend { float: left; width: 100%; }
fieldset.field legend + * { clear: both; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; color: var(--cream);
  font-family: var(--f-body); font-size: 1.05rem; padding: .2rem 0; outline: none;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field ::placeholder { color: #6E6861; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { display: block; font-size: .82rem; color: var(--danger); margin-top: var(--s1); }
.methods { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.methods input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.methods label {
  margin: 0; display: inline-flex; align-items: center; gap: var(--s2);
  padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  cursor: pointer; font-size: .95rem; color: var(--muted); transition: all .15s;
}
.methods label::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); box-shadow: inset 0 0 0 3px var(--panel); transition: all .15s; }
.methods input:checked + label { color: var(--cream); border-color: var(--copper); background: color-mix(in srgb, var(--copper) 12%, transparent); }
.methods input:checked + label::before { background: var(--copper); border-color: var(--copper); }
.methods input:focus-visible + label { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
.consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { accent-color: var(--copper); width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.consent a { color: var(--cream); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.submit-row .btn { padding: 1rem 1.8rem; font-size: 1.05rem; }
.note { font-size: .82rem; color: var(--muted); }
.note-err { color: var(--danger); }
.btn:disabled { opacity: .6; cursor: wait; }
.sent { background: var(--panel); border: 1px solid var(--copper); border-radius: 14px; padding: var(--s5); }
.sent h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; margin: 0 0 var(--s2); }
.sent p { margin: 0 0 var(--s4); color: var(--muted); }

/* Content sections */
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-block: var(--s8); display: grid; gap: var(--s6); }
@media (max-width: 900px) { .section > .wrap { padding-block: var(--s7); } }
.sec-head h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 var(--s4); text-wrap: balance; max-width: 24ch; }
.sec-head p { color: var(--muted); max-width: 42rem; margin: 0; font-size: 1.05rem; }
.sec-note { margin: 0; color: var(--muted); font-size: .95rem; max-width: 46rem; }

.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 900px) { .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .situations { grid-template-columns: minmax(0, 1fr); } }
.situations li {
  position: relative; overflow: hidden; display: flex; gap: var(--s4); align-items: center;
  padding: var(--s4); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0;
  transition: border-color .35s, background .35s, transform .2s;
}
.sit-ic { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; color: var(--copper-hi); background: color-mix(in srgb, var(--copper) 12%, transparent); border: 1px solid color-mix(in srgb, var(--copper) 30%, transparent); transition: background .35s, color .35s, border-color .35s; }
.sit-ic svg { width: 1.4rem; height: 1.4rem; }
.sit-txt { min-width: 0; line-height: 1.4; }
/* scan sweep: a copper light passes across the active card, like a case being matched */
.situations li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--copper) 22%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
}
.situations li:hover { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 7%, var(--panel)); transform: translateY(-2px); }
.situations li:hover .sit-ic { background: var(--copper); color: var(--ink); border-color: var(--copper); }
.situations li:hover::after { animation: sweep .9s ease-out; }
@keyframes sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .situations li::after { display: none; } .situations li:hover { transform: none; } }
.sec-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
.sec-cta p { margin: 0; color: var(--muted); max-width: 44rem; min-width: 0; flex: 1 1 22rem; }

.services-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
@media (max-width: 900px) { .services-layout { grid-template-columns: minmax(0, 1fr); } }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { min-width: 0; }
.svc { position: relative; overflow: hidden; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: var(--s4); align-items: start; align-content: start; padding: var(--s4); margin: calc(var(--s4) * -1); border: 1px solid transparent; border-radius: 14px; transition: border-color .3s, background .3s, transform .2s; }
.svc::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--copper) 18%, transparent) 50%, transparent 70%); transform: translateX(-100%); }
.svc:hover { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 6%, var(--panel)); transform: translateY(-2px); }
.svc:hover .svc-ic { background: var(--copper); color: var(--ink); border-color: var(--copper); }
.svc:hover::after { animation: sweep .9s ease-out; }
.svc-ic { transition: background .3s, color .3s, border-color .3s; }
@media (prefers-reduced-motion: reduce) { .svc::after { display: none; } .svc:hover { transform: none; } }
.svc-ic { grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; color: var(--copper-hi); background: color-mix(in srgb, var(--copper) 12%, transparent); border: 1px solid color-mix(in srgb, var(--copper) 35%, transparent); }
.svc-ic svg { width: 1.4rem; height: 1.4rem; }
.svc h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; margin: .45rem 0 var(--s2); }
.svc p { margin: 0; color: var(--muted); font-size: .95rem; }

.photo { margin: 0; min-width: 0; }
.photo-frame { aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed var(--line); border-radius: 16px; background: var(--panel); display: grid; place-content: center; justify-items: center; gap: var(--s3); padding: var(--s5); text-align: center; color: var(--muted); font-size: .88rem; }
.photo-frame svg { width: 40px; height: 40px; color: var(--copper); }
.photo-frame span { max-width: 22rem; }
.photo-wide .photo-frame { aspect-ratio: 16 / 9; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.photo-wide img { aspect-ratio: 16 / 9; object-position: center; }

/* Process: investigation log. A copper rail fills as you scroll; every marker is centred on --rail-x. */
.dossier { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--s7); }
.dossier-aside { position: sticky; top: 88px; align-self: start; }
.dossier-aside h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 var(--s5); text-wrap: balance; }
.dossier-aside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.dossier-aside a { display: flex; justify-content: space-between; gap: var(--s3); text-decoration: none; padding: var(--s2) var(--s3); border-radius: 8px; color: var(--muted); font-size: .95rem; transition: background .25s, color .25s; }
.dossier-aside a:hover, .dossier-aside a.on { color: var(--cream); background: var(--panel); }
.dossier-aside a small { font-family: var(--f-data); font-size: .75rem; color: var(--copper-hi); }
.dossier-intro { color: var(--muted); margin: 0 0 var(--s6); max-width: 40rem; font-size: 1.05rem; }
.dossier-log { position: relative; padding-left: var(--s6); --rail-x: 7.5px; --dot-y: 1.75rem; }
.dossier-phase { margin-bottom: var(--s6); scroll-margin-top: 88px; }
.dossier-phase:last-child { margin-bottom: 0; }
.dossier-phase > h3 { font-family: var(--f-data); font-weight: 400; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-hi); margin: 0 0 var(--s3); position: relative; }
.dossier-phase > h3::before { content: ""; box-sizing: border-box; position: absolute; left: calc(var(--rail-x) - 7.5px - var(--s6)); top: .15rem; width: 15px; height: 15px; border-radius: 4px; background: var(--copper); z-index: 1; transition: box-shadow .4s, background .4s; }
.dossier-entry { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); position: relative; }
.dossier-entry::before { content: ""; box-sizing: border-box; position: absolute; left: calc(var(--rail-x) - 4.5px - var(--s6)); top: calc(var(--dot-y) - 4.5px); width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--copper); z-index: 1; transition: background .35s, box-shadow .35s, transform .35s; }
.dossier-entry code { font-family: var(--f-data); font-size: .8rem; color: var(--muted); padding-top: .2rem; transition: color .35s; }
.dossier-entry b { display: block; font-weight: 500; font-size: 1.05rem; }
.dossier-entry span { display: block; color: var(--muted); font-size: .93rem; margin-top: var(--s1); }
.dossier-entry > div { transition: opacity .5s; }
.dossier-log.is-live .dossier-entry > div { opacity: .45; } /* dimmed only once the scroll script runs */
.dossier-rail { position: absolute; left: calc(var(--rail-x) - .5px); top: .5rem; bottom: .5rem; width: 1px; pointer-events: none; }
.dossier-dash { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--copper) 45%, transparent) 0 6px, transparent 6px 10px); animation: dossier-flow .9s linear infinite; }
@keyframes dossier-flow { from { background-position: 0 0; } to { background-position: 0 10px; } }
.dossier-fill { position: absolute; left: -.5px; top: 0; width: 2px; height: 0; background: linear-gradient(180deg, var(--copper), var(--copper-hi)); box-shadow: 0 0 8px color-mix(in srgb, var(--copper-hi) 60%, transparent); }
.dossier-head { position: absolute; left: .5px; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--copper-hi); box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper-hi) 22%, transparent), 0 0 14px 2px var(--copper-hi); opacity: 0; }
.dossier-entry.lit::before { background: var(--copper-hi); box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper-hi) 20%, transparent), 0 0 10px var(--copper-hi); transform: scale(1.15); }
.dossier-entry.lit code { color: var(--copper-hi); }
.dossier-log.is-live .dossier-entry.lit > div { opacity: 1; }
.dossier-entry.lit::after { content: ""; position: absolute; left: calc(var(--rail-x) - .5px - var(--s6)); top: calc(var(--dot-y) - .5px); width: 1px; height: 1px; border-radius: 50%; animation: dossier-ping 1s ease-out 1; }
@keyframes dossier-ping { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--copper-hi) 70%, transparent); } to { box-shadow: 0 0 0 18px transparent; } }
.dossier-phase.lit > h3::before { background: var(--copper-hi); box-shadow: 0 0 12px var(--copper-hi); }
@media (prefers-reduced-motion: reduce) { .dossier-dash { animation: none; } .dossier-entry.lit::after { animation: none; } }
@media (max-width: 860px) {
  .dossier { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .dossier-aside { position: static; }
  .dossier-aside ol { display: flex; flex-wrap: wrap; }
  .dossier-entry { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
}

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.pr { padding: var(--s5); border-radius: 16px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.pr h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; margin: 0 0 var(--s4); }
.pr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.pr li { display: flex; gap: var(--s3); align-items: flex-start; }
.pr li::before { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; margin-top: .15rem; }
.pr-yes li::before { content: "✓"; color: var(--ink); background: var(--copper); }
.pr-no { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.pr-no li::before { content: "✕"; color: var(--danger); border: 1px solid var(--danger); }

.faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }
.faq { display: grid; gap: var(--s2); min-width: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq details[open] { border-color: color-mix(in srgb, var(--copper) 55%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) var(--s5); font-weight: 500; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: var(--copper-hi); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 var(--s5) var(--s5); color: var(--muted); }

.auth-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
@media (max-width: 900px) { .auth-top { grid-template-columns: minmax(0, 1fr); } }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: var(--s6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); align-items: flex-start; font-size: .9rem; color: var(--muted); }
.site-footer .brand-col { display: grid; gap: var(--s3); max-width: 24rem; }
.site-footer .brand-col p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.footer-contacts { display: grid; gap: var(--s3); min-width: 0; }
.fc-title { margin: 0; color: var(--cream); font-weight: 500; }
.footer-contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.footer-contacts a { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.fc-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); transition: background .15s; }
.fc-ic svg { width: 19px; height: 19px; }
.footer-contacts a:hover .fc-ic { background: var(--copper-hi); }
.fc-txt { display: grid; line-height: 1.3; min-width: 0; }
.fc-name { color: var(--cream); font-size: .9rem; }
.fc-handle { color: var(--copper-hi); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-links { flex-direction: column; }

.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--copper-hi); }

/* Authorities */
.authorities { border-top: 1px solid var(--line); }
.authorities .wrap { padding-block: var(--s8); display: grid; gap: var(--s6); }
@media (max-width: 900px) { .authorities .wrap { padding-block: var(--s7); } }
.authorities h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 var(--s4); text-wrap: balance; max-width: 22ch; }
.authorities .intro { color: var(--muted); max-width: 40rem; margin: 0; font-size: 1.05rem; }
.auth-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
@media (max-width: 1000px) { .auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .auth-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
.auth-item { border-top: 1px solid var(--copper); padding-top: var(--s4); min-width: 0; }
.auth-item h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; margin: 0 0 var(--s2); }
.auth-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.auth-note { margin: 0; font-size: .88rem; color: var(--muted); max-width: 46rem; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: 12px; }
.auth-note strong { color: var(--cream); font-weight: 500; }

.disclaimer { border-top: 1px solid var(--line); }
.disclaimer .wrap { padding-block: var(--s5); font-size: .82rem; color: var(--muted); }
.disclaimer p { max-width: 60rem; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Fees ---------- */

  #fees .wrap { grid-template-columns: minmax(0, 1fr); }
  .fee { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .fee-main h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 var(--s4); }
  .fee-main > p { color: var(--muted); margin: 0 0 var(--s5); text-wrap: pretty; }

  /* ---- card: same frame as the hero trace ---- */
  .fee-card .trace-head b { color: var(--cream); font-weight: 500; }
  .fee-rate { padding: var(--s4) var(--s5) var(--s3); border-bottom: 1px solid var(--line); }
  .fee-rate-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
  .fee-big { font-family: var(--f-display); font-weight: 500; line-height: .9; font-size: clamp(3.4rem, 6.4vw, 5rem); color: var(--cream); font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: color .8s; }
  .fee-big small { font-size: .45em; color: var(--muted); margin-left: .05em; }
  .fee-card[data-stage="4"] .fee-big { color: var(--copper-hi); }
  .fee-meta { text-align: right; font: 400 .72rem/1.5 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .fee-meta b { display: block; font: 500 1rem/1.3 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--cream); margin-top: .25rem; }
  /* each added service pops a "+5%" over the rate */
  .fee-big { position: relative; }
  .fee-bump { position: absolute; left: 100%; top: -.2em; margin-left: .2rem; font: 500 .9rem/1 var(--f-data); color: var(--copper-hi); opacity: 0; pointer-events: none; }
  .fee-bump.go { animation: fee-bump 1.5s cubic-bezier(.2,.7,.2,1); }
  @keyframes fee-bump { 0% { opacity: 0; transform: translateY(.6rem); } 20% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; transform: translateY(-.9rem); } }
  /* the rate as a sum: base work plus each extension */
  /* the visitor ticks the extra work a case needs; each tick adds 5% */
  .fee-pick { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: var(--s4); }
  .fee-pick-title { flex-basis: 100%; font: 400 .7rem/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
  .fee-base, .fee-pick label span { display: inline-flex; align-items: center; gap: .5rem; font: 400 .74rem/1 var(--f-data); padding: .5rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
  .fee-base { color: var(--cream); border-color: color-mix(in srgb, var(--copper) 55%, var(--line)); }
  .fee-base em, .fee-pick label em { font-style: normal; color: var(--copper-hi); }
  .fee-pick label { position: relative; cursor: pointer; white-space: nowrap; }
  .fee-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .fee-pick label span::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--muted); transition: background-color .2s, border-color .2s; }
  .fee-pick label:hover span { color: var(--cream); border-color: var(--muted); }
  .fee-pick input:checked + span { color: var(--cream); border-color: var(--copper-hi); background-color: rgba(184,112,74,.16); }
  .fee-pick input:checked + span::before { border-color: var(--copper-hi); background: var(--copper-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%230E0F11' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
  .fee-pick input:focus-visible + span { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
  .fee-card canvas { display: block; width: 100%; height: 380px; }
  .fee-card .trace-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
  .fee-replay { flex: none; font: 400 .7rem/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .85rem; cursor: pointer; }
  .fee-replay:hover { color: var(--cream); border-color: var(--copper); }
  .fee-replay:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; }

  /* ---- right column ---- */
  .fee-side h3 { font: 400 .74rem/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--copper-hi); margin: 0 0 var(--s3); }
  .fee-factors { list-style: none; margin: 0 0 var(--s5); padding: 0; border-top: 1px solid var(--line); }
  .fee-factors li { position: relative; display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); padding: var(--s3) var(--s2) var(--s3) 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); outline: none; transition: background .4s; }
  .fee-factors li::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--copper-hi); transform: scaleY(0); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .fee-factors li.on { background: color-mix(in srgb, var(--panel) 70%, transparent); }
  .fee-factors li.on::before { transform: none; }
  .fee-factors li:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
  .fee-factors code { font: 400 .74rem/1.65 var(--f-data); color: var(--copper-hi); padding-left: var(--s2); }
  .fee-factors b { display: block; color: var(--cream); font-weight: 500; margin-bottom: .15rem; }
  .fee-factors .inv { font: 400 .68rem/1 var(--f-data); letter-spacing: .06em; text-transform: uppercase; color: var(--copper-hi); margin-left: .5rem; font-weight: 400; }
  .fee-also { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s3); font-size: .9rem; color: var(--muted); }
  .fee-also b { display: block; color: var(--cream); font-weight: 500; margin-bottom: .1rem; }
  .fee-also .inv { font: 400 .68rem/1 var(--f-data); letter-spacing: .06em; text-transform: uppercase; color: var(--copper-hi); margin-left: .5rem; }
  .fee-terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); font-size: .88rem; color: var(--muted); }
  .fee-terms li { position: relative; padding-left: 1.2rem; }
  .fee-terms li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: 2px; background: var(--copper); }
  .fee-note { margin: var(--s5) 0 0; font-size: .82rem; color: var(--muted); opacity: .85; }

  @media (max-width: 900px) { .fee { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
  @media (max-width: 520px) {
    .fee-terms { grid-template-columns: minmax(0, 1fr); }
    .fee-meta b { font-size: .9rem; }
    .fee-card .trace-foot { flex-direction: column; align-items: flex-start; }
  }
  @media (prefers-reduced-motion: reduce) { .fee-big, .fee-bump, .fee-pick label span, .fee-factors li, .fee-factors li::before { transition: none; } }

/* ---------- Gallery: text with a row of photos that enlarge on hover ---------- */
#gallery .wrap { grid-template-columns: minmax(0, 1fr); }
/* heading block centred and as wide as the photo grid below it */
#gallery .sec-head { text-align: center; }
#gallery .sec-head h2 { max-width: none; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: var(--s4); }
#gallery .sec-head p { max-width: none; }
.eyebrow { display: block; font: 400 clamp(.85rem, 1.2vw, .95rem)/1.2 var(--f-data); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-hi); margin-bottom: var(--s3); }
/* eight photos in two rows of four, all on one screen with no scrolling */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.gallery figure { position: relative; margin: 0; min-width: 0; }
.gallery img, .gallery .ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transform-origin: 50% 50%; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, border-color .45s; }
.gallery .ph { display: grid; place-items: center; border-style: dashed; color: var(--muted); font: 400 .74rem/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; }
/* pointing at a photo (or tapping it on a phone) lifts and enlarges it a little */
.gallery figure:hover, .gallery figure.zoom { z-index: 1; }
.gallery figure.zoom img, .gallery figure.zoom .ph { transform: scale(1.08); border-color: color-mix(in srgb, var(--copper) 55%, var(--line)); box-shadow: 0 18px 40px -18px rgba(0,0,0,.75); }
@media (hover: hover) {
  .gallery figure:hover img, .gallery figure:hover .ph { transform: scale(1.08); border-color: color-mix(in srgb, var(--copper) 55%, var(--line)); box-shadow: 0 18px 40px -18px rgba(0,0,0,.75); }
}
/* phones: two photos per row, so all of them still fit on one screen */
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
@media (prefers-reduced-motion: reduce) { .gallery img, .gallery .ph { transition: none; } }
