/* ────────────────────────────────────────────────────────────
   TexInvestCo — WHAT WE DO (what-we-do.html) styles
   Loaded after css/shared.css.
   ──────────────────────────────────────────────────────────── */

body{line-height:1.7;padding-top:68px;}

/* Fixed nav, matching the homepage — position:sticky was silently broken
   here because shared.css sets overflow-x:hidden on html/body, and per the
   CSS overflow spec that forces the other axis to compute as overflow-y:auto,
   which makes body/html into position:sticky's nearest scrolling ancestor
   instead of the viewport. Fixed positioning sidesteps that bug entirely. */
nav{position:fixed;top:0;left:0;right:0;width:100%;box-sizing:border-box;}
/* This page's wordmark runs slightly smaller than the other subpages —
   a pre-existing, page-specific difference, preserved here. */
.nword{font-size:0.95rem;}

/* HERO — single-column, left-aligned text, now with a full-bleed photo +
   dark scrim behind it (same treatment as the Who We Are hero: a plain
   background layer, a scrim on top for text contrast, then the existing
   ambient glow layered above that for a little extra depth). */
.wd-hero{
  position:relative;padding:72px 5vw 52px;overflow:hidden;
}
.wd-hero-bg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;z-index:0;}
.wd-hero-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 50%;display:block;}
.wd-hero-scrim{position:absolute;inset:0;z-index:0;background:rgba(17,29,51,0.86);}
.wd-hero-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 60% 55% at 50% 40%,rgba(202,168,75,0.05) 0%,transparent 65%);z-index:0;}
.wd-hero-grid{position:relative;z-index:1;max-width:1100px;margin:0 auto;}
.wd-hero-text{text-align:left;}
.wd-eyebrow{
  display:flex;align-items:center;gap:0.8rem;
  font-size:0.62rem;font-weight:500;letter-spacing:0.42em;text-transform:uppercase;color:var(--gold);margin-bottom:16px;
}
.wd-eyebrow::before{content:'';width:22px;height:1px;background:var(--gold);flex-shrink:0;}
.wd-title{font-family:var(--fd);font-size:clamp(26px,3.4vw,40px);font-weight:600;color:var(--hi);line-height:1.2;margin-bottom:20px;}
.wd-title em{font-style:normal;color:var(--gold);font-weight:400;}
.wd-intro{font-size:1.125rem;font-weight:300;color:var(--mid);line-height:1.85;max-width:680px;margin:0;}
.wd-intro+.wd-intro{margin-top:1rem;}

/* SECTIONS */
.sec{padding:72px 5vw;}
.bg0{background:var(--bg-0);}
.bg1{background:var(--bg-1);}
.si{max-width:1080px;margin:0 auto;}
.seye{display:flex;align-items:center;gap:0.8rem;font-size:0.6rem;font-weight:500;letter-spacing:0.38em;text-transform:uppercase;color:var(--gold);margin-bottom:1.2rem;}
.seye::before{content:'';width:22px;height:1px;background:var(--gold);}
.stit{font-family:var(--fd);font-size:clamp(1.5rem,3vw,2.4rem);font-weight:600;letter-spacing:0.03em;color:var(--hi);line-height:1.2;margin-bottom:2rem;}
.stit em{font-style:normal;color:var(--gold);font-weight:400;}

/* SPLIT: TexInvestCo / Murkez */
.split{display:grid;grid-template-columns:1fr 44px 1fr;align-items:stretch;margin-top:1rem;}
.split-box{display:flex;flex-direction:column;border:1px solid var(--gb);padding:32px 28px;}
.split-name{font-family:var(--fd);font-size:0.71rem;font-weight:600;letter-spacing:0.28em;text-transform:uppercase;color:var(--gold);margin-bottom:14px;}
.split-line{font-size:1rem;font-weight:300;color:var(--hi);line-height:1.7;}
.split-join{display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:1.4rem;}
.split-join .ah{display:inline;}
.split-join .av{display:none;}

