:root {
    --bg: #334155;
    --text: #e0f2fe;
    --text-dim: rgba(224, 242, 254, 0.7);
    --text-faint: rgba(224, 242, 254, 0.5);
    /* industrial LED matrix yellow */
    --accent: #ffd447;
    --accent-strong: #ffe97a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* Force cursor none on all interactive elements */
a, button, input, select, textarea, video, audio, iframe,
[role="button"], [role="link"], [role="tab"],
video::-webkit-media-controls, 
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel {
    cursor: none !important;
}

/* Restore system cursor over embeds */
iframe {
    cursor: auto !important;
}

/* Show default cursor only in fullscreen */
:fullscreen,
:fullscreen * {
    cursor: auto !important;
}

.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
    transition: transform 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: radial-gradient(circle, rgba(255, 140, 0, 0.5) 0%, rgba(255, 140, 0, 0.3) 50%, rgba(255, 140, 0, 0.1) 80%, transparent 100%);
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 140, 0, 0.3));
    will-change: transform;
    backface-visibility: hidden;
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
}

.custom-cursor svg circle[r="14"] {
    fill: rgba(255, 140, 0, 0.15);
}

.custom-cursor .circle-group {
    transform-origin: center;
    transition: none;
}

.custom-cursor.hovering .circle-group {
    animation: rotateCircleCounter 2s linear infinite;
}

.custom-cursor.hovering.reverse .circle-group {
    animation: rotateCircleCounter 2s linear infinite reverse;
}

.custom-cursor.hovering .chevron {
    transform-origin: center;
    animation: rotateCursor 2s linear infinite;
}

.custom-cursor.hovering.reverse .chevron {
    animation: rotateCursor 2s linear infinite reverse;
}

.custom-cursor svg .chevron {
    transform-origin: center;
}

.custom-cursor svg .chevron-inner {
    transform-origin: center;
}

.custom-cursor.hovering .chevron {
    animation: rotateCursor 2s linear infinite;
}

.custom-cursor.hovering.reverse .chevron {
    animation: rotateCursor 2s linear infinite reverse;
}

.custom-cursor.clicking:not(.hovering) .chevron-top .chevron-inner {
    transform: translateY(1px);
}

.custom-cursor.clicking:not(.hovering) .chevron-bottom .chevron-inner {
    transform: translateY(-1px);
}

.custom-cursor.clicking:not(.hovering) .chevron-left .chevron-inner {
    transform: translateX(1px);
}

.custom-cursor.clicking:not(.hovering) .chevron-right .chevron-inner {
    transform: translateX(-1px);
}

.custom-cursor.hovering.clicking .chevron-top .chevron-inner {
    transform: translateY(1px);
}

.custom-cursor.hovering.clicking .chevron-bottom .chevron-inner {
    transform: translateY(-1px);
}

.custom-cursor.hovering.clicking .chevron-left .chevron-inner {
    transform: translateX(1px);
}

.custom-cursor.hovering.clicking .chevron-right .chevron-inner {
    transform: translateX(-1px);
}

@keyframes rotateCursor {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCircleCounter {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes rotateAndContractTop {
    from {
        transform: rotate(0deg) translateY(1px);
    }
    to {
        transform: rotate(360deg) translateY(1px);
    }
}

@keyframes rotateAndContractBottom {
    from {
        transform: rotate(0deg) translateY(-1px);
    }
    to {
        transform: rotate(360deg) translateY(-1px);
    }
}

@keyframes rotateAndContractLeft {
    from {
        transform: rotate(0deg) translateX(1px);
    }
    to {
        transform: rotate(360deg) translateX(1px);
    }
}

@keyframes rotateAndContractRight {
    from {
        transform: rotate(0deg) translateX(-1px);
    }
    to {
        transform: rotate(360deg) translateX(-1px);
    }
}

/* Global Link Styles */
a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

a:active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

html {
    font-size: 100%;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg);
    background-image: url('../media/site-bg.mp4');
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    text-shadow: 0 0 0.5rem rgba(224, 242, 254, 0.5);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 65, 85, 0.75);
    pointer-events: none;
    z-index: -1;
}

body > video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center bottom;
    z-index: -2;
}

.container {
    text-align: left;
    max-width: 37.5rem;
    width: 100%;
    padding: 2.5rem 1.25rem;
}

.subtitle {
    font-size: clamp(125%, 3vw, 175%);
    font-weight: 300;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    letter-spacing: 0.03125rem;
}

