@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@0;1&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light dark;
  --bg: #f3f0e9;
  --bg-soft: #e9e4da;
  --surface: rgba(255, 255, 255, .68);
  --surface-solid: #fffdf8;
  --surface-raised: rgba(255, 255, 255, .86);
  --text: #171612;
  --muted: #6e6a61;
  --line: rgba(23, 22, 18, .12);
  --accent: #008751;
  --accent-bright: #2fbf71;
  --accent-soft: #dcefe4;
  --black: #11110f;
  --white: #fffdf8;
  --success: #287b58;
  --danger: #aa4038;
  --shadow: 0 24px 70px rgba(28, 23, 10, .14);
  --shadow-soft: 0 12px 32px rgba(28, 23, 10, .08);
  --blur: blur(24px) saturate(150%);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --nav-h: 78px;
  --max: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0b;
    --bg-soft: #151510;
    --surface: rgba(28, 28, 23, .62);
    --surface-solid: #181814;
    --surface-raised: rgba(35, 34, 27, .84);
    --text: #f8f4e9;
    --muted: #aaa59a;
    --line: rgba(255, 255, 255, .11);
    --accent: #3ecf7b;
    --accent-bright: #6ee7a1;
    --accent-soft: #133522;
    --shadow: 0 24px 80px rgba(0, 0, 0, .44);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, .3);
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0e9;
  --bg-soft: #e9e4da;
  --surface: rgba(255, 255, 255, .68);
  --surface-solid: #fffdf8;
  --surface-raised: rgba(255, 255, 255, .86);
  --text: #171612;
  --muted: #6e6a61;
  --line: rgba(23, 22, 18, .12);
  --accent: #008751;
  --accent-bright: #2fbf71;
  --accent-soft: #dcefe4;
  --shadow: 0 24px 70px rgba(28, 23, 10, .14);
  --shadow-soft: 0 12px 32px rgba(28, 23, 10, .08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0b;
  --bg-soft: #151510;
  --surface: rgba(28, 28, 23, .62);
  --surface-solid: #181814;
  --surface-raised: rgba(35, 34, 27, .84);
  --text: #f8f4e9;
  --muted: #aaa59a;
  --line: rgba(255, 255, 255, .11);
  --accent: #3ecf7b;
  --accent-bright: #6ee7a1;
  --accent-soft: #133522;
  --shadow: 0 24px 80px rgba(0, 0, 0, .44);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  padding-bottom: 108px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28rem),
    radial-gradient(circle at 0% 38%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.glass { background: var(--surface); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: .35s ease;
}
.site-nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(20px); border-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { position: relative; width: 31px; height: 31px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; }
.brand-mark::after { content: ''; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; opacity: .45; }
.brand span:last-child { color: var(--accent); }
.nav-links { display: none; }
.nav-links a { color: var(--muted); padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; justify-content: flex-end; gap: 9px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: .2s ease; }
.icon-btn:hover { color: var(--accent); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.avatar-btn { width: 42px; height: 42px; border-radius: 50%; padding: 3px; background: var(--accent); border: 0; }
.avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 24%; }
.menu-btn { display: none; }

.app-dock {
  position: fixed;
  z-index: 180;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(76px, 104px));
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
}
.dock-link {
  position: relative;
  min-height: 58px;
  padding: 7px 12px 6px;
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  transition: .22s ease;
}
.dock-link .icon { width: 21px; height: 21px; transition: .22s ease; }
.dock-link:hover { color: var(--text); background: var(--surface); transform: translateY(-2px); }
.dock-link.active { color: var(--accent); background: var(--accent-soft); }
.dock-link.active::after { content: ''; position: absolute; top: 4px; width: 17px; height: 2px; border-radius: 2px; background: var(--accent); }
.dock-link.active .icon { stroke-width: 2.3; }

