/* ==========================================================================
   Climentos Technologies — Section & Page Styles
   ========================================================================== */

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .85;
}
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(760px 420px at 78% 18%, rgba(0, 229, 160, .18), transparent 62%),
    radial-gradient(680px 480px at 12% 78%, rgba(52, 199, 255, .14), transparent 64%);
}
/* Static contour ridges — carry the signature when WebGL is unavailable. */
.hero__fallback::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 1200px 340px;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='340' viewBox='0 0 1200 340'%3E%3Cg fill='none' stroke='%2300e5a0' stroke-width='1'%3E%3Cpath d='M0 300 Q150 250 300 278 T600 258 T900 286 T1200 262' opacity='.5'/%3E%3Cpath d='M0 262 Q150 214 300 240 T600 220 T900 248 T1200 224' opacity='.42'/%3E%3Cpath d='M0 224 Q150 178 300 202 T600 182 T900 210 T1200 186' opacity='.34'/%3E%3Cpath d='M0 186 Q150 142 300 164 T600 144 T900 172 T1200 148' opacity='.26'/%3E%3Cpath d='M0 148 Q150 106 300 126 T600 106 T900 134 T1200 110' opacity='.18'/%3E%3Cpath d='M0 110 Q150 70 300 88 T600 68 T900 96 T1200 72' opacity='.12'/%3E%3C/g%3E%3C/svg%3E");
}
/* Once WebGL is confirmed drawing, the static ridges step aside. */
.hero.has-gl .hero__fallback::after { opacity: 0; transition: opacity .9s var(--ease); }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,7,10,.6) 0%, rgba(5,7,10,.08) 34%, rgba(5,7,10,.62) 82%, var(--void) 99%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 2; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}
@media (max-width: 992px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title { margin-bottom: 1.4rem; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__lead { max-width: 54ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.hero__strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.hero__stat .n {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}
.hero__stat .l {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: .5rem;
  display: block;
}

/* Hero side console — the "delivery telemetry" card */
.console {
  position: relative;
  border-radius: var(--r-lg);
  background: rgba(10, 14, 21, .72);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--lift);
  overflow: hidden;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.console__dots { display: flex; gap: 5px; }
.console__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); display: block; }
.console__dots i:first-child { background: rgba(255, 99, 99, .55); }
.console__dots i:nth-child(2) { background: rgba(201, 169, 97, .55); }
.console__dots i:nth-child(3) { background: rgba(0, 229, 160, .55); }
.console__body { padding: 1.2rem; display: grid; gap: .8rem; }

.meter { display: grid; gap: .45rem; }
.meter__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.meter__top span:first-child { font-size: .84rem; color: var(--ink-2); }
.meter__top span:last-child { font-family: var(--f-mono); font-size: .76rem; color: var(--jade); }
.meter__rail { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.meter__fill { height: 100%; width: 0; border-radius: 4px; background: var(--aurora); transition: width 1.4s var(--ease); }

.console__spark { padding: 0 1.2rem 1.2rem; }
.spark { width: 100%; height: 74px; }
.spark path.area { fill: url(#sparkGrad); }
.spark path.line { fill: none; stroke: var(--jade); stroke-width: 1.6; stroke-linecap: round; }

.console__feed { border-top: 1px solid var(--hairline); padding: .9rem 1.2rem; display: grid; gap: .55rem; }
.feed-row {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .7rem; color: var(--muted);
}
.feed-row b { color: var(--ink-2); font-weight: 500; }
.feed-row .ok { color: var(--jade); margin-left: auto; }

/* --- Intro split -------------------------------------------------------- */
.intro__figure {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(160deg, var(--slate-2), var(--void));
}
.intro__figure svg { width: 100%; height: 100%; }

.checklist { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; margin: 0; color: var(--ink-2); font-size: .95rem; }
.checklist svg { width: 19px; height: 19px; color: var(--jade); flex: none; margin-top: 2px; }

/* --- Service tiles ------------------------------------------------------ */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

.svc { position: relative; display: block; color: inherit; }
.svc:hover { color: inherit; }
.svc__num {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--faint);
}
.svc h3 { font-size: 1.15rem; letter-spacing: -.025em; }
.svc .link-arrow { font-size: .66rem; }

/* --- Split feature (AI / Software) -------------------------------------- */
.feature-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } }
.feature-split--flip .feature-split__media { order: -1; }
@media (max-width: 900px) { .feature-split--flip .feature-split__media { order: 0; } }

/* Dashboard mock */
.dash {
  position: relative;
  border-radius: var(--r-lg);
  background: rgba(10, 14, 21, .8);
  border: 1px solid var(--glass-brd);
  overflow: hidden;
  box-shadow: var(--lift);
}
.dash__top {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.15rem; border-bottom: 1px solid var(--hairline);
}
.dash__top strong { font-family: var(--f-display); font-size: .9rem; color: var(--ink); letter-spacing: -.02em; }
.dash__top .chip { margin-left: auto; }
.dash__body { padding: 1.15rem; display: grid; gap: 1rem; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kpi { padding: .85rem; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--hairline-soft); }
.kpi .v { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.kpi .k { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: .45rem; display: block; }
.kpi .d { font-size: .68rem; color: var(--jade); margin-top: .3rem; display: block; }
.dash__chart { border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--hairline-soft); padding: .9rem; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; }
.bars i {
  flex: 1; display: block; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(0, 229, 160, .85), rgba(52, 199, 255, .28));
  height: var(--h, 30%);
  transform-origin: bottom;
  animation: barRise 1.1s var(--ease) backwards;
}
@keyframes barRise { from { transform: scaleY(0); } }
.dash__rows { display: grid; gap: .5rem; }
.drow {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  font-size: .8rem; color: var(--ink-2);
}
.drow .av { width: 26px; height: 26px; border-radius: 8px; background: var(--aurora-soft); display: grid; place-items: center; font-family: var(--f-mono); font-size: .6rem; color: var(--jade); flex: none; }
.drow .st { margin-left: auto; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.st--ok { color: var(--jade); }
.st--run { color: var(--sky); }
.st--wait { color: var(--champagne); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.tab {
  padding: .55rem 1rem; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); font-size: .86rem; cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--jade); background: rgba(0, 229, 160, .08); border-color: rgba(0, 229, 160, .28); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* --- Technologies ------------------------------------------------------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .8rem; }