.title {
    font-size: clamp(200%, 5vw, 350%);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1; /* ensure line box equals font-size for perfect centering */
    text-align: left;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1ch;
    white-space: nowrap;
    overflow: visible;
}

.statement {
    font-size: clamp(112.5%, 2vw, 140%);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.85;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(224, 242, 254, 0.2);
}

.statement .read-more {
    font-size: 0.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.statement .read-more:hover {
    opacity: 1;
}

.statement.sub {
    margin-bottom: 1.875rem !important;
}

.statement--no-border {
    border-bottom: none;
    margin-bottom: 0.625rem;
    padding-bottom: 0;
}

.title:has(#word:empty) {
    gap: 0;
}

.title:has(+ .content-scroll),
.title:has(+ nav + .content-scroll),
.title:has(+ nav + .glossary-scroll),
.title:has(+ .glossary-scroll) {
    margin-bottom: 2.5rem;
    justify-content: center;
}

.word-wrapper {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 0;
}

#word {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    height: 1em; /* match title's font-size for consistent caret/text centering */
    line-height: 1;
    text-decoration: underline;
}

/* Blinking caret at the end of the typed text */
#word::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.125rem;
    height: 1em;
    background: currentColor;
    animation: blink 1s steps(1) infinite;
}

/* Solid caret while typing */
#word.typing::after {
    animation: none;
    opacity: 1;
}

@keyframes blink {
    50% { opacity: 0; }
}

.typed-word-link {
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.typed-word-link:hover {
    color: #fff;
}

.typed-word-link:active {
    color: var(--accent);
}

.char {
    position: absolute;
    top: 0;
    display: inline-block;
}

.panel-stack {
    position: relative;
    /* margin-top: 2.5rem; */
    margin-bottom: 2.5rem;
    transition: height 0.3s ease;
}

.panel-stack > .linktree,
.panel-stack > .contact-form {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.linktree {
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* When linktree appears after content (on placeholder pages) */
.statement + .linktree {
    margin-top: 2.5rem;
}

.linktree ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    /* gap: 0.75rem; */
}

.linktree a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text);
    font-size: clamp(100%, 1.6vw, 125%);
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.linktree a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 0.0625rem;
    background: #fff;
    transition: width 0.3s ease;
}

.linktree a:hover {
    /* opacity: 0.8; */
    /* padding-left: 0.75rem; */
    color: #fff;
}

.linktree a:hover::before {
    width: 100%;
}

.linktree a:active,
.linktree a.is-active {
    color: var(--accent);
    border-bottom-color: rgba(245, 178, 122, 0.6);
    text-shadow: 0 0 12px rgba(245, 178, 122, 0.35);
}

.linktree a:focus-visible {
    outline: 1px dashed rgba(245, 178, 122, 0.65);
    outline-offset: 0.25rem;
}