.btn { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-dark { background: var(--black); color: white; border-color: var(--black); }
[data-theme="dark"] .btn-dark { background: var(--accent); color: #16130d; border-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .btn-dark { background: var(--accent); color: #16130d; border-color: var(--accent); } }
.btn-accent { background: var(--accent); color: #15120b; border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 38px; padding-inline: 15px; }

.hero { min-height: calc(100vh - var(--nav-h)); padding: 22px 0 48px; }
.hero-panel { position: relative; min-height: 710px; overflow: hidden; border-radius: 38px; background: #111 url('creators-hero.png') 52% center/cover no-repeat; color: white; box-shadow: var(--shadow); }
.hero-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,4,.92) 0%, rgba(5,5,4,.78) 35%, rgba(5,5,4,.14) 69%, rgba(5,5,4,.1)), linear-gradient(0deg, rgba(0,0,0,.35), transparent 45%); }
.hero-copy { position: relative; z-index: 2; width: min(610px, 54%); min-height: 710px; padding: 100px 0 78px 70px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero .eyebrow { color: var(--accent-bright); }
.hero h1 { font-size: clamp(52px, 6.2vw, 91px); line-height: .98; letter-spacing: -.065em; margin: 22px 0 26px; max-width: 680px; }
.hero h1 .serif { color: var(--accent-bright); }
.hero-copy > p { color: rgba(255,255,255,.72); max-width: 500px; font-size: 16px; }
.hero-actions { display: flex; gap: 11px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,.25); color: white; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.hero-note { position: absolute; z-index: 3; right: 34px; bottom: 30px; width: 294px; border-radius: 20px; padding: 18px; background: rgba(16,15,12,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(18px); }
.hero-note-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hero-note strong { display: block; font-size: 13px; }
.hero-note small { color: rgba(255,255,255,.56); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #69d69a; box-shadow: 0 0 0 5px rgba(105,214,154,.15); margin: 7px; }
.mini-avatars { display: flex; margin-top: 14px; }
.mini-avatars span { width: 31px; height: 31px; border-radius: 50%; border: 2px solid #12281e; margin-right: -8px; background: linear-gradient(135deg, #32b874, #0e5c3b); display: grid; place-items: center; font-size: 10px; }
.hero-scroll { position: absolute; left: 24px; bottom: 28px; transform: rotate(-90deg) translateY(-50%); transform-origin: left bottom; color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }

.section { padding: 105px 0; }
.section-tight { padding: 64px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.05; margin: 10px 0 0; max-width: 730px; }
.section-heading p { color: var(--muted); max-width: 400px; margin: 0; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.path-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 16px; }
.path-card { position: relative; min-height: 390px; padding: 30px; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface-solid); border: 1px solid var(--line); transition: .35s ease; }
.path-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.path-card.featured { background: var(--black); color: white; }
.path-card.featured::after { content: ''; position: absolute; width: 300px; height: 300px; right: -85px; bottom: -95px; border-radius: 50%; border: 1px solid rgba(47,191,113,.55); box-shadow: inset 0 0 80px rgba(47,191,113,.13), 0 0 0 28px rgba(47,191,113,.035), 0 0 0 56px rgba(47,191,113,.025); }
.path-index { color: var(--accent); font-family: 'Playfair Display', serif; font-size: 13px; }
.path-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.featured .path-icon { background: rgba(255,255,255,.1); color: var(--accent-bright); }
.path-card h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.04em; margin: 18px 0 10px; }
.path-card p { color: var(--muted); margin: 0; }
.featured p { color: rgba(255,255,255,.62); }
.path-link { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 600; margin-top: 24px; position: relative; z-index: 2; }

.spotlight { display: grid; grid-template-columns: .92fr 1.08fr; border-radius: var(--radius-lg); overflow: hidden; min-height: 590px; background: var(--surface-solid); border: 1px solid var(--line); }
.spotlight-media { position: relative; background: url('amara-profile.png') center 20%/cover; min-height: 540px; }
.spotlight-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.58), transparent 55%); }
.spotlight-badge { position: absolute; z-index: 2; bottom: 25px; left: 25px; right: 25px; padding: 18px; border-radius: 18px; color: white; background: rgba(10,10,9,.35); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(16px); }
.spotlight-copy { padding: clamp(36px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.spotlight-copy h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; margin: 18px 0 24px; }
.quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; color: var(--muted); border-left: 1px solid var(--accent); padding-left: 22px; margin: 20px 0 30px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }

.cta { position: relative; padding: 80px 50px; border-radius: var(--radius-lg); background: var(--black); color: white; overflow: hidden; text-align: center; }
.cta::before { content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(47,191,113,.3); box-shadow: 0 0 0 55px rgba(47,191,113,.04), 0 0 0 110px rgba(47,191,113,.025); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(40px, 5vw, 70px); line-height: 1.02; letter-spacing: -.055em; margin: 18px auto 22px; max-width: 800px; }
.cta p { color: rgba(255,255,255,.6); max-width: 570px; margin: 0 auto 28px; }

.site-footer { padding: 35px 0 48px; }
.footer-inner { border-top: 1px solid var(--line); padding-top: 28px; display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: center; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 12px; }
.footer-meta { color: var(--muted); font-size: 11px; }

/* shared app shell */
.app-main { padding: 28px 0 80px; min-height: calc(100vh - var(--nav-h)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin: 34px 0 32px; }
.page-head h1 { margin: 8px 0 0; font-size: clamp(44px, 5.4vw, 74px); line-height: 1; letter-spacing: -.06em; }
.page-head p { color: var(--muted); max-width: 460px; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill .icon { width: 13px; height: 13px; }

/* profile */
.profile-layout { display: grid; grid-template-columns: minmax(360px,.88fr) minmax(430px,1.12fr); min-height: calc(100vh - 112px); gap: 18px; padding-bottom: 18px; }
.profile-portrait { position: sticky; top: calc(var(--nav-h) + 18px); height: calc(100vh - var(--nav-h) - 36px); min-height: 620px; border-radius: var(--radius-lg); overflow: hidden; background: url('amara-profile.png') center 17%/cover; color: white; }
.profile-portrait::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,7,6,.9) 0%, rgba(7,7,6,.1) 58%, rgba(7,7,6,.05)); }
.profile-top { position: absolute; inset: 26px 26px auto; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; }
.profile-id { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(10,10,9,.38); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.18); }
.profile-copy { position: absolute; z-index: 2; bottom: 0; inset-inline: 0; padding: 38px; }
.profile-copy h1 { font-size: clamp(45px, 5.5vw, 76px); line-height: .9; letter-spacing: -.065em; margin: 15px 0; }
.profile-copy p { color: rgba(255,255,255,.7); max-width: 470px; }
.profile-meta { display: flex; gap: 18px; margin-top: 24px; font-size: 11px; color: rgba(255,255,255,.68); }
.profile-meta span { display: flex; align-items: center; gap: 6px; }
.profile-meta .icon { width: 14px; }
.profile-content { padding: clamp(12px, 2vw, 28px); }
.profile-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); transition: .2s; }
.socials a:hover { background: var(--accent); color: #17120a; transform: translateY(-3px); }
.link-stack { display: grid; gap: 11px; }
.profile-link { min-height: 84px; padding: 15px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; display: grid; grid-template-columns: 48px 1fr 35px; align-items: center; gap: 14px; transition: .25s ease; }
.profile-link:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface-raised); }
.link-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.profile-link strong { display: block; font-size: 14px; }
.profile-link small { color: var(--muted); }
.link-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.profile-section { margin-top: 42px; }
.profile-section h2 { font-size: 30px; letter-spacing: -.04em; margin: 0 0 17px; }
.project-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 11px; }
.project { min-height: 220px; border-radius: 22px; overflow: hidden; position: relative; background: #161512; color: white; }
.project:first-child { grid-row: span 2; min-height: 450px; background: url('creators-hero.png') 62% center/cover; }
.project:nth-child(2) { background: linear-gradient(145deg, #072d1e, #168a55); }
.project:nth-child(3) { background: linear-gradient(145deg, #1d1d1b, #4f514e); }
.project::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 65%); }
.project-label { position: absolute; z-index: 2; left: 20px; bottom: 18px; }
.project-label strong { display: block; }
.project-label small { color: rgba(255,255,255,.62); }
.ai-card { margin-top: 22px; padding: 18px; border-radius: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.ai-card .path-icon { flex: 0 0 auto; width: 45px; height: 45px; border-radius: 14px; }
.ai-card strong { display: block; font-size: 13px; }
.ai-card small { color: var(--muted); }

/* modal */
.modal { border: 0; padding: 0; border-radius: 28px; background: var(--surface-solid); color: var(--text); width: min(600px, calc(100% - 28px)); max-height: calc(100vh - 28px); overflow-y: auto; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(7px); }
.modal-inner { padding: 30px; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.modal-head h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.field input, .field textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 13px; padding: 12px 13px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.field textarea { min-height: 90px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

/* courses */
.dashboard { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.dash-side { position: sticky; top: calc(var(--nav-h) + 18px); padding: 18px; border-radius: var(--radius); }
.student-card { padding: 14px; border-radius: 17px; background: var(--black); color: white; margin-bottom: 18px; }
.student-card-top { display: flex; gap: 10px; align-items: center; }
.student-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.student-card strong { display: block; font-size: 12px; }
.student-card small { color: rgba(255,255,255,.52); }
.side-links { display: grid; gap: 5px; }
.side-links::-webkit-scrollbar { display: none; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--muted); border-radius: 12px; font-size: 12px; }
.side-links a.active { color: var(--text); background: var(--surface-raised); font-weight: 600; }
.side-links .icon { width: 17px; }
.student-only { margin-top: 18px; padding: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.dash-main { min-width: 0; }
.course-welcome { padding: 28px; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: center; }
.course-welcome h1 { margin: 7px 0 9px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -.055em; }
.progress-ring { --p: 42; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.progress-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface-solid); }
.progress-ring strong { position: relative; font-size: 23px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 22px 0; }
.course-card { position: relative; min-height: 220px; border-radius: 22px; padding: 22px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.course-card.active-course { background: var(--black); color: white; }
.course-card::after { content: ''; position: absolute; right: -70px; top: -65px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.course-card .pill { width: max-content; }
.course-card h3 { margin: 16px 0 4px; font-size: 21px; line-height: 1.18; letter-spacing: -.035em; }
.course-card p { color: var(--muted); font-size: 11px; margin: 0; }
.active-course p { color: rgba(255,255,255,.55); }
.course-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 18px; }
.course-progress span { display: block; height: 100%; background: var(--accent); }
.curriculum { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-solid); }
.curriculum-head { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.curriculum-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.module { border-bottom: 1px solid var(--line); }
.module:last-child { border: 0; }
.module-head { width: 100%; border: 0; padding: 17px 22px; background: transparent; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 13px; text-align: left; }
.module-status { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); }
.module.complete .module-status { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.module.current .module-status { background: var(--accent-soft); color: var(--accent); }
.module-title strong { display: block; font-size: 13px; }
.module-title small { color: var(--muted); }
.module-content { padding: 0 22px 20px 72px; display: none; }
.module.open .module-content { display: block; animation: drop .28s ease both; }
.lesson { padding: 12px 0; display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); }
.lesson:first-child { border: 0; }
.lesson .icon { width: 17px; color: var(--muted); }
.lesson-info { flex: 1; }
.lesson-info strong { display: block; font-size: 12px; }
.lesson-info small { color: var(--muted); }
.locked { opacity: .52; }

/* community */
.community-shell { height: calc(100vh - var(--nav-h) - 38px); min-height: 680px; display: grid; grid-template-columns: 260px minmax(420px,1fr) 280px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow-soft); }
.community-sidebar { border-right: 1px solid var(--line); padding: 18px; overflow-y: auto; }
.community-brand { padding: 7px 7px 18px; display: flex; justify-content: space-between; align-items: center; }
.community-brand strong { font-size: 17px; letter-spacing: -.03em; }
.channel-section { margin-top: 19px; }
.channel-label { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px; color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.channel { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--muted); font-size: 12px; }
.channel.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.channel .icon { width: 16px; }
.channel em { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #17120a; font-style: normal; font-size: 9px; }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.chat-head { height: 71px; padding: 0 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.chat-head h1 { font-size: 16px; margin: 0; }
.chat-head p { color: var(--muted); font-size: 10px; margin: 1px 0 0; }
.chat-messages { flex: 1; min-height: 0; padding: 22px; overflow-y: auto; }
.day-divider { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; margin: 5px 0 20px; }
.day-divider::before, .day-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.message { display: grid; grid-template-columns: 38px 1fr; gap: 11px; margin-bottom: 21px; }
.message-avatar { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; object-position: 50% 18%; background: var(--accent-soft); }
.message-meta { display: flex; align-items: center; gap: 7px; }
.message-meta strong { font-size: 11px; }
.message-meta small { color: var(--muted); font-size: 9px; }
.admin-badge { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.message-text { margin-top: 4px; font-size: 12px; }
.message-card { margin-top: 9px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-width: 480px; }
.message-card-cover { height: 110px; background: url('creators-hero.png') center 35%/cover; }
.message-card-copy { padding: 14px; }
.message-card-copy strong { display: block; }
.message-card-copy small { color: var(--muted); }
.chat-compose { margin: 0 18px 18px; min-height: 57px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); display: flex; align-items: center; gap: 9px; }
.chat-compose input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 12px; min-width: 0; }
.send-btn { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; border: 0; background: var(--accent); color: #17120a; }
.community-info { border-left: 1px solid var(--line); padding: 22px 18px; overflow-y: auto; }
.group-emblem { width: 65px; height: 65px; border-radius: 20px; display: grid; place-items: center; background: var(--black); color: var(--accent-bright); margin-bottom: 15px; }
.community-info h2 { font-size: 19px; line-height: 1.1; margin: 0 0 6px; }
.community-info > p { color: var(--muted); font-size: 10px; }
.info-stat { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0; border-block: 1px solid var(--line); }
.info-stat div { padding: 13px 0; }
.info-stat strong { display: block; }
.info-stat small { color: var(--muted); font-size: 9px; }
.member-list { margin-top: 20px; }
.member-list h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.member { display: flex; gap: 9px; align-items: center; padding: 7px 0; }
.member-avatar { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); display: grid; place-items: center; font-size: 9px; color: #17120a; }
.member strong { display: block; font-size: 10px; }
.member small { display: block; font-size: 8px; color: var(--muted); }
.online { width: 7px; height: 7px; border-radius: 50%; background: #42a978; margin-left: auto; }
.admin-tools { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* feed */
.feed-layout { display: grid; grid-template-columns: minmax(0, 660px) 290px; gap: 30px; justify-content: center; align-items: start; }
.stories { display: flex; gap: 15px; overflow-x: auto; padding: 2px 2px 20px; scrollbar-width: none; }
.story { flex: 0 0 66px; text-align: center; }
.story-ring { width: 62px; height: 62px; border-radius: 50%; padding: 2px; background: conic-gradient(from 45deg, var(--accent), #bce8cf, #0b6b40, var(--accent)); margin: auto; display: block; overflow: hidden; }
.story-ring img, .story-ring span { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; object-position: 50% 18%; background: var(--surface-solid); display: grid; place-items: center; }
.story small { font-size: 9px; display: block; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer { padding: 16px; border-radius: 20px; display: flex; gap: 11px; align-items: center; margin-bottom: 15px; }
.composer img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.composer button { flex: 1; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; height: 42px; padding: 0 16px; color: var(--muted); font-size: 11px; }
.post { border-radius: 25px; margin-bottom: 16px; overflow: hidden; }
.post-head { padding: 16px; display: flex; align-items: center; gap: 10px; }
.post-avatar { width: 40px; height: 40px; border-radius: 13px; object-fit: cover; object-position: 50% 18%; }
.post-author { flex: 1; }
.post-author strong { display: block; font-size: 11px; }
.post-author small { color: var(--muted); font-size: 9px; }
.post-media { aspect-ratio: 16/10; background: url('creators-hero.png') center/cover; }
.post-media.portrait { background-image: url('amara-profile.png'); background-position: center 24%; aspect-ratio: 5/4; }
.post-actions { display: flex; align-items: center; padding: 13px 15px 5px; gap: 5px; }
.post-actions button { width: 39px; height: 39px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.post-actions button:hover { background: var(--bg-soft); }
.post-actions .liked { color: #c94c47; }
.post-actions .liked .icon { fill: currentColor; }
.post-actions .save { margin-left: auto; }
.post-copy { padding: 0 17px 18px; font-size: 11px; }
.post-copy strong { margin-right: 5px; }
.post-copy .likes { display: block; margin: 5px 0; font-weight: 600; }
.feed-side { position: sticky; top: calc(var(--nav-h) + 22px); }
.me-card { display: flex; gap: 11px; align-items: center; padding: 14px; border-radius: 18px; }
.me-card img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; object-position: 50% 18%; }
.me-card strong { font-size: 11px; display: block; }
.me-card small { font-size: 9px; color: var(--muted); }
.side-title { display: flex; justify-content: space-between; margin: 24px 5px 9px; font-size: 10px; color: var(--muted); }
.suggestion { display: flex; gap: 9px; align-items: center; padding: 9px 4px; }
.suggestion .member-avatar { border-radius: 50%; }
.suggestion div:nth-child(2) { flex: 1; }
.suggestion strong { display: block; font-size: 9px; }
.suggestion small { color: var(--muted); font-size: 8px; display: block; }
.follow { border: 0; background: transparent; color: var(--accent); font-size: 9px; font-weight: 700; }
.side-foot { color: var(--muted); font-size: 8px; margin: 22px 4px; }

/* publishing, authority and creator identity */
.profession-tag { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 7px 11px; border-radius: 999px; color: var(--accent-bright); background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); font-size: 10px; font-weight: 600; }
.profile-copy .profession-tag { display: flex; margin-top: 13px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.achievement { min-height: 155px; padding: 19px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.achievement .path-icon { width: 40px; height: 40px; border-radius: 12px; }
.achievement strong { display: block; font-size: 12px; line-height: 1.35; }
.achievement small { color: var(--muted); font-size: 9px; }
.video-embed { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 24px; border: 1px solid var(--line); background: var(--black); box-shadow: var(--shadow-soft); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-title { display: block; margin: 4px 0 7px; font-size: 20px; line-height: 1.2; letter-spacing: -.035em; }
.post-title:hover { color: var(--accent); }
.post-keywords { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 2px; }
.post-keywords a, .keyword { color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 8px; font-size: 8px; font-weight: 600; }
.seo-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--success); font-size: 8px; font-weight: 600; margin-left: auto; }
.channel span:nth-child(2) { min-width: 0; }
.channel b, .channel small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel b { font-size: 11px; }
.channel small { color: var(--muted); font-size: 8px; font-weight: 400; }
.modal-wide { width: min(760px, calc(100% - 28px)); }
.publish-note { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border-radius: 14px; color: var(--muted); background: var(--accent-soft); font-size: 10px; margin: 15px 0; }
.publish-note .icon { flex: 0 0 auto; color: var(--accent); }
.editor-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; margin-top: 5px; }

.article-page { padding: 32px 0 100px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; margin: 12px 0 34px; }
.breadcrumb a:hover { color: var(--accent); }
.article-hero { max-width: 980px; margin: 0 auto 42px; text-align: center; }
.article-hero h1 { font-size: clamp(43px, 7vw, 84px); line-height: .98; letter-spacing: -.065em; margin: 19px auto 22px; }
.article-deck { color: var(--muted); font-size: clamp(15px, 2vw, 19px); max-width: 720px; margin: auto; }
.article-byline { display: flex; justify-content: center; align-items: center; gap: 11px; margin-top: 25px; }
.article-byline img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.article-byline strong, .article-byline small { display: block; text-align: left; }
.article-byline strong { font-size: 11px; }
.article-byline small { color: var(--muted); font-size: 9px; }
.article-cover { width: min(1120px, 100%); height: min(68vw, 670px); min-height: 390px; border-radius: var(--radius-lg); margin: 0 auto 48px; background: url('creators-hero.png') center/cover; box-shadow: var(--shadow); }
.article-cover.portrait-cover { background-image: url('amara-profile.png'); background-position: center 23%; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 65px; justify-content: center; align-items: start; }
.article-body { font-family: 'Playfair Display', serif; font-size: 20px; line-height: 1.82; }
.article-body > p:first-child::first-letter { float: left; color: var(--accent); font-size: 78px; line-height: .78; padding: 13px 9px 0 0; }
.article-body h2 { font-family: 'Poppins', sans-serif; font-size: 31px; line-height: 1.2; letter-spacing: -.045em; margin: 52px 0 16px; }
.article-body blockquote { margin: 42px 0; padding: 26px 0 26px 27px; border-left: 3px solid var(--accent); font-size: 27px; line-height: 1.45; font-style: italic; }
.article-aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 13px; }
.authority-card { padding: 18px; border-radius: 18px; }
.authority-card strong { display: block; font-size: 11px; }
.authority-card p { color: var(--muted); font-size: 9px; margin: 4px 0 12px; }
.authority-list { display: grid; gap: 8px; margin-top: 12px; }
.authority-list span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.authority-list .icon { width: 14px; color: var(--accent); }
.article-share { display: flex; gap: 7px; }
.topic-header { padding: 48px; border-radius: var(--radius-lg); background: var(--black); color: white; overflow: hidden; position: relative; }
.topic-header::after { content: '#'; position: absolute; right: 25px; bottom: -100px; color: rgba(255,255,255,.04); font: 320px/1 'Playfair Display', serif; }
.topic-header h1 { max-width: 820px; font-size: clamp(45px, 7vw, 82px); line-height: .96; letter-spacing: -.06em; margin: 20px 0; }
.topic-header p { max-width: 680px; color: rgba(255,255,255,.62); }
.topic-stats { display: flex; gap: 28px; margin-top: 25px; }
.topic-stats strong, .topic-stats small { display: block; }
.topic-stats small { color: rgba(255,255,255,.48); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 22px; align-items: start; }
.topic-feed { display: grid; gap: 12px; }
.topic-article { padding: 22px; border-radius: 21px; display: grid; grid-template-columns: 1fr 170px; gap: 20px; align-items: center; }
.topic-article h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.04em; margin: 7px 0; }
.topic-article p { color: var(--muted); font-size: 10px; }
.topic-thumb { min-height: 130px; height: 100%; border-radius: 15px; background: url('creators-hero.png') center/cover; }
.schema-card { padding: 23px; border-radius: 22px; }
.schema-card h2 { margin: 7px 0; font-size: 22px; }
.schema-card p { color: var(--muted); font-size: 10px; }

/* booking */
.booking-shell { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-solid); box-shadow: var(--shadow); }
.booking-host { position: relative; padding: 42px; color: white; background: linear-gradient(0deg, rgba(4,28,18,.91), rgba(4,28,18,.08)), url('amara-profile.png') center 22%/cover; display: flex; flex-direction: column; justify-content: flex-end; }
.booking-host h1 { font-size: clamp(42px, 5vw, 66px); line-height: .96; letter-spacing: -.06em; margin: 16px 0; }
.booking-host p { color: rgba(255,255,255,.7); }
.booking-panel { padding: clamp(28px, 5vw, 65px); }
.booking-panel h2 { margin: 7px 0 6px; font-size: 31px; letter-spacing: -.045em; }
.booking-panel > p { color: var(--muted); font-size: 11px; }
.booking-step { margin-top: 28px; }
.booking-step h3 { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.booking-step h3 span { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.date-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.date-option, .time-option { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; min-height: 72px; display: grid; place-items: center; text-align: center; transition: .2s; }
.date-option small, .date-option strong { display: block; }
.date-option small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.date-option.selected, .time-option.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-option { min-height: 45px; }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.booking-confirmation { min-height: 520px; display: grid; place-items: center; text-align: center; }
.confirmation-mark { width: 82px; height: 82px; margin: auto; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--accent); }
.confirmation-mark .icon { width: 35px; height: 35px; }
.booking-confirmation h2 { font-size: 38px; margin: 20px 0 8px; }
.booking-confirmation p { color: var(--muted); }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 12px 18px; border-radius: 999px; background: var(--black); color: white; font-size: 11px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(22px); transition: .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

@media (max-width: 1050px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links, .nav-links.open { display: none; }
  .menu-btn { display: none; }
  .nav-actions .btn { display: none; }
  .path-grid { grid-template-columns: 1.2fr .8fr; }
  .path-card:last-child { grid-column: 1 / -1; min-height: 280px; }
  .community-shell { grid-template-columns: 230px 1fr; }
  .community-info { display: none; }
}

@media (max-width: 820px) {
  :root { --nav-h: 68px; }
  .container { width: min(100% - 26px, var(--max)); }
  .hero { padding-top: 10px; }
  .hero-panel { min-height: 720px; border-radius: 27px; background-position: 64% center; }
  .hero-panel::before { background: linear-gradient(0deg, rgba(5,5,4,.94) 0%, rgba(5,5,4,.65) 58%, rgba(5,5,4,.14)); }
  .hero-copy { width: 100%; min-height: 720px; justify-content: flex-end; padding: 60px 25px 178px; }
  .hero h1 { font-size: clamp(50px, 14vw, 72px); max-width: 600px; }
  .hero-note { left: 22px; right: 22px; bottom: 20px; width: auto; }
  .hero-scroll { display: none; }
  .section { padding: 76px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .path-grid { grid-template-columns: 1fr; }
  .path-card, .path-card:last-child { grid-column: auto; min-height: 310px; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 520px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-portrait { position: relative; top: 0; height: 76vh; min-height: 580px; }
  .profile-copy { padding: 26px; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .dash-side { position: static; min-width: 0; width: 100%; overflow: hidden; }
  .side-links { display: flex; overflow-x: auto; scrollbar-width: none; }
  .side-links a { white-space: nowrap; }
  .student-only { display: none; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .feed-layout { grid-template-columns: minmax(0, 660px); }
  .feed-side { display: none; }
  .article-grid { grid-template-columns: minmax(0, 720px); }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .topic-layout { grid-template-columns: 1fr; }
  .booking-shell { grid-template-columns: 1fr; }
  .booking-host { min-height: 580px; }
}

@media (max-width: 650px) {
  body { padding-bottom: 92px; }
  .brand { font-size: 17px; }
  .nav-actions { gap: 6px; }
  .nav-actions .avatar-btn { display: none; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions .btn { flex: 1; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head p { font-size: 12px; }
  .cta { padding: 65px 23px; }
  .project-grid { grid-template-columns: 1fr; }
  .project:first-child { grid-row: auto; min-height: 360px; }
  .profile-actions { align-items: flex-start; gap: 15px; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .course-welcome { grid-template-columns: 1fr; }
  .progress-ring { width: 92px; height: 92px; }
  .course-grid { grid-template-columns: 1fr; }
  .module-head { padding-inline: 15px; }
  .module-content { padding-left: 65px; }
  .community-shell { grid-template-columns: 1fr; height: calc(100vh - var(--nav-h) - 18px); min-height: 640px; border-radius: 23px; }
  .community-sidebar { display: none; }
  .chat-messages { padding: 16px; }
  .chat-head { padding-inline: 16px; }
  .post { border-radius: 20px; }
  .app-dock { left: 0; right: 0; bottom: 0; width: 100%; transform: none; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 6px 7px max(7px, env(safe-area-inset-bottom)); border-inline: 0; border-bottom: 0; border-radius: 23px 23px 0 0; }
  .dock-link { min-width: 0; min-height: 58px; padding-inline: 3px; border-radius: 15px; font-size: 8px; }
  .dock-link .icon { width: 20px; height: 20px; }
  .achievement-grid { grid-template-columns: 1fr; }
  .achievement { min-height: 120px; }
  .article-cover { min-height: 300px; border-radius: 22px; }
  .article-grid { gap: 32px; }
  .article-body { font-size: 18px; }
  .article-aside { grid-template-columns: 1fr; }
  .topic-header { padding: 34px 24px; }
  .topic-article { grid-template-columns: 1fr; }
  .topic-thumb { min-height: 190px; grid-row: 1; }
  .booking-host { min-height: 520px; padding: 28px; }
  .date-grid { grid-template-columns: repeat(2, 1fr); }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
