:root{
  color-scheme:light;
  --bg:#ffffff;
  --bg-grad:#f4f1ec;
  --surface:#ffffff;
  --text:#111111;
  --muted:rgba(17,17,17,.62);
  --border:rgba(17,17,17,.16);
  --invert-bg:#111111;
  --invert-bg-hover:#2a2a2a;
  --invert-text:#ffffff;
  --accent:#1f43ff;
  --accent-2:#5b78ff;
  --accent-rgb:31,67,255;
  --accent-hover:#1736d6;
  --accent-text:#ffffff;
  --shadow:0 24px 60px rgba(17,17,17,.16);
  --logo-invert:1;
  --sans:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --serif:'Fraunces','Instrument Serif',Georgia,serif;
  --mono:'DM Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scrollbar-width:thin;scrollbar-color:rgba(var(--accent-rgb),0) transparent;transition:scrollbar-color .4s ease}
html.scrolling{scrollbar-color:rgba(var(--accent-rgb),.85) transparent}
body{min-height:100vh;font-family:var(--sans);color:var(--text);background:var(--bg);line-height:1.5;overflow-x:clip}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{
  background-color:rgba(var(--accent-rgb),0);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
  box-shadow:0 0 0 rgba(var(--accent-rgb),0);
  transition:background-color .4s ease,box-shadow .4s ease;
}
html.scrolling::-webkit-scrollbar-thumb{
  background-color:rgba(var(--accent-rgb),.9);
  box-shadow:0 0 6px rgba(var(--accent-rgb),.85),0 0 12px rgba(var(--accent-rgb),.5);
}
html.scrolling::-webkit-scrollbar-thumb:hover{
  background-color:rgba(var(--accent-rgb),1);
  box-shadow:0 0 8px rgba(var(--accent-rgb),.95),0 0 16px rgba(var(--accent-rgb),.6);
}
::-webkit-scrollbar-corner{background:transparent}
.scroll-progress{
  position:fixed;
  top:0;left:0;
  height:3px;
  width:100%;
  transform:scaleX(0);
  transform-origin:0 50%;
  background:linear-gradient(90deg,var(--accent),var(--accent-2),var(--accent));
  box-shadow:0 0 10px rgba(var(--accent-rgb),.8);
  z-index:60;
  pointer-events:none;
  will-change:transform;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

.page{
  min-height:100vh;
  background:
    radial-gradient(150% 120% at 100% 50%,rgba(31,67,255,.28) 0%,rgba(31,67,255,.12) 40%,rgba(31,67,255,0) 70%),
    linear-gradient(160deg,var(--bg) 0%,var(--bg-grad) 100%);
}

/* Hero */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:8rem clamp(1.25rem,5vw,4.5rem) 3.5rem;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.hero-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:.9;
}
.hero-glow{
  position:absolute;
  top:-18%;
  right:-12%;
  width:60vw;
  height:60vw;
  max-width:900px;
  max-height:900px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%,
    rgba(31,67,255,.20) 0%,
    rgba(91,120,255,.12) 38%,
    rgba(91,120,255,0) 70%);
  filter:blur(20px);
  animation:glowDrift 16s ease-in-out infinite alternate;
}
.hero-inner{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1480px;
  margin:0 auto;
}
.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:1.6rem;
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  opacity:0;
  animation:fadeUp .7s cubic-bezier(.22,1,.36,1) .1s forwards;
}
.hero-eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px rgba(31,67,255,.16);
}
.hero-title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(3.5rem,10.5vw,11rem);
  line-height:.92;
  letter-spacing:-.035em;
}
.hero-title .line{
  display:block;
  opacity:0;
  animation:fadeUp .9s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-title .line:nth-child(1){animation-delay:.2s}
.hero-title .line:nth-child(2){animation-delay:.34s}
.hero-title .accent{
  font-style:italic;
  font-weight:400;
  padding-bottom:.18em;
  color:var(--accent);
  background:linear-gradient(100deg,var(--accent) 0%,var(--accent-2) 50%,var(--accent) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:fadeUp .9s cubic-bezier(.22,1,.36,1) .34s forwards;
}
.hero-copy{
  max-width:42ch;
  margin-top:2rem;
  font-size:clamp(1rem,1.5vw,1.2rem);
  line-height:1.6;
  color:var(--muted);
  opacity:0;
  animation:fadeUp .8s cubic-bezier(.22,1,.36,1) .5s forwards;
}
.hero-copy strong{color:var(--text);font-weight:600}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.9rem;
  margin-top:2.6rem;
  opacity:0;
  animation:fadeUp .8s cubic-bezier(.22,1,.36,1) .62s forwards;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:1.05rem 1.7rem;
  border-radius:999px;
  font-size:.95rem;
  font-weight:600;
  line-height:1;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .2s ease,background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.btn svg{width:16px;height:16px;transition:transform .2s ease}
a > svg{width:1em;height:1em;flex-shrink:0}
.btn:hover svg{transform:translateX(3px)}
.btn-primary{
  background:var(--accent);
  color:var(--accent-text);
  box-shadow:0 12px 30px rgba(31,67,255,.28);
}
.btn-primary:hover{background:var(--accent-hover);transform:translateY(-2px);box-shadow:0 16px 40px rgba(31,67,255,.36)}
.btn-outline{
  background:transparent;
  color:var(--text);
  border-color:var(--border);
}
.btn-outline:hover{border-color:var(--text);transform:translateY(-2px)}
.btn-text{
  background:transparent;
  color:var(--muted);
  padding-left:.4rem;
  padding-right:.4rem;
}
.btn-text:hover{color:var(--text)}
.hero-trust{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1.6rem;
  margin-top:3.2rem;
  opacity:0;
  animation:fadeUp .8s cubic-bezier(.22,1,.36,1) .74s forwards;
}
.trust-item{display:flex;flex-direction:column;gap:.15rem}
.trust-num{
  font-family:var(--serif);
  font-size:1.7rem;
  line-height:1;
  letter-spacing:-.01em;
}
.trust-num em{font-style:italic;color:var(--accent)}
.trust-lbl{
  font-size:.64rem;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
}
.trust-div{width:1px;height:34px;background:var(--border)}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes shimmer{
  to{background-position:220% center}
}
@keyframes glowDrift{
  0%{transform:translate(0,0) scale(1)}
  50%{transform:translate(-6%,4%) scale(1.12)}
  100%{transform:translate(4%,-3%) scale(1.04)}
}

/* Services */
.services{
  position:relative;
  padding:clamp(5rem,11vw,9rem) clamp(1.25rem,5vw,4.5rem);
  overflow:hidden;
}
.services-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.services-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:.9;
}
.services-glow{
  position:absolute;
  bottom:-25%;
  right:-8%;
  width:55vw;
  height:55vw;
  max-width:820px;
  max-height:820px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%,
    rgba(31,67,255,.18) 0%,
    rgba(91,120,255,.1) 40%,
    rgba(91,120,255,0) 70%);
  filter:blur(20px);
  animation:glowDrift 18s ease-in-out infinite alternate;
}
.services-inner{
  position:relative;
  z-index:1;
  max-width:1480px;
  margin:0 auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:2rem;
}
.services-head{
  font-family:var(--sans);
  font-weight:700;
  text-transform:uppercase;
  font-size:clamp(2.8rem,11vw,9rem);
  line-height:.9;
  letter-spacing:-.03em;
}
.services-head .line{display:block}
.services-arrow{
  width:clamp(46px,7vw,96px);
  height:auto;
  flex:0 0 auto;
  color:var(--text);
  margin-bottom:.4rem;
}

