/* ==========================================================================
   LORAX CAPITAL PARTNERS — concept v3
   Image-led editorial. Photography carries the page; type supports it.

   Every image on these pages is a designed PLACEHOLDER: a duotone mesh with
   grain and a caption naming the shot that belongs there. Swap .ph figures
   for <img> when the real photography exists.
   ========================================================================== */

:root {
  --paper:   #f5f6f8;
  --card:    #ffffff;
  --sink:    #eaecf1;
  --ink:     #0b1220;
  --ink-2:   #414b5e;
  --ink-3:   #7d8798;

  --blue:    #055ec4;   /* exact logo blue */
  --blue-lt: #4b95ea;
  --blue-dk: #063a78;
  --sand:    #c4763a;   /* duotone partner only — never a UI accent */

  /* constants — these must NOT be redefined per theme. Used by surfaces that
     stay dark in both themes (ribbon, ink sections, footer, image plates). */
  --night:    #0b1220;
  --on-night: #eef1f6;

  --line:    rgba(11, 18, 32, .11);
  --line-2:  rgba(11, 18, 32, .06);

  --live:    #0e8a63;
  --exit:    #7a5bc7;

  --sh:      0 30px 70px -35px rgba(11, 18, 32, .35);
  --sh-sm:   0 12px 30px -18px rgba(11, 18, 32, .3);

  --sans: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --ez: cubic-bezier(.19, 1, .22, 1);
  --pad: clamp(1.15rem, 4vw, 3.75rem);
  --max: 1360px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0d14; --card: #111725; --sink: #0f141f;
    --ink: #eef1f6; --ink-2: #a6b0c2; --ink-3: #6f7a8d;
    --blue: #4b95ea; --blue-lt: #85b9f5; --blue-dk: #1b4f8f;
    --line: rgba(238,241,246,.14); --line-2: rgba(238,241,246,.07);
    --live: #35bf95; --exit: #a893e6;
    --sh: 0 30px 70px -35px rgba(0,0,0,.9);
    --sh-sm: 0 12px 30px -18px rgba(0,0,0,.85);
  }
}
:root[data-theme="dark"] {
  --paper: #0a0d14; --card: #111725; --sink: #0f141f;
  --ink: #eef1f6; --ink-2: #a6b0c2; --ink-3: #6f7a8d;
  --blue: #4b95ea; --blue-lt: #85b9f5; --blue-dk: #1b4f8f;
  --line: rgba(238,241,246,.14); --line-2: rgba(238,241,246,.07);
  --live: #35bf95; --exit: #a893e6;
  --sh: 0 30px 70px -35px rgba(0,0,0,.9);
  --sh-sm: 0 12px 30px -18px rgba(0,0,0,.85);
}

/* ---------- base -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
figure { margin: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.wide { max-width: 1600px; margin-inline: auto; padding-inline: var(--pad); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- type -------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -.028em; text-wrap: balance; }
.t1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 350; letter-spacing: -.038em; line-height: 1.03; }
.t2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); font-weight: 350; letter-spacing: -.032em; }
.t3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 450; letter-spacing: -.022em; }
.t4 { font-size: 1.06rem; font-weight: 550; letter-spacing: -.012em; line-height: 1.3; }

p { margin: 0; } p + p { margin-top: 1rem; }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.62; color: var(--ink-2); max-width: 52ch; }
.body { color: var(--ink-2); font-size: .945rem; line-height: 1.68; }
.sm { font-size: .87rem; line-height: 1.6; color: var(--ink-2); }

.kicker {
  font-family: var(--mono); font-size: .655rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue); margin: 0; font-weight: 500;
}
.kicker.mute { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- ribbon ------------------------------------------------------ */

.ribbon {
  background: var(--night); color: var(--on-night); font-family: var(--mono);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .5rem var(--pad); display: flex; gap: .45rem 1.4rem;
  align-items: center; justify-content: center; flex-wrap: wrap;
}
.ribbon a { color: var(--blue-lt); border-bottom: 1px solid currentColor; }
.ribbon i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-lt); }

