* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #050506;
    --bg-soft: #0c0c10;
    --text: #f5f5f7;
    --muted: rgba(245, 245, 247, 0.68);
    --quiet: rgba(245, 245, 247, 0.48);
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.16);
    --like: #bf5af2;
    --like-soft: rgba(191, 90, 242, 0.16);
    --success: #30d158;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius: 8px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f5f7;
    --bg-soft: #ffffff;
    --text: #1d1d1f;
    --muted: rgba(29, 29, 31, 0.68);
    --quiet: rgba(29, 29, 31, 0.48);
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(29, 29, 31, 0.1);
    --line-strong: rgba(29, 29, 31, 0.18);
    --accent: #0071e3;
    --accent-soft: rgba(0, 113, 227, 0.12);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    line-height: 1.55;
    color: var(--text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 42% 12%, rgba(10, 132, 255, 0.28), transparent 34rem),
        radial-gradient(circle at 75% 16%, rgba(94, 92, 230, 0.2), transparent 32rem),
        linear-gradient(180deg, #050506 0%, #101014 48%, #050506 100%);
    background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

:root[data-theme="light"] body {
    background:
        linear-gradient(rgba(29, 29, 31, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 29, 31, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(0, 113, 227, 0.14), transparent 34rem),
        linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 52%, #ffffff 100%);
    background-size: 72px 72px, 72px 72px, auto, auto;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

body.talks-open {
    overflow: hidden;
}

body.quiz-open {
    overflow: hidden;
}

.lang-switch,
.theme-switch {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    z-index: 20;
}

.top-nav {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    z-index: 21;
    transform: translateX(-50%);
}

.nav-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.94);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 14px 44px rgba(164, 92, 255, 0.2);
    font: 820 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    isolation: isolate;
}

:root[data-theme="light"] .nav-pill {
    background: rgba(255, 255, 255, 0.96);
}

.nav-pill::before {
    content: "";
    position: absolute;
    width: 140%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    z-index: -2;
    border-radius: 50%;
    background: conic-gradient(
        rgba(255, 255, 255, 0.72) 0turn,
        rgba(255, 255, 255, 0.72) 0.68turn,
        #5b1b9a 0.74turn,
        #a45cff 0.82turn,
        #eadbff 0.88turn,
        #a45cff 0.94turn,
        rgba(255, 255, 255, 0.72) 1turn
    );
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: border-flow 4.8s linear infinite;
}

.nav-pill::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(18, 18, 22, 0.94);
}

:root[data-theme="light"] .nav-pill::before {
    background: conic-gradient(
        rgba(29, 29, 31, 0.22) 0turn,
        rgba(29, 29, 31, 0.22) 0.68turn,
        #5b1b9a 0.74turn,
        #a45cff 0.82turn,
        #eadbff 0.88turn,
        #a45cff 0.94turn,
        rgba(29, 29, 31, 0.22) 1turn
    );
}

:root[data-theme="light"] .nav-pill::after {
    background: rgba(255, 255, 255, 0.96);
}

.nav-pill:hover {
    color: var(--text);
    box-shadow: 0 16px 52px rgba(164, 92, 255, 0.32);
}

@keyframes border-flow {
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

.lang-switch {
    left: max(16px, env(safe-area-inset-left));
    justify-items: start;
}

.theme-switch {
    right: max(16px, env(safe-area-inset-right));
}

.theme-switch {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.66);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .theme-switch {
    background: rgba(255, 255, 255, 0.76);
}

.lang-switch {
    position: fixed;
    display: grid;
    gap: 8px;
}

.lang-current,
.lang-options {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.78);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .lang-current,
:root[data-theme="light"] .lang-options {
    background: rgba(255, 255, 255, 0.82);
}

.lang-current {
    width: 58px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
}

.lang-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    gap: 2px;
    padding: 4px;
}

.lang-switch.is-open .lang-options {
    display: inline-flex;
}

