
/* ============================================================
   LYNTERA ONE — modular system identity
   Burnt Coral #E66A4E · Oxblood #5A1E2A · Bone #F3E9DC · Charcoal #242424
   ============================================================ */

:root{
  /* brand constants */
  --brand-coral:#E66A4E;
  --brand-oxblood:#5A1E2A;
  --brand-bone:#F3E9DC;
  --brand-charcoal:#242424;

  /* light theme (default) */
  --ground:#F3E9DC;
  --surface:#F8F2E9;
  --sunk:#EADFCE;
  --ink:#231E1B;
  --ink-muted:#6B5D55;
  --ink-faint:#9A8B80;
  --rule:#D9C9B6;
  --rule-strong:#BFA98F;
  --accent:#E66A4E;
  --accent-text:#BE4526;
  --deep:#5A1E2A;
  --module-off:#DCCDB9;

  /* logo layers */
  --logo-ink:#242424;
  --logo-deep:#5A1E2A;
  --logo-coral:#E66A4E;
  --logo-rule:#B5ABA0;

  /* type scale */
  --t-xs:0.6875rem;
  --t-sm:0.8125rem;
  --t-base:1.0625rem;
  --t-lg:1.1875rem;
  --t-xl:1.5rem;
  --t-2xl:2rem;
  --t-3xl:2.75rem;
  --t-4xl:3.75rem;

  --rail:190px;
  --gutter:clamp(20px,5vw,64px);
  --maxw:1240px;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#191716;
    --surface:#221F1D;
    --sunk:#131110;
    --ink:#F0E6D8;
    --ink-muted:#A39387;
    --ink-faint:#7C6F66;
    --rule:#38322E;
    --rule-strong:#4C443E;
    --accent:#E66A4E;
    --accent-text:#F0866A;
    --deep:#8C3244;
    --module-off:#332C29;
    --logo-ink:#F3E9DC;
    --logo-deep:#8C3244;
    --logo-coral:#E66A4E;
    --logo-rule:#57504A;
  }
}
:root[data-theme="dark"]{
  --ground:#191716;
  --surface:#221F1D;
  --sunk:#131110;
  --ink:#F0E6D8;
  --ink-muted:#A39387;
  --ink-faint:#7C6F66;
  --rule:#38322E;
  --rule-strong:#4C443E;
  --accent:#E66A4E;
  --accent-text:#F0866A;
  --deep:#8C3244;
  --module-off:#332C29;
  --logo-ink:#F3E9DC;
  --logo-deep:#8C3244;
  --logo-coral:#E66A4E;
  --logo-rule:#57504A;
}

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

body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:"Archivo","Helvetica Neue",Arial,sans-serif;
  font-size:var(--t-base);
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4{
  font-family:"Jost","Futura","Century Gothic",sans-serif;
  font-weight:300;
  margin:0;
  text-wrap:balance;
  letter-spacing:-0.005em;
}

p{margin:0;}
a{color:inherit;}

::selection{background:var(--accent);color:#1A0E0A;}

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

/* ---------- utility type ---------- */
.mono{
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:var(--t-xs);
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:500;
}

.label{
  color:var(--ink-faint);
  display:block;
}

.label::before{
  content:"";
  display:block;
  width:26px;
  height:2px;
  background:var(--accent);
  margin-bottom:14px;
}

.lede{
  font-size:var(--t-lg);
  color:var(--ink-muted);
  max-width:62ch;
}

.prose{max-width:62ch;display:flex;flex-direction:column;gap:1.15em;}
.prose strong{font-weight:600;color:var(--ink);}

/* ---------- shell ---------- */
.wrap{
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.band{
  border-top:1px solid var(--rule);
  padding-block:clamp(64px,8.5vw,116px);
}
.band:first-of-type{border-top:0;}

.band--dark{
  --ground:#1D1A18;
  --surface:#262220;
  --ink:#F3E9DC;
  --ink-muted:#B0A196;
  --ink-faint:#8A7C72;
  --rule:#3A332F;
  --rule-strong:#4E453F;
  --accent-text:#F0866A;
  --module-off:#3A322E;
  --logo-ink:#F3E9DC;
  --logo-deep:#8C3244;
  --logo-rule:#57504A;
  background:var(--ground);
  color:var(--ink);
  border-top-color:transparent;
}

.band--oxblood{
  --ground:#4A1822;
  --surface:#5A1E2A;
  --ink:#F6EDE2;
  --ink-muted:#D0AFAF;
  --ink-faint:#B4908F;
  --rule:#6E2E39;
  --rule-strong:#8A4450;
  --accent-text:#FF9678;
  --module-off:#6E2E39;
  --logo-ink:#F3E9DC;
  --logo-deep:#F3E9DC;
  --logo-rule:#8A4450;
  background:var(--ground);
  color:var(--ink);
  border-top-color:transparent;
}

.grid2{
  display:grid;
  grid-template-columns:var(--rail) minmax(0,1fr);
  gap:clamp(28px,4vw,72px);
  align-items:start;
}

@media (max-width:820px){
  .grid2{grid-template-columns:1fr;gap:24px;}
  :root{--t-3xl:2.1rem;--t-4xl:2.5rem;--t-2xl:1.6rem;}
}

/* ---------- logo (traced from the Lyntera One brand sheet, direction 1.6) ---------- */
.lockup{display:inline-flex;align-items:center;text-decoration:none;color:inherit;}
.lockup__svg{display:block;height:27px;width:auto;}
.lockup--foot .lockup__svg{height:34px;}
.markmark{display:block;height:46px;width:auto;}

/* ---------- nav ---------- */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:color-mix(in srgb,var(--ground) 88%,transparent);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--rule);
}
.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:68px;
}
.nav__links{
  display:flex;
  align-items:center;
  gap:30px;
}
.nav__links a{
  text-decoration:none;
  color:var(--ink-muted);
  transition:color .18s ease;
}
.nav__links a:hover{color:var(--ink);}

