:root {
  color-scheme: dark;
  --surface-rgb: 255,255,255;
  --bg: #090b10;
  --bg-soft: #10141d;
  --panel: #151a24;
  --panel-2: #1d2430;
  --text: #f7f3eb;
  --muted: #b8bdc8;
  --line: rgba(var(--surface-rgb),.1);
  --gold: #f3b83f;
  --gold-2: #ffd676;
  --green: #3ad29f;
  --red: #e35454;
  --font-scale: 1;
  --heading-scale: 1;
  --font-body: 16px;
  --font-nav: 15px;
  --font-buttons: 16px;
  --font-h1: 76px;
  --font-h2: 48px;
  --font-h3: 21px;
  --font-lead: 20px;
  --font-small: 14px;
  --font-brand: 16px;
  --font-hello: 22px;
  --font-eyebrow: 16px;
  --font-roles: 16px;
  --font-stat-value: 34px;
  --font-stat-label: 16px;
  --font-section-text: 18px;
  --font-home-services-eyebrow: 16px;
  --font-home-services-title: 48px;
  --font-home-services-text: 18px;
  --font-home-service-card-title: 21px;
  --font-home-service-card-text: 16px;
  --font-home-portfolio-eyebrow: 16px;
  --font-home-portfolio-title: 48px;
  --font-home-portfolio-text: 18px;
  --font-home-portfolio-card-title: 21px;
  --font-home-portfolio-card-text: 16px;
  --font-portfolio-page-eyebrow: 16px;
  --font-portfolio-page-title: 48px;
  --font-portfolio-page-text: 20px;
  --font-portfolio-count: 66px;
  --font-portfolio-card-title: 21px;
  --font-portfolio-card-text: 16px;
  --font-card-text: 16px;
  --font-cta-title: 28px;
  --font-dashboard-title: 30px;
  --font-admin-title: 22px;
  --font-why-page-eyebrow: 16px;
  --font-why-page-title: 48px;
  --font-why-page-text: 20px;
  --font-why-us-title: 21px;
  --font-why-us-text: 16px;
  --font-work-title: 64px;
  --font-work-text: 20px;
  --font-work-meta: 16px;
  --font-toggle-title: 18px;
  --font-toggle-text: 16px;
  --font-footer: 14px;
  --font-team-title: 58px;
  --font-team-text: 18px;
  --font-team-featured-name: 30px;
  --font-team-featured-role: 17px;
  --font-team-side-name: 21px;
  --font-team-side-role: 15px;
  --font-team-member-name: 20px;
  --font-team-member-role: 14px;
  --team-featured-width: 100%;
  --team-featured-height: 290px;
  --team-side-card-width: 360px;
  --team-side-card-height: 162px;
  --team-side-photo: 98px;
  --team-side-icon: 68px;
  --team-member-card-width: 220px;
  --team-member-card-height: 244px;
  --team-member-photo: 116px;
  --team-map-gap: 76px;
  --team-row-gap: 20px;
  --content-spacing: .55;
  --page-spacing: .55;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}

:root[data-theme="light"] {
  color-scheme: light;
  --surface-rgb: 22,27,38;
  --bg: #f4f2ec;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f0ece3;
  --text: #1c2230;
  --muted: #5a6072;
  --line: rgba(22,27,38,.14);
  --shadow: 0 24px 60px rgba(22,27,38,.14);
}

/* Light theme: surfaces that use fixed dark literals in the base styles */
[data-theme="light"] body {
  background:
    radial-gradient(circle at 72% 8%, rgba(243,184,63,.16), transparent 30%),
    linear-gradient(180deg, #f7f5f0 0%, #eeebe2 42%, #f7f5f0 100%);
}
[data-theme="light"] .site-header {
  background: rgba(255,255,255,.82);
}
[data-theme="light"] body[data-page="team"] .site-header {
  background: rgba(255,255,255,.82);
}
[data-theme="light"] .nav-links {
  background: rgba(255,255,255,.98);
}
[data-theme="light"] .site-footer {
  background: #ebe7de;
}
[data-theme="light"] .collaboration-form input,
[data-theme="light"] .collaboration-form select,
[data-theme="light"] .collaboration-form textarea {
  background-color: #ffffff;
}
[data-theme="light"] .toast {
  background: rgba(255,255,255,.98);
  color: var(--text);
}
[data-theme="light"] .join-pill,
[data-theme="light"] .cta-card {
  color: #1c2230;
}
/* Keep media overlays dark so controls and video/images stay legible */
[data-theme="light"] .video-lightbox,
[data-theme="light"] .image-lightbox {
  --surface-rgb: 255,255,255;
  --text: #f7f3eb;
}

/* (1) Partner logos: give them a dark chip so light/white logos stay visible */
[data-theme="light"] .partner-card {
  background: #161a22;
  border-color: rgba(22,27,38,.12);
}
[data-theme="light"] .partner-card:hover,
[data-theme="light"] .partner-card:focus-within {
  background: #10131a;
  box-shadow: 0 18px 38px rgba(22,27,38,.18);
}

/* (2) Scroll-to-top button: arrow was white on a white panel */
[data-theme="light"] .float-top {
  color: var(--text);
}

/* (3) Team page: drop the hard dark gradient stop that caused the harsh cut */
[data-theme="light"] .team-page {
  background:
    radial-gradient(circle at 6% 16%, rgba(243,184,63,.10), transparent 26%),
    radial-gradient(circle at 96% 88%, rgba(124,58,237,.08), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 55%, var(--bg) 100%);
}

/* (4) Collaborate page: soften the heavy dark shadow that read as a brown band */
[data-theme="light"] .completion-card,
[data-theme="light"] .collaboration-form fieldset {
  background: #ffffff;
  border-color: rgba(22,27,38,.10);
  box-shadow: 0 16px 40px rgba(22,27,38,.07);
}
/* (4b) Light mode: the <legend> already notches the fieldset border, but at .10
   opacity the border is invisible on the cream page, so the title looked like it
   floated above an unbroken line. Give the fieldset border real contrast so the
   cutout reads the same way it does in dark mode. */
[data-theme="light"] .collaboration-form fieldset {
  border-color: rgba(22,27,38,.24);
}

/* (5) Dashboard light mode */
[data-theme="light"] .dashboard {
  background: var(--bg);
}
[data-theme="light"] .dashboard-nav,
[data-theme="light"] .dashboard-panel,
[data-theme="light"] .admin-card {
  background: #ffffff;
}
[data-theme="light"] .admin-card {
  border-color: rgba(22,27,38,.10);
}
[data-theme="light"] .dash-tab {
  background: #ffffff;
}
[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .field select {
  background: #ffffff;
}

/* Theme toggle button in the nav */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb), .04);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.theme-btn:hover {
  border-color: rgba(243,184,63,.6);
  transform: translateY(-1px);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  font-size: calc(var(--font-body) * var(--font-scale));
  background:
    radial-gradient(circle at 72% 8%, rgba(243,184,63,.12), transparent 28%),
    linear-gradient(180deg, #090b10 0%, #0f1219 42%, #090b10 100%);
  color: var(--text);
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button {
  font: inherit;
  font-size: var(--font-buttons);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(9, 11, 16, .76);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand,
.login-link,
.primary-btn,
.ghost-btn,
.cta-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0;
  font-size: var(--font-brand);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 12px 30px rgba(243,184,63,.2);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gold);
  box-shadow: 0 12px 30px rgba(243,184,63,.2);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: calc(var(--font-nav) * var(--font-scale));
}

.nav-links a,
.footer-grid a {
  transition: color .2s ease;
}

.nav-links a:hover,
.footer-grid a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(var(--surface-rgb),.045);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social-link:hover {
  transform: translateY(-2px);
  color: var(--gold);
  border-color: var(--gold);
}

.language-btn,
.login-link,
.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb),.04);
  color: var(--text);
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-link {
  font-size: var(--font-small);
}

.menu-toggle {
  display: none;
  width: 42px;
  padding: 0;
}

.section-band {
  padding: calc(88px * var(--page-spacing)) 0;
}

.hero {
  padding-top: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 12px;
  font-size: var(--font-eyebrow);
}

.hello {
  margin: 0;
  color: var(--muted);
  font-size: calc(var(--font-hello) * var(--font-scale));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, calc(var(--font-h1) * var(--heading-scale)), 110px);
  line-height: 1.02;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, calc(var(--font-h2) * var(--heading-scale)), 80px);
  line-height: 1.1;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: calc(var(--font-h3) * var(--heading-scale));
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.role-row span,
.tools-list span,
.country-row span,
.partners-grid span,
.payments span,
.course-tag {
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb),.045);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: var(--font-roles);
}