/* CAPABILITY TILES — vertical cards, each a distinct standalone element:
   photo occupies the top third, icon (line 1) + heading + body copy fill
   the bottom two-thirds. Generous gap on both axes keeps the eight tiles
   reading as separate cards rather than one continuous grid. */
.caps-lead{font-size:0.95rem;font-weight:300;font-style:italic;color:var(--lo);margin:-0.6rem 0 1.8rem;}
.caps{display:grid;grid-template-columns:repeat(4,1fr);gap:2.6rem 1.6rem;margin-top:2.2rem;}
.cap{display:flex;flex-direction:column;background:var(--bg-0);border:1px solid var(--gb);border-top:2px solid transparent;border-radius:2px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,0.14);transition:border-color 0.2s,background 0.2s,transform 0.2s;}
.cap:hover{border-top-color:var(--gold);background:rgba(202,168,75,0.04);transform:translateY(-2px);}
.cap-img-wrap{width:100%;aspect-ratio:3.1/1;flex-shrink:0;overflow:hidden;background:var(--bg-0);position:relative;}
.cap-img-wrap img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(1) contrast(1.08) brightness(0.82);transition:transform 0.5s ease;}
.cap-img-wrap::after{content:'';position:absolute;inset:0;background:linear-gradient(160deg,rgba(17,29,51,0.68) 0%,rgba(27,43,75,0.5) 100%);mix-blend-mode:multiply;pointer-events:none;}
.cap-img-wrap::before{content:'';position:absolute;inset:0;background:rgba(202,168,75,0.06);mix-blend-mode:color;pointer-events:none;z-index:1;}
.cap:hover .cap-img-wrap img{transform:scale(1.045);}
.cap-body{flex:1;padding:1.3rem 1.3rem 1.5rem;display:flex;flex-direction:column;text-align:left;min-width:0;}
.cap-head{display:flex;align-items:center;gap:0.55rem;margin-bottom:0.7rem;}
.cap-icon{width:20px;height:20px;color:var(--gold);flex-shrink:0;}
.cap-name{font-size:0.9rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--hi);margin:0;line-height:1.3;}
.cap-line{font-size:0.92rem;font-weight:300;color:var(--mid);line-height:1.6;margin:0;text-align:left;}
.caps-foot{margin-top:1.6rem;}
.caps-link{font-size:0.78rem;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--gold);text-decoration:none;transition:color 0.2s;}
.caps-link:hover{color:var(--hi);}

/* CAPITAL STRUCTURE */
.cap-struct{background:var(--bg-1);border:1px solid var(--gb);border-top:2px solid var(--gold);padding:2.4rem 2.2rem;margin-top:1rem;}
.cap-struct p{font-size:1.125rem;font-weight:300;color:var(--mid);line-height:1.85;margin-bottom:1.2rem;}
.cap-struct p:last-child{margin-bottom:0;}
.cap-struct strong{color:var(--hi);font-weight:500;}
.cap-struct-risk{border-top:1px solid var(--gf);padding-top:1.4rem;margin-top:1.6rem;font-style:italic;}
.cap-struct-risk .win{color:var(--gold);font-style:normal;font-weight:500;}

/* BEYOND / FOR FOUNDERS-ACQUIRERS */
.beyond-sec{
  position:relative;overflow:hidden;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 500' preserveAspectRatio='none'%3E%3Cpath d='M-80,300 C180,180 420,380 680,260 C940,140 1160,340 1420,220' fill='none' stroke='rgba(201,168,76,0.08)' stroke-width='1.5'/%3E%3Cpath d='M-80,400 C160,300 360,440 620,320 C880,200 1080,420 1340,300' fill='none' stroke='rgba(201,168,76,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
.beyond-sec .si{position:relative;z-index:1;}
.beyond-intro{font-size:1.125rem;font-weight:300;color:var(--mid);line-height:1.85;max-width:680px;margin-bottom:2.4rem;}
.ba-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--gb);}
.ba-card{background:var(--bg-0);padding:2.2rem 2rem;}
.ba-card-t{font-size:0.75rem;font-weight:600;letter-spacing:0.16em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem;}
.ba-card-b{font-size:1rem;font-weight:300;color:var(--mid);line-height:1.8;}
.beyond-close{text-align:center;font-family:var(--fd);font-size:1.15rem;font-weight:400;color:var(--hi);letter-spacing:0.04em;margin-top:2.4rem;}