.theme-switch button,
.lang-options button {
    min-width: 52px;
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: 600 12px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.lang-options button {
    min-width: 46px;
    padding: 0 10px;
    font-size: 17px;
}

.theme-switch button:hover,
.lang-current:hover,
.lang-options button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.theme-switch button:active,
.lang-current:active,
.lang-options button:active,
.contact-btn:active,
.project-card:active,
.links a:active {
    transform: none;
}

.theme-switch button.active,
.lang-options button.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(10, 132, 255, 0.28);
}

.hero {
    width: min(100%, 860px);
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: clamp(92px, 13vw, 144px) 22px clamp(46px, 8vw, 82px);
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.avatar-wrapper::before {
    content: "";
    position: absolute;
    inset: -42px;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.34), transparent 66%);
}

.avatar {
    width: clamp(126px, 18vw, 164px);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(48, 209, 88, 0.28);
    background: rgba(48, 209, 88, 0.1);
    color: var(--success);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.12);
}

h1 {
    max-width: 100%;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 750;
}

h2 {
    margin-bottom: 16px;
    color: var(--text);
    font-size: clamp(24px, 3.8vw, 34px);
    line-height: 1.12;
    font-weight: 720;
}

.role,
.work-setup {
    color: var(--muted);
}

.role {
    max-width: 590px;
    margin: 18px auto 0;
    font-size: clamp(17px, 2.45vw, 23px);
    line-height: 1.32;
    font-weight: 500;
}

.apple {
    margin-left: 6px;
}

.work-setup {
    margin-top: 12px;
    font-size: 15px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 10px;
    width: min(100%, 420px);
    margin: 28px auto 0;
}

.stat {
    min-height: 96px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.stat:hover {
    background: var(--surface-strong);
    border-color: var(--line-strong);
}

.stat-value {
    font-size: 26px;
    line-height: 1;
    font-weight: 750;
}

.stat span {
    color: var(--quiet);
    font-size: 12px;
    font-weight: 600;
}

.section,
.connect-section {
    width: min(calc(100% - 32px), 880px);
    padding: clamp(34px, 6vw, 58px) 0;
    opacity: 1;
    transform: none;
}

.section p {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 20px);
}

.section p + p {
    margin-top: 10px;
}

.swift-talks-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    overflow-y: auto;
    padding: max(74px, calc(env(safe-area-inset-top) + 34px)) 0 max(28px, env(safe-area-inset-bottom));
    color: var(--text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 42% 12%, rgba(10, 132, 255, 0.28), transparent 34rem),
        linear-gradient(180deg, #050506 0%, #101014 48%, #050506 100%);
    background-size: 72px 72px, 72px 72px, auto, auto;
}