.country-pill.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: calc(var(--font-lead) * var(--font-scale));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  min-height: 52px;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
  font-size: var(--font-buttons);
}

.primary-btn {
  color: #15120a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 18px 45px rgba(243,184,63,.2);
}

.primary-btn.small {
  min-height: 44px;
  padding: 0 18px;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb),.05);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(9,11,16,.84) 100%);
  z-index: 1;
}

.hero-visual img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.experience-badge,
.floating-skill {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 16, .78);
  backdrop-filter: blur(14px);
  padding: 12px 16px;
  font-weight: 800;
}

.experience-badge {
  top: 8%;
  left: 84%;
  color: var(--gold-2);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  width: max-content;
  max-width: calc(100% - 24px);
}

.floating-skill.top {
  left: 18%;
  top: 46%;
  transform: translate(-50%, -50%);
}

.floating-skill.bottom {
  left: 72%;
  top: 86%;
  transform: translate(-50%, -50%);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.stats-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
  padding: 20px;
  text-align: center;
}

.stats-strip strong {
  display: block;
  color: var(--gold);
  font-size: calc(var(--font-stat-value) * var(--heading-scale));
  line-height: 1;
}

.stats-strip span {
  font-size: calc(var(--font-stat-label) * var(--font-scale));
}

.section-heading p,
.service-card p,
.work-card p,
.about-copy p,
.timeline p,
.course-card p,
.site-footer p,
.custom-section-grid p,
.cta-card span {
  color: var(--muted);
  font-size: var(--font-card-text);
}

.countries {
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: rgba(var(--surface-rgb),.025);
}

.country-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.section-heading {
  max-width: 680px;
  text-align: center;
  margin-bottom: calc(38px * var(--page-spacing));
}

.section-heading p {
  font-size: calc(var(--font-section-text) * var(--font-scale));
}

.portfolio-hero {
  padding-top: 92px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(243,184,63,.1), transparent 34%),
    rgba(var(--surface-rgb),.018);
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: end;
  gap: 28px;
}

.portfolio-hero h1 {
  margin-bottom: 18px;
}

body[data-page="home"] #services [data-services-eyebrow] {
  font-size: calc(var(--font-home-services-eyebrow) * var(--font-scale));
}

body[data-page="home"] #services [data-services-title] {
  font-size: clamp(28px, calc(var(--font-home-services-title) * var(--heading-scale)), 80px);
}

body[data-page="home"] #services [data-services-text] {
  font-size: calc(var(--font-home-services-text) * var(--font-scale));
}

body[data-page="home"] #services .service-card h3 {
  font-size: calc(var(--font-home-service-card-title) * var(--heading-scale));
}

body[data-page="home"] #services .service-card p {
  font-size: calc(var(--font-home-service-card-text) * var(--font-scale));
}

body[data-page="home"] #portfolio [data-portfolio-eyebrow] {
  font-size: calc(var(--font-home-portfolio-eyebrow) * var(--font-scale));
}

body[data-page="home"] #portfolio [data-portfolio-title] {
  font-size: clamp(28px, calc(var(--font-home-portfolio-title) * var(--heading-scale)), 80px);
}

body[data-page="home"] #portfolio [data-portfolio-text] {
  font-size: calc(var(--font-home-portfolio-text) * var(--font-scale));
}

body[data-page="home"] #portfolio .work-card h3 {
  font-size: calc(var(--font-home-portfolio-card-title) * var(--heading-scale));
}

body[data-page="home"] #portfolio .work-card p {
  font-size: calc(var(--font-home-portfolio-card-text) * var(--font-scale));
}

body[data-page="home"] [data-section-key="partners"] [data-partners-eyebrow] {
  font-size: calc(var(--font-partners-eyebrow) * var(--font-scale));
}

body[data-page="home"] [data-section-key="partners"] [data-partners-title] {
  font-size: clamp(28px, calc(var(--font-partners-title) * var(--heading-scale)), 80px);
}

body[data-page="home"] [data-section-key="partners"] [data-partners-text] {
  font-size: calc(var(--font-partners-text) * var(--font-scale));
}

body[data-page="portfolio"] [data-portfolio-eyebrow] {
  font-size: calc(var(--font-portfolio-page-eyebrow) * var(--font-scale));
}

body[data-page="portfolio"] [data-portfolio-title] {
  font-size: clamp(32px, calc(var(--font-portfolio-page-title) * var(--heading-scale)), 96px);
}

body[data-page="portfolio"] [data-portfolio-text] {
  font-size: calc(var(--font-portfolio-page-text) * var(--font-scale));
}

#why-us-page [data-why-eyebrow] {
  font-size: calc(var(--font-why-page-eyebrow) * var(--font-scale));
}

#why-us-page [data-why-title] {
  font-size: clamp(32px, calc(var(--font-why-page-title) * var(--heading-scale)), 96px);
}

#why-us-page [data-why-text] {
  font-size: calc(var(--font-why-page-text) * var(--font-scale));
}

.portfolio-summary {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
  text-align: center;
}

.portfolio-summary strong {
  color: var(--gold);
  font-size: calc(var(--font-portfolio-count) * var(--heading-scale));
  line-height: 1;
}

.portfolio-summary span {
  color: var(--muted);
  font-weight: 800;
  font-size: var(--font-stat-label);
}

.team-page {
  position: relative;
  padding-top: 72px;
  padding-bottom: 38px;
  border-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 16%, rgba(243,184,63,.12), transparent 24%),
    radial-gradient(circle at 96% 88%, rgba(124,58,237,.12), transparent 25%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 52%, #0a0c12 100%);
}

.team-page::before {
  content: "";
  position: absolute;
  inset: 86px auto auto 0;
  width: 220px;
  height: 180px;
  opacity: .18;
  background-image: radial-gradient(circle, var(--gold) 1.1px, transparent 1.1px);
  background-size: 15px 15px;
}

.team-page::after {
  content: "";
  position: absolute;
  right: 68%;
  bottom: 26px;
  width: 520px;
  height: 360px;
  border: 1px solid rgba(243,184,63,.12);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.team-stack {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  gap: 44px;
  position: relative;
  z-index: 1;
  width: calc(100vw - 32px);
  max-width: none;
}

.team-hero {
  max-width: 760px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.team-hero h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(46px, calc(var(--font-team-title) * var(--heading-scale)), 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.team-hero .lead {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: calc(var(--font-team-text) * var(--font-scale));
  font-weight: 700;
  line-height: 1.75;
}

.team-hero .lead::after {
  content: "";
  display: block;
  width: 82px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #7c3aed);
  box-shadow: 18px 0 0 -7px var(--gold);
}

.team-lead-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  justify-self: center;
  justify-items: center;
}

.team-featured-wrap {
  grid-column: 1;
  grid-row: 1;
  display: var(--team-featured-display, grid);
  gap: 0;
  position: relative;
  width: var(--team-featured-width);
  max-width: 100%;
  justify-items: center;
}

.team-featured-label {
  display: none;
}

.team-featured-card,
.team-side-card,
.team-member-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(var(--surface-rgb),.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.34);
  transform: translateY(0);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.team-side-card::before,
.team-member-card::before {
  content: "";
  display: block;
  position: absolute;
  inset: -8px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background: rgba(243,184,63,.22);
  filter: blur(18px);
  transition: opacity .35s ease, transform .35s ease;
  transform: scale(.96);
}

.team-featured-card {
  display: var(--team-featured-display, grid);
  justify-items: center;
  align-content: center;
  gap: 18px;
  min-height: var(--team-featured-height);
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 28px;
  border-color: rgba(243,184,63,.34);
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--surface-rgb),.16), transparent 22%),
    linear-gradient(135deg, rgba(243,184,63,.22) 0%, rgba(47,58,224,.34) 48%, rgba(124,58,237,.3) 100%),
    rgba(var(--surface-rgb),.07);
  box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(243,184,63,.08) inset;
  isolation: isolate;
}

.team-featured-card::before {
  display: none;
}

.team-featured-card::after {
  display: none;
}

.team-side-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), var(--team-side-card-width)));
  gap: var(--team-row-gap);
  position: relative;
  width: min(100%, calc((var(--team-side-card-width) * 3) + (var(--team-row-gap) * 2)));
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}

.team-side-list::before {
  display: none;
}