/* Fade helpers */
.linktree.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.contact-form {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.form-back {
    font-size: clamp(100%, 1vw, 112.5%);
    color: #e0f2fe;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0.75rem 0;
    cursor: none;
    display: inline-block !important;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.form-back::before {
    content: '←' !important;
    margin-right: 0.5ch;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
}

.form-back::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 0.0625rem;
    background: #fff;
    transition: width 0.3s ease;
}

.form-back:hover {
    padding-left: 0.75rem;
    color: #fff;
}

.form-back:hover::after {
    width: 100%;
}

.form-back:active,
.form-back.is-active {
    color: var(--accent);
    border-bottom-color: rgba(255, 212, 71, 0.6);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

.form-send {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(100%, 1vw, 112.5%);
    color: #e0f2fe;
    background: none;
    border: 0;
    padding: 0.75rem 0;
    cursor: none;
    align-self: center;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 0.5rem rgba(224, 242, 254, 0.5)
}

.form-send::after {
    content: '→';
    margin-left: 0.5ch;
}

.form-send::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 0;
    height: 0.0625rem;
    background: #fff;
    transition: width 0.3s ease;
}

.form-send:hover {
    padding-right: 0.75rem;
    color: #fff;
}

.form-send:hover::before {
    width: 100%;
}

.form-send:active,
.form-send.is-active {
    color: var(--accent);
    border-bottom-color: rgba(255, 212, 71, 0.6);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

.contact-form.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Minimal form styling */
.form-title {
    font-size: clamp(125%, 3vw, 175%);
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-row label {
    font-size: clamp(100%, 1.2vw, 112.5%);
    color: rgba(224, 242, 254, 0.8);
}

.form-row input,
.form-row textarea {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(100%, 1.2vw, 112.5%);
    color: #e0f2fe;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    border-radius: 0;
    outline: none;
}

.form-row select {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(100%, 1.2vw, 112.5%);
    color: #e0f2fe;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    border-radius: 0;
    outline: none;
    appearance: none;
}

.form-row input:focus,
.form-row textarea:focus {
    border-bottom-color: var(--accent);
    color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

/* Form error messages */
.form-error {
    display: none;
    font-size: clamp(87.5%, 1vw, 100%);
    color: #ff6b6b;
    margin-top: 0.25rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form feedback (success/error messages) */
.form-feedback {
    display: none;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
    font-size: clamp(87.5%, 1vw, 100%);
    animation: slideDown 0.3s ease;
}

.form-feedback.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.form-feedback.success {
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid rgba(80, 250, 123, 0.3);
    color: #50fa7b;
}

/* Disabled button state */
button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form-row select:focus {
    border-bottom-color: var(--accent);
    color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(224, 242, 254, 0.5);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.btn {
    font-size: clamp(100%, 1vw, 112.5%);
    padding: 0.625rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #e0f2fe;
    cursor: none;
    transition: background 0.3s ease, transform 0.1s ease;
}

.btn.primary {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn:active {
    transform: translateY(0.0625rem);
}
/* Right-facing arrow for contact link (icon on left) */
.linktree a.contact-arrow {
    padding-left: 1.4em;
}
.linktree a.contact-arrow::after {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em; /* scale with link text */
    line-height: 1;
    opacity: 0.8;
}

/* External link icon (on left) */
.linktree a.external-link {
    padding-left: 1.4em;
}
.linktree a.external-link::after {
    content: '↗';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    line-height: 1;
    opacity: 0.8;
}

/* Subsection styling */
.linktree .sub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-left: 1rem;
    /* margin-top: 0.5rem; */
    /* collapse by default with smooth transition */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
}

.linktree .subsection.open .sub-list {
    /* allow scrolling when item count grows - responsive height for 1.5 items */
    max-height: clamp(6rem, 18vh, 9rem);
    opacity: 1;
    overflow-y: auto;
}

.linktree .works-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding-left: 0;
}

.linktree .works-column {
    list-style: none;
}

.linktree .works-column-title {
    display: block;
    font-size: clamp(75%, 1vw, 85%);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

.linktree .works-sublist {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Nested items adopt previous heading style */
.linktree .sub-list a {
    display: block;
    padding: 0.625rem 0;
    font-size: clamp(87.5%, 1.2vw, 95%);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.075s ease;
    position: relative;
}

.linktree .sub-list a:active,
.linktree .sub-list a.is-active {
    color: var(--accent);
    border-bottom-color: rgba(255, 212, 71, 0.6);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

.linktree .subsection.open > .subsection-toggle,
.linktree .subsection-toggle.is-active {
    color: var(--accent);
}

/* Caret indicator on the toggle link (on left) */
.linktree .subsection-toggle {
    padding-left: 1.4em;
}
.linktree .subsection-toggle::after {
    content: '▾';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.25s ease;
    opacity: 0.8;
    font-size: 1em; /* scale with parent link font-size */
    line-height: 1; /* keep baseline alignment consistent */
}

.linktree .subsection.open > .subsection-toggle::after {
    opacity: 1;
    color: var(--accent);
}

/* Project Page Styles */
.project-section {
    margin-bottom: 2.5rem;
}

.project-details {
    margin-bottom: 2.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 212, 71, 0.2);
}

.detail-line {
    font-size: clamp(100%, 1.5vw, 110%);
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.85;
    margin: 0.5rem 0;
}

.detail-line strong {
    display: inline-block;
    min-width: min-content;
}

.detail-line a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-line#detail-avatar a,
.detail-line#detail-avatar a:visited {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.detail-line#detail-avatar a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

.detail-line#detail-avatar a:active {
    color: #fff;
    border-bottom-color: #fff;
}

/* Detail field indentation by ID */
#detail-avatar {
    padding-left: 11ch;
}

#detail-avatar strong {
    margin-left: -11ch;
}

#detail-role {
    padding-left: 9ch;
}

#detail-role strong {
    margin-left: -9ch;
}

#detail-associate {
    padding-left: 14ch;
}

#detail-associate strong {
    margin-left: -14ch;
}

#detail-date {
    padding-left: 9ch;
}

#detail-date strong {
    margin-left: -9ch;
}

#detail-location {
    padding-left: 13ch;
}

#detail-location strong {
    margin-left: -13ch;
}