/* Scroll reveal */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .8s cubic-bezier(.22,1,.36,1),transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view{opacity:1;transform:none}

/* Services stack (sticky overlay cards) */
.svc-stack{
  position:relative;
  padding:0 clamp(1.25rem,5vw,4.5rem) clamp(4rem,9vw,8rem);
}
.svc-card{
  position:sticky;
  top:calc(5.5rem + var(--i,0) * 2.1rem);
  z-index:calc(var(--i,0) + 1);
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:clamp(1.5rem,4vw,3.5rem);
  max-width:1480px;
  margin:0 auto clamp(1.5rem,4vw,3rem);
  padding:clamp(1.75rem,3.2vw,3.25rem);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow);
  min-height:76vh;
  overflow:hidden;
}
.svc-card-body{
  display:flex;
  flex-direction:column;
  height:100%;
}
.svc-num{
  font-family:var(--mono);
  font-size:.76rem;
  letter-spacing:.1em;
  color:var(--muted);
  margin-bottom:1.2rem;
}
.svc-title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(2.4rem,4.6vw,4.4rem);
  line-height:1;
  letter-spacing:-.02em;
  margin-bottom:1.5rem;
}
.svc-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-bottom:1.6rem;
}
.svc-tag{
  padding:.5rem .9rem;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:.8rem;
  font-weight:500;
  color:var(--muted);
}
.svc-desc{
  max-width:46ch;
  font-size:clamp(1rem,1.4vw,1.15rem);
  line-height:1.6;
  color:var(--muted);
}
.svc-actions{
  margin-top:auto;
  padding-top:2.2rem;
}
.svc-visual{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  min-height:18rem;
  display:flex;
  align-items:flex-end;
  padding:clamp(1.25rem,2.5vw,2rem);
  background:linear-gradient(150deg,var(--accent) 0%,#2a2f7a 58%,#0c1030 100%);
}
.svc-visual::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 78% 18%,rgba(255,255,255,.28),transparent 46%);
}
.svc-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:38px 38px;
  mask-image:radial-gradient(circle at 70% 40%,#000,transparent 75%);
  -webkit-mask-image:radial-gradient(circle at 70% 40%,#000,transparent 75%);
}
.svc-visual-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  padding:clamp(.75rem,2.5vw,1.5rem);
  z-index:1;
  transform:none;
  animation:none;
}
.svc-visual.has-img{
  background:#fff;
  padding:0;
  min-height:0;
  aspect-ratio:4/3;
  align-self:center;
  max-height:min(22rem,44vh);
  border:3px solid var(--bg-grad);
  box-shadow:none;
}
.svc-visual.has-img::before{display:none}
.svc-visual.has-img::after{display:none}
.svc-visual.has-img .svc-visual-img{
  padding:clamp(.25rem,1.2vw,.75rem);
  background:#fff;
}
.svc-visual-idx{
  position:absolute;
  top:clamp(.9rem,3vw,2.2rem);
  right:clamp(1.25rem,3vw,2.4rem);
  z-index:3;
  font-family:var(--serif);
  font-size:clamp(3.4rem,8vw,6.5rem);
  line-height:1;
  color:rgba(255,255,255,.28);
}
.svc-visual-label{
  position:relative;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  color:#fff;
  font-weight:600;
  font-size:1rem;
  letter-spacing:.01em;
}
.svc-visual-label::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent-2);
  box-shadow:0 0 8px var(--accent-2);
}

