body {
    font-family: var(--ff-sans);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-serif);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

h3,
h4,
.h4,
h5,
h6 {
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.3;
}

h4,
.h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.4;
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.4;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.4;
}

.serif {
    font-family: var(--ff-serif);
}

.sans {
    font-family: var(--ff-sans);
}

figcaption {
    font-style: italic;
    font-size: var(--text-xs);
    color: var(--grey-700);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: var(--grid-gap);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.responsive-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-16 {
    gap: 4rem;
}

.flex {
    display: flex;
}

/* Spacing */

.py-section {
    padding: var(--section-gap) 0;
}

.py-8 {
    padding: 2rem 0;
}

.py-16 {
    padding: 4rem 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

/* Links */

a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* Buttons */

.btn-cta {
    min-width: 180px;
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    background: linear-gradient(to bottom,
            var(--btn-color),
            color-mix(in srgb, var(--btn-color) 85%, var(--grey-700)));
    font-size: var(--text-sm);
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.5px;
    padding: 0.9rem 2rem;
    justify-content: center;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-transform), var(--transition-color), box-shadow var(--transition-base);
    cursor: pointer;
}

.btn-cta:hover {
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--btn-color) 90%, white),
            var(--btn-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--btn-color) 50%, transparent);
}

.btn-cta i {
    font-size: 1.25rem
}

.btn,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 9999px;
    background: var(--btn-color);
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-color), box-shadow var(--transition-base);
}

.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
    border: 2px solid var(--btn-color);
}

.tag {
    font-weight: 400;
    background: var(--coffee);
    color: var(--grey-700);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    box-shadow: inset 0 0 0 1px var(--grey-400);
    transition: var(--transition-color);
}

.btn i {
    font-size: 1rem;
}

.btn:hover {
    background: transparent;
    color: var(--btn-color);
    box-shadow: none;
}

.tag:hover {
    box-shadow: inset 0 0 0 1px var(--red);
    color: var(--red);
}

.btn-red {
    --btn-color: var(--red);
}

.btn-green {
    --btn-color: var(--green);
}

.btn-lk-blue {
    --btn-color: var(--lk-blue);
}

.btn-g-blue {
    --btn-color: var(--g-blue);
}

.btn-bsky-blue {
    --btn-color: var(--bsky-blue);
}

.btn:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.tag-list,
.articles-nav,
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Backgrounds */

.white-bg {
    background: var(--white);
}

.coffee-bg {
    background: var(--coffee);
}

/* Keyframes */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Masthead
   ========================================================================== */

.masthead,
.hero {
    background: linear-gradient(135deg, var(--coffee-cream) 0%, var(--coffee-light) 100%);
    background-attachment: fixed;
}

.masthead-content {
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 2.5rem;
    color: var(--black);
    margin-right: auto;
}

.masthead-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--grey-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-base), border-color var(--transition-fast);
}

.masthead-nav a:hover,
.masthead-nav a.active {
    color: var(--red);
}

.masthead-nav a:hover {
    border-bottom: 2px solid var(--red);
}

.masthead-nav a:focus-visible {
    color: var(--red);
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.masthead-actions {
    margin-left: 1rem;
}

/* Burger menu */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 410;
    font-size: 1.5rem;
    color: var(--black);
    transition: var(--transition-color), var(--transition-base);
}

.menu-toggle:hover {
    color: var(--red);
}

.menu-toggle:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.menu-toggle i {
    transition: var(--transition-transform);
}

.menu-toggle[aria-expanded="true"] i::before {
    content: "\f00d";
    width: 1.875rem;
    height: 1.875rem;
}

/* Menu mobile */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 260px;
    height: 100vh;
    background: var(--coffee);
    border-left: 1px solid var(--grey-300);
    transform: translate3d(100%, 0, 0);
    transition: transform var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 400;
    padding-top: 5rem;
    text-align: right;
    will-change: transform;
    backface-visibility: hidden;
}

.mobile-menu.active {
    transform: translate3d(0, 0, 0);
}

.mobile-menu li:not(:last-child) {
    border-bottom: 1px solid var(--grey-300);
}

.mobile-menu a {
    display: block;
    padding: 1.25rem 2rem;
    color: var(--grey-700);
    font-weight: 500;
    font-size: var(--text-lg);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--coffee-dark);
    color: var(--red);
}

.mobile-menu .fi,
.tag .fi {
    vertical-align: middle;
}

/* Overlay */

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: var(--transition-opacity);
    -webkit-tap-highlight-color: transparent;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Language menu */

.language-selector {
    position: relative;
}

.language-toggle {
    background-color: var(--coffee-cream);
    padding: 0.5rem 0.75rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-color);
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
    background-color: var(--red);
}

