/* ==========================================================================
   Esam Eisa - Hub landing page
   ========================================================================== */

/* Fonts, self-hosted (assets/hub/fonts) instead of Google Fonts: no extra domains to connect to before the first paint.
   Only the latin, latin-ext and arabic subsets; each file is downloaded only when the page uses its characters. */
@font-face {
  font-family: 'Megrim';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/megrim-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/geist-300-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/geist-300-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/geist-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/geist-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/geist-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/geist-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-300-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-500-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-600-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1240px;
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --serif: "Instrument Serif", Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bg: #08090a;
    --bg-2: #0d0f12;
    --card: #111318;
    --card-2: #15181e;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-strong: #e5e7eb;
    --text-soft: #d1d5db;
    --text-2: #9ca3af;
    --text-3: #6b7280;
    --placeholder: #4b5563;
    --fg-rgb: 255, 255, 255;
    --bg-rgb: 8, 9, 10;
    --card-rgb: 17, 19, 24;
    --surface-1: rgba(21, 24, 30, .9);
    --surface-2: rgba(13, 15, 18, .9);
    --modal-1: #15181e;
    --modal-2: #0f1115;
    --btn-bg: #ffffff;
    --btn-fg: #08090a;
    --btn-bg-hover: #e9ecff;
    --accent-text: #a9c1ff;
    --accent-soft: #c7d4ff;
    --danger-text: #fca5a5;
    --danger-strong: #fecaca;
    --blue: #5b8cff;
    --violet: #9f7aea;
    --cyan: #5ee6e0;
    --green: #4ade80;
    --grad: linear-gradient(100deg, #7aa2ff 0%, #a98bff 45%, #6ee7e0 100%);
    --aurora-o: .5;
    --cat-l: 80%;
    --shadow-glow: rgba(91, 140, 255, .45);
    color-scheme: dark;
}

/* Dark is the default; light only when the visitor picks it (data-theme on <html>). */
:root[data-theme="light"] {
    --bg: #fafaf9;
    --bg-2: #f3f4f6;
    --card: #ffffff;
    --card-2: #f9fafb;
    --line: rgba(10, 12, 16, 0.09);
    --line-2: rgba(10, 12, 16, 0.16);
    --text: #0a0c10;
    --text-strong: #111827;
    --text-soft: #374151;
    --text-2: #4b5563;
    --text-3: #6b7280;
    --placeholder: #9ca3af;
    --fg-rgb: 10, 12, 16;
    --bg-rgb: 250, 250, 249;
    --card-rgb: 255, 255, 255;
    --surface-1: rgba(255, 255, 255, .96);
    --surface-2: rgba(249, 250, 251, .96);
    --modal-1: #ffffff;
    --modal-2: #f9fafb;
    --btn-bg: #0a0c10;
    --btn-fg: #ffffff;
    --btn-bg-hover: #222836;
    --accent-text: #2f55d4;
    --accent-soft: #2f55d4;
    --danger-text: #dc2626;
    --danger-strong: #b91c1c;
    --blue: #2f5fe8;
    --violet: #7c4dff;
    --cyan: #0891b2;
    --green: #16a34a;
    --grad: linear-gradient(100deg, #2f5fe8 0%, #7c4dff 45%, #0e9f9a 100%);
    --aurora-o: .22;
    --cat-l: 36%;
    --shadow-glow: rgba(47, 95, 232, .22);
    color-scheme: light;
}

/* Media (thumbnails, portrait, player) stay dark in both themes, like video platforms. */
.video-thumb, .portrait, .player, .about-photo, .final {
    --bg: #08090a;
    --bg-2: #0d0f12;
    --card: #111318;
    --card-2: #15181e;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-strong: #e5e7eb;
    --text-soft: #d1d5db;
    --text-2: #9ca3af;
    --text-3: #6b7280;
    --placeholder: #4b5563;
    --fg-rgb: 255, 255, 255;
    --bg-rgb: 8, 9, 10;
    --card-rgb: 17, 19, 24;
    --surface-1: rgba(21, 24, 30, .9);
    --surface-2: rgba(13, 15, 18, .9);
    --modal-1: #15181e;
    --modal-2: #0f1115;
    --btn-bg: #ffffff;
    --btn-fg: #08090a;
    --btn-bg-hover: #e9ecff;
    --accent-text: #a9c1ff;
    --accent-soft: #c7d4ff;
    --danger-text: #fca5a5;
    --danger-strong: #fecaca;
    --blue: #5b8cff;
    --violet: #9f7aea;
    --cyan: #5ee6e0;
    --green: #4ade80;
    --grad: linear-gradient(100deg, #7aa2ff 0%, #a98bff 45%, #6ee7e0 100%);
    --aurora-o: .5;
    --cat-l: 80%;
    --shadow-glow: rgba(91, 140, 255, .45);
    color: var(--text);
}

/* Arabic */
html[lang="ar"] {
    --font: "IBM Plex Sans Arabic", "Geist", ui-sans-serif, system-ui, sans-serif;
    --mono: "Geist Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
i { font-style: normal; color: var(--text-3); margin: 0 .35em; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.dim { color: var(--text-2); }
.small { font-size: 13px; }
.center { display: flex; justify-content: center; margin-top: 48px; }
::selection { background: rgba(122, 162, 255, .35); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
    background: #fff; color: #000; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
/* Read by screen readers only (same as Bootstrap's, which the hub doesn't load). */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.bg-noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grad {
    background: var(--grad);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: gradShift 12s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px;
    border-radius: 10px; border: 1px solid transparent;
    font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
    transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover svg:last-child { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }

.btn-primary {
    background: var(--btn-bg); color: var(--btn-fg);
    box-shadow: 0 0 0 1px rgba(var(--fg-rgb), .1), 0 8px 30px -8px rgba(122,162,255,.55);
}
.btn-primary:hover { background: var(--btn-bg-hover); box-shadow: 0 0 0 1px rgba(var(--fg-rgb), .2), 0 10px 40px -6px rgba(122,162,255,.75); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }

.btn-ghost { background: rgba(var(--fg-rgb), .03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(var(--fg-rgb), .07); border-color: rgba(var(--fg-rgb), .24); }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
    background: rgba(var(--bg-rgb), .72);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
/* Same logo as the rest of the website (layouts/header.blade.php) */
.logo { font-family: "Megrim", cursive; font-size: 3rem; line-height: 1; color: var(--text); white-space: nowrap; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; font-size: 14px; color: var(--text-2); border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); background: rgba(var(--fg-rgb), .04); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
    display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 20px;
    background: rgba(var(--bg-rgb), .96); border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 8px; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Background effects ---------- */
.grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    opacity: .55;
}
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--aurora-o); will-change: transform; }
.aurora-1 { width: 620px; height: 420px; top: -140px; left: 8%; background: radial-gradient(circle, rgba(91,140,255,.55), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.aurora-2 { width: 520px; height: 420px; top: 40px; right: -4%; background: radial-gradient(circle, rgba(159,122,234,.45), transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.aurora-3 { width: 900px; height: 500px; bottom: -260px; left: 50%; margin-left: -450px; background: radial-gradient(circle, rgba(91,140,255,.45), rgba(110,231,224,.12) 50%, transparent 70%); animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift {
    0% { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: -68px 0 0; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 2px;
    padding-block: 6px; padding-inline: 10px 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .03);
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-inline-end: 8px; box-shadow: 0 0 12px var(--cyan); }
.eyebrow i { margin: 0 .5em; }

.hero-title {
    margin-top: 28px;
    font-size: clamp(42px, 5.9vw, 78px);
    line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
    text-wrap: balance;
}
.hero-sub { margin-top: 24px; max-width: 560px; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--text-2); line-height: 1.6; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 28px; font-size: 13px; color: var(--text-3); font-family: var(--mono); letter-spacing: -0.01em; }
.hero-meta i { margin: 0 .3em; }
.hero-explore { display: inline-flex; gap: 6px; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .2s; }
.hero-explore:hover { color: var(--text); }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.portrait {
    position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--card);
    box-shadow: 0 40px 120px -40px var(--shadow-glow), 0 0 0 1px rgba(var(--fg-rgb), .03) inset;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.88); transform: scale(1.02); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.portrait:hover img { filter: grayscale(.35) contrast(1.05) brightness(.95); transform: scale(1.04); }
.portrait::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, transparent 50%, rgba(var(--bg-rgb), .85) 100%),
        linear-gradient(135deg, rgba(91,140,255,.22), transparent 45%, rgba(110,231,224,.12));
    mix-blend-mode: normal;
}
.portrait figcaption {
    position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
    display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-strong);
}
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(var(--bg-rgb), .6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.float-card {
    position: absolute; z-index: 2;
    background: rgba(var(--card-rgb), .72); border: 1px solid var(--line-2); border-radius: 12px;
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.float-event { inset-inline-start: -64px; top: 64px; padding: 12px 14px; font-size: 13px; display: grid; gap: 6px; min-width: 190px; }
.float-event b { font-weight: 600; color: var(--text); }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fc-dim { color: var(--text-3); }
.method { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 5px; background: rgba(91,140,255,.18); color: var(--accent-text); }
.float-badges { inset-inline-end: -36px; bottom: 82px; padding: 10px; display: flex; flex-direction: column; gap: 6px; animation-delay: -3s; }
.badge { font-size: 12px; padding: 5px 10px; border-radius: 7px; background: rgba(var(--fg-rgb), .04); border: 1px solid var(--line); color: var(--text-soft); white-space: nowrap; }
.badge b { font-weight: 600; color: var(--text); }

/* ---------- Pillars ---------- */
.pillars { padding-top: 24px; padding-bottom: 128px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.paths-2 { grid-template-columns: repeat(2, 1fr); }
.path {
    position: relative; padding: 26px 26px 28px; border-radius: var(--radius);
    border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), rgba(var(--card-rgb), .4));
    transition: border-color .3s, transform .4s var(--ease), background .3s;
    overflow: hidden;
}
.path::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(122,162,255,.12), transparent 50%);
}
.path:hover { border-color: var(--line-2); transform: translateY(-3px); }
.path:hover::before { opacity: 1; }
.path-num { font-size: 12px; color: var(--text-3); }
.path { display: flex; flex-direction: column; }
.path h3 { margin-top: 18px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.path p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.path .path-for { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 14px; }
.path-for .mono { display: block; margin-bottom: 4px; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.path-cta { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.path-cta svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.path:hover .path-cta svg { transform: translateX(3px); }

/* Dark theme: each pillar gets its own colour (learn = blue, consult = violet, meet = teal) */
:root:not([data-theme="light"]) .path { --c: 91, 140, 255; --c-text: #a9c1ff; }
:root:not([data-theme="light"]) .path-consult { --c: 159, 122, 234; --c-text: #cbb8ff; }
:root:not([data-theme="light"]) .path-meet { --c: 45, 212, 191; --c-text: #8ef0e0; }
:root:not([data-theme="light"]) .path {
    border-color: rgba(var(--c), .2);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(var(--c), .2), transparent 55%),
        linear-gradient(180deg, rgba(var(--c), .08), rgba(var(--c), .02) 60%, rgba(var(--card-rgb), .6));
    box-shadow: 0 30px 60px -40px rgba(var(--c), .45), 0 1px 0 rgba(var(--c), .12) inset;
}
:root:not([data-theme="light"]) .path::before { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--c), .16), transparent 50%); }
:root:not([data-theme="light"]) .path:hover { border-color: rgba(var(--c), .45); }
:root:not([data-theme="light"]) :is(.path-num, .path-cta) { color: var(--c-text); }
:root:not([data-theme="light"]) .path .path-for { border-top-color: rgba(var(--c), .18); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 140px 0 0; }

/* Bands: full-width section backgrounds so neighbouring sections don't run into each other.
   Each band re-points --bg (its own colour) and --bg-2 (cards inside it). */
.band { padding-bottom: 128px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-tint { --bg: #0c0e12; --bg-rgb: 12, 14, 18; --bg-2: #12151b; }
.band-accent { --bg: #0a0d16; --bg-rgb: 10, 13, 22; --bg-2: #10141f; }
:root[data-theme="light"] .band-tint { --bg: #f0f2f5; --bg-rgb: 240, 242, 245; --bg-2: #ffffff; }
:root[data-theme="light"] .band-accent { --bg: #edf1fc; --bg-rgb: 237, 241, 252; --bg-2: #ffffff; }
.section-head { margin-bottom: 52px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.center-head { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.center-head .section-sub { margin-left: auto; margin-right: auto; }
.kicker { font-size: 12.5px; color: var(--blue); letter-spacing: 0; margin-bottom: 16px; }
.section-title { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.section-title.xl { font-size: clamp(38px, 5.8vw, 76px); letter-spacing: -0.045em; }
.section-title .serif { font-size: 1.08em; }
.section-sub { margin-top: 18px; max-width: 600px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); }

/* ---------- Videos ---------- */
.chips-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--fg-rgb), .02); }
.fchip { border: 0; background: transparent; color: var(--text-2); padding: 7px 13px; border-radius: 8px; font-size: 13.5px; transition: background .2s, color .2s; }
.fchip:hover { color: var(--text); }
.fchip.is-active { background: rgba(var(--fg-rgb), .09); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { display: flex; flex-direction: column; border-radius: var(--radius); color: inherit; }
.video-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.video-card.is-hidden { display: none; }
.video-thumb {
    position: relative; aspect-ratio: 16 / 9; width: 100%; padding: 0; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; background: var(--card); text-align: start;
    transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9) brightness(.85); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); pointer-events: none; }
.video-thumb { display: block; }
.video-card:hover .video-thumb { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(var(--rgb, 91,140,255), .55); }
.video-card:hover .video-thumb img { transform: scale(1.05); filter: saturate(1) brightness(1); }

.cat-backend { --h: 220; --rgb: 91,140,255; }
.cat-payments { --h: 158; --rgb: 52,211,153; }
.cat-architecture { --h: 262; --rgb: 159,122,234; }
.cat-career { --h: 32; --rgb: 251,191,36; }
.cat-fintech { --h: 188; --rgb: 94,230,224; }
.cat-performance { --h: 340; --rgb: 244,114,182; }
.cat-system_design { --h: 280; --rgb: 192,132,252; }

.gen-thumb {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px;
    background:
        radial-gradient(120% 90% at 100% 0%, hsl(var(--h, 220) 80% 55% / .32), transparent 55%),
        radial-gradient(80% 80% at 0% 100%, hsl(calc(var(--h, 220) + 40) 70% 50% / .14), transparent 60%),
        linear-gradient(180deg, #0f1116, #0a0b0e);
}
.gen-thumb::before {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(var(--fg-rgb), .05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg-rgb), .05) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(200deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
}
.gen-label { position: relative; font-size: 10.5px; letter-spacing: .08em; color: hsl(var(--h, 220) 90% 78%); }
.gen-diagram { position: absolute; top: 16px; inset-inline-end: 16px; width: 38%; stroke: hsl(var(--h, 220) 70% 75% / .35); stroke-width: 1; transition: stroke .5s; }
.video-card:hover .gen-diagram { stroke: hsl(var(--h, 220) 80% 78% / .6); }
.gen-title { position: relative; z-index: 1; max-width: calc(100% - 60px); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }

.play {
    position: absolute; z-index: 2; inset-inline-end: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; color: var(--btn-fg); background: var(--btn-bg);
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
    transform: scale(.9); opacity: .92; transition: transform .4s var(--ease), opacity .3s;
}
.play svg { width: 18px; height: 18px; margin-left: 2px; }
.video-card:hover .play { transform: scale(1); opacity: 1; }
.is-soon .play { background: rgba(var(--fg-rgb), .1); color: rgba(var(--fg-rgb), .5); box-shadow: none; border: 1px solid var(--line-2); }
.duration { position: absolute; z-index: 2; inset-inline-start: 14px; bottom: 14px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; background: rgba(0,0,0,.65); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.duration.soon { color: var(--text-2); }
.gen-thumb ~ .duration { inset-inline-start: 18px; top: 40px; bottom: auto; background: rgba(var(--fg-rgb), .04); }

.video-body { display: block; padding: 16px 4px 0; }
.video-card:hover .video-body h3 { color: var(--accent-soft); }
.video-body h3 { transition: color .25s; }
.video-cat { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.video-body h3 { margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.video-body p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mentorship ---------- */
.mentor-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.mentor-copy { position: sticky; top: 120px; }
.mentor-cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.helper { font-size: 13.5px; color: var(--text-3); font-family: var(--mono); }
.mentor-steps { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.mentor-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.mentor-steps .mono { width: 24px; height: 24px; display: grid; place-items: center; font-size: 11px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); flex: none; }

.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.topic-card { position: relative; padding: 32px 28px 34px; background: var(--bg-2); transition: background .4s; min-height: 240px; }
.topic-card:hover { background: var(--card); }
.topic-card::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 1px; width: 0; background: var(--grad); transition: width .6s var(--ease); }
.topic-card:hover::after { width: 100%; }
.topic-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(122,162,255,.12), rgba(110,231,224,.04)); color: var(--accent-soft); }
.topic-icon svg { width: 20px; height: 20px; }
.topic-card h3 { margin-top: 26px; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.topic-card p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* Dark theme: one colour per consulting topic (backend = blue, payments = green, career = violet, startups = amber) */
:root:not([data-theme="light"]) .topic-card { --c: 91, 140, 255; --c-text: #a9c1ff; background: radial-gradient(110% 80% at 100% 0%, rgba(var(--c), .15), transparent 60%), linear-gradient(180deg, rgba(var(--c), .05), transparent 70%), var(--bg-2); }
:root:not([data-theme="light"]) .topic-card:nth-child(2) { --c: 74, 222, 128; --c-text: #9ff0bd; }
:root:not([data-theme="light"]) .topic-card:nth-child(3) { --c: 159, 122, 234; --c-text: #cbb8ff; }
:root:not([data-theme="light"]) .topic-card:nth-child(4) { --c: 245, 166, 35; --c-text: #fcd38a; }
:root:not([data-theme="light"]) .topic-card:hover { background-color: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--c), .3); }
:root:not([data-theme="light"]) .topic-card::after { background: rgb(var(--c)); }
:root:not([data-theme="light"]) .topic-icon { color: var(--c-text); border-color: rgba(var(--c), .35); background: linear-gradient(135deg, rgba(var(--c), .22), rgba(var(--c), .05)); box-shadow: 0 0 24px -6px rgba(var(--c), .5); }
:root:not([data-theme="light"]) .topic-card h3 { color: var(--c-text); }

/* ---------- Recommendations: 3D coverflow (assets/js/coverflow.js, markup in website/layouts/recommendations-carousel) ---------- */
.recommendations { overflow: hidden; } /* side cards run past the container */
.reco-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.reco-stars { display: inline-flex; gap: 3px; color: #fbbf24; }
.reco-stars svg { width: 15px; height: 15px; }
.coverflow { --card-w: clamp(260px, 30vw, 380px); --card-h: 420px; position: relative; margin-top: -12px; }
.coverflow-stage { display: flex; gap: 16px; overflow-x: auto; padding: 10px 2px 30px; scroll-snap-type: x mandatory; }
.coverflow.is-ready .coverflow-stage { display: block; position: relative; height: calc(var(--card-h) + 60px); overflow: visible; padding: 0; perspective: 1400px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.coverflow.is-dragging .coverflow-stage { cursor: grabbing; }
.coverflow-card {
    position: relative; flex: none; display: flex; flex-direction: column; align-items: center;
    width: var(--card-w); height: var(--card-h); padding: 22px 22px 24px; overflow: hidden;
    border: 1px solid var(--line-2); border-radius: 24px; text-align: center; scroll-snap-align: center;
    background: radial-gradient(120% 70% at 50% 0%, rgba(91, 140, 255, .16), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card));
    color: var(--text-soft);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6), 0 12px 24px -16px rgba(0, 0, 0, .4);
}
.coverflow-card:nth-child(3n + 2) { background: radial-gradient(120% 70% at 50% 0%, rgba(159, 122, 234, .16), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); }
.coverflow-card:nth-child(3n + 3) { background: radial-gradient(120% 70% at 50% 0%, rgba(94, 230, 224, .12), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); }
.coverflow.is-ready .coverflow-card { position: absolute; top: 24px; left: calc(50% - var(--card-w) / 2); will-change: transform, opacity; backface-visibility: hidden; }
/* Depth: side cards fade into the background the further they are (set per frame as --shade). */
.coverflow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: var(--shade, 0); pointer-events: none; }
.coverflow-card.is-active { border-color: rgba(91, 140, 255, .45); box-shadow: 0 40px 80px -30px var(--shadow-glow), 0 16px 32px -18px rgba(0, 0, 0, .45); }
.coverflow-grain { position: absolute; inset: 0; opacity: .08; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.coverflow-card-top { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--mono); font-size: 11.5px; }
.coverflow-date { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(var(--fg-rgb), .04); color: var(--text-2); }
.coverflow-source { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.coverflow-source svg { width: 14px; height: 14px; color: #0a66c2; }
.coverflow-avatars { position: relative; display: flex; justify-content: center; margin: 26px 0 14px; }
.coverflow-avatars img, .coverflow-initials { width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--card); object-fit: cover; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.coverflow-avatars > :last-child { margin-inline-start: -18px; }
.coverflow-avatars img:last-child { object-position: center 18%; }
.coverflow-initials { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 22px; font-weight: 700; }
.coverflow-stars { position: relative; display: flex; gap: 3px; margin-bottom: 12px; color: #fbbf24; }
.coverflow-stars svg { width: 14px; height: 14px; }
.coverflow-quote { position: relative; display: -webkit-box; margin: 0; overflow: hidden; font-size: 15px; line-height: 1.65; white-space: pre-line; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.coverflow-person { position: relative; margin-top: auto; padding-top: 14px; }
.coverflow-person b { display: block; font-size: 16.5px; font-weight: 600; color: var(--text); }
.coverflow-country { margin-inline-start: 4px; font-size: 15px; vertical-align: 1px; }
.coverflow-person small { display: -webkit-box; overflow: hidden; color: var(--text-3); font-size: 12.5px; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.coverflow-controls { display: flex; justify-content: center; gap: 10px; }
.coverflow-controls[hidden] { display: none; }
.coverflow-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(var(--fg-rgb), .03); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s; }
.coverflow-btn:hover, .coverflow-btn:focus-visible { background: rgba(var(--fg-rgb), .09); border-color: rgba(var(--fg-rgb), .3); }
.coverflow-btn svg { width: 16px; height: 16px; }
.coverflow-btn .coverflow-play, .coverflow-btn[data-playing="false"] .coverflow-pause { display: none; }
.coverflow-btn[data-playing="false"] .coverflow-play { display: block; }
[dir="rtl"] .coverflow-dir { transform: scaleX(-1); }
:root[data-theme="light"] .coverflow-card { box-shadow: 0 30px 60px -30px rgba(10, 12, 16, .3), 0 12px 24px -16px rgba(10, 12, 16, .15); }
:root[data-theme="light"] .coverflow-card.is-active { border-color: rgba(47, 95, 232, .35); }
:root[data-theme="light"] .coverflow-avatars img, :root[data-theme="light"] .coverflow-initials { box-shadow: 0 8px 18px -8px rgba(10, 12, 16, .35); }
@media (max-width: 575px) { .coverflow { --card-w: min(78vw, 300px); --card-h: 410px; } }

/* ---------- Community ---------- */
.community { padding-top: 160px; overflow-x: clip; }
.community-glow { position: absolute; top: 40px; left: 50%; width: 900px; height: 500px; margin-left: -450px; background: radial-gradient(closest-side, rgba(91,140,255,.16), transparent); pointer-events: none; }
.sub-title { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.who { margin-top: 64px; }
.who-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.who-card { padding: 24px 24px 26px; background: var(--bg-2); transition: background .4s; }
.who-card:hover { background: var(--card); }
.who-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.who-card p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* Dark theme: one colour per audience card (order follows hub.community.who) */
:root:not([data-theme="light"]) .who-card { --c: 91, 140, 255; --c-text: #a9c1ff; position: relative; background: radial-gradient(110% 90% at 100% 0%, rgba(var(--c), .16), transparent 60%), linear-gradient(180deg, rgba(var(--c), .06), transparent 70%), var(--bg-2); transition: background-color .4s, box-shadow .4s; }
:root:not([data-theme="light"]) .who-card:nth-child(2) { --c: 159, 122, 234; --c-text: #cbb8ff; }
:root:not([data-theme="light"]) .who-card:nth-child(3) { --c: 45, 212, 191; --c-text: #8ef0e0; }
:root:not([data-theme="light"]) .who-card:nth-child(4) { --c: 245, 166, 35; --c-text: #fcd38a; }
:root:not([data-theme="light"]) .who-card:nth-child(5) { --c: 244, 114, 182; --c-text: #f9b4d6; }
:root:not([data-theme="light"]) .who-card:nth-child(6) { --c: 74, 222, 128; --c-text: #9ff0bd; }
:root:not([data-theme="light"]) .who-card:hover { background-color: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--c), .35); }
:root:not([data-theme="light"]) .who-card h4 { display: flex; align-items: center; gap: 10px; color: var(--c-text); }
:root:not([data-theme="light"]) .who-card h4::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 12px rgba(var(--c), .7); }
.how { margin-top: 64px; }
.how-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { padding: 22px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), rgba(var(--card-rgb), .4)); }
.how-steps .mono { font-size: 12px; color: var(--text-3); }
.how-steps h4 { margin-top: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.how-steps p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.not-conf { text-align: center; margin-top: 22px; color: var(--text-3); font-size: 14px; font-family: var(--mono); }

.cities { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cities:has(> .city-card:only-child) { grid-template-columns: 1fr; }
.city-card {
    position: relative; overflow: hidden; padding: 30px 30px 32px; min-height: 300px;
    border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2);
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: border-color .4s, transform .5s var(--ease);
}
.city-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.city-map {
    position: absolute; inset: 0; opacity: .7;
    background:
        radial-gradient(circle at 72% 30%, rgba(122,162,255,.28), transparent 32%),
        radial-gradient(1px 1px at 50% 50%, rgba(var(--fg-rgb), .22) 50%, transparent 51%) 0 0 / 14px 14px;
    mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 70%);
}
.city-card:nth-child(2) .city-map { background:
        radial-gradient(circle at 72% 30%, rgba(110,231,224,.24), transparent 32%),
        radial-gradient(1px 1px at 50% 50%, rgba(var(--fg-rgb), .22) 50%, transparent 51%) 0 0 / 14px 14px; }
.city-map::after { content: ""; position: absolute; left: 72%; top: 30%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 6px rgba(var(--fg-rgb), .08), 0 0 24px 4px rgba(122,162,255,.7); }
.city-top { position: absolute; top: 26px; left: 30px; right: 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.city-coord { font-size: 11.5px; color: var(--text-3); }
.city-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .5); }
.city-name { position: relative; font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.city-sub { position: relative; margin-top: 10px; color: var(--text-2); }
.city-link { position: relative; margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; width: fit-content; }
.city-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.city-link:hover svg { transform: translateX(3px); }

.stats { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stats div { padding: 26px 28px; border-inline-end: 1px solid var(--line); }
.stats div:last-child { border-inline-end: 0; }
.stats dt { font-size: 13px; color: var(--text-2); }
.stats dd { margin: 6px 0 0; font-size: 36px; font-weight: 600; letter-spacing: -0.04em; }

/* ---------- Join form ---------- */
.join-wrap { margin-top: 120px; display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; align-items: start; }
.join-intro { position: sticky; top: 120px; }
.join-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; }
.join-intro p { margin-top: 16px; color: var(--text-2); }

.join-card, .modal-card {
    position: relative; border-radius: 20px; border: 1px solid var(--line-2);
    background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
    box-shadow: 0 40px 100px -50px rgba(91,140,255,.35), 0 1px 0 rgba(var(--fg-rgb), .05) inset;
}
.join-card { padding: 30px 32px 32px; }

.progress { margin-bottom: 8px; }
.progress-bar { height: 3px; border-radius: 3px; background: rgba(var(--fg-rgb), .07); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 25%; background: var(--grad); border-radius: 3px; transition: width .6s var(--ease); }
.progress-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 12.5px; color: var(--text-3); }
.progress-steps li { transition: color .3s; }
.progress-steps li.is-active { color: var(--text); }
.progress-steps li.is-done { color: var(--text-2); }
.step-count { display: none; font-size: 12px; color: var(--text-3); }

.step { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.step[hidden] { display: none; }
.step.is-active { animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
legend { padding: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 22px; }

.fields { display: grid; gap: 22px; }
.fields.two { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label, .field .label { font-size: 13.5px; color: var(--text-strong); font-weight: 500; }
.opt { color: var(--text-3); font-weight: 400; margin-inline-start: 4px; font-size: 12.5px; }
.hint { font-size: 12px; color: var(--text-3); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--text);
    background: rgba(var(--bg-rgb), .6); border: 1px solid var(--line-2); border-radius: 10px;
    padding: 11px 13px; transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:hover, select:hover, textarea:hover { border-color: rgba(var(--fg-rgb), .22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(122,162,255,.7); box-shadow: 0 0 0 4px rgba(91,140,255,.15); background: rgba(var(--bg-rgb), .85); }
.select { position: relative; }
.select::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); pointer-events: none; }
select { padding-inline-end: 36px; cursor: pointer; }
select:invalid { color: var(--text-3); }
option { background: var(--card); color: var(--text); }

.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg .chip { flex: 1 1 0; }
.seg .chip span { justify-content: center; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-size: 14px; color: var(--text-soft);
    border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .02); user-select: none;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.chip:hover span { border-color: rgba(var(--fg-rgb), .26); color: var(--text); }
.chip input:checked + span { color: var(--text); background: rgba(91,140,255,.16); border-color: rgba(122,162,255,.75); box-shadow: 0 0 0 1px rgba(122,162,255,.25) inset; }
.chips .chip input[type="checkbox"]:checked + span::before { content: ""; width: 6px; height: 10px; margin: -2px 0 0 1px; border-right: 1.75px solid var(--accent-text); border-bottom: 1.75px solid var(--accent-text); transform: rotate(45deg); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip:active span { transform: scale(.98); }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400 !important; color: var(--text-2) !important; font-size: 14px !important; line-height: 1.5; }
.consent input { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .6); display: grid; place-items: center; cursor: pointer; }
.consent input:checked { background: var(--btn-bg); border-color: var(--btn-bg); }
.consent input:checked::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border-right: 2px solid var(--btn-fg); border-bottom: 2px solid var(--btn-fg); transform: rotate(45deg); }

.field-error { font-size: 12.5px; color: var(--danger-text); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(248,113,113,.7); }
.field.has-error .chip span { border-color: rgba(248,113,113,.45); }
.form-error { margin-top: 18px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--danger-strong); background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); }
.form-error[hidden] { display: none; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav [data-next], .form-nav [data-submit] { margin-inline-start: auto; }
.form-nav [hidden] { display: none; }

/* Visually hidden without an offset (a -10000px offset makes RTL pages scroll sideways) */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.form-success { text-align: center; padding: 40px 16px 24px; }
.form-success[hidden] { display: none; }
.form-success h3 { margin-top: 20px; font-size: 34px; letter-spacing: -0.04em; font-weight: 600; }
.form-success p { margin-top: 10px; color: var(--text-soft); }
.form-success [data-success-text] { white-space: pre-line; line-height: 1.7; }
.form-success .dim { color: var(--text-3); margin-top: 22px; font-size: 14px; }
.success-mark { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.4); color: var(--green); animation: pop .6s var(--ease); }
.success-mark svg { width: 26px; height: 26px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.success-links svg { width: 15px; height: 15px; }
.is-done > :not(.form-success):not(.hp):not(.modal-head) { display: none !important; }

/* Dark theme: the event form takes the colour of the current step (about you = blue, experience = violet,
   looking for = teal, preferences = amber); card glow, legend, picked chips and focus rings follow it. */
:root:not([data-theme="light"]) #community-form {
    --c: 91, 140, 255; --c-text: #a9c1ff;
    border-color: rgba(var(--c), .3);
    background: radial-gradient(90% 55% at 100% 0%, rgba(var(--c), .14), transparent 60%), linear-gradient(180deg, var(--surface-1), var(--surface-2));
    box-shadow: 0 40px 100px -50px rgba(var(--c), .6), 0 1px 0 rgba(var(--c), .15) inset;
    transition: border-color .5s, box-shadow .5s;
}
:root:not([data-theme="light"]) #community-form:has([data-step="2"].is-active) { --c: 159, 122, 234; --c-text: #cbb8ff; }
:root:not([data-theme="light"]) #community-form:has([data-step="3"].is-active) { --c: 45, 212, 191; --c-text: #8ef0e0; }
:root:not([data-theme="light"]) #community-form:has([data-step="4"].is-active) { --c: 245, 166, 35; --c-text: #fcd38a; }
:root:not([data-theme="light"]) #community-form .progress-bar span { background: linear-gradient(90deg, rgb(91, 140, 255), rgb(var(--c))); }
:root:not([data-theme="light"]) #community-form .progress-steps li { --s: 91, 140, 255; display: flex; align-items: center; gap: 8px; }
:root:not([data-theme="light"]) #community-form .progress-steps li:nth-child(2) { --s: 159, 122, 234; }
:root:not([data-theme="light"]) #community-form .progress-steps li:nth-child(3) { --s: 45, 212, 191; }
:root:not([data-theme="light"]) #community-form .progress-steps li:nth-child(4) { --s: 245, 166, 35; }
:root:not([data-theme="light"]) #community-form .progress-steps li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--s), .3); transition: background .3s, box-shadow .3s; }
:root:not([data-theme="light"]) #community-form .progress-steps li:is(.is-active, .is-done)::before { background: rgb(var(--s)); box-shadow: 0 0 10px rgba(var(--s), .7); }
:root:not([data-theme="light"]) #community-form .progress-steps li.is-active { color: var(--c-text); }
:root:not([data-theme="light"]) #community-form legend, :root:not([data-theme="light"]) #community-form .step-count { color: var(--c-text); }
:root:not([data-theme="light"]) #community-form .chip input:checked + span { background: rgba(var(--c), .16); border-color: rgba(var(--c), .75); box-shadow: 0 0 0 1px rgba(var(--c), .25) inset; }
:root:not([data-theme="light"]) #community-form .chips .chip input[type="checkbox"]:checked + span::before { border-color: var(--c-text); }
:root:not([data-theme="light"]) #community-form .chip input:focus-visible + span { outline-color: rgb(var(--c)); }
:root:not([data-theme="light"]) #community-form :is(input, select, textarea):focus { border-color: rgba(var(--c), .7); box-shadow: 0 0 0 4px rgba(var(--c), .15); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .8fr 1.4fr; gap: 72px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.02) brightness(.95); }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(var(--bg-rgb), .5)); }
.about-text { margin-top: 26px; display: grid; gap: 14px; max-width: 620px; color: var(--text-2); font-size: 17px; }
.about-text p:first-child { color: var(--text-strong); }
.about-links { margin-top: 36px; }
.about-links .label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 12px; font-family: var(--mono); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .02); font-size: 14px; color: var(--text-soft); transition: all .25s; }
.social svg { width: 16px; height: 16px; }
.social:hover { color: var(--text); border-color: rgba(var(--fg-rgb), .26); background: rgba(var(--fg-rgb), .06); transform: translateY(-2px); }

/* ---------- Final CTA ---------- */
.final { position: relative; margin-top: 160px; padding: 140px 0 150px; overflow: hidden; border-top: 1px solid var(--line); text-align: center; background: var(--bg); color: var(--text); }
.final-bg { position: absolute; inset: 0; pointer-events: none; }
.final-bg .grid-bg { mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 70%); }
.final-inner { position: relative; }
.final-title { font-size: clamp(40px, 6.6vw, 88px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.final .section-sub { margin-left: auto; margin-right: auto; }
.final-actions { margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .logo { display: inline-block; font-size: 2.5rem; }
.footer-tag { margin-top: 10px; font-size: 13px; color: var(--text-3); font-family: var(--mono); }
.footer-tag i { margin: 0 .25em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { position: relative; margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }

/* ---------- Modals ---------- */
/* Booking: preferred date & time */
.slot-field .hint { margin-top: -2px; }
.slot-status { font-size: 14px; color: var(--text-2); padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); }
.slot-status[hidden] { display: none; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.slot-days[hidden] { display: none; }
.slot-day {
    flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 66px; padding: 9px 10px;
    border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .02); color: var(--text-soft); font: inherit; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.slot-day:hover { border-color: rgba(var(--fg-rgb), .26); color: var(--text); }
.slot-day.is-active { color: var(--text); background: rgba(91,140,255,.16); border-color: rgba(122,162,255,.75); box-shadow: 0 0 0 1px rgba(122,162,255,.25) inset; }
.slot-day:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.slot-weekday { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.slot-day.is-active .slot-weekday { color: var(--accent-text); }
.slot-date { font-size: 14px; font-weight: 500; white-space: nowrap; }
.slot-times [hidden] { display: none; }
.slot-times .chip span { font-variant-numeric: tabular-nums; }
.slot-local { color: var(--text-2); }
.slot-local[hidden] { display: none; }

/* Booking: price & payment screenshot */
.pay-box { gap: 10px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .025); }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pay-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.pay-amount strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.pay-amount s { color: var(--text-3); font-size: 14px; }
.pay-amount [hidden] { display: none; }
.pay-note { font-size: 12px; padding: 3px 8px; border-radius: 999px; color: var(--green); background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.35); }
.pay-box > .hint[hidden] { display: none; }
.pay-details { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-instructions { padding: 12px 14px; border-radius: 10px; background: rgba(var(--bg-rgb), .5); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--text-soft); overflow-wrap: anywhere; }
.pay-instructions-title { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.pay-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; }
.pay-line strong { color: var(--text); font-weight: 600; }
.pay-copy { position: relative; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .03); color: var(--text-soft); cursor: pointer; transition: all .2s; }
.pay-copy svg { width: 15px; height: 15px; }
.pay-copy:hover, .pay-copy:focus-visible { color: var(--text); background: rgba(var(--fg-rgb), .08); border-color: rgba(var(--fg-rgb), .24); }
input[type="file"] {
    width: 100%; font: inherit; font-size: 14px; color: var(--text-2); padding: 9px; cursor: pointer;
    border: 1px dashed var(--line-2); border-radius: 10px; background: rgba(var(--bg-rgb), .6);
}
input[type="file"]::file-selector-button {
    font: inherit; font-size: 13.5px; margin-inline-end: 12px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .06); color: var(--text);
}
input[type="file"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.field.has-error input[type="file"] { border-color: rgba(248,113,113,.7); }

.modal { padding: 16px; border: 0; background: transparent; color: inherit; max-width: 680px; width: 100%; max-height: 100dvh; overflow: visible; }
.modal::backdrop { background: rgba(4,5,6,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] { animation: modalIn .45s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; background: linear-gradient(180deg, var(--modal-1), var(--modal-2)); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 24px; letter-spacing: -0.03em; font-weight: 600; }
.modal-head .kicker { margin-bottom: 8px; }
.modal-head .dim { margin-top: 6px; font-size: 14px; }
.modal-close { flex: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .03); display: grid; place-items: center; transition: background .2s; }
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: rgba(var(--fg-rgb), .08); }
.modal-body { padding: 22px 28px 8px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px 22px; border-top: 1px solid var(--line); }
.modal-card .form-success { padding: 56px 28px; }
.modal-card .form-success h3 { font-size: 28px; }

.video-modal { max-width: 1100px; }
.video-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 50px 120px -30px rgba(0,0,0,.9); }
.video-frame .modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(0,0,0,.6); }
.video-embed, .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Video pages (/videos, /videos/{slug}) ---------- */
.page-hero, .video-page { position: relative; overflow: hidden; }
.page-hero { padding: 72px 0 48px; }
.page-hero-inner, .video-page-inner { position: relative; }
.page-title { margin-top: 18px; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.crumbs a { color: var(--text-2); transition: color .2s; }
.crumbs a:hover { color: var(--text); }

.videos-page { padding-bottom: 40px; }
.videos-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.videos-toolbar .chips-filter { flex: 0 1 auto; }
a.fchip { display: inline-flex; align-items: center; gap: 6px; }
.fchip-count { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.fchip.is-active .fchip-count { color: var(--text-2); }
.video-search { position: relative; flex: 0 1 300px; min-width: 220px; }
.video-search-icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.video-search-icon svg { width: 16px; height: 16px; }
.video-search input { width: 100%; height: 42px; padding-block: 0; padding-inline: 36px 14px; font: inherit; font-size: 14.5px; color: var(--text); background: rgba(var(--fg-rgb), .02); border: 1px solid var(--line-2); border-radius: 12px; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.video-search input:focus { outline: none; border-color: rgba(122,162,255,.7); box-shadow: 0 0 0 4px rgba(91,140,255,.15); }
.results-meta { margin: -12px 0 28px; font-size: 13px; color: var(--text-2); }
.results-meta a { margin-inline-start: 10px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 56px; }
.pager-info { font-size: 13px; color: var(--text-3); }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.btn svg:first-child:not(:last-child) { margin-inline-start: -2px; }

.video-page { padding: 48px 0 0; }
.video-head { margin-top: 20px; max-width: 900px; }
.video-title { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.video-meta { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--text-2); }
.video-meta li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-inline-end: 20px; vertical-align: middle; border-radius: 50%; background: var(--text-3); }
.meta-cat { padding: 4px 10px; border-radius: 999px; border: 1px solid hsl(var(--h, 220) 70% 60% / .4); background: hsl(var(--h, 220) 70% 50% / .12); color: hsl(var(--h, 220) 70% var(--cat-l)); }

.player { position: relative; margin-top: 36px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 50px 120px -50px rgba(var(--rgb, 91,140,255), .45); }
.player-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.player-facade img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); transition: filter .5s, transform 1s var(--ease); }
.player-facade:hover img { filter: brightness(.95); transform: scale(1.02); }
.player-facade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,.45)); pointer-events: none; }
.play-lg { right: auto; bottom: auto; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%) scale(.95); }
.play-lg svg { width: 30px; height: 30px; margin-left: 4px; }
.player-facade:hover .play-lg { transform: translate(-50%, -50%) scale(1.05); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-static { position: absolute; inset: 0; border: 0; border-radius: 0; aspect-ratio: auto; }
.player-static .gen-title { font-size: clamp(22px, 3.4vw, 44px); max-width: 70%; }
.player-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(var(--bg-rgb), .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.player-overlay p { max-width: 420px; color: var(--text-soft); }
.player-overlay .btn svg { width: 16px; height: 16px; }
.soon-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .6); }

.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; margin-top: 48px; align-items: start; }
.video-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text-strong); }
.prose { margin-top: 28px; color: var(--text-soft); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--text); letter-spacing: -0.025em; line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 20px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(var(--fg-rgb), .06); border: 1px solid var(--line); }
.prose pre { padding: 18px 20px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; }
.prose blockquote { margin-inline-start: 0; padding-inline-start: 18px; border-inline-start: 2px solid var(--blue); color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.watch-on { margin-top: 32px; }
.watch-on a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); transition: color .2s; }
.watch-on a:hover { color: var(--text); }
.watch-on svg { width: 16px; height: 16px; }

.video-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-card { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), rgba(var(--card-rgb), .5)); }
.side-label { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.side-cta .side-label { color: var(--blue); }
.side-cta h2 { font-size: 20px; letter-spacing: -0.025em; font-weight: 600; line-height: 1.25; }
.side-cta p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }
.side-cta .btn { margin-top: 18px; width: 100%; }
.share-row { display: flex; gap: 8px; }
.share-btn { position: relative; flex: 1; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .02); color: var(--text-soft); transition: all .25s; }
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover { color: var(--text); background: rgba(var(--fg-rgb), .07); border-color: rgba(var(--fg-rgb), .24); transform: translateY(-2px); }
.copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; font-size: 11px; background: var(--btn-bg); color: var(--btn-fg); white-space: nowrap; }