.team-side-list::after {
  display: none;
}

.team-side-card::after {
  display: none;
}

.team-side-card .team-member-copy::before {
  display: none;
}

.team-side-card .team-member-copy::after {
  display: none;
}

.team-side-card {
  direction: ltr;
  min-height: var(--team-side-card-height);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 16px 24px;
  overflow: visible;
  text-align: center;
  width: 100%;
  max-width: var(--team-side-card-width);
}

.team-photo {
  position: relative;
  z-index: 3;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.03) contrast(1.02);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.team-featured-card .team-photo {
  width: calc(100% - 56px);
  height: calc(var(--team-featured-height) * .72);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
}

.team-featured-card .team-photo img {
  border-radius: 16px;
}

.team-side-card .team-photo,
.team-member-card .team-photo {
  width: clamp(72px, calc(var(--team-side-card-height) * .58), 172px);
  height: clamp(72px, calc(var(--team-side-card-height) * .58), 172px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 9px 22px rgba(16, 24, 40, .12);
}

.team-member-card .team-photo {
  width: clamp(82px, calc(var(--team-member-card-height) * .48), 190px);
  height: clamp(82px, calc(var(--team-member-card-height) * .48), 190px);
}

.team-featured-card:hover,
.team-side-card:hover,
.team-member-card:hover {
  border-color: rgba(243,184,63,.45);
  box-shadow: 0 24px 52px rgba(0,0,0,.34);
  transform: translateY(-8px);
}

.team-featured-card:hover .team-photo img,
.team-side-card:hover .team-photo img,
.team-member-card:hover .team-photo img {
  transform: scale(1.07);
}

.team-member-copy {
  direction: rtl;
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  text-align: right;
}

.team-side-card .team-member-copy {
  text-align: center;
}

.team-featured-card .team-member-copy {
  width: 100%;
  padding: 0;
  border: 0;
  color: #ffffff;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 0;
}

.team-member-copy h2,
.team-member-copy h3 {
  margin: 0 0 8px;
  color: inherit;
  font-size: calc(var(--font-team-side-name) * var(--heading-scale));
  line-height: 1.25;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.team-featured-card .team-member-copy h2 {
  margin: 0;
  font-size: calc(var(--font-team-featured-name) * var(--heading-scale));
}

.team-side-card .team-member-copy h2 {
  font-size: calc(var(--font-team-side-name) * var(--heading-scale));
}

.team-member-card .team-member-copy h2 {
  font-size: calc(var(--font-team-member-name) * var(--heading-scale));
}

.team-member-copy p {
  margin: 0;
  color: var(--muted);
  font-size: calc(var(--font-team-side-role) * var(--font-scale));
  font-weight: 700;
  overflow-wrap: anywhere;
}

.team-featured-card .team-member-copy p {
  margin: 0;
  color: rgba(var(--surface-rgb),.9);
  font-size: calc(var(--font-team-featured-role) * var(--font-scale));
}

.team-member-card .team-member-copy p {
  font-size: calc(var(--font-team-member-role) * var(--font-scale));
}

.team-icon {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: var(--team-side-icon);
  height: var(--team-side-icon);
  border-radius: 50%;
  color: #8fa4ff;
  background: linear-gradient(135deg, rgba(49,88,239,.16), rgba(124,58,237,.14));
}

.team-featured-card .team-icon {
  display: none;
}

.team-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.1;
}

.team-actions {
  display: none;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.team-actions a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--surface-rgb),.42);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(var(--surface-rgb),.08);
  transition: transform .25s ease, background .25s ease;
}

.team-actions a:hover {
  transform: translateY(-3px);
  background: rgba(var(--surface-rgb),.18);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), var(--team-member-card-width)));
  gap: var(--team-row-gap);
  position: relative;
  width: min(1460px, calc(100% - 32px));
  margin-inline: auto;
  justify-content: center;
  justify-items: center;
  z-index: 1;
}

.team-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

.team-page-actions .primary-btn,
.team-page-actions .ghost-btn {
  min-width: 180px;
  justify-content: center;
}

.team-page-actions .primary-btn,
.team-page-actions .ghost-btn,
.portfolio-page-actions .primary-btn,
.portfolio-page-actions .ghost-btn {
  position: relative;
  overflow: visible;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.team-page-actions .primary-btn:hover,
.team-page-actions .primary-btn:focus-visible,
.portfolio-page-actions .primary-btn:hover,
.portfolio-page-actions .primary-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0,0,0,.28), 0 0 28px rgba(243,184,63,.34);
}

.team-page-actions .ghost-btn:hover,
.team-page-actions .ghost-btn:focus-visible,
.portfolio-page-actions .ghost-btn:hover,
.portfolio-page-actions .ghost-btn:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(143,164,255,.6);
  box-shadow: 0 18px 46px rgba(0,0,0,.28), 0 0 26px rgba(124,58,237,.28);
}

.portfolio-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

.portfolio-page-actions .primary-btn,
.portfolio-page-actions .ghost-btn {
  min-width: 220px;
  justify-content: center;
}

.team-grid::before {
  display: none;
}

.team-grid::after {
  display: none;
}

.team-member-card::after {
  display: none;
}

.team-member-card {
  min-height: var(--team-member-card-height);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  padding: 18px;
  overflow: visible;
  text-align: center;
  width: 100%;
  max-width: var(--team-member-card-width);
}

.team-side-card.is-first-highlighted {
  border-color: rgba(243,184,63,.44);
  background:
    radial-gradient(circle at 50% 0%, rgba(243,184,63,.18), transparent 38%),
    linear-gradient(180deg, rgba(var(--surface-rgb),.09), rgba(var(--surface-rgb),.045));
  box-shadow: 0 22px 54px rgba(0,0,0,.38), 0 0 0 1px rgba(243,184,63,.09) inset;
}

.team-member-card.is-second-highlighted {
  border-color: rgba(124,58,237,.44);
  background:
    radial-gradient(circle at 50% 0%, rgba(124,58,237,.2), transparent 38%),
    linear-gradient(180deg, rgba(var(--surface-rgb),.085), rgba(var(--surface-rgb),.04));
  box-shadow: 0 22px 54px rgba(0,0,0,.36), 0 0 0 1px rgba(124,58,237,.1) inset;
}

.team-side-card.is-first-highlighted::before,
.team-member-card.is-second-highlighted::before {
  background: rgba(243,184,63,.28);
}

.team-member-card.is-second-highlighted::before {
  background: rgba(124,58,237,.3);
}

.team-side-card.is-first-highlighted .team-photo,
.team-member-card.is-second-highlighted .team-photo {
  box-shadow: 0 0 0 4px rgba(243,184,63,.22), 0 14px 30px rgba(0,0,0,.22);
}

.team-member-card.is-second-highlighted .team-photo {
  box-shadow: 0 0 0 4px rgba(124,58,237,.24), 0 14px 30px rgba(0,0,0,.22);
}

.team-side-card:hover::before,
.team-side-card:focus-within::before,
.team-member-card:hover::before,
.team-member-card:focus-within::before {
  opacity: 1;
  transform: scale(1);
}

.team-side-card.is-first-highlighted:hover,
.team-side-card.is-first-highlighted:focus-within {
  border-color: rgba(243,184,63,.7);
  box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 34px rgba(243,184,63,.18);
}

.team-member-card.is-second-highlighted:hover,
.team-member-card.is-second-highlighted:focus-within {
  border-color: rgba(124,58,237,.7);
  box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 34px rgba(124,58,237,.2);
}

.team-member-card .team-icon {
  display: none;
}

.team-member-card .team-member-copy {
  width: 100%;
  text-align: center;
}

.team-member-card .team-member-copy p::after,
.team-side-card .team-member-copy p::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #7c3aed);
}

.team-side-card .team-member-copy p::after {
  margin-inline: auto;
}

body[data-page="team"] {
  background: var(--bg);
  color: var(--text);
}

body[data-page="team"] .site-header {
  background: rgba(9, 11, 16, .76);
  border-bottom-color: var(--line);
  box-shadow: none;
}

body[data-page="team"] .brand,
body[data-page="team"] .nav-links,
body[data-page="team"] .nav-links a,
body[data-page="team"] .language-btn,
body[data-page="team"] .menu-toggle {
  color: var(--text);
}

body[data-page="team"] .nav-links a:hover {
  color: var(--gold);
}

body[data-page="team"] .social-link,
body[data-page="team"] .language-btn,
body[data-page="team"] .menu-toggle {
  border-color: var(--line);
  background: rgba(var(--surface-rgb),.045);
}

