/* ==========================================================================
   trustmarsellus.com

   The palette and type are not invented — they are read out of the Framer
   "Optima" template this site is modelled on, via the Framer Server API:
     background  Neutral/Neutral 1000  rgb(5,5,5)
     surface     Neutral/Neutral 950   rgb(13,13,13)
     border      Neutral/Neutral 900   rgb(25,25,25)
     text        Neutral/Neutral 0     rgb(252,252,252)
     muted       Neutral/Neutral 400   rgb(148,148,148)
     type        Geist 300, Geist Mono for eyebrows
     sections    96px vertical / 48px horizontal padding

   The one deliberate departure is --gold, sampled from the Marsellus logo
   itself (#C38D22). The template is monochrome; gold is the single accent and
   is what ties the mark to the page. 7.15:1 on the background, so it clears
   WCAG AA as body text rather than being decoration only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Geist is SELF-HOSTED, deliberately.

   It used to come from fonts.googleapis.com. That made the page's appearance
   depend on a third party being reachable: a blocked request — an ad blocker,
   a privacy extension, a corporate proxy, a slow CDN — and the whole site
   silently falls back to a system sans. It still "works", it just stops being
   this design, and nothing anywhere reports that it happened. A title examiner
   behind a locked-down firewall is exactly the visitor most likely to see the
   broken version.

   These two files are the SAME BYTES as the reviewed design (extracted from
   it, `wOF2` signature verified), so the live site cannot drift from it.

   Both are variable fonts spanning 100–900, which is why one file per family
   covers every weight the page uses — and why this is smaller than the four
   static cuts the Google Fonts URL was requesting.

   Secondary benefit: no Google Fonts request means no visitor IP handed to a
   third party on page load, which is one less thing to answer for on a site
   whose whole premise is discretion.
   -------------------------------------------------------------------------- */
@font-face{
  font-family:'Geist';
  src:url('/fonts/geist-variable.woff2') format('woff2-variations');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Geist Mono';
  src:url('/fonts/geist-mono-variable.woff2') format('woff2-variations');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

:root{
  --bg:#050505;
  --surface:#0d0d0d;
  --surface-2:#111;
  --line:#191919;
  --line-soft:rgba(252,252,252,.10);
  --text:#fcfcfc;
  --muted:#949494;
  /* Nudged up from the template's Neutral 500 (#787878). That value clears AA on the page
     background but lands at 4.40:1 on --surface, and this token is used for small text that
     sits on cards (kv labels, "View detail"). #7c7c7c clears 4.5 on both grounds. */
  --muted-2:#7c7c7c;
  --gold:#c38d22;
  --gold-bright:#d4a03a;

  --maxw:1180px;
  --pad-y:96px;
  --pad-x:48px;
  --radius:14px;

  --sans:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  font-family:var(--sans);
  font-weight:300;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
/* height:auto is load-bearing. The width/height attributes on <img> (kept so the
   browser can reserve space and avoid layout shift) apply as presentational hints,
   and a definite height makes the browser ignore `aspect-ratio` entirely — which
   rendered the card images at their full 900px height instead of 16:10. */
img,svg{display:block;max-width:100%;height:auto}

/* Visible only to screen readers, and to keyboard users once focused. */
.skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--text);color:var(--bg);padding:12px 20px;border-radius:0 0 8px 0;font-size:.9rem;
}
.skip:focus{left:0}

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

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad-x);width:100%}

/* Consecutive sections would otherwise stack 96px of bottom padding on 96px of top
   padding and leave a 192px trench between bands. Dropping the top padding on any
   section that follows another gives one consistent 96px rhythm down the page. */
section{padding:var(--pad-y) 0}
section + section{padding-top:0}

/* ---------- shared type ---------- */

.eyebrow{
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-block;
  margin-bottom:26px;
}

/* Scale matched to the source template, where the hero headline runs ~72px at a
   1200px viewport. The first build topped out around 68px at 1440 and read as a
   wireframe of the design rather than the design. */
h1,h2,h3,h4{font-weight:300;letter-spacing:-.025em;line-height:1.04}
h1{font-size:clamp(2.9rem,7vw,5.25rem)}
h2{font-size:clamp(2rem,4.2vw,3.4rem)}
h3{font-size:1.2rem;letter-spacing:-.01em;line-height:1.3}

.lede{
  font-size:clamp(1rem,1.35vw,1.15rem);
  color:var(--muted);
  max-width:58ch;
  text-wrap:balance;
}
.sec-head{max-width:74ch}
.sec-head p{color:var(--muted);margin-top:20px;font-size:1.02rem;max-width:62ch}

/* ---------- buttons ---------- */

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-size:.9rem;font-weight:400;
  border-radius:100px;padding:13px 26px;
  border:1px solid transparent;cursor:pointer;
  transition:background .25s,color .25s,border-color .25s,transform .25s;
  white-space:nowrap;
}
.btn-primary{background:var(--text);color:var(--bg)}
.btn-primary:hover{background:#fff;transform:translateY(-2px)}
.btn-ghost{border-color:var(--line);color:var(--text)}
.btn-ghost:hover{border-color:var(--muted);background:var(--surface)}

/* ---------- header ---------- */

header{
  position:sticky;top:0;z-index:30;
  background:rgba(5,5,5,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:.88rem;color:var(--muted);transition:color .25s}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--text)}