.language-toggle[aria-expanded="true"]:hover {
    background-color: var(--coffee-dark);
}

.language-toggle i {
    font-size: var(--text-xs);
    transition: var(--transition-transform);
}

.language-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.current-language {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--grey-700);
    align-items: center;
}

.current-language:hover {
    color: var(--red);
}

.fi {
    border-radius: 0.125rem;
    width: 1.125rem;
    height: 1.375rem;
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 305;
    min-width: 100%;
    width: max-content;
    background: var(--coffee-light);
    border: 1px solid var(--grey-200);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0.5rem, 0);
    transition: var(--transition-opacity), var(--transition-transform), visibility var(--transition-base);
}

.language-toggle[aria-expanded="true"]+.language-menu {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.language-menu li {
    border: none;
}

.language-menu li:not(:last-child) {
    border-bottom: 1px solid var(--grey-200);
}

.language-menu a {
    color: var(--grey-700);
    border-radius: 0.25rem;
    padding: 0.4rem 1rem;
    transition: var(--transition-color), var(--transition-transform);
}

.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a.active {
    background: var(--coffee-dark);
    color: var(--red);
}

.language-menu a:focus-visible {
    transform: translateX(2px);
}

.language-menu a:active {
    font-weight: 700;
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Section Headers */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--grey-300);
}

.kicker {
    font-size: var(--text-sm);
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--grey-700);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */

.hero {
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    max-width: 600px;
}

.hero h4 {
    color: var(--red);
    margin-top: 1rem;
}

.hero-deck {
    max-width: 500px;
    color: var(--grey-800);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin: 2rem 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-top-left-radius: 50% 30%;
    border-bottom-left-radius: 50% 30%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 160%;
    height: 160%;
    top: -10%;
    left: -30%;
    background: var(--red);
    opacity: 0.15;
    border-radius: 50% 35% 55% 45% / 60% 40% 60% 40%;
    transform: rotate(-15deg);
    filter: blur(20px);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.05);
}

/* Stats Section */

.stats {
    padding: 3rem 0;
    border-top: 1px solid var(--grey-300);
    border-bottom: 1px solid var(--grey-300);
}

.stats-grid {
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;

    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.25s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.4s;
}

.stat-number {
    font-family: var(--ff-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--grey-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-detail-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.stat-detail-icon i {
    font-size: var(--text-lg);
    color: var(--white);
}

.stat-item:nth-last-child(-n+3) .stat-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-item:nth-last-child(-n+3) p {
    font-size: 0.95rem;
    color: var(--grey-700);
    line-height: 1.4;
}

.stat-item:nth-last-child(-n+3) .muted {
    color: var(--grey-500);
    font-style: italic;
}

.available {
    display: inline-flex;
    align-items: center;
    background: #b4eda0;
    padding: 0.1rem 0.8rem 0.1rem 1.4rem;
    border-radius: 9999px;
    position: relative;
    font-size: var(--text-sm);
    font-weight: 400;
    white-space: nowrap;
    line-height: 1.25rem;
}

.available::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    width: 0.625rem;
    height: 0.625rem;
    background: #6BC167;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}


/* Portfolio */

.video-card {
    contain: layout style paint;
    background: var(--white);
    border: 1px solid var(--grey-300);
    will-change: transform;
    transition: box-shadow var(--transition-base), var(--transition-transform);
}

.video-card:not(:hover) {
    will-change: auto;
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.video-thumbnail-container:focus,
.video-thumbnail-container:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 220px;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-transform), filter var(--transition-base);
}

.video-card:hover .video-thumbnail {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--red);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition-transform), background-color var(--transition-base);
}

.play-overlay:hover {
    background: var(--red);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid var(--white);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-info {
    padding: 1.5rem;
}

.video-info .kicker,
.article-item .kicker {
    font-size: var(--text-xs);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.video-meta {
    font-size: var(--text-sm);
    color: var(--grey-600);
    margin-bottom: 1rem;
}

.video-description {
    font-size: var(--text-sm);
    color: var(--grey-700);
    line-height: 1.5;
}

/* Articles Section */

.articles {
    position: relative;
}

.articles-tab {
    text-transform: none;
    font-weight: 500;
    border-width: 1px;
    border-color: var(--grey-700);
    background: var(--coffee);
    color: var(--grey-700);
}

.articles-tab:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.articles-tab.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.articles-tab.active:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.articles-category {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.articles-category.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

.articles-list {
    max-width: 800px;
    margin: 0 auto;
}

.article-item {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid var(--grey-300);
    text-decoration: none;
    color: inherit;
    will-change: transform;
    transition: var(--transition-color), var(--transition-transform);
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    transform: translateX(1rem);
}

.article-meta {
    font-size: var(--text-sm);
    color: var(--grey-600);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--grey-700);
    line-height: 1.6;
}

/* Data section */

iframe {
    border: none;
    overflow: hidden;
}

.iframe-responsive {
    width: 100%;
    aspect-ratio: 16/9;
}

/* About me Section */

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    margin-top: 1.5rem;
}

.about-text p {
    margin-top: 1rem;
}

.about-text a {
    color: var(--red);
}

p.lettrine::first-letter {
    font-family: var(--ff-serif);
    font-size: 4rem;
    font-weight: 600;
    margin-right: 0.5rem;
    float: left;
}

blockquote {
    font-style: italic;
    font-size: var(--text-lg);
    margin: 3rem auto;
    color: var(--red);
    padding: 1.2em 30px 1.2em 75px;
    border-left: 4px solid var(--red);
    position: relative;
}

blockquote::before {
    content: "\201C";
    font-family: var(--ff-serif);
    color: var(--red);
    font-size: clamp(3em, 5vw, 4em);
    position: absolute;
    left: 10px;
    top: -10px;
}

blockquote::after {
    content: '';
}

blockquote .source {
    display: block;
    margin-top: 1rem;
    color: var(--black);
    font-style: normal;
}

blockquote .source:last-child {
    font-size: var(--text-sm);
}

.about figure {
    margin: 2rem 0;
}

.about img {
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
    object-position: center top;
}

/* Contact Section */

.contact {
    border-top: 4px solid var(--black);
}

.contact-buttons {
    gap: 1rem;
}

.contact-buttons:nth-of-type(2) {
    margin-top: 1rem;
}

/* ==========================================================================
   Footer & Modal
   ========================================================================== */

/* Footer */

.footer {
    padding: 2rem 0;
    background: var(--black);
    color: var(--white);
}

.footer-content {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--grey-400);
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--red);
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.modal-content video {
    width: 100%;
    height: 100%;
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-weight: 300;
    top: var(--modal-close-offset);
    font-size: var(--modal-close-size);
}

.modal-close:hover {
    color: var(--red);
}

/* Scroll to top */

.scroll-to-top {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom));
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: var(--red);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 150;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    background: var(--black);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet and below */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .masthead {
        position: relative;
        background: linear-gradient(to bottom, var(--coffee-cream), var(--coffee-light));
        border-bottom: none;
        height: 15rem;
        z-index: auto;
    }

    .logo {
        font-size: 2rem;
    }

    .hero {
        background: var(--white);
        padding: 0 0 2rem 0;
    }

    .hero .container {
        padding: 0 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }    

    .hero-image {
        top: -50%;
        width: 15rem;
        height: 15rem;
        border-radius: 50%;
        border: 1rem solid var(--white);
        margin: 0 auto;
        box-shadow: none;
        order: -1;
    }
    
    @supports (background: -webkit-named-image(i)) {
        .hero-image {
            top: -7.5rem;
        }
    }

    .hero-image::before {
        display: none;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: 50%;
    }

    .hero-content,
    .hero-deck {
        max-width: 100%;
    }

    .hero-content {
        margin-top: calc(-7.5rem - 1rem);
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }
}

/* Mobile and below */

@media (max-width: 768px) {
    :root {
        --modal-close-offset: 10px;
    }

    .container,
    .hero .container {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .masthead-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .masthead-actions {
        margin-left: auto;
    }

    .language-toggle,
    .language-menu {
        display: none !important;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 0 0 1.5rem 0;
    }

    .btn-cta {
        min-height: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        box-shadow: var(--shadow-sm);
        margin-bottom: 0.5rem;
    }

    .btn,
    .tag {
        min-height: 2rem;
        margin: 0 auto;
    }

    .articles-nav .btn,
    .contact-buttons a,
    .tag {
        width: 80%;
        min-width: 250px;
    }

    .articles-tab {
        padding: 0.5rem 0.75rem;
        font-size: var(--text-sm);
    }

    .articles-tab,
    .contact-buttons {
        gap: 0.8rem;
    }

    .contact-buttons:nth-of-type(2) {
        margin-top: 0.8rem;
    }

    blockquote {
        padding-left: 3.5rem;
    }

    .modal-close {
        top: -45px;
        right: 5px;
    }
}

/* Small mobile */

@media (max-width: 480px) {

    .container {
        padding: 0 1rem;
    }

    .tag {
        padding: 0.3rem 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .py-section {
        padding: 2rem 0;
    }
}

@media (hover: none) {
    .btn:active,
    .tag:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
}