@media (max-width:900px){ .nav__links{display:none;} }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 20px;
  background:var(--accent);
  color:#20100B;
  text-decoration:none;
  border:1px solid var(--accent);
  transition:background .18s ease,color .18s ease,transform .18s ease;
  font-family:"JetBrains Mono",monospace;
  font-size:var(--t-xs);
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:500;
}
.btn:hover{background:transparent;color:var(--accent-text);}
.btn--ghost{
  background:transparent;
  color:var(--ink);
  border-color:var(--rule-strong);
}
.btn--ghost:hover{border-color:var(--accent);color:var(--accent-text);background:transparent;}

/* ---------- hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--rule);
  padding-block:clamp(72px,11vw,150px);
}
#lattice{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
}
.hero__inner{position:relative;z-index:1;}
.hero h1{
  font-size:var(--t-4xl);
  line-height:1.03;
  letter-spacing:-0.022em;
  max-width:15ch;
  margin-block:26px 30px;
}
.hero h1 em{
  font-style:normal;
  color:var(--accent-text);
}
.hero__copy{display:flex;flex-direction:column;gap:1.1em;max-width:58ch;}
.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:38px;
}
.hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 28px;
  margin-top:52px;
  padding-top:20px;
  border-top:1px solid var(--rule);
  color:var(--ink-faint);
}

/* ---------- headings ---------- */
.h-section{
  font-size:var(--t-3xl);
  line-height:1.08;
  letter-spacing:-0.02em;
  max-width:20ch;
  margin-bottom:28px;
}
.h-sub{
  font-size:var(--t-xl);
  line-height:1.2;
  margin-bottom:14px;
}

/* ---------- module glyph ---------- */
.mod{width:19px;height:19px;display:block;flex:none;}

/* ---------- capability cards ---------- */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
  margin-top:8px;
}
.card{
  background:var(--ground);
  padding:30px 28px 34px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:background .2s ease;
}
.card:hover{background:var(--surface);}
.card__head{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.card h3{font-size:1.22rem;font-weight:400;letter-spacing:0;}
.card p{color:var(--ink-muted);font-size:var(--t-sm);line-height:1.66;}

/* ---------- attribute list ---------- */
.attrs{
  list-style:none;
  margin:22px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:0;
  border-top:1px solid var(--rule);
}
.attrs li{
  padding:13px 4px 13px 0;
  border-bottom:1px solid var(--rule);
  display:flex;
  align-items:baseline;
  gap:12px;
  color:var(--ink-muted);
  font-size:var(--t-sm);
}
.attrs li::before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  background:var(--accent);
  transform:translateY(-1px);
}

/* ---------- stages (genuine sequence) ---------- */
.stages{
  margin-top:10px;
  border-top:1px solid var(--rule);
}
.stage{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:clamp(16px,3vw,44px);
  padding:32px 0;
  border-bottom:1px solid var(--rule);
  align-items:start;
}
.stage__n{
  font-family:"Jost",sans-serif;
  font-size:2.25rem;
  font-weight:200;
  line-height:1;
  color:var(--accent-text);
  font-variant-numeric:tabular-nums;
}
.stage h3{font-size:1.35rem;font-weight:400;margin-bottom:8px;}
.stage p{color:var(--ink-muted);max-width:58ch;}
@media (max-width:600px){
  .stage{grid-template-columns:1fr;gap:10px;}
  .stage__n{font-size:1.6rem;}
}