#detail-platform {
    padding-left: 13ch;
}

#detail-platform strong {
    margin-left: -13ch;
}

.detail-line strong {
    color: var(--accent);
    font-weight: 500;
}
.section-title {
    font-size: clamp(150%, 3vw, 200%);
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--accent);
    text-transform: lowercase;
    letter-spacing: 0.03125rem;
}

.subsection-title {
    font-size: clamp(100%, 1.6vw, 125%);
    font-weight: 400;
    margin-top: 1.875rem;
    margin-bottom: 0.9375rem;
    color: var(--accent);
    text-transform: uppercase;
    opacity: 0.85;
    letter-spacing: 0.05em;
}

.process-content {
    margin-top: 1.25rem;
}

.tools-list {
    list-style: none;
    margin-top: 0.625rem;
    padding-left: 0;
}

.tools-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: clamp(100%, 1.4vw, 112.5%);
}

.tools-list li:last-child {
    border-bottom: none;
}

.project-media {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.project-media.carousel-wrapper {
    margin-bottom: 0;
}

.project-media img,
.project-media video,
.project-media iframe {
    display: block;
    border-radius: 1.25% !important;
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border: 2px solid rgba(255, 212, 71, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: none;
}

.project-media video,
.project-media iframe {
    box-shadow: inset 0 0 30px rgba(255, 212, 71, 0.5);
    margin: 1.25rem 0 0;
}

.project-media video:hover,
.project-media iframe:hover {
    box-shadow: inset 0 0 30px rgba(255, 212, 71, 0.66);
}

.project-media img:hover,
.project-media video:hover,
.project-media iframe:hover {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 212, 71, 0.25);
}

.project-media iframe:last-child {
    margin-bottom: 0;
}

.project-media iframe.video-full-width {
    margin-top: 0;
}

.project-media iframe:only-of-type {
    margin-top: 0;
}

/* Song title styling */
.song-title {
    font-size: clamp(110%, 1.6vw, 125%);
    font-weight: 500;
    margin: 1.25rem 0 0.625rem 0;
    color: var(--text);
    text-transform: lowercase;
    opacity: 0.95;
}

.song-title:first-of-type {
    margin-top: 0;
}

/* Audio player styling inside project media */
.project-media .audio-player {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 212, 71, 0.15);
    border-radius: 0.25rem;
}

.media-player {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.media-player.media-video {
    gap: 0.25rem;
}

.media-player video,
.media-player audio {
    width: 100%;
    height: auto;
}

.media-player.media-video video {
    margin-bottom: 0;
}

.media-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 212, 71, 0.2);
    border-radius: 0.25rem;
    flex-wrap: wrap;
}

.media-control-button {
    appearance: none;
    background: rgba(255, 212, 71, 0.12);
    border: 1px solid rgba(255, 212, 71, 0.4);
    color: var(--text);
    padding: 0.25rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    border-radius: 0.2rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.media-control-button:hover,
.media-control-button:focus-visible {
    background: rgba(255, 212, 71, 0.22);
    border-color: rgba(255, 212, 71, 0.7);
    color: var(--accent-strong);
    outline: none;
}

.media-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 212, 71, 0.2);
    border-radius: 999px;
    appearance: none;
    border: 1px solid rgba(255, 212, 71, 0.2);
    min-width: 8rem;
}

.media-progress::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 6px rgba(255, 212, 71, 0.5);
}

.media-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 6px rgba(255, 212, 71, 0.5);
}

.media-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    min-width: 5.5rem;
    text-align: right;
}

.project-media .audio-player:last-child {
    margin-bottom: 0;
}

/* Audio Player Grid for Square Formation */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.25rem 0;
}

.audio-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.audio-grid-item .song-title {
    margin: 0 0 0.625rem 0;
}

.audio-grid-item .audio-player {
    margin: 0;
}

/* Image Fullscreen Modal */
.image-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.66);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.image-modal.active {
    display: flex !important;
}

.image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none;
    padding: 0;
    background: none;
    margin: 0;
    box-shadow: none;
}

.image-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    font-family: 'Share Tech Mono', monospace;
}

