/* Mediatop — sample home (2026-12-05). Layout and motion follow the Sheila reference,
   colours, type and logo stay Mediatop. Loaded only on /sample-sheila/. */

/* ---------- Sticky header that gains a background once you scroll ---------- */
.sx .site-header { position: sticky; top: 0; z-index: 30; transition: background-color 300ms var(--ease-ui), border-color 300ms var(--ease-ui); border-bottom: 1px solid transparent; }
.sx .site-header .wrap { transition: min-height 300ms var(--ease-ui); }
.sx .site-header.is-scrolled { background: rgba(23, 8, 42, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.sx .site-header.is-scrolled .wrap { min-height: 72px; }

/* ---------- Reveal helpers ---------- */
.sx [data-up] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-hero), transform 900ms var(--ease-hero); }
.sx [data-up].in { opacity: 1; transform: none; }
[data-words] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-words] .sw > span { display: inline-block; transform: translateY(105%); transition: transform 1000ms var(--ease-hero); transition-delay: calc(var(--i) * 70ms); }
[data-words].in .sw > span { transform: none; }
.sx-about [data-words] strong { background-size: 0% 100% !important; background-repeat: no-repeat !important; transition: background-size 900ms var(--ease-hero) 700ms; }
.sx-about [data-words].in strong { background-size: 100% 100% !important; }

/* ---------- Hero ---------- */
.sx-hero { position: relative; padding-top: 56px; overflow-x: clip; }
.sx-hero::before { /* same soft grid as the current hero */
  content: ""; position: absolute; left: 0; right: 0; top: -88px; height: 900px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
}
.sx-h1 {
  color: var(--white); font-weight: 300; font-size: clamp(54px, 10.4vw, 168px); line-height: .98;
  letter-spacing: -.04em; margin: 28px 0 40px;
}
.sx-h1 strong { font-weight: 700; color: var(--yellow); }
.sx-hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.sx-hero-btns { justify-content: flex-end; }
.sx-stage { --p: 0; margin-top: 72px; display: flex; justify-content: center; padding-bottom: 8px; }
.sx-stage-media {
  position: relative; width: calc(68% + 32% * var(--p)); aspect-ratio: 16 / 8;
  border-radius: calc(32px * (1 - var(--p))); overflow: hidden; background: var(--night-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.sx-stage-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(calc(1.12 - .12 * var(--p))); }
.sx-stage-media .badge--a { top: 10%; left: 4%; }
.sx-stage-media .badge--b { top: auto; bottom: 10%; right: 4%; }

/* ---------- Approach (light) ---------- */
.h-sec.sx-big { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.1; max-width: 18em; margin-top: 28px; letter-spacing: -.025em; }
.sx-about-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: end; margin-top: 72px; }
.sx-about-text { display: grid; gap: 20px; max-width: 32em; }
.sx-about-media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; clip-path: inset(18% 0 0 0 round 24px); transition: clip-path 1200ms var(--ease-hero); }
.sx-about-media.in { clip-path: inset(0 0 0 0 round 24px); }
.sx-about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Work: horizontal scroll on desktop, swipe on touch ---------- */
.sx-work { position: relative; background: var(--night); color: var(--text); }
.sx-work-pin { padding-block: var(--section) 64px; overflow: hidden; }
.sx-work-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.sx-work-head .h-sec { margin-top: 20px; }
.sx-work-track {
  display: flex; gap: 40px; padding-inline: max(var(--pad), (100vw - var(--maxw)) / 2);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--pad), (100vw - var(--maxw)) / 2); scrollbar-width: none; will-change: transform;
}
.sx-work-track::-webkit-scrollbar { display: none; }
.sx-proj { flex: none; width: min(460px, 78vw); scroll-snap-align: start; }
.sx-proj:nth-child(even) { margin-top: 64px; }
.sx-proj a { display: block; color: inherit; text-decoration: none; }
.sx-proj-media { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--night-2); }
.sx-proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-hero); }
.sx-proj-meta { display: flex; gap: 14px; align-items: baseline; margin-top: 20px; font-size: 14px; letter-spacing: .02em; }
.sx-proj-num { color: var(--yellow); font-weight: 700; }
.sx-proj-name { color: var(--white); font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.015em; margin-top: 6px; }
.sx-proj--end { display: flex; align-items: center; width: min(360px, 70vw); }
.sx-proj--end a { display: flex; align-items: center; gap: 20px; color: var(--white); font-size: clamp(28px, 2.6vw, 40px); font-weight: 300; line-height: 1.15; }
.sx-proj--end strong { color: var(--yellow); font-weight: 700; display: block; }
.sx-proj--end .btn-ico { width: 56px; height: 56px; flex: none; }
.sx-work-bar { display: flex; align-items: center; gap: 24px; margin-top: 56px; font-size: 14px; }
.sx-count b { color: var(--white); }
.sx-progress { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.sx-progress i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--wp, 0) * 100%); background: var(--yellow); border-radius: 3px; }
/* Desktop with JS: the section pins and the track slides sideways as you scroll down */
.sx-h .sx-work-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 88px 32px; }
.sx-h .sx-work-track { overflow: visible; scroll-snap-type: none; }