/* ---------- header ------------------------------------------------------ */

.hdr {
  position: sticky; top: 0; z-index: 70;
  background: var(--card);            /* opaque — never tinted by the hero */
  border-bottom: 1px solid var(--line-2);
}
.hdr.stuck { box-shadow: 0 1px 12px -6px rgba(11,18,32,.25); }
.hdr .prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--blue); transition: width .12s linear; }


.hdr-in { max-width: var(--max); margin-inline: auto; padding: .95rem var(--pad); display: flex; align-items: center; gap: 1.4rem; }


.mark { flex: none; display: block; }
.mark img { height: 30px; width: auto; }

.mark-white { display: none; }

/* the wordmark ships white; an ink recolour is used on light grounds only */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-ink  { display: none; }
  :root:not([data-theme="light"]) .mark-white { display: block; }
}
:root[data-theme="dark"] .mark-ink  { display: none; }
:root[data-theme="dark"] .mark-white { display: block; }

.ftr .mark-ink { display: none; }
.ftr .mark-white { display: block; }
.ftr .mark img { height: 32px; }

.menu { margin-left: auto; display: flex; align-items: center; gap: .1rem; }
.m-link { font-size: .855rem; padding: .5rem .78rem; border-radius: 7px; color: var(--ink-2); transition: all .3s var(--ez); }
.m-link:hover { color: var(--ink); background: var(--sink); }
.m-link.on { color: var(--blue); font-weight: 550; }

.tools { display: flex; align-items: center; gap: .4rem; margin-left: .55rem; padding-left: .7rem; border-left: 1px solid var(--line); }
.ico { width: 33px; height: 33px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); transition: all .3s var(--ez); }
.ico:hover { background: var(--sink); color: var(--ink); }

.lp {
  display: inline-flex; align-items: center; gap: .48rem; padding: .5rem .92rem;
  border-radius: 8px; font-size: .82rem; font-weight: 550;
  border: 1px solid var(--line); color: var(--ink); transition: all .35s var(--ez); white-space: nowrap;
}
.lp:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lp svg { width: 13px; height: 13px; }