@media(max-width:900px){
  .svc-card{
    grid-template-columns:1fr;
    min-height:0;
    top:calc(4.5rem + var(--i,0) * 1.6rem);
  }
  .svc-visual{
    min-height:clamp(14rem,48vw,17rem);
    max-height:none;
    aspect-ratio:3/2;
    align-self:stretch;
    order:-1;
  }
}

/* Why */
.why{
  position:relative;
  padding:clamp(4.5rem,9vw,8rem) clamp(1.25rem,5vw,4.5rem);
  overflow:hidden;
}
.why-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.why-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:.85;
}
.why-inner{
  position:relative;
  z-index:1;
  max-width:1480px;
  margin:0 auto;
}
.why-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:1.3rem;
  font-family:var(--mono);
  font-size:.74rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.why-eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px rgba(31,67,255,.16);
}
.why-title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(2.4rem,6vw,5rem);
  line-height:1;
  letter-spacing:-.025em;
  text-align:center;
  margin-bottom:clamp(2.5rem,5vw,4rem);
}
.why-title em{
  font-style:italic;
  background:linear-gradient(100deg,var(--accent) 0%,var(--accent-2) 50%,var(--accent) 90%);
  background-size:220% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.why-list{
  list-style:none;
  border-top:1px solid var(--border);
}
.why-item{
  display:block;
  padding:clamp(1.6rem,4vw,3.2rem) 0;
  border-bottom:1px solid var(--border);
  transition:opacity .8s cubic-bezier(.22,1,.36,1),transform .8s cubic-bezier(.22,1,.36,1);
}
.why-num{
  display:block;
  margin-bottom:clamp(.6rem,1.5vw,1.1rem);
  font-family:var(--mono);
  font-size:.82rem;
  letter-spacing:.08em;
  color:var(--muted);
}
.why-item-title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(2.6rem,7.5vw,6rem);
  line-height:1;
  letter-spacing:-.03em;
  color:rgba(17,17,17,.4);
  transition:color .3s ease;
}
.why-item:hover .why-item-title,
.why-item.lit .why-item-title{color:var(--text)}
.why-item.lit .why-num{color:var(--accent);opacity:1}

/* Work (inverted block) */
.work{
  position:relative;
  background:var(--invert-bg);
  color:var(--invert-text);
  padding:clamp(4.5rem,9vw,8rem) clamp(1.25rem,5vw,4.5rem);
  transition:background-color .3s ease,color .3s ease;
}
.work-inner{
  max-width:1480px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,4rem);
  align-items:stretch;
  min-height:72vh;
}
.work-title{
  align-self:end;
  font-family:var(--sans);
  font-weight:700;
  text-transform:uppercase;
  font-size:clamp(3.5rem,12vw,11rem);
  line-height:.85;
  letter-spacing:-.03em;
}
.work-title .line{display:block}
.work-right{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:2rem;
  padding-bottom:.4rem;
}
.work-text{
  display:flex;
  flex-direction:column;
  gap:1.2rem;
}
.work-heading{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:1.02;
  letter-spacing:-.02em;
}
.work-desc{
  max-width:46ch;
  font-size:clamp(1rem,1.3vw,1.15rem);
  line-height:1.6;
  opacity:.7;
}
.work-cta{
  align-self:flex-end;
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-weight:600;
  font-size:.95rem;
  color:var(--invert-text);
  transition:opacity .2s ease;
}
.work-cta:hover{opacity:.7}
.work-cta svg{width:16px;height:16px;transition:transform .2s ease}
.work-cta:hover svg{transform:translateX(3px)}

@media(max-width:900px){
  .work-inner{grid-template-columns:1fr;min-height:0;gap:2.5rem}
  .work-cta{align-self:flex-start}
}

.work-grid{
  max-width:1480px;
  margin:clamp(3rem,6vw,5rem) auto 0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(1.5rem,3vw,2.5rem);
}
.work-tile--lg{grid-column:1 / -1}
.work-tile--lg .work-tile-media{aspect-ratio:21/9}
.work-tile--lg .work-tile-name{font-size:1.2rem}

