/* ============================================================
   María Vicente — Product Designer Portfolio
   Shared design system. Editorial, DRĄSA-inspired, single
   committed visual world (warm cream + electric pink / lime /
   lavender). Theme is intentionally fixed — see artifact-design
   guidance on deliberate single-theme brand work.
   ============================================================ */

/* ---------- Design plan ----------
   Color: --ink (near-black text/lines), --cream (warm paper ground),
   --pink / --lime / --lavender (the three brand blocks, used large),
   --cream-soft (quiet surface between blocks).
   Type: Space Grotesk (display — headlines, eyebrows, nav, numerals),
   Work Sans (body — running text, descriptions).
   Layout: editorial asymmetric grid — big bold left-aligned headlines,
   full-bleed color bands, three-column project cards that break grid
   rhythm with staggered vertical offsets on desktop.
   ---------------------------------- */

:root{
  --pink:#FD55C8;
  --pink-deep:#E0199F;
  --lime:#D2FA5D;
  --lime-deep:#8FBF1F;
  --lavender:#BAB5FD;
  --lavender-deep:#8A86FF;
  --lavender-tint:#F2F0FC;
  --ink:#111111;
  --cream:#FAF9F6;
  --cream-soft:#F1EEE6;
  --white:#FFFFFF;

  --font-display:'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --container:1320px;
  --gutter-l:max(20px, env(safe-area-inset-left,0px));
  --gutter-r:max(20px, env(safe-area-inset-right,0px));

  --fs-hero:clamp(2.6rem, 2vw + 2.4rem, 5rem);
  --fs-h1:clamp(2.1rem, 1.6vw + 1.8rem, 3.2rem);
  --fs-h2:clamp(1.7rem, 1.2vw + 1.4rem, 2.5rem);
  --fs-h3:clamp(1.25rem, 0.5vw + 1.1rem, 1.55rem);
  --fs-lead:clamp(1.05rem, 0.3vw + 1rem, 1.3rem);
  --fs-body:1rem;
  --fs-small:0.875rem;
  --fs-eyebrow:0.78rem;

  --radius-lg:28px;
  --radius-md:18px;
  --radius-sm:10px;

  --ease:cubic-bezier(.22,.88,.30,1);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
h1,h2,h3,h4,p,figure{ margin:0; }
ul{ list-style:none; margin:0; padding:0; }
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
button, a{ -webkit-tap-highlight-color:transparent; }

html{ -webkit-text-size-adjust:100%; overflow-x:hidden; }
body{
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,.font-display{ font-family:var(--font-display); }
h1,h2,h3{ text-wrap:balance; letter-spacing:-0.02em; line-height:1.04; }

::selection{ background:var(--ink); color:var(--cream); }

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

/* ---------- Layout ---------- */
.container{
  max-width:var(--container);
  margin-inline:auto;
  padding-left:var(--gutter-l);
  padding-right:var(--gutter-r);
}
.band{ padding-block:clamp(56px, 7vw, 108px); }
.band--tight{ padding-block:clamp(40px, 5vw, 72px); }

.eyebrow{
  font-family:var(--font-display);
  font-size:var(--fs-eyebrow);
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background:currentColor;
  flex:none;
}

.lead{ font-size:var(--fs-lead); line-height:1.5; max-width:46ch; }
.lead--wide{ max-width:62ch; }

/* ---------- Buttons / links ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1rem;
  padding:15px 26px;
  border-radius:999px;
  background:var(--ink);
  color:var(--cream);
  transition:transform .35s var(--ease), background-color .35s var(--ease);
  will-change:transform;
}
.btn:hover{ transform:translateY(-2px); background:var(--pink-deep); color:var(--white); }
.btn svg{ transition:transform .35s var(--ease); }
.btn:hover svg{ transform:translateX(4px); }
.btn-outline{ background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1.5px rgba(17,17,17,0.28); }
.btn-outline:hover{ background:var(--ink); color:var(--cream); box-shadow:inset 0 0 0 1.5px var(--ink); }

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:var(--fs-small);
  letter-spacing:0.01em;
  padding-bottom:2px;
  border-bottom:1.5px solid currentColor;
}
.link-arrow svg{ transition:transform .3s var(--ease); flex:none; }
.link-arrow:hover svg{ transform:translateX(5px); }

.icon-arrow{ width:16px; height:16px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:env(safe-area-inset-top,0px);
  z-index:50;
  padding-block:18px;
  background:rgba(250,249,246,0.86);
  backdrop-filter:blur(10px) saturate(1.1);
  -webkit-backdrop-filter:blur(10px) saturate(1.1);
  border-bottom:1px solid rgba(17,17,17,0.08);
  transition:padding-block .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled{ padding-block:12px; box-shadow:0 8px 24px rgba(17,17,17,0.06); }
.site-header--overlay{ background:transparent; border-bottom-color:transparent; }
.site-header--overlay.is-scrolled{ background:rgba(250,249,246,0.86); border-bottom-color:rgba(17,17,17,0.08); }
.site-header--overlay:not(.is-scrolled) .nav-desktop a{ color:var(--ink); }
.site-header--overlay:not(.is-scrolled) .nav-desktop a::after{ background:var(--ink); }
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.wordmark{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.4rem;
  letter-spacing:-0.015em;
  display:flex;
  align-items:baseline;
  gap:4px;
}
.wordmark .wm-first{ font-style:italic; font-weight:500; }
.wordmark .wm-last{ font-weight:800; }
.wordmark .wm-dot{
  color:var(--pink-deep);
  font-weight:800;
  display:inline-block;
  transform-origin:bottom center;
  animation:wmPulse 2.4s var(--ease) infinite;
}
@keyframes wmPulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.4); }
}

.nav-desktop{ display:none; }
.nav-desktop ul{ display:flex; align-items:center; gap:34px; }
.nav-desktop a{
  font-family:var(--font-display);
  font-weight:500;
  font-size:0.95rem;
  position:relative;
  padding-bottom:3px;
}
.nav-desktop a::after{
  content:"";
  position:absolute;
  left:0; right:100%; bottom:0;
  height:2px;
  background:var(--pink-deep);
  transition:right .3s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after{ right:0; }
.nav-desktop .nav-cta{
  font-weight:600;
  padding:9px 18px;
  border-radius:999px;
  border:1.5px solid var(--ink);
}
.nav-desktop .nav-cta::after{ display:none; }
.nav-desktop .nav-cta:hover{ background:var(--ink); color:var(--cream); }

.nav-toggle{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:10px;
  margin:-10px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--ink); transition:transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-mobile{
  position:fixed;
  inset:0;
  top:0;
  background:var(--cream);
  padding:96px 0 40px;
  transform:translateY(-100%);
  transition:transform .45s var(--ease);
  z-index:40;
  overflow-y:auto;
}
.nav-mobile.is-open{ transform:translateY(0); }
.nav-mobile ul{ display:flex; flex-direction:column; }
.nav-mobile a{
  font-family:var(--font-display);
  font-size:2.1rem;
  font-weight:600;
  letter-spacing:-0.02em;
  padding:16px 0;
  border-bottom:1px solid rgba(17,17,17,0.1);
  display:block;
}
.nav-mobile .nav-mobile-foot{
  margin-top:28px;
  font-size:var(--fs-small);
  display:flex;
  flex-direction:column;
  gap:6px;
  color:rgba(17,17,17,0.6);
}

@media (min-width:860px){
  .nav-desktop{ display:block; }
  .nav-toggle, .nav-mobile{ display:none; }
}

/* ---------- Hero (home) ---------- */
.hero-stage{ position:relative; background:var(--cream); }
.hero{ position:relative; z-index:1; padding-block:clamp(48px, 7vw, 88px); }
.hero-visual{
  display:block;
  position:absolute;
  z-index:0;
  pointer-events:none;
  top:clamp(-200px, -34vw, -90px);
  right:clamp(-110px, -20vw, -30px);
  width:clamp(440px, 92vw, 720px);
  height:clamp(440px, 92vw, 720px);
}

.hero-copy{ position:relative; z-index:1; max-width:820px; }
.hero-copy .eyebrow{ color:var(--pink-deep); margin-bottom:18px; }
.hero-copy h1{ font-size:var(--fs-hero); margin-bottom:22px; }
.hero-copy p{ color:rgba(17,17,17,0.72); margin-bottom:30px; }

@media (min-width:900px){
  .hero .container{ display:grid; grid-template-columns:1fr auto; align-items:start; gap:24px; }
  .hero-visual{
    top:clamp(-190px, -13vw, -110px);
    right:clamp(-150px, -9vw, -50px);
    width:clamp(620px, 62vw, 980px);
    height:clamp(620px, 62vw, 980px);
  }
  .cloud-blob{ filter:blur(54px); }
  .hero-copy{ max-width:820px; }
}
@media (min-width:1320px){ .cloud-blob{ filter:blur(64px); } }

/* ---------- Hero scene: pastel aura ---------- */
.hero-cloud{
  position:absolute;
  inset:-6%;
  transition:transform .4s linear;
  --cl-lavender:207,201,255;
  --cl-pink:251,210,232;
  --cl-sky:203,230,250;
  --cl-lime:227,242,190;
  --cl-cream:251,239,198;
}
.cloud-blob{
  position:absolute;
  border-radius:50%;
  filter:blur(44px);
  will-change:transform;
}
.cb-1{
  width:56%; aspect-ratio:1; top:14%; left:10%;
  background:radial-gradient(circle, rgba(var(--cl-lavender),.95) 0%, rgba(var(--cl-lavender),.9) 38%, rgba(var(--cl-lavender),0) 76%);
  opacity:.82;
  animation:cloudA 18s ease-in-out infinite;
}
.cb-2{
  width:60%; aspect-ratio:1; top:-6%; left:32%;
  background:radial-gradient(circle, rgba(var(--cl-pink),.95) 0%, rgba(var(--cl-pink),.9) 38%, rgba(var(--cl-pink),0) 76%);
  opacity:.8;
  animation:cloudB 21s ease-in-out infinite; animation-delay:-6s;
}
.cb-3{
  width:52%; aspect-ratio:1; top:36%; left:6%;
  background:radial-gradient(circle, rgba(var(--cl-sky),.95) 0%, rgba(var(--cl-sky),.9) 38%, rgba(var(--cl-sky),0) 76%);
  opacity:.78;
  animation:cloudC 16s ease-in-out infinite; animation-delay:-3s;
}
.cb-4{
  width:46%; aspect-ratio:1; top:6%; left:52%;
  background:radial-gradient(circle, rgba(var(--cl-lime),.9) 0%, rgba(var(--cl-lime),.85) 38%, rgba(var(--cl-lime),0) 76%);
  opacity:.72;
  animation:cloudD 19s ease-in-out infinite; animation-delay:-11s;
}
.cb-5{
  width:58%; aspect-ratio:1; top:38%; left:32%;
  background:radial-gradient(circle, rgba(var(--cl-cream),.95) 0%, rgba(var(--cl-cream),.9) 38%, rgba(var(--cl-cream),0) 76%);
  opacity:.8;
  animation:cloudE 20s ease-in-out infinite; animation-delay:-8s;
}

@keyframes cloudA{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(14%,18%) scale(1.16); }
  66%{ transform:translate(-10%,10%) scale(.88); }
}
@keyframes cloudB{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(-16%,12%) scale(.86); }
  66%{ transform:translate(8%,-12%) scale(1.14); }
}
@keyframes cloudC{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(12%,-16%) scale(1.14); }
  66%{ transform:translate(-14%,-6%) scale(.9); }
}
@keyframes cloudD{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(-14%,16%) scale(1.18); }
  66%{ transform:translate(10%,8%) scale(.86); }
}
@keyframes cloudE{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(16%,-10%) scale(.88); }
  66%{ transform:translate(-8%,-14%) scale(1.14); }
}