/* ---------- brand lockup ---------- */

.brand{display:flex;align-items:center;gap:12px;flex:none}
.brand .mark{width:34px;height:34px;color:var(--gold);flex:none}
.brand .bt{display:flex;flex-direction:column;line-height:1}
.brand .bn{font-size:1rem;letter-spacing:.16em;font-weight:400}
.brand .bs{
  font-family:var(--mono);font-size:.54rem;letter-spacing:.2em;
  color:var(--muted-2);margin-top:5px;text-transform:uppercase;
}

/* ---------- hero ---------- */

.hero{padding:clamp(72px,11vw,132px) 0 clamp(64px,9vw,104px);text-align:center}
.hero h1{margin:0 auto;max-width:16ch;text-wrap:balance}
.hero .lede{margin:28px auto 0}
.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:38px}

/* A hairline that fades out at both ends — the template uses these between bands. */
.rule{height:1px;background:linear-gradient(90deg,transparent,var(--line) 15%,var(--line) 85%,transparent)}

/* ---------- full-bleed figure ----------
   The template's hero is a headline, then a photograph running edge to edge with
   facts overlaid along its bottom. That edge-to-edge break is what gives the page
   its weight; keeping everything inside the content column is what made the first
   build feel like an empty grid. */
.bleed{width:100%;position:relative}
.figure{
  position:relative;width:100%;
  min-height:clamp(340px,54vh,660px);
  display:flex;align-items:flex-end;
  background:#000 center/cover no-repeat;
  overflow:hidden;
}
/* Two stacked scrims: a bottom-up gradient so the facts always sit on near-black,
   and a light overall wash so the image never competes with the type. */
.figure::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(to top,rgba(5,5,5,.96) 0%,rgba(5,5,5,.72) 22%,rgba(5,5,5,.1) 55%,rgba(5,5,5,.45) 100%);
}
.figure > *{position:relative;z-index:1;width:100%}

.facts{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;background:rgba(252,252,252,.13);
  border-top:1px solid rgba(252,252,252,.13);
}
.fact{background:rgba(5,5,5,.55);padding:26px 30px 28px;backdrop-filter:blur(3px)}
.fact .v{
  font-size:clamp(1.5rem,2.6vw,2.1rem);font-weight:300;letter-spacing:-.02em;
  color:var(--text);line-height:1.1;font-variant-numeric:tabular-nums;
}
.fact .k{
  font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);margin-top:12px;
}

/* ---------- numbered steps ---------- */

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:60px;background:var(--line)}
.step{background:var(--bg);padding:34px 28px}
.step .n{font-family:var(--mono);font-size:.78rem;color:var(--gold);letter-spacing:.12em}
.step h3{margin:16px 0 10px}
.step p{font-size:.92rem;color:var(--muted);line-height:1.65}

/* ---------- cards ---------- */

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:56px}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  display:flex;flex-direction:column;
  position:relative;overflow:hidden;
  transition:border-color .3s,background .3s,transform .3s;
}
.card-body{padding:28px 28px 30px;display:flex;flex-direction:column;flex:1}
/* Photograph caps each card, as on the template's services grid. Slight desaturation
   at rest, resolving on hover, so the grid reads as one surface until pointed at. */
.card-img{
  display:block;width:100%;aspect-ratio:16/10;object-fit:cover;
  filter:grayscale(1) brightness(.88);transition:filter .45s,transform .45s;
}
.card:hover .card-img{filter:grayscale(1) brightness(1.02);transform:scale(1.03)}

/* Service-page block imagery — a wide plate above each service's item list. */
.svc-img{
  display:block;width:100%;aspect-ratio:21/9;object-fit:cover;
  border-radius:var(--radius);margin-top:28px;
  filter:grayscale(1) brightness(.86);
}
/* Gold hairline that draws in on hover — the template's card affordance. */
.card::after{
  content:"";position:absolute;left:0;top:0;height:2px;width:0;
  background:var(--gold);transition:width .45s cubic-bezier(.2,.7,.2,1);
}
.card:hover{border-color:#242424;background:var(--surface-2);transform:translateY(-3px)}
.card:hover::after{width:100%}
.card .ci{width:30px;height:30px;color:var(--gold);margin-bottom:22px}
.card h3{margin-bottom:12px}
.card p{font-size:.93rem;color:var(--muted);line-height:1.68}
.card .more{
  margin-top:auto;padding-top:22px;font-family:var(--mono);
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);
  transition:color .25s;
}
.card:hover .more{color:var(--gold)}

/* ---------- key / value block ---------- */