@media(max-width:760px){
  .work-grid{grid-template-columns:1fr}
  .work-tile--lg{grid-column:auto}
  .work-tile--lg .work-tile-media{aspect-ratio:16/10}
}
.work-tile{
  display:flex;
  flex-direction:column;
  gap:1rem;
  color:var(--invert-text);
}
.work-tile-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.work-tile-name{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-size:1.05rem;
  font-weight:500;
  letter-spacing:-.01em;
}
.work-tile-name svg{
  width:16px;
  height:16px;
  flex:0 0 auto;
  color:var(--accent);
  transition:transform .2s ease;
}
.work-tile:hover .work-tile-name svg{transform:translate(2px,2px)}
.work-tile-year{
  font-family:var(--mono);
  font-size:.82rem;
  letter-spacing:.04em;
  opacity:.7;
}
.work-tile-media{
  position:relative;
  aspect-ratio:16/10;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(150deg,var(--accent) 0%,#2a2f7a 58%,#0c1030 100%);
  transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.work-tile:hover .work-tile-media{transform:translateY(-6px)}
.work-tile-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 76% 18%,rgba(255,255,255,.26),transparent 50%);
}
.work-tile-media::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:40px 40px;
  mask-image:radial-gradient(circle at 70% 45%,#000,transparent 75%);
  -webkit-mask-image:radial-gradient(circle at 70% 45%,#000,transparent 75%);
}
.work-tile-media.has-img{background:#0a0c24}
.work-tile-media.has-img::before,
.work-tile-media.has-img::after{display:none}
.work-tile-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.work-tile:hover .work-tile-img{transform:scale(1.04)}

/* Voices / Testimonials (inverted block) */
.voices{
  position:relative;
  background:var(--invert-bg);
  color:var(--invert-text);
  padding:clamp(4.5rem,9vw,8rem) clamp(1.25rem,5vw,4.5rem);
  transition:background-color .3s ease,color .3s ease;
}
.voices-inner{
  max-width:1480px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2.5rem,6vw,5rem);
  align-items:center;
}
.voices-title{
  font-family:var(--sans);
  font-weight:700;
  font-size:clamp(2.8rem,8vw,6rem);
  line-height:.92;
  letter-spacing:-.03em;
}
.voice-card-wrap{display:flex;flex-direction:column;gap:1.5rem}
.voice-card{
  position:relative;
  background:#f4cdda;
  color:#16161c;
  border-radius:24px;
  padding:clamp(1.75rem,3vw,2.75rem);
  display:flex;
  flex-direction:column;
  gap:1.4rem;
  min-height:24rem;
  overflow:hidden;
  transition:opacity .35s ease,background-color .45s ease;
}
.voice-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:6px;
  background:rgba(0,0,0,.16);
}
.voice-stars{
  display:inline-flex;
  gap:.2rem;
  color:#f5b301;
  font-size:1.1rem;
  line-height:1;
  letter-spacing:.1em;
}
.voice-company{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(1.6rem,2.6vw,2.2rem);
  letter-spacing:-.01em;
}
.voice-quote{
  font-size:clamp(1rem,1.35vw,1.18rem);
  line-height:1.6;
  color:#2c2c33;
}
.voice-foot{
  margin-top:auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1.25rem;
  flex-wrap:wrap;
}
.voice-author strong{display:block;font-weight:600;font-size:1rem;color:#16161c}
.voice-author span{color:rgba(0,0,0,.55);font-size:.9rem}
.voice-link.btn-outline{padding:.8rem 1.4rem;font-size:.9rem;color:#16161c;border-color:rgba(0,0,0,.28)}
.voice-link.btn-outline:hover{border-color:#16161c}
.voice-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.7rem;
}
.voice-btn{
  width:48px;
  height:48px;
  border-radius:50%;
  border:1.5px solid var(--invert-text);
  background:transparent;
  color:var(--invert-text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  transition:background-color .2s ease,color .2s ease;
}
.voice-btn svg{width:18px;height:18px;pointer-events:none}
.voice-btn:hover{background:var(--invert-text);color:var(--invert-bg)}
@media(hover:hover){
  .voice-btn:active{transform:scale(.94)}
}
.voice-dots{display:flex;align-items:center;gap:.45rem;margin-right:auto}
.voice-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--invert-text);
  opacity:.3;
  transition:opacity .2s ease,width .2s ease;
}
.voice-dot.active{opacity:1;width:22px;border-radius:999px}

@media(max-width:900px){
  .voices-inner{grid-template-columns:1fr;gap:2.5rem}
}

/* Articles (inverted block) */
.articles{
  position:relative;
  background:var(--invert-bg);
  color:var(--invert-text);
  padding:clamp(4.5rem,9vw,8rem) clamp(1.25rem,5vw,4.5rem);
  transition:background-color .3s ease,color .3s ease;
}
.articles-inner{max-width:1480px;margin:0 auto}
.articles-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  flex-wrap:wrap;
  margin-bottom:clamp(2.5rem,5vw,4rem);
}
.articles-title{
  font-family:var(--sans);
  font-weight:700;
  font-size:clamp(2.6rem,7vw,5.5rem);
  line-height:.95;
  letter-spacing:-.03em;
}
.articles-link{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.95rem 1.6rem;
  border-radius:999px;
  border:1.5px solid var(--text);
  color:var(--text);
  font-weight:600;
  font-size:.95rem;
  transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
.articles-link svg{width:16px;height:16px;transition:transform .2s ease}
.articles-link:hover{background:var(--text);color:var(--bg);transform:translateY(-2px)}
.articles-link:hover svg{transform:translateX(3px)}
.articles .articles-link{
  border-color:var(--invert-text);
  color:var(--invert-text);
}
.articles .articles-link:hover{background:var(--invert-text);color:var(--invert-bg)}
.articles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(1.5rem,3vw,2.5rem);
}
.article-card{
  display:flex;
  flex-direction:column;
  gap:1.1rem;
  color:var(--text);
}
.articles .article-card{color:var(--invert-text)}
.article-media{
  position:relative;
  aspect-ratio:4/5;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(150deg,var(--accent) 0%,#6a3fb5 55%,#0c1030 100%);
  transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.article-card:nth-child(2) .article-media{background:linear-gradient(150deg,#1f43ff 0%,#0a1e6b 55%,#05030f 100%)}
.article-card:nth-child(3) .article-media{background:linear-gradient(150deg,#e7c3ff 0%,#b48be0 50%,#5a3a8a 100%)}
.article-card:hover .article-media{transform:translateY(-6px)}
.article-media::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:38px 38px;
  mask-image:radial-gradient(circle at 60% 35%,#000,transparent 78%);
  -webkit-mask-image:radial-gradient(circle at 60% 35%,#000,transparent 78%);
}
.article-media.has-img{background:#0a0c24}
.article-card:nth-child(2) .article-media.has-img,
.article-card:nth-child(3) .article-media.has-img{background:#0a0c24}
.article-media.has-img::after{display:none}
.article-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.article-card:hover .article-img{transform:scale(1.04)}
.article-cat{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.72rem;
  font-weight:500;
  opacity:.7;
}
.article-title{
  font-size:clamp(1.15rem,1.7vw,1.4rem);
  font-weight:500;
  line-height:1.25;
  letter-spacing:-.01em;
  transition:color .2s ease;
}
.article-card:hover .article-title{color:var(--accent)}

@media(max-width:880px){
  .articles-grid{grid-template-columns:1fr 1fr}
  .article-card:nth-child(3){display:none}
}
@media(max-width:560px){
  .articles-grid{grid-template-columns:1fr}
  .article-card:nth-child(3){display:flex}
  .article-media{aspect-ratio:16/11}
}

/* FAQ */
.faq{
  position:relative;
  background:var(--bg);
  padding:clamp(4.5rem,9vw,8rem) clamp(1.25rem,5vw,4.5rem);
  transition:background-color .3s ease,color .3s ease;
}
.faq-inner{max-width:1100px;margin:0 auto}
.faq-title{
  font-family:var(--sans);
  font-weight:700;
  font-size:clamp(2.8rem,8vw,5.5rem);
  line-height:.95;
  letter-spacing:-.03em;
  margin-bottom:clamp(2rem,4vw,3.25rem);
}
.faq-list{border-top:1px solid var(--border)}
.faq-item{border-bottom:1px solid var(--border)}
.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  gap:1.1rem;
  padding:1.5rem 0;
  background:none;
  border:none;
  cursor:pointer;
  text-align:left;
  color:var(--text);
  font-family:var(--sans);
  font-size:clamp(1.05rem,1.6vw,1.3rem);
  font-weight:500;
  letter-spacing:-.01em;
  transition:color .2s ease;
}
.faq-q:hover{color:var(--accent)}
.faq-icon{
  position:relative;
  flex:0 0 auto;
  width:24px;
  height:24px;
}
.faq-icon::before,.faq-icon::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  background:currentColor;
  border-radius:2px;
  transform:translate(-50%,-50%);
  transition:transform .3s ease,opacity .3s ease;
}
.faq-icon::before{width:15px;height:2px}
.faq-icon::after{width:2px;height:15px}
.faq-item.open .faq-icon::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0}
.faq-answer{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .35s ease;
}
.faq-item.open .faq-answer{grid-template-rows:1fr}
.faq-answer-inner{overflow:hidden}
.faq-answer p{
  margin:0;
  padding:0 0 1.6rem 2.1rem;
  max-width:68ch;
  color:var(--muted);
  font-size:clamp(1rem,1.3vw,1.1rem);
  line-height:1.65;
}

/* Footer */
.site-footer{
  position:relative;
  background:var(--bg);
  border-top:1px solid var(--border);
  padding:clamp(4rem,8vw,7rem) clamp(1.25rem,5vw,4.5rem) 2.5rem;
}
.footer-inner{max-width:1480px;margin:0 auto}
.footer-cta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:2rem;
  flex-wrap:wrap;
  padding-bottom:clamp(3rem,6vw,5rem);
  border-bottom:1px solid var(--border);
}
.footer-cta h2{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(2.4rem,6vw,5rem);
  line-height:1;
  letter-spacing:-.02em;
  max-width:16ch;
}
.footer-cta h2 em{font-style:italic;color:var(--accent)}
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.2fr;
  gap:clamp(2rem,4vw,3.5rem);
  padding:clamp(3rem,5vw,4rem) 0;
}
.footer-brand .logo-img{height:38px}
.footer-tagline{
  margin-top:1.25rem;
  max-width:30ch;
  color:var(--muted);
  font-size:1rem;
  line-height:1.6;
}
.footer-col h4{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.72rem;
  font-weight:500;
  color:var(--muted);
  margin-bottom:1.25rem;
}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.7rem}
.footer-col a{
  color:var(--text);
  font-size:1rem;
  transition:color .2s ease,opacity .2s ease;
}
.footer-col a:hover{color:var(--accent)}
.footer-contact a{display:block}
.footer-contact .footer-mail{
  font-family:var(--serif);
  font-size:clamp(1.2rem,1.8vw,1.5rem);
  margin-bottom:.4rem;
}
.footer-socials{display:flex;gap:.6rem;margin-top:1.5rem}
.footer-social{
  width:42px;height:42px;border-radius:50%;
  border:1px solid var(--border);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--text);
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}
.footer-social svg{width:18px;height:18px}
.footer-social:hover{background:var(--accent);color:var(--accent-text);border-color:var(--accent);transform:translateY(-2px)}
.footer-social--whatsapp:hover{background:#25D366;color:#fff;border-color:#25D366}
.footer-whatsapp{
  font-size:.95rem;
  margin-bottom:.35rem;
}
.whatsapp-float{
  position:fixed;
  right:clamp(1rem,3vw,1.35rem);
  bottom:clamp(1rem,3vw,1.35rem);
  z-index:90;
  width:3.25rem;
  height:3.25rem;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 18px rgba(37,211,102,.32);
  transition:transform .2s ease,box-shadow .2s ease;
}
.whatsapp-float svg{width:1.55rem;height:1.55rem;fill:currentColor}
.whatsapp-float:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 22px rgba(37,211,102,.42);
}
@media(max-width:760px){
  .whatsapp-float{display:inline-flex}
  body.menu-open .whatsapp-float{opacity:0;pointer-events:none}
}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  padding-top:2.5rem;
  border-top:1px solid var(--border);
}
.footer-copy{font-family:var(--mono);font-size:.8rem;color:var(--muted);letter-spacing:.02em}
.footer-legal{display:flex;gap:1.5rem}
.footer-legal a{font-size:.8rem;color:var(--muted);transition:color .2s ease}
.footer-legal a:hover{color:var(--text)}

@media(max-width:860px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1 / -1}
}
@media(max-width:520px){
  .footer-grid{grid-template-columns:1fr}
  .footer-cta{flex-direction:column;align-items:flex-start;gap:1.75rem}
}