/* ---------- Selected work ---------- */
.section-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:clamp(32px, 4vw, 52px);
}
.section-head h2{ font-size:var(--fs-h1); }
.section-head .lead{ margin-top:10px; }

.work-grid{
  display:grid;
  gap:22px;
  grid-template-columns:1fr;
}
@media (min-width:760px){
  .work-grid{ grid-template-columns:repeat(3,1fr); gap:24px; }
}

.work-card{
  position:relative;
  display:flex;
  flex-direction:column;
  color:var(--ink);
}
.work-card-media{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:226/202;
  background:var(--cream-soft);
  padding:22px;
}
.work-card-media.bg-lime{ background:var(--lime); }
.work-card-media.bg-lavender{ background:var(--lavender); }
.work-card-media.bg-pink{ background:var(--pink); }
.work-card-media img{
  width:auto; height:100%;
  max-width:100%;
  object-fit:contain;
  display:block;
  transition:transform .6s var(--ease);
}
.work-card:hover .work-card-media img{ transform:scale(1.05) rotate(-1.5deg); }
.work-card-media .card-badge{
  position:absolute;
  top:16px; left:18px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:var(--fs-small);
  color:var(--ink);
}
.work-card .card-link{
  position:absolute;
  inset:0;
  z-index:2;
}