.tech {
  display: grid; place-items: center; gap: .7rem;
  padding: 1.4rem .8rem;
  border-radius: var(--r);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  text-align: center;
  transition: transform .45s var(--ease), border-color .3s, background .3s;
}
.tech:hover { transform: translateY(-5px); border-color: rgba(0, 229, 160, .3); background: var(--glass-2); }
.tech__ico { width: 34px; height: 34px; color: var(--ink-2); transition: color .3s; }
.tech:hover .tech__ico { color: var(--jade); }
.tech span { font-size: .8rem; color: var(--muted); }

/* --- Industries --------------------------------------------------------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1024px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }
.ind {
  position: relative;
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1.4rem;
  border-radius: var(--r);
  border: 1px solid var(--glass-brd);
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  overflow: hidden;
  color: inherit;
  transition: transform .5s var(--ease), border-color .35s;
}
.ind:hover { transform: translateY(-6px); border-color: rgba(0, 229, 160, .32); color: inherit; }
.ind__bg { position: absolute; inset: 0; opacity: .16; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.ind:hover .ind__bg { opacity: .32; transform: scale(1.06); }
.ind h4 { position: relative; margin: 0; font-size: 1.05rem; }
.ind p { position: relative; margin: 0; font-size: .82rem; color: var(--muted); }
.ind .glyph { position: relative; margin-bottom: auto; }

/* --- Process timeline (real sequence → numbering earns its place) ------- */
.rail { position: relative; display: grid; gap: 0; }
.rail::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline) 8%, var(--hairline) 92%, transparent);
}
@media (max-width: 760px) { .rail::before { left: 21px; } }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.6rem;
  padding-block: 1.5rem;
}
@media (max-width: 760px) { .step { grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; } }
.step__node {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  background: var(--slate);
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--faint);
  transition: color .35s, border-color .35s, background .35s, box-shadow .35s;
}
@media (max-width: 760px) { .step__node { width: 44px; height: 44px; font-size: .7rem; } }
.step:hover .step__node,
.step.is-in .step__node { color: var(--jade); border-color: rgba(0, 229, 160, .45); box-shadow: 0 0 0 6px rgba(0, 229, 160, .06); }
.step__body h4 { margin-bottom: .4rem; }
.step__body p { color: var(--muted); font-size: .93rem; max-width: 62ch; }
.step__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