body[data-page="team"] .eyebrow {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
}

body[data-page="team"] main + .site-footer {
  background: var(--bg-soft);
  color: var(--text);
  border-top: 1px solid var(--line);
}

body[data-page="team"] .site-footer p,
body[data-page="team"] .footer-grid a,
body[data-page="team"] .footer-bottom {
  color: var(--muted);
}

body[data-page="team"] .site-footer h3,
body[data-page="team"] .site-footer h4 {
  color: var(--text);
}

body[data-page="team"] .section-band.alt {
  padding-top: 16px;
  padding-bottom: 34px;
  background:
    radial-gradient(circle at 96% 90%, rgba(124,58,237,.1), transparent 22%),
    linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
}

body[data-page="team"] .section-heading {
  display: none;
}

body[data-page="team"] .section-heading h2 {
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
}

body[data-page="team"] .reveal.is-visible {
  animation: teamRise .7s cubic-bezier(.22, 1, .36, 1) both;
}

body[data-page="team"] .team-side-card:nth-child(2),
body[data-page="team"] .team-member-card:nth-child(2) {
  animation-delay: .08s;
}

body[data-page="team"] .team-member-card:nth-child(3) {
  animation-delay: .14s;
}

body[data-page="team"] .team-member-card:nth-child(4) {
  animation-delay: .2s;
}

@keyframes teamRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.collaboration-page {
  padding-top: 92px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(243,184,63,.1), transparent 34%),
    rgba(var(--surface-rgb),.018);
  overflow-x: clip;
}

.collaboration-shell {
  display: grid;
  width: min(820px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 820px;
  overflow-x: hidden;
}

.collaboration-intro {
  position: static;
  text-align: center;
}

.join-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(243,184,63,.48);
  border-radius: 999px;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(243,184,63,.18);
}

.collaboration-intro h1 {
  margin: 22px 0 14px;
  font-size: clamp(34px, calc(var(--font-portfolio-page-title) * var(--heading-scale)), 88px);
}

.collaboration-intro .lead {
  max-width: 680px;
  margin-inline: auto;
  color: var(--muted);
}

.collaboration-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.completion-card,
.collaboration-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
}

.completion-card {
  position: sticky;
  top: 92px;
  z-index: 8;
  padding: 18px;
  display: grid;
  gap: 12px;
  backdrop-filter: blur(16px);
}

.completion-card > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
}

.completion-card strong {
  color: var(--gold);
}

.completion-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(var(--surface-rgb),.08);
}

.completion-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width .25s ease;
}

.collaboration-form fieldset {
  margin: 0;
  padding: 22px;
}

.collaboration-form legend {
  padding: 0 8px;
  color: var(--gold);
  font-weight: 900;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.collaboration-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  min-width: 0;
}

.collaboration-choice-field,
.form-label {
  display: grid;
  gap: 10px;
}

.form-label,
.form-label-text {
  color: var(--text);
  font-weight: 800;
}

.form-label-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.required-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid rgba(243,184,63,.45);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(243,184,63,.09);
  font-size: 12px;
  line-height: 1;
}

.required-mark span {
  font-size: 16px;
  line-height: 1;
}

.field-description {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.collaboration-form input,
.collaboration-form select,
.collaboration-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(8,10,15,.72);
  color: var(--text);
  padding: 10px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.collaboration-form textarea {
  resize: vertical;
}

.collaboration-form input:focus,
.collaboration-form select:focus,
.collaboration-form textarea:focus {
  border-color: rgba(243,184,63,.72);
  box-shadow: 0 0 0 3px rgba(243,184,63,.12);
}

.collaboration-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    left 18px center,
    left 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-start: 34px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  cursor: pointer;
  position: relative;
}

.choice-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.035);
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.choice-card svg {
  color: var(--gold);
}

.choice-card input:checked + span {
  color: #111;
  border-color: var(--gold);
  background: var(--gold);
  transform: translateY(-2px);
}

.choice-card input:checked + span svg {
  color: #111;
}

.collaboration-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.collaboration-actions p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(58,210,159,.35);
  border-radius: 8px;
  color: var(--green);
  background: rgba(58,210,159,.08);
}

.collaboration-actions p.is-error {
  border-color: rgba(227,84,84,.42);
  color: var(--red);
  background: rgba(227,84,84,.08);
}

.collaboration-actions .is-loading {
  opacity: .72;
  cursor: wait;
}

.collaboration-actions .primary-btn {
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.collaboration-actions .primary-btn:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 18px 42px rgba(243,184,63,.24);
  filter: brightness(1.04);
}

.completion-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.completion-clear-btn {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  white-space: nowrap;
}

.completion-clear-btn svg {
  width: 16px;
  height: 16px;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.service-grid,
.portfolio-grid,
.partners-grid {
  display: grid;
  gap: calc(16px * var(--page-spacing));
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
}

.service-card,
.work-card,
.course-card,
.timeline article,
.cta-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
}

.service-card {
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}

.service-card:hover,
.work-card:hover,
.cta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243,184,63,.45);
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 18px;
}

.service-card .custom-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 18px;
}

.alt {
  background: rgba(var(--surface-rgb),.025);
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: calc(28px * var(--page-spacing));
}

.filter {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.04);
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
}

.filter.active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
}

.portfolio-page-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
}

.portfolio-grid[data-layout="1x2"],
.portfolio-page-grid[data-layout="1x2"] {
  grid-template-columns: minmax(260px, 620px);
}

.portfolio-grid[data-layout="2x2"],
.portfolio-page-grid[data-layout="2x2"] {
  grid-template-columns: repeat(2, minmax(260px, 340px));
}

.portfolio-grid[data-layout="3x2"],
.portfolio-page-grid[data-layout="3x2"] {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.portfolio-grid[data-layout="4x2"],
.portfolio-page-grid[data-layout="4x2"] {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.portfolio-grid[data-columns="1"] {
  grid-template-columns: minmax(260px, 620px);
}

.portfolio-grid[data-columns="2"] {
  grid-template-columns: repeat(2, minmax(260px, 340px));
}

.portfolio-grid[data-columns="3"] {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.portfolio-grid[data-columns="4"] {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.portfolio-grid[data-columns="5"] {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
}

.work-card {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
}

.work-link {
  display: block;
}

.work-open {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--gold);
}

.work-card[hidden] {
  display: none;
}

.work-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card h3,
.work-card p {
  padding-inline: 18px;
}

.work-card h3 {
  margin-top: 18px;
}

.work-card p {
  padding-bottom: 20px;
}

.work-card-text,
.work-description,
.testimonial-card p {
  white-space: pre-line;
}

.work-card-text.is-clamped,
.work-description.is-clamped,
.testimonial-text.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 5);
}

.work-card-more,
.work-description-more,
.testimonial-more {
  display: block;
  border: 0;
  background: none;
  color: var(--gold);
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.work-card-more {
  margin: calc(-8px * var(--page-spacing)) 18px calc(20px * var(--page-spacing));
}

.portfolio-page-grid .work-card h3 {
  font-size: calc(var(--font-portfolio-card-title) * var(--heading-scale));
}

.portfolio-page-grid .work-card p {
  font-size: calc(var(--font-portfolio-card-text) * var(--font-scale));
}

.play-work {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: var(--gold);
  cursor: pointer;
}

.about-grid,
.course-grid,
.cta-grid,
.footer-grid {
  display: grid;
  gap: 28px;
}

.about-grid {
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  padding: 22px;
  border-right: 4px solid var(--gold);
}

.timeline span {
  color: var(--gold);
  font-weight: 900;
}

.partners-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  justify-content: center;
}

.partners-grid span,
.partner-card {
  min-height: 86px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text);
  font-weight: 800;
}

.partner-card {
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
  padding: 14px;
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.partner-card img {
  width: 100%;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform .24s ease, filter .24s ease;
}

.partner-card:hover,
.partner-card:focus-within {
  border-color: rgba(243,184,63,.55);
  background: rgba(var(--surface-rgb),.075);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
  transform: translateY(-6px);
}

.partner-card:hover img,
.partner-card:focus-within img {
  filter: saturate(1.08) brightness(1.08);
  transform: scale(1.05);
}

.testimonials-grid {
  position: relative;
  width: min(100%, 1160px);
  overflow: hidden;
  display: block;
  direction: ltr;
  padding-block: 8px 18px;
}

.testimonials-grid::before,
.testimonials-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 84px;
  pointer-events: none;
}