.related { padding-top: 120px; }
.final-compact { margin-top: 120px; padding: 110px 0 120px; }
.final-compact .final-title { font-size: clamp(34px, 5vw, 64px); }

@media (max-width: 1080px) {
    .hide-md { display: none; }
    .video-layout { grid-template-columns: 1fr; gap: 32px; }
    .video-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .page-hero { padding: 40px 0 32px; }
    .videos-toolbar { flex-direction: column; align-items: stretch; }
    .video-search { flex-basis: auto; min-width: 0; }
    .video-page { padding-top: 32px; }
    .player { margin-top: 24px; border-radius: 14px; margin-left: -4px; margin-right: -4px; }
    .play-lg { width: 64px; height: 64px; }
    .player-static .gen-title { display: none; }
    .video-side { grid-template-columns: 1fr; }
    .related { padding-top: 88px; }
    .pager { gap: 10px; }
    .pager .btn { flex: 1; }
    .pager-info { display: none; }
}

/* ---------- Header controls: language + theme ---------- */
.icon-btn {
    display: inline-grid; place-items: center; height: 36px; min-width: 36px; padding: 0 10px; border-radius: 9px;
    border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .03); color: var(--text-2);
    font-size: 13px; font-weight: 500; transition: color .2s, background .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(var(--fg-rgb), .07); }
