/* Services page: one full section per discipline. Web Design & Development comes first:
   intro, tools, process steps and a carousel of launched websites. Generated by tools/gen-services.js. */
.medusa-web { --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; position: relative; max-width: 1760px; margin: 0 auto; padding: clamp(40px, 5vw, 80px) 3.2rem clamp(80px, 9vw, 140px); color: #e0e5ef; }
.medusa-web__label { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font: 300 10px/1.4 var(--_font-default); letter-spacing: .14em; color: #aab6c8; }
.medusa-web__label span { width: 70px; height: 1px; background: #aab6c82b; }
.medusa-web__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Shared glass surface. */
.medusa-web__tech li, .medusa-web__arrow, .medusa-web__cta {
  border: 1px solid #e0e5ef24; background: linear-gradient(145deg, #222c4a73, #0c122259);
  box-shadow: inset 1px 1px 0 #ffffff12, 0 24px 60px #03060e40; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

/* Intro */
.medusa-web__intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 80px); align-items: center; margin-bottom: clamp(56px, 7vw, 110px); }
.medusa-web__intro-text { max-width: 980px; }
/* The section's own animated stone (media/dossiers/web), set beside the title. */
.medusa-web__stone { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.medusa-web__stone::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, #7657f04d, #3d345814 55%, transparent 72%); }
.medusa-web__stone video, .medusa-web__stone img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s ease; }
.medusa-web__stone.is-loaded video, .medusa-web__stone.is-loaded img { opacity: 1; }
.medusa-web__kicker { margin: 0 0 18px; font: 400 11px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #a79ac8; }
.medusa-web h2 { margin: 0 0 clamp(20px, 2vw, 32px); font: 400 clamp(40px, 5.4vw, 96px)/1 var(--_font-default); letter-spacing: -.05em; color: #f1f3f9; }
.medusa-web__lead { max-width: 62ch; margin: 0 0 clamp(26px, 3vw, 40px); font: 300 clamp(15px, 1.2vw, 19px)/1.6 var(--_font-default); color: #afb9cc; }
.medusa-web__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.medusa-web__cta { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 999px; color: #f1f3f9; text-decoration: none; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: border-color .3s, box-shadow .3s; }
.medusa-web__cta svg { width: 16px; height: 16px; }
.medusa-web__cta:hover { border-color: #c9b9ff80; }
.medusa-web__cta--primary { border-color: #a58cff66; background: linear-gradient(135deg, #7657f0e6, #5b43c0cc); box-shadow: inset 1px 1px 0 #ffffff2e, 0 10px 30px #7657f040; }
.medusa-web__cta:focus-visible, .medusa-web__arrow:focus-visible, .medusa-web__card a:focus-visible, .medusa-web__track:focus-visible { outline: 2px solid #a3b8d2; outline-offset: 4px; }

.medusa-web__block { margin-top: clamp(56px, 7vw, 110px); }
.medusa-web__subtitle { margin: 0 0 clamp(22px, 2.4vw, 36px); font: 400 clamp(22px, 2vw, 34px)/1.1 var(--_font-default); letter-spacing: -.03em; color: #f1f3f9; }

/* Tools */
.medusa-web__tech { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.medusa-web__tech li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border-radius: 22px; transition: border-color .3s, transform .3s; }
.medusa-web__tech li:hover { border-color: #c9b9ff66; transform: translateY(-3px); }
.medusa-web__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 16px; background: #eef0f8; box-shadow: 0 8px 22px #03060e66; }
.medusa-web__icon img { width: 36px; height: 36px; object-fit: contain; }
.medusa-web__tech strong { font: 400 clamp(16px, 1.3vw, 20px)/1.1 var(--_font-default); letter-spacing: -.02em; color: #f1f3f9; }
.medusa-web__tech em { font: 300 13px/1.3 var(--_font-default); font-style: normal; color: #aab6c8; }

/* Process */

/* Carousel */
.medusa-web__work-head { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem clamp(20px, 2.4vw, 40px); margin-bottom: clamp(22px, 2.4vw, 36px); }
.medusa-web__work-head .medusa-web__subtitle { margin: 0; }
.medusa-web__nav { display: flex; gap: 10px; }
.medusa-web__arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; color: #e0e5ef; cursor: pointer; transition: border-color .3s, opacity .3s; }
.medusa-web__arrow svg { width: 18px; height: 18px; }
.medusa-web__arrow:hover { border-color: #e0e5ef66; }
.medusa-web__arrow:disabled { opacity: .35; cursor: default; }
.medusa-web__track { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; margin: 0; padding: 4px 4px 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.medusa-web__track::-webkit-scrollbar { display: none; }
.medusa-web__card { min-width: 0; scroll-snap-align: start; }
.medusa-web__card a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 24px; border: 1px solid #e0e5ef2e; color: #f1f3f9; text-decoration: none; background: #151d33; transition: border-color .3s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.medusa-web__card a:hover { border-color: #c9b9ff66; transform: translateY(-4px); }
.medusa-web__card img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.medusa-web__card a:hover img { transform: scale(1.04); }
.medusa-web__card a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, #070b14d9 68%, #070b14 100%); pointer-events: none; }
.medusa-web__tags, .medusa-web__name { position: absolute; z-index: 1; left: 20px; right: 20px; }
.medusa-web__tags { bottom: 56px; font: 400 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #c9b9ff; }
.medusa-web__name { bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 clamp(20px, 1.8vw, 28px)/1.1 var(--_font-default); letter-spacing: -.03em; }
.medusa-web__name svg { flex: none; width: 20px; height: 20px; }
.medusa-web__card--legacy a { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; box-sizing: border-box; height: 100%; aspect-ratio: 8 / 5; padding: 24px; }
.medusa-web__card--all a::after { display: none; }
.medusa-web__card--all .medusa-web__tags { position: static; }
.medusa-web__card--all strong { font: 400 clamp(22px, 2vw, 32px)/1.05 var(--_font-default); letter-spacing: -.035em; }
.medusa-web__all-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9b9ff, #7657f0 60%, #4b35b0); }
.medusa-web__all-icon svg { width: 18px; height: 18px; color: #fff; }

@media (max-width: 991px) {
  .medusa-web__intro { grid-template-columns: 1fr; }
  .medusa-web__stone { max-width: 380px; order: -1; }
}
@media (max-width: 1199px) {
  .medusa-web__tech { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .medusa-web__track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
  .medusa-web { padding-inline: 2.2rem; }
  .medusa-web__tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .medusa-web__track { grid-auto-columns: 84%; grid-template-rows: auto; }
  .medusa-web__cta { padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .medusa-web__track { scroll-behavior: auto; }
  .medusa-web__card a, .medusa-web__card img, .medusa-web__tech li { transition: none; }
}

/* Controls sit under the carousel. */
.medusa-web__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.medusa-web__nav { display: flex; gap: 10px; }
/* A project whose preview is not ready yet: a quiet glass panel. */
.medusa-web__card--soon a { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 8 / 5; background: linear-gradient(145deg, #3a2f6a66, #1b2a5c52 55%, #0c122259); }
.medusa-web__card--soon a::after { display: none; }
.medusa-web__soon { position: absolute; z-index: 1; left: 20px; top: 18px; padding: 6px 12px; border: 1px solid #a58cff66; border-radius: 20px; background: #7657f033; font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #d9d0ff; }

/* Process console: five notched tabs over one detail panel, with a turning wireframe form per step. */
.medusa-web__proc { position: relative; padding: clamp(24px, 3vw, 44px); border: 1px solid #e0e5ef1f; border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(#a6b5ce0d 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, #a6b5ce0d 1px, transparent 1px) 0 0 / 36px 36px,
    radial-gradient(ellipse 60% 70% at 85% 80%, #5b43c033, transparent 70%),
    linear-gradient(160deg, #101730e6, #090d1ccc);
  box-shadow: inset 1px 1px 0 #ffffff10; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.medusa-web__proc-eyebrow { margin: 0 0 14px; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #a79ac8; }
.medusa-web__proc-title { margin: 0 0 clamp(22px, 2.4vw, 36px); font: 300 clamp(32px, 3.6vw, 60px)/1.05 var(--_font-default); letter-spacing: -.045em; color: #f1f3f9; }
.medusa-web__proc-title span { background: linear-gradient(90deg, #c9b9ff, #8d9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.medusa-web__proc-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.medusa-web__proc-tab { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 96px; padding: 14px 14px 12px; border: 1px solid #e0e5ef1f; border-radius: 4px; background: #0a0f1fcc; color: #aab6c8; text-align: left; cursor: pointer; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); transition: border-color .3s, background .3s, color .3s; }
.medusa-web__proc-tab::before { content: ''; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: linear-gradient(225deg, #e0e5ef2e 50%, transparent 50%); }
.medusa-web__proc-num { font: 400 12px/1 var(--mono); letter-spacing: .12em; color: #c9b9ff; }
.medusa-web__proc-dot { position: absolute; top: 15px; right: 26px; width: 6px; height: 6px; border-radius: 50%; background: #6f7893; transition: background .3s, box-shadow .3s; }
.medusa-web__proc-name { font: 400 clamp(13px, 1vw, 16px)/1.2 var(--_font-default); }
.medusa-web__proc-tab:hover { border-color: #c9b9ff55; color: #e0e5ef; }
.medusa-web__proc-tab[aria-selected="true"] { border-color: #a58cffaa; color: #f1f3f9; background: linear-gradient(135deg, #3a2f6aa6, #141a36e6); }
.medusa-web__proc-tab[aria-selected="true"] .medusa-web__proc-dot { background: #c9b9ff; box-shadow: 0 0 10px #a58cff; }
.medusa-web__proc-tab:focus-visible { outline: 2px solid #a3b8d2; outline-offset: 3px; }

.medusa-web__proc-panel { position: relative; padding: clamp(22px, 2.4vw, 34px); border: 1px solid #e0e5ef1f; background: #0d1327d9; }
.medusa-web__proc-panel::before, .medusa-web__proc-panel::after { content: ''; position: absolute; width: 14px; height: 14px; border: 0 solid #c9b9ff; }
.medusa-web__proc-panel::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.medusa-web__proc-panel::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.medusa-web__proc-panel[hidden] { display: none; }
.medusa-web__proc-phase { margin: 0 0 clamp(14px, 2vw, 26px); font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #a79ac8; }
.medusa-web__proc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(20px, 4vw, 70px); align-items: center; }
.medusa-web__proc-copy h4 { margin: 0 0 16px; font: 300 clamp(30px, 3vw, 48px)/1.05 var(--_font-default); letter-spacing: -.04em; color: #f1f3f9; }
.medusa-web__proc-copy p { max-width: 52ch; margin: 0; font: 300 clamp(14px, 1.1vw, 17px)/1.65 var(--_font-default); color: #aab6c8; }
.medusa-web__proc-shape { position: relative; justify-self: center; width: 100%; max-width: 300px; text-align: center; }
.medusa-web__proc-shape::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, #7657f04d, transparent 70%); filter: blur(10px); }
.medusa-web__proc-canvas { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.medusa-web__proc-count { position: relative; display: block; margin-top: 4px; font: 400 11px/1 var(--mono); letter-spacing: .2em; color: #c9b9ff; }
.medusa-web__proc-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px clamp(24px, 4vw, 64px); margin: clamp(20px, 2.4vw, 34px) 0 0; padding-top: 18px; border-top: 1px solid #e0e5ef1f; }
.medusa-web__proc-out span { font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8f9ab0; }
.medusa-web__proc-out strong { font: 400 clamp(14px, 1.1vw, 17px)/1.3 var(--_font-default); color: #f1f3f9; }

@media (max-width: 991px) {
  .medusa-web__proc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .medusa-web__proc-body { grid-template-columns: 1fr; }
  .medusa-web__proc-slot { order: -1; }
}
@media (max-width: 767px) {
  .medusa-web__proc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .medusa-web__proc-tab { min-height: 76px; }
}

/* Area of expertise and tools per step. */
.medusa-web__proc-copy .medusa-web__proc-domain { margin: clamp(18px, 2vw, 28px) 0 12px; font: 400 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #b9a8ff; }
.medusa-web__proc-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.medusa-web__proc-tools li { padding: 9px 14px; border: 1px solid #e0e5ef2e; border-radius: 3px; background: #ffffff0a; font: 400 clamp(12px, .95vw, 14px)/1 var(--_font-default); color: #c9d2e2; }

/* Panel content eases in on every tab change; the active tab's dot breathes. */
@media (prefers-reduced-motion: no-preference) {
  .medusa-web__proc-panel:not([hidden]) .medusa-web__proc-copy, .medusa-web__proc-panel:not([hidden]) .medusa-web__proc-out { animation: medusa-proc-in .6s cubic-bezier(.2, .8, .2, 1) both; }
  .medusa-web__proc-panel:not([hidden]) .medusa-web__proc-out { animation-delay: .1s; }
  .medusa-web__proc-tab[aria-selected="true"] .medusa-web__proc-dot { animation: medusa-proc-dot 2.4s ease-in-out infinite; }
  @keyframes medusa-proc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes medusa-proc-dot { 50% { box-shadow: 0 0 18px 3px #a58cff; } }
}
.medusa-web__proc-tools li.medusa-web__proc-more { border-style: dashed; border-color: #a58cff66; background: transparent; color: #b9a8ff; font-style: italic; }

/* Text and animation sit together in the middle of the panel, with a larger stage for the orbits. */
.medusa-web__proc-body { grid-template-columns: minmax(0, 640px) minmax(240px, 300px); justify-content: start; gap: clamp(40px, 9vw, 160px); }
.medusa-web__proc-shape { max-width: 290px; }
@media (max-width: 991px) { .medusa-web__proc-body { grid-template-columns: 1fr; } .medusa-web__proc-shape { max-width: 260px; } }

/* Tools: plain icons in horizontal rows, no glass. */
.medusa-web__tech { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 40px) 20px; max-width: none; }
.medusa-web__tech li, .medusa-web__tech li.medusa-web__tech-more { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; grid-column: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.medusa-web__tech li:hover { transform: none; }
.medusa-web__tech .medusa-web__icon { width: 60px; height: 60px; margin: 0 0 12px; border-radius: 16px; }
.medusa-web__tech .medusa-web__icon img { width: 36px; height: 36px; }
.medusa-web__tech li > strong { font-size: clamp(16px, 1.3vw, 20px); }
.medusa-web__tech li > em { font-size: 13px; }
.medusa-web__tech li.medusa-web__tech-more { justify-content: center; }
.medusa-web__tech-more strong { color: #b9a8ff; font-style: italic; }
@media (max-width: 1199px) { .medusa-web__tech { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .medusa-web__tech { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tools: two horizontal rows (8 across), smaller icons. */
.medusa-web__tech { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 36px) 14px; }
.medusa-web__tech .medusa-web__icon { width: 48px; height: 48px; margin-bottom: 10px; border-radius: 13px; }
.medusa-web__tech .medusa-web__icon img { width: 28px; height: 28px; }
.medusa-web__tech li > strong { font-size: clamp(14px, 1.05vw, 17px); }
.medusa-web__tech li > em { font-size: 12px; }
@media (max-width: 1199px) { .medusa-web__tech { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .medusa-web__tech { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Dropdown: the bar keeps only the title and the stone; everything else opens below. ---- */
.medusa-web h2.medusa-web__heading { margin: 0; font: inherit; letter-spacing: 0; }
.medusa-web__toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(16px, 3vw, 48px); width: 100%; padding: clamp(18px, 2vw, 30px) 0; border: 0; border-top: 1px solid #e0e5ef24; border-bottom: 1px solid #e0e5ef24; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .3s, background .3s; }
.medusa-web__toggle:hover { border-color: #c9b9ff55; background: linear-gradient(90deg, transparent, #7657f012); }
.medusa-web__toggle:focus-visible { outline: 2px solid #a3b8d2; outline-offset: 4px; }
.medusa-web__toggle-text { display: block; }
.medusa-web__toggle .medusa-web__kicker { display: block; margin: 0 0 14px; }
.medusa-web__toggle-title { display: block; font: 400 clamp(32px, 4.4vw, 76px)/1 var(--_font-default); letter-spacing: -.05em; color: #f1f3f9; }
/* The animated stone stays in the bar, open or closed. */
.medusa-web__toggle .medusa-web__stone { display: block; width: clamp(110px, 12vw, 180px); max-width: none; }
.medusa-web__chevron { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #e0e5ef38; border-radius: 50%; color: #e0e5ef; transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .3s; }
.medusa-web__chevron svg { width: 22px; height: 22px; }
.medusa-web__toggle:hover .medusa-web__chevron { border-color: #c9b9ff80; background: #ffffff0f; }
.medusa-web__toggle[aria-expanded="true"] .medusa-web__chevron { transform: rotate(180deg); }

/* Height animates between 0 and content size; collapsing only applies once the script has run. */
.medusa-web__panel-inner { min-height: 0; }
.medusa-web[data-accordion] .medusa-web__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .7s cubic-bezier(.2, .8, .2, 1), visibility 0s .7s; }
.medusa-web[data-accordion] .medusa-web__panel-inner { overflow: hidden; }
.medusa-web[data-accordion].is-open .medusa-web__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .7s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.medusa-web__panel-inner > .medusa-web__intro { margin-top: clamp(28px, 3vw, 48px); margin-bottom: 0; display: block; }
.medusa-web__panel-inner > .medusa-web__block:last-child { padding-bottom: 8px; }
@media (max-width: 767px) { .medusa-web__toggle { grid-template-columns: minmax(0, 1fr) auto; } .medusa-web__toggle .medusa-web__stone { display: none; } }
@media (prefers-reduced-motion: reduce) { .medusa-web[data-accordion] .medusa-web__panel, .medusa-web__chevron { transition: none; } }

/* Phones: three tools per row, smaller. */
@media (max-width: 767px) {
  .medusa-web__tech { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .medusa-web__tech .medusa-web__icon { width: 40px; height: 40px; margin-bottom: 8px; border-radius: 11px; }
  .medusa-web__tech .medusa-web__icon img { width: 23px; height: 23px; }
  .medusa-web__tech li > strong { font-size: 13px; }
  .medusa-web__tech li > em { font-size: 10.5px; line-height: 1.3; }
}

/* Breathing room: between the intro line and the icons, and between each icon and its name. */
.medusa-web__block .medusa-web__tech-note { margin: -6px 0 clamp(30px, 3.4vw, 48px); }
.medusa-web__tech .medusa-web__icon { margin-bottom: 14px; }
.medusa-web__tech li > em { margin-top: 2px; }
@media (max-width: 767px) {
  .medusa-web__block .medusa-web__tech-note { margin-bottom: 34px; }
  .medusa-web__tech { row-gap: 28px; }
  .medusa-web__tech .medusa-web__icon { margin-bottom: 14px; }
}

/* Phones: tighter gap under the page title, and the stone stays in the bar (smaller). */
@media (max-width: 767px) {
  .medusa-services-hero { min-height: 0; padding-bottom: 2.4rem; }
  .medusa-web { padding-top: 0; }
  .medusa-web__label { margin-bottom: 14px; }
  .medusa-web__toggle { grid-template-columns: minmax(0, 1fr) 84px 44px; gap: 8px; padding: 16px 0; }
  .medusa-web__toggle .medusa-web__stone { display: block; width: 84px; }
  .medusa-web__toggle-title { font-size: clamp(24px, 6.6vw, 30px); }
  .medusa-web__toggle .medusa-web__kicker { margin-bottom: 10px; font-size: 9.5px; letter-spacing: .12em; }
  .medusa-web__chevron { width: 44px; height: 44px; }
}
.medusa-web__toggle .medusa-web__stone { order: 0; justify-self: end; }

/* ---- Several service bars stacked in a list ---- */
.medusa-services-list { max-width: 1760px; margin: 0 auto; padding: clamp(24px, 3vw, 48px) 3.2rem clamp(80px, 9vw, 140px); }
.medusa-services-list > .medusa-web { max-width: none; margin: 0; padding: 0; transition: padding-bottom .7s cubic-bezier(.2, .8, .2, 1); }
.medusa-services-list > .medusa-web + .medusa-web .medusa-web__toggle { border-top-color: transparent; }
.medusa-services-list > .medusa-web.is-open { padding-bottom: clamp(40px, 5vw, 80px); }
.medusa-web--stub .medusa-web__toggle-title { font-size: clamp(26px, 3.2vw, 54px); letter-spacing: -.045em; }
.medusa-web__soon-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 2.4vw, 36px) 0; }
.medusa-web__soon-note p { max-width: 56ch; margin: 0; font: 300 clamp(14px, 1.1vw, 17px)/1.6 var(--_font-default); color: #afb9cc; }
@media (max-width: 767px) { .medusa-services-list { padding-inline: 2.2rem; } .medusa-web--stub .medusa-web__toggle-title { font-size: clamp(20px, 5.6vw, 26px); } }

/* Bars carry the technical service name only, one size for all. */
.medusa-web__toggle-title, .medusa-web--stub .medusa-web__toggle-title { font-size: clamp(26px, 3.2vw, 52px); letter-spacing: -.045em; }
.medusa-web__toggle { padding-block: clamp(14px, 1.6vw, 24px); }
@media (max-width: 767px) { .medusa-web__toggle-title, .medusa-web--stub .medusa-web__toggle-title { font-size: clamp(20px, 5.8vw, 26px); } }

/* "Coming soon" bubble beside the stone. */
.medusa-web__toggle--soon { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.medusa-web__badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 1px solid #a58cff66; border-radius: 999px; background: linear-gradient(135deg, #7657f040, #5b43c026); box-shadow: inset 1px 1px 0 #ffffff1f, 0 6px 22px #7657f02e; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #d9d0ff; white-space: nowrap; }
.medusa-web__badge i { width: 7px; height: 7px; border-radius: 50%; background: #c9b9ff; box-shadow: 0 0 10px #a58cff; }
@media (prefers-reduced-motion: no-preference) { .medusa-web__badge i { animation: medusa-proc-dot 2.4s ease-in-out infinite; } }
@media (max-width: 767px) {
  .medusa-web__toggle--soon { grid-template-columns: minmax(0, 1fr) 84px 44px; }
  .medusa-web__toggle--soon .medusa-web__toggle-text { grid-column: 1; grid-row: 1; }
  .medusa-web__toggle--soon .medusa-web__badge { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 8px; padding: 7px 12px; font-size: 9.5px; }
  .medusa-web__toggle--soon .medusa-web__stone, .medusa-web__toggle--soon .medusa-web__chevron { grid-row: 1 / span 2; }
  .medusa-web__toggle--soon .medusa-web__stone { grid-column: 2; }
  .medusa-web__toggle--soon .medusa-web__chevron { grid-column: 3; }
}

/* Process console: the animation sits toward the right, with a margin from the panel edge. */
.medusa-web__proc-body { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); justify-content: stretch; gap: clamp(24px, 4vw, 70px); }
.medusa-web__proc-shape { margin-right: clamp(0px, 7vw, 140px); }
@media (max-width: 991px) { .medusa-web__proc-body { grid-template-columns: 1fr; } .medusa-web__proc-shape { margin-right: 0; } }

/* ---- Portfolio: a dropdown with one dropdown per project, each holding a carousel ---- */
.medusa-web__block--portfolio { margin-top: clamp(40px, 5vw, 80px); }
.medusa-sub__toggle { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 22px; border: 1px solid #e0e5ef24; border-radius: 18px; background: linear-gradient(145deg, #222c4a73, #0c122259); box-shadow: inset 1px 1px 0 #ffffff12; color: #f1f3f9; text-align: left; font: inherit; cursor: pointer; transition: border-color .3s; }
.medusa-sub__toggle:hover { border-color: #c9b9ff66; }
.medusa-sub__toggle:focus-visible { outline: 2px solid #a3b8d2; outline-offset: 3px; }
.medusa-sub__title { flex: 1; font: 400 clamp(20px, 1.9vw, 30px)/1.1 var(--_font-default); letter-spacing: -.03em; }
.medusa-sub__count { font: 400 11px/1 var(--mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #a79ac8; }
.medusa-sub__chevron { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e0e5ef38; border-radius: 50%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.medusa-sub__chevron svg { width: 18px; height: 18px; }
.medusa-sub.is-open > .medusa-sub__toggle .medusa-sub__chevron { transform: rotate(180deg); }
.medusa-sub__panel { min-width: 0; }
.medusa-sub[data-sub-ready] > .medusa-sub__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1), visibility 0s .6s; }
.medusa-sub[data-sub-ready].is-open > .medusa-sub__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.medusa-sub__inner { min-height: 0; min-width: 0; overflow: hidden; }
.medusa-sub--portfolio > .medusa-sub__panel > .medusa-sub__inner { padding-top: 12px; }
/* Project rows sit inside the portfolio, slimmer and indented by a line. */
.medusa-sub--project { margin: 0 0 10px 18px; padding-left: 16px; border-left: 1px solid #c9b9ff33; }
.medusa-sub--project > .medusa-sub__toggle { padding: 13px 18px; border-radius: 14px; background: #ffffff08; box-shadow: none; }
.medusa-sub--project .medusa-sub__title { font-size: clamp(17px, 1.5vw, 22px); }
.medusa-sub--project > .medusa-sub__panel > .medusa-sub__inner { padding: 16px 0 6px; }
.medusa-sub--project .medusa-web__work { margin: 0; }

/* Carousel cards for the portfolio: images are shown whole; results are plain glass cards. */
.medusa-web__card--shot a { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(145deg, #222c4a99, #0c1222b3); }
.medusa-web__card--shot a::after { display: none; }
.medusa-web__card--shot img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; opacity: 0; transition: opacity .6s; }
.medusa-web__card--shot img[src] { opacity: 1; }
.medusa-web__card--metric > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; box-sizing: border-box; height: 100%; min-height: 220px; padding: 24px; border: 1px solid #e0e5ef2e; border-radius: 24px; background: linear-gradient(145deg, #3a2f6a66, #1b2a5c52 55%, #0c122259); box-shadow: inset 1px 1px 0 #ffffff14; }
.medusa-web__card--metric strong { font: 400 clamp(26px, 2.6vw, 44px)/1.05 var(--_font-default); letter-spacing: -.04em; color: #f1f3f9; }
.medusa-web__card--lead strong { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -.02em; }
.medusa-web__card--metric .medusa-web__tags { position: static; }
.medusa-web__delta { font: 400 12px/1 var(--mono); letter-spacing: .08em; color: #7be0a8; }
.medusa-web__delta.is-cost { color: #c9d2e2; }
.medusa-web__more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #c9b9ff; text-decoration: none; }
.medusa-web__more svg { width: 14px; height: 14px; }
.medusa-web__more:hover { color: #fff; }
@media (max-width: 767px) { .medusa-sub--project { margin-left: 6px; padding-left: 10px; } .medusa-sub__toggle { padding: 14px 16px; } .medusa-sub__count { display: none; } }
@media (prefers-reduced-motion: reduce) { .medusa-sub[data-sub-ready] > .medusa-sub__panel, .medusa-sub__chevron { transition: none; } }
/* The "Full dashboard" link inside a result card is a plain text link, not a card. */
.medusa-web__card--metric a.medusa-web__more { display: inline-flex; height: auto; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.medusa-web__card--metric a.medusa-web__more::after { display: none; }

/* Business cards: front and back in one horizontal row. */
.medusa-web__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.medusa-web__pair a { display: grid; place-items: center; aspect-ratio: 7 / 4; overflow: hidden; border: 1px solid #e0e5ef2e; border-radius: 20px; background: linear-gradient(145deg, #222c4a99, #0c1222b3); }
.medusa-web__pair img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s; }
.medusa-web__pair img[src] { opacity: 1; }
.medusa-sub--portfolio + .medusa-sub--portfolio { margin-top: 12px; }

/* Figma screens: whole pages. The card shows the top; hover or focus scrolls through the page. */
.medusa-web__card--screen a { aspect-ratio: 4 / 5; background: #0c1222; }
.medusa-web__card--screen a::after { display: none; }
.medusa-web__card--screen img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .6s, object-position 7s linear; }
.medusa-web__card--screen img[src] { opacity: 1; }
.medusa-web__card--screen a:hover img, .medusa-web__card--screen a:focus-visible img { object-position: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .medusa-web__card--screen img { transition: opacity .3s; } .medusa-web__card--screen a:hover img { object-position: 50% 0; } }