.testimonials-grid::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(9,11,16,0) 100%);
}

.testimonials-grid::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(9,11,16,0) 100%);
}

.testimonials-track {
  width: max-content;
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  will-change: transform;
  backface-visibility: hidden;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--surface-rgb),.18);
  border-radius: 50%;
  color: #111;
  background: var(--gold);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  background: var(--gold-2);
  transform: translateY(-50%) scale(1.08);
  outline: none;
}

.testimonial-arrow-right {
  right: 10px;
}

.testimonial-arrow-left {
  left: 10px;
}

.testimonial-card {
  direction: rtl;
  flex: 0 0 clamp(280px, 33vw, 430px);
  min-height: 238px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
  padding: 22px;
  text-align: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.testimonial-card:hover,
.testimonial-card:focus-visible {
  border-color: rgba(243,184,63,.65);
  background: rgba(var(--surface-rgb),.07);
  transform: translateY(-3px);
  outline: none;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-person img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-person strong {
  display: block;
  color: var(--text);
  font-size: calc(var(--font-h3) * var(--heading-scale));
}

.testimonial-card p {
  color: var(--muted);
  margin: 0;
  white-space: pre-line;
}

.testimonial-text.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 5);
  white-space: pre-line;
}

.testimonial-card span {
  display: block;
  color: var(--gold);
  font-size: var(--font-small);
}

.testimonial-more {
  display: block;
  border: 0;
  background: none;
  color: var(--gold);
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.testimonial-open-hint {
  margin-top: auto;
  font-weight: 900;
}

.testimonial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #111;
  background: var(--gold);
  padding: 0 16px;
  font-size: calc(var(--font-buttons) * var(--font-scale));
  font-weight: 900;
}

.testimonial-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.testimonial-modal.is-open {
  display: grid;
}

.testimonial-modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.testimonial-modal-close {
  position: absolute;
  inset: 16px auto auto 16px;
}

html[dir="ltr"] .testimonial-modal-close {
  inset: 16px 16px auto auto;
}

.testimonial-modal-text {
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-line;
}

@keyframes testimonials-scroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.course-grid {
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
}

.course-card {
  display: grid;
  grid-template-columns: .85fr 1fr;
  overflow: hidden;
}

.course-card img {
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.course-card > div {
  padding: 28px;
}

.course-tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
}

.courses-hero-grid {
  max-width: 820px;
  text-align: center;
}

.courses-page-heading {
  margin-bottom: calc(24px * var(--page-spacing));
}

.courses-page-heading h2 {
  margin-bottom: 0;
  font-size: clamp(26px, calc(var(--font-h2) * var(--heading-scale) * .72), 54px);
}

.courses-list {
  display: grid;
  grid-template-columns: minmax(280px, 940px);
  justify-content: center;
}

.course-page-card {
  min-height: 330px;
}

.courses-question {
  padding-top: calc(54px * var(--page-spacing));
}

.courses-question-box {
  max-width: 780px;
  text-align: center;
}

.courses-question-box p {
  color: var(--muted);
  font-size: calc(var(--font-section-text) * var(--font-scale));
}

.courses-question-box .ghost-btn {
  width: fit-content;
  margin: 22px auto 0;
}

.course-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: calc(34px * var(--page-spacing));
  align-items: center;
}

.course-detail-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: calc(28px * var(--page-spacing));
  align-items: start;
}

.course-facts,
.course-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
}

.course-facts {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.course-facts div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.04);
}

.course-facts span {
  color: var(--muted);
  font-size: var(--font-small);
}

.course-facts strong {
  color: var(--text);
}

.course-detail-content {
  display: grid;
  gap: calc(18px * var(--page-spacing));
}

.course-detail-section {
  padding: 24px;
}

.course-detail-section h2 {
  font-size: clamp(24px, calc(var(--font-h2) * var(--heading-scale) * .62), 44px);
}

.check-list,
.course-curriculum {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.course-curriculum li {
  position: relative;
  padding: 12px 42px 12px 14px;
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.04);
  color: var(--muted);
}

.check-list li::before,
.course-curriculum li::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.cta {
  padding-top: 24px;
}

.cta-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 520px));
  justify-content: center;
}

.cta-card {
  min-height: 176px;
  align-items: flex-start;
  flex-direction: column;
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}

.cta-card svg {
  color: var(--gold);
  width: 34px;
  height: 34px;
}

.cta-card strong {
  font-size: calc(var(--font-cta-title) * var(--heading-scale));
}

.cta-card.accent {
  background: linear-gradient(135deg, rgba(243,184,63,.16), rgba(58,210,159,.08));
}

.site-footer {
  padding: 58px 0 24px;
  border-top: 1px solid var(--line);
  background: #080a0f;
  font-size: var(--font-footer);
}

.footer-grid {
  grid-template-columns: 1.2fr .8fr 1fr 1.2fr;
}

.footer-grid.payments-hidden {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: var(--font-footer);
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payments span {
  padding: 5px 9px;
  font-size: calc(var(--font-small) - 1px);
}

.footer-bottom {
  width: min(1160px, calc(100% - 32px));
  margin: 38px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: var(--font-footer);
}


.dashboard-locked {
  min-height: 100vh;
  overflow: hidden;
}

.dashboard-login {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 12%, rgba(243,184,63,.18), transparent 28%),
    linear-gradient(180deg, #090b10 0%, #0d1017 100%);
}

.dashboard-login[hidden] {
  display: none;
}

.dashboard-login-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21,26,36,.92);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 16px;
  text-align: right;
}

.dashboard-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.dashboard-login-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.dashboard-login-card h1 {
  margin: 0;
  font-size: 34px;
}

.dashboard-login-card p {
  color: var(--muted);
  margin: 0;
}

.dashboard-password-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-password-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(var(--surface-rgb),.055);
  padding: 13px 14px;
  outline: none;
  font-size: 18px;
  direction: ltr;
}

.dashboard-password-field input:focus {
  border-color: rgba(243,184,63,.7);
  box-shadow: 0 0 0 4px rgba(243,184,63,.12);
}

.dashboard-login-error {
  color: var(--red) !important;
  font-weight: 800;
}

.dashboard {
  background: #0d1017;
  border-top: 1px solid var(--line);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: calc(22px * var(--page-spacing));
  transition: grid-template-columns .22s ease;
}

.dashboard-shell.is-nav-collapsed {
  grid-template-columns: 92px 1fr;
}

.dashboard-nav,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
  box-shadow: var(--shadow);
}

.dashboard-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: calc(10px * var(--page-spacing));
  padding: calc(18px * var(--page-spacing));
}

.dashboard-nav-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.dashboard-nav-body {
  display: grid;
  gap: calc(10px * var(--page-spacing));
}

.dashboard-nav.is-collapsed {
  padding-inline: 12px;
}

.dashboard-nav.is-collapsed .dashboard-nav-head {
  grid-template-columns: 1fr;
  justify-items: center;
}

.dashboard-nav.is-collapsed .dashboard-nav-head > div {
  display: none;
}

.dashboard-nav.is-collapsed .dash-tab {
  justify-content: center;
  padding-inline: 0;
  font-size: 0;
}

.dashboard-nav.is-collapsed .dashboard-actions .primary-btn,
.dashboard-nav.is-collapsed .dashboard-actions .ghost-btn {
  justify-content: center;
  min-width: 0;
  padding-inline: 0;
  font-size: 0;
}

.dashboard-nav.is-collapsed .dashboard-actions svg {
  flex: 0 0 auto;
}

.dashboard-nav h2 {
  font-size: var(--font-dashboard-title);
  margin-bottom: 8px;
}

.dashboard-nav p {
  color: var(--muted);
  margin-bottom: 12px;
}

.dash-tab {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(var(--surface-rgb),.035);
  padding: 0 14px;
  cursor: pointer;
}

.dash-tab.active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 900;
}

.dashboard-actions {
  display: grid;
  gap: calc(10px * var(--page-spacing));
  margin-top: calc(8px * var(--page-spacing));
}

.dashboard-panel {
  padding: calc(22px * var(--page-spacing));
}

.dash-section {
  display: none;
}

.dash-section.active {
  display: grid;
  gap: calc(18px * var(--page-spacing));
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8,10,15,.45);
  padding: 18px;
}

.admin-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: var(--font-admin-title);
}

.admin-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-card-body {
  display: grid;
  gap: calc(16px * var(--page-spacing));
  margin-top: calc(16px * var(--page-spacing));
}