.burger { display: none; }
@media (max-width: 1050px) {
  .burger { display: grid; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(330px, 88vw); z-index: 90;
    background: var(--card); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: .1rem; padding: 5.5rem 1.4rem 2rem;
    transform: translateX(101%); transition: transform .55s var(--ez); box-shadow: var(--sh);
  }
  .menu.open { transform: none; }
  .m-link { padding: .85rem .6rem; font-size: 1rem; color: var(--ink-2) !important; }
  .tools { margin: 1.2rem 0 0; padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .lp { flex: 1; justify-content: center; }
}

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.45rem;
  border-radius: 9px; font-size: .885rem; font-weight: 550;
  background: var(--blue); color: #fff; transition: all .4s var(--ez);
}
.btn:hover { background: var(--blue-dk); box-shadow: var(--sh-sm); }
.btn i { font-style: normal; transition: transform .4s var(--ez); }
.btn:hover i { transform: translateX(4px); }
.btn-o { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-o:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-w { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn-w:hover { background: #fff; color: var(--night); }

.tlink { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-size: .88rem; font-weight: 550; }
.tlink i { font-style: normal; transition: transform .4s var(--ez); }
.tlink:hover i { transform: translateX(4px); }

/* ==========================================================================
   IMAGE PLACEHOLDERS
   A duotone mesh + grain + vignette, captioned with the intended shot.
   Six variants so a page of them does not read as one repeated texture.
   ========================================================================== */

.ph {
  position: relative; overflow: hidden; background: var(--night);
  --c1: var(--blue-dk); --c2: var(--blue); --c3: var(--ink); --c4: var(--blue-lt);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(78% 62% at 18% 12%, var(--c4) 0%, transparent 58%),
    radial-gradient(66% 74% at 88% 26%, var(--c2) 0%, transparent 60%),
    radial-gradient(90% 80% at 42% 96%, var(--c1) 0%, transparent 66%),
    linear-gradient(155deg, var(--c3), var(--c1));
}
/* grain + vignette, so it reads as a photograph rather than a gradient */
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(120% 100% at 50% 40%, transparent 42%, rgba(0,0,0,.5) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: .55;
}

.ph-2 { --c1: #123a63; --c2: #2f7fb8; --c3: #071019; --c4: #6fb5d8; }
.ph-3 { --c1: #5c3417; --c2: var(--sand); --c3: #180d06; --c4: #e0a86a; }
.ph-4 { --c1: #0d2f4f; --c2: #1f6fae; --c3: #060d16; --c4: #8fc2e6; }
.ph-5 { --c1: #33261a; --c2: #8a6b48; --c3: #120c07; --c4: #cbb192; }
.ph-6 { --c1: #10243d; --c2: #3d6f9c; --c3: #080f1a; --c4: #9dbdd6; }

.ph figcaption {
  position: absolute; left: .85rem; bottom: .85rem; right: .85rem; z-index: 2;
  font-family: var(--mono); font-size: .585rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.9); display: flex; gap: .5rem; align-items: baseline;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.ph figcaption b { flex: none; font-weight: 600; color: rgba(255,255,255,.55); }

.ph.r { border-radius: 4px; }

/* real photography: --img replaces the generated mesh */
.ph.has-img::before {
  background: var(--img) center/cover no-repeat;
}
.ph.has-img::after { opacity: .34; }
/* full-bleed slots carry white text, so they get a directional scrim instead */
.hero > .ph.has-img::after, .band > .ph.has-img::after {
  mix-blend-mode: normal; opacity: 1;
  background:
    linear-gradient(100deg, rgba(6,10,18,.90) 0%, rgba(6,10,18,.66) 45%, rgba(6,10,18,.34) 100%),
    linear-gradient(to top, rgba(6,10,18,.55), transparent 45%);
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

/* placeholder layers are deliberately static — no scroll parallax, no drift */

/* ---------- reveal ------------------------------------------------------ */

.rv { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ez), transform .85s var(--ez); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"]{transition-delay:.08s} .rv[data-d="2"]{transition-delay:.16s}
.rv[data-d="3"]{transition-delay:.24s} .rv[data-d="4"]{transition-delay:.32s}
.rv[data-d="5"]{transition-delay:.4s}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- hero -------------------------------------------------------- */

.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; overflow: hidden; margin-top: -1px; }
.hero > .ph { position: absolute; inset: 0; }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin-inline: auto; padding: clamp(3rem, 9vw, 6.5rem) var(--pad) clamp(2rem, 4vw, 3rem); color: #fff; }
.hero h1 { color: #fff; max-width: 17ch; margin: 1.4rem 0 1.5rem; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 48ch; }
.hero .kicker { color: rgba(255,255,255,.72); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.1rem; }

/* stat band — dark, so it reads as a continuation of the hero rather than
   a plain white row, with the arc motif and a rule that draws in on hover */
.hero-stats {
  position: relative; z-index: 2; background: var(--night); color: var(--on-night);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.hs { position: relative; overflow: hidden; padding: clamp(1.9rem, 3.4vw, 3rem) clamp(1.2rem, 2.2vw, 2.2rem);
  border-right: 1px solid rgba(255,255,255,.09); transition: background .5s var(--ez); }
.hs:last-child { border-right: 0; }
.hs:hover { background: rgba(255,255,255,.04); }
.hs::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ez); }
.hs:hover::after { transform: scaleX(1); }
.hs .rings { position: absolute; right: -54px; bottom: -54px; width: 165px; height: 165px; opacity: .09;
  pointer-events: none; transition: opacity .6s var(--ez), transform .8s var(--ez); }
.hs .rings circle { fill: none; stroke: var(--blue); stroke-width: 1.3; }
.hs:hover .rings { opacity: .24; transform: rotate(20deg) scale(1.08); }
.hs .v { position: relative; z-index: 2; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 250;
  letter-spacing: -.05em; line-height: 1; color: #fff; }
.hs .v em { font-style: normal; font-size: .46em; letter-spacing: -.01em; color: var(--blue-lt); margin-left: .06em; }
.hs .k { position: relative; z-index: 2; margin-top: .75rem; font-size: .85rem; color: rgba(238,241,246,.72); max-width: 24ch; }
.hs .a { position: relative; z-index: 2; margin-top: .45rem; font-family: var(--mono); font-size: .56rem;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(238,241,246,.4); }
@media (max-width: 640px) { .hs { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); } }

/* ---------- sections ---------------------------------------------------- */

section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.sink { background: var(--sink); }
.inkbg { background: var(--night); color: var(--on-night); }
.inkbg .body, .inkbg .lead, .inkbg .sm { color: rgba(238,241,246,.7); }
.inkbg .kicker { color: #7db8fa; }
.inkbg .kicker.mute { color: rgba(238,241,246,.45); }

.shead { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; }

/* editorial spread: image and text, deliberately unequal */
.spread { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.spread.offset > *:first-child { transform: translateY(clamp(0px, 2vw, 32px)); }
.spread.wide-l { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
.spread.wide-r { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
@media (max-width: 880px) {
  .spread, .spread.wide-l, .spread.wide-r { grid-template-columns: 1fr; gap: 2rem; }
  .spread.offset > *:first-child { transform: none; }
}

/* ---------- full-bleed band --------------------------------------------- */

.band { position: relative; min-height: clamp(380px, 52vw, 620px); display: flex; align-items: center; overflow: hidden; }
.band > .ph { position: absolute; inset: 0; }
.band-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); color: #fff; }
.band-in h2, .band-in h3 { color: #fff; }
.band-in .lead { color: rgba(255,255,255,.85); }
.band-in .kicker { color: rgba(255,255,255,.7); }

.band-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.band-stats .v { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -.045em; line-height: 1; color: #fff; }
.band-stats .k { margin-top: .5rem; font-size: .83rem; color: rgba(255,255,255,.72); max-width: 22ch; }

/* ---------- cards ------------------------------------------------------- */

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .5s var(--ez), box-shadow .5s var(--ez);
}
.card .ph { flex: none; }
.card-b { position: relative; z-index: 2; padding: 1.5rem 1.45rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-b > .plate { align-self: flex-start; margin-bottom: .4rem; }
a.card:hover, .card.hover:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.card .ph::before { transition: transform .9s var(--ez); }
a.card:hover .ph::before, .card.hover:hover .ph::before { transform: scale(1.07); }
a.card:hover .pcard-rings, .card.hover:hover .pcard-rings { opacity: .18; transform: rotate(22deg) scale(1.09); }

/* ---------- sticky editorial column ------------------------------------- */

.sticky-wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.sticky-col { position: sticky; top: 90px; }
@media (max-width: 880px) { .sticky-wrap { grid-template-columns: 1fr; } .sticky-col { position: static; } }

.step { padding-block: clamp(1.5rem, 3vw, 2.6rem); border-top: 1px solid var(--line-2); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--blue); }

/* ---------- quote ------------------------------------------------------- */

.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.35; letter-spacing: -.015em; max-width: 22ch; }

/* ---------- portfolio --------------------------------------------------- */

.filters {
  background: var(--card);
  border-block: 1px solid var(--line-2); padding-block: 1rem;
}
.filters-in { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; align-items: center; }
.fg { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.f { padding: .4rem .8rem; border-radius: 7px; font-size: .8rem; color: var(--ink-2); border: 1px solid transparent; transition: all .3s var(--ez); white-space: nowrap; }
.f:hover { color: var(--ink); background: var(--sink); }
.f[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.count { margin-left: auto; font-family: var(--mono); font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3); }
.count b { color: var(--ink); font-weight: 600; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); }

/* ---------- portfolio card (no photography) -----------------------------
   Without an image the card has to carry itself on structure: a logo plate,
   a real data row, and the concentric-arc motif from the Lorax mark bleeding
   out of the top-right corner.
   ------------------------------------------------------------------------ */

.pcard {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 1.5rem 1.45rem 1.3rem; min-height: 315px;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .5s var(--ez), box-shadow .5s var(--ez), border-color .5s var(--ez);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--line); }

/* accent rule that draws in from the left on hover */
.pcard::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ez);
}
.pcard:hover::after { transform: scaleX(1); }

.pcard-rings { position: absolute; right: -58px; top: -58px; width: 195px; height: 195px;
  opacity: .07; pointer-events: none; transition: opacity .6s var(--ez), transform .8s var(--ez); }
.pcard-rings circle { fill: none; stroke: var(--blue); stroke-width: 1.4; }
.pcard:hover .pcard-rings { opacity: .18; transform: rotate(22deg) scale(1.09); }

.pcard-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; position: relative; z-index: 2; }

.pstatus { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 100px;
  font-family: var(--mono); font-size: .55rem; letter-spacing: .15em; text-transform: uppercase;
  background: var(--sink); color: var(--ink-2); white-space: nowrap; }
.pstatus::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--live); }
.pstatus.exit::before { background: var(--exit); }

.pname { font-size: 1.24rem; font-weight: 500; letter-spacing: -.026em; line-height: 1.2; }
.psec { font-family: var(--mono); font-size: .585rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: .45rem; }

.pmeta { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-2);
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.pmeta div { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.pmeta .k { font-family: var(--mono); font-size: .53rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.pmeta .v { font-size: .81rem; font-weight: 500; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }

.pfoot { display: flex; justify-content: flex-end; }
.pmore { font-size: .78rem; font-weight: 550; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: all .45s var(--ez); }
.pcard:hover .pmore { opacity: 1; transform: none; }
.pcard.gone { display: none; }

.empty { display: none; padding: 5rem 1rem; text-align: center; }
.empty.show { display: block; }

/* ---------- drawer + modal ---------------------------------------------- */

.scrim { position: fixed; inset: 0; background: rgba(6,10,18,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ez); z-index: 95; }
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper);
  z-index: 96; transform: translateX(101%); transition: transform .6s var(--ez); display: flex; flex-direction: column; box-shadow: var(--sh); }
.drawer.open { transform: none; }
.drawer-top { flex: none; display: flex; justify-content: flex-end; padding: .9rem 1rem .2rem; }

.drawer-close { width: 34px; height: 34px; border-radius: 50%; background: var(--sink);
  color: var(--ink-2); display: grid; place-items: center; transition: all .3s var(--ez); }
.drawer-close:hover { background: var(--night); color: var(--on-night); }

.drawer-head { position: relative; overflow: hidden; padding-bottom: .55rem; }
.drawer-head .pcard-rings { right: -70px; top: -72px; width: 210px; height: 210px; opacity: .1; }
.drawer-bd { padding: .75rem var(--pad) 3rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.drawer-bd > * { flex: 0 0 auto; }          /* never let content be squashed */

.facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.fact { background: var(--paper); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.fact .k { font-family: var(--mono); font-size: .56rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.fact .v { font-size: .9rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }

.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-46%) scale(.97); width: min(420px, calc(100vw - 2rem));
  background: var(--paper); border-radius: 14px; z-index: 96; opacity: 0; pointer-events: none;
  transition: all .5s var(--ez); box-shadow: var(--sh); overflow: hidden; }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.modal .ph { height: 92px; }
.modal-b { padding: 1.6rem 1.75rem 1.75rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field input { padding: .74rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .89rem; transition: border-color .3s; }
.field input:focus { outline: none; border-color: var(--blue); }

/* ---------- values drum -------------------------------------------------
   A vertical picker. Radial labels never align — ten words of different
   lengths around a circle is always a mess — so the wheel turns on the X axis
   instead and the type stays in one left-aligned column.
   ------------------------------------------------------------------------ */

.dial-wrap { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
@media (max-width: 900px) { .dial-wrap { grid-template-columns: 1fr; } }

.drum-shell { position: relative; }

.drum {
  position: relative; height: clamp(300px, 42vw, 400px);
  perspective: 1000px; overflow: hidden; cursor: grab;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.drum:active { cursor: grabbing; }

.drum-item {
  position: absolute; left: 0; right: 0; top: 50%; height: 54px; margin-top: -27px;
  display: flex; align-items: center; padding-left: 4.2rem;
  font-size: clamp(1.5rem, 2.7vw, 2.1rem); font-weight: 300; letter-spacing: -.035em;
  color: var(--ink-3); white-space: nowrap; text-align: left;
  transform-origin: center center; backface-visibility: hidden;
  transition: transform .7s var(--ez), opacity .7s var(--ez), color .7s var(--ez);
}
.drum-item[aria-selected="true"] { color: var(--ink); font-weight: 400; }

/* the selection lane */
.drum-lane { position: absolute; left: 0; right: 0; top: 50%; height: 54px; margin-top: -27px;
  pointer-events: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.drum-lane::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px;
  width: var(--w, 0%); background: var(--blue); }
.drum-idx { position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--blue);
  pointer-events: none; font-variant-numeric: tabular-nums; }

.drum-nav { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding-left: 4.2rem; }
.varrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); transition: all .35s var(--ez); }
.varrow:hover { background: var(--night); color: var(--on-night); border-color: var(--night); }
.drum-count { margin-left: auto; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); }

/* detail card */
.vcard { position: relative; overflow: hidden; background: var(--card);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: clamp(1.75rem, 3vw, 2.6rem); min-height: 430px;
  display: flex; flex-direction: column; gap: 1.05rem; }
.vcard .vrings { position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; opacity: .07; pointer-events: none; }
.vcard .vrings circle { fill: none; stroke: var(--blue); stroke-width: 1.3; }
.vcard > * { position: relative; z-index: 2; }
.vcard.swap { animation: vin .6s var(--ez) both; }
@keyframes vin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.vnum { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; color: var(--blue); }
.vname { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.04; }
.vlede { font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.vpoints { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .5rem; color: var(--ink-2); font-size: .93rem; }
.vpoints li::marker { color: var(--blue); }

.cost { margin-top: auto; display: flex; gap: .85rem; padding: 1rem 1.2rem; background: var(--sink);
  border-left: 2px solid var(--blue); border-radius: 0 8px 8px 0; font-size: .89rem; color: var(--ink-2); }
.cost .k { font-family: var(--mono); font-size: .56rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue); flex: none; padding-top: .2rem; }

@media (max-width: 620px) { .vcard { min-height: 500px; } .drum-item { padding-left: 3.2rem; } .drum-nav { padding-left: 3.2rem; } }

/* ---------- care -------------------------------------------------------- */

.care { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: clamp(1rem,2vw,1.6rem); }
.care-c { position: relative; overflow: hidden; border-radius: 6px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff; transition: transform .5s var(--ez); }
.care-c:hover { transform: translateY(-5px); }
.care-c > .ph { position: absolute; inset: 0; }
.care-c > .ph::before { transition: transform .9s var(--ez); }
.care-c:hover > .ph::before { transform: scale(1.08); }
.care-c .inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .55rem; }
.care-c .ch { font-size: 2.6rem; font-weight: 300; line-height: .9; letter-spacing: -.05em; }
.care-c p { color: rgba(255,255,255,.84); font-size: .88rem; line-height: 1.6; }

/* ---------- team strip -------------------------------------------------- */

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: clamp(.8rem,1.6vw,1.3rem); }
.tm .ph { border-radius: 5px; }
/* headshots are not stock photography — monograms hold the slot until the
   real portraits are shot, rather than putting a stranger's face on a partner */
.mono { position: relative; overflow: hidden; border-radius: 5px; display: grid; place-items: center;
  background: linear-gradient(155deg, var(--sink), var(--card)); border: 1px solid var(--line-2); }
.mono .pcard-rings { right: -46px; top: -46px; width: 150px; height: 150px; opacity: .13; }
.mono span { position: relative; z-index: 2; font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 300; letter-spacing: -.045em; color: var(--blue); }
.tm h4 { margin-top: .8rem; font-size: .92rem; font-weight: 550; letter-spacing: -.015em; }
.tm p { font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: .25rem; }

/* ---------- chips ------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 7px; font-size: .83rem; color: var(--ink-2); transition: all .35s var(--ez); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.inkbg .chip { border-color: rgba(255,255,255,.2); color: rgba(238,241,246,.82); }
.inkbg .chip:hover { border-color: #fff; color: #fff; }

/* ---------- note -------------------------------------------------------- */

.note { display: flex; gap: .85rem; padding: 1rem 1.2rem; border: 1px dashed var(--line); border-radius: 8px; font-size: .855rem; color: var(--ink-2); max-width: 84ch; }
.note .k { font-family: var(--mono); font-size: .56rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); flex: none; padding-top: .2rem; }

/* ---------- footer ------------------------------------------------------ */

.ftr { background: var(--night); color: rgba(238,241,246,.6); padding-block: clamp(3rem,5vw,4.5rem) 2.25rem; }
.ftr-grid { display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(auto-fit,minmax(130px,1fr)); gap: 2.25rem; }
.ftr h5 { margin: 0 0 .9rem; font-family: var(--mono); font-size: .59rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(238,241,246,.36); font-weight: 400; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .87rem; }
.ftr a:hover { color: #fff; }
.ftr-bot { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.09); display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; justify-content: space-between; font-size: .77rem; color: rgba(238,241,246,.4); }

/* ---------- logo plates -------------------------------------------------
   The source files vary wildly in aspect ratio, colour and format. A white
   plate normalises them: every logo sits on the same ground at the same
   optical height, whatever the page theme is doing.
   ------------------------------------------------------------------------ */

.plate {
  display: inline-grid; place-items: center; height: 52px;
  padding: .45rem .8rem; border-radius: 9px; background: #fff;
  box-shadow: 0 1px 3px rgba(11,18,32,.14), 0 6px 16px -10px rgba(11,18,32,.3);
}
.plate img { max-height: 32px; max-width: 124px; width: auto; object-fit: contain; }
.plate .wm { font-size: 1.02rem; font-weight: 650; letter-spacing: -.022em; color: #0b1220; white-space: nowrap; }
/* every logo is now dark artwork, so one plate treatment covers all of them.
   .on-ink is retained for any future white-only logo. */
.plate.on-ink { background: #0b1220; }
.plate.on-ink .wm { color: #fff; }

/* on a card the plate lifts up over the bottom edge of the image */
.pcard-b > .plate { margin-bottom: .5rem; justify-self: start; }
.pcard-b { align-items: flex-start; }

.drawer-head > .plate { position: relative; z-index: 2; }

/* logo wall */
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
@media (max-width: 1100px) { .wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px)  { .wall { grid-template-columns: repeat(2, 1fr); } }
.wall-more { background: var(--card); display: grid; place-items: center; gap: .3rem; transition: background .4s var(--ez); }
.wall-more:hover { background: var(--sink); }
.wall-c { background: var(--card); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1.25rem;
  transition: background .4s var(--ez); }
.wall-c:hover { background: var(--sink); }
.wall-c .plate { box-shadow: none; height: 48px; }
.wall-c .plate img { max-height: 34px; max-width: 136px; }