/* ---------- Statement over a photo ---------- */
.sx-statement { position: relative; isolation: isolate; overflow: hidden; padding-block: 180px 160px; background: var(--night); }
.sx-statement-bg { position: absolute; inset: -10% 0; z-index: -1; transform: translateY(calc(var(--sp, 0) * -60px)); }
.sx-statement-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.sx-statement-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 8, 42, .82), rgba(23, 8, 42, .9) 70%, var(--night)); }
.sx-state { color: var(--white); font-weight: 300; font-size: clamp(42px, 7vw, 112px); line-height: 1.02; letter-spacing: -.035em; margin-top: 28px; max-width: 12em; }
.sx-state strong { font-weight: 700; color: var(--yellow); }
.sx-state .fw { opacity: .18; transition: opacity 250ms linear; }
.sx-state .fw.on { opacity: 1; }
.sx-founder { padding-top: 24px; }
.sx-founder-lead { color: var(--white); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; max-width: 26em; }

/* ---------- Timeline ---------- */
.sx-tl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.sx-tl-head { position: sticky; top: 120px; }
.sx-tl-head .h-sec { margin-top: 20px; }
.sx-tl { --tl: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 72px; display: grid; gap: 64px; }
.sx-tl::before, .sx-tl::after { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.sx-tl::after { background: var(--yellow); bottom: auto; height: calc((100% - 16px) * var(--tl)); }
.sx-tl-item { position: relative; opacity: .35; transition: opacity 500ms var(--ease-ui); }
.sx-tl-item.on { opacity: 1; }
.sx-tl-dot {
  position: absolute; left: -72px; top: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--night-2); border: 2px solid var(--line-2); color: var(--white); font-weight: 700; transition: background-color 400ms, border-color 400ms, color 400ms;
}
.sx-tl-item.on .sx-tl-dot { background: var(--yellow); border-color: var(--yellow); color: var(--purple); }
.sx-tl-item .h-card { margin: 6px 0 10px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; }
.sx-tl-item p { max-width: 34em; }

@media (hover: hover) {
  .sx-proj a:hover .sx-proj-media img { transform: scale(1.05); }
  .sx-proj--end a:hover .btn-ico { background: var(--white); }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1023px) {
  .sx-hero-row, .sx-work-head, .sx-tl-grid { grid-template-columns: 1fr; gap: 28px; }
  .sx-hero-btns { justify-content: flex-start; }
  .sx-about-row { grid-template-columns: 1fr; gap: 40px; }
  .sx-stage-media { width: calc(86% + 14% * var(--p)); aspect-ratio: 16 / 10; }
  .sx-tl-head { position: static; }
  .sx-tl-grid { gap: 48px; }
}
@media (max-width: 767px) {
  .sx-hero { padding-top: 32px; }
  .sx-h1 { margin: 20px 0 28px; }
  .sx-stage { margin-top: 48px; }
  .sx-stage-media { width: calc(100% - 2 * var(--pad) + 2 * var(--pad) * var(--p)); aspect-ratio: 4 / 5; }
  .sx-stage-media img { object-position: 70% 50%; }
  .sx-stage-media .badge { font-size: 13px; }
  .sx-proj:nth-child(even) { margin-top: 0; }
  .sx-work-track { gap: 20px; }
  .sx-statement { padding-block: 120px 96px; }
  .sx-tl { padding-left: 60px; gap: 44px; }
  .sx-tl-dot { left: -60px; width: 40px; height: 40px; }
  .sx-tl::before, .sx-tl::after { left: 19px; }
}