.admin-card.is-collapsed .admin-card-body {
  display: none;
}

.admin-card-toggle {
  flex: 0 0 auto;
}

.draggable-row {
  position: relative;
}

.drag-handle {
  width: 34px;
  min-height: 42px;
  display: grid;
  place-items: center;
  align-self: stretch;
  color: var(--muted);
  cursor: grab;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.04);
  touch-action: none;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.draggable-row.is-dragging {
  opacity: .45;
}

.draggable-row.is-drop-target {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(243,184,63,.18);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.035);
  padding: 10px 12px;
}

.switch-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.section-toggle-row {
  padding: 0;
  align-items: stretch;
}

.section-toggle-row .switch-field {
  border: 0;
  background: transparent;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: var(--font-small);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(var(--surface-rgb),.055);
  padding: 11px 12px;
  outline: none;
}

.english-companion {
  direction: ltr;
  text-align: left;
  border-style: dashed;
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.hex-input {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
}

.hex-input span {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-field {
  align-content: start;
}

.media-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 8px;
}

.media-preview.empty {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.media-field.compact-media-field.full {
  grid-column: auto;
}

.compact-media-field .media-preview {
  width: 54px;
  height: 54px;
  max-height: 54px;
  padding: 6px;
  justify-self: start;
  object-fit: contain;
}

.compact-media-field .media-preview.empty {
  min-height: 54px;
  font-size: 0;
}

.compact-media-field .media-preview.empty::before {
  content: "أيقونة";
  font-size: 12px;
}

.file-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.upload-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(var(--surface-rgb),.055);
  padding: 0 14px;
  cursor: pointer;
}

.upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(243,184,63,.72);
}

.switch-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--gold);
}

.list-editor {
  display: grid;
  gap: 12px;
}

.editor-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(var(--surface-rgb),.035);
}

.work-editor-row,
.testimonial-row,
.nav-editor-row,
.collaboration-field-row,
.social-row,
.team-editor-row {
  grid-template-columns: 1fr;
}

.work-editor-row.is-collapsed .editor-row-fields,
.testimonial-row.is-collapsed .editor-row-fields,
.nav-editor-row.is-collapsed .editor-row-fields,
.collaboration-field-row.is-collapsed .editor-row-fields,
.social-row.is-collapsed .editor-row-fields,
.team-editor-row.is-collapsed .editor-row-fields {
  display: none;
}

.work-editor-row.is-collapsed,
.testimonial-row.is-collapsed,
.nav-editor-row.is-collapsed,
.collaboration-field-row.is-collapsed,
.social-row.is-collapsed,
.team-editor-row.is-collapsed {
  align-items: center;
}

.work-row-toolbar,
.testimonial-row-toolbar,
.nav-row-toolbar,
.collaboration-field-row-toolbar,
.social-row-toolbar,
.team-editor-row-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.work-row-toolbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.work-row-home-toggle .switch-field {
  min-height: 42px;
  gap: 10px;
  white-space: nowrap;
}

.work-row-head,
.testimonial-row-head,
.nav-row-head,
.collaboration-field-row-head,
.social-row-head,
.team-editor-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.work-row-title,
.testimonial-row-title,
.nav-row-title,
.collaboration-field-row-title,
.social-row-title,
.team-editor-row-title {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-editor-row .editor-row-fields,
.testimonial-row .editor-row-fields,
.nav-editor-row .editor-row-fields,
.collaboration-field-row .editor-row-fields,
.social-row .editor-row-fields,
.team-editor-row .editor-row-fields {
  width: 100%;
}

.why-row {
  grid-template-columns: 1fr;
}

.why-row.is-collapsed .editor-row-fields {
  display: none;
}

.why-row-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.why-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.why-row-title {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-row {
  grid-template-columns: 1fr;
}

.service-row.is-collapsed .editor-row-fields {
  display: none;
}

.service-row-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.service-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.service-row-title {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-row-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-row-fields .field.full {
  grid-column: 1 / -1;
}

.nested-list {
  display: grid;
  gap: 10px;
}

.toggle-editor-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nested-row {
  display: grid;
  grid-template-columns: auto 1fr 1.5fr auto;
  gap: 10px;
  align-items: start;
}

.work-video-editor {
  grid-template-columns: auto 1fr 1.4fr 1.4fr auto;
}

.icon-btn,
.add-btn {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(var(--surface-rgb),.055);
  cursor: pointer;
}

.icon-btn {
  width: 42px;
  height: 42px;
}

.icon-btn.danger {
  color: #fff;
  background: rgba(227,84,84,.18);
  border-color: rgba(227,84,84,.36);
}

.add-btn {
  min-height: 42px;
  width: fit-content;
  padding: 0 14px;
  gap: 8px;
  display: inline-flex;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 80;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(58,210,159,.35);
  border-radius: 8px;
  color: var(--text);
  background: rgba(10, 30, 25, .96);
  padding: 12px 16px;
  max-width: min(520px, calc(100vw - 36px));
  line-height: 1.75;
  text-align: center;
  white-space: normal;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.floating-actions {
  position: fixed;
  inset: auto 0 22px 0;
  z-index: 70;
  pointer-events: none;
}

.float-whatsapp,
.float-top {
  position: absolute;
  bottom: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
  pointer-events: auto;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.float-whatsapp {
  right: 22px;
  background: #25d366;
}

.float-top {
  left: 22px;
  background: var(--panel);
  border-color: var(--line);
}

.float-whatsapp:hover,
.float-top:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 22px 46px rgba(0,0,0,.3);
  filter: brightness(1.04);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  width: min(780px, 100%);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(var(--surface-rgb),.06);
  cursor: pointer;
  line-height: 1;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.video-lightbox,
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 56px;
  background: rgba(0,0,0,.94);
}

.video-lightbox.is-open,
.image-lightbox.is-open {
  display: grid;
}

.video-lightbox:fullscreen,
.video-lightbox:-webkit-full-screen,
.video-lightbox.is-shared-fullscreen {
  display: grid;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #000;
}

.video-lightbox-frame {
  position: relative;
  width: min(88vw, 1180px);
  max-height: 78vh;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.video-lightbox:fullscreen .video-lightbox-frame,
.video-lightbox:-webkit-full-screen .video-lightbox-frame,
.video-lightbox.is-shared-fullscreen .video-lightbox-frame {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

.video-lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 1;
  filter: none;
}

.video-lightbox-drag {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  background: transparent;
}

.video-lightbox-drag.is-dragging {
  cursor: grabbing;
}

.video-lightbox-drag.allow-controls {
  pointer-events: none;
}

.video-swipe-hint {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: min(92vw, 360px);
  padding: 9px 12px;
  border: 1px solid rgba(var(--surface-rgb),.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,.62);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  transform: translateX(-50%);
  pointer-events: none;
}

.video-swipe-hint::before,
.video-swipe-hint::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
  line-height: 18px;
  transform: translateY(-1px);
}

.video-swipe-hint::before {
  content: "‹";
}

.video-swipe-hint::after {
  content: "›";
}

.video-swipe-hint span {
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}

.video-lightbox:fullscreen .video-swipe-hint,
.video-lightbox:-webkit-full-screen .video-swipe-hint,
.video-lightbox.is-shared-fullscreen .video-swipe-hint {
  display: flex;
}

.video-lightbox.is-open .video-swipe-hint {
  display: flex;
}

.video-lightbox-close {
  z-index: 4;
  top: 24px;
  left: 24px;
  background: rgba(var(--surface-rgb),.12);
}

.video-lightbox-share,
.image-lightbox-share {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 6;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(var(--surface-rgb),.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(var(--surface-rgb),.12);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
}

.video-lightbox-share span,
.image-lightbox-share span {
  display: none;
}

.video-lightbox-share svg,
.image-lightbox-share svg {
  width: 18px;
  height: 18px;
}

.video-lightbox-share:hover,
.image-lightbox-share:hover {
  background: rgba(var(--surface-rgb),.2);
}

.image-lightbox-close {
  z-index: 2;
  top: 24px;
  left: 24px;
  background: rgba(var(--surface-rgb),.12);
}

.image-lightbox-frame {
  width: min(88vw, 1180px);
  max-height: 82vh;
  display: grid;
  gap: 12px;
  margin: 0;
  justify-items: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.image-lightbox-frame.is-dragging {
  cursor: grabbing;
}

.image-lightbox-frame img {
  width: auto;
  max-width: 100%;
  max-height: 74vh;
  border-radius: 8px;
  object-fit: contain;
  background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.image-lightbox-frame figcaption {
  color: #fff;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--surface-rgb),.24);
  border-radius: 50%;
  color: #111;
  background: var(--gold);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.lightbox-nav.prev {
  right: 24px;
}

.lightbox-nav.next {
  left: 24px;
}

.lightbox-nav:hover {
  background: var(--gold-2);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 30px rgba(243,184,63,.24);
}

.lightbox-nav[hidden] {
  display: none;
}

.video-lightbox:fullscreen .lightbox-nav:not([hidden]),
.video-lightbox:-webkit-full-screen .lightbox-nav:not([hidden]),
.video-lightbox.is-shared-fullscreen .lightbox-nav:not([hidden]) {
  display: grid;
  opacity: .92;
}

.video-placeholder {
  min-height: 370px;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
  gap: 8px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243,184,63,.16), rgba(227,84,84,.1)),
    #0b0e15;
  overflow: hidden;
}

.video-placeholder svg {
  width: 70px;
  height: 70px;
  color: var(--gold);
}

.video-placeholder iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 370px;
  border: 0;
  border-radius: 8px;
}

.video-thumb {
  position: relative;
  width: 100%;
  min-height: 370px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #111;
  cursor: pointer;
  isolation: isolate;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
  z-index: -2;
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: -1;
  transition: background .35s ease;
}

.video-thumb .play-pulse {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #15120a;
  background: var(--gold);
  box-shadow: 0 0 0 12px rgba(243,184,63,.16);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.video-thumb .play-pulse svg {
  width: 34px;
  height: 34px;
}

.video-thumb strong {
  position: absolute;
  right: 24px;
  bottom: 20px;
  opacity: 0;
  transform: translateY(8px);
  border: 1px solid rgba(var(--surface-rgb),.26);
  border-radius: 8px;
  background: rgba(0,0,0,.58);
  padding: 9px 12px;
  transition: opacity .25s ease, transform .25s ease;
}

.video-thumb:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.video-thumb:hover::before {
  background: rgba(0,0,0,.18);
}

.video-thumb:hover .play-pulse,
.video-thumb:focus-visible .play-pulse {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 0 0 18px rgba(243,184,63,.22);
}

.video-thumb:hover strong,
.video-thumb:focus-visible strong {
  opacity: 1;
  transform: none;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: calc(28px * var(--page-spacing));
}

.work-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: calc(30px * var(--page-spacing));
  align-items: start;
}

.work-info-panel {
  display: grid;
  align-content: start;
}

.work-media-stack {
  position: relative;
  display: grid;
  gap: calc(16px * var(--page-spacing));
}

.work-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(14px * var(--page-spacing));
}

.work-video-grid[data-layout="1"] {
  grid-template-columns: 1fr;
}

.work-video-grid[data-layout="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-video-grid[data-layout="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-video-grid.single-video {
  grid-template-columns: 1fr;
}

.work-video-grid.single-video .video-thumb {
  min-height: 370px;
}

.work-video-grid .video-thumb {
  min-height: 260px;
}

.work-video-grid .work-video-empty {
  grid-column: 1 / -1;
}

.work-video-grid[hidden] {
  display: none;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(14px * var(--page-spacing));
}

.work-gallery[data-layout="1"] {
  grid-template-columns: 1fr;
}

.work-gallery[data-layout="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-gallery[data-layout="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-gallery[hidden] {
  display: none;
}

.work-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
}

.image-thumb {
  position: relative;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}

.image-preview-icon,
.media-preview-icon {
  position: absolute;
  inset: 14px 14px auto auto;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--gold);
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .2s ease;
}

.image-thumb:hover .image-preview-icon,
.image-thumb:focus-visible .image-preview-icon,
.image-thumb:hover .media-preview-icon,
.image-thumb:focus-visible .media-preview-icon,
.video-thumb:hover .media-preview-icon,
.video-thumb:focus-visible .media-preview-icon {
  transform: scale(1.06);
}

.work-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--panel-2);
}

.work-gallery-item figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: var(--font-small);
}

.small-back {
  width: fit-content;
  min-height: 42px;
  margin-bottom: calc(24px * var(--page-spacing));
}

.work-detail h1 {
  font-size: clamp(34px, calc(var(--font-work-title) * var(--heading-scale)), 96px);
  margin-block: 0 calc(14px * var(--page-spacing));
}

.work-info-panel [data-work-text] {
  font-size: calc(var(--font-work-text) * var(--font-scale));
  margin-block: 0 calc(10px * var(--page-spacing));
}

.work-description {
  white-space: pre-line;
}

.work-description.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 3);
}