.work-card-body{ padding-top:22px; }
.work-card-body h3{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.3rem;
  margin-bottom:8px;
}
.work-card-body .wc-desc{
  color:rgba(17,17,17,0.68);
  font-size:0.95rem;
  max-width:30ch;
}
.work-card .tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.work-card .tags li{
  font-family:var(--font-display);
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:0.03em;
  padding:6px 11px;
  border-radius:999px;
  background:var(--cream-soft);
}
.card-arrow{
  width:44px; height:44px;
  margin-top:18px;
  border-radius:50%;
  border:1.5px solid var(--ink);
  background:var(--cream);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .4s var(--ease), background-color .4s var(--ease);
  flex:none;
}
.work-card:hover .card-arrow{ transform:rotate(45deg); background:var(--ink); color:var(--cream); }

/* phone mockup (abstract, not a real capture) */
.phone-frame{
  width:clamp(128px,15vw,164px);
  aspect-ratio:9/18.5;
  background:var(--ink);
  border-radius:26px;
  padding:7px;
  box-shadow:0 18px 36px rgba(17,17,17,0.22);
  transition:transform .5s var(--ease);
}
.work-card:hover .phone-frame{ transform:translateY(-6px) rotate(-1.5deg); }
.phone-screen{
  width:100%; height:100%;
  background:var(--cream);
  border-radius:19px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:12px 11px;
  gap:9px;
}
.phone-screen .ps-row{ display:flex; justify-content:space-between; align-items:center; }
.phone-screen .ps-dot{ width:5px; height:5px; border-radius:50%; background:var(--ink); opacity:0.5; }
.phone-screen .ps-time{ font-family:var(--font-display); font-size:0.5rem; font-weight:600; opacity:0.6; }
.phone-screen .ps-icon{ width:20px; height:20px; }
.phone-screen .ps-card{
  border-radius:11px;
  padding:9px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.phone-screen .ps-bar{ height:5px; border-radius:4px; background:rgba(17,17,17,0.14); }
.phone-screen .ps-bar.w60{ width:60%; }
.phone-screen .ps-bar.w40{ width:40%; }
.phone-screen .ps-bar.w80{ width:80%; }
.phone-screen .ps-gauge{
  width:52px; height:52px;
  border-radius:50%;
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.phone-screen .ps-gauge span{
  font-family:var(--font-display);
  font-size:0.68rem;
  font-weight:700;
}
.phone-screen .ps-list{ display:flex; flex-direction:column; gap:7px; flex:1; }
.phone-screen .ps-list-row{
  display:flex;
  align-items:center;
  gap:7px;
  border-radius:9px;
  background:rgba(17,17,17,0.05);
  padding:7px 8px;
}
.phone-screen .ps-swatch{ width:16px; height:16px; border-radius:50%; flex:none; }
.phone-screen .ps-list-text{ display:flex; flex-direction:column; gap:4px; flex:1; }

/* ---------- More work ---------- */
.more-work{ background:var(--cream-soft); }
.more-grid{
  display:grid;
  gap:1px;
  background:rgba(17,17,17,0.12);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.more-item{
  background:var(--cream-soft);
  padding:28px 26px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:background-color .35s var(--ease);
}
.more-item:hover{ background:var(--white); }
.more-item .mi-top{ display:flex; justify-content:space-between; align-items:center; }
.more-item h3{ font-size:1.2rem; }
.more-item p{ color:rgba(17,17,17,0.68); font-size:var(--fs-small); max-width:34ch; }
.more-item .tags{ display:flex; gap:8px; flex-wrap:wrap; }
.more-item .tags li{ font-family:var(--font-display); font-size:0.7rem; font-weight:600; color:rgba(17,17,17,0.55); }
@media (min-width:760px){ .more-grid{ grid-template-columns:repeat(3,1fr); } }

/* ---------- About preview (full-bleed) ---------- */
.about-full{
  display:grid;
  grid-template-columns:1fr;
}
.about-media{ min-height:260px; }
.about-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.about-copy{
  background:var(--lavender-tint);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  padding:clamp(36px,6vw,64px) var(--gutter-r) clamp(36px,6vw,64px) var(--gutter-l);
}
.about-copy h2{ font-size:var(--fs-h1); max-width:16ch; }
.about-copy p{ max-width:48ch; color:rgba(17,17,17,0.72); }
.about-copy .btn{ align-self:flex-start; margin-top:6px; }
.about-ctas{ display:flex; gap:12px; flex-wrap:wrap; align-self:flex-start; margin-top:6px; }
.about-ctas .btn{ margin-top:0; }
@media (min-width:860px){
  .about-full{ grid-template-columns:0.85fr 1.15fr; }
  .about-media{ min-height:420px; }
}

/* ---------- Footer / contact ---------- */
.contact-band{ background:var(--lime); }
.contact-band .container{ padding-block:clamp(56px,7vw,100px); }
.contact-band h2{ font-size:var(--fs-hero); max-width:14ch; margin-bottom:18px; }
.contact-band .lead{ color:rgba(17,17,17,0.72); margin-bottom:34px; }
.contact-band .contact-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:28px 40px;
}
.contact-band .contact-links{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-family:var(--font-display);
  font-weight:500;
}
.contact-band .contact-links a{ border-bottom:1.5px solid transparent; transition:border-color .3s var(--ease); }
.contact-band .contact-links a:hover{ border-color:var(--ink); }

.site-footer{ padding-block:26px; }
.site-footer .container{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  font-size:var(--fs-small);
  color:rgba(17,17,17,0.55);
}

/* ---------- Scroll reveal ---------- */
[data-reveal]{
  opacity:1;
  transform:none;
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.js-ready [data-reveal]{ opacity:0; transform:translateY(22px); }
.js-ready [data-reveal].is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
  .js-ready [data-reveal]{ opacity:1; transform:none; }
  .work-card:hover .work-card-media img,
  .work-card:hover .card-arrow,
  .btn:hover{ transform:none; }
}

/* ============================================================
   Case study specific components
   ============================================================ */
.cs-hero{ padding-block:clamp(28px,4vw,44px) clamp(40px,5vw,64px); }
.cs-hero .cs-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:28px;
}
.cs-hero .back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:500;
  font-size:var(--fs-small);
}
.cs-hero .back-link svg{ transition:transform .3s var(--ease); }
.cs-hero .back-link:hover svg{ transform:translateX(-4px); }
.cs-hero-grid{
  display:grid;
  gap:36px;
  align-items:end;
}
.cs-hero-copy h1{ font-size:var(--fs-hero); margin:16px 0 20px; }
.cs-hero-copy .eyebrow{ color:var(--pink-deep); }
.cs-hero-copy p{ color:rgba(17,17,17,0.72); max-width:52ch; margin-bottom:22px; }
.cs-hero-copy .tags{ display:flex; flex-wrap:wrap; gap:10px; }
.cs-hero-copy .tags li{
  font-family:var(--font-display); font-weight:600; font-size:0.78rem;
  padding:8px 14px; border-radius:999px; border:1.5px solid var(--ink);
}
.cs-hero-visual{
  position:relative;
  background:var(--lime);
  border-radius:var(--radius-lg);
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(28px,4vw,48px);
  overflow:hidden;
}
.cs-hero-img{
  height:100%;
  max-height:420px;
  width:auto;
  max-width:100%;
  object-fit:contain;
  display:block;
}
.cs-hero-img-accent{
  position:absolute;
  width:42%;
  right:6%;
  bottom:-8%;
  border-radius:var(--radius-md);
  border:4px solid var(--cream);
  box-shadow:0 20px 40px rgba(17,17,17,0.18);
  display:block;
}
@media (min-width:900px){ .cs-hero-grid{ grid-template-columns:1fr 1fr; } }

