/* ==================================================
   SITE (2026-10): multi-page layout, burger menu,
   page headers, home blocks, footer, contact, privacy,
   phone screenshots and the screenshot viewer.
   Loaded last, so it refines the older stylesheets.
================================================== */

:root {
    /* Winter palette: snow, ink, one ice blue accent, and polar night for the closing blocks. */
    --color-background: #F7FAFD;
    --color-background-light: #EFF5FB;
    --color-surface: #FFFFFF;
    --color-surface-light: #EEF3F9;
    --color-text: #0F1D33;
    --color-text-muted: #5B6B80;
    --color-accent: #2B63B9;
    --color-accent-light: #2B63B9;
    --color-accent-dark: #1F4A8C;
    --color-accent-soft: #E8F0FA;
    --color-ice: #A9CBF2;
    --color-purple: #2B63B9;
    --color-border: #E1E8F0;
    --color-night: #0E1B2E;
    --color-night-light: #172A44;
    --font-primary: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --gradient-accent: var(--color-accent);
    --shadow-card: 0 14px 36px rgba(15, 29, 51, 0.08);
    --nav-height: 5rem;
}

h1,
h2,
h3,
.section__title,
.hero__title,
.stat__number {
    font-family: var(--font-display);
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 3px;
}

body.menu-open {
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-small);
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* The old one-page site alternated section backgrounds; pages now choose with .section--tinted. */
.section:nth-child(even) {
    background: none;
}

/* Each block was a full screen on the old one-page site; on separate pages they size to their content. */
.section {
    position: relative;
    display: block;
    min-height: 0;
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.section--tinted {
    background: linear-gradient(180deg, var(--color-background-light), var(--color-surface) 50%, var(--color-background-light));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Directly under a page header: less space on top. */
.section--flush {
    padding-top: clamp(2rem, 5vw, 4rem);
}

.section--flush .projects-list {
    margin-top: 0;
}

/* ---------- Buttons ---------- */

.button {
    margin: 0;
    isolation: isolate;
    font-weight: 600;
    font-size: 0.95rem;
}

.button span {
    transition: transform 0.3s ease;
}

.button:hover span {
    transform: translateX(4px);
}

.button--primary {
    color: #fff;
    border-color: transparent;
    background: var(--gradient-accent);
    box-shadow: 0 8px 24px rgba(43, 99, 185, 0.22);
}

.button--primary::before {
    background: var(--color-accent-dark);
}

.button--primary:hover {
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(43, 99, 185, 0.3);
}

/* ---------- Navbar ---------- */

.navbar__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.navbar__logo span,
.site-footer__logo span {
    color: var(--color-accent);
}

.navbar__links {
    gap: 2.2rem;
}

.navbar__links a {
    font-size: 0.85rem;
    font-weight: 500;
}

.navbar__links a.is-active {
    color: var(--color-text);
}

.navbar__links a.is-active::after {
    transform: scaleX(1);
}

.navbar__menu {
    display: none;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    width: 2.75rem;
    height: 2.75rem;
    transition: border-color 0.3s ease;
}

.navbar__menu:hover {
    border-color: var(--color-accent);
}

.navbar__menu span {
    width: 1.1rem;
}

.navbar__menu span:nth-child(1) {
    top: 35%;
}

.navbar__menu span:nth-child(2) {
    top: 50%;
    transition: opacity 0.2s ease;
}

.navbar__menu span:nth-child(3) {
    top: 65%;
}

.navbar__menu.active span:nth-child(1),
.navbar__menu.active span:nth-child(3) {
    top: 50%;
}

.navbar__menu.active span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
}

.navbar__menu.active span:nth-child(2) {
    opacity: 0;
}

.navbar__menu.active span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
}

body.menu-open .navbar {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}

body.menu-open .lang-switch {
    visibility: hidden;
}

/* The burger menu is the navigation on every screen size. */
.navbar .navbar__links {
    display: none;
}

.navbar .navbar__menu {
    display: block;
}

/* ---------- Burger menu (full screen) ---------- */

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    overflow-y: auto;
    background: rgba(243, 248, 253, 0.97);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-menu[hidden] {
    display: none;
}

.site-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.site-menu__glow {
    position: absolute;
    top: 20%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(43, 99, 185, 0.1), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}

.site-menu__links {
    position: relative;
    display: flex;
    flex-direction: column;
}

.site-menu__link {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
    transition-delay: calc(var(--i) * 0.05s);
}

.site-menu.is-open .site-menu__link {
    opacity: 1;
    transform: none;
}

.site-menu__link:hover,
.site-menu__link.is-active {
    color: var(--color-accent-light);
}

.site-menu__number {
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.site-menu__footer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.site-menu__footer > a:hover {
    color: var(--color-text);
}

.site-menu__languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.site-menu__languages a {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.site-menu__languages a.is-active,
.site-menu__languages a:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

/* ---------- Home: hero ---------- */

.hero__content {
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem 0.5rem 0.8rem;
    border: 1px solid rgba(43, 99, 185, 0.35);
    border-radius: 999px;
    background: rgba(43, 99, 185, 0.1);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.hero__badge {
    opacity: 0;
    animation: heroReveal 0.8s ease 0.1s forwards;
}

.hero__badge:hover {
    border-color: var(--color-accent-light);
    background: rgba(43, 99, 185, 0.18);
}

.hero__badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(43, 99, 185, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(43, 99, 185, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(43, 99, 185, 0);
    }
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-left: 8vw;
}

/* ---------- Page header (all pages except home) ---------- */

.page-header {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + clamp(4rem, 9vw, 7rem)) 0 clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid var(--color-border);
}

.page-header__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-header__background .hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(43, 99, 185, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 99, 185, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 30% 0%, black 0%, transparent 70%);
}

.page-header__glow {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(186, 222, 252, 0.4) 40%, transparent 70%);
    filter: blur(30px);
}

.page-header .container {
    position: relative;
}

.page-header__title {
    max-width: 1000px;
    font-size: clamp(3.2rem, 9vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.page-header__title span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-accent-light);
}

.page-header__intro {
    max-width: 620px;
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ---------- Section heading with a link on the right ---------- */

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading .section__title {
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.section-heading__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.section-heading__link span {
    transition: transform 0.3s ease;
}

.section-heading__link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
}

.section-heading__link:hover span {
    transform: translateX(4px);
}

/* The about page keeps its own big headings above the skills and timeline. */
.skills-section .skills-grid,
.section--experience .timeline {
    margin-top: 0;
}

/* ---------- Home: featured app ---------- */

.spotlight {
    overflow: hidden;
}

.spotlight__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
}

.spotlight .section__title {
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
}

.spotlight__intro {
    margin-top: 1.8rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.spotlight__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.5rem;
    margin: 2rem 0 2.5rem;
    list-style: none;
}

.spotlight__features li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.spotlight__features li::before {
    content: "✓";
    position: absolute;
    top: 0.05rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.spotlight__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.spotlight__visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 420px;
}

.spotlight__halo {
    position: absolute;
    inset: 10% 5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 99, 185, 0.14), rgba(169, 203, 242, 0.2) 45%, transparent 70%);
    filter: blur(40px);
}

.spotlight__image {
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.spotlight__phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spotlight__phones .phone {
    width: clamp(150px, 16vw, 230px);
}

.spotlight__phones--3 .phone:nth-child(1),
.spotlight__phones--3 .phone:nth-child(3) {
    width: clamp(130px, 13vw, 195px);
    opacity: 0.85;
}

.spotlight__phones--3 .phone:nth-child(1) {
    margin-right: -3rem;
    transform: rotate(-7deg) translateY(1.5rem);
}

.spotlight__phones--3 .phone:nth-child(2) {
    z-index: 1;
}

.spotlight__phones--3 .phone:nth-child(3) {
    margin-left: -3rem;
    transform: rotate(7deg) translateY(1.5rem);
}

.spotlight__phones--2 .phone:nth-child(2) {
    margin-left: -2.5rem;
    transform: rotate(6deg) translateY(2rem);
}

/* ---------- Phone frame around app screenshots ---------- */

.phone {
    position: relative;
    display: block;
    padding: 0;
    border: 7px solid #1A2133;
    border-radius: 2.2rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px rgba(12, 30, 54, 0.1), var(--shadow-card);
    aspect-ratio: 390 / 844;
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button.phone {
    width: 100%;
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

button.phone:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px rgba(43, 99, 185, 0.4), 0 30px 70px rgba(43, 99, 185, 0.2);
}

/* ---------- Home: project cards ---------- */

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-surface);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 99, 185, 0.4);
    box-shadow: 0 24px 60px rgba(43, 99, 185, 0.12);
}

.project-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-surface-light);
}

.project-card__image img,
.project-card__image .project__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.project-card__category {
    color: var(--color-accent-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-card__title {
    margin-top: 0.4rem;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.project-card__status {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.project-card__arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-card__arrow {
    opacity: 1;
    transform: none;
}

.project__title a:hover {
    color: var(--color-accent-light);
}

/* ---------- Home: studio and call to action ---------- */

.studio-teaser__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.studio-teaser .section__title {
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.studio-teaser__text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.studio-teaser__text .about-intro {
    color: var(--color-text);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.5;
}

.studio-teaser .about-stats {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.cta {
    padding-top: 0;
}

.cta__box {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
    border: none;
    border-radius: calc(var(--border-radius) * 1.5);
    background: radial-gradient(ellipse at 50% 0%, var(--color-night-light), var(--color-night) 70%);
    color: #fff;
    text-align: center;
}

.cta__glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(43, 99, 185, 0.35), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}

.cta__title {
    position: relative;
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.cta__title span {
    display: block;
    color: var(--color-ice);
}

.cta .snow {
    border-radius: inherit;
}

.cta .button--primary {
    position: relative;
    background: #fff;
    color: var(--color-night);
    box-shadow: none;
}

.cta .button--primary:hover {
    color: #fff;
}

.cta__text {
    position: relative;
    max-width: 520px;
    margin: 1.5rem auto 2.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0 2rem;
    border-top: none;
    background: var(--color-night);
    color: #fff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 3rem;
}

.site-footer__logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.site-footer__brand p {
    max-width: 320px;
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.site-footer__title {
    margin-bottom: 1.2rem;
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    list-style: none;
}

.site-footer__list a,
.site-footer__legal a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__legal a:hover,
.site-footer__legal a[aria-current="page"] {
    color: var(--color-text);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.site-footer__legal {
    display: flex;
    gap: 1.5rem;
}

/* ---------- Contact page ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-layout .contact-form {
    max-width: none;
    margin-top: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius) * 1.25);
    background: var(--color-surface);
}

.contact-layout__title {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.contact-form__privacy a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    padding: 1.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-surface);
}

.contact-card__title {
    margin-bottom: 0.8rem;
    color: var(--color-accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-card__text {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-card__email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 600;
}

.contact-card__email:hover {
    color: var(--color-accent-light);
}

.contact-card .contact-section__links {
    margin-top: 0;
}

/* ---------- Privacy policy ---------- */

.legal {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.legal__toc {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-surface);
}

.legal__updated {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.legal__toc-title {
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal__toc ol {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-left: 1.2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.legal__toc a:hover {
    color: var(--color-text);
}

.legal__body {
    max-width: 760px;
}

.legal__section {
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.legal__section:first-child {
    padding-top: 0;
}

.legal__section h2 {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.legal__section h2 span {
    color: var(--color-accent-light);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.legal__section p,
.legal__section li,
.devlog-post__text li {
    color: var(--color-text-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.legal__section p + p,
.legal__section ul,
.legal__section ul + p {
    margin-top: 1rem;
}

.legal__section ul,
.devlog-post__text ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.3rem;
}

.legal__section a,
.devlog-post__text a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Project page: screenshots ---------- */

.project-gallery {
    margin-top: 6rem;
}

.phone-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem 1.5rem;
}

.phone-gallery__item {
    margin: 0;
}

.phone-gallery__item figcaption {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 1.5rem;
    border: none;
    background: transparent;
    color: var(--color-text);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.lightbox::backdrop {
    background: rgba(14, 27, 46, 0.94);
    backdrop-filter: blur(10px);
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.phone--large {
    width: auto;
    height: min(80vh, 760px);
}

.phone--large img {
    width: auto;
}

.lightbox__caption {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.lightbox__close,
.lightbox__nav {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    border-color: var(--color-accent);
    background: rgba(43, 99, 185, 0.2);
}

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

/* ---------- Devlog page without its old top padding ---------- */

.devlog-filters {
    margin-top: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .spotlight__grid,
    .studio-teaser__grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .spotlight__visual {
        min-height: 0;
        order: -1;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .legal__toc {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero__year {
        display: none;
    }

    .hero__buttons {
        margin-left: 0;
    }

    .hero__buttons .button {
        flex: 1 1 100%;
    }

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

    .spotlight__phones--3 .phone:nth-child(1),
    .spotlight__phones--3 .phone:nth-child(3) {
        width: 28vw;
    }

    .spotlight__phones .phone {
        width: 36vw;
    }

    .spotlight__phones--3 .phone:nth-child(1) {
        margin-right: -2rem;
    }

    .spotlight__phones--3 .phone:nth-child(3) {
        margin-left: -2rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Two screenshots per row on phones: everything visible without swiping sideways. */
    .phone-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .phone-gallery__item figcaption {
        font-size: 0.78rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox__nav {
        position: absolute;
        bottom: 1.5rem;
    }

    .lightbox__nav--previous {
        left: calc(50% - 4rem);
    }

    .lightbox__nav--next {
        right: calc(50% - 4rem);
    }

    .phone--large {
        height: min(72vh, 640px);
    }

    .page-header__intro {
        font-size: 1.02rem;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Winter: sky, falling snow and snow hills ---------- */

.hero {
    background: linear-gradient(180deg, #D6E7F8 0%, #E7F1FB 45%, #F2F7FC 78%, var(--color-background) 100%);
}

.hero::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
}

.hero__description {
    color: var(--color-text-muted);
}

.page-header {
    background: linear-gradient(180deg, #DDEBF9 0%, #ECF3FB 60%, var(--color-background) 100%);
}

.snow {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__hills {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 1;
    height: clamp(70px, 12vw, 170px);
    pointer-events: none;
}

.hero__hills svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__hills .hill-back {
    fill: #FFFFFF;
    opacity: 0.55;
}

.hero__hills .hill-front {
    fill: var(--color-background);
}

.scroll-indicator {
    z-index: 2;
}

.page-header .container,
.hero .container {
    z-index: 2;
}

/* Frosted glass for the navbar and cards on the winter sky. */
.navbar--scrolled {
    box-shadow: 0 6px 30px rgba(30, 70, 130, 0.08);
}

.hero__badge {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(43, 99, 185, 0.25);
    backdrop-filter: blur(8px);
}

.news-card,
.devlog-card,
.project-card,
.devlog-post,
.contact-card,
.legal__toc,
.contact-layout .contact-form {
    box-shadow: 0 6px 20px rgba(15, 29, 51, 0.05);
}

.contact-card {
    background: var(--color-surface);
}

.site-menu__glow,
.page-header__glow,
.cta__glow {
    mix-blend-mode: normal;
}

/* Second line of the big titles: solid ice blue, like the other headings. */
/* "Production": white letters with an ice-blue edge, like letters under the snow. */
.hero__title span {
    color: #FFFFFF;
    -webkit-text-stroke: 2px var(--color-accent);
    text-shadow: 0 10px 30px rgba(43, 99, 185, 0.15);
}

.page-header__title span {
    color: var(--color-accent);
    -webkit-text-stroke: 0;
}

/* ---------- Calm, consistent details ---------- */

/* The old one-page site put a blue glow on the right of every section. */
.section::before {
    display: none;
}

/* One tag style everywhere (news, devlog, projects). */
.news-card__tag,
.devlog-card__project {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

/* White blocks between the snow-white ones, so sections are easy to tell apart. */
.section--tinted {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.navbar--scrolled {
    background: rgba(247, 250, 253, 0.88);
    border-bottom-color: var(--color-border);
}

/* Footer on polar night. */
.site-footer__logo,
.site-footer__title {
    color: #fff;
}

.site-footer__logo span {
    color: var(--color-ice);
}

.site-footer__brand p,
.site-footer__list a,
.site-footer__legal a,
.site-footer__bottom {
    color: rgba(255, 255, 255, 0.62);
}

.site-footer__list a:hover,
.site-footer__legal a:hover,
.site-footer__legal a[aria-current="page"] {
    color: #fff;
}

.site-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* The call to action sits right above the footer: one dark ending. */
.cta {
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.cta__text {
    color: rgba(255, 255, 255, 0.7);
}

.cta__title,
.cta__text,
.cta .button {
    z-index: 2;
}

/* "What we make": the last card fills the row instead of leaving a grey hole. */
.skill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Lightbox on a dark backdrop, so screenshots stand out. */
.lightbox__caption {
    color: rgba(255, 255, 255, 0.75);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Project images are dark artwork: a thin frame keeps them tidy on the light page. */
.project-card__image,
.news-card__image,
.devlog-card__image {
    background: var(--color-night);
}

/* ---------- Burger menu on wide screens: pages on the left, contact and languages on the right ---------- */

@media (min-width: 1025px) {
    .site-menu {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: center;
        gap: 4rem;
        padding: calc(var(--nav-height) + 2rem) max(2rem, calc((100vw - var(--container-width)) / 2)) 3rem;
    }

    .site-menu__link {
        font-size: clamp(2.6rem, 4.6vw, 4.4rem);
        padding: 0.5rem 0;
    }

    .site-menu__link:hover {
        padding-left: 0.6rem;
    }

    .site-menu__footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        margin-top: 0;
        padding-left: 3rem;
        border-left: 1px solid var(--color-border);
        font-size: 1.05rem;
    }
}

.site-menu__link {
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease, padding 0.3s ease;
}

.site-menu__tagline {
    display: none;
    max-width: 340px;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.45;
}

@media (min-width: 1025px) {
    .site-menu__tagline {
        display: block;
    }
}

/* Project artwork is 1830x882: cards use the same shape, so nothing gets cut off. */
.project-card__image,
.news-card__image,
.devlog-card__image {
    aspect-ratio: 1830 / 882;
}

/* The three numbers stay side by side on phones. */
@media (max-width: 640px) {
    .about-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .about-stats .stat__number {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .about-stats .stat__label {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
}

/* The big project image keeps the artwork's own shape (1830x882), so nothing is cut off on phones. */
.project-page__image {
    height: auto;
    aspect-ratio: 1830 / 882;
}

@media (max-width: 600px) {
    .project-page__image {
        height: auto;
        margin: 3rem 0;
    }

    .project-page__sidebar {
        flex-direction: column;
        gap: 2rem;
    }

    .project-download {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ---------- News: one message in full ---------- */

.news-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-back span {
    transition: transform 0.3s ease;
}

.news-back:hover span {
    transform: translateX(-4px);
}

.news-article {
    max-width: 860px;
}

.devlog-post__text h3 {
    margin: 2rem 0 0.8rem;
    color: var(--color-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
}

.devlog-post__text ul {
    margin-bottom: 1.2rem;
}