/* ---------- pull statement ---------- */
.pull{
  font-family:"Jost",sans-serif;
  font-weight:300;
  font-size:clamp(1.6rem,3.4vw,2.3rem);
  line-height:1.2;
  letter-spacing:-0.015em;
  max-width:24ch;
  border-left:2px solid var(--accent);
  padding-left:26px;
  margin-top:36px;
}

/* ---------- rented platforms marquee list ---------- */
.churn{
  list-style:none;
  padding:0;
  margin:26px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
}
.churn li{
  background:var(--ground);
  padding:12px 18px;
  flex:1 1 auto;
  color:var(--ink-muted);
  font-family:"JetBrains Mono",monospace;
  font-size:var(--t-xs);
  letter-spacing:0.1em;
  text-transform:uppercase;
  white-space:nowrap;
}

/* ---------- questions ---------- */
.questions{
  display:flex;
  flex-direction:column;
  gap:0;
  margin-top:26px;
  border-top:1px solid var(--rule);
}
.questions div{
  padding:16px 0;
  border-bottom:1px solid var(--rule);
  font-family:"Jost",sans-serif;
  font-weight:300;
  font-size:1.32rem;
  display:flex;
  gap:14px;
  align-items:baseline;
}
.questions div::before{
  content:"→";
  color:var(--accent-text);
  font-size:0.9rem;
  flex:none;
}

/* ---------- intelligence layer cards ---------- */
.eco{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
  margin-top:10px;
}
.eco article{
  background:var(--ground);
  padding:32px 28px 36px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.eco h3{
  font-size:1.35rem;
  font-weight:400;
  letter-spacing:0.01em;
}
.eco p{color:var(--ink-muted);font-size:var(--t-sm);line-height:1.66;}
.eco .tag{color:var(--accent-text);}

/* ---------- white label: the seam between surface and engine ---------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:30px;
  border:1px solid var(--rule);
}
.split__col{
  padding:26px 28px 30px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.split__col + .split__col{border-left:2px solid var(--accent);}
.split__col h3{
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:var(--t-xs);
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:500;
  color:var(--ink-faint);
}
.split__col p{
  font-size:var(--t-sm);
  color:var(--ink-muted);
  margin-bottom:8px;
  max-width:34ch;
}
.split__col ul{list-style:none;margin:0;padding:0;}
.split__col li{
  display:flex;
  align-items:baseline;
  gap:11px;
  padding:11px 0;
  border-top:1px solid var(--rule);
  font-size:var(--t-sm);
}
.split__col li::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:1px;
  flex:none;
  transform:translateY(-1px);
}
.split__col--yours li::before{background:var(--accent);}
.split__col--engine li::before{background:var(--deep);}
@media (max-width:700px){
  .split{grid-template-columns:1fr;}
  .split__col + .split__col{border-left:0;border-top:2px solid var(--accent);}
}

/* ---------- final CTA ---------- */
.final h2{
  font-size:clamp(1.9rem,4.6vw,3.1rem);
  line-height:1.1;
  letter-spacing:-0.02em;
  max-width:19ch;
}
.final__mark{margin-bottom:38px;}

/* ---------- footer ---------- */
.foot{
  background:var(--brand-charcoal);
  color:#E8DCCD;
  --rule:#3B3532;
  --ink-muted:#A0938A;
  --ink-faint:#7E7269;
  --accent-text:#F0866A;
  --rule-strong:#4E453F;
  --logo-ink:#F3E9DC;
  --logo-deep:#8C3244;
  --logo-coral:#E66A4E;
  --logo-rule:#57504A;
}
.foot__top{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));
  gap:40px;
  padding-block:56px 44px;
}
@media (max-width:760px){ .foot__top{grid-template-columns:1fr;gap:32px;} }
.foot h4{
  font-family:"JetBrains Mono",monospace;
  font-size:var(--t-xs);
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--ink-faint);
  margin:0 0 16px;
  font-weight:500;
}
.foot ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;}
.foot ul a{color:#CDBFB2;text-decoration:none;font-size:var(--t-sm);}
.foot ul a:hover{color:var(--brand-coral);}
.foot__tag{color:var(--ink-muted);font-size:var(--t-sm);max-width:34ch;margin-top:18px;}
.foot__bar{
  border-top:1px solid var(--rule);
  padding-block:20px 30px;
  display:flex;
  flex-wrap:wrap;
  gap:12px 28px;
  justify-content:space-between;
  color:var(--ink-faint);
}
.foot__bar a{color:var(--ink-faint);text-decoration:none;}
.foot__bar a:hover{color:var(--brand-coral);}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(14px);}
.rv.is-in{opacity:1;transform:none;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.3,1);}
@media (prefers-reduced-motion: reduce){
  .rv{opacity:1;transform:none;transition:none;}
  *{animation-duration:.001ms !important;transition-duration:.001ms !important;}
}