:root[data-theme="light"] .swift-talks-screen {
    background:
        linear-gradient(rgba(29, 29, 31, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 29, 31, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(0, 113, 227, 0.14), transparent 34rem),
        linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 52%, #ffffff 100%);
    background-size: 72px 72px, 72px 72px, auto, auto;
}

.swift-talks-screen.is-open {
    display: block;
}

.swift-quiz-screen {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    overflow-y: auto;
    padding: max(74px, calc(env(safe-area-inset-top) + 34px)) 0 max(28px, env(safe-area-inset-bottom));
    color: var(--text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 58% 10%, rgba(10, 132, 255, 0.32), transparent 34rem),
        linear-gradient(180deg, #050506 0%, #101014 48%, #050506 100%);
    background-size: 72px 72px, 72px 72px, auto, auto;
}

:root[data-theme="light"] .swift-quiz-screen {
    background:
        linear-gradient(rgba(29, 29, 31, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 29, 31, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(0, 113, 227, 0.14), transparent 34rem),
        linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 52%, #ffffff 100%);
    background-size: 72px 72px, 72px 72px, auto, auto;
}

.swift-quiz-screen.is-open {
    display: block;
}

.swift-talks-content {
    width: min(calc(100% - 32px), 980px);
    margin: 0 auto;
    padding: clamp(18px, 4vw, 42px) 0 clamp(42px, 8vw, 86px);
}

.talks-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    text-align: center;
}

.talks-header h2 {
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
}

.talks-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 760;
}

.talks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.talks-close {
    position: fixed;
    top: 16px;
    right: 16px;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 101;
}

.talks-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: 680 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.talks-button:hover {
    border-color: var(--line-strong);
    background: var(--surface-strong);
}

.talks-button.primary {
    border-color: rgba(10, 132, 255, 0.44);
    background: var(--accent);
    color: #fff;
}

.talk-card {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.talks-topic-hub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.swift-intro-track,
.toolbox-track {
    display: none;
}

.swift-talks-screen.is-viewing-intro .talks-topic-hub {
    display: none;
}

.swift-talks-screen.is-viewing-intro .swift-intro-track {
    display: block;
}

.swift-talks-screen.is-viewing-toolbox .talks-topic-hub {
    display: none;
}

.swift-talks-screen.is-viewing-toolbox .toolbox-track {
    display: block;
}

.talk-topic-card {
    width: 100%;
    display: flex;
    min-height: 330px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(10, 132, 255, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(10, 132, 255, 0.18), transparent 46%),
        linear-gradient(180deg, var(--surface-strong), var(--surface));
    color: var(--text);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16);
}

.talk-topic-card:hover {
    border-color: rgba(10, 132, 255, 0.58);
    background:
        linear-gradient(135deg, rgba(10, 132, 255, 0.24), transparent 48%),
        linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: 0 22px 62px rgba(10, 132, 255, 0.14);
}

.talk-topic-card-preview {
    cursor: default;
    border-color: var(--line);
    background:
        linear-gradient(135deg, rgba(245, 245, 247, 0.08), transparent 46%),
        linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.talk-topic-card-preview:hover {
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(245, 245, 247, 0.1), transparent 48%),
        linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16);
}

.talk-topic-copy {
    display: grid;
    gap: 12px;
}

.talk-topic-title {
    display: block;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
    font-weight: 800;
}

.talk-topic-description {
    max-width: 100%;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 620;
}

.talk-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.talk-topic-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 720;
}

.talk-topic-action {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 760;
    box-shadow: 0 16px 34px rgba(10, 132, 255, 0.24);
}

.talk-topic-action.muted {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    box-shadow: none;
}

.talks-track-header {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.talks-accordion {
    display: grid;
    gap: 14px;
}

.talk-accordion-item {
    padding: 0;
    overflow: hidden;
}

.talk-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(18px, 3vw, 26px) clamp(20px, 4vw, 34px);
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.talk-accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.035);
}

.talk-accordion-title {
    display: block;
    margin-top: 5px;
    font-size: clamp(25px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 760;
}

.talk-chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    color: var(--muted);
    transform: rotate(45deg);
    transition: transform 180ms var(--ease), color 180ms var(--ease);
}

.talk-accordion-item.is-expanded .talk-chevron {
    color: var(--accent);
    transform: rotate(225deg);
}

.talk-accordion-panel {
    display: none;
    padding: 0 clamp(20px, 4vw, 34px) clamp(20px, 4vw, 34px);
}

.talk-accordion-item.is-expanded .talk-accordion-panel {
    display: block;
}

.talk-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
    line-height: 1.2;
}

.talk-card p,
.talk-card li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.62;
}

.talk-intro {
    max-width: 780px;
    margin-bottom: 22px;
    color: var(--text) !important;
    font-size: clamp(18px, 2.4vw, 22px) !important;
    line-height: 1.42 !important;
}

.talk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 4vw, 32px);
}

.talk-grid + .talk-grid,
.talk-highlight + .talk-grid,
.talk-grid + .talk-highlight {
    margin-top: 24px;
}

.talk-card ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.talk-card code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.92em;
}

.talk-highlight {
    margin: 26px 0 0;
    padding: 18px 20px;
    border: 1px solid rgba(10, 132, 255, 0.34);
    border-radius: var(--radius);
    background: var(--accent-soft);
}

.talk-highlight span {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 760;
}

.talk-highlight blockquote {
    color: var(--text);
    font-size: clamp(19px, 3vw, 28px);
    line-height: 1.25;
    font-weight: 730;
}

.talk-highlight-rich {
    display: grid;
    gap: 10px;
}

