:root{--bg:#f5f2ea;--paper:#f9f7f1;--ink:#11110f;--muted:#6c6a63;--line:#d8d4ca;--acid:#caff5d;--serif:Georgia,'Times New Roman',serif;--sans:Arial,Helvetica,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}.nav{height:72px;padding:0 3.7vw;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(249,247,241,.95);backdrop-filter:blur(12px);z-index:20}.brand{font:700 29px/1 var(--serif)}nav{display:flex;gap:38px;font-size:12px;align-self:stretch;align-items:center}nav a{height:100%;display:flex;align-items:center;position:relative}nav a.active:after{content:'';position:absolute;bottom:18px;left:0;right:0;height:1px;background:#222}#lang{justify-self:end;border:1px solid #7e7c75;border-radius:30px;background:transparent;padding:7px 13px;font-size:11px}.hero{height:500px;display:grid;grid-template-columns:42% 43% 15%;border-bottom:1px solid var(--line);overflow:hidden}.hero-copy{padding:42px 3.8vw 30px}.eyebrow,.section-head p,.about-topline p{font-size:10px;letter-spacing:.07em;color:var(--muted);line-height:1.35}.hero h1{font-size:clamp(39px,4vw,61px);line-height:.96;margin:25px 0 25px;font-weight:800;letter-spacing:-.035em}.hero h1 em,.contact h3 em{font-family:var(--serif);font-weight:400;letter-spacing:-.02em}.lead{font-size:16px;line-height:1.45;margin:0}.hero-actions{display:flex;align-items:center;gap:48px;margin-top:18px}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--acid);padding:14px 31px;border-radius:28px;font-size:11px;font-weight:700;letter-spacing:.02em;white-space:nowrap}.scroll-cue{display:flex;align-items:center;gap:15px}.scroll-cue>span{font-size:42px;font-weight:200;line-height:1}.scroll-cue small{font-size:10px;line-height:1.25}.media-placeholder{background:linear-gradient(135deg,#c9c5bb,#8f8d87);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.9);position:relative;overflow:hidden}.media-placeholder>span{font-size:10px;letter-spacing:.12em}.hero-photo{height:100%}.hero-collage{position:relative;background:#171815;color:#fff}.scribble{position:absolute;top:47px;left:20px;font:italic 23px/1.3 'Segoe Print','Bradley Hand',cursive;transform:rotate(-8deg)}.scribble b{display:block;color:#52ff00;font:31px Arial;margin:4px 0 0 52px}.mini-note{position:absolute;left:-48px;top:210px;width:132px;background:var(--paper);color:#555;padding:19px 16px;border-radius:13px;font:11px/1.45 var(--sans);box-shadow:0 7px 25px rgba(0,0,0,.12);z-index:2}.mini-note i{font-size:22px}.mini-polaroid{position:absolute;width:130px;height:184px;right:9px;bottom:18px;padding:8px;background:#f8f5ed;transform:rotate(2deg);box-shadow:0 7px 20px rgba(0,0,0,.16)}.mini-polaroid>div{height:100%}.section{padding:25px 3vw 40px;border-bottom:1px solid var(--line)}.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px}.section-head h2,.about h2,.contact h2{font:30px/1 var(--serif);margin:0;display:flex;align-items:center;gap:20px}.section-head h2 span,.about h2 span,.contact h2 span{font-size:27px}.section-head h2 i,.about h2 i,.contact h2 i{font:300 24px var(--sans);color:#777}.work-head-right{display:flex;align-items:center;gap:35px}.arrows{display:flex;gap:9px}.arrows button{width:34px;height:34px;border:1px solid #aaa69c;border-radius:50%;background:transparent}.work-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.work-card{min-width:0}.work-card .thumb{aspect-ratio:0.76;background:#c9c5bb;border-radius:7px;display:grid;place-items:center;position:relative;overflow:hidden}.thumb:after{content:'▶';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:22px;color:#fff;text-shadow:0 2px 8px #000}.duration{position:absolute;right:7px;top:7px;background:rgba(28,28,26,.76);color:white;padding:3px 6px;border-radius:10px;font-size:9px}.work-card h3{font-size:13px;margin:9px 0 3px;font-weight:600}.work-card h3 span{float:right;font-size:15px;font-weight:400;color:#666}.work-card p{font-size:9px;color:var(--muted);margin:0}.about{height:410px;display:grid;grid-template-columns:40% 60%;border-bottom:1px solid var(--line);overflow:hidden}.about-photo{height:100%}.photo-scribble{position:absolute;left:9%;top:17%;font:italic 19px/1.35 'Segoe Print','Bradley Hand',cursive;color:white;transform:rotate(-8deg);text-shadow:0 1px 5px rgba(0,0,0,.25)}.about-main{padding:22px 3.8vw 25px 3.2vw}.about-topline{display:flex;align-items:flex-start;justify-content:space-between}.about-topline p{text-align:left;margin:0}.about-body{display:grid;grid-template-columns:minmax(280px,1.35fr) minmax(180px,.72fr) 130px;gap:24px;margin-top:27px;align-items:start}.about-copy h3{font:43px/1 var(--serif);margin:0 0 13px}.about-copy p{font-size:12px;line-height:1.45;color:#3f3e3a;max-width:430px;margin:0 0 12px}.about-copy .intro{color:#222}.dark-btn{display:inline-block;margin-top:4px;background:#151512;color:#fff;padding:12px 21px;border-radius:24px;font-size:9px;font-weight:700}.about-tags{border-left:1px solid var(--line);padding:4px 0 0 24px;display:grid;gap:14px}.about-tags span{font-size:11px;display:grid;grid-template-columns:24px 1fr;align-items:center}.about-tags b{font-size:10px;font-weight:500}.madrid-polaroid{background:#faf7ef;padding:7px 7px 22px;box-shadow:0 5px 14px rgba(0,0,0,.09);transform:rotate(4deg);margin-top:0}.madrid-polaroid>div{height:135px}.madrid-polaroid em{display:block;color:#555;font:italic 14px 'Segoe Print','Bradley Hand',cursive;text-align:center;margin-top:8px}.services-section{padding-top:25px;padding-bottom:30px}.services{display:grid;grid-template-columns:repeat(4,1fr)}.services article{padding:5px 30px 5px 10px;border-right:1px solid var(--line);min-height:125px}.services article:first-child{padding-left:0}.services article:last-child{border:0}.services b{font-size:29px;font-weight:400}.services h3{font:22px var(--serif);margin:14px 0 8px}.services p{font-size:12px;color:#494944;line-height:1.45;margin:0;max-width:240px}.contact{height:240px;display:grid;grid-template-columns:48% 25% 27%;border-bottom:1px solid var(--line);overflow:hidden}.contact-copy{padding:24px 3.8vw}.contact h3{font-size:clamp(31px,3.5vw,48px);line-height:.95;margin:31px 0 0;letter-spacing:-.03em}.contact-actions{border-left:1px solid var(--line);padding:25px 34px}.contact-actions>p{font-size:10px;color:#666;line-height:1.25;margin:0 0 23px}.contact-actions .btn{padding-left:25px;padding-right:25px}.social{display:flex;gap:24px;margin-top:22px;font-size:24px}.desk-photo{height:100%}.desk-note{position:absolute;left:38%;top:20%;font:italic 17px/1.5 'Segoe Print','Bradley Hand',cursive;color:#302d29;transform:rotate(-3deg)}footer{padding:18px 4vw;color:var(--muted);font-size:10px}.hero-photo,.about-photo,.desk-photo,.mini-polaroid>div,.madrid-polaroid>div,.thumb{background-size:cover;background-position:center}
@media(max-width:1050px){.hero{grid-template-columns:44% 56%;height:auto;min-height:560px}.hero-collage{display:none}.hero-photo{min-height:560px}.work-grid{display:flex;overflow-x:auto;gap:12px;padding-bottom:10px}.work-card{min-width:150px}.about{height:auto;grid-template-columns:38% 62%}.about-body{grid-template-columns:1.2fr .8fr}.madrid-polaroid{display:none}.about-photo{min-height:430px}.contact{grid-template-columns:55% 45%;height:auto}.desk-photo{display:none}}
@media(max-width:760px){.nav{height:62px;grid-template-columns:1fr auto}.nav nav{display:none}.brand{font-size:25px}.hero{display:flex;flex-direction:column;min-height:0}.hero-photo{order:-1;min-height:420px}.hero-copy{padding:35px 6vw 40px}.hero h1{font-size:46px}.hero-actions{gap:25px}.section{padding:25px 5vw 35px}.section-head{align-items:flex-start;gap:20px}.section-head h2,.about h2,.contact h2{font-size:26px}.work-head-right p{display:none}.about{display:flex;flex-direction:column}.about-photo{min-height:420px}.about-main{padding:28px 6vw 38px}.about-topline p{display:none}.about-body{grid-template-columns:1fr}.about-copy h3{font-size:42px}.about-copy p{font-size:14px}.about-tags{border-left:0;border-top:1px solid var(--line);padding:22px 0 0;grid-template-columns:1fr 1fr}.services{grid-template-columns:1fr 1fr}.services article:nth-child(2){border-right:0}.services article{border-bottom:1px solid var(--line);padding:20px}.contact{grid-template-columns:1fr}.contact-copy{padding:30px 6vw}.contact-actions{border-left:0;border-top:1px solid var(--line);padding:25px 6vw 35px}.contact h3{font-size:42px}}
@media(max-width:500px){.hero-photo{min-height:360px}.hero h1{font-size:39px}.hero-actions{align-items:flex-start;flex-direction:column}.scroll-cue{display:none}.section-head h2{gap:10px}.work-card{min-width:165px}.about-tags{grid-template-columns:1fr}.services{grid-template-columns:1fr}.services article{border-right:0!important;padding-left:0}.contact h3{font-size:35px}}


/* V3 — living video previews + cinematic lightbox */
.work-card{cursor:pointer;outline:none}.work-card:focus-visible .thumb{outline:3px solid var(--acid);outline-offset:3px}.thumb .preview-video{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .25s ease,transform .35s ease}.thumb.has-video .preview-video{opacity:1}.thumb.has-video .video-fallback{display:none}.video-fallback{position:absolute;inset:0;z-index:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.video-fallback span{font-size:10px;letter-spacing:.12em}.video-fallback small{font-size:7px;opacity:.75;max-width:90%;text-align:center}.thumb:after{display:none}.work-card:hover .preview-video{transform:scale(1.025)}.preview-hint{position:absolute;left:8px;bottom:8px;z-index:3;background:rgba(20,20,18,.72);color:#fff;border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(7px);padding:5px 8px;border-radius:20px;font-size:8px;letter-spacing:.08em;opacity:0;transform:translateY(4px);transition:.2s}.work-card:hover .preview-hint,.work-card:focus-visible .preview-hint{opacity:1;transform:none}.duration{z-index:3}.modal-open{overflow:hidden}.video-modal{position:fixed;inset:0;z-index:1000;background:rgba(10,10,9,.88);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:28px;opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s}.video-modal.is-open{opacity:1;visibility:visible}.video-modal-shell{height:min(86vh,850px);max-width:min(92vw,520px);display:flex;flex-direction:column;gap:11px;transform:translateY(12px) scale(.985);transition:transform .25s ease}.video-modal.is-open .video-modal-shell{transform:none}.video-modal video{height:calc(100% - 42px);max-width:100%;aspect-ratio:9/16;object-fit:contain;background:#000;border-radius:12px;box-shadow:0 28px 80px rgba(0,0,0,.45)}.video-modal-meta{color:#fff;display:flex;align-items:baseline;justify-content:space-between;gap:24px;font-size:12px}.video-modal-meta strong{font:22px var(--serif);font-weight:400}.video-modal-meta span{font-size:9px;letter-spacing:.06em;color:#bbb;text-align:right}.video-modal-close{position:absolute;right:28px;top:24px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.08);color:#fff;font-size:27px;line-height:1;cursor:pointer;z-index:2}.video-modal-close:hover{background:var(--acid);color:#111;border-color:var(--acid)}
@media(max-width:600px){.video-modal{padding:12px}.video-modal-shell{height:92vh;max-width:100%}.video-modal video{max-width:calc(100vw - 24px);border-radius:9px}.video-modal-close{right:16px;top:14px;background:rgba(10,10,9,.55)}.video-modal-meta{padding:0 4px}.preview-hint{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.thumb .preview-video,.video-modal,.video-modal-shell{transition:none}.preview-video{display:none}}


/* ==========================================================
   V4 — RESPONSIVE QA / production hardening
   Master layout preserved; grids recompose instead of shrink.
   ========================================================== */

html, body { max-width: 100%; overflow-x: clip; }
img, video { max-width: 100%; }
button, a, .work-card { -webkit-tap-highlight-color: transparent; }
.work-card { touch-action: manipulation; }

/* Large desktop: prevent the composition becoming excessively stretched. */
@media (min-width: 1440px) {
  .nav { padding-left: max(3.7vw, 54px); padding-right: max(3.7vw, 54px); }
  .section { padding-left: max(3vw, 46px); padding-right: max(3vw, 46px); }
  .hero-copy, .contact-copy { padding-left: max(3.8vw, 58px); }
  .about-main { padding-right: max(3.8vw, 58px); }
  .hero { min-height: 520px; height: min(38vw, 590px); }
  .work-grid { gap: 14px; }
}

/* Laptop / small desktop */
@media (min-width: 1051px) and (max-width: 1240px) {
  nav { gap: 24px; }
  .hero { grid-template-columns: 44% 41% 15%; }
  .hero h1 { font-size: clamp(42px, 4.4vw, 54px); }
  .hero-actions { gap: 24px; }
  .about { grid-template-columns: 36% 64%; height: auto; min-height: 410px; }
  .about-body { grid-template-columns: minmax(250px,1.2fr) minmax(160px,.7fr) 112px; gap: 18px; }
  .about-copy h3 { font-size: 39px; }
  .about-tags { padding-left: 18px; gap: 12px; }
  .madrid-polaroid > div { height: 120px; }
  .services article { padding-right: 20px; }
}

/* Tablet landscape / compact laptop */
@media (min-width: 761px) and (max-width: 1050px) {
  .nav { grid-template-columns: auto 1fr auto; padding-inline: 28px; }
  nav { justify-content: center; gap: clamp(16px, 2.8vw, 28px); }
  .hero { grid-template-columns: 45% 55%; min-height: 520px; }
  .hero-copy { padding: 38px 32px 34px; }
  .hero h1 { font-size: clamp(40px, 5.2vw, 54px); }
  .hero-photo { min-height: 520px; }
  .hero-actions { gap: 22px; flex-wrap: wrap; }
  .section { padding-inline: 28px; }
  .work-card { min-width: clamp(155px, 21vw, 190px); }
  .about { grid-template-columns: 36% 64%; min-height: 450px; }
  .about-photo { min-height: 450px; }
  .about-main { padding: 26px 28px 34px; }
  .about-body { grid-template-columns: minmax(0, 1.35fr) minmax(160px,.65fr); gap: 22px; }
  .about-copy h3 { font-size: clamp(36px, 4.7vw, 43px); }
  .about-copy p { font-size: 12px; }
  .about-tags { padding-left: 20px; }
  .services { grid-template-columns: repeat(2,1fr); }
  .services article { min-height: 145px; padding: 22px 28px 22px 0; border-bottom: 1px solid var(--line); }
  .services article:nth-child(2) { border-right: 0; padding-left: 28px; }
  .services article:nth-child(3) { border-bottom: 0; }
  .services article:nth-child(4) { border: 0; padding-left: 28px; }
  .contact { grid-template-columns: 55% 45%; }
  .contact-copy { padding-left: 32px; }
}

/* Tablet portrait / large phone */
@media (min-width: 601px) and (max-width: 760px) {
  .nav { padding-inline: 30px; }
  .hero-photo { min-height: 50svh; max-height: 570px; }
  .hero-copy { padding-inline: 7vw; }
  .hero h1 { font-size: clamp(43px, 8vw, 58px); max-width: 680px; }
  .section { padding-inline: 6vw; }
  .work-card { min-width: clamp(175px, 32vw, 220px); }
  .about-photo { min-height: 52svh; max-height: 560px; }
  .about-main { padding-inline: 7vw; }
  .about-body { max-width: 680px; }
  .services article { min-height: 150px; }
}

/* Phones */
@media (max-width: 600px) {
  .nav { padding-inline: 20px; }
  #lang { min-width: 58px; min-height: 36px; }
  .hero-photo { min-height: min(92vw, 430px); }
  .hero-copy { padding: 30px 20px 34px; }
  .hero h1 { font-size: clamp(37px, 11vw, 48px); overflow-wrap: anywhere; }
  .lead { font-size: 15px; }
  .btn { min-height: 44px; padding: 13px 23px; }
  .section { padding: 24px 20px 32px; }
  .section-head { margin-bottom: 20px; }
  .section-head h2, .about h2, .contact h2 { line-height: 1.08; }
  .work-grid { scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .work-card { min-width: min(72vw, 230px); scroll-snap-align: start; }
  .work-card .thumb { border-radius: 8px; }
  .preview-hint { min-height: 28px; display: flex; align-items: center; }
  .about-photo { min-height: min(105vw, 500px); }
  .about-main { padding: 26px 20px 34px; }
  .about-copy h3 { font-size: clamp(37px, 11vw, 45px); }
  .about-copy p { max-width: none; }
  .about-tags { gap: 16px; }
  .services article { min-height: 0; }
  .contact-copy, .contact-actions { padding-left: 20px; padding-right: 20px; }
  .contact h3 { font-size: clamp(34px, 10vw, 43px); }
  footer { padding-inline: 20px; }
}

/* Narrow phones */
@media (max-width: 380px) {
  .brand { font-size: 23px; }
  .hero-copy { padding-inline: 16px; }
  .hero h1 { font-size: 35px; }
  .section { padding-inline: 16px; }
  .section-head h2 { font-size: 24px; }
  .work-card { min-width: 78vw; }
  .about-main, .contact-copy, .contact-actions { padding-left: 16px; padding-right: 16px; }
  .about-copy h3 { font-size: 36px; }
}

/* Modal: constrain by BOTH viewport axes. 9:16 video stays fully visible. */
.video-modal {
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}
.video-modal-shell {
  width: min(520px, calc(100dvw - 40px), calc((100dvh - 110px) * 9 / 16));
  height: auto;
  max-width: none;
  max-height: calc(100dvh - 32px);
  gap: 10px;
}
.video-modal video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 96px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
}
.video-modal-meta { min-height: 34px; }
.video-modal-close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
}

@media (orientation: landscape) and (max-height: 650px) {
  .video-modal { padding-block: 10px; }
  .video-modal-shell {
    width: min(430px, calc((100dvh - 70px) * 9 / 16));
    max-height: calc(100dvh - 20px);
  }
  .video-modal video { max-height: calc(100dvh - 62px); }
  .video-modal-meta strong { font-size: 17px; }
  .video-modal-close { width: 42px; height: 42px; top: 10px; right: 10px; }
}

@media (max-width: 600px) {
  .video-modal {
    align-items: center;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }
  .video-modal-shell {
    width: min(calc(100dvw - 20px), calc((100dvh - 86px) * 9 / 16));
    max-height: calc(100dvh - 20px);
  }
  .video-modal video { max-height: calc(100dvh - 72px); border-radius: 10px; }
  .video-modal-meta { gap: 10px; }
  .video-modal-meta strong { font-size: 18px; }
  .video-modal-meta span { font-size: 8px; }
}

/* Accessible hover only on devices that actually hover. */
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .preview-video { transform: scale(1.025); }
}
@media (hover: none) {
  .work-card:hover .preview-video { transform: none; }
}

/* Reduced motion: keep the content visible, just don't autoplay it. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb .preview-video { display: block; transition: none; }
  .work-card:hover .preview-video { transform: none; }
}


/* ==========================================================
   V4.1 — HERO RESPONSIVE FIX
   Never let a wide-but-short viewport clip hero content.
   ========================================================== */

/* Content, not viewport width, owns the hero height. */
.hero {
  height: auto !important;
  min-height: 0 !important;
  align-items: stretch;
}
.hero-copy {
  min-height: 640px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-photo {
  height: auto !important;
  min-height: 640px;
}
.hero-side {
  min-height: 640px;
}

/* Wide screens with limited vertical room: compact the hero internally
   rather than clipping content or overlapping the next section. */
@media (min-width: 1051px) and (max-height: 850px) {
  .hero-copy {
    min-height: 600px;
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .hero-photo,
  .hero-side {
    min-height: 600px;
  }
  .hero h1 {
    font-size: clamp(43px, 4.15vw, 59px);
    line-height: .94;
    margin-top: 28px;
    margin-bottom: 26px;
  }
  .lead {
    margin-bottom: 24px;
  }
  .hero-actions {
    margin-top: 0;
  }
}

/* Extra-short desktop/laptop windows. */
@media (min-width: 1051px) and (max-height: 720px) {
  .hero-copy {
    min-height: 560px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero-photo,
  .hero-side {
    min-height: 560px;
  }
  .hero h1 {
    font-size: clamp(40px, 3.8vw, 53px);
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .eyebrow { margin-bottom: 0; }
  .lead { font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
  .btn { padding-top: 12px; padding-bottom: 12px; }
}

/* Tablet: let the grid rows size themselves from content. */
@media (min-width: 761px) and (max-width: 1050px) {
  .hero-copy {
    min-height: 540px;
  }
  .hero-photo {
    min-height: 540px;
  }
}

/* Once hero stacks, each block owns its natural height. */
@media (max-width: 760px) {
  .hero-copy {
    min-height: 0;
    display: block;
  }
  .hero-photo {
    height: auto !important;
  }
}

/* Section boundaries must always remain in normal document flow. */
#work,
.work-section {
  position: relative;
  clear: both;
  z-index: 2;
}


/* V4.2 — functional carousel controls */
.arrows button {
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.arrows button:not(:disabled):hover {
  transform: translateY(-1px);
}
.arrows button:disabled {
  opacity: .28;
  cursor: default;
}
.arrows button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}


/* V5 — language selector */
.lang-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #aaa79f;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  background: rgba(255,255,255,.2);
}
.lang-switch > span { opacity: .42; }
.lang-option {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  min-width: 31px;
  height: 27px;
  padding: 0 8px;
  cursor: pointer;
  font: inherit;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.lang-option.active {
  background: #111;
  color: #fff;
  font-weight: 700;
}
.lang-option:not(.active):hover { background: rgba(0,0,0,.07); }
.lang-option:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.section-title { font: inherit; font-weight: inherit; }

@media (max-width: 760px) {
  .lang-switch { padding: 3px 5px; gap: 2px; }
  .lang-option { min-width: 29px; height: 27px; padding-inline: 6px; }
}


/* ==========================================================
   V5.1 — bilingual layout hardening
   Text length may change with language; sections must grow.
   ========================================================== */

/* Contact used to be 240px high. Spanish wraps into more lines,
   so content must determine the section height. */
.contact {
  height: auto !important;
  min-height: 300px;
  overflow: visible;
  align-items: stretch;
}
.contact-copy,
.contact-actions,
.desk-photo {
  min-width: 0;
  box-sizing: border-box;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 30px;
  padding-bottom: 36px;
}
.contact h3 {
  margin-bottom: 0;
  overflow-wrap: normal;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.desk-photo {
  height: auto !important;
  min-height: 300px;
}

/* Mid-size desktop: give the Spanish headline a little more room. */
@media (min-width: 1051px) and (max-width: 1350px) {
  .contact {
    grid-template-columns: 50% 24% 26%;
  }
  .contact h3 {
    font-size: clamp(34px, 3.35vw, 45px);
  }
  .contact-actions {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* Tablet rules in the existing stylesheet collapse the image; make the
   two-column version explicit and keep every cell naturally sized. */
@media (min-width: 761px) and (max-width: 1050px) {
  .contact {
    grid-template-columns: 55% 45%;
    min-height: 0;
  }
  .contact-copy,
  .contact-actions {
    min-height: 300px;
  }
  .desk-photo {
    grid-column: 1 / -1;
    min-height: 300px;
  }
}

/* Stacked mobile: no artificial minimums. */
@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .contact-copy,
  .contact-actions {
    min-height: 0;
  }
  .desk-photo {
    min-height: min(78vw, 420px);
  }
}

/* Other bilingual text containers: never clip because a translation wraps. */
.section-head,
.about-topline,
.services article,
.about-copy,
.work-card {
  min-width: 0;
}
.services article,
.about-main {
  height: auto;
}


/* ==========================================================
   V5.2 — MOBILE SELECTED WORK CAROUSEL
   One readable hero card + a peek of the next card.
   ========================================================== */
@media (max-width: 760px) {
  .work-section {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .work-section .section-head {
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-end;
    gap: 16px;
  }

  .work-section .section-head h2 {
    min-width: 0;
    font-size: clamp(25px, 7.5vw, 31px);
    gap: 11px;
    line-height: 1.02;
  }

  .work-section .section-head h2 .section-title {
    max-width: 210px;
  }

  .work-head-right {
    flex: 0 0 auto;
  }

  .work-head-right > p {
    display: none;
  }

  .arrows {
    gap: 8px;
  }

  .arrows button {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .work-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 20px 22px;
    scroll-padding-left: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .work-grid::-webkit-scrollbar {
    display: none;
  }

  .work-card,
  .work-card:nth-child(n) {
    flex: 0 0 min(76vw, 290px) !important;
    width: min(76vw, 290px) !important;
    min-width: min(76vw, 290px) !important;
    max-width: min(76vw, 290px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .work-card .thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
  }

  .work-card h3 {
    font-size: 17px;
    line-height: 1.15;
    margin: 11px 0 5px;
  }

  .work-card h3 span {
    font-size: 18px;
  }

  .work-card p {
    font-size: 11px;
    line-height: 1.35;
    min-height: 30px;
  }

  .preview-hint {
    font-size: 10px;
    padding: 7px 9px;
  }

  .duration {
    font-size: 9px;
    padding: 5px 7px;
  }

  .video-fallback span {
    font-size: 13px;
  }

  .video-fallback small {
    max-width: 80%;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .work-section .section-head {
    padding-left: 16px;
    padding-right: 16px;
  }
  .work-section .section-head h2 {
    font-size: 25px;
  }
  .work-section .section-head h2 .section-title {
    max-width: 180px;
  }
  .arrows button {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  .work-grid {
    padding-left: 16px;
    padding-right: 16px;
    scroll-padding-left: 16px;
  }
  .work-card,
  .work-card:nth-child(n) {
    flex-basis: 78vw !important;
    width: 78vw !important;
    min-width: 78vw !important;
    max-width: 78vw !important;
  }
}


/* ==========================================================
   V5.3 — SELECTED WORK: eliminate the breakpoint dead zone
   Wide desktop: 7-up editorial grid
   Compact desktop/tablet: horizontal carousel with readable cards
   Mobile: hero card + next-card peek (V5.2)
   ========================================================== */

/* Compact desktop and landscape tablet */
@media (min-width: 761px) and (max-width: 1240px) {
  .work-section {
    overflow: hidden;
  }

  .work-section .section-head {
    align-items: flex-end;
    gap: 24px;
  }

  .work-section .section-head h2 {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(25px, 3vw, 30px);
  }

  .work-head-right {
    flex: 0 0 auto;
  }

  .work-head-right > p {
    font-size: 9px;
    line-height: 1.25;
  }

  .work-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .work-grid::-webkit-scrollbar { display: none; }

  .work-card,
  .work-card:nth-child(n) {
    flex: 0 0 clamp(170px, 21vw, 225px) !important;
    width: clamp(170px, 21vw, 225px) !important;
    min-width: clamp(170px, 21vw, 225px) !important;
    max-width: clamp(170px, 21vw, 225px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .work-card .thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
  }

  .work-card h3 {
    font-size: 14px;
    line-height: 1.15;
    margin-top: 9px;
  }

  .work-card p {
    font-size: 10px;
    line-height: 1.3;
  }
}

/* Portrait tablet: roughly 2.5–3 cards visible. */
@media (min-width: 761px) and (max-width: 900px) {
  .work-card,
  .work-card:nth-child(n) {
    flex-basis: clamp(185px, 28vw, 220px) !important;
    width: clamp(185px, 28vw, 220px) !important;
    min-width: clamp(185px, 28vw, 220px) !important;
    max-width: clamp(185px, 28vw, 220px) !important;
  }

  .work-head-right > p {
    display: none;
  }
}

/* True wide desktop: restore the master seven-column composition explicitly.
   This prevents flex rules from narrower breakpoints leaking upward. */
@media (min-width: 1241px) {
  .work-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .work-card,
  .work-card:nth-child(n) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
  }
}

/* Short but wide windows still need readable cards: switch to carousel
   if usable vertical space suggests a compact browser window. */
@media (min-width: 1000px) and (max-width: 1400px) and (max-height: 800px) {
  .work-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar { display: none; }
  .work-card,
  .work-card:nth-child(n) {
    flex: 0 0 clamp(175px, 18vw, 215px) !important;
    width: clamp(175px, 18vw, 215px) !important;
    min-width: clamp(175px, 18vw, 215px) !important;
    max-width: clamp(175px, 18vw, 215px) !important;
    scroll-snap-align: start;
  }
}


/* ==========================================================
   V5.4 — HERO COLLAGE ALWAYS VISIBLE
   Preserve the black editorial collage at every viewport size.
   ========================================================== */

/* Compact desktop / tablet landscape:
   keep a real third column instead of dropping the collage. */
@media (min-width: 901px) and (max-width: 1240px) {
  .hero {
    grid-template-columns: 42% 43% 15% !important;
  }

  .hero-collage {
    display: block !important;
    position: relative;
    min-width: 0;
    overflow: visible;
    background: #11130f;
  }

  .hero-collage .scribble {
    font-size: clamp(21px, 2.4vw, 31px);
    line-height: 1.05;
    left: 10%;
    right: 8%;
    top: 9%;
  }

  .hero-collage .scribble b {
    font-size: clamp(30px, 3.6vw, 45px);
  }

  .hero-collage .mini-note {
    width: min(78%, 150px);
    left: -18%;
    top: 42%;
    font-size: clamp(9px, 1.05vw, 12px);
    padding: 16px 14px;
  }

  .hero-collage .mini-polaroid {
    width: 78%;
    right: -8%;
    bottom: 4%;
  }
}

/* Portrait tablet:
   the collage becomes a full-width editorial strip below the two hero panels. */
@media (min-width: 761px) and (max-width: 900px) {
  .hero {
    grid-template-columns: 44% 56% !important;
  }

  .hero-collage {
    display: block !important;
    grid-column: 1 / -1;
    position: relative;
    min-height: 310px;
    background: #11130f;
    overflow: hidden;
  }

  .hero-collage .scribble {
    top: 42px;
    left: 7vw;
    right: auto;
    width: 34%;
    font-size: clamp(28px, 4.5vw, 38px);
    line-height: 1.02;
  }

  .hero-collage .scribble b {
    font-size: 48px;
    margin-top: 12px;
  }

  .hero-collage .mini-note {
    top: 46px;
    left: 43%;
    width: 180px;
    font-size: 11px;
    padding: 18px 17px;
  }

  .hero-collage .mini-polaroid {
    width: 150px;
    height: 190px;
    right: 5vw;
    bottom: -12px;
    transform: rotate(3deg);
  }
}

/* Mobile:
   preserve the exact visual language as its own editorial panel.
   It sits after the hero copy/photo so neither side is crushed. */
@media (max-width: 760px) {
  .hero-collage {
    display: block !important;
    position: relative;
    min-height: 390px;
    width: 100%;
    background: #11130f;
    overflow: hidden;
  }

  .hero-collage .scribble {
    position: absolute;
    top: 34px;
    left: 24px;
    right: auto;
    width: 58%;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.02;
    transform: rotate(-2deg);
  }

  .hero-collage .scribble b {
    display: block;
    font-size: 50px;
    margin-top: 10px;
  }

  .hero-collage .mini-note {
    position: absolute;
    z-index: 3;
    top: 155px;
    left: 20px;
    width: min(43vw, 170px);
    padding: 16px 14px;
    font-size: 10px;
    line-height: 1.45;
    border-radius: 15px;
  }

  .hero-collage .mini-polaroid {
    position: absolute;
    width: min(45vw, 180px);
    height: 230px;
    right: -6px;
    bottom: -9px;
    transform: rotate(3deg);
  }

  .hero-collage .mini-polaroid > div {
    height: 100%;
  }
}

@media (max-width: 380px) {
  .hero-collage {
    min-height: 360px;
  }
  .hero-collage .scribble {
    left: 18px;
    font-size: 29px;
  }
  .hero-collage .mini-note {
    left: 16px;
    top: 148px;
    width: 43vw;
    padding: 14px 12px;
    font-size: 9px;
  }
  .hero-collage .mini-polaroid {
    width: 44vw;
    height: 210px;
  }
}


/* ==========================================================
   V5.5 — HERO COLLAGE MID-MOBILE FIX
   Fix only the 560–760px range where the mobile collage
   becomes wide enough for the Polaroid to overflow awkwardly.
   ========================================================== */
@media (min-width: 560px) and (max-width: 760px) {
  .hero-collage {
    min-height: 390px;
    overflow: hidden;
  }

  .hero-collage .scribble {
    top: 34px;
    left: 32px;
    width: 48%;
    font-size: clamp(31px, 5.8vw, 39px);
    line-height: 1.03;
    z-index: 2;
  }

  .hero-collage .scribble b {
    display: block;
    position: absolute;
    left: 100%;
    top: 76%;
    margin: 0;
    font-size: 48px;
    line-height: 1;
    color: var(--acid);
    transform: rotate(7deg);
  }

  .hero-collage .mini-note {
    top: 205px;
    left: 32px;
    width: 205px;
    padding: 17px 16px;
    font-size: 10px;
    line-height: 1.45;
    z-index: 4;
  }

  .hero-collage .mini-polaroid {
    width: 205px;
    height: 265px;
    right: 28px;
    bottom: -28px;
    transform: rotate(3deg);
    z-index: 2;
  }

  .hero-collage .mini-polaroid > div {
    height: 100%;
  }
}

/* Slightly narrower mid-mobile: keep comfortable separation. */
@media (min-width: 560px) and (max-width: 640px) {
  .hero-collage .mini-note {
    width: 180px;
  }
  .hero-collage .mini-polaroid {
    width: 185px;
    height: 245px;
    right: 20px;
  }
  .hero-collage .scribble b {
    left: 94%;
  }
}

/* ==========================================================
   GOOGLE DRIVE VIDEO MODAL
   ========================================================== */

.video-modal-shell {
  width: min(430px, calc(100vw - 40px));
  height: auto;
  max-height: calc(100dvh - 40px);
}

.video-modal iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;

  border: 0;
  border-radius: 12px;

  background: #000;
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.video-modal-meta {
  width: 100%;
  margin-top: 10px;
}

/* Móvil */
@media (max-width: 600px) {

  .video-modal-shell {
    width: min(
      calc(100vw - 24px),
      calc((100dvh - 100px) * 9 / 16)
    );
  }

  .video-modal iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
  }
}

/* DRIVE AUTOPLAY PREVIEWS */

.drive-preview {
  position: relative;
  overflow: hidden;
  background: #000;
}

.drive-preview iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
  pointer-events: none;

  object-fit: cover;
}

.preview-click-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.drive-preview .preview-hint,
.drive-preview .duration {
  z-index: 3;
  pointer-events: none;
}

/* Cuatro colaboraciones alineadas */
.collabs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.collabs-card {
  min-width: 0;
  width: 100%;
}

/* Mismo tamaño para todas las imágenes y vídeos */
/* Las cuatro colaboraciones tienen la misma proporción */
.collabs-card .thumb,
.collabs-reel-video {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  overflow: hidden;
  border-radius: 7px;
}

/* Reproductor de Google Drive */
..collabs-reel-video {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
}

.champions-poster,
.champions-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.champions-poster {
  object-fit: cover;
}

.champions-iframe {
  border: 0;
  
}

.champions-play,
.champions-stop {
  position: absolute;
  z-index: 5;
  cursor: pointer;
  color: white;
  background: rgba(0,0,0,.55);
  border: 0;
  border-radius: 50%;
}

.champions-play {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
}

.champions-stop {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
}

.champions-play[hidden],
.champions-stop[hidden] {
  display: none;
}

/* Adaptación a móviles */
@media (max-width: 700px) {
  .collabs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
}

/* Mantener el Reel dentro de su tarjeta */
.collabs-grid .collabs-reel-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  
}

/* Contenedor del vídeo */
.collabs-grid .collabs-reel-card .collabs-reel-video {
  position: relative !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* Portada y reproductor dentro del contenedor */
.collabs-grid .collabs-reel-card .champions-poster,
.collabs-grid .collabs-reel-card .champions-iframe {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  border: 0;
  
}

/* Botones dentro de la tarjeta */
.collabs-grid .collabs-reel-card .champions-play,
.collabs-grid .collabs-reel-card .champions-stop {
  position: absolute !important;
  z-index: 5;
}

/* Respetar el atributo hidden */
.collabs-grid .collabs-reel-card button[hidden] {
  display: none !important;
}

/* Reproductores embebidos de los 7 trabajos */

.work-card .work-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  
}

.work-card .work-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-card .work-play[hidden],
.work-card .work-stop[hidden] {
  display: none !important;
}

.work-card .work-player.is-playing .preview-hint {
  display: none;
}

/* Mantener visible nuestro botón redondo */
.work-card .work-play {
  display: grid !important;
}

/* Portada de los vídeos */
.work-card .work-player {
  position: relative;
  overflow: hidden;
}

.work-card .work-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* Ocultar la portada al reproducir */
.work-card .work-player.is-playing .work-poster {
  display: none;
}

/* Mostrar Google Drive solo durante reproducción */
.work-card .work-iframe {
  visibility: hidden;
}

.work-card .work-player.is-playing .work-iframe {
  visibility: visible;
}

/* Botón redondo encima de la portada */
.work-card .work-play {
  z-index: 5;
}

/* 1. Centrar el botón redondo de Play */
.work-card .work-player .work-play {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 0 !important;
  line-height: 1 !important;
  z-index: 5;
}

/* Dibujar el triángulo centrado */
.work-card .work-player .work-play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;

  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;

  transform: translateX(2px);
}

/* Respetar el estado oculto del botón */
.work-card .work-player .work-play[hidden] {
  display: none !important;
}

/* 2. Centrar el vídeo dentro de la tarjeta */
.work-card .work-player .work-iframe {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;

  width: 100% !important;
  height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  border: 0 !important;
  object-fit: contain;
}

/* Centrar visualmente el reproductor de Google Drive */
/* Desplazar el reproductor hacia la izquierda */
.work-card .work-player .work-iframe {
  position: absolute !important;
  top: 0 !important;
  left: -25% !important;

  width: 135% !important;
  height: 100% !important;

  transform: none !important;
  margin: 0 !important;
  border: 0 !important;
}

.work-card .work-player {
  overflow: hidden !important;
}


/* YouTube únicamente para Soundcore */
.work-card[data-index="0"] .work-player {
  position: relative;
  overflow: hidden;
}

.work-card[data-index="0"] .soundcore-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden;
}

.work-card[data-index="0"] .work-player.is-playing .soundcore-youtube {
  visibility: visible;
}

.work-card[data-index="0"] .work-player.is-playing::before {
  display: none !important;
}

.work-card[data-index="0"] .work-player .work-play[hidden],
.work-card[data-index="0"] .work-player .work-stop[hidden] {
  display: none !important;
}


/* Soundcore: YouTube sin alterar las dimensiones originales */

.work-card[data-index="0"] .work-player {
  position: relative;
  overflow: hidden;
}

.work-card[data-index="0"] .soundcore-youtube {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  visibility: hidden;
}

.work-card[data-index="0"] .is-playing .soundcore-youtube {
  visibility: visible;
}

.work-card[data-index="0"] .soundcore-click-layer {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}

.work-card[data-index="0"] .is-playing .soundcore-click-layer {
  display: block;
}

.work-card[data-index="0"] .work-play {
  z-index: 5 !important;
}

.work-card[data-index="0"] .work-stop {
  z-index: 6 !important;
}

.work-card[data-index="0"] .work-play[hidden],
.work-card[data-index="0"] .work-stop[hidden] {
  display: none !important;
}

/* Mantener el texto sobre la fotografía de Sobre mí */
.about-photo {
  position: relative;
}

.about-photo .photo-scribble {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
}

/* Champions Burger: conservar la portada hasta pulsar Play */

#championsPlayer {
  position: relative;
  overflow: hidden;
}

#championsPlayer .champions-iframe {
  z-index: 2;
}

#championsPlay,
#championsStop {
  z-index: 5;
}

/* The Champions Burger: portada y vídeo */

#championsPlayer {
  position: relative;
  overflow: hidden;
}

/* El reproductor ocupa toda la tarjeta */
#championsPlayer .champions-iframe {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
}

/* Al reproducir, el vídeo queda por encima de la portada */
#championsPlayer:has(#championsStop:not([hidden])) .champions-iframe {
  visibility: visible !important;
}

/* Al detener, vuelve a mostrarse la portada */
#championsPlayer:has(#championsStop[hidden]) .champions-iframe {
  visibility: hidden !important;
}

/* Los controles quedan accesibles */
#championsPlay,
#championsStop {
  position: relative;
  z-index: 11 !important;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Enlaces de redes sociales: conservar el diseño original */
.social a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social a:hover {
  opacity: 0.6;
}

@media (min-width: 901px) and (max-width: 1240px) {
  .hero-collage {
    z-index: 2;
  }

  .hero-collage .mini-note {
    z-index: 5;
  }
}

/* Mostrar la Polaroid de Madrid en pantallas pequeñas */
@media (max-width: 1050px) {
  .madrid-polaroid {
    display: block;
    width: 130px;
    max-width: 100%;
    justify-self: center;
  }
}

/* Adaptar la Polaroid a móviles */
@media (max-width: 760px) {
  .madrid-polaroid {
    width: 150px;
    margin: 12px auto 0;
  }

  .madrid-polaroid > div {
    height: 155px;
  }
}
/* By Gema: two curated work galleries, preserving existing editorial cards. */
.portfolio-group-heading{margin:8px 0 18px;display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.portfolio-group-heading h3{font:normal 24px/1.2 var(--serif);margin:0}
.portfolio-group-heading p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}
.portfolio-product-heading{margin-top:42px}
.product-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;max-width:750px}
.product-thumb{position:relative}
.product-thumb .work-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.product-thumb .product-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:52px;height:52px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:white;cursor:pointer;z-index:3}
.product-thumb .product-play[hidden]{display:none}
.product-thumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:4}
.product-thumb.poster-missing{background:linear-gradient(145deg,#dedbd2,#b9b6ad)}
@media(min-width:1241px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}.product-grid .work-card{width:auto !important}}
@media(min-width:761px) and (max-width:1240px){.product-grid{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;overflow:visible}.product-grid .work-card{width:auto !important;min-width:0 !important;max-width:none !important;flex:initial !important}}
@media(max-width:760px){.portfolio-group-heading{padding-inline:20px}.portfolio-product-heading{margin-top:32px}.product-grid{max-width:none;display:flex !important;grid-template-columns:none !important;overflow-x:auto}}
@media(max-width:380px){.portfolio-group-heading{padding-inline:16px}}

/* YouTube Shorts: same embedded player and controls for all three product cards. */
.product-card .soundcore-youtube{position:absolute;inset:0;width:100%;height:100%;border:0;visibility:hidden}
.product-card .work-player.is-playing .soundcore-youtube{visibility:visible}
.product-card .soundcore-click-layer{display:none;position:absolute;inset:0;z-index:3;cursor:pointer}
.product-card .work-player.is-playing .soundcore-click-layer{display:block}
.product-card .work-player.is-playing .work-poster{display:none}
.product-card .work-play[hidden],.product-card .work-stop[hidden]{display:none !important}
.product-card .work-play{z-index:5 !important}.product-card .work-stop{z-index:6 !important}

/* V5.6 — Product gallery: full, readable cards without clipping */
#productGrid.product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  max-width: none !important;
  width: 100%;
  gap: clamp(12px, 1.3vw, 22px);
  overflow: visible !important;
  padding: 0 !important;
}
#productGrid .work-card,
#productGrid .work-card:nth-child(n) {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: initial !important;
}
#productGrid .work-card .thumb { width: 100%; aspect-ratio: 9 / 16; }
#productGrid .work-card h3 { font-size: clamp(13px, 1.05vw, 17px); line-height: 1.3; }
#productGrid .work-card p { font-size: 11px; line-height: 1.4; }
@media (max-width: 1100px) {
  #productGrid.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  #productGrid.product-grid { padding: 0 20px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 430px) {
  #productGrid.product-grid { padding: 0 16px !important; gap: 12px; }
  #productGrid .work-card h3 { font-size: 14px; }
  #productGrid .work-card p { font-size: 10px; }
}