.lang-btn { font-family: "IBM Plex Sans Arabic", var(--font); }
html[lang="ar"] .lang-btn { font-family: "Geist", var(--font); }
.theme-toggle { padding: 0; width: 36px; }
.mobile-tools { display: flex; gap: 8px; margin-top: 12px; }
.mobile-tools .icon-btn { flex: 1; height: 42px; }
.mobile-tools .theme-toggle { width: auto; }
.theme-icon { display: grid; place-items: center; }
.theme-icon svg { width: 17px; height: 17px; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: grid; }

/* Light theme refinements */
:root[data-theme="light"] .portrait img, :root[data-theme="light"] .about-photo img { filter: grayscale(.2) contrast(1.02); }
:root[data-theme="light"] .bg-noise { opacity: .025; }
/* On a light page, cards need a soft shadow to lift off the background */
:root[data-theme="light"] :is(.path, .how-steps li, .who-grid, .topic-grid, .city-card, .stats) { box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -14px rgba(16, 24, 40, .14); }
:root[data-theme="light"] :is(.path, .how-steps li) { background: var(--card); }
:root[data-theme="light"] .topic-card { background: var(--card); }
:root[data-theme="light"] .topic-card:hover, :root[data-theme="light"] .who-card:hover { background: var(--card-2); }
:root[data-theme="light"] .city-card { --c: 47, 95, 232; --c-text: #1d3fb8; }
:root[data-theme="light"] .city-online { --c: 13, 148, 136; --c-text: #0f6f66; }
:root[data-theme="light"] .city-card {
    border-color: rgba(var(--c), .2);
    background:
        radial-gradient(circle at 78% 22%, rgba(var(--c), .16), transparent 45%),
        linear-gradient(150deg, rgba(var(--c), .1) 0%, rgba(var(--c), .03) 55%, #ffffff 100%);
}
:root[data-theme="light"] .city-card:hover { border-color: rgba(var(--c), .38); }
:root[data-theme="light"] .city-map { background: radial-gradient(1px 1px at 50% 50%, rgba(var(--c), .35) 50%, transparent 51%) 0 0 / 14px 14px; }
:root[data-theme="light"] .city-map::after { background: rgb(var(--c)); box-shadow: 0 0 0 6px rgba(var(--c), .14), 0 0 24px 4px rgba(var(--c), .35); }
:root[data-theme="light"] :is(.city-name, .city-link) { color: var(--c-text); }
:root[data-theme="light"] .city-coord { color: rgba(var(--c), .75); }
:root[data-theme="light"] .city-status { border-color: rgba(var(--c), .22); background: rgba(255, 255, 255, .7); }
:root[data-theme="light"] .join-card { box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 30px 70px -40px rgba(47, 95, 232, .35); }

/* ---------- RTL ---------- */
[dir="rtl"] .i-dir { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .i-dir:last-child { transform: scaleX(-1) translateX(2px); }
[dir="rtl"] .path-cta svg { transform: scaleX(-1); }
[dir="rtl"] .path:hover .path-cta svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .city-link:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .city-map { transform: scaleX(-1); }
[dir="rtl"] .step.is-active { animation-name: stepInRtl; }
@keyframes stepInRtl { from { opacity: 0; transform: translateX(-12px); } }

/* Arabic typography: no negative tracking (it breaks joined letters), roomier line height */
html[lang="ar"] body { font-size: 16.5px; }
html[lang="ar"] :is(h1, h2, h3, legend, .btn, .eyebrow, .kicker, .mono, .video-cat, .gen-label, .gen-title, .stats dd, .city-name) { letter-spacing: 0; }
html[lang="ar"] :is(.hero-title, .section-title, .final-title, .page-title, .video-title, .city-name, .join-title) { line-height: 1.3; }
html[lang="ar"] .hero-title { font-size: clamp(38px, 5.2vw, 70px); }
html[lang="ar"] .serif { font-family: var(--font); font-style: normal; font-weight: 600; color: var(--accent-soft); }
html[lang="ar"] .section-title .serif { font-size: 1em; }
html[lang="ar"] .gen-title { line-height: 1.35; }
html[lang="ar"] .hero-meta { font-family: var(--font); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr 380px; gap: 40px; }
    .float-event { inset-inline-start: -40px; }
    .float-badges { inset-inline-end: -12px; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .mentor-layout { grid-template-columns: 1fr; gap: 48px; }
    .mentor-copy { position: static; }
    .join-wrap { grid-template-columns: 1fr; gap: 32px; }
    .join-intro { position: static; }
}

@media (max-width: 860px) {
    .nav-links, .hide-sm, .hide-md { display: none; }
    .nav-toggle { display: inline-block; }
    .hero { padding: 40px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual { justify-self: center; max-width: 360px; }
    .float-event { inset-inline-start: -24px; top: 32px; }
    .float-badges { inset-inline-end: -16px; bottom: 70px; }
    .paths { grid-template-columns: 1fr; margin-top: 48px; gap: 12px; }
    .path { padding: 22px; }
    .path h3 { margin-top: 10px; font-size: 21px; }
    .who-grid { grid-template-columns: 1fr 1fr; }
    .how-steps { grid-template-columns: 1fr; gap: 12px; }
    .section { padding-top: 104px; }
    .band, .pillars { padding-bottom: 96px; }
    .cities { grid-template-columns: 1fr; }
    .city-card { min-height: 250px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats div:nth-child(2) { border-inline-end: 0; }
    .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-photo { max-width: 320px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .nav-cta > .icon-btn { display: none; }
    .nav .logo { font-size: 2.1rem; }
    .nav-inner { gap: 12px; }
    .footer-bottom::before { left: 16px; right: 16px; }
    .eyebrow { font-size: 10.5px; padding: 6px 12px 6px 9px; }
    .eyebrow i { margin: 0 .3em; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-meta { font-size: 12px; }
    .float-event { inset-inline-start: -8px; min-width: 0; font-size: 12px; }
    .float-badges { inset-inline-end: -8px; }
    .video-grid { grid-template-columns: 1fr; gap: 28px; }
    .chips-filter { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .chips-filter::-webkit-scrollbar { display: none; }
    .fchip { flex: none; }
    .section-head.split { display: block; }
    .section-head.split .chips-filter { margin-top: 24px; }
    .topic-grid { grid-template-columns: 1fr; }
    .topic-card { min-height: 0; padding: 26px 22px; }
    .community { padding-top: 120px; }
    .who, .how { margin-top: 48px; }
    .who-grid { grid-template-columns: 1fr; }
    .who-card { padding: 20px; }
    .not-conf { text-align: start; }
    .center-head { text-align: start; }
    .city-card { padding: 24px; }
    .city-top { left: 24px; right: 24px; top: 22px; }
    .join-wrap { margin-top: 88px; }
    .join-card { padding: 22px 18px 22px; border-radius: 16px; }
    .progress-steps { display: none; }
    .step-count { display: block; margin-top: 10px; }
    .step { margin-top: 18px; }
    legend { font-size: 20px; margin-bottom: 18px; }
    .fields.two { grid-template-columns: 1fr; }
    .seg { flex-wrap: wrap; }
    .chip span { padding: 9px 12px; font-size: 13.5px; }
    .form-nav .btn { flex: 1; }
    .final { margin-top: 120px; padding: 100px 0 110px; }
    .final-actions .btn { flex: 1 1 100%; }
    .modal { padding: 0; max-height: 100dvh; margin: auto 0 0; }
    .modal-card { border-radius: 20px 20px 0 0; max-height: 92dvh; }
    .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
    .modal-foot .dim { display: none; }
    .modal-foot .btn { flex: 1; }
    .video-modal { margin: auto; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; filter: none; }
}