.image-modal-close:hover {
    background: rgba(255, 212, 71, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Call to Action Buttons */
.cta-buttons {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(100%, 1.4vw, 112.5%);
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    text-transform: lowercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.cta-button:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button-accent {
    border-color: rgba(255, 212, 71, 0.4);
    color: var(--accent);
}

.cta-button-accent:hover {
    border-color: var(--accent);
    background: rgba(255, 212, 71, 0.1);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}
.recipe-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
}

.recipe-header {
    margin-bottom: 1.5625rem;
    border-bottom: 1px solid rgba(255, 212, 71, 0.3);
    padding-bottom: 0.9375rem;
}

.recipe-name {
    font-size: clamp(120%, 2.5vw, 180%);
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--accent);
}

.recipe-meta {
    font-size: 85%;
    opacity: 0.8;
    line-height: 1.6;
}

.recipe-meta span {
    color: var(--accent);
    font-weight: 500;
}

.recipe-section {
    margin-bottom: 1.25rem;
}

.recipe-section-title {
    font-size: 110%;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    opacity: 0.85;
}

.ingredients-list {
    list-style: none;
    padding-left: 0;
}

.ingredients-list li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    opacity: 0.9;
    line-height: 1.5;
}

.ingredients-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.procedure-list {
    padding-left: 1.25rem;
    opacity: 0.9;
}

.procedure-list li {
    margin-bottom: 0.625rem;
    line-height: 1.5;
}

.procedure-list li::marker {
    color: var(--accent);
    font-weight: 600;
}

/* Scroll Containers */
.content-scroll,
.glossary-scroll {
    height: calc(100vh - 17.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 212, 71, 0.66) rgba(224, 242, 254, 0.2);
    box-shadow: inset 2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2), inset -2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2), inset 0 -2.1875rem 0.9375rem -1.5625rem rgba(224, 242, 254, 0.1), 0 0 1.875rem 0 rgba(224, 242, 254, 0.15);
    margin-top: -1.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(224, 242, 254, 0.2);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    transition: box-shadow 0.33s ease;
    position: relative;
}

.glossary-scroll {
    padding-bottom: 0;
}

.content-scroll.has-scroll-down,
.glossary-scroll.has-scroll-down {
    box-shadow: inset 2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2), inset -2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2), inset 0 -2.1875rem 0.9375rem -1.5625rem rgba(224, 242, 254, 0.2), 0 0 1.875rem 0 rgba(224, 242, 254, 0.15);
    transition: box-shadow 0.33s ease;
}

.content-scroll::-webkit-scrollbar {
    width: 0.5rem;
}

.content-scroll::-webkit-scrollbar-track {
    background: rgba(224, 242, 254, 0.2);
}

.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 212, 71, 0.66);
    border-radius: 0.25rem;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 212, 71, 0.85);
}

/* Glossary Table Styles */
.glossary-scroll::-webkit-scrollbar {
    width: 0.5rem;
}

.glossary-scroll::-webkit-scrollbar-track {
    background: rgba(224, 242, 254, 0.2);
}

.glossary-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 212, 71, 0.66);
    border-radius: 0.25rem;
}

.glossary-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 212, 71, 0.85);
}

.glossary-section {
    font-size: 130%;
    font-weight: 600;
    margin-top: 1.875rem;
    margin-bottom: 0.9375rem;
    color: var(--accent);
    scroll-margin-top: 1.25rem;
}

.glossary-section:first-of-type {
    margin-top: 0;
}

.section-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    margin-bottom: 1.875rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(224, 242, 254, 0.2);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 212, 71, 0.66) rgba(224, 242, 254, 0.2);
    box-shadow: none;
    transition: box-shadow 0.33s ease;
}

.section-nav.has-scroll-left {
    box-shadow: inset 2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2);
}

.section-nav.has-scroll-right {
    box-shadow: inset -2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2);
}

.section-nav.has-scroll-left.has-scroll-right {
    box-shadow: inset 2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2), inset -2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2);
}

.section-nav::-webkit-scrollbar {
    height: 0.375rem;
}

.section-nav::-webkit-scrollbar-track {
    background: rgba(224, 242, 254, 0.2);
}

.section-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 212, 71, 0.66);
    border-radius: 0.1875rem;
}

.section-link {
    padding: 0.5rem 1rem;
    background: rgba(224, 242, 254, 0.1);
    border: 1px solid rgba(224, 242, 254, 0.3);
    color: var(--text);
    text-decoration: none;
    transition: all 0.075s;
    font-size: 90%;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-link:hover {
    background: rgba(255, 212, 71, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.filter-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    margin-bottom: 1.875rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(224, 242, 254, 0.2);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 212, 71, 0.66) rgba(224, 242, 254, 0.2);
    box-shadow: none;
    transition: box-shadow 0.33s ease;
}

.filter-nav.has-scroll-left {
    box-shadow: inset 2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2);
}