/* Header / Nav */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:10;
  padding:1.25rem clamp(1rem,3vw,2rem);
}
/* When the fixed header overlaps an inverted (dark) section, flip its palette */
.site-header.over-invert{
  --text:#ffffff;
  --bg:#0d0d0f;
  --invert-bg:#ffffff;
  --invert-bg-hover:#e6e6e6;
  --invert-text:#111111;
  --logo-invert:0;
}
.site-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:1rem;
}
.logo-link{display:inline-flex;align-items:center}
.logo-box{
  display:grid;
  place-items:center;
  min-width:clamp(100px,22vw,140px);
  height:40px;
}
.logo-img{
  height:40px;
  width:auto;
  max-width:100%;
  grid-area:1/1;
  transition:opacity .25s ease;
}
.logo-for-dark-bg{display:none}
.logo-for-light-bg{display:block}
.site-header.over-invert .logo-for-dark-bg{display:block}
.site-header.over-invert .logo-for-light-bg{display:none}
.nav-actions{
  display:flex;
  align-items:center;
  gap:.9rem;
}
.project-link{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  padding:.92rem 1.25rem;
  border-radius:999px;
  background:var(--invert-bg);
  color:var(--invert-text);
  font-size:.9rem;
  font-weight:600;
  line-height:1;
  transition:transform .2s ease,background-color .2s ease,color .2s ease;
}
.project-link:hover{
  background:var(--invert-bg-hover);
  transform:translateY(-1px);
}
.project-link svg{
  width:15px;
  height:15px;
  transition:transform .2s ease;
}
.project-link:hover svg{transform:translateX(3px)}
.menu-button{
  width:45px;
  height:45px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--text);
  border-radius:50%;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,color .2s ease,border-color .3s ease;
}
.menu-button:hover{
  background:var(--text);
  color:var(--bg);
  transform:translateY(-1px);
}
.menu-lines,
.menu-lines::before,
.menu-lines::after{
  display:block;
  width:17px;
  height:1.5px;
  background:currentColor;
}
.menu-lines{position:relative}
.menu-lines::before,
.menu-lines::after{
  content:"";
  position:absolute;
  left:0;
}
.menu-lines::before{top:-5px}
.menu-lines::after{top:5px}