/* --- Portfolio ---------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1024px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
.work-grid--feature > :first-child { grid-column: span 2; }
@media (max-width: 640px) { .work-grid--feature > :first-child { grid-column: span 1; } }

.work {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  overflow: hidden;
  color: inherit;
  transition: transform .5s var(--ease), border-color .35s;
}
.work:hover { transform: translateY(-7px); border-color: rgba(0, 229, 160, .3); color: inherit; }
.work__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate-2); }
.work__thumb svg, .work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .work__thumb svg, .work:hover .work__thumb img { transform: scale(1.05); }
.work__body { padding: 1.3rem; display: grid; gap: .6rem; }
.work__body h3 { font-size: 1.08rem; margin: 0; }
.work__body p { margin: 0; font-size: .88rem; color: var(--muted); }
.work__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }
.work__stat { display: flex; gap: 1.4rem; padding-top: .8rem; margin-top: .3rem; border-top: 1px solid var(--hairline-soft); }
.work__stat div span { display: block; }
.work__stat .v { font-family: var(--f-display); font-weight: 600; color: var(--jade); font-size: 1.02rem; letter-spacing: -.02em; }
.work__stat .k { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: .2rem; }

/* --- Case study cards --------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-brd);
  overflow: hidden;
  background: var(--glass);
  transition: border-color .35s;
}
.case:hover { border-color: rgba(0, 229, 160, .28); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.case__media { position: relative; min-height: 260px; background: linear-gradient(150deg, var(--slate-2), var(--void)); }
.case__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case__body { padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.6rem); display: flex; flex-direction: column; gap: 1rem; }
.case__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }
.case__kpis .v { font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.85rem); font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.case__kpis .k { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-top: .45rem; display: block; }

/* --- Why choose / bento ------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }
.bento > .span-2 { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
@media (max-width: 620px) { .bento > .span-2, .bento > .span-3 { grid-column: span 1; } }
.bento .tile { min-height: 190px; }

/* --- Stats -------------------------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem) 1.4rem;
  background: var(--void);
  text-align: center;
  transition: background .4s;
}
.stat:hover { background: var(--slate); }
.stat .v {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .k {
  display: block;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: .8rem;
}

/* --- Testimonials ------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1024px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  display: flex; flex-direction: column; gap: 1.2rem;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--r);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  height: 100%;
  transition: border-color .35s, transform .5s var(--ease);
}
.quote:hover { border-color: rgba(201, 169, 97, .3); transform: translateY(-5px); }
.quote__mark { font-family: var(--f-display); font-size: 2.6rem; line-height: .6; color: var(--champagne); opacity: .5; }
.quote p { font-size: .96rem; color: var(--ink-2); margin: 0; }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hairline-soft); }
.quote__av {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--aurora-soft); border: 1px solid rgba(0, 229, 160, .2);
  font-family: var(--f-display); font-weight: 600; color: var(--jade); font-size: .88rem;
}
.quote__who b { display: block; color: var(--ink); font-size: .88rem; font-weight: 600; }
.quote__who span { font-size: .76rem; color: var(--faint); }

/* --- Awards ------------------------------------------------------------- */
.awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .awards { grid-template-columns: 1fr; } }
.award {
  display: grid; gap: .7rem;
  padding: 1.5rem 1.3rem;
  border-radius: var(--r);
  border: 1px solid rgba(201, 169, 97, .16);
  background: linear-gradient(165deg, rgba(201, 169, 97, .07), transparent 70%);
  transition: border-color .35s, transform .45s var(--ease);
}
.award:hover { border-color: rgba(201, 169, 97, .4); transform: translateY(-4px); }
.award svg { width: 30px; height: 30px; color: var(--champagne); }
.award b { color: var(--ink); font-family: var(--f-display); font-size: .98rem; font-weight: 600; letter-spacing: -.02em; }
.award span { font-size: .78rem; color: var(--muted); }
.award small { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; color: var(--champagne); }