.filter-nav.has-scroll-right {
    box-shadow: inset -2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2);
}

.filter-nav.has-scroll-left.has-scroll-right {
    box-shadow: inset 2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2), inset -2.1875rem 0 0.9375rem -1.875rem rgba(224, 242, 254, 0.2);
}

.filter-nav::-webkit-scrollbar {
    height: 0.375rem;
}

.filter-nav::-webkit-scrollbar-track {
    background: rgba(224, 242, 254, 0.2);
}

.filter-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 212, 71, 0.66);
    border-radius: 0.1875rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(224, 242, 254, 0.1);
    border: 1px solid rgba(224, 242, 254, 0.3);
    color: var(--text);
    cursor: none;
    transition: all 0.075s;
    font-size: 90%;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.filter-btn:hover {
    background: rgba(255, 212, 71, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: rgba(255, 212, 71, 0.25);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.glossary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.875rem;
    font-size: 95%;
}

.glossary-table:last-of-type {
    margin-bottom: 0.625rem;
}

.glossary-table thead {
    background: rgba(224, 242, 254, 0.15);
    border-top: 1px solid var(--text);
    border-bottom: 2px solid var(--text);
}

.glossary-table th {
    padding: 0.75rem 0.9375rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    color: var(--text);
    font-size: 90%;
}

.glossary-table tbody tr {
    border-bottom: 1px solid rgba(224, 242, 254, 0.2);
    transition: background 0.075s;
}

.glossary-table tbody tr:hover {
    background: rgba(255, 212, 71, 0.05);
}

.glossary-table td {
    padding: 0.75rem 0.9375rem;
    line-height: 1.6;
}

.term-cell {
    font-weight: 600;
    width: 25%;
    word-wrap: break-word;
}

.definition-cell {
    opacity: 0.9;
    width: 75%;
}

.maps-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.875rem;
    margin-bottom: 2.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.map-embed {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.map-header {
    font-size: clamp(125%, 2vw, 140%);
    font-weight: 600;
    color: var(--accent-strong);
    margin: 0;
}

.map-description {
    font-size: clamp(100%, 1.5vw, 110%);
    font-weight: 300;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

.map-details {
    font-size: clamp(100%, 1.5vw, 110%);
    font-weight: 300;
    opacity: 0.75;
    margin: 0;
    line-height: 1.5;
}

.analysis-section {
    margin-bottom: 3.125rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.media-category {
    font-size: clamp(140%, 3vw, 160%);
    font-weight: 600;
    color: var(--accent-strong);
    margin-bottom: 1.5625rem;
    margin-top: 0;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.625rem;
}

.category-note {
    font-size: clamp(100%, 1.4vw, 105%);
    font-weight: 300;
    color: var(--text-dim);
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    opacity: 0.8;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1.5625rem;
    margin-bottom: 1.875rem;
}

.review-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
}

.review-card:hover {
    background: rgba(0, 0, 0, 0.5);
}

.review-title {
    font-size: clamp(125%, 2vw, 140%);
    font-weight: 600;
    color: var(--accent-strong);
    margin: 0;
}

.review-meta {
    font-size: clamp(100%, 1.4vw, 105%);
    font-weight: 300;
    color: var(--text-dim);
    margin: 0;
    opacity: 0.85;
}

.review-text {
    font-size: clamp(100%, 1.5vw, 110%);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    flex-grow: 1;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3125rem;
}

.tag {
    font-size: clamp(90%, 1.2vw, 100%);
    background: rgba(255, 212, 71, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--accent);
    border-radius: 0.1875rem;
    display: inline-block;
    white-space: nowrap;
}

.review-readmore {
    font-size: clamp(95%, 1.3vw, 105%);
    font-weight: 600;
    color: var(--accent-strong);
    letter-spacing: 0.03125rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1.5625rem;
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.blog-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
}

.blog-card:last-of-type {
    margin-bottom: 0;
}

.blog-card:hover {
    background: rgba(0, 0, 0, 0.5);
}

.post-title {
    font-size: clamp(130%, 2vw, 150%);
    font-weight: 600;
    color: var(--accent-strong);
    margin: 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.3125rem;
    flex-wrap: wrap;
    color: var(--text-dim);
    opacity: 0.85;
}

.post-date,
.post-reading {
    font-size: clamp(95%, 1.3vw, 105%);
    font-weight: 300;
}

.post-excerpt {
    font-size: clamp(100%, 1.5vw, 110%);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3125rem;
}

.post-tag {
    font-size: clamp(90%, 1.2vw, 100%);
    background: rgba(255, 212, 71, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--accent);
    border-radius: 0.1875rem;
    display: inline-block;
    white-space: nowrap;
}

.post-readmore {
    font-size: clamp(95%, 1.3vw, 105%);
    font-weight: 600;
    color: var(--accent-strong);
    letter-spacing: 0.03125rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1.5625rem;
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.recipe-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
}

.recipe-card:last-of-type {
    margin-bottom: 0;
}

.recipe-card:hover {
    background: rgba(0, 0, 0, 0.5);
}

.recipe-name {
    font-size: clamp(130%, 2vw, 150%);
    font-weight: 600;
    color: var(--accent-strong);
    margin: 0;
    line-height: 1.3;
}

.recipe-meta {
    font-size: clamp(95%, 1.3vw, 105%);
    font-weight: 300;
    color: var(--text-dim);
    margin: 0;
    opacity: 0.85;
}

.recipe-excerpt {
    font-size: clamp(100%, 1.5vw, 110%);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3125rem;
}

.recipe-tag {
    font-size: clamp(90%, 1.2vw, 100%);
    background: rgba(255, 212, 71, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--accent);
    border-radius: 0.1875rem;
    display: inline-block;
    white-space: nowrap;
}

.recipe-readmore {
    font-size: clamp(95%, 1.3vw, 105%);
    font-weight: 600;
    color: var(--accent-strong);
    letter-spacing: 0.03125rem;
}

/* Statement Content */
.statement-content {
    max-width: 50rem;
    line-height: 1.8;
    color: var(--text);
    font-size: clamp(100%, 1.1vw, 110%);
    padding-bottom: 1.25rem;
}

.statement-content p {
    margin: 0 0 1.5625rem 0;
    opacity: 0.95;
}

.statement-content p:last-child {
    margin-bottom: 0;
}

/* Blockquote Styles */
blockquote {
    margin: 1.875rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent);
    font-style: italic;
    color: var(--text-dim);
    opacity: 0.9;
    font-size: clamp(100%, 1.4vw, 120%);
    line-height: 1.7;
}

blockquote::before {
    content: '"';
    font-size: 1.5em;
    color: var(--accent);
    margin-right: 0.25rem;
    opacity: 0.6;
}

blockquote::after {
    content: '"';
    font-size: 1.5em;
    color: var(--accent);
    margin-left: 0.25rem;
    opacity: 0.6;
}

/* Description Styling */
.description {
    font-size: clamp(112.5%, 1.8vw, 130%);
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    color: var(--text);
}

/* Links in Project Sections */
.project-section a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.project-section a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.project-section a:active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

.image-columns {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.image-columns img,
.image-columns figure {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.image-columns img {
    width: 100%;
    height: auto;
}

.image-columns figure img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1.25% !important;
    border: 2px solid rgba(255, 212, 71, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
}

.image-columns figure.portrait img {
    aspect-ratio: 3 / 4;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.image-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 0;
    min-width: 0;
}

.image-columns figure + figure {
    margin-left: 0;
}

.image-caption {
    font-size: clamp(85%, 1vw, 95%);
    color: var(--text-dim);
    line-height: 1.25;
    margin: 0;
    font-style: italic;
}

/* View Button and Works Dropdown */
.view-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
    color: var(--text);
    background: none;
    border: none;
    padding: 0.75rem 0;
    cursor: none;
    text-transform: lowercase;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.933em;
    font-weight: 400;
}

.view-btn::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 0.0625rem;
    background: #fff;
    transition: width 0.3s ease;
}

.view-btn::after {
    content: '▾';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.25s ease;
    opacity: 0.8;
    font-size: 1em;
    line-height: 1;
}

.view-btn:hover {
    color: #fff;
}

.view-btn:hover::before {
    width: 100%;
}

.view-btn:active,
.view-btn.is-active {
    color: var(--accent);
    border-bottom-color: rgba(255, 212, 71, 0.6);
    text-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
}

.view-btn.is-active::after {
    opacity: 1;
    color: var(--accent);
}

.no-work {
    opacity: 0.6;
}

/* Works Modal and Dropdown */
.works-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.works-modal.active {
    display: block;
}

.works-dropdown {
    position: absolute;
    background: rgba(51, 65, 85, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    animation: dropdownIn 0.2s ease;
    pointer-events: auto;
    white-space: nowrap;
    width: max-content;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works-list {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-height: clamp(8rem, 25vh, 11.75rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 212, 71, 0.5) rgba(224, 242, 254, 0.1);
}

.work-link {
    padding: 0.625rem 1.25rem;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.075s ease;
    display: block;
    font-size: clamp(87.5%, 1.2vw, 95%);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}

.work-link:last-child {
    border-bottom: none;
}

.work-link:hover {
    color: var(--accent);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.work-link:active {
    color: var(--accent);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* ===== INLINE STYLES CONSOLIDATION ===== */

/* Typed word link - no border bottom */
.typed-word-link {
    border-bottom: none;
}

/* Work page titles with accent border */
.works-page-title {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 15px;
    margin-bottom: 0;
}

/* Coming soon placeholder */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon-text {
    position: absolute;
    top: 50%;
}

/* CTA buttons spacing */
.cta-buttons-spaced {
    margin-bottom: 20px;
}

/* Project section no margin bottom */
.project-section-no-margin {
    margin-bottom: 0;
}

/* Project media variations */
.project-media-tall {
    height: 50vh !important;
    display: flex;
}

.project-media-tall iframe {
    flex: 1;
}

.project-media-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25vh;
}

.project-media-grid-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-media-grid-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vh;
}

.project-media-process {
    height: 50vh !important;
    display: flex;
    margin-bottom: 0;
}

/* Video specific styles */
.video-full-width {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.video-hover-demo {
    width: auto;
    height: 20vh;
    object-fit: contain;
}

/* Song title centered */
.song-title-centered {
    text-align: center;
    margin-top: 1rem;
}

/* Section title no margin */
.section-title-no-margin {
    margin: 0;
}

/* Subsection title no margin */
.subsection-title-no-margin {
    margin: 0;
}

/* Carousel specific styles */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.carousel-image-with-margin {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    margin-top: 0%;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--text);
    border: none;
    padding: 10px 15px;
    cursor: none;
    border-radius: 4px;
    font-size: 18px;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Image grid aspect ratio */
.image-aspect-square {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.image-grid-caption {
    grid-column: 1 / -1;
    text-align: center;
}

/* Template linktree variations */
.linktree-with-divider {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* List styling for templates */
.styled-list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.9);
}

.styled-list-item {
    margin-bottom: 8px;
}

/* Statement text margin */
.statement-with-margin {
    margin-bottom: 25px;
}

/* ===== LOG TEMPLATE STYLES ===== */
.log-entry {
    max-width: 900px;
    margin: 0 auto;
}

.log-header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--text-secondary, rgba(255,255,255,0.7));
}

.log-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-meta-label {
    font-weight: bold;
    color: var(--accent);
}

.log-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.log-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-family: 'Share Tech Mono', monospace;
}

.log-content {
    line-height: 1.8;
    color: var(--text-main, rgba(255,255,255,0.9));
}

.log-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    font-size: 1.3em;
}

.log-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.1em;
}