/* Expanded Menu */
.menu-panel{
  position:fixed;
  top:1rem;
  right:1rem;
  z-index:20;
  display:block;
  width:16.75rem;
  padding:4.5rem 1.9rem 1.7rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  color:var(--text);
  box-shadow:var(--shadow);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform-origin:top right;
  transform:translateY(-8px) scale(.95);
  transition:opacity .3s ease,visibility .3s ease,transform .4s cubic-bezier(.22,1,.36,1);
}
body.menu-open .menu-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.menu-close{
  position:absolute;
  top:1rem;
  right:1rem;
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1.5px solid var(--text);
  border-radius:50%;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .3s ease;
}
.menu-close:hover{background:var(--text);color:var(--surface)}
.menu-close::before,
.menu-close::after{
  content:"";
  position:absolute;
  width:20px;
  height:1.5px;
  border-radius:999px;
  background:currentColor;
}
.menu-close::before{transform:rotate(45deg)}
.menu-close::after{transform:rotate(-45deg)}
.menu-list{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  width:100%;
  margin:0;
  list-style:none;
}
.menu-list > li,
.menu-project{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .45s ease,transform .45s cubic-bezier(.22,1,.36,1);
}
body.menu-open .menu-list > li,
body.menu-open .menu-project{
  opacity:1;
  transform:none;
}
body.menu-open .menu-list > li:nth-child(1){transition-delay:.08s}
body.menu-open .menu-list > li:nth-child(2){transition-delay:.14s}
body.menu-open .menu-list > li:nth-child(3){transition-delay:.2s}
body.menu-open .menu-list > li:nth-child(4){transition-delay:.26s}
body.menu-open .menu-list > li:nth-child(5){transition-delay:.32s}
body.menu-open .menu-project{transition-delay:.4s}
.menu-list > li > a,
.menu-sub-toggle{
  display:inline-flex;
  align-items:center;
  width:max-content;
  font-family:inherit;
  font-size:1.4rem;
  font-weight:500;
  line-height:1.1;
  letter-spacing:-.02em;
  color:var(--text);
  transition:opacity .2s ease,transform .2s ease;
}
.menu-list > li > a:hover,
.menu-sub-toggle:hover{opacity:.55;transform:translateX(4px)}
.menu-sub-toggle{
  gap:.35rem;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
.sub-ind{
  display:inline-block;
  font-weight:400;
  transition:transform .25s ease;
}
.has-sub.open .sub-ind{transform:rotate(45deg)}
.menu-sublist{
  list-style:none;
  margin:0;
  padding-left:.1rem;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .3s ease,opacity .25s ease,margin .3s ease;
}
.has-sub.open .menu-sublist{
  max-height:20rem;
  opacity:1;
  margin:.45rem 0 .2rem;
}
.menu-sublist li{
  margin:.1rem 0;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1);
}
.has-sub.open .menu-sublist li{opacity:1;transform:none}
.has-sub.open .menu-sublist li:nth-child(1){transition-delay:.06s}
.has-sub.open .menu-sublist li:nth-child(2){transition-delay:.11s}
.has-sub.open .menu-sublist li:nth-child(3){transition-delay:.16s}
.has-sub.open .menu-sublist li:nth-child(4){transition-delay:.21s}
.has-sub.open .menu-sublist li:nth-child(5){transition-delay:.26s}
.menu-sublist a{
  display:inline-block;
  max-width:100%;
  font-size:.92rem;
  font-weight:400;
  line-height:1.35;
  color:var(--muted);
  transition:color .2s ease,transform .2s ease;
}
.menu-sublist a:hover{color:var(--text);transform:translateX(4px)}
.menu-project{
  margin-top:1.8rem;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  width:100%;
  padding:.85rem 1.25rem;
  border:1.5px solid var(--text);
  border-radius:999px;
  font-size:.92rem;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease,border-color .3s ease;
}
.menu-project:hover{background:var(--text);color:var(--surface)}
.menu-project svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
  transition:transform .2s ease;
}
.menu-project:hover svg{transform:translateX(3px)}
.menu-button span,
.menu-button span::before,
.menu-button span::after{transition:transform .2s ease}
.menu-button:hover .menu-lines::before{transform:translateY(-1px)}
.menu-button:hover .menu-lines::after{transform:translateY(1px)}