.kv{
  margin-top:52px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--surface);overflow:hidden;
}
.kv-row{
  display:grid;grid-template-columns:minmax(180px,.32fr) 1fr;gap:24px;
  padding:20px 30px;border-bottom:1px solid var(--line);
}
.kv-row:last-child{border-bottom:none}
.kv-row dt{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--muted-2);padding-top:3px;
}
.kv-row dd{font-size:.98rem;color:var(--text)}

/* ---------- service detail (services page) ---------- */

.svc-block{padding-top:0}
.svc-block + .svc-block{margin-top:84px}
.svc-head{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.svc-head .n{font-family:var(--mono);font-size:1.05rem;color:var(--gold);letter-spacing:.1em}
.svc-head h2{font-size:clamp(1.6rem,2.8vw,2.2rem)}
.svc-block > p{color:var(--muted);margin-top:18px;max-width:62ch}

.items{list-style:none;margin-top:34px;border-top:1px solid var(--line)}
.items li{
  display:grid;grid-template-columns:minmax(210px,.3fr) 1fr;gap:26px;
  padding:22px 0;border-bottom:1px solid var(--line);
}
.items .t{color:var(--text);font-size:.98rem}
.items .d{color:var(--muted);font-size:.93rem;line-height:1.68}

/* ---------- contact ---------- */

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:52px}
.cbox{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:32px 30px;
}
.cbox .lbl{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold);margin-bottom:16px;
}
.cbox a{color:var(--text);border-bottom:1px solid var(--line);transition:border-color .25s}
.cbox a:hover{border-color:var(--gold)}
.cbox address{font-style:normal;color:var(--muted);line-height:1.85;font-size:.96rem}

.disclaimer{
  margin-top:34px;font-size:.84rem;color:var(--muted-2);
  max-width:78ch;line-height:1.7;
}

/* ---------- CTA band ---------- */

.cta{
  margin-top:20px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--surface);padding:clamp(38px,6vw,64px);text-align:center;
}
.cta p{color:var(--muted);margin:18px auto 0;max-width:56ch}
.cta .btn{margin-top:32px}

/* ---------- footer ---------- */

footer{border-top:1px solid var(--line);padding:62px 0 0;position:relative;overflow:hidden}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:40px}
.foot-grid p{font-size:.88rem;color:var(--muted);margin-top:18px;max-width:40ch;line-height:1.7}
.foot-col h4{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted-2);font-weight:400;margin-bottom:18px;
}
.foot-col a,.foot-col address{
  display:block;font-size:.9rem;color:var(--muted);
  font-style:normal;line-height:1.8;transition:color .25s;
}
.foot-col a:hover{color:var(--text)}
.foot-legal{
  margin-top:56px;padding:26px 0 30px;border-top:1px solid var(--line);
  font-size:.78rem;color:var(--muted-2);line-height:1.7;
}

/* Oversized watermark wordmark, as the template does under its footer.
   aria-hidden and inert to pointer events — it is texture, not content. */
.watermark{
  /* Sized to sit fully inside the footer. Larger than ~14vw and the descender line
     clips mid-letter, which reads as a rendering fault rather than a bleed. */
  font-size:clamp(3.2rem,13.5vw,11.5rem);
  line-height:1;letter-spacing:-.03em;font-weight:300;
  color:transparent;
  background:linear-gradient(180deg,rgba(252,252,252,.075),rgba(252,252,252,0));
  -webkit-background-clip:text;background-clip:text;
  text-align:center;user-select:none;pointer-events:none;
  margin-top:12px;padding:0 var(--pad-x);
}

/* ---------- reveal ----------
   Only armed when JS is present (html.js). If the script never runs the page
   renders fully rather than staying invisible. */
.js .reveal{
  opacity:0;transform:translateY(20px);
  transition:opacity .75s cubic-bezier(.2,.7,.2,1),transform .75s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in{opacity:1;transform:none}
[data-d="1"]{transition-delay:.07s}
[data-d="2"]{transition-delay:.14s}
[data-d="3"]{transition-delay:.21s}
[data-d="4"]{transition-delay:.28s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
  .btn,.card,.card::after{transition:none}
  .card:hover{transform:none}
}

/* ---------- responsive ---------- */

@media (max-width:1020px){
  .steps{grid-template-columns:repeat(2,1fr)}
  .cards{grid-template-columns:1fr}
  .card-img{aspect-ratio:21/9}
  .foot-grid{grid-template-columns:1fr 1fr;gap:34px}
}

@media (max-width:720px){
  :root{--pad-x:22px;--pad-y:68px}
  /* Three facts side by side become unreadable slivers well before this width. */
  .facts{grid-template-columns:1fr}
  .figure{min-height:clamp(300px,48vh,420px)}
  .nav-links{gap:18px}
  .nav-links a.hide-sm{display:none}
  .brand .bs{display:none}
  .steps{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .kv-row{grid-template-columns:1fr;gap:6px;padding:18px 22px}
  .items li{grid-template-columns:1fr;gap:8px}
  .foot-grid{grid-template-columns:1fr}
  .hero{text-align:left}
  .hero h1{margin-left:0}
  .hero .lede{margin-left:0}
  .hero-actions{justify-content:flex-start}
}