.log-content p {
    margin-bottom: 15px;
}

.log-content ul,
.log-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.log-content li {
    margin-bottom: 8px;
}

.log-quote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RECIPE TEMPLATE STYLES ===== */
.recipe-container {
    max-width: 900px;
    margin: 0 auto;
}

.recipe-header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--text-secondary, rgba(255,255,255,0.7));
}

.recipe-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recipe-meta-label {
    font-weight: bold;
    color: var(--accent);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recipe-meta-value {
    font-size: 1em;
    color: var(--text-main, rgba(255,255,255,0.9));
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.recipe-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-family: 'Share Tech Mono', monospace;
}

.recipe-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .recipe-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.recipe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.recipe-section-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
    padding: 20px;
    border-radius: 4px;
}

.recipe-section-title {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ingredient-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ingredient-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ingredient-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: none;
    accent-color: var(--accent);
}

.ingredient-text {
    flex: 1;
    line-height: 1.5;
    color: var(--text-main, rgba(255,255,255,0.9));
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
    color: var(--text-main, rgba(255,255,255,0.9));
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--background, #000);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9em;
}

.recipe-content {
    line-height: 1.8;
    color: var(--text-main, rgba(255,255,255,0.9));
}

.recipe-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    font-size: 1.3em;
}

.recipe-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.1em;
}

.recipe-content p {
    margin-bottom: 15px;
}

.recipe-quote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.tips-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.tips-box strong {
    color: var(--accent);
}

/* 2-row reference grid for project media previews */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.image-grid img:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1 / 1;
}
.image-grid img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 1 / 1;
}
.image-grid img:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 3 / 4;
}
.image-grid img:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 3 / 4;
}
.image-grid img:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    aspect-ratio: 3 / 4;
}