/* TEAM (3-column layout on this page) */
.tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--gb);}
.titem{background:var(--bg-1);padding:2rem 1.8rem;display:flex;flex-direction:column;transition:background 0.2s;}
.titem:hover{background:rgba(202,168,75,0.04);}
.tname{font-family:var(--fd);font-size:1rem;font-weight:600;color:var(--hi);margin-bottom:0.3rem;}
.trole{font-size:0.66rem;font-weight:600;letter-spacing:0.16em;text-transform:uppercase;color:var(--gold);margin-bottom:0.9rem;}
.tbio{font-size:1rem;font-weight:300;line-height:1.75;color:var(--mid);flex:1;}
.tbio-ext{max-height:0;overflow:hidden;transition:max-height 0.35s ease,margin 0.3s ease;font-size:1rem;font-weight:300;line-height:1.75;color:var(--mid);}
.titem.on .tbio-ext{max-height:420px;margin-top:0.8rem;}
.tfoot{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--gf);}
.tlink{font-size:0.69rem;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--gold);text-decoration:none;transition:color 0.2s;}
.tlink:hover{color:var(--hi);}
/* padding+negative margin enlarges the tap target toward 44px without shifting visual position/layout */
.tmore{font-size:0.69rem;font-weight:400;letter-spacing:0.1em;text-transform:uppercase;color:var(--lo);background:none;border:none;cursor:pointer;transition:color 0.2s;padding:16px 6px;margin:-16px -6px;}
.tmore:hover{color:var(--hi);}

/* RESPONSIVE */
@media(max-width:900px){
  .caps{grid-template-columns:repeat(2,1fr);gap:1.5rem;}
}
@media(max-width:720px){
  .sec{padding:44px 5vw;}
  .split{grid-template-columns:1fr;}
  .split-join{padding:8px 0;}
  .split-join .ah{display:none;}
  .split-join .av{display:inline;}
  .ba-grid{grid-template-columns:1fr;}
  .wd-hero{padding:44px 5vw 36px;}
  .tgrid{grid-template-columns:1fr;}
  .caps{grid-template-columns:1fr;gap:1.2rem;}
  .cap-img-wrap{aspect-ratio:16/9;}
}

/* ── ANIMATED LINE ICONS — standard sitewide treatment (same system as the
   homepage and Who We Are). Every drawable shape in an .ic-anim icon
   carries pathLength="100" in the markup, so one fixed 0→100
   stroke-dashoffset range works regardless of the shape's real geometry.
   First scroll into view flips on "ic-drawn", which starts the repeating
   draw/erase loop. Applied here to the eight capability icons. ── */
.ic-anim{overflow:visible;stroke-width:1.5;}
.ic-anim path,.ic-anim line,.ic-anim circle,.ic-anim ellipse,.ic-anim polyline,.ic-anim polygon,.ic-anim rect{
  stroke-dasharray:100;stroke-dashoffset:100;
}
.ic-anim.ic-drawn path,.ic-anim.ic-drawn line,.ic-anim.ic-drawn circle,.ic-anim.ic-drawn ellipse,.ic-anim.ic-drawn polyline,.ic-anim.ic-drawn polygon,.ic-anim.ic-drawn rect{
  animation-name:kpiRedraw;animation-duration:6.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;
}
@keyframes kpiRedraw{
  0%{stroke-dashoffset:100;}
  30%{stroke-dashoffset:0;}
  78%{stroke-dashoffset:0;}
  100%{stroke-dashoffset:100;}
}
@media(prefers-reduced-motion:reduce){
  .ic-anim path,.ic-anim line,.ic-anim circle,.ic-anim ellipse,.ic-anim polyline,.ic-anim polygon,.ic-anim rect{stroke-dashoffset:0 !important;}
  .ic-anim,.ic-anim *{animation:none !important;}
}