/* ---------- No motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sx [data-up], [data-words] .sw > span { opacity: 1; transform: none; transition: none; }
  .sx-about-media { clip-path: none; }
  .sx-state .fw, .sx-tl-item { opacity: 1; }
  .sx-stage-media { width: 100%; border-radius: 0; }
  .sx-stage-media img { transform: none; }
}

/* =====================================================================
   Site-wide layer (2026-12-05): every page follows the home page layout.
   Pricing tables keep their current design (no rules for .pricing here).
   ===================================================================== */

/* ---------- Client logos in «Η δουλειά μας» (home) ---------- */
.sx-proj-logo { aspect-ratio: 1 / 1; background: var(--white); border-radius: 20px; }
.sx-proj-logo img { object-fit: cover; }
.sx-work .sx-proj { width: min(340px, 72vw); }
.sx-work .sx-proj--end { width: min(340px, 70vw); }
.sx-proj > div { color: inherit; }

/* ---------- Inner-page hero ---------- */
.sx-hero--page { padding-top: 40px; }
.sx-hero--page .crumbs { margin-bottom: 28px; }
.sx-ph1 {
  color: var(--white); font-weight: 300; font-size: clamp(40px, 5.8vw, 92px); line-height: 1.02;
  letter-spacing: -.035em; margin: 28px 0 40px; max-width: 15em;
}
.sx-ph1 strong { font-weight: 700; color: var(--yellow); }
.sx-hero-row--solo { grid-template-columns: minmax(0, 8fr); }
.sx-hero--page .sx-stage { margin-top: 64px; }
.sx-hero--page .sx-stage-media { aspect-ratio: 16 / 7; }
.sx-hero--page .sx-stage-media img { object-position: 50% 50%; }
.sx-hero--nomedia { padding-bottom: 80px; }

/* ---------- Section titles rise word by word (JS adds .sw spans) ---------- */
.h-sec .sw, .h-close .sw { padding-bottom: .1em; margin-bottom: -.1em; }