.work-description-more {
  display: block;
  justify-self: start;
  border: 0;
  background: none;
  color: var(--gold);
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: calc(18px * var(--page-spacing));
}

.work-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(10px * var(--page-spacing));
  margin: calc(24px * var(--page-spacing)) 0 calc(14px * var(--page-spacing));
}

.work-info-list div {
  display: grid;
  gap: 4px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(var(--surface-rgb),.045);
  font-size: var(--font-work-meta);
}

.work-info-list strong {
  color: var(--text);
}

.work-info-list span {
  font-size: var(--font-small);
}

.work-share-btn {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

.work-share-btn span {
  display: none;
}

.work-share-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.work-share-btn.is-copied svg,
.video-lightbox-share.is-copied svg,
.image-lightbox-share.is-copied svg {
  color: currentColor;
  stroke-width: 3;
}

.work-share-btn.is-copied,
.video-lightbox-share.is-copied,
.image-lightbox-share.is-copied {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
}

.work-action-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.work-action-row .primary-btn,
.work-action-row .ghost-btn {
  min-height: 46px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.work-action-row .ghost-btn {
  width: 100%;
}

.work-share-btn:hover,
.work-order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.work-share-btn:hover svg,
.work-order-btn:hover svg {
  transform: scale(1.08);
}

.work-order-btn {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}

.work-order-btn:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

.whatsapp-icon,
.whatsapp-icon svg {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.whatsapp-icon svg {
  fill: currentColor;
  transition: transform .2s ease;
}

.work-cover {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--panel-2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-cover-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.work-cover-button[hidden],
.work-cover[hidden] {
  display: none;
}

.custom-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: calc(16px * var(--page-spacing));
}

.toggle-list {
  display: grid;
  gap: 12px;
}

.toggle-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--surface-rgb),.045);
  padding: 0 16px;
}

.toggle-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 900;
  font-size: var(--font-toggle-title);
}

.toggle-item p {
  color: var(--muted);
  font-size: var(--font-toggle-text);
  white-space: pre-line;
}

#why-us-page .service-card h3,
[data-why-us-list] .service-card h3 {
  font-size: var(--font-why-us-title);
}

#why-us-page .service-card p,
[data-why-us-list] .service-card p {
  font-size: var(--font-why-us-text);
}

