:root {
  --red: #a80000;
  --grena: #6f0000;
  --black: #280000;
  --ink: #1a1a1a;
  --white: #fff;
  --soft: #f0dcd8;
  --gutter: clamp(1rem, 5vw, 5rem);
  --head: "Poppins", Arial, sans-serif;
  --body: "Roboto", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 10vw, 7.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 30; background: var(--white); color: var(--ink); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { margin: 0 0 1rem; font-weight: 700; font-style: italic; color: var(--soft); }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem var(--gutter); background: var(--black); }
.brand img { width: 52px; height: auto; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--white); }
.wide { display: none; gap: 2rem; }
.menu summary { min-height: 44px; display: flex; align-items: center; padding: 0 1rem; border: 1px solid var(--soft); cursor: pointer; font-weight: 700; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; background: var(--black); padding: .5rem var(--gutter) 1.25rem; }
.menu nav a { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }

.hero { --fade: calc(clamp(2rem, 5vw, 4rem) + 2rem); background: linear-gradient(to bottom, var(--black) 0, #4a0000 calc(var(--fade) * .3), #860000 calc(var(--fade) * .7), var(--red) var(--fade)); color: var(--white); }
.hero .btn { background: var(--white); color: var(--red); }
.hero .btn:hover { background: var(--soft); }
.hero-copy { position: relative; padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero-copy > :not(.hero-tex) { position: relative; z-index: 1; }
.hero-tex { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hero-tex.is-live { opacity: 1; }
.hero .eyebrow { margin: 0; color: var(--white); }
.hero-img { width: 100%; height: clamp(16rem, 46vw, 40rem); object-fit: cover; object-position: center 40%; }
.gel-title { position: relative; display: flex; align-items: center; aspect-ratio: 1 / 1.05; margin: .5rem calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); color: var(--white); font-size: clamp(4rem, 21vw, 7.5rem); line-height: .98; }
.gel-title canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.gel-title.is-live canvas { opacity: 1; }
.gel-title.is-live span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 700px) { .gel-title { aspect-ratio: 1 / .3; font-size: clamp(4rem, 11vw, 10rem); } }
.lead { margin: 1.25rem 0 0; max-width: 38rem; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.45; }
.btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 2rem; padding: .75rem 1.75rem; background: var(--red); color: var(--white); font-weight: 700; text-decoration: none; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: background .2s; }
.btn:hover { background: var(--grena); }

.band { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.split { display: grid; gap: 2rem; }
.prose { max-width: 42rem; }
.prose p:first-child { margin-top: 0; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.75rem; }
.prose li { margin-bottom: .4rem; }

.results { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); background: var(--red); background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.stats { display: grid; gap: 2rem; }
.stat strong { display: block; font: 800 clamp(2.8rem, 5.4vw, 5.2rem)/1 var(--head); letter-spacing: -.02em; }
.stat span { display: block; margin-top: .7rem; max-width: 20rem; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.35; }

.works { display: grid; gap: 1px; margin-top: 3rem; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .2); }
.work { display: flex; flex-direction: column; gap: .6rem; min-height: 15rem; padding: 1.5rem; background: var(--ink); text-decoration: none; transition: background .2s; }
.work:hover { background: var(--grena); }
.work p { margin: 0; color: var(--soft); line-height: 1.45; }
.num { font-weight: 700; font-style: italic; color: var(--soft); }
.go { margin-top: auto; padding-top: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gallery figure { margin: 0; overflow: hidden; background: var(--black); aspect-ratio: 4 / 3; }
.gallery .g1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

#parteneri { background: var(--white); color: var(--ink); }
#parteneri .eyebrow { color: var(--red); }
.partners { display: grid; gap: 1px; margin-top: 3rem; background: #d9d0ce; border: 1px solid #d9d0ce; }
.partner { display: flex; align-items: center; justify-content: center; min-height: 7.5rem; padding: 1rem; background: var(--white); font: 700 1.25rem/1.2 var(--head); text-align: center; text-decoration: none; transition: background .2s, color .2s; }
.partner:hover { background: var(--red); color: var(--white); }

.contact { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); background: var(--grena); }
.people { display: grid; gap: 2.5rem; margin-top: 3rem; }
.person a { display: block; padding: .3rem 0; overflow-wrap: anywhere; }
.role { margin: .25rem 0 .75rem; font-weight: 700; font-style: italic; color: var(--soft); }

.sub { padding: clamp(3rem, 8vw, 6rem) var(--gutter); background: var(--black); background-image: linear-gradient(115deg, transparent 68%, var(--red) 68%, var(--red) 82%, var(--grena) 82%); }
.sub h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); max-width: 15ch; }
.back { display: inline-block; margin-bottom: 2.5rem; padding: .5rem 0; font-weight: 500; }
.detail { display: grid; gap: 3rem; }
.facts { margin: 0; align-self: start; border-top: 4px solid var(--red); }
.facts div { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.facts dt { font-weight: 700; font-style: italic; color: var(--soft); }
.facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.todo { display: inline-block; padding: .05rem .5rem; background: var(--soft); color: var(--black); font-size: .9375rem; font-weight: 500; }
.pager { display: grid; gap: 1px; background: rgba(255, 255, 255, .2); border-top: 1px solid rgba(255, 255, 255, .2); }
.pager a { padding: 1.5rem var(--gutter); background: var(--ink); font: 700 1.125rem/1.25 var(--head); text-decoration: none; }
.pager a:hover { background: var(--grena); }
.pager span { display: block; margin-bottom: .25rem; font: 700 italic .9375rem/1.4 var(--body); color: var(--soft); }

.foot { padding: 3rem var(--gutter); background: var(--black); font-size: .9375rem; }
.foot-logos { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.foot-logos img { height: 72px; width: auto; }
.foot p { margin: .25rem 0; }
.draft { color: var(--soft); }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .work:last-child { grid-column: span 2; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, minmax(0, 24rem)); }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a:last-child { text-align: right; }
}
@media (min-width: 960px) {
  .menu { display: none; }
  .wide { display: flex; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .works { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 5rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .g1 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Focus lens on the 2026 results (set up by hero-title.js). */
.results { overflow: hidden; }
.stats-lens { --x: 0px; --y: 0px; --rx: clamp(150px, 14vw, 210px); --ry: clamp(100px, 8vw, 130px); position: relative; }
.stats-base { filter: blur(5px); opacity: .85; }
.stats-sharp { position: absolute; inset: 0; -webkit-mask: radial-gradient(var(--rx) var(--ry) at var(--x) var(--y), #000 72%, transparent 100%); mask: radial-gradient(var(--rx) var(--ry) at var(--x) var(--y), #000 72%, transparent 100%); pointer-events: none; }

/* Bigger edition line and subtitle in the hero. */
.hero .eyebrow { font-size: clamp(1.15rem, 2vw, 1.6rem); }
.hero .lead { max-width: 48rem; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35; }

/* Results lens: once it reaches the last number, the blur fades and every number shows. */
.stats-base, .stats-sharp { transition: filter .9s ease, opacity .9s ease; }
.stats-done .stats-base { filter: none; opacity: 1; }
.stats-done .stats-sharp { opacity: 0; }

/* Bigger logo and menu, sitting a little lower. */
html { scroll-padding-top: 6.5rem; }
.top { padding: 1.1rem var(--gutter) .9rem; }
.brand img { width: 66px; }
.top nav a { font-size: 1.125rem; }
@media (min-width: 960px) { .wide { gap: 2.5rem; } }

/* Menu bigger and lower; bigger hero subtitle; pill-shaped hero button. */
.top { padding: 1.6rem var(--gutter) 1.1rem; }
.top nav a { font-size: 1.3rem; }
.hero .lead { max-width: 56rem; font-size: clamp(1.55rem, 3.1vw, 2.5rem); line-height: 1.3; }
.hero .btn { clip-path: none; border-radius: 999px; padding: .95rem 2.1rem; gap: .6rem; }
.hero .btn::after { content: "→"; transition: transform .2s; }
.hero .btn:hover::after { transform: translateX(4px); }

/* Hero photo: soft top edge blending into the red, slides up on scroll. */
.hero { overflow: hidden; }
.hero-img { display: block; width: calc(100% - 2 * var(--gutter)); margin: 0 var(--gutter) clamp(2.5rem, 6vw, 5rem); border-radius: clamp(16px, 2vw, 28px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: center; }
.reveal-ready .hero-img { opacity: 0; transform: translateY(70px); transition: opacity 1.6s cubic-bezier(.33, 0, .2, 1), transform 2.2s cubic-bezier(.22, .61, .36, 1); will-change: transform, opacity; }
.reveal-ready .hero-img.is-in { opacity: 1; transform: none; }

/* Subtitle sits right under the title so it shows on first load. */
.hero-copy { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
@media (min-width: 700px) {
  .gel-title { aspect-ratio: 1 / .28; }
  .hero .lead { margin-top: calc(-1 * clamp(2rem, 5vw, 5.5rem)); }
}
.reveal-ready .hero-img.tilt-ready { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.hero-img.tilt-ready:hover { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .12); }

/* Despre: two text cards crossed by a soft diagonal shadow (top-left to bottom-right). */
#despre .split { position: relative; isolation: isolate; gap: clamp(1rem, 2.5vw, 2rem); }
#despre .split > div { background: linear-gradient(160deg, #2c2c2c, #222); border: 1px solid rgba(255, 255, 255, .07); border-radius: clamp(16px, 2vw, 26px); padding: clamp(1.5rem, 3.5vw, 3rem); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8); }
#despre .split > div > * { position: relative; z-index: 2; }
#despre .split .prose { max-width: none; }
#despre .split::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: clamp(16px, 2vw, 26px); background: linear-gradient(135deg, transparent 28%, rgba(0, 0, 0, .5) 47%, rgba(0, 0, 0, .5) 53%, transparent 72%); }

/* Workshops: floating cards with a liquid-chrome texture. */
:root { --liquid: url("/assets/img/liquid.jpg"); }
.works { gap: clamp(1rem, 2vw, 1.5rem); background: none; border: 0; }
.work { --tone: #8a0010; --tone2: #ff2d39; position: relative; overflow: hidden; min-height: 16rem; padding: 1.75rem; border-radius: clamp(16px, 1.8vw, 24px); border: 1px solid rgba(255, 255, 255, .22); background: linear-gradient(150deg, var(--tone2), var(--tone)), var(--liquid); background-size: cover, 200% auto; background-position: center, 20% 30%; background-blend-mode: multiply, normal; box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, background-position 1.2s ease; animation: work-float 7s ease-in-out infinite; }
.work:nth-child(3n+2) { --tone: #4a0008; --tone2: #c4121f; background-position: center, 70% 10%; animation-delay: -2.3s; }
.work:nth-child(3n) { --tone: #3a0006; --tone2: #ff3b45; background: radial-gradient(120% 95% at 85% 15%, var(--tone2), #b0101c 45%, var(--tone) 100%), var(--liquid); background-size: cover, 200% auto; background-position: center, 95% 80%; background-blend-mode: multiply, normal; animation-delay: -4.6s; }
.work:hover { background-position: center, 55% 55%; transform: translateY(-6px) scale(1.015); box-shadow: 0 36px 70px -26px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.work h3 { font-size: 1.55rem; letter-spacing: -.01em; }
.work p { color: rgba(255, 255, 255, .92); }
.work .num { font: 800 2.4rem/1 var(--head); font-style: normal; color: rgba(255, 255, 255, .9); }
.work .go { display: inline-flex; align-self: flex-start; padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--black); text-decoration: none; text-shadow: none; }
.work h3, .work p, .work .num { position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 16px rgba(0, 0, 0, .35); }
@keyframes work-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Gallery photos slide in on scroll. */
.reveal-ready .gallery figure { opacity: 0; transform: translateY(70px); transition: opacity 1.2s cubic-bezier(.33, 0, .2, 1), transform 1.6s cubic-bezier(.22, .61, .36, 1); }
.reveal-ready .gallery figure.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .work { animation: none; } }

/* Despre: eye picture as a translucent background; cards turn glassy so text stays readable. */
#despre { position: relative; overflow: hidden; isolation: isolate; }
#despre::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/eye-echo.jpg") 55% 50% / cover no-repeat; opacity: .55; }
#despre::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(26, 26, 26, .45), rgba(26, 26, 26, .1) 55%, rgba(26, 26, 26, .4)); }
#despre .split > div { position: relative; z-index: 1; color: #fff; background: rgba(24, 24, 24, .34); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#despre .split > div > * { text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 2px 18px rgba(0, 0, 0, .55); }
.reveal-ready .reveal { opacity: 0; transform: translateY(60px); transition: opacity 1.2s cubic-bezier(.33, 0, .2, 1), transform 1.6s cubic-bezier(.22, .61, .36, 1); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* Gallery title: one line, the chrome ring replaces the O in MOMENTS and the 0 in 2026. */
.gal-head { position: relative; overflow: hidden; display: grid; place-items: center; padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(1.25rem, 2.5vw, 2rem); background: var(--ink); }
.ring-title { position: relative; z-index: 1; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1em .55em; text-align: center; font: 400 clamp(1.8rem, 4.1vw, 4.8rem)/1 Michroma, var(--head); letter-spacing: .02em; text-transform: uppercase; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.ring-title > span { display: inline-flex; align-items: center; white-space: nowrap; }
.ring-title > span:nth-child(2) { font-size: .42em; letter-spacing: .22em; }
.ring-title > span:nth-child(3) { color: #ff2d39; }
.ring-o { display: inline-block; width: 1.12em; height: 1.12em; margin: 0 .02em; background: url("/assets/ring.png") center / contain no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); animation: ring-spin 30s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.gal-side { position: absolute; z-index: 3; top: 50%; font: 800 clamp(.85rem, 1.2vw, 1.15rem)/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: #fff; white-space: nowrap; writing-mode: vertical-rl; }
.gal-side-l { left: max(.5rem, calc(var(--gutter) * .35)); transform: translateY(-50%) rotate(180deg); }
.gal-side-r { right: max(.5rem, calc(var(--gutter) * .35)); transform: translateY(-50%); }
@keyframes orb-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.gallery { gap: clamp(8px, 1vw, 14px); padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem); background: var(--ink); }
.gallery figure { border-radius: clamp(12px, 1.6vw, 22px); }

/* Team. */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.75rem); margin-top: 3rem; }
.member { margin: 0; }
.member-photo { overflow: hidden; border-radius: clamp(14px, 1.8vw, 24px); aspect-ratio: 4 / 5; background: #222; box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .9); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.member:hover .member-photo img { transform: scale(1.05); }
.member figcaption { display: grid; gap: .2rem; padding: .9rem .2rem 0; }
.member strong { font: 800 1.15rem/1.2 var(--head); }
.member span { font-style: italic; font-weight: 700; color: var(--soft); }
@media (min-width: 960px) { .team { grid-template-columns: repeat(4, 1fr); } }

.team-group { margin: 3rem 0 0; font: 700 italic 1rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.team-group + .team { margin-top: 1.25rem; }
.member-initial { display: grid; place-items: center; width: 100%; height: 100%; font: 800 clamp(4rem, 9vw, 7rem)/1 var(--head); color: rgba(255, 255, 255, .92); background: radial-gradient(120% 90% at 30% 20%, #ff3b45, #a80000 50%, #3a0006); }
#despre .prose p { color: #fff; }
#despre .eyebrow { color: #fff; }

/* Bigger Despre paragraphs. */
#despre .prose p { font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.6; }

/* Despre slides up over the hero, with rounded top corners. */
#despre { background: var(--ink); z-index: 2; }
.reveal-ready #despre.rise { transform: translateY(140px); transition: transform 1.5s cubic-bezier(.22, .61, .36, 1); }
.reveal-ready #despre.rise.is-in { transform: none; }

/* Soft fade from Despre into the red numbers. */
#despre::before { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.results { position: relative; background-image: linear-gradient(to bottom, #1a1a1a 0, rgba(26, 26, 26, .55) 60px, rgba(168, 0, 0, 0) 170px), radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px); background-size: 100% 170px, 22px 22px; background-repeat: no-repeat, repeat; }


/* Partners: floating cards. */
.partners { gap: clamp(1rem, 2vw, 1.5rem); background: none; border: 0; }
.partner { min-height: 9rem; border-radius: clamp(16px, 1.8vw, 24px); border: 1px solid #eee3e1; background: linear-gradient(160deg, #fff, #f6eeec); font-size: clamp(1.2rem, 1.6vw, 1.5rem); box-shadow: 0 22px 44px -26px rgba(80, 0, 0, .45); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, background .3s, color .3s; animation: work-float 7s ease-in-out infinite; }
.partner:nth-child(3n+2) { animation-delay: -2.3s; }
.partner:nth-child(3n) { animation-delay: -4.6s; }
.partner:hover { background: linear-gradient(150deg, #ff2d39, #8a0010); color: #fff; transform: translateY(-6px) scale(1.02); box-shadow: 0 32px 60px -26px rgba(120, 0, 0, .7); }

@media (max-width: 699px) { .gal-side { display: none; } }
@media (prefers-reduced-motion: reduce) { .partner, .ring-o { animation: none; } }
#program { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 960px) { .ring-title { flex-wrap: nowrap; } }
.gal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: clamp(1rem, 2vw, 1.5rem); }
.gal-side { position: static; transform: none !important; writing-mode: horizontal-tb; font-size: clamp(.8rem, 1vw, 1rem); }
.ring-title { order: 1; flex-basis: 100%; }

/* Gallery title centred on one row between the edition and the location. */
.gal-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: clamp(1rem, 2vw, 2rem); }
.gal-side-l { order: 0; }
.ring-title { order: 1; font-size: clamp(1.6rem, 3.3vw, 4.2rem); }
.gal-side-r { order: 2; text-align: right; }
@media (max-width: 959px) { .gal-head { grid-template-columns: 1fr 1fr; row-gap: 1rem; } .ring-title { grid-column: 1 / -1; order: 2; } .gal-side-r { order: 1; } }

/* Team: bold heading with a one-time wave, translucent glass texture behind the photos. */
#echipa { position: relative; isolation: isolate; overflow: hidden; }
.team-title { font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1; letter-spacing: -.03em; }
.team-title em { font-style: normal; color: #ff2d39; }
.wave-title .w { display: inline-block; white-space: nowrap; }
.wave-title .ch { display: inline-block; }
.wave-wait .ch { opacity: 0; transform: translateY(.6em); }
.wave-go .ch { animation: ch-wave .9s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes ch-wave { 0% { opacity: 0; transform: translateY(.6em); } 45% { opacity: 1; transform: translateY(-.22em); } 70% { transform: translateY(.06em); } 100% { opacity: 1; transform: none; } }
.member-photo { border: 1px solid rgba(255, 255, 255, .14); }

/* Gallery: breathing room between the title row and the photos. */
.gal-head { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Team subtitle. */
.team-sub { margin: 1.25rem 0 0; max-width: 46rem; font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.45; color: rgba(255, 255, 255, .88); }

/* Partners: translucent glass texture behind the cards. */
#parteneri { position: relative; isolation: isolate; overflow: hidden; }
#parteneri::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/glass.jpg") 0 0 / 1800px auto repeat; opacity: .35; }
#parteneri::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 50% 45%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }

/* Footer: liquid-metal texture with a dark tint so the white logos stay readable. */
.foot { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); background: linear-gradient(100deg, rgba(20, 0, 2, .5), rgba(20, 0, 2, 0) 50%), linear-gradient(120deg, #d01020, #8a0010 50%, #4a0008); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.foot .draft { color: rgba(255, 255, 255, .85); }
.foot-logos img { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55)); }

/* Previous / next links: big floating pill buttons. */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: clamp(2rem, 4vw, 3rem) var(--gutter); background: var(--ink); border: 0; }
.pager a { flex: 1 1 18rem; max-width: 34rem; display: flex; flex-direction: column; justify-content: center; min-height: 6.5rem; padding: 1.4rem 2.2rem; border-radius: 999px; background: linear-gradient(150deg, #ff2d39, #8a0010); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font: 800 clamp(1.25rem, 2vw, 1.7rem)/1.2 var(--head); text-decoration: none; box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .3); animation: work-float 6s ease-in-out infinite; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.pager a:last-child { animation-delay: -3s; align-items: flex-end; text-align: right; margin-left: auto; }
.pager a:hover { background: linear-gradient(150deg, #ff2d39, #8a0010); transform: translateY(-6px) scale(1.03); box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .95); }
.pager a span { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.pager a:first-child span::before { content: "← "; }
.pager a:last-child span::after { content: " →"; }
@media (prefers-reduced-motion: reduce) { .pager a { animation: none; } }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/footer.jpg") 0 50% / auto 140% repeat-x; opacity: .38; mix-blend-mode: overlay; animation: foot-flow 60s linear infinite; }
@keyframes foot-flow { to { background-position-x: -3600px; } }
@media (prefers-reduced-motion: reduce) { .foot::before { animation: none; } }


/* Header: MSS + organiser logos (AMA, Facultatea de Marketing, ASE). */
.brands { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.org { display: none; }
.org img { display: block; height: 34px; width: auto; transition: transform .3s; }
.org:hover img { transform: scale(1.06); }
@media (min-width: 600px) { .org { display: block; } }
@media (min-width: 960px) and (max-width: 1279px) { .wide { gap: 1.4rem; } .top nav a { font-size: 1.1rem; } .org img { height: 30px; } }
@media (min-width: 1280px) { .org img { height: 44px; } }

/* Hero: no visible seam where the textured red meets the photo area. */
.hero-tex { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }

/* Results: centred, bigger title. */
.results { text-align: center; padding-top: clamp(5rem, 9vw, 7.5rem); }
.results-title { margin: 0 0 clamp(2rem, 4vw, 3.5rem); font: 800 clamp(2.2rem, 5vw, 4rem)/1.1 var(--head); color: #fff; }
.stats { justify-items: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat span { max-width: 17rem; margin-inline: auto; }

/* Program: 2026 program and 2025 edition groups. */
#program .team-group { margin-top: 3.5rem; color: #fff; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.4; }
#program .team-group + .works { margin-top: 1.5rem; }

/* Partners: name only; on hover the card grows and shows what the partner did. */
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(4, 1fr); } }
.partner { position: relative; z-index: 0; flex-direction: column; min-height: 11.5rem; padding: 1.25rem 1.4rem; overflow: hidden; }
.partner-name { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.partner-did { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; font: 500 .92rem/1.4 var(--body); opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.partner:hover, .partner:focus-visible { z-index: 3; transform: scale(1.14); animation-play-state: paused; }
.partner:hover .partner-name, .partner:focus-visible .partner-name { transform: translateY(-3rem) scale(.88); }
.partner:hover .partner-did, .partner:focus-visible .partner-did { opacity: 1; transform: none; transition-delay: .08s; }


/* Contact: floating glass bubbles. */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact > :not(.bubbles) { position: relative; z-index: 1; }
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bubbles i { position: absolute; display: block; aspect-ratio: 1; background: url("/assets/bubble-1.png") center / contain no-repeat; animation: bubble-float 9s ease-in-out infinite; }
.bubbles .b1 { right: 5%; top: 6%; width: clamp(170px, 22vw, 340px); }
.bubbles .b2 { right: 29%; top: 50%; width: clamp(90px, 10vw, 160px); background-image: url("/assets/bubble-2.png"); animation-delay: -3s; animation-duration: 11s; }
.bubbles .b3 { right: 2%; bottom: 4%; width: clamp(110px, 12vw, 190px); background-image: url("/assets/bubble-3.png"); animation-delay: -6s; }
.bubbles .b4 { right: 27%; top: 9%; width: clamp(50px, 5vw, 80px); background-image: url("/assets/bubble-3.png"); rotate: 140deg; animation-duration: 7s; }
.bubbles .b5 { left: 40%; top: 14%; width: clamp(55px, 6vw, 95px); background-image: url("/assets/bubble-2.png"); rotate: -60deg; animation-delay: -2s; animation-duration: 8s; }
.bubbles .b6 { left: 44%; bottom: -40px; width: clamp(100px, 11vw, 170px); rotate: 200deg; animation-delay: -5s; animation-duration: 12s; }
@keyframes bubble-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@media (max-width: 699px) { .bubbles i { opacity: .75; } .bubbles .b1 { width: 150px; right: -30px; top: 2%; } .bubbles .b5, .bubbles .b2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .bubbles i { animation: none; } }

/* Footer: official-site text in three columns. */
.foot-grid { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1.4fr 1fr; gap: 3rem; } }
.foot-brand p { max-width: 26rem; font-size: 1.05rem; line-height: 1.5; }
.foot-h { margin: .4rem 0 1rem; font: 600 .85rem/1.2 var(--body); letter-spacing: .24em; text-transform: uppercase; color: #ffc9c9; }
.foot-grid p { margin: .35rem 0; font-size: 1.05rem; }
.foot a { color: #fff; }
.foot-copy { margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .95rem; }

/* Partner cards v2: logo + name; hover grows, name gets bigger, text appears. */
.partner { height: 16.5rem; min-height: 0; justify-content: center; gap: .75rem; padding: 1.4rem 1.3rem; }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 84px; max-width: 100%; padding: 10px 16px; border-radius: 14px; transition: height .45s cubic-bezier(.2, .8, .2, 1), padding .45s; }
.partner-logo img { display: block; max-height: 100%; max-width: 190px; width: auto; height: auto; object-fit: contain; }
.plate-dark { background: #1a1a1a; }
.plate-light { background: #fff; }
.partner-name { font-size: clamp(1.15rem, 1.45vw, 1.35rem); transition: font-size .45s cubic-bezier(.2, .8, .2, 1); }
.partner-did { position: static; max-height: 0; overflow: hidden; opacity: 0; transform: none; font: 500 1.02rem/1.45 var(--body); transition: max-height .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; }
.partner:hover .partner-logo, .partner:focus-visible .partner-logo { height: 54px; padding: 6px 12px; }
.partner:hover .partner-name, .partner:focus-visible .partner-name { transform: none; font-size: clamp(1.45rem, 1.9vw, 1.75rem); }
.partner:hover .partner-did, .partner:focus-visible .partner-did { max-height: 10rem; opacity: 1; transform: none; }


/* 2025 recap on the home page. */
.works-recap .work:last-child { grid-column: auto; }
@media (min-width: 1100px) { .works-recap { grid-template-columns: repeat(4, 1fr); } }
.recap-cta { margin: clamp(2rem, 4vw, 3rem) 0 0; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: .7rem; padding: 1.1rem 2.4rem; border-radius: 999px; background: #fff; color: var(--red); font: 800 clamp(1.1rem, 1.6vw, 1.35rem)/1.2 var(--head); text-decoration: none; box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .9); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.pill::after { content: "→"; transition: transform .3s; }
.pill:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 32px 56px -22px rgba(0, 0, 0, .95); }
.pill:hover::after { transform: translateX(4px); }

/* /editia-2025/ page. */
.sub .lead + .lead { margin-top: .8rem; }
.ed-item { max-width: 54rem; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.ed-list h2 + .ed-item { margin-top: 2rem; }
.ed-item h3 { margin: .3rem 0 1rem; font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.15 var(--head); }
.ed-item p:not(.eyebrow) { font-size: 1.1rem; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.ed-link { display: inline-flex; margin-top: .6rem; padding: .55rem 1.2rem; border-radius: 999px; background: #fff; color: var(--black); font-weight: 700; text-decoration: none; }

/* More bubbles; they move away from the mouse (hero-title.js). */
.bubbles i { will-change: transform; }
.bubbles .b7 { right: 18%; top: 30%; width: clamp(40px, 4vw, 60px); background-image: url("/assets/bubble-1.png"); rotate: 70deg; animation-duration: 8s; }
.bubbles .b8 { right: 40%; bottom: 8%; width: clamp(60px, 6vw, 90px); background-image: url("/assets/bubble-3.png"); animation-delay: -4s; }
.bubbles .b9 { left: 62%; top: 4%; width: clamp(34px, 3.4vw, 50px); background-image: url("/assets/bubble-2.png"); animation-duration: 6.5s; }
.bubbles .b10 { right: 14%; bottom: 30%; width: clamp(70px, 7vw, 110px); background-image: url("/assets/bubble-2.png"); rotate: 110deg; animation-delay: -1s; animation-duration: 10s; }
.bubbles .b11 { left: 30%; top: 4%; width: clamp(30px, 3vw, 45px); rotate: -120deg; animation-duration: 7.5s; }
.bubbles .b12 { left: 2%; bottom: -30px; width: clamp(80px, 8vw, 120px); background-image: url("/assets/bubble-3.png"); rotate: 30deg; animation-delay: -7s; animation-duration: 11s; }
.bubbles .b13 { right: 46%; top: 36%; width: clamp(30px, 3vw, 44px); background-image: url("/assets/bubble-2.png"); animation-delay: -2.5s; }
.bubbles .b14 { left: 56%; top: 60%; width: clamp(45px, 4.5vw, 70px); background-image: url("/assets/bubble-3.png"); rotate: -150deg; animation-duration: 9.5s; }
@media (max-width: 699px) { .bubbles .b7, .bubbles .b9, .bubbles .b11, .bubbles .b13, .bubbles .b14 { display: none; } }

/* 2026 program: even 3-column grid, no wide last card. */
@media (min-width: 960px) { .works-2026 .work:last-child { grid-column: auto; } }

/* 2025 cards: silver-glass look, different from the red 2026 cards. */
.works-2025 .work, .works-2025 .work:nth-child(n) { border-radius: 30px 8px 30px 8px; background: radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #f6f2f1 0%, #ddd6d5 55%, #aaa09f 100%); background-size: cover; background-position: center; background-blend-mode: normal; color: #1a1a1a; border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .85), inset 0 1px 0 #fff, inset 0 -24px 44px -24px rgba(120, 0, 0, .3); }
.works-2025 .work::before { content: ""; position: absolute; inset: 0; background: var(--liquid) 30% 40% / 220% auto; mix-blend-mode: soft-light; opacity: .55; pointer-events: none; border-radius: inherit; }
.works-2025 .work > * { position: relative; z-index: 1; }
.works-2025 .work h3, .works-2025 .work p, .works-2025 .work .num { text-shadow: none; }
.works-2025 .work h3 { color: #140000; }
.works-2025 .work p { color: #3b3232; }
.works-2025 .work .num { color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.works-2025 .work .go { background: var(--red); color: #fff; }
.works-2025 .work:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(168, 0, 0, .55); box-shadow: 0 36px 70px -26px rgba(120, 0, 0, .8), inset 0 1px 0 #fff; }

/* Home: Recap title. */
.recap-head { margin-top: clamp(3.5rem, 6vw, 5rem); }
.recap-title { margin: 0; font: 800 clamp(2.4rem, 5vw, 4rem)/1 var(--head); color: #fff; }
.recap-sub { margin: .6rem 0 0; font: 700 italic clamp(1rem, 1.4vw, 1.2rem)/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.recap-head + .works { margin-top: 1.75rem; }

/* 2025 page header: moving diagonal bands, light sweep, scrolling outlined text. */
.sub-2025 { position: relative; isolation: isolate; overflow: hidden; background: var(--black); background-image: none; }
.sub-2025::before, .sub-2025::after { content: ""; position: absolute; top: -10%; bottom: -10%; z-index: -1; transform: skewX(-24deg); }
.sub-2025::before { right: 8%; width: 20%; background: linear-gradient(100deg, var(--red) 35%, #ff4a52 50%, var(--red) 65%); background-size: 300% 100%; animation: band-sway 9s ease-in-out infinite alternate, band-shine 6s linear infinite; }
.sub-2025::after { right: -14%; width: 22%; background: linear-gradient(100deg, var(--grena) 35%, #a3121c 50%, var(--grena) 65%); background-size: 300% 100%; animation: band-sway 12s ease-in-out -4s infinite alternate-reverse, band-shine 8s linear -2s infinite; }
@keyframes band-sway { from { translate: -4vw 0; } to { translate: 4vw 0; } }
@keyframes band-shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.sub-2025 > :not(.sub-marquee) { position: relative; z-index: 1; }
.sub-2025 .lead { max-width: 40rem; }
.sub-marquee { position: absolute; left: 0; bottom: -.18em; z-index: 0; display: flex; width: max-content; white-space: nowrap; pointer-events: none; font: 400 clamp(5rem, 13vw, 11rem)/1 Anton, Impact, sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16); animation: sub-marquee 40s linear infinite; }
.sub-marquee span { padding-right: .3em; }
@keyframes sub-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sub-2025::before, .sub-2025::after, .sub-marquee { animation: none; } }

/* 2025 page: card expands over the grid on hover. */
.ed-grid { position: relative; }
.ed-tpl { display: none; }
.ed-pop { position: absolute; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; border-radius: 28px; background: linear-gradient(160deg, #f6f2f1 0%, #e4dddc 60%, #c8bfbe 100%); color: #1a1a1a; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95); opacity: 0; visibility: hidden; transition: clip-path .6s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, visibility 0s linear .6s; }
.ed-pop.is-open { opacity: 1; visibility: visible; transition: clip-path .6s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.pop-photo { position: relative; min-height: 0; }
.pop-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pop-body { display: flex; flex-direction: column; gap: .4rem; overflow-y: auto; padding: clamp(1.75rem, 3vw, 3rem); }
.pop-body .eyebrow { margin: 0; color: var(--red); }
.pop-body h3 { margin: .2rem 0 .6rem; font: 800 clamp(1.6rem, 2.6vw, 2.4rem)/1.12 var(--head); color: #140000; }
.pop-text p { margin: 0 0 .9rem; font-size: 1.08rem; line-height: 1.6; color: #2c2424; }
.pop-body .pill { align-self: flex-start; margin-top: .4rem; background: var(--red); color: #fff; }
.ed-pop.is-open .pop-body > * { animation: pop-in .5s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes pop-in { from { opacity: 0; translate: 0 14px; } }

/* 2025 page header: only the title, centred, AI-in-marketing look. */
.sub-2025 { display: grid; place-items: center; min-height: clamp(22rem, 58vh, 36rem); text-align: center; }
.sub-2025 .back { position: absolute; top: clamp(1.25rem, 3vw, 2rem); left: var(--gutter); }
.ai-title { position: relative; margin: 0; max-width: none; font: 400 clamp(2.3rem, 7.4vw, 7rem)/1.05 Michroma, sans-serif; letter-spacing: .04em; color: #fff; -webkit-text-stroke: .045em #fff; text-shadow: 0 0 28px rgba(255, 60, 70, .55), 0 0 2px #fff; }
.ai-type span { opacity: 0; animation: ai-key .01s steps(1) forwards; }
@keyframes ai-key { to { opacity: 1; } }
.ai-cursor { display: inline-block; width: .5em; height: .09em; margin-left: .08em; vertical-align: baseline; background: #ff2d39; box-shadow: 0 0 14px #ff2d39; animation: ai-blink 1s steps(1) infinite; }
@keyframes ai-blink { 50% { opacity: 0; } }
.ai-title::before, .ai-title::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-stroke: .045em currentColor; text-shadow: none; pointer-events: none; opacity: 0; animation: ai-glitch 5s steps(1) 2s infinite; }
.ai-title::before { color: #ff2d39; translate: -.04em 0; }
.ai-title::after { color: #3ad8ff; translate: .04em 0; animation-delay: 2.06s; }
@keyframes ai-glitch {
  0%, 86%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
  87% { opacity: .85; clip-path: inset(12% 0 62% 0); }
  89% { opacity: .85; clip-path: inset(58% 0 18% 0); }
  91% { opacity: .85; clip-path: inset(30% 0 44% 0); }
  93% { opacity: 0; }
}
.ai-scan { position: absolute; left: -4%; right: -4%; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #ff4a52 20%, #fff 50%, #ff4a52 80%, transparent); box-shadow: 0 0 18px #ff2d39; opacity: .8; animation: ai-scan 3.6s ease-in-out 1.6s infinite; pointer-events: none; }
@keyframes ai-scan { 0% { top: -6%; opacity: 0; } 10% { opacity: .85; } 90% { opacity: .85; } 100% { top: 104%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ai-type span { opacity: 1; animation: none; } .ai-title::before, .ai-title::after, .ai-scan, .ai-cursor { animation: none; } .ai-scan { display: none; } }

/* 2025 cards: content only in the card, centred expanded text. */
.ed-grid .work { cursor: pointer; }
.ed-grid .work:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.pop-body { align-items: center; justify-content: center; text-align: center; }
.pop-body .eyebrow, .pop-text { max-width: 40rem; }
@media (max-width: 899px) {
  .ed-pop { grid-template-columns: 1fr; grid-template-rows: 38% 1fr; }
  .pop-text p { font-size: 1rem; }
}
@media (min-width: 1100px) { .partners-2025 { grid-template-columns: repeat(3, 1fr); } }

/* Footer edition title. */
.foot-brand .foot-title { margin: 0 0 .35rem; font: 800 clamp(1.25rem, 1.9vw, 1.6rem)/1.2 var(--head); }

/* 2025 expanded card: title left, text justified. */
.pop-body { align-items: stretch; text-align: left; }
.pop-body .eyebrow, .pop-text { max-width: none; }
.pop-text p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.pop-body .pill { align-self: flex-start; }

/* Footer organiser links. */
.foot-grid a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.foot-grid a:hover { background-size: 100% 1px; }

/* Group photo: show the whole frame, front row included. */
.hero-img { height: auto; aspect-ratio: 3600 / 1248; object-fit: cover; object-position: center; }

/* Partner cards are not links: hover (or keyboard focus) expands them. */
.partner { cursor: default; color: inherit; }
.partner:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

/* Group photo stays crisp once revealed (no GPU layer resampling). */
.reveal-ready .hero-img.is-in { will-change: auto; }
.hero-img { image-rendering: high-quality; }

/* Contact title: plain white + red, no texture or animation. */
.talk-title { margin: .2rem 0 0; font: 400 clamp(2.6rem, 6vw, 5.2rem)/.95 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.talk-title span { display: block; }
.talk-title span + span { color: #ff3a44; }

/* Contact: one person, compact section. */
.contact { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact .people { grid-template-columns: 1fr; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.contact .person h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.contact .person .role { font-size: clamp(1rem, 1.3vw, 1.15rem); margin: .3rem 0 .7rem; }
.contact .person a { font-size: clamp(1.1rem, 1.5vw, 1.3rem); padding: .25rem 0; }

/* Contact card: frosted glass over the bubbles. */
.contact .people { max-width: 34rem; }
.contact-card { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 26px; background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.contact-card h3 { margin: 0; }
.contact .contact-card .role { margin: .35rem 0 1.25rem; color: #ffc9c9; }
.contact-links { display: grid; gap: .6rem; }
.contact .contact-link { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(0, 0, 0, .22); color: #fff; text-decoration: none; transition: background .25s, transform .25s; }
.contact .contact-link:hover { background: #fff; color: var(--red); transform: translateX(4px); }
.contact-link svg { flex: none; width: 1.35em; height: 1.35em; }
.contact-link span { overflow-wrap: anywhere; }

/* Contact card: pearl-white background (same colours as the drip texture, no texture), dark text. */
.contact-card { background: linear-gradient(170deg, #f1efeb 0%, #e3e2df 55%, #cfd2d7 100%); border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: none; backdrop-filter: none; color: #1a1a1a; box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .8), inset 0 1px 0 #fff; }
.contact .contact-card h3 { color: #140000; }
.contact .contact-card .role { color: var(--red); }
.contact .contact-card .contact-link { background: rgba(255, 255, 255, .72); color: #1a1a1a; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact .contact-card .contact-link svg { color: var(--red); }
.contact .contact-card .contact-link:hover { background: var(--red); color: #fff; }
.contact .contact-card .contact-link:hover svg { color: #fff; }

/* Compact 2025 panel. */
.ed-pop { right: auto; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.ed-pop .pop-body { padding: clamp(1.25rem, 2.2vw, 2rem); }
.ed-pop .pop-body h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
.ed-pop .pop-text p { font-size: 1rem; line-height: 1.55; margin-bottom: .7rem; }

/* Session pages: bigger text. */
.detail .prose p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; }

/* Partner cards grow downward over the row below when expanded, so long texts always fit. */
.partner-cell { position: relative; z-index: 0; height: 16.5rem; }
.partner-cell:hover, .partner-cell:focus-within { z-index: 6; }
.partner-cell .partner { position: absolute; top: 0; left: 0; right: 0; height: auto; min-height: 100%; }
.partner-cell:nth-child(3n+2) .partner { animation-delay: -2.3s; }
.partner-cell:nth-child(3n) .partner { animation-delay: -4.6s; }
.partner-cell .partner:hover, .partner-cell .partner:focus-visible { transform-origin: 50% 0; }
.partner:hover .partner-did, .partner:focus-visible .partner-did { max-height: 16rem; }

/* Partner with no logo file yet: name as a wordmark plate. */
.plate-text { background: #fff; color: #1a1a1a; font: 800 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--head); letter-spacing: -.01em; padding: 10px 22px; }

/* Session pages: photos of the people who led the activity. */
.session-photos { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 2rem; }
.session-photos figure { margin: 0; flex: 1 1 14rem; max-width: 100%; height: clamp(16rem, 32vw, 26rem); overflow: hidden; border-radius: clamp(14px, 1.8vw, 22px); box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .9); }
.session-photos img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.session-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.session-photos figure { height: clamp(15rem, 24vw, 22rem); }

/* Session photos: own full-width row, big floating cards. */
.session-gallery { padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0; background: var(--ink); }
.session-gallery .session-photos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); margin: 0; }
.session-gallery figure { flex: 1 1 22rem; max-width: 40rem; height: clamp(20rem, 36vw, 32rem); margin: 0; overflow: hidden; border-radius: clamp(18px, 2vw, 28px); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04); animation: work-float 7s ease-in-out infinite; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.session-gallery figure:nth-child(2) { animation-delay: -2.3s; }
.session-gallery figure:nth-child(3) { animation-delay: -4.6s; }
.session-gallery figure:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 1); }
.session-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (prefers-reduced-motion: reduce) { .session-gallery figure { animation: none; } }

/* Session cards: wider, taller, 3D tilt (assets/tilt.js) with a light glare. */
.session-gallery .session-photos { flex-wrap: nowrap; }
.session-gallery figure { position: relative; flex: 1 1 0; max-width: none; height: clamp(22rem, 40vw, 38rem); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; will-change: transform; }
.session-gallery figure:hover { transform: none; }
.session-gallery figure.is-tilting { transition: transform .12s ease-out, box-shadow .3s; box-shadow: 0 60px 100px -34px rgba(0, 0, 0, 1); }
.session-gallery figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); opacity: 0; transition: opacity .3s; }
.session-gallery figure.is-tilting::after { opacity: 1; }
.session-gallery figure:only-child { flex: 0 1 min(100%, 60rem); }
@media (max-width: 699px) { .session-gallery .session-photos { flex-wrap: wrap; } .session-gallery figure { flex-basis: 100%; height: 18rem; } }

/* Session photos keep their own shape (no cropping); cards in a row share one height. */
.session-gallery figure { flex-basis: 0; height: auto; max-height: none; }
.session-gallery figure:only-child { flex: 0 1 auto; width: min(100%, 60rem); }
.session-gallery img { object-fit: contain; }
@media (max-width: 699px) { .session-gallery figure { flex-basis: 100%; height: auto; } }

/* Trainer presentation section. */
.trainers { background: var(--black); }
.trainers h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.trainer-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
.trainer-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem; border-radius: 22px; background: linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .9); }
.trainer-photo { flex: none; width: clamp(5.5rem, 9vw, 7.5rem); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: #2a0004; display: grid; place-items: center; }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; }
.trainer-photo .member-initial { font-size: 2.6rem; }
.trainer-card h3 { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.trainer-role { margin: .35rem 0 0; color: #ffc9c9; font-size: 1rem; line-height: 1.4; }

/* Despre: bigger title. */
#despre .about-title { font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.05; }

/* Session pages: meta line in the header, trainers in the right column. */
.session-meta { margin: 1rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #ffc9c9; font-weight: 500; }
.trainer-side .eyebrow { margin-bottom: 1rem; }
.trainer-side .trainer-grid { grid-template-columns: 1fr; }
.trainer-side .trainer-card { padding: .9rem; }
.trainer-side .trainer-photo { width: clamp(5rem, 7vw, 6.5rem); }
.detail-solo { grid-template-columns: 1fr; }

/* Session header with a translucent group photo. */
.sub-photo { position: relative; isolation: isolate; overflow: hidden; }
.sub-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sub-bg) center 40% / cover no-repeat; opacity: .28; }
.sub-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(26, 0, 2, .92) 0%, rgba(26, 0, 2, .55) 55%, rgba(26, 0, 2, .25) 100%); }

/* 2025 panel: trainer block to the right of the title. */
.pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pop-head > div { min-width: 0; }
.pop-trainers { flex: none; max-width: 15rem; padding: .7rem .85rem; border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .5); }
.pop-trainers p { margin: 0 0 .45rem; font: 700 italic .72rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pop-trainers ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.pop-trainers li { display: flex; align-items: center; gap: .55rem; }
.pop-trainers strong { display: block; font-size: .9rem; line-height: 1.2; color: #140000; }
.pop-trainers small { display: block; font-size: .76rem; line-height: 1.25; color: #5b4b4b; }
.pop-initial { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, #ff2d39, #8a0010); color: #fff; font: 800 .9rem/1 var(--head); }

/* Session detail: compact, centred, bigger text; trainers beside it. */
.detail { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr); gap: clamp(2rem, 4vw, 4rem); } .detail-solo { grid-template-columns: 1fr; } }
.detail .prose { max-width: 46rem; margin-inline: auto; text-align: center; }
.detail .prose p { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.55; }
.trainer-card.has-bio { flex-wrap: wrap; }
.trainer-bio { flex-basis: 100%; }
.trainer-bio p { margin: .4rem 0 0; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .88); text-align: justify; }

/* Session photos: lower height. */
.session-gallery figure { max-height: clamp(14rem, 30vw, 26rem); }
.session-gallery .session-photos { justify-content: center; }
.session-gallery figure { flex-grow: 0; height: clamp(14rem, 30vw, 26rem); width: auto; }
.session-gallery img { object-fit: contain; }
.session-gallery figure { flex: 0 1 auto !important; height: clamp(14rem, 30vw, 26rem); width: auto; max-width: 100%; }
.session-gallery img { object-fit: cover; }
@media (max-width: 699px) { .session-gallery figure { height: auto; width: 100%; } }

/* Session text justified; background with soft red glows and fine diagonal lines. */
.detail .prose { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.detail { position: relative; isolation: isolate; overflow: hidden; }
.detail::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 8% 15%, rgba(168, 0, 0, .28), transparent 70%),
    radial-gradient(35% 55% at 95% 90%, rgba(168, 0, 0, .22), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px); }
.detail::after { content: "MSS 2026"; position: absolute; right: -1rem; bottom: -2.5rem; z-index: -1; pointer-events: none; font: 400 clamp(6rem, 16vw, 14rem)/1 Anton, Impact, sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06); }

/* Header photo: brighter, people visible. */
.sub-photo::before { background-position: var(--sub-pos, center 40%); opacity: .55; }
.sub-photo::after { background: linear-gradient(90deg, rgba(26, 0, 2, .88) 0%, rgba(26, 0, 2, .45) 50%, rgba(26, 0, 2, .1) 100%); }

/* Trainer cards expand on hover/focus to show a short presentation. */
.trainer-card.has-bio { cursor: default; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, background .3s; }
.trainer-card .trainer-bio { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.2, .8, .2, 1), opacity .35s, margin .4s; margin-top: 0; }
.trainer-card.has-bio:hover, .trainer-card.has-bio:focus-visible { transform: translateY(-4px) scale(1.02); background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 1); }
.trainer-card.has-bio:hover .trainer-bio, .trainer-card.has-bio:focus-visible .trainer-bio { max-height: 18rem; opacity: 1; margin-top: .3rem; }
.trainer-card.has-bio .trainer-role::after { content: " · află mai mult"; opacity: .55; font-style: italic; }
.trainer-card.has-bio:hover .trainer-role::after { content: ""; }
@media (hover: none) { .trainer-card .trainer-bio { max-height: none; opacity: 1; } .trainer-card.has-bio .trainer-role::after { content: ""; } }

/* Despre title on exactly two rows. */
@media (min-width: 960px) {
  #despre .split { grid-template-columns: 1.4fr 1fr; }
  #despre .about-title { font-size: clamp(1.9rem, 2.45vw, 3.4rem); }
  #despre .about-title span { display: block; white-space: nowrap; }
}
@media (min-width: 960px) { #despre .about-title { font-size: clamp(1.9rem, 3.05vw, 4.2rem); line-height: 1.12; } }

/* Smooth fade from the header photo into the page. */
.sub-photo { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.sub-photo::after { background: linear-gradient(90deg, rgba(26, 0, 2, .88) 0%, rgba(26, 0, 2, .45) 50%, rgba(26, 0, 2, .1) 100%), linear-gradient(to bottom, rgba(26, 26, 26, 0) 55%, #1a1a1a 100%); }

/* Side photo card (sessions without a trainer). */
.side-photo { margin: 0; border-radius: clamp(18px, 2vw, 26px); overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95); border: 1px solid rgba(255, 255, 255, .14); animation: work-float 7s ease-in-out infinite; }
.side-photo img { display: block; width: 100%; height: auto; }

/* Side photo: 3D tilt with glare (tilt.js). */
.side-photo { overflow: visible; border: 0; box-shadow: none; perspective: 1100px; }
.side-photo figure { position: relative; margin: 0; overflow: hidden; border-radius: clamp(18px, 2vw, 26px); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; will-change: transform; }
.side-photo figure.is-tilting { transition: transform .12s ease-out, box-shadow .3s; box-shadow: 0 60px 100px -34px rgba(0, 0, 0, 1); }
.side-photo figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); opacity: 0; transition: opacity .3s; }
.side-photo figure.is-tilting::after { opacity: 1; }

/* Taller photo headers, so groups are not cropped. */
.sub-photo { min-height: clamp(26rem, 44vw, 40rem); display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 960px) { .works-2026 .work:last-child:nth-child(3n+2) { grid-column: span 2; } }

/* Smaller previous / next buttons. */
.pager { padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter); }
.pager a { flex: 0 1 26rem; min-height: 0; padding: .85rem 1.6rem; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.pager a span { font-size: .8rem; }

/* ===== Phone fixes ===== */
/* 1. Tap-to-open cards (touch.js) use the same look as hover. */
.partner.is-open { z-index: 3; background: linear-gradient(150deg, #ff2d39, #8a0010); color: #fff; }
.partner.is-open .partner-logo { height: 46px; padding: 5px 10px; }
.partner.is-open .partner-did { max-height: 20rem; opacity: 1; }
.partner-cell:has(.is-open) { z-index: 6; }
.trainer-card.has-bio.is-open .trainer-bio { max-height: 30rem; opacity: 1; margin-top: .3rem; }
.trainer-card.has-bio.is-open .trainer-role::after { content: ""; }
@media (hover: none) {
  .partner .partner-did { max-height: 0; opacity: 0; }
  .trainer-card .trainer-bio { max-height: 0; opacity: 0; }
  .trainer-card.has-bio .trainer-role::after { content: " · atinge pentru detalii"; }
  .partner-name::after { content: "Atinge pentru detalii"; display: block; margin-top: .3rem; font: 500 italic .72rem/1.2 var(--body); opacity: .55; }
  .partner.is-open .partner-name::after { content: none; }
  .partner:hover { transform: none; }
}

@media (max-width: 699px) {
  /* 2. Shorter home page. */
  .works { gap: .75rem; }
  .work { min-height: 0; padding: 1.1rem 1.2rem; gap: .35rem; animation: none; }
  .work .num { font-size: 1.5rem; }
  .work h3 { font-size: 1.25rem; }
  .work .go { padding: .35rem .85rem; font-size: .85rem; margin-top: .3rem; }
  .partners, .partners-2025 { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .partner-cell { height: 9.5rem; }
  .partner { padding: .8rem .6rem; gap: .45rem; animation: none; border-radius: 16px; }
  .partner-logo { height: 52px; padding: 6px 10px; border-radius: 10px; }
  .partner-logo img { max-width: 120px; }
  .partner-name { font-size: 1rem; }
  .partner.is-open .partner-name { font-size: 1.05rem; }
  .partner-did { font-size: .85rem; }
  .partner-cell:nth-child(2n) .partner.is-open { transform-origin: 100% 0; }
  .team-group { margin-top: 2rem; }

  /* 3. Left-aligned text on narrow screens (no word gaps). */
  .detail .prose, .detail .prose p, .pop-text p, .trainer-bio p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
  .detail .prose p { font-size: 1.1rem; }

  /* 4. Lighter header photos on phones. */
  .sub-photo::before { background-image: var(--sub-bg-m, var(--sub-bg)); }
  .sub-photo { min-height: 22rem; }

  /* 5. Smaller hero title, more room between page buttons. */
  .gel-title { aspect-ratio: 1 / .8; font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .pager { flex-direction: column; gap: 1rem; }
  .pager a { flex: none; width: 100%; max-width: none; }
  .pager a:last-child { margin-left: 0; }
}

/* ===== Phone pass 2 ===== */
.phone-only { display: none; }
@media (max-width: 699px) {
  .phone-only { display: block; }
  /* Bigger RAW & REAL. */
  .gel-title { aspect-ratio: 1 / .95; font-size: clamp(3.6rem, 20vw, 6.5rem); }
  /* Home previews: 3 cards each, the rest on their own pages. */
  .works-preview .work:nth-child(n+4) { display: none; }
  .works-recap .work:nth-child(n+4) { display: none; }
  .recap-cta { margin-top: 1.5rem; }
  .pill { padding: .85rem 1.6rem; font-size: 1.05rem; }
  /* Eye visible behind the Despre paragraph. */
  #despre::before { background-position: 58% 72%; background-size: auto 62%; background-repeat: no-repeat; opacity: .7; -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 50%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 30%, #000 50%, #000 88%, transparent 100%); }
  #despre .split > div { background: rgba(24, 24, 24, .22); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
  /* Stats lens on stacked numbers. */
  .stats-lens { --rx: 220px; --ry: 70px; }
  /* Compact footer. */
  .foot { padding: 2rem var(--gutter) 1.5rem; }
  .foot-grid { gap: 1.1rem; }
  .foot-logos { gap: 1rem; margin-bottom: .6rem; }
  .foot-logos img { height: 44px; }
  .foot-brand .foot-title { font-size: 1.05rem; }
  .foot-brand p, .foot-grid p { font-size: .9rem; margin: .15rem 0; }
  .foot-h { margin: .2rem 0 .4rem; font-size: .7rem; }
  .foot-copy { margin-top: 1.2rem; padding-top: .8rem; font-size: .78rem; }
}

/* ===== Phone pass 3 ===== */
/* Touch: a tap leaves a sticky :hover; only .is-open may show the open state. */
@media (hover: none) {
  .partner:not(.is-open):hover, .partner:not(.is-open):focus, .partner:not(.is-open):focus-visible { transform: none; background: linear-gradient(160deg, #fff, #f6eeec); color: var(--ink); outline: none; }
  .partner:not(.is-open):hover .partner-did, .partner:not(.is-open):focus .partner-did, .partner:not(.is-open):focus-visible .partner-did { max-height: 0; opacity: 0; }
  .partner:not(.is-open):hover .partner-name, .partner:not(.is-open):focus-visible .partner-name { font-size: inherit; transform: none; }
  .partner-cell:hover:not(:has(.is-open)) { z-index: 0; }
  .trainer-card.has-bio:not(.is-open):hover, .trainer-card.has-bio:not(.is-open):focus, .trainer-card.has-bio:not(.is-open):focus-visible { transform: none; outline: none; }
  .trainer-card.has-bio:not(.is-open):hover .trainer-bio, .trainer-card.has-bio:not(.is-open):focus .trainer-bio, .trainer-card.has-bio:not(.is-open):focus-visible .trainer-bio { max-height: 0; opacity: 0; margin-top: 0; }
}

@media (max-width: 699px) {
  /* Header photos clearly visible on phones. */
  .sub-photo::before { opacity: .9; }
  .sub-photo::after { background: linear-gradient(to bottom, rgba(20, 0, 2, .25) 0%, rgba(20, 0, 2, .15) 40%, rgba(20, 0, 2, .7) 85%, #1a1a1a 100%); }
  .sub-photo h1, .sub-photo .eyebrow, .sub-photo .session-meta, .sub-photo .back { text-shadow: 0 2px 4px rgba(0, 0, 0, .8), 0 4px 22px rgba(0, 0, 0, .7); }
}

/* 2025 cards on phones/tablets: open as a full-screen panel. */
@media (max-width: 899px) {
  .ed-pop { position: fixed !important; top: 112px !important; left: 10px !important; right: 10px !important; bottom: 10px !important; width: auto !important; height: auto !important; z-index: 60; clip-path: none !important; display: flex; flex-direction: column; overflow-y: auto; border-radius: 22px; transition: opacity .3s ease, visibility 0s linear .3s; }
  .ed-pop.is-open { transition: opacity .3s ease; }
  .ed-pop .pop-photo { flex: none; height: 38vh; }
  .ed-pop .pop-body { flex: none; overflow: visible; padding: 1.25rem 1.2rem 1rem; }
  .pop-head { flex-direction: column; gap: .8rem; }
  .pop-trainers { max-width: none; }
  .ed-pop .pop-body h3 { font-size: 1.45rem; }
  .ed-pop .pop-text p { font-size: 1rem; text-align: left; }
  .pop-close { flex: none; margin: 0; padding: .9rem 1.2rem 1.2rem; text-align: center; font: 700 .9rem/1 var(--body); color: var(--red); }
}

/* "Toate workshopurile" sits at the top of photo headers. */
.sub-photo .back { position: absolute; top: clamp(1rem, 2.5vw, 1.75rem); left: var(--gutter); z-index: 2; }

/* Footer logos: MSS, mk, ASE in one row. */
.foot-logos { flex-wrap: wrap; gap: 1.25rem; }
.foot-logos img { height: 54px; width: auto; max-width: 100%; }
@media (max-width: 699px) { .foot-logos { gap: .9rem; } .foot-logos img { height: 38px; } }

/* Touch screens (class set by touch.js): only .is-open shows the open state, never a leftover hover/focus. */
.is-touch .partner:not(.is-open):hover, .is-touch .partner:not(.is-open):focus, .is-touch .partner:not(.is-open):focus-visible { transform: none; background: linear-gradient(160deg, #fff, #f6eeec); color: var(--ink); outline: none; }
.is-touch .partner:not(.is-open):hover .partner-did, .is-touch .partner:not(.is-open):focus .partner-did, .is-touch .partner:not(.is-open):focus-visible .partner-did { max-height: 0; opacity: 0; }
.is-touch .partner:not(.is-open):hover .partner-name, .is-touch .partner:not(.is-open):focus .partner-name { transform: none; font-size: inherit; }
.is-touch .partner-cell:hover { z-index: 0; }
.is-touch .partner-cell:has(.is-open) { z-index: 6; }
.is-touch .trainer-card.has-bio:not(.is-open):hover, .is-touch .trainer-card.has-bio:not(.is-open):focus { transform: none; outline: none; }
.is-touch .trainer-card.has-bio:not(.is-open):hover .trainer-bio, .is-touch .trainer-card.has-bio:not(.is-open):focus .trainer-bio { max-height: 0; opacity: 0; margin-top: 0; }
.is-touch .partner-name::after { content: "Atinge pentru detalii"; display: block; margin-top: .3rem; font: 500 italic .72rem/1.2 var(--body); opacity: .55; }
.is-touch .partner.is-open .partner-name::after { content: none; }

/* Laptop: header photos clearly visible under a lighter red shade. */
@media (min-width: 700px) {
  .sub-photo::before { opacity: .85; }
  .sub-photo::after { background: linear-gradient(90deg, rgba(40, 0, 4, .78) 0%, rgba(40, 0, 4, .35) 45%, rgba(40, 0, 4, .05) 80%), linear-gradient(to bottom, rgba(26, 26, 26, 0) 60%, #1a1a1a 100%); }
  .sub-photo h1, .sub-photo .eyebrow, .sub-photo .session-meta, .sub-photo .back { text-shadow: 0 2px 6px rgba(0, 0, 0, .65), 0 6px 28px rgba(0, 0, 0, .55); }
}

/* 2025 panel: full text, justified, never clipped by the grid. */
.ed-grid { overflow: visible; }
.ed-pop .pop-text p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 899px) { .ed-pop .pop-text p { text-align: justify; } }

/* Laptop: photo headers keep a fixed height, photo positioned per session (--sub-pos), red diagonal band shows through. */
@media (min-width: 700px) {
  .sub-photo::before { background-position: var(--sub-pos, center 35%); opacity: .82; }
  .sub-photo::after { background: linear-gradient(90deg, rgba(60, 0, 6, .62) 0%, rgba(60, 0, 6, .3) 45%, rgba(60, 0, 6, .05) 80%), linear-gradient(to bottom, rgba(26, 26, 26, 0) 65%, #1a1a1a 100%); }
}

/* Keep the site's own colours: stop phone browsers (e.g. Samsung Internet dark mode) from darkening white cards. */
:root { color-scheme: only light; }
.partner, .contact-card, .contact-link, .partner-logo, .works-2025 .work, .ed-pop, .pop-trainers { forced-color-adjust: none; }

/* ===== Dark-mode-proof cards on phones only (look the same when a phone forces dark mode) ===== */
.partner-logo.plate-baked { background: none; padding: 0; height: 84px; }
.partner-logo.plate-baked img { max-height: 100%; max-width: 210px; border-radius: 14px; }
@media (max-width: 899px) {
  .partner { background: linear-gradient(160deg, #3a0008, #1c0003 70%); border: 1px solid rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12); }
  .partner-name { color: #fff; }
  .partner:hover, .partner:focus-visible, .partner.is-open { background: linear-gradient(150deg, #ff2d39, #8a0010); color: #fff; }
  .partner:hover .partner-logo.plate-baked, .partner:focus-visible .partner-logo.plate-baked, .partner.is-open .partner-logo.plate-baked { height: 54px; padding: 0; }
  .is-touch .partner:not(.is-open):hover, .is-touch .partner:not(.is-open):focus, .is-touch .partner:not(.is-open):focus-visible { background: linear-gradient(160deg, #3a0008, #1c0003 70%); color: #fff; }
  .partner:not(.is-open):hover, .partner:not(.is-open):focus, .partner:not(.is-open):focus-visible { background: linear-gradient(160deg, #3a0008, #1c0003 70%); color: #fff; }
  .is-touch .partner-name::after, .partner-name::after { color: #ffc9c9; }
  #parteneri { background: #1a1a1a; color: #fff; }
  #parteneri h2, #parteneri .eyebrow { color: #fff; }
  #parteneri::before { opacity: .12; }
  #parteneri::after { background: radial-gradient(80% 70% at 50% 45%, rgba(168, 0, 0, .25), rgba(26, 26, 26, 0)); }
  /* Contact card: deep red glass with white text. */
  .contact-card { background: linear-gradient(160deg, #4a0008 0%, #220004 100%); border: 1px solid rgba(255, 255, 255, .2); color: #fff; box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .18); }
  .contact .contact-card h3 { color: #fff; }
  .contact .contact-card .role { color: #ffc9c9; }
  .contact .contact-card .contact-link { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid rgba(255, 255, 255, .14); }
  .contact .contact-card .contact-link svg { color: #ffc9c9; }
  .contact .contact-card .contact-link:hover { background: #fff; color: var(--red); }
  .contact .contact-card .contact-link:hover svg { color: var(--red); }
}
@media (max-width: 699px) {
  .partner-logo.plate-baked { height: 50px; max-width: 100%; }
  .partner-logo.plate-baked img { max-width: 100%; height: auto; max-height: 50px; border-radius: 10px; }
  .partner.is-open .partner-logo.plate-baked { height: 40px; }
  .partner.is-open .partner-logo.plate-baked img { max-height: 40px; }
}

/* Phones: an opened partner card grows in place (pushes the row down) so its text is never cut by the next section. */
@media (max-width: 899px) {
  .partner-cell:has(.is-open) { height: auto; }
  .partner-cell .partner.is-open { position: relative; transform: none; min-height: 9.5rem; }
  #parteneri { overflow: visible; }
}

/* Partner grid: an incomplete last row is centred. */
@media (min-width: 640px) {
  .partners { --cols: 2; --g: clamp(1rem, 2vw, 1.5rem); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); }
  .partners > .partner-cell { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols)); }
}
@media (min-width: 960px) { .partners { --cols: 3; } }
@media (min-width: 1100px) { .partners { --cols: 4; } .partners-2025 { --cols: 3; } }
.session-tagline { margin: .6rem 0 0; font: 700 clamp(1.1rem, 1.8vw, 1.5rem)/1.3 var(--head); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }

/* Hero: same dark red as the contact section. */
.hero { background: linear-gradient(to bottom, var(--black) 0, #440000 calc(var(--fade) * .4), #8b0000 var(--fade)); }

/* Desktop 2025 panel: never scrolls inside; it grows with its text (short screens too). */
@media (min-width: 900px) {
  .ed-pop .pop-body { overflow: visible; }
  .ed-pop .pop-photo img { object-fit: cover; }
}

/* Laptop: 2026 activity cards a little wider and shorter. */
@media (min-width: 960px) {
  .works-2026 { margin-inline: calc(var(--gutter) * -0.45); }
  .works-2026 .work { min-height: 12.5rem; padding: 1.4rem 2rem; gap: .45rem; }
}