@media(prefers-reduced-motion:reduce){
  .menu-panel,
  .menu-list > li,
  .menu-project,
  .menu-sublist,
  .menu-sublist li,
  .sub-ind{
    transition-duration:.01ms !important;
    transition-delay:0ms !important;
  }
  .menu-panel{transform:none}
  .hero-eyebrow,
  .hero-title .line,
  .hero-title .accent,
  .hero-copy,
  .hero-cta,
  .hero-trust,
  .hero-glow{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
  }
}

@media(max-width:700px){
  .site-header{padding:1rem}
  .logo-img{height:32px}
  .nav-actions{gap:.55rem}
  .project-link{padding:.78rem .95rem;font-size:.78rem}
  .menu-button{width:40px;height:40px}
  .menu-panel{top:1rem;right:1rem;width:min(calc(100vw - 2rem),16.75rem)}
  .hero{padding-top:7rem}
  .hero-cta{gap:.6rem}
  .btn{padding:.95rem 1.4rem;font-size:.88rem}
  .hero-trust{gap:1.1rem;margin-top:2.4rem}
  .trust-num{font-size:1.4rem}
  .trust-div:nth-of-type(2){display:none}
}

/* Cookie consent banner */
.cookie-banner{
  position:fixed;
  inset:0;
  z-index:95;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  pointer-events:none;
}
.cookie-banner.is-visible{pointer-events:auto}
.cookie-banner-backdrop{
  position:absolute;
  inset:0;
  background:rgba(17,17,17,.28);
  opacity:0;
  transition:opacity .35s ease;
}
.cookie-banner.is-visible .cookie-banner-backdrop{opacity:1}
.cookie-banner-panel{
  position:relative;
  width:100%;
  transform:translateY(100%);
  transition:transform .42s cubic-bezier(.22,1,.36,1);
  border-top:1px solid var(--border);
  background:color-mix(in srgb,var(--surface) 96%,transparent);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  box-shadow:0 -18px 50px rgba(17,17,17,.12);
}
.cookie-banner-panel::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
}
.cookie-banner.is-visible .cookie-banner-panel{transform:translateY(0)}
.cookie-banner-inner{
  display:flex;
  align-items:center;
  gap:1.1rem 1.75rem;
  max-width:1480px;
  margin:0 auto;
  padding:1.15rem clamp(1rem,3vw,2rem) calc(1.15rem + env(safe-area-inset-bottom,0px));
}
.cookie-banner-brand{flex:0 0 auto}
.cookie-banner-icon{
  display:grid;
  place-items:center;
  width:2.75rem;
  height:2.75rem;
  border-radius:.9rem;
  background:rgba(var(--accent-rgb),.1);
  color:var(--accent);
}
.cookie-banner-icon svg{width:1.35rem;height:1.35rem}
.cookie-banner-copy{flex:1 1 18rem;min-width:0}
.cookie-banner-title{
  font-family:var(--serif);
  font-size:1.05rem;
  font-weight:500;
  letter-spacing:-.02em;
  line-height:1.2;
  margin-bottom:.3rem;
}
.cookie-banner-text{
  font-size:.86rem;
  line-height:1.6;
  color:var(--muted);
  max-width:38rem;
}
.cookie-banner-link{
  color:var(--text);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:rgba(var(--accent-rgb),.35);
  text-underline-offset:.18em;
  transition:color .2s ease,text-decoration-color .2s ease;
}
.cookie-banner-link:hover{
  color:var(--accent);
  text-decoration-color:currentColor;
}
.cookie-banner-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  flex:0 0 auto;
  margin-left:auto;
}
.cookie-banner .btn{
  padding:.88rem 1.35rem;
  font-size:.84rem;
  white-space:nowrap;
}
body.cookie-banner-open{overflow:hidden}
body.cookie-banner-open .whatsapp-float{
  bottom:calc(6.5rem + env(safe-area-inset-bottom,0px));
}
@media(max-width:760px){
  .cookie-banner-inner{
    flex-wrap:wrap;
    align-items:flex-start;
    padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom,0px));
    gap:.9rem 1rem;
  }
  .cookie-banner-brand{display:none}
  .cookie-banner-title{font-size:.98rem}
  .cookie-banner-text{font-size:.82rem}
  .cookie-banner-actions{
    width:100%;
    margin-left:0;
  }
  .cookie-banner .btn{
    flex:1 1 calc(50% - .35rem);
    justify-content:center;
  }
}