/* --- Global presence ---------------------------------------------------- */
.globe-wrap { position: relative; }
.globe-wrap svg { width: 100%; height: auto; }
.hub { cursor: pointer; }
.hub circle.core { fill: var(--jade); }
.hub circle.halo { fill: rgba(0, 229, 160, .22); animation: haloPulse 3s var(--ease-in-out) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes haloPulse { 0%, 100% { r: 6; opacity: .5; } 50% { r: 13; opacity: 0; } }
.hub text { font-family: var(--f-mono); font-size: 9px; fill: var(--muted); letter-spacing: .1em; }
.hub:hover text { fill: var(--jade); }

.office-list { display: grid; gap: .1rem; }
.office {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.office b { color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; }
.office span { display: block; font-size: .82rem; color: var(--muted); }
.office .tz { font-family: var(--f-mono); font-size: .7rem; color: var(--faint); letter-spacing: .1em; }

/* --- Blog --------------------------------------------------------------- */
/* =========================
   POSTS GRID
========================= */

.posts{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
    align-items:start;
}

@media (max-width:1024px){
    .posts{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:768px){
    .posts{
        grid-template-columns:1fr;
    }
}


/* =========================
   POST CARD
========================= */

.post{
    display:flex;
    flex-direction:column;
    width:100%;
    min-width:0;

    background:var(--glass);
    border:1px solid var(--glass-brd);
    border-radius:var(--r);

    overflow:hidden;

    transition:.35s ease;
}

.post:hover{
    transform:translateY(-6px);
    border-color:rgba(0,229,160,.3);
}


/* =========================
   IMAGE
========================= */

.post__thumb{
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:var(--slate-2);
}

.post__thumb img,
.post__thumb svg{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .6s;
}

.post:hover .post__thumb img{
    transform:scale(1.05);
}


/* =========================
   BODY
========================= */

.post__body{
    display:flex;
    flex-direction:column;
    gap:14px;

    padding:24px;

    min-width:0;
}

.post__meta{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:.7rem;
    text-transform:uppercase;
}

.post__body h3{
    margin:0;

    font-size:2rem;
    line-height:1.2;

    word-break:break-word;
}

.post__body p{
    margin:0;

    color:var(--muted);

    line-height:1.8;

    word-break:break-word;
}


/* =========================
   FEATURED CARD
========================= */

.post--wide{
    display:flex;
    flex-direction:column;
}

.post--wide .post__thumb{
    width:100%;
    aspect-ratio:16/9;
}

.post--wide .post__body{
    padding:24px;
}


/* =========================
   MOBILE
========================= */

@media(max-width:768px){

.post__body h3{
    font-size:1.5rem;
}

}

/* --- Careers ------------------------------------------------------------ */
.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem clamp(1.1rem, .9rem + .8vw, 1.7rem);
  border-radius: var(--r);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  transition: border-color .35s, transform .4s var(--ease), background .35s;
}
.job:hover { border-color: rgba(0, 229, 160, .3); transform: translateX(5px); background: var(--glass-2); }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; } }
.job h4 { margin-bottom: .45rem; font-size: 1.05rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .8rem; color: var(--muted); }
.job__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.job__meta svg { width: 14px; height: 14px; color: var(--faint); }

.perk { display: grid; gap: .7rem; padding: 1.3rem; border-radius: var(--r); border: 1px solid var(--glass-brd); background: var(--glass); }
.perk b { color: var(--ink); font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
.perk p { margin: 0; font-size: .86rem; color: var(--muted); }

/* --- Pricing calculator ------------------------------------------------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 1.2rem + 2vw, 3rem); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc__group { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hairline-soft); }
.calc__group:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.calc__label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.calc__label b { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: .98rem; letter-spacing: -.02em; }
.calc__label span { font-family: var(--f-mono); font-size: .74rem; color: var(--jade); }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  padding: .55rem 1rem; border-radius: 10px;
  border: 1px solid var(--glass-brd); background: var(--glass);
  color: var(--muted); font-size: .84rem; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.opt:hover { color: var(--ink); }
.opt.is-on { color: var(--jade); border-color: rgba(0, 229, 160, .4); background: rgba(0, 229, 160, .09); }

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  outline: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--jade); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 229, 160, .16);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: var(--jade); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 229, 160, .16);
}

.calc__out { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; }
.calc__total {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}
.calc__lines { display: grid; gap: .55rem; margin: 1.4rem 0; }
.calc__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; color: var(--muted); }
.calc__line b { color: var(--ink-2); font-weight: 500; }

/* --- Interactive timeline ----------------------------------------------- */
.tl { position: relative; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; }
.tl__track { display: flex; gap: 1.1rem; min-width: max-content; padding-block: 2.5rem 1rem; position: relative; }
.tl__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 6%, var(--hairline) 94%, transparent);
}
.tl__item { position: relative; width: 250px; flex: none; padding-top: 2.2rem; }
.tl__item::before {
  content: ""; position: absolute; top: 18px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--slate); border: 1px solid var(--faint);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.tl__item:hover::before { background: var(--jade); border-color: var(--jade); box-shadow: 0 0 0 5px rgba(0, 229, 160, .14); }
.tl__yr { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; color: var(--jade); display: block; margin-bottom: .6rem; }
.tl__item h4 { font-size: 1rem; margin-bottom: .4rem; }
.tl__item p { font-size: .84rem; color: var(--muted); margin: 0; }