/* Overview */
.overview{ padding-block:clamp(48px,6vw,84px); }
.overview-grid{ display:grid; gap:36px; }
.toc{ display:none; }
.toc ul{ display:flex; flex-direction:column; gap:15px; }
.toc a{ font-size:0.9rem; color:rgba(17,17,17,0.5); transition:color .25s var(--ease); }
.toc a:hover{ color:rgba(17,17,17,0.8); }
.toc a.is-active{ color:var(--ink); font-weight:600; }
.overview-main{ max-width:760px; }
.overview-main h2{ font-size:var(--fs-h2); margin-bottom:26px; }
.overview-main p{ color:rgba(17,17,17,0.76); margin-bottom:16px; max-width:60ch; }
.meta-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px 18px;
  border-top:1px solid rgba(17,17,17,0.14);
  padding-top:22px;
  margin-bottom:26px;
}
.meta-grid dt{ font-family:var(--font-display); font-size:0.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; opacity:.55; margin-bottom:6px; }
.meta-grid dd{ font-family:var(--font-display); font-weight:600; font-size:1rem; }
.resp-list{ margin-top:22px; display:flex; flex-wrap:wrap; gap:9px; }
.resp-list li{ font-size:0.8rem; font-family:var(--font-display); font-weight:500; padding:7px 13px; border-radius:999px; background:var(--cream-soft); }
@media (min-width:1000px){
  .overview-grid{ grid-template-columns:30% 70%; gap:56px; }
  .toc{ display:block; position:sticky; top:calc(90px + env(safe-area-inset-top,0px)); align-self:start; }
  .overview-main{ max-width:none; }
}

/* Challenge */
.challenge{ padding-block:clamp(48px,6vw,84px); }
.challenge h2{ font-size:var(--fs-h1); max-width:18ch; margin-bottom:18px; }
.challenge h2 + p{ max-width:60ch; color:rgba(17,17,17,0.72); margin-bottom:clamp(36px,5vw,56px); }
.challenge-grid{ display:grid; gap:20px; }
.challenge-card{
  border-radius:var(--radius-md);
  padding:28px 24px;
  border:1px solid rgba(17,17,17,0.08);
}
.challenge-card img{ width:50px; height:50px; border-radius:50%; margin-bottom:20px; display:block; }
.challenge-card .cc-num{ font-family:var(--font-display); font-weight:700; font-size:1.2rem; color:var(--lavender-deep); margin-bottom:16px; display:block; }
.challenge-card h3{ font-size:1.15rem; margin-bottom:10px; }
.challenge-card p{ font-size:var(--fs-small); color:rgba(17,17,17,0.68); }
@media (min-width:760px){ .challenge-grid{ grid-template-columns:repeat(3,1fr); } }

/* Key decision */
.decision{ color:var(--ink); }
.decision-housetypes{
  background:var(--pink);
  border-radius:var(--radius-lg);
  padding:clamp(32px,5vw,56px) clamp(24px,5vw,56px);
  margin-top:clamp(40px,5vw,64px);
}
.decision-housetypes h3{ font-size:var(--fs-h3); margin-bottom:12px; }
.decision-housetypes > p{ max-width:56ch; color:rgba(17,17,17,0.72); margin-bottom:0; }
.decision h2{ font-size:var(--fs-h1); max-width:16ch; margin-bottom:8px; color:var(--ink); }
.decision > p{ max-width:56ch; color:rgba(17,17,17,0.72); margin-bottom:clamp(36px,5vw,56px); }

.decision-visual{ position:relative; max-width:460px; margin-inline:auto; }
.decision-visual img{ width:100%; display:block; border-radius:var(--radius-md); }
.annotation{
  background:var(--white);
  border-radius:14px;
  padding:12px 16px;
  box-shadow:0 14px 32px rgba(17,17,17,0.16);
  display:flex;
  gap:10px;
  align-items:flex-start;
  max-width:200px;
  margin-bottom:12px;
}
.annotation .an-icon{
  width:26px; height:26px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  font-size:14px;
}
.annotation .an-icon.c-lavender{ background:var(--lavender); }
.annotation .an-icon.c-pink{ background:var(--pink); }
.annotation h4{ font-family:var(--font-display); font-weight:600; font-size:0.82rem; margin-bottom:2px; }
.annotation p{ font-size:0.72rem; color:rgba(17,17,17,0.62); line-height:1.35; }
@media (min-width:860px){
  .annotation{ position:absolute; margin-bottom:0; }
  .an-solar{ top:4%; left:-14%; }
  .an-home{ top:-2%; right:-16%; }
  .an-grid{ bottom:20%; left:-18%; }
  .an-ev{ bottom:-6%; right:-10%; }
}

/* Onboarding + dataviz (two-column editorial, alternating) */
.editorial-row{ padding-block:clamp(48px,6vw,84px); display:grid; gap:36px; }
.editorial-row h2{ font-size:var(--fs-h2); margin-bottom:16px; max-width:16ch; }
.editorial-row p{ color:rgba(17,17,17,0.72); max-width:52ch; }
.editorial-visual{
  border-radius:var(--radius-lg);
  padding:clamp(28px,4vw,44px);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  min-height:280px;
}
.editorial-visual.bg-lavender{ background:var(--lavender); }
.editorial-visual.bg-cream-soft{ background:var(--cream-soft); }