.work-video {
  margin-top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

svg {
  width: 20px;
  height: 20px;
}

.custom-slot-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.custom-slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-card .custom-slot-icon,
.video-placeholder .custom-slot-icon {
  width: 34px;
  height: 34px;
}

.video-placeholder .custom-slot-icon {
  width: 70px;
  height: 70px;
}

@media (max-width: 960px) {
  .nav-shell {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 15, 22, .98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    justify-self: end;
    gap: 8px;
  }

  .hero-grid,
  .about-grid,
  .course-grid,
  .footer-grid,
  .collaboration-shell,
  .team-stack,
  .team-lead-grid,
  .team-side-list,
  .work-detail-grid,
  .portfolio-hero-grid,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .team-hero {
    max-width: 760px;
  }

  .collaboration-intro {
    position: static;
  }

  .completion-card {
    top: 82px;
  }

  .hero-visual {
    order: -1;
  }

  .dashboard-nav {
    position: static;
  }

  .dashboard-shell.is-nav-collapsed {
    grid-template-columns: 1fr;
  }

  .dashboard-nav.is-collapsed {
    padding-inline: 14px;
  }

  .dashboard-nav.is-collapsed .dashboard-nav-head {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
  }

  .dashboard-nav.is-collapsed .dashboard-nav-head > div {
    display: block;
  }

  .dashboard-nav.is-collapsed .dash-tab,
  .dashboard-nav.is-collapsed .dashboard-actions .primary-btn,
  .dashboard-nav.is-collapsed .dashboard-actions .ghost-btn {
    justify-content: flex-start;
    padding-inline: 14px;
    font-size: var(--font-buttons);
  }

  .portfolio-grid[data-layout],
  .portfolio-grid[data-columns],
  .portfolio-page-grid[data-layout],
  .team-grid,
  .testimonials-grid[data-columns] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .stats-strip,
  .cta-grid,
  .choice-grid,
  .field-grid,
  .editor-row-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .image-lightbox {
    padding: 18px;
  }

  .video-lightbox {
    display: none;
    padding: 18px;
  }

  .video-lightbox.is-open,
  .image-lightbox.is-open {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "frame frame"
      "next prev";
    align-content: center;
    justify-content: center;
    gap: 14px;
  }

  .video-lightbox-frame,
  .image-lightbox-frame {
    grid-area: frame;
    width: min(96vw, 760px);
    max-height: none;
    margin: 0;
  }

  .video-lightbox-frame {
    aspect-ratio: 16 / 9;
  }

  .image-lightbox-frame img {
    max-height: 68vh;
  }

  .video-lightbox .lightbox-nav,
  .image-lightbox .lightbox-nav {
    position: static;
    width: 42px;
    height: 42px;
    transform: none;
    justify-self: center;
  }

  .video-lightbox .lightbox-nav.prev,
  .image-lightbox .lightbox-nav.prev {
    grid-area: prev;
  }

  .video-lightbox .lightbox-nav.next,
  .image-lightbox .lightbox-nav.next {
    grid-area: next;
  }

  .video-lightbox .lightbox-nav:hover,
  .image-lightbox .lightbox-nav:hover {
    transform: scale(1.08);
  }

  .video-lightbox:fullscreen,
  .video-lightbox:-webkit-full-screen,
  .video-lightbox.is-shared-fullscreen {
    grid-template-columns: 1fr;
    grid-template-areas: "frame";
    gap: 0;
    padding: 0;
  }

  .video-lightbox:fullscreen .video-lightbox-frame,
  .video-lightbox:-webkit-full-screen .video-lightbox-frame,
  .video-lightbox.is-shared-fullscreen .video-lightbox-frame {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
  }

  .video-lightbox:fullscreen .video-swipe-hint,
  .video-lightbox:-webkit-full-screen .video-swipe-hint,
  .video-lightbox.is-shared-fullscreen .video-swipe-hint {
    top: max(24px, env(safe-area-inset-top));
  }

  .video-lightbox:fullscreen .lightbox-nav,
  .video-lightbox:-webkit-full-screen .lightbox-nav,
  .video-lightbox.is-shared-fullscreen .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .video-lightbox:fullscreen .lightbox-nav.prev,
  .video-lightbox:-webkit-full-screen .lightbox-nav.prev,
  .video-lightbox.is-shared-fullscreen .lightbox-nav.prev {
    right: 12px;
    left: auto;
  }

  .video-lightbox:fullscreen .lightbox-nav.next,
  .video-lightbox:-webkit-full-screen .lightbox-nav.next,
  .video-lightbox.is-shared-fullscreen .lightbox-nav.next {
    right: auto;
    left: 12px;
  }

  .video-lightbox:fullscreen .lightbox-nav:hover,
  .video-lightbox:-webkit-full-screen .lightbox-nav:hover,
  .video-lightbox.is-shared-fullscreen .lightbox-nav:hover {
    transform: translateY(-50%) scale(1.08);
  }

  .section-band {
    padding: calc(64px * var(--page-spacing)) 0;
  }

  .hero {
    padding-top: 44px;
  }

  .nav-shell {
    min-height: 68px;
    gap: 10px;
  }

  .brand span:last-child,
  .login-link {
    display: none;
  }

  .language-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }

  .nav-links {
    inset: 68px 16px auto;
  }

  .completion-card {
    top: 74px;
  }

  body[data-page="collaborate"] .collaboration-page {
    overflow-x: hidden;
  }

  body[data-page="collaborate"] .collaboration-shell,
  body[data-page="collaborate"] .collaboration-form,
  body[data-page="collaborate"] .completion-card,
  body[data-page="collaborate"] .collaboration-form fieldset {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-page="collaborate"] .collaboration-form fieldset,
  body[data-page="collaborate"] .completion-card {
    padding-inline: 16px;
  }

  .hero-actions,
  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
  }

  .stats-strip,
  .service-grid,
    .portfolio-grid,
    .portfolio-page-grid,
    .team-grid,
    .course-detail-hero-grid,
  .course-detail-grid,
    .partners-grid,
    .testimonials-grid,
    .course-card,
    .cta-grid,
    .form-grid,
    .choice-grid,
    .work-video-grid,
    .work-gallery,
    .work-info-list,
  .work-action-row,
  .field-grid,
  .editor-row,
  .editor-row-fields,
  .nested-row {
    grid-template-columns: 1fr;
  }

  .portfolio-grid[data-layout],
  .portfolio-grid[data-columns],
  .portfolio-page-grid[data-layout],
  .team-grid,
  .testimonials-grid[data-columns] {
    grid-template-columns: 1fr;
  }

  .team-featured-card,
  .team-side-card,
  .team-member-card {
    min-height: 360px;
  }

  .testimonial-card {
    flex-basis: min(84vw, 360px);
  }

  .testimonial-arrow {
    width: 40px;
    height: 40px;
  }

  .testimonial-modal {
    padding: 16px;
  }

  .testimonial-modal-card {
    max-height: 84vh;
    padding: 22px;
  }

  .work-video-grid[data-layout],
  .work-gallery[data-layout] {
    grid-template-columns: 1fr;
  }

  .work-info-panel,
  .work-media-stack {
    display: contents;
  }

  .small-back { order: 1; }
  .work-info-panel h1 { order: 2; }
  .work-info-panel .lead { order: 3; }
  .work-description-more { order: 4; }
  .work-info-list { order: 5; }
  .work-video-grid { order: 6; }
  .work-action-row { order: 7; }
  .toggle-list { order: 8; }
  .work-cover-button { order: 9; }
  .work-gallery { order: 10; }

  .work-video-grid .video-thumb,
  .work-video-grid.single-video .video-thumb,
  .video-placeholder {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer-grid.payments-hidden {
    grid-template-columns: 1fr;
  }

  .drag-handle {
    width: 100%;
  }

  .file-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-panel,
  .dashboard-nav {
    padding: 14px;
  }

  .dashboard-nav.is-collapsed {
    gap: 0;
  }

  .dashboard-nav.is-collapsed .dashboard-nav-body {
    display: none;
  }

  .dashboard-nav.is-collapsed .dashboard-nav-head {
    align-items: center;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }

  .course-card img {
    min-height: 220px;
  }
}

@media (max-width: 1180px) {
  body[data-page="team"] .team-stack {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body[data-page="team"] .team-hero {
    grid-column: auto;
    grid-row: 1;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  body[data-page="team"] .team-hero .lead::after {
    margin-inline: auto;
  }

  body[data-page="team"] .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), var(--team-member-card-width)));
    gap: 18px;
  }
}

@media (max-width: 860px) {
  body[data-page="team"] .team-page {
    padding-top: 46px;
  }

  body[data-page="team"] .team-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  body[data-page="team"] .team-hero .lead {
    font-size: 18px;
  }

  body[data-page="team"] .team-featured-card {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
    min-height: 0;
  }

  body[data-page="team"] .team-featured-card::after {
    display: none;
  }

  body[data-page="team"] .team-featured-card .team-photo {
    height: min(300px, calc(var(--team-featured-height) * .72));
  }

  body[data-page="team"] .team-featured-card .team-photo img {
    border-radius: 16px;
  }

  body[data-page="team"] .team-featured-card .team-member-copy {
    width: 100%;
    padding: 0;
  }

  body[data-page="team"] .team-side-list {
    grid-template-columns: 1fr;
  }

  body[data-page="team"] .team-side-list::before,
  body[data-page="team"] .team-side-list::after,
  body[data-page="team"] .team-grid::before,
  body[data-page="team"] .team-grid::after,
  body[data-page="team"] .team-side-card::after,
  body[data-page="team"] .team-member-card::after {
    display: none;
  }

  body[data-page="team"] .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), var(--team-member-card-width)));
  }
}

@media (max-width: 560px) {
  body[data-page="team"] .team-side-card {
    grid-template-columns: 1fr;
    min-height: 132px;
    gap: 14px;
    padding: 14px;
  }

  body[data-page="team"] .team-icon {
    width: 54px;
    height: 54px;
  }

  body[data-page="team"] .team-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="team"] .team-member-card {
    min-height: 224px;
  }
}
