/* Tactics Studio · refinement layer (v1)
   Loaded last on every page. Selectors start with html:not(#x) so they outrank
   page-level rules (including #id rules) without !important. */

/* 1. HERO TYPOGRAPHY: homepage hero is the reference
   (Satoshi 700, -0.02em, line-height 1.02, balanced lines; Satoshi 500 supporting copy) */
/* Same layout as the homepage hero: content sits on the hero's bottom edge, aligned to the
   nav gutter. Left: eyebrow + headline. Right: supporting paragraph. All text cream. */
html:not(#x) body :is(header.hero > .hero-content, header.hero > .container, header.lab-hero > .container, .split-hero .sh-overlay > .container){
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,24rem);align-items:end;
  column-gap:calc((var(--space-xl) + var(--space-3xl)) / 2);row-gap:0;
  max-width:none;width:100%;margin:0;
  padding:0 var(--gutter-nav) clamp(1.5rem,3.2vw,2.75rem);color:var(--hl-cream)
}
html:not(#x) body :is(header.hero > .hero-content, header.hero > .container, header.lab-hero > .container, .split-hero .sh-overlay > .container) > *{grid-column:1;min-width:0}
html:not(#x) body .hero.split-hero .sh-overlay{padding-bottom:0}
html:not(#x) body header.lab-hero{padding-bottom:0}
html:not(#x) body :is(header.hero, header.lab-hero) h1{
  font-family:'Satoshi',sans-serif;font-weight:700;letter-spacing:-.02em;line-height:1.02;
  font-size:clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem);max-width:19ch;text-wrap:balance;
  margin:0;color:var(--hl-cream);text-shadow:0 1px 14px rgba(var(--black-rgb),.55)
}
html:not(#x) body :is(header.hero, header.lab-hero) h1 em{font-style:normal;font-weight:inherit;color:inherit}
html:not(#x) body :is(header.hero > .hero-content, header.hero > .container, header.lab-hero > .container, .split-hero .sh-overlay > .container) > .hero-side{
  grid-column:2;grid-row:1 / span 2;align-self:end;
  display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-md);max-width:24rem
}
html:not(#x) body :is(header.hero > .hero-content, header.hero > .container, header.lab-hero > .container, .split-hero .sh-overlay > .container) > .hero-side > p{
  font-family:'Satoshi',sans-serif;font-weight:500;font-size:var(--fs-fluid-sm);line-height:1.35;letter-spacing:0;
  max-width:none;margin:0;color:var(--hl-cream);text-wrap:pretty;text-shadow:0 1px 14px rgba(var(--black-rgb),.55)
}
/* scroll cue: identical to the homepage "Selected work" cue */
html:not(#x) body .hero-cue{
  font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--hl-cream);text-decoration:none;border-bottom:1px solid rgba(var(--cream-rgb),.45);padding-bottom:.3rem;
  text-shadow:0 1px 14px rgba(var(--black-rgb),.55);pointer-events:auto;
  transition:color .5s cubic-bezier(.22,1,.36,1),border-color .5s cubic-bezier(.22,1,.36,1)
}
html:not(#x) body .hero-cue:hover,
html:not(#x) body .hero-cue:focus-visible{color:var(--accent-green);border-color:var(--accent-green);outline:none}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
:is(#contenido,#content,#cats,#services){scroll-margin-top:var(--nav-h,var(--header-h))}
/* hero height: fills the first screen like the homepage hero. The homepage nav floats over
   its hero; on inner pages the black nav sits above, so subtract its height. */
html:not(#x) body :is(header.hero:not(.hero-layers), header.lab-hero){
  height:100vh;height:100svh;min-height:35rem!important;max-height:87.5rem;box-sizing:border-box
}
/* soft shade at the top so the floating nav stays readable over bright photos (as on the homepage) */
html:not(#x) body.nav-overlay header.hero:not(.split-hero)::before{
  content:'';position:absolute;left:0;right:0;top:0;height:9rem;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(var(--black-rgb),.45) 0%,rgba(var(--black-rgb),0) 100%)
}
html:not(#x) body header.lab-hero{display:flex;align-items:flex-end;padding:0}
/* hero eyebrows: cream mono like the homepage scroll cue, never orange */
html:not(#x) body :is(header.hero, header.lab-hero) :is(.eyebrow, .hero-eyebrow, .hero-badge){
  display:block;background:none;border:0;border-radius:0;padding:0;box-shadow:none;
  color:var(--hl-cream);font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);
  letter-spacing:.18em;text-transform:uppercase;font-weight:700;margin:0 0 var(--space-md);
  text-shadow:0 1px 14px rgba(var(--black-rgb),.55)
}
@media(max-width:820px){
  html:not(#x) body :is(header.hero > .hero-content, header.hero > .container, header.lab-hero > .container, .split-hero .sh-overlay > .container){grid-template-columns:minmax(0,1fr)}
  html:not(#x) body :is(header.hero, header.lab-hero) h1{font-size:clamp(1.75rem, 7.5vw, 2.5rem);max-width:none}
  html:not(#x) body :is(header.hero > .hero-content, header.hero > .container, header.lab-hero > .container, .split-hero .sh-overlay > .container) > .hero-side{grid-column:1;grid-row:auto;margin-top:var(--space-md);max-width:34rem}
  html:not(#x) body :is(header.hero:not(.hero-layers), header.lab-hero){height:86svh;min-height:32.5rem!important}
}
/* split-hero corner labels: plain text, no dark chip */
html:not(#x) body .hero.split-hero .sh-corner-label{
  background:none;border-radius:0;padding:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
  text-shadow:0 1px 10px rgba(var(--black-rgb),.7)
}
@media(max-width:600px){
  /* stacked split hero: the lower image sits behind the headline, so its label would collide */
  html:not(#x) body .hero.split-hero .sh-right .sh-corner-label{display:none}
}

/* 2. MINIMAL IMAGE PRESENTATION: straight edges, no borders, shadows or glows */
html:not(#x) body :is(
  .feat-case,.case,.sc-tile,.cat-svc-media,.svc-media,.pt,.lab-tile,
  .campaign-mason .ci,.real-grid .tile,.salto-pair,.salto-pair .side,.sb-card,.sb-img,
  .pk-item,.gal-mason .mi,.denim-mason .mi,.ec-item,.det-item
){border-radius:0;border:0;box-shadow:none;outline:0}
html:not(#x) body :is(.case,.feat-case)::before,
html:not(#x) body :is(.case,.feat-case)::after{display:none}
html:not(#x) body :is(.sc-tile,.case,.feat-case):hover{transform:none}

/* homepage featured case: image, then text below */
html:not(#x) body #work .feat-case{aspect-ratio:auto;overflow:visible;background:none;display:block;color:var(--black);text-decoration:none}
html:not(#x) body #work .feat-case img,
html:not(#x) body #work .feat-case video{position:static;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;display:block;transform:none}
html:not(#x) body #work .feat-meta{position:static;padding:var(--space-lg) 0 0;align-items:flex-start}
html:not(#x) body #work .feat-badge{display:block;background:none;border-radius:0;padding:0;color:var(--grey-650);margin-bottom:var(--space-sm)}
html:not(#x) body #work .feat-title{color:var(--black);transition:color .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body #work .feat-sub{color:var(--grey-650)}
html:not(#x) body #work .feat-arrow{width:auto;height:auto;border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--black);font-size:var(--fs-2xl);transform:none}
html:not(#x) body #work .feat-case:hover .feat-arrow,
html:not(#x) body #work .feat-case:focus-visible .feat-arrow,
html:not(#x) body #work .feat-case:hover .feat-title{color:var(--accent-green);background:none;transform:none}
@media(max-width:820px){html:not(#x) body #work .feat-case :is(img,video){aspect-ratio:4/5}}

/* homepage case carousel: image, then text below */
html:not(#x) body #work .case{aspect-ratio:auto;overflow:visible;background:none;display:flex;flex-direction:column;color:var(--black);text-decoration:none}
html:not(#x) body #work .case :is(img,video){position:static;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;display:block;transform:none}
html:not(#x) body #work .case-meta{position:static;padding:var(--space-md) 0 0}
html:not(#x) body #work .case-tag{color:var(--grey-650)}
html:not(#x) body #work .case-title{color:var(--black);transition:color .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body #work .case-sub{color:var(--grey-650)}
html:not(#x) body #work .case:hover .case-title,
html:not(#x) body #work .case:focus-visible .case-title{color:var(--accent-green)}

/* homepage gallery: media, caption link below */
html:not(#x) body #showcase .sc-tile{background:none;overflow:visible;margin-bottom:var(--space-md)}
html:not(#x) body #showcase .sc-tile :is(img,video){width:100%;height:auto;display:block}
html:not(#x) body #showcase .sc-cap{margin:0;padding-top:var(--space-xs);font-family:'JetBrains Mono',monospace;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.16em;text-transform:uppercase;line-height:1.4}
html:not(#x) body #showcase .sc-cap a{color:var(--grey-300);text-decoration:none;transition:color .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body #showcase .sc-cap a:hover,
html:not(#x) body #showcase .sc-cap a:focus-visible{color:var(--accent-green)}

/* portfolio + AI galleries: no overlay tags on the images. The tags repeat the
   filter categories, so they are kept only as the lightbox caption. */
html:not(#x) body .pt{background:none}
html:not(#x) body .pt :is(img,video){transform:none}
html:not(#x) body .pt .pt-tag{display:none}

/* service / category cards (navigation): straight image, coral only on the hover title line */
html:not(#x) body :is(.cat-svc-card,.svc-card):hover :is(.cat-svc-media,.svc-media){border:0}

/* case studies: salto pairs get their labels below each side */
html:not(#x) body .salto-pair{background:none;gap:var(--space-sm);overflow:visible}
html:not(#x) body .salto-pair .side{aspect-ratio:auto;overflow:visible;background:none;display:flex;flex-direction:column}
html:not(#x) body .salto-pair .side :is(img,video){order:1;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;display:block}
html:not(#x) body .salto-pair .side .side-label,
html:not(#x) body .salto-pair .side.ia .side-label{
  order:2;position:static;background:none;border-radius:0;padding:var(--space-xs) 0 0;
  color:var(--grey-300);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none
}
html:not(#x) body .sec-light .salto-pair .side .side-label{color:var(--grey-650)}

/* storyboard cards: no card frame, text aligned with the image */
html:not(#x) body .sb-card{background:none}
html:not(#x) body .sb-card :is(.sb-body){padding-left:0;padding-right:0}

/* Lab placeholders keep their quiet fill, no outline */
html:not(#x) body .lab-tile:hover{border:0}

/* 3. LABELS AND ACCENTS */
html:not(#x) body :is(.case-badge,.case-kind){display:none}

/* 4. GALLERY FILTERS: plain text labels, underline for the active one */
html:not(#x) body .segctl{
  display:flex;flex-wrap:wrap;justify-content:center;gap:0 clamp(1rem, 2.4vw, 2rem);
  background:none;border:0;border-radius:0;padding:0;box-shadow:none;overflow:visible
}
html:not(#x) body .segctl .seg-pill{display:none}
html:not(#x) body .segctl .seg{
  display:inline-flex;align-items:center;min-height:2.75rem;padding:0;background:none;border:0;border-radius:0;box-shadow:none;
  color:var(--muted);text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:.55em;
  transition:color .5s cubic-bezier(.22,1,.36,1),text-decoration-color .5s cubic-bezier(.22,1,.36,1)
}
html:not(#x) body .segctl .seg.active{color:var(--white);text-decoration-color:currentColor;background:none}
html:not(#x) body .segctl .seg:hover{color:var(--accent-green)}
html:not(#x) body .segctl .seg:focus-visible{color:var(--accent-green);outline:2px solid var(--accent-green);outline-offset:4px}

/* 5. LIGHTBOX */
.ts-zoomable{cursor:zoom-in}
.ts-zoomable:focus-visible{outline:2px solid var(--accent-green);outline-offset:3px}
html.ts-lb-open{overflow:hidden}
.ts-lb{position:fixed;inset:0;z-index:1000;background:rgba(10,10,10,.96);display:flex;align-items:center;justify-content:center;
  padding:clamp(3.5rem,6vw,4.5rem) clamp(0.75rem,6vw,5.5rem);touch-action:pan-y pinch-zoom}
.ts-lb[hidden]{display:none}
.ts-lb-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:var(--space-sm);max-width:100%;max-height:100%}
.ts-lb-img{display:block;max-width:100%;max-height:calc(100svh - 9rem);width:auto;height:auto;object-fit:contain}
.ts-lb-cap{color:var(--grey-300);font-family:'JetBrains Mono',monospace;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.16em;text-transform:uppercase;text-align:center;min-height:1em}
.ts-lb-btn{position:absolute;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;padding:0;border:0;background:none;
  color:var(--grey-300);font-family:'Satoshi',sans-serif;font-size:1.5rem;line-height:1;cursor:pointer;transition:color .5s cubic-bezier(.22,1,.36,1)}
.ts-lb-btn:hover,.ts-lb-btn:focus-visible{color:var(--accent-green);outline:none}
.ts-lb-btn:focus-visible{outline:2px solid var(--accent-green);outline-offset:2px}
.ts-lb-close{top:clamp(0.5rem,2vw,1.25rem);right:clamp(0.5rem,2vw,1.25rem);font-size:1.75rem}
.ts-lb-prev{left:clamp(0.25rem,2vw,1.25rem);top:50%;transform:translateY(-50%)}
.ts-lb-next{right:clamp(0.25rem,2vw,1.25rem);top:50%;transform:translateY(-50%)}
.ts-lb-count{position:absolute;top:clamp(0.5rem,2vw,1.25rem);left:clamp(0.75rem,2vw,1.5rem);line-height:2.75rem;color:var(--muted);font-family:'JetBrains Mono',monospace;font-size:var(--fs-2xs);letter-spacing:.16em}
.ts-lb[data-single] :is(.ts-lb-prev,.ts-lb-next,.ts-lb-count){display:none}
@media(max-width:600px){
  .ts-lb{padding:3.5rem 0 4.5rem}
  .ts-lb-img{max-height:calc(100svh - 10rem)}
  .ts-lb-prev,.ts-lb-next{top:auto;bottom:0.75rem;transform:none}
  .ts-lb-prev{left:calc(50% - 3.5rem)}
  .ts-lb-next{right:calc(50% - 3.5rem)}
}
@media (prefers-reduced-motion:reduce){.ts-lb-btn{transition:none}}

/* 6. NAV: same as the homepage on every page. Floats transparent over the hero,
   turns into the solid sticky bar once the hero has scrolled past (nav-menu.js adds .scrolled). */
html:not(#x) body.nav-overlay nav{
  position:fixed;top:0;left:0;right:0;background:transparent;border-bottom:1px solid transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  transition:background .6s cubic-bezier(.22,1,.36,1),border-color .6s cubic-bezier(.22,1,.36,1)
}
html:not(#x) body.nav-overlay nav.scrolled{background:rgba(var(--black-rgb),.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom-color:var(--line)}
html:not(#x) body.nav-overlay nav .nav-inner{max-width:none;justify-content:flex-start;padding:calc((var(--space-lg) + var(--space-xl)) / 2) var(--gutter-nav)}
html:not(#x) body.nav-overlay nav .logo{color:var(--hl-cream)}
html:not(#x) body.nav-overlay nav .nav-cta{display:none!important}
html:not(#x) body.nav-overlay nav .nav-links{margin-left:auto;font-family:'Satoshi',sans-serif;font-size:var(--fs-ui);letter-spacing:0;text-transform:none;font-weight:500;gap:calc((var(--space-lg) + var(--space-3xl)) / 2)}
html:not(#x) body.nav-overlay nav .nav-links a{color:var(--hl-cream);transition:color .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body.nav-overlay nav .nav-links a:hover,
html:not(#x) body.nav-overlay nav .nav-links a.active{color:var(--accent-green)}
html:not(#x) body.nav-overlay nav .lang-toggle{margin:0 0 0 calc((var(--space-lg) + var(--space-3xl)) / 2);padding-left:calc((var(--space-lg) + var(--space-3xl)) / 2);border-left:1px solid rgba(var(--cream-rgb),.55);font-family:'Satoshi',sans-serif;font-size:var(--fs-ui);letter-spacing:0;text-transform:none;font-weight:500;gap:var(--space-2xs)}
html:not(#x) body.nav-overlay nav :is(.lang-toggle,.lang-toggle a,.lang-current,.lang-sep){color:var(--hl-cream)}
html:not(#x) body.nav-overlay nav .lang-toggle .lang-link{opacity:.6;transition:opacity .5s,color .5s}
html:not(#x) body.nav-overlay nav .lang-toggle .lang-link:hover{opacity:1;color:var(--accent-green)}
@media(max-width:820px){
  html:not(#x) body.nav-overlay nav .nav-inner{padding:calc((var(--space-sm) + var(--space-md)) / 2) var(--gutter-nav)}
  html:not(#x) body.nav-overlay nav .lang-toggle{margin-left:auto;padding-left:0;border-left:0;margin-right:calc((var(--space-sm) + var(--space-md)) / 2)}
}
/* sticky filter bars sit right under the fixed nav */
html:not(#x) body.nav-overlay :is(.filterbar,.lab-filter){top:var(--nav-h,4.5rem)}

/* 7. FOOTER: compact, same on every page, hero typography, cream text */
html:not(#x) body footer.site-footer{
  background:var(--black);color:var(--hl-cream);border-top:1px solid var(--line);text-align:left;
  padding:clamp(2.5rem,5vw,4rem) var(--gutter-nav) clamp(1.5rem,3vw,2.25rem);
  font-family:'Satoshi',sans-serif;font-size:var(--fs-ui);font-weight:500;letter-spacing:0;text-transform:none;line-height:1.4
}
html:not(#x) body footer.site-footer a{color:var(--hl-cream);text-decoration:none;transition:color .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body footer.site-footer a:hover,
html:not(#x) body footer.site-footer a:focus-visible{color:var(--accent-green);outline:none}
html:not(#x) body footer.site-footer a:focus-visible{text-decoration:underline;text-underline-offset:.3em}
html:not(#x) body .sf-main{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--space-xl) var(--space-3xl)}
html:not(#x) body .sf-logo{display:block;width:clamp(9rem,14vw,12rem);line-height:0}
html:not(#x) body .sf-logo svg{width:100%;height:auto;display:block}
html:not(#x) body .sf-cols{display:flex;flex-wrap:wrap;gap:var(--space-lg) clamp(2rem,6vw,5rem)}
html:not(#x) body .sf-col{display:flex;flex-direction:column;gap:var(--space-xs)}
html:not(#x) body .sf-bottom{margin-top:clamp(2rem,4vw,3rem);display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-xs) var(--space-xl);font-size:var(--fs-sm)}
@media(max-width:600px){
  html:not(#x) body .sf-main{flex-direction:column}
  html:not(#x) body .sf-cols{gap:var(--space-xl) var(--space-3xl)}
}
html:not(#x) body .sf-brand{max-width:26rem;display:flex;flex-direction:column;gap:var(--space-md)}
html:not(#x) body .sf-about{margin:0;color:var(--hl-cream);font-size:var(--fs-ui);line-height:1.45;text-wrap:pretty}
html:not(#x) body .sf-about .nw{white-space:nowrap}
html:not(#x) body .sf-col a[href^="mailto:"]{white-space:nowrap}

/* Lab hero image (AI-generated EXSENS still) */
html:not(#x) body header.lab-hero.has-media{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
html:not(#x) body header.lab-hero .lab-hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;z-index:0}
html:not(#x) body header.lab-hero.has-media::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(var(--black-rgb),.45) 0%,rgba(var(--black-rgb),.1) 22%,rgba(var(--black-rgb),.25) 55%,rgba(var(--black-rgb),.9) 100%)}
html:not(#x) body header.lab-hero.has-media > .container{position:relative;z-index:2}
/* Photography & video hero: bright studio flat lay, so a lighter shade that only darkens behind the text */
html:not(#x) body header.hero:has(> img[src*="hero-denim-flatlay"])::after{
  background:linear-gradient(180deg,rgba(var(--black-rgb),0) 0%,rgba(var(--black-rgb),0) 45%,rgba(var(--black-rgb),.35) 70%,rgba(var(--black-rgb),.88) 100%)
}
html:not(#x) body.nav-overlay header.hero:has(> img[src*="hero-denim-flatlay"])::before{height:11rem;background:linear-gradient(180deg,rgba(var(--black-rgb),.62) 0%,rgba(var(--black-rgb),0) 100%)}
@media(max-width:820px){
  html:not(#x) body header.lab-hero.has-media::after{
    background:linear-gradient(180deg,rgba(var(--black-rgb),.5) 0%,rgba(var(--black-rgb),.1) 18%,rgba(var(--black-rgb),.35) 38%,rgba(var(--black-rgb),.85) 58%,rgba(var(--black-rgb),.95) 100%)}
  html:not(#x) body header.hero:has(> img[src*="hero-denim-flatlay"])::after{
    background:linear-gradient(180deg,rgba(var(--black-rgb),0) 0%,rgba(var(--black-rgb),0) 30%,rgba(var(--black-rgb),.55) 52%,rgba(var(--black-rgb),.9) 100%)}
}

/* 8. PROJECT BAND (Photography & video, AI campaigns): white, type like the heroes, link-style CTA */
html:not(#x) body section.enquiry{background:var(--white);color:var(--black);border-top:1px solid var(--grey-200);border-bottom:1px solid var(--grey-200)}
html:not(#x) body section.enquiry .container{max-width:none;padding-left:var(--gutter-nav);padding-right:var(--gutter-nav)}
html:not(#x) body section.enquiry h2{color:var(--black);font-family:'Satoshi',sans-serif;font-weight:700;letter-spacing:-.02em;line-height:1.02;font-size:clamp(1.5rem, 1rem + 1.6vw, 2.5rem)}
html:not(#x) body section.enquiry .enquiry-cta{
  border:0;border-bottom:1px solid rgba(var(--black-rgb),.45);padding:0 0 .3rem;background:none;
  color:var(--black);font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase
}
html:not(#x) body section.enquiry .enquiry-cta:hover,
html:not(#x) body section.enquiry .enquiry-cta:focus-visible{color:var(--accent-green);border-color:var(--accent-green);outline:none}
/* lightbox video */
.ts-lb-fig [hidden]{display:none!important}
.ts-lb-video{background:#000;max-width:100%;width:auto}
video.ts-zoomable{cursor:zoom-in}

/* EXSENS case hero: landscape photo on desktop, the vertical film only on phones */
html:not(#x) body header.hero > picture.hero-desk{position:absolute;inset:0;z-index:0;display:block}
html:not(#x) body header.hero > picture.hero-desk img{width:100%;height:100%;object-fit:cover;object-position:center 35%;display:block}
@media(min-width:821px){html:not(#x) body header.hero:has(> picture.hero-desk) > video{display:none}}
@media(max-width:820px){html:not(#x) body header.hero > picture.hero-desk{display:none}}

/* 9. HOMEPAGE PROJECT CARDS: an explicit "View project" link line + clear hover/focus feedback */
html:not(#x) body #work .case-cta{
  display:inline-flex;align-items:center;gap:.5em;margin-top:var(--space-md);
  font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--black);border-bottom:1px solid rgba(var(--black-rgb),.45);padding-bottom:.3rem;
  transition:color .5s cubic-bezier(.22,1,.36,1),border-color .5s cubic-bezier(.22,1,.36,1)
}
html:not(#x) body #work .feat-meta .case-cta{margin-top:var(--space-lg)}
html:not(#x) body #work .case-cta-arrow{display:inline-block;transition:transform .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body #work :is(.case,.feat-case){cursor:pointer}
html:not(#x) body #work :is(.case,.feat-case) :is(img,video){transition:filter .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body #work :is(.case,.feat-case):is(:hover,:focus-visible) :is(img,video){filter:brightness(.88)}
html:not(#x) body #work :is(.case,.feat-case):is(:hover,:focus-visible) :is(.case-title,.feat-title,.case-cta){color:var(--accent-green)}
html:not(#x) body #work :is(.case,.feat-case):is(:hover,:focus-visible) .case-cta{border-color:var(--accent-green)}
html:not(#x) body #work :is(.case,.feat-case):is(:hover,:focus-visible) .case-cta-arrow{transform:translateX(.35rem)}
html:not(#x) body #work :is(.case,.feat-case):focus-visible{outline:2px solid var(--accent-green);outline-offset:4px}
@media (prefers-reduced-motion:reduce){html:not(#x) body #work .case-cta-arrow{transition:none}}

/* 10. BLACK & WHITE: no terracotta anywhere. The accent token now follows the text colour
   (tokens.css); these rules keep every former coral button readable and give hovers a
   neutral cue (fade / underline) instead of a colour change. */
html:not(#x) body #services .stack-tag{color:inherit}
html:not(#x) body .btn-primary{background:var(--black);color:var(--white)}
html:not(#x) body :is(#ai,#cta) .btn-primary{background:var(--black);color:var(--white)}
html:not(#x) body .btn-primary:hover{box-shadow:none;opacity:.8}
html:not(#x) body .form-submit{color:var(--white)}
html:not(#x) body #cta .cta-dark .form-submit{background:var(--white);color:var(--black)}
html:not(#x) body :is(.cierre a.btn, form.contact-form button):hover{background:var(--black);color:var(--white);opacity:.8}
html:not(#x) body :is(.chip.active,.chip.t.active){background:var(--white);color:var(--black);border-color:var(--white)}
/* hover cues without colour */
html:not(#x) body :is(nav .nav-links a, nav .lang-toggle .lang-link, footer.site-footer a, .hero-cue, .enquiry-cta, #showcase .sc-cap a, .segctl .seg, .ts-lb-btn, .ts-menu-links a, .ts-menu-btn){transition:opacity .5s cubic-bezier(.22,1,.36,1),color .5s cubic-bezier(.22,1,.36,1),border-color .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body :is(nav .nav-links a, footer.site-footer a, .hero-cue, .enquiry-cta, #showcase .sc-cap a, .ts-lb-btn, .ts-menu-links a):is(:hover,:focus-visible){opacity:.6}
html:not(#x) body .segctl .seg:not(.active):is(:hover,:focus-visible){color:var(--white)}
html:not(#x) body nav .nav-links a.active{text-decoration:underline;text-underline-offset:.35em;text-decoration-thickness:1px}
html:not(#x) body #work :is(.case,.feat-case):is(:hover,:focus-visible) :is(.case-title,.feat-title){text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:2px}

/* 11. ONE BUTTON STYLE everywhere: no frame or fill, mono caps, thin underline, straight arrow → */
html:not(#x) body :is(.tbtn, .cierre a.btn, form.contact-form button[type="submit"], .enquiry-cta, #work .case-cta){
  display:inline-flex;align-items:center;gap:.55em;width:auto;margin-left:0;margin-right:0;
  background:none;border:0;border-radius:0;box-shadow:none;outline-offset:4px;
  padding:0 0 .3rem;border-bottom:1px solid color-mix(in srgb, currentColor 45%, transparent);
  font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase;line-height:1.4;
  color:var(--black);text-decoration:none;cursor:pointer;opacity:1;transform:none;
  transition:opacity .5s cubic-bezier(.22,1,.36,1)
}
html:not(#x) body :is(.tbtn, .cierre a.btn, form.contact-form button[type="submit"])::after{
  content:'→';display:inline-block;transition:transform .5s cubic-bezier(.22,1,.36,1)
}
html:not(#x) body :is(.tbtn, .cierre a.btn, form.contact-form button[type="submit"], .enquiry-cta):is(:hover,:focus-visible){background:none;color:var(--black);opacity:.6}
html:not(#x) body :is(.tbtn, .cierre a.btn, form.contact-form button[type="submit"]):is(:hover,:focus-visible)::after,
html:not(#x) body .enquiry-cta:is(:hover,:focus-visible) span{transform:translateX(.35rem)}
html:not(#x) body .enquiry-cta span{display:inline-block;transition:transform .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body form.contact-form button[type="submit"]{margin-top:var(--space-lg)}
/* on dark sections the same buttons are white */
html:not(#x) body :is(.sec-dark, .case-nav, footer) :is(.tbtn, a.btn){color:var(--white)}
/* frameless controls: case-study "Inicio", phone menu button, carousel arrows */
html:not(#x) body a.cn-home{border:0;border-radius:0;background:none;padding:0 0 .3rem;border-bottom:1px solid color-mix(in srgb, currentColor 45%, transparent)}
html:not(#x) body a.cn-home:is(:hover,:focus-visible){background:none;opacity:.6}
html:not(#x) body .ts-menu-btn{border:0!important;background:none;padding:.625rem 0}
html:not(#x) body #work .cases-nav button{border:0;border-radius:0;background:none;width:2.75rem;height:2.75rem;font-size:var(--fs-xl)}
html:not(#x) body #work .cases-nav button:hover:not(:disabled){transform:none;opacity:.6}

/* 12. PROJECT CARDS: the photo zooms gently inside its frame on hover */
html:not(#x) body #work .case-media{display:block;overflow:hidden;line-height:0}
html:not(#x) body #work :is(.case,.feat-case) .case-media img{transition:transform .9s cubic-bezier(.22,1,.36,1),filter .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body #work :is(.case,.feat-case):is(:hover,:focus-visible) .case-media img{transform:scale(1.06)}
html:not(#x) body #work .feat-case:is(:hover,:focus-visible) .case-media img{transform:scale(1.03)}

/* 13. "TRES FORMAS DE TRABAJAR JUNTOS": rows react clearly on hover */
html:not(#x) body .svc-rows .svc-row-head{transition:background .5s cubic-bezier(.22,1,.36,1),padding .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body .svc-rows .svc-row-head:is(:hover,:focus-visible){background:var(--grey-100);padding-left:var(--space-lg);padding-right:var(--space-lg)}
html:not(#x) body .svc-rows .svc-row-title{display:inline-block;transform-origin:left center;transition:transform .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body .svc-rows .svc-row-head:is(:hover,:focus-visible) .svc-row-title{transform:scale(1.04)}
html:not(#x) body .svc-rows .svc-row-head:is(:hover,:focus-visible) .svc-row-toggle{color:var(--black)}

/* 14. STRAIGHT CORNERS on every element (forms, tags, cards, buttons) */
html:not(#x) body *, html:not(#x) body *::before, html:not(#x) body *::after{border-radius:0}
@media (prefers-reduced-motion:reduce){
  html:not(#x) body #work :is(.case,.feat-case) .case-media img, html:not(#x) body .svc-rows .svc-row-title{transition:none}
}
html:not(#x) body :is(.tbtn, .cierre a.btn, form.contact-form button[type="submit"], .enquiry-cta, #work .case-cta, a.cn-home){align-self:flex-start;justify-self:start;flex:0 0 auto}
html:not(#x) body .cierre a.btn{align-self:center}

/* 15. Logo reads as a link home: same soft fade as the buttons */
html:not(#x) body :is(nav a.logo, a.sf-logo){transition:opacity .25s ease}
html:not(#x) body :is(nav a.logo, a.sf-logo):hover{opacity:.6}
html:not(#x) body :is(nav a.logo, a.sf-logo):focus-visible{outline:1px solid currentColor;outline-offset:.4rem}

/* 16. Current page in the nav: a permanent thin underline (desktop bar and phone menu) */
html:not(#x) body :is(nav .nav-links, .ts-menu-links) a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.45em}
html:not(#x) body nav .nav-links a[aria-current="page"]::after{display:none}

/* 17. COOKIES + LEGAL: cookie bar, settings panel, legal pages, footer legal row */
/* footer legal row */
html:not(#x) body .sf-legal{display:flex;flex-wrap:wrap;gap:var(--space-2xs) var(--space-lg)}
html:not(#x) body .sf-legal a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.35em}
html:not(#x) body .sf-legal button{all:unset;cursor:pointer;color:var(--hl-cream);transition:opacity .5s cubic-bezier(.22,1,.36,1)}
html:not(#x) body .sf-legal button:is(:hover,:focus-visible){opacity:.6}
html:not(#x) body .sf-legal button:focus-visible{text-decoration:underline;text-underline-offset:.3em}

/* shared button: same as "Ver proyecto", mono caps with a thin underline */
.ts-cc-btn{appearance:none;background:none;border:0;border-radius:0;cursor:pointer;color:inherit;
  font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  padding:0 0 .3rem;border-bottom:1px solid color-mix(in srgb, currentColor 45%, transparent);
  transition:opacity .25s ease}
.ts-cc-btn:hover{opacity:.6}
.ts-cc-btn:focus-visible{outline:1px solid currentColor;outline-offset:.35rem}
.ts-cc-btns{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-sm) var(--space-xl)}

/* bar */
.ts-cc{position:fixed;left:0;right:0;bottom:0;z-index:9000;background:var(--black);color:var(--hl-cream);
  border-top:1px solid rgba(var(--cream-rgb),.18);transform:translateY(100%);transition:transform .4s cubic-bezier(.22,1,.36,1)}
.ts-cc.show{transform:none}
.ts-cc-in{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md) var(--space-3xl);
  padding:var(--space-md) var(--gutter-nav)}
.ts-cc-txt{margin:0;max-width:46rem;font-family:'Satoshi',sans-serif;font-weight:500;font-size:var(--fs-ui);line-height:1.45;text-wrap:pretty}
.ts-cc-txt a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em}
.ts-cc-txt a:hover{opacity:.6}
.ts-cc-eye{display:block;margin-bottom:var(--space-2xs);font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.ts-cc .ts-cc-btns{flex:none}
@media(max-width:820px){
  .ts-cc-in{flex-direction:column;align-items:flex-start}
  .ts-cc .ts-cc-btns{width:100%;justify-content:space-between}
}
/* compact bar on tablets and phones */
@media(max-width:1180px){
  .ts-cc-in{padding:var(--space-sm) var(--gutter-nav);gap:var(--space-xs) var(--space-xl)}
  .ts-cc-eye{display:none}
  .ts-cc-txt{font-size:var(--fs-sm);line-height:1.4;max-width:none}
  .ts-cc .ts-cc-btns{gap:var(--space-xs) var(--space-lg)}
  .ts-cc-btn{font-size:var(--fs-2xs);letter-spacing:.14em}
}
@media(min-width:600px) and (max-width:820px){
  .ts-cc-in{flex-direction:row;align-items:center}
  .ts-cc .ts-cc-btns{width:auto}
}

/* settings panel */
html.ts-cc-lock{overflow:hidden}
.ts-ccm{position:fixed;inset:0;z-index:9100;display:flex;align-items:center;justify-content:center;padding:var(--space-md);
  background:rgba(var(--black-rgb),.6);opacity:0;transition:opacity .25s ease}
.ts-ccm.show{opacity:1}
.ts-ccm-box{position:relative;width:100%;max-width:36rem;max-height:calc(100svh - 2 * var(--space-md));overflow:auto;
  background:var(--white);color:var(--black);border-radius:0;padding:clamp(1.5rem,4vw,2.5rem);font-family:'Satoshi',sans-serif}
.ts-ccm-box h2{margin:0 0 var(--space-lg);font-family:'Satoshi',sans-serif;font-weight:700;letter-spacing:-.02em;line-height:1.05;font-size:clamp(1.5rem,1.2rem + 1vw,2rem)}
.ts-ccm-x{position:absolute;top:var(--space-sm);right:var(--space-sm);width:2.75rem;height:2.75rem;display:grid;place-items:center;
  background:none;border:0;border-radius:0;cursor:pointer;color:inherit;font-size:1.75rem;line-height:1}
.ts-ccm-x:hover{opacity:.6}
.ts-ccm-x:focus-visible{outline:1px solid currentColor}
.ts-ccm-row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-lg);padding:var(--space-md) 0;border-top:1px solid var(--grey-200)}
.ts-ccm-row strong{display:block;font-weight:700;font-size:var(--fs-ui)}
.ts-ccm-row p{margin:var(--space-3xs) 0 0;font-weight:500;font-size:var(--fs-sm);line-height:1.45}
.ts-ccm-on{flex:none;font-family:'JetBrains Mono',monospace;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.14em;text-transform:uppercase;padding-top:.2rem}
.ts-ccm-sw{flex:none;position:relative;display:block;width:2.75rem;height:1.5rem;cursor:pointer}
.ts-ccm-sw input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ts-ccm-sw span[aria-hidden]{position:absolute;inset:0;border:1px solid var(--black);background:var(--white);transition:background .2s}
.ts-ccm-sw span[aria-hidden]::after{content:'';position:absolute;top:.1875rem;left:.1875rem;width:1rem;height:1rem;background:var(--black);transition:transform .2s,background .2s}
.ts-ccm-sw input:checked + span{background:var(--black)}
.ts-ccm-sw input:checked + span::after{transform:translateX(1.25rem);background:var(--white)}
.ts-ccm-sw input:focus-visible + span{outline:1px solid var(--black);outline-offset:.2rem}
.ts-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ts-ccm-pol{margin:0;padding:var(--space-md) 0 var(--space-lg);border-top:1px solid var(--grey-200);font-size:var(--fs-sm)}
.ts-ccm-pol a{color:inherit;text-decoration:underline;text-underline-offset:.25em}
.ts-ccm .ts-cc-btns{justify-content:space-between}
@media (prefers-reduced-motion:reduce){.ts-cc,.ts-ccm{transition:none}}

/* legal pages: black title band in hero typography, then a white reading column */
html:not(#x) body header.legal-head{background:var(--black);color:var(--hl-cream);
  padding:calc(var(--nav-h,4.5rem) + var(--space-3xl)) var(--gutter-nav) var(--space-2xl)}
html:not(#x) body header.legal-head .eyebrow{font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase;margin:0 0 var(--space-md)}
html:not(#x) body header.legal-head h1{font-family:'Satoshi',sans-serif;font-weight:700;letter-spacing:-.02em;line-height:1.02;
  font-size:clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem);margin:0;color:var(--hl-cream)}
html:not(#x) body header.legal-head .legal-date{margin:var(--space-md) 0 0;font-family:'Satoshi',sans-serif;font-weight:500;font-size:var(--fs-ui)}
html:not(#x) body section.legal-body{background:var(--white);color:var(--black);padding:var(--space-3xl) var(--gutter-nav) var(--section-y-sm)}
html:not(#x) body .legal-grid{display:grid;grid-template-columns:minmax(0,13rem) minmax(0,46rem);gap:var(--space-xl) clamp(2rem,8vw,8rem)}
html:not(#x) body .legal-nav{position:sticky;top:calc(var(--nav-h,4.5rem) + var(--space-lg));align-self:start;display:flex;flex-direction:column;gap:var(--space-sm)}
html:not(#x) body .legal-nav a{font-family:'JetBrains Mono',monospace;font-size:var(--fs-xs);font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--black);text-decoration:none;transition:opacity .25s}
html:not(#x) body .legal-nav a:hover{opacity:.6}
html:not(#x) body .legal-nav a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.45em}
html:not(#x) body .legal-doc{font-family:'Satoshi',sans-serif;font-weight:500;font-size:var(--fs-fluid-sm);line-height:1.6;min-width:0}
html:not(#x) body .legal-doc h2{font-family:'Satoshi',sans-serif;font-weight:700;letter-spacing:-.01em;line-height:1.15;font-size:clamp(1.25rem,1.05rem + .7vw,1.625rem);margin:var(--space-2xl) 0 var(--space-sm)}
html:not(#x) body .legal-doc h2:first-child{margin-top:0}
html:not(#x) body .legal-doc p,
html:not(#x) body .legal-doc ul{margin:0 0 var(--space-sm)}
html:not(#x) body .legal-doc ul{padding-left:1.1em}
html:not(#x) body .legal-doc li{margin-bottom:var(--space-3xs)}
html:not(#x) body .legal-doc a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;overflow-wrap:anywhere}
html:not(#x) body .legal-doc a:hover{opacity:.6}
html:not(#x) body .legal-doc button.ts-cc-btn{margin:var(--space-2xs) 0 var(--space-sm)}
html:not(#x) body .legal-table{overflow-x:auto;margin:var(--space-sm) 0 var(--space-md)}
html:not(#x) body .legal-table table{width:100%;min-width:34rem;border-collapse:collapse;font-size:var(--fs-sm);line-height:1.45}
html:not(#x) body .legal-table th{font-family:'JetBrains Mono',monospace;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.14em;text-transform:uppercase;text-align:left;padding:0 var(--space-sm) var(--space-xs) 0;border-bottom:1px solid var(--black)}
html:not(#x) body .legal-table td{padding:var(--space-xs) var(--space-sm) var(--space-xs) 0;border-bottom:1px solid var(--grey-200);vertical-align:top}
html:not(#x) body .legal-table td:first-child{font-family:'JetBrains Mono',monospace;font-size:var(--fs-2xs);white-space:nowrap}
@media(max-width:820px){
  html:not(#x) body .legal-grid{grid-template-columns:minmax(0,1fr)}
  html:not(#x) body .legal-nav{position:static;flex-direction:row;flex-wrap:wrap;gap:var(--space-xs) var(--space-lg)}
}
/* contact form: basic privacy information under the submit button */
html:not(#x) body .contact-form .form-legal{font-family:'Satoshi',sans-serif;font-size:var(--fs-sm);font-weight:500;letter-spacing:0;text-transform:none;line-height:1.5;color:var(--black);max-width:34rem;text-wrap:pretty}
html:not(#x) body .contact-form .form-legal a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
html:not(#x) body .contact-form .form-legal a:hover{opacity:.6}
/* legal pages keep their side gutter on phones (the inherited contact-page CSS zeroes section padding) */
@media(max-width:820px){html:not(#x) body section.legal-body{padding:var(--space-2xl) var(--gutter-nav) var(--section-y-mobile)!important}}

/* ========== 18. One text layout on every page, like the homepage ==========
   Same frame as the homepage (87.5rem container, --gutter sides), everything starts at
   the same left edge and running text uses the full width. Font sizes stay as they are:
   the big statement type is only for the homepage. The closing "Tu proyecto" call to
   action stays centred, like the homepage CTA. */
html:not(#x) body section:not(.enquiry):not(.case-nav) > .container{max-width:87.5rem;margin-left:auto;margin-right:auto}
html:not(#x) body section :is(.sec-eyebrow, .section-eyebrow):not(.cierre *){text-align:left!important}
html:not(#x) body section :is(.sec-lead, .sec-body, .sec-body > p, .section-sub, .chapter-desc, .pp, .pp > p, .pp > small,
  .testimonio, .testimonio-quote, .testimonio-body, .testimonio-body > p, .testimonio-attr){
  max-width:none!important;margin-left:0!important;margin-right:0!important;text-align:left!important
}
/* side-by-side text columns become one full-width flow */
html:not(#x) body section .brief-grid{display:block}
html:not(#x) body section .brief-grid > .sec-body + .sec-body{margin-top:var(--space-md)}
/* portfolio: the "four ways" intro sits on the same left edge as every other section */
html:not(#x) body section#cats > .container > div:first-child{text-align:left!important}

/* Images and videos carry their real width/height so the browser reserves the right space before they load:
   grids no longer reflow or jump while scrolling. Zero specificity, so any rule that sets a height still wins. */
:where(img[width][height], video[width][height]) { height: auto; }

/* ===== Phones and tablets: usability fixes (audit 26 Nov 2026) ===== */
@media(max-width:1180px){
  /* 1. filter bar: one slim row you can swipe sideways; slides away while scrolling down */
  html:not(#x) body :is(.filterbar){padding:var(--space-2xs) 0;transition:transform .35s cubic-bezier(.22,1,.36,1)}
  html:not(#x) body :is(.filterbar).fb-up{transform:translateY(-120%)}
  html:not(#x) body .filterbar .container{justify-content:flex-start;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-right:0}
  html:not(#x) body .filterbar .container::-webkit-scrollbar{display:none}
  html:not(#x) body .filterbar .segctl{flex-wrap:nowrap;border:0;padding:0;background:none;justify-content:flex-start;gap:0}
  html:not(#x) body .filterbar .seg{white-space:nowrap;min-height:2.75rem;padding:0 .9rem}
  html:not(#x) body .filterbar .seg:first-child{padding-left:0}
}
@media(max-width:820px){
  /* 3. contact form: a real, full-width send button */
  html:not(#x):not(#y) body:not(#z) form.contact-form button[type="submit"]{align-self:stretch;justify-self:stretch;justify-content:center;width:100%;min-height:3.25rem;
    background:var(--black);color:var(--white);border:0;border-radius:var(--r-sm);font-size:var(--fs-sm);letter-spacing:.18em;text-decoration:none}
  html:not(#x):not(#y) body:not(#z) form.contact-form button[type="submit"]:is(:hover,:focus-visible){background:var(--black);color:var(--white);opacity:.85}
  /* 4. bigger tap areas without changing the look */
  html:not(#x) body :is(nav .lang-toggle .lang-link,.hero-cue,.hl-cue,#showcase .sc-cap a,.cb-back){position:relative}
  html:not(#x) body :is(nav .lang-toggle .lang-link,.hero-cue,.hl-cue,#showcase .sc-cap a,.cb-back)::before{content:'';position:absolute;inset:-.75rem -.5rem}
}
@media(max-width:600px){
  /* 5. small mono labels: 12px minimum on phones */
  :root{--fs-2xs:.6875rem;--fs-xs:.75rem}
}

/* home case slider: a thin progress line instead of the "Desliza" hint; arrows at its end on desktop, swipe only on phones */
html:not(#x) body #work .cases-nav{gap:var(--space-lg);padding:0}
html:not(#x) body #work .cases-progress{position:relative;flex:1;height:2px;background:rgba(var(--black-rgb),.12);overflow:hidden}
html:not(#x) body #work .cases-progress span{position:absolute;top:0;bottom:0;left:0;width:30%;background:var(--black);transition:left .15s linear}
@media(max-width:820px){html:not(#x) body #work .cases-nav .arrows{display:none}html:not(#x) body #work .cases-nav{margin-top:var(--space-md)}}

/* phones + tablets: the Menu button matches EN / ES (same font, size and weight), with a 44px tap area */
@media(max-width:1180px){
  html:not(#x) body nav .ts-menu-btn{font-family:'Satoshi',sans-serif;font-size:var(--fs-ui);font-weight:500;letter-spacing:.02em;text-transform:uppercase;min-height:2.75rem;padding:0 0 0 var(--space-2xs)}
}