/* Ecosystem rows (05): five-screen horizontal filmstrip inside the visual column */
.eco-visual-grid{ display:flex; gap:10px; width:100%; overflow-x:auto; padding-bottom:4px; }
.eco-visual-grid .shot{ flex:none; width:110px; aspect-ratio:1/1; padding:10px; }

/* Ecosystem rows (05): lightweight CSS phone mockup for the flagship screen */
.phone-mockup{
  position:relative;
  width:min(220px,70%);
  aspect-ratio:9/19;
  background:var(--ink);
  border-radius:34px;
  padding:9px;
  box-shadow:0 24px 44px rgba(17,17,17,.3);
  margin-inline:auto;
}
.phone-mockup::before{
  content:"";
  position:absolute; top:9px; left:50%;
  transform:translateX(-50%);
  width:70px; height:20px;
  background:var(--ink);
  border-radius:0 0 12px 12px;
  z-index:2;
}
.phone-mockup-screen{
  position:relative;
  width:100%; height:100%;
  border-radius:24px;
  overflow:hidden;
  background:var(--lavender);
}
.phone-mockup-screen img{ width:100%; height:100%; object-fit:contain; display:block; }
.onboarding-visual{
  position:relative;
  padding:clamp(32px,5vw,56px) clamp(16px,3vw,28px);
  overflow:visible;
}
.onboarding-visual .ob-blob{
  position:absolute;
  top:-10%; right:-12%;
  width:70%; height:120%;
  background:var(--lime);
  border-radius:48% 52% 55% 45% / 55% 45% 55% 45%;
  z-index:0;
}
.onb-steps{ position:relative; z-index:1; display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.onb-step{
  width:96px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.onb-step .onb-frame{
  aspect-ratio:9/18;
  border-radius:16px;
  background:var(--cream);
  border:2px solid var(--ink);
  padding:10px 9px;
  display:flex;
  flex-direction:column;
  gap:7px;
  overflow:hidden;
}
.onb-step .onb-frame .ps-bar{ background:rgba(17,17,17,0.16); }
.onb-step .onb-frame img{ width:100%; height:100%; object-fit:cover; border-radius:8px; }
.onb-step .onb-label{ font-family:var(--font-display); font-size:0.66rem; font-weight:600; text-align:center; opacity:.65; }
.onb-check-row{ display:flex; align-items:center; gap:5px; }
.onb-check{ width:9px; height:9px; border-radius:3px; border:1.3px solid rgba(17,17,17,0.3); flex:none; }
.onb-lock{
  margin:auto;
  width:34px; height:34px;
  border-radius:50%;
  background:rgba(17,17,17,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.chart-card{
  background:var(--cream);
  border-radius:var(--radius-md);
  padding:22px;
  width:100%;
  max-width:340px;
}
.chart-card .chart-legend{ display:flex; gap:16px; margin-bottom:14px; font-family:var(--font-display); font-size:0.72rem; font-weight:600; }
.chart-card .chart-legend span{ display:inline-flex; align-items:center; gap:6px; }
.chart-card .chart-legend i{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.chart-bars{ display:flex; align-items:flex-end; gap:8px; height:120px; }
.chart-bars .cb-col{ flex:1; display:flex; flex-direction:column-reverse; border-radius:5px 5px 0 0; overflow:hidden; }
.chart-bars .cb-seg{ width:100%; }

@media (min-width:900px){
  .editorial-row{ grid-template-columns:1fr 1fr; align-items:center; }
  .editorial-row.rev{ direction:rtl; }
  .editorial-row.rev > *{ direction:ltr; }
}

/* Constraints */
.constraints{
  background:var(--lavender);
  border-radius:var(--radius-lg);
  padding:clamp(40px,6vw,76px) clamp(24px,5vw,56px);
}
.constraints h2{ font-size:var(--fs-h1); max-width:16ch; margin-bottom:16px; }
.constraints > p{ max-width:58ch; color:rgba(17,17,17,0.78); margin-bottom:clamp(36px,5vw,56px); }
.constraint-grid{ display:grid; gap:14px; grid-template-columns:repeat(2,1fr); }
.constraint-card{
  background:var(--cream);
  border-radius:var(--radius-md);
  padding:22px 20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.constraint-card .cc-icon{ width:30px; height:30px; }
.constraint-card h4{ font-family:var(--font-display); font-weight:600; font-size:0.98rem; }
@media (min-width:760px){ .constraint-grid{ grid-template-columns:repeat(4,1fr); } }

/* Final experience */
.final-exp{
  background:var(--pink);
  border-radius:var(--radius-lg);
  padding:clamp(40px,6vw,80px) clamp(24px,5vw,56px);
}
.final-exp h2{ font-size:var(--fs-h1); max-width:16ch; margin-bottom:22px; }
.final-exp p{ max-width:56ch; color:rgba(17,17,17,0.78); margin-top:26px; }
.final-phones{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; padding-block:12px; }
.final-phones .phone-frame{ width:clamp(120px,14vw,160px); }
.final-phones .phone-frame:nth-child(2){ transform:translateY(-18px); }

/* Outcome */
.outcome{ padding-block:clamp(48px,6vw,84px); }
.outcome .container{ max-width:760px; }
.outcome h2{ font-size:var(--fs-h2); margin-bottom:18px; }
.outcome p{ color:rgba(17,17,17,0.76); font-size:var(--fs-lead); }

/* Next project */
.next-project{ background:var(--lime); }
.next-project a{ display:block; }
.next-project .container{
  padding-block:clamp(48px,6vw,88px);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.next-project .np-label{ display:flex; align-items:center; gap:10px; }
.next-project h2{ font-size:var(--fs-hero); display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.next-project .np-arrow{
  width:56px; height:56px;
  border-radius:50%;
  border:2px solid var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .4s var(--ease), background-color .4s var(--ease);
  flex:none;
}
.next-project a:hover .np-arrow{ transform:rotate(45deg); background:var(--ink); color:var(--cream); }
.next-project p{ font-family:var(--font-display); font-weight:500; opacity:.75; max-width:40ch; }

/* ---------- Pull quote (shared editorial highlight) ---------- */
.pull-quote{
  font-family:var(--font-display);
  font-weight:600;
  font-style:italic;
  font-size:var(--fs-lead);
  max-width:46ch;
  margin-top:18px;
}

/* ---------- Decision explanatory points ---------- */
.decision-points{
  display:grid;
  gap:14px;
  margin-top:clamp(32px,4.5vw,48px);
  margin-bottom:clamp(32px,4vw,48px);
}
.decision-point{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:20px 22px;
}
.decision-point .dp-label{
  font-family:var(--font-display);
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--pink-deep);
  margin-bottom:8px;
  display:block;
}
.decision-point h4{ font-size:1rem; margin-bottom:6px; }
.decision-point p{ font-size:0.86rem; color:rgba(17,17,17,0.65); }
@media (min-width:760px){ .decision-points{ grid-template-columns:repeat(3,1fr); } }

/* ---------- Work card secondary description ---------- */
.work-card-body .wc-detail{
  color:rgba(17,17,17,0.55);
  font-size:0.82rem;
  max-width:32ch;
  margin-top:8px;
}

/* ---------- Constraint card description ---------- */
.constraint-card p{ font-size:0.82rem; color:rgba(17,17,17,0.62); }

/* ---------- Final phones captions ---------- */
.final-phones{ align-items:flex-start; }
.final-phone-col{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.final-phone-col:nth-child(2){ transform:translateY(-18px); }
.final-phone-col .fp-label{ font-family:var(--font-display); font-weight:600; font-size:0.72rem; opacity:.7; }
.final-cta{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-display); font-weight:600; font-size:var(--fs-small);
  padding-bottom:2px; border-bottom:1.5px solid currentColor;
  opacity:.55; margin-top:22px; pointer-events:none;
}

/* ---------- Chart disclaimer ---------- */
.chart-disclaimer{ font-size:0.7rem; color:rgba(17,17,17,0.45); margin-top:10px; text-align:center; }

/* ---------- Learnings ---------- */
.learnings{ padding-block:clamp(48px,6vw,84px); }
.learnings h2{ font-size:var(--fs-h1); max-width:18ch; margin-bottom:14px; }
.learnings > .container > p{ max-width:58ch; color:rgba(17,17,17,0.72); margin-bottom:clamp(32px,4vw,48px); }
.learning-grid{ display:grid; gap:18px; }
.learning-card{
  border-radius:var(--radius-md);
  padding:26px 22px;
  background:var(--cream-soft);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.learning-card .lc-num{
  font-family:var(--font-display); font-weight:700; font-size:0.85rem;
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.learning-card .lc-num.c-pink{ background:var(--pink); }
.learning-card .lc-num.c-lime{ background:var(--lime); }
.learning-card .lc-num.c-lavender{ background:var(--lavender); }
.learning-card h3{ font-size:1.05rem; }
.learning-card p{ font-size:0.88rem; color:rgba(17,17,17,0.68); }
@media (min-width:760px){ .learning-grid{ grid-template-columns:repeat(3,1fr); } }

/* ---------- Hero location meta ---------- */
.hero-location{
  font-size:var(--fs-small);
  color:rgba(17,17,17,0.5);
  margin-top:18px;
  display:block;
}

/* ============================================================
   UniverX case study — real-screens compositions
   ============================================================ */

/* Shared tinted frame for real product screenshots */
.shot{
  border-radius:var(--radius-md);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:var(--cream-soft);
  aspect-ratio:9/17;
}
.shot img{ width:auto; height:100%; max-width:100%; object-fit:contain; display:block; }
.shot.tint-lime{ background:var(--lime); }
.shot.tint-lavender{ background:var(--lavender); }
.shot.tint-pink{ background:var(--pink); }
.shot.tint-dark{ background:var(--ink); }

.proto-grid{ display:grid; gap:20px; grid-template-columns:repeat(2,1fr); }
.proto-grid .shot{ aspect-ratio:3/4; }
.proto-grid .shot:first-child{ grid-column:1 / -1; }
@media (min-width:640px){
  .proto-grid{ grid-template-columns:repeat(3,1fr); }
  .proto-grid .shot:first-child{ grid-column:auto; }
}

/* Journey composition (section 03) — uniform proportions across all items */
.journey-grid{ display:grid; gap:18px; grid-template-columns:repeat(2,1fr); }
.journey-item{ display:flex; flex-direction:column; gap:10px; }
.journey-item .shot{ aspect-ratio:3/4; }
.journey-item h4{ font-family:var(--font-display); font-weight:600; font-size:0.9rem; }
.journey-item p{ font-size:0.8rem; color:rgba(17,17,17,.6); }
@media (min-width:640px){ .journey-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:1080px){ .journey-grid{ grid-template-columns:repeat(5,1fr); } }

/* House-type render placeholders (section 04) */
.house-types{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:34px; }
.house-type-placeholder{
  aspect-ratio:3/4;
  border:1.5px dashed rgba(17,17,17,.22);
  border-radius:var(--radius-md);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:rgba(17,17,17,.45);
  font-family:var(--font-display);
  font-size:0.76rem;
  text-align:center;
  padding:14px;
}
.house-type-placeholder svg{ width:26px; height:26px; opacity:.55; }
@media (min-width:700px){ .house-types{ grid-template-columns:repeat(4,1fr); } }

/* Branding section (06) */
.brand-grid{ display:grid; gap:16px; grid-template-columns:1fr 1fr; margin-bottom:30px; }
.brand-card{ background:var(--cream-soft); border-radius:var(--radius-md); padding:20px; display:flex; flex-direction:column; gap:12px; }
.brand-card .bc-label{ font-family:var(--font-display); font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; opacity:.55; }
.brand-card.is-dark{ background:var(--ink); color:var(--cream); }
.brand-card.is-dark .bc-label{ color:rgba(255,255,255,.5); }
.brand-card img{ border-radius:10px; display:block; width:100%; }
.brand-swatches{ display:flex; gap:10px; flex-wrap:wrap; }
.brand-swatch{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.brand-swatch .sw-chip{ width:46px; height:46px; border-radius:12px; border:1px solid rgba(17,17,17,.08); }
.brand-swatch span{ font-family:var(--font-display); font-size:0.62rem; opacity:.55; }
.type-specimen{ display:flex; flex-direction:column; gap:12px; flex:1; justify-content:center; }
.type-specimen .ts-big{ font-family:var(--font-display); font-size:2.8rem; font-weight:700; line-height:1; margin-bottom:4px; }
.type-specimen .ts-row{ display:flex; align-items:baseline; gap:10px; font-family:var(--font-display); }
.type-specimen .ts-row .ts-size{ font-size:0.62rem; opacity:.5; width:22px; flex:none; }
.type-specimen .ts-row.ts-h{ font-size:1.05rem; font-weight:600; }
.type-specimen .ts-row.ts-b{ font-size:0.88rem; font-weight:400; }
.type-specimen .ts-row.ts-c{ font-size:0.66rem; font-weight:500; letter-spacing:.04em; opacity:.7; }
.component-specimen{ display:flex; flex-direction:column; gap:10px; flex:1; justify-content:center; }
.component-specimen .cs-input{
  background:var(--white);
  border:1px solid rgba(17,17,17,.12);
  border-radius:10px;
  padding:11px 14px;
  font-size:0.82rem;
  color:rgba(17,17,17,.4);
}
.component-specimen .cs-btn{
  align-self:flex-start;
  background:#1E272A;
  color:#fff;
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.82rem;
  padding:10px 18px;
  border-radius:999px;
}
.component-specimen .cs-toggle{ display:flex; align-items:center; gap:9px; font-size:0.76rem; color:rgba(17,17,17,.62); }
.component-specimen .cs-switch{ width:32px; height:19px; border-radius:999px; background:#B9E6E0; position:relative; flex:none; }
.component-specimen .cs-switch::after{ content:""; position:absolute; top:2px; right:2px; width:15px; height:15px; border-radius:50%; background:#1E272A; }
.brand-screens{ display:flex; gap:14px; overflow-x:auto; padding-bottom:8px; }
.brand-screens .shot{ flex:none; width:132px; aspect-ratio:9/17; }
@media (min-width:760px){ .brand-grid{ grid-template-columns:repeat(4,1fr); } }

.brand-marks{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; margin:0 0 clamp(32px,4.5vw,48px); }
.brand-mark-item{ display:flex; flex-direction:column; align-items:center; gap:8px; flex:none; }
.brand-mark-item img{ width:64px; height:64px; border-radius:16px; display:block; object-fit:cover; }
.brand-mark-item span{ font-family:var(--font-display); font-size:0.68rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; opacity:.5; }
.brand-marks-note{ flex:1 1 240px; font-size:0.86rem; color:rgba(17,17,17,.65); max-width:36ch; }

/* ============================================================
   HeChocado case study — real-screens compositions
   ============================================================ */

/* Phone bezel for real screenshots (hero, home card, section 06) */
.phone-frame img{ display:block; width:100%; height:100%; object-fit:cover; border-radius:19px; }
.phone-frame.is-large{ width:clamp(200px,22vw,300px); margin-inline:auto; }

/* Hero lime accent blob */
.hc-accent-lime{
  position:absolute;
  width:clamp(90px,14vw,150px);
  height:clamp(90px,14vw,150px);
  border-radius:50%;
  background:var(--lime);
  z-index:0;
}

/* Section 03 — simplification flow diagram (planteamiento → análisis → flujo final) */
.hc-flow-card{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:30px 26px 28px;
  margin-top:clamp(28px,4vw,40px);
}
.hc-flow{ display:flex; align-items:center; flex-wrap:wrap; gap:0; }
.hc-flow-step{ display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; width:160px; }
.hc-flow-num{
  width:34px; height:34px; border-radius:50%;
  border:1.5px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:0.82rem;
  background:var(--lavender);
}
.hc-flow-step.is-accent .hc-flow-num{ background:var(--lavender-deep); color:var(--white); border-color:var(--lavender-deep); }
.hc-flow-label{ font-family:var(--font-display); font-weight:500; font-size:0.76rem; line-height:1.3; color:rgba(17,17,17,.72); }
.hc-flow-step.is-accent .hc-flow-label{ color:var(--lavender-deep); font-weight:600; }
.hc-flow-arrow{ flex:1 1 20px; min-width:20px; height:1px; background:rgba(17,17,17,.22); position:relative; margin:0 2px 30px; }
.hc-flow-arrow::after{ content:""; position:absolute; right:0; top:50%; width:6px; height:6px; border-top:1.5px solid rgba(17,17,17,.4); border-right:1.5px solid rgba(17,17,17,.4); transform:translateY(-50%) rotate(45deg); }
.hc-flow-caption{ margin-top:clamp(16px,2.2vw,22px); font-size:0.82rem; color:rgba(17,17,17,.6); max-width:56ch; }
@media (max-width:639px){
  .hc-flow{ flex-direction:column; align-items:flex-start; gap:0; }
  .hc-flow-step{ flex-direction:row; width:auto; text-align:left; gap:16px; }
  .hc-flow-arrow{ flex:none; width:1px; height:22px; margin:2px 0 2px 16px; }
  .hc-flow-arrow::after{ right:50%; top:100%; transform:translate(50%,-100%) rotate(135deg); }
}

/* Section 06 — editorial gallery of real screens, in the shared phone-frame bezel */
.hc-solution-gallery{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:clamp(24px,3vw,40px);
  margin-top:clamp(36px,5vw,56px);
}
.hc-solution-item{ display:flex; flex-direction:column; align-items:center; gap:14px; }
.hc-solution-cap{ font-family:var(--font-display); font-weight:600; font-size:0.74rem; text-transform:uppercase; letter-spacing:.05em; opacity:.5; text-align:center; }

/* ============================================================
   La Meva Energia case study — real-screens compositions
   ============================================================ */

/* Hero: a wide desktop screenshot filling the visual column edge to edge */
.cs-hero-img.is-wide{
  height:auto;
  max-height:none;
  width:100%;
  max-width:100%;
  border-radius:var(--radius-md);
  box-shadow:0 20px 48px rgba(17,17,17,0.16);
}

/* Section "viviendas": account → multiple-housing relationship diagram */
.lm-flow-card{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:30px 26px 28px;
  margin-top:clamp(28px,4vw,40px);
}
.lm-flow-tree{ display:flex; flex-direction:column; align-items:center; gap:0; }
.lm-flow-user{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:999px;
  background:var(--lm-rose);
  color:var(--white);
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.82rem;
}
.lm-flow-stem{ width:1px; height:28px; background:rgba(17,17,17,.22); }
.lm-flow-branches{
  display:flex;
  justify-content:center;
  width:100%;
  border-top:1px solid rgba(17,17,17,.22);
}
.lm-flow-branch{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  flex:1 1 180px;
  max-width:240px;
  padding:0 16px;
}
.lm-flow-line-h{ width:1px; height:22px; background:rgba(17,17,17,.22); }
.lm-flow-house{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 16px;
  border-radius:var(--radius-md);
  border:1.5px solid var(--ink);
  background:var(--cream-soft);
  font-family:var(--font-display);
  font-weight:500;
  font-size:0.78rem;
  text-align:center;
}
.lm-flow-caption{
  margin-top:clamp(16px,2.2vw,22px);
  font-size:0.82rem;
  color:rgba(17,17,17,.6);
  max-width:56ch;
}
@media (max-width:639px){
  .lm-flow-tree{ align-items:flex-start; }
  .lm-flow-stem{ height:20px; }
  .lm-flow-branches{ flex-direction:column; align-items:flex-start; width:100%; border-top:none; border-left:1px solid rgba(17,17,17,.22); padding-left:0; margin-left:1px; }
  .lm-flow-branch{ flex-direction:row; max-width:none; width:100%; padding:0 0 0 16px; gap:16px; margin-bottom:14px; }
  .lm-flow-branch:last-child{ margin-bottom:0; }
  .lm-flow-line-h{ width:16px; height:1px; }
}

/* Section "tramites": four-phase progress stepper */
.lm-stepper{ display:flex; gap:8px; margin-top:clamp(28px,4vw,40px); }
.lm-stepper-step{ flex:1; display:flex; flex-direction:column; gap:8px; }
.lm-stepper-bar{ display:block; height:6px; border-radius:999px; background:rgba(17,17,17,.12); }
.lm-stepper-step.is-done .lm-stepper-bar{ background:var(--lm-rose); }
.lm-stepper-step.is-current .lm-stepper-bar{ background:linear-gradient(to right, var(--lm-rose) 50%, rgba(17,17,17,.12) 50%); }
.lm-stepper-label{ font-family:var(--font-display); font-weight:600; font-size:0.72rem; color:rgba(17,17,17,.5); }
.lm-stepper-step.is-done .lm-stepper-label,
.lm-stepper-step.is-current .lm-stepper-label{ color:var(--ink); }
@media (max-width:460px){ .lm-stepper-label{ font-size:0.62rem; } }

/* Section "solucion": final real-screens gallery, no cropping, mixed aspect ratios */
.lm-solution-gallery{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:clamp(36px,5vw,56px); }
.lm-solution-item{ display:flex; flex-direction:column; gap:12px; }
.lm-solution-item img{
  width:100%;
  display:block;
  border-radius:var(--radius-md);
  box-shadow:0 20px 44px rgba(17,17,17,0.12);
}
.lm-solution-cap{
  font-family:var(--font-display); font-weight:600; font-size:0.74rem;
  text-transform:uppercase; letter-spacing:.05em; opacity:.5; text-align:center;
}
@media (min-width:760px){
  .lm-solution-gallery{ grid-template-columns:1fr 1fr; align-items:start; }
  .lm-solution-item.is-wide{ grid-column:1 / -1; }
}

/* ============================================================
   Audax — progressive-access flow diagram (section "decision")
   ============================================================ */
.ax-flow-card{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:30px 26px 28px;
  margin-top:clamp(28px,4vw,40px);
}
.ax-flow{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
}
.ax-flow-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:116px;
  text-align:center;
  flex:none;
}
.ax-flow-num{
  width:34px; height:34px;
  border-radius:50%;
  border:1.5px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:0.82rem;
  background:var(--lime);
}
.ax-flow-step.is-accent .ax-flow-num{ background:var(--pink-deep); color:var(--white); border-color:var(--pink-deep); }
.ax-flow-label{
  font-family:var(--font-display); font-weight:500; font-size:0.76rem;
  line-height:1.3; color:rgba(17,17,17,.72);
}
.ax-flow-step.is-accent .ax-flow-label{ color:var(--pink-deep); font-weight:600; }
.ax-flow-arrow{
  flex:1 1 20px;
  min-width:20px;
  height:1px;
  background:rgba(17,17,17,.22);
  position:relative;
  margin:0 2px 30px;
}
.ax-flow-arrow::after{
  content:"";
  position:absolute; right:0; top:50%;
  width:6px; height:6px;
  border-top:1.5px solid rgba(17,17,17,.4);
  border-right:1.5px solid rgba(17,17,17,.4);
  transform:translateY(-50%) rotate(45deg);
}
.ax-flow-caption{
  margin-top:clamp(16px,2.2vw,22px);
  font-size:0.82rem;
  color:rgba(17,17,17,.6);
  max-width:56ch;
}
@media (max-width:639px){
  .ax-flow{ flex-direction:column; align-items:flex-start; gap:0; }
  .ax-flow-step{ flex-direction:row; width:auto; text-align:left; gap:16px; }
  .ax-flow-arrow{ flex:none; width:1px; height:22px; margin:2px 0 2px 16px; }
  .ax-flow-arrow::after{ right:50%; top:100%; transform:translate(50%,-100%) rotate(135deg); }
}

/* ============================================================
   Audax — curated final-interfaces gallery (section "solution")
   ============================================================ */
.ax-gallery{
  display:grid;
  gap:28px;
  margin-top:clamp(40px,5vw,64px);
}
.ax-gallery-item{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0;
}
.ax-gallery-item img{
  width:100%;
  display:block;
  border-radius:var(--radius-md);
  box-shadow:0 24px 50px rgba(17,17,17,0.10);
}
.ax-gallery-cap{
  font-family:var(--font-display); font-weight:600; font-size:0.74rem;
  text-transform:uppercase; letter-spacing:.05em; opacity:.5;
  text-align:center;
}
@media (min-width:760px){
  .ax-gallery{ grid-template-columns:1fr 1fr 1fr; align-items:start; gap:24px; }
}

/* Phone-cutout variant: tightly-cropped device frames, no card chrome */
.ax-gallery--phones .ax-gallery-item{ align-items:center; }
.ax-gallery--phones .ax-gallery-item img{
  border-radius:0;
  box-shadow:none;
  max-width:220px;
  margin:0 auto;
}
@media (min-width:760px){
  .ax-gallery--phones{ grid-template-columns:repeat(3,1fr); align-items:end; }
}
@media (min-width:1000px){
  .ax-gallery--phones{ grid-template-columns:repeat(5,1fr); gap:16px; }
  .ax-gallery--phones .ax-gallery-item img{ max-width:100%; }
}

/* ============================================================
   Audax — animated screen-flow visual (section "experience")
   ============================================================ */
.ax-exp-grid{
  display:grid;
  gap:40px;
  align-items:center;
}
.ax-exp-visual{
  display:flex;
  justify-content:center;
}
.ax-exp-visual img{
  width:100%;
  max-width:280px;
  display:block;
}
@media (min-width:900px){
  .ax-exp-grid{ grid-template-columns:1.3fr 1fr; gap:56px; }
  .ax-exp-visual{ justify-content:flex-end; }
}

/* ============================================================
   Audax — page-scoped wider side margins (case study only)
   ============================================================ */
@media (min-width:1100px){
  .page-audax .container{ max-width:1140px; }
}