.talk-highlight-rich p,
.talk-highlight-rich li {
    color: var(--text);
    font-size: clamp(16px, 2.1vw, 20px);
    line-height: 1.45;
    font-weight: 650;
}

.talk-highlight-rich ul {
    display: grid;
    gap: 6px;
    padding-left: 20px;
}

.talk-resource-list a {
    color: var(--accent);
    font-weight: 680;
}

.talk-resource-list a:hover {
    color: var(--text);
}

.talk-roadmap {
    margin: 24px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.18);
}

.talk-roadmap img {
    width: 100%;
    height: auto;
    display: block;
}

.talk-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font-size: 14px;
    font-weight: 620;
}

.talk-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.talk-footer a {
    color: var(--accent);
}

.talk-footer .talks-actions {
    justify-content: flex-end;
}

.talk-footer .talks-button.primary {
    color: #fff;
}

.talk-like {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

.talk-quiz-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.talks-accordion + .talk-quiz-cta {
    margin-top: 14px;
}

.talk-quiz-cta p {
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 680;
}

.talk-quiz-button {
    min-width: min(38vw, 360px);
    min-height: 92px;
    padding: 0 54px;
    border-radius: 999px;
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 820;
}

.swift-quiz-content {
    width: min(calc(100% - 32px), 1040px);
}

.quiz-score-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
}

.swift-quiz-card {
    display: grid;
    gap: 18px;
}

.swift-quiz-legend {
    display: none;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.swift-quiz-legend.is-visible {
    display: flex;
}

.quiz-swatch {
    width: 13px;
    height: 13px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 4px;
    vertical-align: -2px;
}

.quiz-swatch.correct {
    background: rgba(48, 209, 88, 0.34);
}

.quiz-swatch.wrong {
    background: rgba(255, 69, 58, 0.34);
}

.quiz-swatch.missed {
    background: rgba(255, 214, 10, 0.34);
}

.swift-quiz-form {
    display: grid;
    gap: 14px;
}

.swift-quiz-part {
    margin-top: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 780;
}

.swift-quiz-question {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.swift-quiz-question.correct-question {
    border-color: rgba(48, 209, 88, 0.42);
    box-shadow: inset 4px 0 0 var(--success);
}

.swift-quiz-question.wrong-question {
    border-color: rgba(255, 69, 58, 0.44);
    box-shadow: inset 4px 0 0 #ff453a;
}

.swift-quiz-question strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.34;
}

.swift-quiz-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    line-height: 1.45;
}

.swift-quiz-option input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.swift-quiz-option.correct-selected {
    border-color: rgba(48, 209, 88, 0.54);
    background: rgba(48, 209, 88, 0.16);
    color: var(--text);
}

.swift-quiz-option.wrong-selected {
    border-color: rgba(255, 69, 58, 0.54);
    background: rgba(255, 69, 58, 0.14);
    color: var(--text);
}

.swift-quiz-option.missed-correct {
    border-color: rgba(255, 214, 10, 0.54);
    background: rgba(255, 214, 10, 0.14);
    color: var(--text);
}

.swift-quiz-feedback {
    display: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 720;
}

.correct-question .swift-quiz-feedback,
.wrong-question .swift-quiz-feedback {
    display: block;
}

.swift-quiz-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
}

.swift-quiz-actions .talks-button {
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.swift-quiz-actions .talks-button.primary {
    box-shadow: 0 16px 34px rgba(10, 132, 255, 0.22);
}

.swift-quiz-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.swift-quiz-feedback-button {
    min-height: 58px;
    padding: 0 34px;
    font-size: 16px;
    box-shadow: 0 16px 34px rgba(10, 132, 255, 0.22);
}

.like-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.like-button:hover {
    border-color: rgba(191, 90, 242, 0.42);
    background: var(--like-soft);
    color: var(--like);
}

.like-button:focus-visible {
    outline: 3px solid rgba(191, 90, 242, 0.34);
    outline-offset: 3px;
}

.like-button[aria-pressed="true"] {
    border-color: rgba(191, 90, 242, 0.58);
    background: var(--like-soft);
    color: var(--like);
}

.like-icon {
    width: 24px;
    height: 24px;
    display: block;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 160ms var(--ease), transform 160ms var(--ease);
}

.like-button[aria-pressed="true"] .like-icon {
    fill: currentColor;
    transform: scale(1.05);
}

#about p {
    white-space: normal;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    font-weight: 560;
}