/* —— Quick wins: modern CSS enhancements —— */

/* Cross-page view transitions (Chrome/Safari; others ignore) */
@view-transition{navigation:auto}
::view-transition-old(root),
::view-transition-new(root){animation-duration:.28s}
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*){animation:none!important}
}

/* Balanced headlines, no orphan words in paragraphs */
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}

/* Scroll-driven media reveal (progressive enhancement) */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    .work-tile-media,
    .article-media{
      animation:mediaScrollIn linear both;
      animation-timeline:view();
      animation-range:entry 5% entry 45%;
    }
  }
}
@keyframes mediaScrollIn{
  from{opacity:.3;clip-path:inset(7% 5% 7% 5% round 18px)}
  to{opacity:1;clip-path:inset(0 round 0)}
}

/* Staggered headline word reveals */
.split.reveal{opacity:1;transform:none;transition:none}
.split .w{
  display:inline-block;
  opacity:0;
  transform:translateY(.55em);
  transition:opacity .65s cubic-bezier(.22,1,.36,1),transform .65s cubic-bezier(.22,1,.36,1);
  transition-delay:calc(var(--wi,0)*70ms);
}
.split.words-in .w{opacity:1;transform:none}

/* —— Stat strip (shared editorial stats component) —— */
.stat-strip{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  --strip-line:rgba(17,17,17,.18);
  --strip-line-soft:rgba(17,17,17,.12);
  --strip-eyebrow:rgba(17,17,17,.45);
  --strip-lbl:rgba(17,17,17,.6);
  --strip-accent:var(--accent);
  --strip-accent-hover:var(--accent-hover);
}
.stat-strip--invert{
  --strip-line:rgba(255,255,255,.16);
  --strip-line-soft:rgba(255,255,255,.12);
  --strip-eyebrow:rgba(255,255,255,.45);
  --strip-lbl:rgba(255,255,255,.6);
  --strip-accent:var(--accent-2);
  --strip-accent-hover:#8ba0ff;
}
.stat-strip::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:1px;
  background:var(--strip-line);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 1s cubic-bezier(.22,1,.36,1);
}
.stat-strip.reveal{opacity:1;transform:none;transition:none}
.stat-strip.reveal.in-view::before{transform:scaleX(1)}
.stat-item{
  position:relative;
  display:block;
  color:inherit;
  padding:clamp(2rem,3.5vw,3rem) clamp(1.5rem,2.5vw,2.5rem) .5rem;
}
.stat-item::before{
  content:"";
  position:absolute;
  top:0;left:0;bottom:0;
  width:1px;
  background:var(--strip-line-soft);
  transform:scaleY(0);
  transform-origin:top;
  transition:transform .9s cubic-bezier(.22,1,.36,1);
  transition-delay:calc(.15s + var(--i,0)*80ms);
}
.stat-strip.reveal.in-view .stat-item::before{transform:scaleY(1)}
.stat-item:first-child::before{display:none}
.stat-item:first-child{padding-left:0}
.stat-strip.reveal .stat-item{opacity:0}
.stat-strip.reveal.in-view .stat-item{
  opacity:1;
  animation:stripIn .7s cubic-bezier(.22,1,.36,1) backwards;
  animation-delay:calc(.22s + var(--i,0)*80ms);
}
@keyframes stripIn{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:none}
}
.stat-eyebrow{
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--strip-eyebrow);
  margin-bottom:1.1rem;
}
.stat-num{
  font-family:var(--serif);
  font-size:clamp(2.8rem,4.8vw,4.4rem);
  line-height:1.04;
  letter-spacing:-.025em;
  margin-bottom:1.1rem;
}
.stat-num [data-countup]{font-variant-numeric:tabular-nums}
.stat-num em{
  display:block;
  font-style:italic;
  font-size:.62em;
  color:var(--strip-accent);
  transition:color .3s ease;
}
.stat-item:hover .stat-num em{color:var(--strip-accent-hover)}
.stat-star{
  font-size:.5em;
  vertical-align:.4em;
  margin-left:.08em;
  color:var(--strip-accent);
}
.stat-lbl{
  max-width:24ch;
  font-size:.88rem;
  line-height:1.55;
  color:var(--strip-lbl);
}
.stat-item--link .stat-lbl svg{
  width:.85em;height:.85em;
  margin-left:.3em;
  vertical-align:-.08em;
  opacity:0;
  transition:opacity .25s ease,transform .25s ease;
}
.stat-item--link:hover .stat-lbl{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:var(--strip-accent-hover);
}
.stat-item--link:hover .stat-lbl svg{opacity:1;transform:translate(2px,-2px)}
@media(max-width:1024px){
  .stat-strip{grid-template-columns:repeat(2,1fr)}
  .stat-strip::before{display:none}
  .stat-item{padding-left:0;padding-right:1.5rem}
  .stat-item::before,
  .stat-item:first-child::before{
    display:block;
    top:0;left:0;right:0;bottom:auto;
    width:auto;height:1px;
    transform:scaleX(0);
    transform-origin:left;
  }
  .stat-strip.reveal.in-view .stat-item::before{transform:scaleX(1)}
}
@media(max-width:480px){
  .stat-strip{grid-template-columns:1fr}
  .stat-item{padding-right:0;padding-bottom:1.75rem}
}
@media (prefers-reduced-motion:reduce){
  .stat-strip.reveal .stat-item{opacity:1}
  .stat-strip.reveal.in-view .stat-item{animation:none}
  .stat-strip::before,
  .stat-item::before{transform:none;transition:none}
}
