
@font-face {
    font-family: 'Cascadia Code Cursive';
    src: url('assets/fonts/CascadiaCodeItalic.ttf') format('truetype');
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v314/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1p-p_4MrImHCIJIZrDDxHOej.woff2) format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root {
    --bg-primary: #f4f6f8;
    --text-primary: #1d2126;
    --text-secondary: #666;
    --text-tertiary: #999;
    --border-color: #ddd;
    --border-color-light: #ccc;
    --surface: #f5f3ee;
    --surface-alt: #f0ebe3;
    --surface-hover: #eee;
    --highlight-pink: #2c3aff;
    --highlight-orange: #ff4747;
    --highlight-blue: #f30909;
    --popup-overlay: rgba(29, 33, 38, 0.4);
}

[data-theme="dark"] {
    --bg-primary: #1a1d21;
    --text-primary: #e8e6e3;
    --text-secondary: #a8a8a8;
    --text-tertiary: #808080;
    --border-color: #3a3d41;
    --border-color-light: #4a4d51;
    --surface: #242629;
    --surface-alt: #2a2d31;
    --surface-hover: #3a3d41;
    --highlight-pink: #ff6f91;
    --highlight-orange: #ffb347;
    --highlight-blue: #6bcff6;
    --popup-overlay: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

*::-webkit-scrollbar-thumb {
    background-color: transparent;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    font-synthesis: none;
}

body {
    font-family: 'Cascadia Code', 'Cascadia Mono', --apple-ui-monospace, --ui-monospace,
        'Inconsolata', 'Consolas', 'Courier', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.top-row {
    display: none;
}

.top-row .logo {
    display: none;
}

.left-column {
    width: 216px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-left: 8px;
}

.main-content {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.left-content {
    width: 216px;
    flex: 0.3;
    display: flex;
    flex-direction: column;
    padding-left: 8px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
    height: calc(100vh - 80px);
}

.left-content .logo {
    margin-bottom: 16px;
}

.header-group {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 7.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.2em;
    color: var(--text-primary);
    transition: font-size 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    margin-left: -4px;
}

.logo.scrolled {
    font-size: 4.5rem;
}

.profile-image {
    width: 12rem;
    height: 12rem;

    border-radius: 6rem;

    transition: 
        width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
        height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
        color 0.3s ease;
}

.scrolled .profile-image{
    width: 10rem;
    height: 10rem;
}

.info {
    display: flex;
    flex-direction: column;
}

.name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.title {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.footer,
.desktop-footer {
    font-size: 0.8rem;
    line-height: 1.5;
    flex-shrink: 0;
    padding-top: 12px;
}

.commit-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Cascadia Code', monospace;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.commit-link:hover {
    color: var(--text-primary);
}

.commit-icon {
    width: 12px;
    height: 12px;
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: border-color 0.3s ease, background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.theme-toggle:hover {
    opacity: 1;
    background: var(--surface-alt);
}

.theme-toggle .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.theme-toggle .light-mode {
    display: none;
}

.theme-toggle .dark-mode {
    display: block;
}

[data-theme="dark"] .theme-toggle .light-mode {
    display: block;
}

[data-theme="dark"] .theme-toggle .dark-mode {
    display: none;
}

.mobile-header {
    display: none;
}

.mobile-footer {
    display: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.sidebar-nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.sidebar-nav-link::before {
    content: "• ";
    color: var(--border-color-light);
}

.sidebar-nav-link::after {
    content: " ->";
    font-variant-ligatures: none;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -7.2px;
    padding: 0 4px;
    transition: letter-spacing 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.sidebar-nav-link:hover {
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar-nav-link:hover::after {
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.separator {
    position: absolute;
    left: calc(220px + 80px);
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px dotted var(--border-color-light);
    transition: border-color 0.3s ease;
}

.right-column {
    flex: 1;
    padding-left: 130px;
    display: flex;
    flex-direction: column;
}

.right-content {
    flex: 1;
    padding-left: 130px;
    display: flex;
    flex-direction: column;
}

.hello {
    font-size: 4rem;
    font-family: 'Cascadia Code Cursive', 'Cascadia Code', 'Cascadia Mono', --apple-ui-monospace, --ui-monospace,
        'Inconsolata', 'Consolas', 'Courier', monospace;
    font-feature-settings: "ss01" 1, "calt" 1;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 2.8rem;
}

.intro {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 50px;
    margin-top: -12px;
    max-width: 500px;
}

.intro .highlight-name {
    font-weight: 700;
}

.intro .highlight-playful {
    color: var(--highlight-pink);
    font-weight: 700;
}

.intro .highlight-intuitive {
    color: var(--highlight-orange);
    font-weight: 700;
}

.intro .highlight-besties {
    color: var(--highlight-blue);
    font-weight: 700;
}

.sections {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section {
    display: block;
    scroll-margin-top: 40px;
}

.section-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dotted var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.section-header::before {
    display: none;
}

.section-content {
    display: block;
    opacity: 1;
}

.section-content-inner {
    display: block;
}

.section-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 520px;
}

.section-content a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
}

.project-card:hover .project-name {
    font-weight: 700;
}

.project-card:hover .project-name::after {
    letter-spacing: 0.15em;
}

.project-image-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: visible;
    flex-shrink: 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image.padded {
    padding: 6px;
    object-fit: contain;
}

.project-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.project-name {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.project-name::after {
    content: " ->";
    font-variant-ligatures: none;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -7.2px;
    padding: 0 4px;
    transition: letter-spacing 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.project-arrow {
    display: none;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    padding-left: 20px;
    border-left: 1px dotted var(--border-color-light);
    transition: border-color 0.3s ease;
}

.exp-item {
    position: relative;
    padding: 0;
    border: none;
}

.exp-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 6px;
    width: 6px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.exp-role {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.exp-period {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.exp-company {
    display: none;
}

.exp-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
    transition: color 0.3s ease;
}

.exp-skills {
    display: none;
}

.exp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.exp-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-alt);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.social-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

.social-link:hover .social-platform {
    font-weight: 700;
}

.social-link:hover .social-platform::after {
    letter-spacing: 0.15em;
}

.social-emoji {
    display: none;
}

.social-info {
    display: inline;
}

.social-platform {
    font-weight: 500;
    font-size: 1rem;
    transition: font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-platform::after {
    content: " ->";
    font-variant-ligatures: none;
    color: var(--text-primary);
    letter-spacing: -7.2px;
    padding: 0 4px;
    transition: letter-spacing 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.social-handle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 4px;
    transition: color 0.3s ease;
}

.studio-plug {
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: none;
    margin-top: 32px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.studio-plug a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.studio-plug a .arrow {
    letter-spacing: -7.2px;
    transition: letter-spacing 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-variant-ligatures: none;
    padding-right: 4px;
    margin-left: -4px;
}

.studio-plug a:hover {
    font-weight: 700;
}

.studio-plug a:hover .arrow {
    letter-spacing: 0.15em;
}

#likes-dislikes {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.likes-column,
.dislikes-column {
    flex: 1;
    min-width: 180px;
}

.likes-column h3,
.dislikes-column h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.vote-item {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 8px 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.vote-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vote-label {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    transition: color 0.3s ease;
}

.vote-btns {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vote-slash {
    font-size: 0.7em;
    opacity: 0.5;
}

.vote-btn {
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Cascadia Code', 'Cascadia Mono', --apple-ui-monospace, --ui-monospace,
        'Inconsolata', 'Consolas', 'Courier', monospace;
    background: transparent;
    padding: 0;
}

.vote-btn-cap {
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-primary);
}

.vote-btn:hover .vote-btn-cap {
    font-weight: 700;
}

.vote-btn:active {
    opacity: 0.5;
}

.vote-btn.voted {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.vote-count {
    display: none;
}

.vote-bar-wrapper {
    position: relative;
    width: 100%;
    margin-top: 4px;
}

.vote-bar {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: var(--surface-hover);
    border: none;
    overflow: hidden;
    display: flex;
    transition: background-color 0.3s ease;
}

.vote-bar .agree-fill,
.vote-bar .disagree-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vote-bar .agree-fill {
    background: var(--text-primary);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.vote-bar .disagree-fill {
    background: var(--text-tertiary);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.vote-bar-label {
    display: none;
}

.vote-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    width: 100%;
}

.vote-bar-text-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

#vote-instructions {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.mailing-section {
    padding-top: 16px;
    padding-bottom: 12px;
}

.mailing-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.mailing-btn::after {
    content: "->";
    font-variant-ligatures: none;
    font-weight: 400;
    margin-left: 4px;
    letter-spacing: -7.2px;
    transition: letter-spacing 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mailing-btn:hover::after {
    letter-spacing: 0.15em;
}

.popup {
    position: fixed;
    inset: 0;
    background: rgba(29, 33, 38, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
    padding: 20px;
}

.popup:not(.hidden) {
    background: var(--popup-overlay);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.popup.hidden {
    pointer-events: none;
    visibility: hidden;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, visibility 0s 0.35s;
}

.popup-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.popup.hidden .popup-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-variant-ligatures: none;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.popup-close:hover {
    opacity: 0.5;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#email-input {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-primary);
    transition: border-color 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

#email-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

#email-input.input-error {
    border-color: #c00;
}

#signup-button {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

#signup-button-cap {
    background: var(--text-primary);
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg-primary);
    font-family: 'Cascadia Code', 'Cascadia Mono', --apple-ui-monospace, --ui-monospace,
        'Inconsolata', 'Consolas', 'Courier', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease;
}

#signup-button:hover #signup-button-cap {
    font-weight: 700;
}

#signup-button:active #signup-button-cap {
    font-weight: 700;
}

#signup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#signup-message {
    font-size: 0.8rem;
    margin-top: 8px;
    text-align: center;
}

#signup-message.success {
    color: var(--text-primary);
}

#signup-message.error {
    color: #c00;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

#hattcha {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.hc-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: 0.95;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.hc-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.hc-checkmark {
    width: 48px;
    height: 48px;
    position: relative;
    margin-bottom: 8px;
}

.hc-checkmark-ring {
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    position: absolute;
    transition: border-color 0.3s ease;
}

.hc-overlay.active .hc-checkmark-ring {
    animation: hc-ring-draw 0.6s ease forwards;
}

.hc-checkmark-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 28px;
    opacity: 0;
    transform: scale(0.5);
    transition: color 0.3s ease;
}

.hc-overlay.active .hc-checkmark-icon {
    animation: hc-icon-pop 0.4s 0.3s ease forwards;
}

.hc-confirmation {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

@keyframes hc-ring-draw {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes hc-icon-pop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hc-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hc-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.hc-required {
    color: #c00;
    font-size: 0.85rem;
    font-weight: 700;
}

.hc-explanation {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    line-height: 1;
    margin: 0;
    transition: color 0.3s ease;
}

.hc-question {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.hc-controls {
    margin-bottom: 12px;
}

.hc-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hc-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--surface-hover);
    border-radius: 4px;
    outline: none;
    transition: background-color 0.3s ease;
}

.hc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hc-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.hc-emoji-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hc-emoji-btn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.1s ease;
}

.hc-emoji-btn-cap {
    padding: 8px 12px;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease, border-color 0.3s ease;
}

.hc-emoji-btn:hover .hc-emoji-btn-cap {
    border-color: var(--text-primary);
}

.hc-emoji-btn.selected .hc-emoji-btn-cap {
    border-color: var(--text-primary);
    background: var(--surface);
}

.hc-actions {
    display: flex;
    gap: 8px;
}

.hc-btn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
    transition: transform 0.05s ease;
}

.hc-btn-cap {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    transition: all 0.2s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.hc-btn:hover .hc-btn-cap {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.hc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hc-btn.secondary .hc-btn-cap {
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

.hc-btn.secondary:hover .hc-btn-cap {
    background: var(--surface);
    color: var(--text-primary);
}

.hc-success {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-left: 8px;
    transition: color 0.3s ease;
}

@keyframes blurSlideFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.letter-blur-slide-top {
    display: inline-block;
    opacity: 0;
    animation: blurSlideFromTop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    backface-visibility: hidden;
    vertical-align: baseline;
}

.hello {
    opacity: 0;
}

html.js-initialized .hello {
    opacity: 1;
}

html.animations-played .hello {
    opacity: 1 !important;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--text-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.7s step-end infinite;
    transition: background-color 0.3s ease;
}

.intro .typing-cursor {
    height: 1.3em;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.intro,
.sections {
    opacity: 0;
}

html.js-initialized .intro,
html.js-initialized .sections {
    opacity: 1;
}

html.animations-played .intro,
html.animations-played .sections {
    opacity: 1 !important;
}

.intro.typing-ready,
.sections.typing-ready {
    opacity: 1 !important;
}

.section.typing-hidden {
    opacity: 0;
    transform: translateY(15px);
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.section:not(.typing-hidden) {
    visibility: visible;
    height: auto;
}

.section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes typeReveal {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.type-char {
    display: inline;
    opacity: 0;
}

.type-char.revealed {
    animation: typeReveal 0.05s ease forwards;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 30px 20px;
        min-height: 100vh;
    }

    .left-column {
        width: 100%;
        padding-right: 0;
        padding-bottom: 30px;
        flex: 0 0 auto;
    }

    .header-group {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .logo {
        font-size: 4.5rem;
        letter-spacing: -0.12em;
        line-height: 0.85;
        padding-right: 0;
    }

    .logo img {
        transform: scale(0.85);
    }

    .info {
        display: flex;
        flex-direction: column;
        padding-bottom: 4px;
        text-align: right;
    }

    .name {
        font-size: 1.25rem;
        margin-bottom: 2px;
    }

    .title {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .separator {
        display: none;
    }

    .top-row {
        display: none;
    }

    .main-content {
        flex-direction: column;
    }

    .left-content {
        width: 100%;
        padding-right: 0;
        display: none;
        position: static;
        height: auto;
    }

    .right-content {
        padding-left: 0;
    }

    .right-column {
        padding-left: 0;
        flex: 1;
    }

    .hello {
        font-size: 4.5rem;
        margin-bottom: 30px;
    }

    .intro {
        font-size: 1.1rem;
    }

    .desktop-footer {
        display: none;
    }

    .mobile-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 30px;
    }

    .mobile-header .logo {
        font-size: 4.5rem;
        letter-spacing: -0.2em;
        line-height: 0.85;
        padding-right: 0;
    }

    .mobile-header .info {
        text-align: right;
        padding-bottom: 4px;
    }

    .mobile-header .name {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .mobile-header .title {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .mobile-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        position: static;
        padding: 40px 20px 30px;
        font-size: 0.75rem;
        background: transparent;
        margin-top: 40px;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .mobile-footer.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-footer .mailing-btn {
        font-size: 0.85rem;
        padding: 0;
        background: transparent;
        color: var(--text-primary);
        border: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .mobile-footer .mailing-btn::after {
        content: " ->";
        font-variant-ligatures: none;
        letter-spacing: -7.2px;
        transition: letter-spacing 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mobile-footer .mailing-btn:hover::after {
        letter-spacing: 0.15em;
    }

    .mobile-footer-divider {
        display: none;
    }

    .mobile-footer-copyright {
        color: var(--text-secondary);
        transition: color 0.3s ease;
    }

    .mobile-footer .commit-link {
        color: var(--text-tertiary);
        font-size: 0.7rem;
    }

    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
    }

    .theme-toggle .material-symbols-outlined {
        font-size: 16px;
    }

    .sections {
        padding-bottom: 0;
    }

    .project-grid,
    .social-grid {
        padding-left: 0;
        padding-right: 0;
    }

    .experience-list {
        padding-left: 24px;
        padding-right: 0;
    }

    .exp-item::before {
        left: -27px;
    }

    .social-link {
        min-width: 0;
        overflow: hidden;
    }

    .social-handle {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mailing-section {
        display: none;
    }

    #likes-dislikes {
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }

    .likes-column,
    .dislikes-column {
        min-width: 100%;
    }

    .vote-item {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }

    .vote-btn-cap {
        padding: 2px 4px;
    }

    #vote-instructions {
        padding-left: 0;
        padding-right: 0;
        font-size: 0.8rem;
    }
}