.chips span:hover {
    color: var(--text);
    background: var(--surface-strong);
    border-color: var(--line-strong);
}

.card,
.project-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card {
    margin-top: 10px;
    padding: 18px 20px;
    color: var(--text);
}

.card:hover,
.project-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.exp-meta {
    margin-top: 5px;
    color: var(--quiet);
    font-size: 14px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.project-card {
    min-height: 144px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    color: var(--text);
}

.education-card {
    min-height: 150px;
}

.project-title {
    display: block;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 680;
}

.project-card small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.project-card small + small {
    margin-top: 6px;
    color: var(--quiet);
}

.links a {
    color: var(--accent);
    font-weight: 620;
}

.connect-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 76px;
    text-align: center;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.links a {
    position: relative;
    padding: 4px 0;
}

.links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
}

.links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-btn {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    text-align: center;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.contact-icon {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    transform: translate3d(0, -0.02em, 0);
}

:root[data-theme="light"] .contact-btn {
    color: var(--accent);
}

.contact-btn:hover {
    color: var(--accent);
    text-shadow: 0 12px 28px rgba(10, 132, 255, 0.35);
}

.is-language-changing [data-i18n] {
    opacity: 1;
    transform: none;
}

[data-i18n] {
    transition: none;
}

.hero [data-i18n],
.hero .role,
.hero .work-setup,
.hero .apple {
    transition: none;
}

@media (max-width: 680px) {
    html {
        scroll-behavior: auto;
    }

    .lang-switch,
    .theme-switch {
        top: max(14px, env(safe-area-inset-top));
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .theme-switch button {
        min-width: 58px;
    }

    .top-nav {
        top: max(62px, calc(env(safe-area-inset-top) + 62px));
    }

    .hero {
        min-height: auto;
        padding-top: 118px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .stat {
        min-height: 86px;
    }

    .section,
    .connect-section,
    .swift-talks-content,
    .swift-quiz-content {
        width: min(calc(100% - 28px), 880px);
        opacity: 1;
        transform: none;
        transition: none;
    }

    .avatar-wrapper::before {
        transform: none;
        transition: none;
    }

    .stat,
    .card,
    .project-card,
    .status-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .talks-topic-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .talks-header,
    .talk-footer-meta,
    .talk-quiz-cta,
    .talk-topic-card {
        align-items: stretch;
        flex-direction: column;
    }

    .talks-actions,
    .talk-footer .talks-actions,
    .swift-quiz-actions {
        justify-content: flex-start;
    }

    .talk-like {
        width: 100%;
        justify-content: flex-start;
    }

    .talk-grid {
        grid-template-columns: 1fr;
    }

    .talk-quiz-cta .talks-button {
        align-self: flex-start;
    }

    .talk-topic-action {
        width: 100%;
    }

}

@media (max-width: 420px) {
    .theme-switch button {
        min-width: 44px;
        padding: 0 8px;
        font-size: 11px;
    }

    .lang-current {
        width: 50px;
        min-height: 38px;
    }

    h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    .role {
        font-size: 17px;
    }

    .contact-btn {
        font-size: 36px;
    }

    .nav-pill {
        min-height: 44px;
        padding: 0 18px;
        font-size: 15px;
    }

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

    .talks-topic-hub {
        grid-template-columns: 1fr;
    }

    .talk-topic-card {
        min-height: 280px;
    }

    .talks-actions .talks-button {
        width: 100%;
    }

    .talk-quiz-cta .talks-button,
    .swift-quiz-actions .talks-button,
    .swift-quiz-feedback-button {
        width: 100%;
    }

    .swift-quiz-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }

    .section,
    .connect-section {
        opacity: 1;
        transform: none;
    }
}