/* ---------- Features become numbered rows, like Sheila's «What we do» ---------- */
.sx .features, .features { display: block; border-top: 1px solid var(--line-2); }
.features > li { display: block; border-bottom: 1px solid var(--line-2); }
.feature {
  display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 5fr); gap: 24px; align-items: baseline;
  padding: 32px 0; border: 0; border-radius: 0; background: none;
}
.g-light .feature { background: none; }
.g-light .features, .g-light .features > li { border-color: #E3D8EE; }
.feature-num { font-size: 14px; }
.feature .h-card { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.015em; }
.feature p { margin: 0; }

/* ---------- Bigger closing call to action ---------- */
.h-close { font-size: clamp(40px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -.03em; max-width: 13em; }

/* ---------- Our Work grid: photos settle in, hover zoom stays ---------- */
.sx .project .work-media { clip-path: inset(0 0 0 0 round 12px); }

@media (max-width: 1023px) {
  .sx-hero-row--solo { grid-template-columns: 1fr; }
  .sx-hero--page .sx-stage-media { width: calc(86% + 14% * var(--p)); aspect-ratio: 16 / 10; }
  .feature { grid-template-columns: 48px minmax(0, 1fr); }
  .feature p { grid-column: 2; }
}
@media (max-width: 767px) {
  .sx-ph1 { margin: 20px 0 28px; }
  .sx-hero--page .sx-stage-media { width: calc(100% - 2 * var(--pad) + 2 * var(--pad) * var(--p)); aspect-ratio: 4 / 3; }
  .feature { padding: 24px 0; gap: 8px 16px; grid-template-columns: 36px minmax(0, 1fr); }
  .sx-work .sx-proj { width: min(280px, 72vw); }
}

/* ---------- Our Work: client logos instead of photos, partner logo grid ---------- */
.work-media--logo { aspect-ratio: 1 / 1; background: var(--white); border: 1px solid #E3D8EE; }
.work-media--logo img { object-fit: cover; }
/* Partner logos: two rows that slide sideways, the second in the opposite direction */
.logo-slider { display: grid; gap: var(--gap); margin-top: 8px; margin-inline: calc(50% - 50vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-track { display: flex; width: max-content; animation: logo-slide 90s linear infinite; }
.logo-row--rev .logo-track { animation-direction: reverse; }
.logo-track ul { display: flex; gap: var(--gap); padding-right: var(--gap); margin: 0; list-style: none; }
.logo-track li { flex: none; width: 150px; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: var(--white); border: 1px solid #E3D8EE; }
.logo-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes logo-slide { to { transform: translateX(-50%); } }
@media (hover: hover) { .logo-slider:hover .logo-track { animation-play-state: paused; } }
@media (max-width: 767px) { .logo-track li { width: 104px; } .logo-track { animation-duration: 70s; } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-row { overflow-x: auto; }
  .logo-track ul[aria-hidden] { display: none; }
}

/* ---------- Case-study pages (2026-12-05) ---------- */
.project-media-link { display: block; }
.project .h-card a { color: inherit; text-decoration: none; }
.case-logo { width: min(360px, 100%); aspect-ratio: 1 / 1; overflow: hidden; border-radius: 20px; border: 1px solid #E3D8EE; background: var(--white); }
.case-logo img { width: 100%; height: 100%; object-fit: cover; }
.case-services { display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.case-services li { position: relative; padding-left: 22px; color: var(--text); }
.case-services li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; list-style: none; margin: 0; padding: 0; }
.ig-grid li { min-width: 0; }
.ig-grid .instagram-media, .ig-grid iframe { min-width: 0 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.ig-grid blockquote.instagram-media { display: grid; place-items: center; min-height: 420px; border-radius: 12px; background: var(--white); border: 1px solid #E3D8EE; padding: 24px; text-align: center; }
.ig-grid blockquote.instagram-media a { color: var(--indigo); font-weight: 700; }
.ig-more { display: flex; justify-content: center; margin-top: 40px; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.yt-frame iframe, .yt-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.case-photos:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.case-photo { border-radius: 20px; overflow: hidden; }
.case-photo img { width: 100%; height: auto; }
.case-next-sec { padding-block: 64px; }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.case-back { color: var(--text); text-underline-offset: 4px; }
.case-next-link { display: inline-flex; align-items: center; gap: 16px; color: var(--white); text-decoration: none; }
.case-next-link span { color: var(--text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.case-next-link strong { font-size: clamp(24px, 3vw, 40px); font-weight: 400; letter-spacing: -.02em; }
@media (hover: hover) { .case-next-link:hover strong { color: var(--yellow); } }
@media (max-width: 1023px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .ig-grid, .case-photos { grid-template-columns: 1fr; } .case-logo { width: min(240px, 100%); } }
.ig-grid blockquote.ig-wait { display: grid; place-items: center; min-height: 420px; border-radius: 12px; background: var(--white); border: 1px solid #E3D8EE; padding: 24px; margin: 0; }

/* ---------- Founders and talks (2026-12-05) ---------- */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.founders figure { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 20px; background: var(--night-2); }
.founders img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founders .h-card { margin: 20px 0 4px; }
.founders p { color: var(--text); }
.talks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.talk { overflow: hidden; border-radius: 20px; }
.talk img { width: 100%; height: 100%; object-fit: cover; }
.talk--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.talk--tall { aspect-ratio: auto; }
.talks .talk:nth-child(3) { grid-row: span 1; }
.sx-founder-photo { margin-bottom: 28px; aspect-ratio: 4 / 5; max-width: 420px; overflow: hidden; border-radius: 20px; }
.sx-founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 899px) { .talks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .talk--wide { grid-column: span 2; } }
@media (max-width: 599px) { .founders { grid-template-columns: 1fr; } }
.talk--tall { position: relative; min-height: 280px; }
.talk--tall img { position: absolute; inset: 0; object-position: 50% 30%; }
.founders { max-width: 960px; }
.sx-about-media img { object-position: 50% 24%; }
.founders figure img[src*="nicos-talk"] { object-position: 50% 22%; }

.founders .founder-role { color: var(--yellow); font-weight: 700; letter-spacing: .04em; margin: 0 0 12px; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.founder-tags li { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--white); font-size: 14px; }
.foot-note { color: var(--text); font-size: 13px; }

/* Home: full portrait, no crop */
.sx-about-row--center { align-items: center; margin-top: 56px; }
.sx-about-media--full { aspect-ratio: 4 / 5; max-width: 460px; justify-self: center; width: 100%; }
.sx-about-media--full img { object-position: 50% 50%; }