/* --- Page hero (inner pages) -------------------------------------------- */
.phero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 3rem + 4vw, 7rem));
  padding-bottom: clamp(3rem, 2.5rem + 3vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
}
.phero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(680px 340px at 82% 6%, rgba(0, 229, 160, .16), transparent 64%),
    radial-gradient(560px 380px at 6% 92%, rgba(52, 199, 255, .11), transparent 66%);
}
.phero .shell { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.6rem; }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--jade); }
.crumbs svg { width: 11px; height: 11px; opacity: .5; }

/* --- Prose (legal / article) -------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.12rem; margin-top: 1.9rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li::marker { color: var(--jade); }
.prose strong { color: var(--ink-2); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.6rem 0; }

.toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.toc a { display: block; padding: .42rem .8rem; border-left: 1px solid var(--hairline); color: var(--muted); font-size: .84rem; }
.toc a:hover, .toc a.is-on { color: var(--jade); border-left-color: var(--jade); background: rgba(0, 229, 160, .04); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
/* Reading order stays prose-first; the sidebar sits on the right. */
.doc-layout--rev { grid-template-columns: minmax(0, 1fr) 280px; }
@media (max-width: 900px) {
  .doc-layout,
  .doc-layout--rev { grid-template-columns: 1fr; }
  .toc { position: static; }
  .doc-layout--rev .toc { order: -1; }
}

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: var(--r-xl);
  border: 1px solid rgba(0, 229, 160, .22);
  background:
    radial-gradient(700px 300px at 84% 12%, rgba(0, 229, 160, .16), transparent 66%),
    radial-gradient(520px 320px at 8% 90%, rgba(52, 199, 255, .12), transparent 68%),
    var(--slate);
  overflow: hidden;
  text-align: center;
}
.cta-band .h-2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band__row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* --- 404 ---------------------------------------------------------------- */
.oops { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 3rem) 0 4rem; position: relative; overflow: hidden; }
.oops__code {
  font-family: var(--f-display);
  font-size: clamp(6rem, 4rem + 20vw, 18rem);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .8;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .1em;
}
.oops__links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.4rem; }

/* --- Newsletter --------------------------------------------------------- */
.news-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.news-form .input { flex: 1 1 200px; }

/* --- Lead popup --------------------------------------------------------- */
.lead-pop__side {
  background: linear-gradient(165deg, rgba(0, 229, 160, .14), rgba(52, 199, 255, .05));
  padding: 1.6rem;
  border-radius: var(--r);
  border: 1px solid rgba(0, 229, 160, .18);
}
.lead-pop__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 700px) { .lead-pop__grid { grid-template-columns: 1fr; } }

/* --- Gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gal {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--glass-brd); cursor: pointer; background: var(--slate-2);
  transition: transform .45s var(--ease), border-color .3s;
}
.gal:hover { transform: scale(1.02); border-color: rgba(0, 229, 160, .35); }
.gal svg, .gal img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: .7rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 10, .9));
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}

/* --- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hairline-soft); align-items: flex-start; }
.contact-line b { display: block; color: var(--ink); font-size: .94rem; font-weight: 600; }
.contact-line span { font-size: .86rem; color: var(--muted); }
.map-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--glass-brd); aspect-ratio: 16/9; background: var(--slate-2); }
.map-frame svg { width: 100%; height: 100%; }

/* --- Utility ------------------------------------------------------------ */
.stack-sm { display: grid; gap: .8rem; }
.stack { display: grid; gap: 1.2rem; }
.stack-lg { display: grid; gap: 2rem; }
.row-inline { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.max-60 { max-width: 60ch; }
.hide-sm { display: initial; }
@media (max-width: 620px) { .hide-sm { display: none; } }

/* ============================================================ 23. LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 5, 8, .93);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease), visibility .32s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
  grid-column: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.lightbox__figure img {
  max-width: min(100%, 1100px);
  max-height: 76vh;
  width: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--slate-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  transform: scale(.97);
  transition: transform .4s var(--ease);
}
.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox__figure figcaption {
  color: var(--ink-3);
  font-size: .9rem;
  text-align: center;
  max-width: 62ch;
}

.lightbox__nav,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 20, 29, .8);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__nav svg,
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--jade); color: var(--void); border-color: var(--jade); }
.lightbox__nav:focus-visible,
.lightbox__close:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}
.lightbox__count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--ink-4);
}

@media (max-width: 720px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__figure { grid-column: 1; }
  .lightbox__nav--prev { position: absolute; left: .75rem; top: 50%; }
  .lightbox__nav--next { position: absolute; right: .75rem; top: 50%; }
}

/* Compact page hero for legal and utility pages. */
.phero--tight { padding-block: clamp(6rem, 12vw, 9rem) clamp(2rem, 4vw, 3rem); }
.phero--tight .h-1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }