/* assets/css/responsive.css — Responsive overrides; media blocks stay in cascade order. */
.responsive-fold > summary { cursor: pointer; }
.responsive-fold > summary:focus-visible, .main-nav a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.responsive-fold:not(.is-compact) { display: contents; }
.responsive-fold:not(.is-compact) > summary { display: none; }
.responsive-fold:not(.is-compact) > .responsive-fold__body { display: contents; }
/* Hobbies */
.compact-hobbies { display: none; }
/* About */
.about-mobile-intro { display: none; }
/* Experience */
.experience-logo-set { display: flex; align-items: center; gap: .3rem; width: 100%; }
.experience-logo-set--stack { flex-direction: column; }
.experience-logo-slot { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; }
.experience-logo-slot img { display: block; width: 100%; max-height: 32px; object-fit: contain; }
.experience-logo-placeholder { font: 700 .6rem/1.2 Arial, sans-serif; color: var(--color-text-soft); text-align: center; }
.experience-logo-slot:has(img) .experience-logo-placeholder { display: none; }
@media (max-width: 1599px), (max-height: 800px) {
  :root { --portfolio-content-gutter: clamp(1rem, 2.5vw, 2.5rem); --sidebar-width: 220px; }
  .portfolio-content > .section { height: auto; min-height: calc(100svh - var(--header-height)); padding-block: 1.5rem; }
  .portfolio-content .section h2 { max-width: 100%; width: auto; white-space: normal; font-size: clamp(2.2rem, 3.8vw, 3.8rem); line-height: 1.06; }
  .portfolio-content .section-heading, .portfolio-content [class$="-heading"] { margin-bottom: 1.1rem; max-width: 100%; }
  .portfolio-content [class$="-heading"] p { width: auto; max-width: 100%; white-space: normal; }
  /* Projects */
  .portfolio-content .section :is(.section-heading,.projects-heading,.skills-heading,.education-heading,.associative-heading,.hobbies-heading,.contact-heading) p:last-child {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  /* Home */
  .home-section { height: auto; min-height: calc(100svh - var(--header-height)); padding: 1.75rem 0 3.5rem; }
  .home-section .home-container.container { width: calc(100% - 8rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; height: auto; }
  .home-title { font-size: clamp(3rem, 6vw, 6rem); }
  .home-profile__photo-wrap { width: min(22vw, 250px); }
  .home-profile__education { width: 100%; }
  /* Navigation */
  .profile-sidebar { overflow-y: auto; }
  .profile-sidebar__inner { height: auto; min-height: 100%; }
  .profile-sidebar__photo-wrap { width: 120px; }
  .profile-sidebar__name { font-size: 1.4rem; }
  /* About */
  .about-section .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; }
  .about-section .about-left { min-width: 0; }
  .about-text p { font-size: 1rem; line-height: 1.6; margin-top: .8rem; }
  .about-text p + p { margin-top: .8rem; }
  .about-highlights-panel { padding: 1rem; }
  .about-highlight { padding: .65rem; }
  /* Experience */
  .experience-dashboard { grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; }
  .experience-display { height: auto; min-height: 0; max-height: none; overflow: visible; }
  .experience-display__content { grid-template-columns: minmax(0, 1fr); }
  .experience-display__content, .experience-display__block { height: auto; min-height: 0; max-height: none; overflow: visible; }
  .experience-display__list, .experience-display__tags { overflow: visible; }
  /* Skills */
  .skills-grid { gap: .75rem; }
  .skill-card { min-width: 0; padding: 1rem; }
  /* Navigation */
  .contact-dashboard__header { grid-template-columns: 220px minmax(0, 1fr); }
  /* Contact / footer */
  .contact-dashboard__content { gap: .75rem; }
  /* Projects */
  .projects-layout.is-detail-open { grid-template-columns: minmax(0, 1fr); }
  .projects-layout.is-detail-open .projects-carousel-side { display: none; }
  .projects-layout.is-detail-open .project-detail-drawer { max-height: none; height: auto; }
  .project-detail-drawer .project-detail-drawer__inner { height: auto; min-height: 0; }
  .project-detail-drawer .project-detail-drawer__content { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1.5rem; }
  .project-detail-drawer .project-detail-drawer__text { height: auto; padding-bottom: 0; }
  .project-detail-drawer .project-detail-drawer__actions { position: static !important; margin-top: 1rem !important; flex-wrap: wrap; }
  .project-detail-drawer .project-detail-drawer__actions .btn { width: auto; min-height: 44px; height: auto; white-space: normal; }
  .project-detail-drawer .portfolio-hedgie-sticker, .project-detail-drawer .motorsport-mini-track { display: none; }
}
@media (max-width: 1199px) {
  :root { --header-height: 60px; --portfolio-content-gutter: clamp(1rem, 3vw, 2rem); }
  html { scroll-padding-top: calc(var(--header-height) + 12px); }
  body { width: auto; zoom: 1; }
  body.no-scroll { overflow: hidden; }
  /* Navigation */
  .site-header .header-inner { display: flex; justify-content: flex-start; gap: 1rem; min-height: var(--header-height); }
  .menu-toggle { display: flex; order: -1; width: 44px; height: 44px; flex-shrink: 0; }
  .site-header .main-nav { display: none; }
  .profile-sidebar-toggle { display: none !important; }
  .portfolio-layout { display: block; }
  .portfolio-content { width: 100%; min-width: 0; }
  .portfolio-content > .section > .container { width: 100%; max-width: 100%; padding-inline: var(--portfolio-content-gutter); }
  .portfolio-content > .section { height: auto; min-height: calc(100svh - var(--header-height)); align-items: center; padding-block: 1.75rem; }
  .portfolio-content .section h2 { font-size: clamp(2rem, 5.1vw, 3.2rem); overflow-wrap: break-word; }
  .profile-sidebar, .profile-sidebar.sidebar-reveal-ready, .profile-sidebar.sidebar-reveal-ready.is-docked {
    position: fixed;
    z-index: 1001;
    inset: 0 auto 0 0;
    width: min(340px, 90vw);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0b0d11;
    transform: translateX(-105%);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    animation: none;
    transition: transform .25s ease, visibility .25s;
  }
  .profile-sidebar.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .profile-sidebar.is-entering { animation: none !important; }
  .profile-sidebar__inner { padding: 3.5rem 1rem 1rem; height: auto; min-height: 100%; }
  .profile-sidebar__photo-wrap { width: 88px; }
  .profile-sidebar__education { display: none; }
  .profile-sidebar__close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
    background: #1b2027;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1.6rem;
  }
  .profile-sidebar .main-nav {
    position: static;
    display: grid;
    width: 100%;
    gap: 0;
    margin: 1rem 0 0;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: inherit;
    background: none;
    box-shadow: none;
  }
  .profile-sidebar .main-nav a {
    display: block;
    min-height: 44px;
    padding: .65rem .5rem;
    font-size: .85rem;
    border-bottom: 1px solid var(--color-border);
    white-space: normal;
  }
  .profile-sidebar .main-nav a.is-active { color: var(--color-primary); }
  .profile-sidebar-overlay { z-index: 1000; display: block; }
  .responsive-fold.is-compact {
    display: block;
    min-width: 0;
    margin-block: .6rem;
    border: 1px solid var(--color-border-primary-medium);
    border-radius: 10px;
    background: var(--surface-card);
  }
  .responsive-fold.is-compact > summary { min-height: 44px; padding: .8rem 1rem; color: var(--color-text); font-weight: 700; font-size: .9rem; }
  .responsive-fold.is-compact > .responsive-fold__body { padding: 0 1rem 1rem; min-width: 0; }
  .responsive-fold.is-compact:not([open]) > .responsive-fold__body { display: none; }
  /* Home */
  .home-section .home-container.container {
    width: 100%;
    padding-inline: var(--portfolio-content-gutter);
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 1.5rem;
  }
  .home-role { font-size: clamp(1rem, 2.5vw, 1.4rem); }
  .home-introduction { font-size: 1rem; }
  .home-focus { flex-wrap: wrap; }
  .home-profile__photo-wrap { width: min(25vw, 210px); }
  .home-profile__education-item { min-width: 0; }
  /* About */
  .about-section .about-grid { display: flex; flex-direction: column; gap: 1rem; }
  .about-content { order: -1; width: 100%; }
  .about-section .about-left { width: 100%; max-width: none; }
  .about-image-frame::before, .about-image-frame::after, .about-visual::before, .about-visual::after { display: none; }
  .about-highlights-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .about-highlight { min-width: 0; min-height: 44px; }
  /* Skills */
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-card { height: auto; min-height: 0; }
  /* Navigation */
  .skill-card__header { display: none; }
  /* Skills */
  .skill-card > .responsive-fold { border: 0; background: transparent; margin: 0; }
  .skill-card > .responsive-fold > summary { padding: .5rem 0; color: var(--color-primary); }
  .skill-card > .responsive-fold > .responsive-fold__body { padding: .5rem 0; }
  /* Experience */
  .experience-dashboard { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .experience-selector { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
  .experience-tab { flex: 0 0 180px; min-height: 60px; padding: .65rem; }
  .experience-display { padding: 1rem; min-width: 0; height: auto; min-height: 0; max-height: none; overflow: visible; }
  .experience-display__bottom { position: static; margin-top: 1rem; }
  .experience-display__top { grid-template-columns: 48px minmax(0, 1fr); }
  .experience-display__top > :last-child { grid-column: 2; }
  .experience-display__identity h3 { font-size: 1.3rem; }
  .experience-display__top { margin-bottom: .65rem; }
  .experience-display__content { grid-template-columns: minmax(0, 1fr); }
  /* Navigation */
  .education-card__header, .education-card--has-website .education-card__header { grid-template-columns: 85px minmax(0, 1fr) 30px; gap: .6rem; padding: 1rem; }
  /* Education */
  .education-card__badge { display: none; }
  .education-card__toggle { grid-column: 3; }
  .education-card__grid { grid-template-columns: minmax(0, 1fr); }
  .education-card__website { position: static; display: inline-flex; margin: .5rem 1rem; }
  /* Societies */
  .associative-track, .associative-track__stage { position: static; height: auto; min-height: 0; }
  .associative-track__stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .associative-track__stage::before, .associative-track__svg, .associative-track__connectors-layer { display: none; }
  .associative-track .associative-track-card { position: relative; inset: auto; transform: none; width: 100%; min-width: 0; align-self: start; }
  .associative-track-card.is-open { grid-column: 1 / -1; }
  .associative-track-card__content { display: none; }
  .associative-track-card.is-open .associative-track-card__content { display: block; max-height: none; opacity: 1; }
  /* Hobbies */
  .hobbies-wall { display: block; }
  .hobbies-section .hobbies-wall .hobby-moodboard { display: none; }
  .hobbies-section .hobbies-wall .hobbies-photo-strip { display: none; }
  .compact-hobbies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .compact-hobbies .responsive-fold { margin: 0; }
  .compact-hobbies .responsive-fold[open] { grid-column: 1 / -1; }
  .compact-hobbies p, .compact-hobbies li { color: var(--color-text-soft); font-size: .9rem; line-height: 1.6; }
  .compact-hobbies ul { padding-left: 1.1rem; }
  /* Contact / footer */
  .contact-dashboard { padding: 1rem; }
  /* Navigation */
  .contact-dashboard__header { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  /* Contact / footer */
  .contact-section .contact-heading { margin-bottom: 1rem; }
  /* Navigation */
  .contact-dashboard__header { padding: .5rem 3rem .5rem .5rem; }
  /* Contact / footer */
  .contact-dashboard__content.contact-dashboard__content--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-quick-card { min-width: 0; padding: .8rem; }
  .contact-dashboard .contact-quick-card { min-height: 80px; grid-template-columns: 32px minmax(0, 1fr) 27px; padding: .7rem; }
  .contact-intro__text { margin-top: .5rem; }
  .contact-quick-card__content { min-width: 0; overflow-wrap: anywhere; }
  .contact-quick-card__qr-wrap, .contact-road { display: none; }
}
@media (max-width: 699px) {
  .portfolio-content > .section { padding-block: 1.25rem; }
  .section p { overflow-wrap: break-word; }
  /* Home */
  .home-section { padding: 1.5rem 0 2rem; }
  .home-section .home-container.container { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .home-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .home-profile { display: none; }
  .home-scroll { display: none; }
  .home-actions { flex-wrap: wrap; gap: .5rem; }
  .home-actions .btn { min-height: 44px; }
  .home-focus { gap: .35rem; }
  /* About */
  .about-highlights-list { grid-template-columns: minmax(0, 1fr); }
  .about-highlights-panel { padding: .8rem; }
  .about-highlight { padding: .5rem; }
  /* Skills */
  .skills-grid { grid-template-columns: minmax(0, 1fr); }
  .skill-card { padding: .6rem .85rem; }
  /* Navigation */
  .skill-card__header h3 { font-size: 1rem; }
  /* Skills */
  .skill-card__icon { width: 32px; height: 32px; }
  /* Education */
  .education-timeline { padding-left: 0; }
  .education-timeline::before { display: none; }
  /* Navigation */
  .education-card__header, .education-card--has-website .education-card__header { grid-template-columns: minmax(0, 1fr) 30px; }
  /* Education */
  .education-card__year { grid-column: 1; }
  .education-card__main { grid-column: 1; }
  .education-card__toggle { grid-column: 2; grid-row: 1 / 3; }
  .education-card__main h3 { font-size: 1rem; }
  .education-card__content { padding: 1rem; }
  /* Societies */
  .associative-track__stage { grid-template-columns: minmax(0, 1fr); }
  /* Contact / footer */
  .contact-dashboard__content.contact-dashboard__content--grid { grid-template-columns: minmax(0, 1fr); }
  /* Experience */
  .experience-display__bottom { flex-direction: column; align-items: stretch; }
  /* Projects */
  .projects-layout { grid-template-columns: minmax(0, 1fr); }
  .project-coverflow-card { width: min(80vw, 310px); }
  .projects-layout:not(.is-detail-open) .project-detail-drawer { display: none; }
  .project-detail-drawer .project-detail-drawer__content { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .project-detail-drawer .project-detail-drawer__gallery { max-width: none; }
  .project-detail-drawer .project-detail-drawer__gallery-frame { width: 100%; height: min(80vw, 340px); min-height: 0; flex: none; }
  .project-detail-drawer .project-detail-drawer__gallery-caption { height: auto; min-height: 0; }
  .project-detail-drawer .project-detail-drawer__gallery-controls { width: 100%; gap: .5rem; margin: 0; }
  .project-detail-drawer .project-detail-drawer__gallery-dots { flex-wrap: wrap; gap: 4px; }
  .project-detail-drawer .project-detail-drawer__logos { width: 100%; height: 60px; margin: 0; }
  .project-detail-drawer .project-detail-drawer__logo-slot { height: 55px; min-height: 0; }
  .project-detail-drawer .project-detail-drawer__title { font-size: 1.5rem; }
  .project-detail-drawer .project-detail-drawer__actions { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
  .project-detail-drawer .project-detail-drawer__actions .btn { width: 100%; }
  .project-detail-drawer #projectDetailActions { grid-template-columns: minmax(0, 1fr) !important; }
  .project-detail-drawer #projectDetailActions > .btn {
    grid-column: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    white-space: normal !important;
    padding: .65rem !important;
    line-height: 1.3 !important;
  }
  .project-detail-project-nav button { top: 24px; }
  .project-detail-project-nav__prev { left: 10px; }
  .project-detail-project-nav__next { right: 60px; }
  .gallery-btn { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Navigation */
  .profile-sidebar, .profile-sidebar.sidebar-reveal-ready { transition: none; }
}
@media (max-width: 699px) {
  :root { --header-height: 60px; --portfolio-content-gutter: 16px; }
  html { scroll-padding-top: 72px; }
  body { padding-top: var(--header-height); overflow-x: clip; }
  /* Navigation */
  .site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); background: #07090d; }
  .site-header .header-inner { width: 100%; max-width: none; padding-inline: 16px; }
  .profile-sidebar .main-nav { font-family: var(--font-family-base); }
  /* Home */
  .home-section, .portfolio-content > .section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: calc(100svh - var(--header-height));
    padding-block: 24px;
  }
  .home-section .home-container.container, .portfolio-content > .section > .container {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
    padding-inline: 16px;
    height: auto;
    flex: 0 0 auto;
  }
  .home-section.is-scrolled { transform: none; opacity: 1; }
  .portfolio-content .section h2 { font-size: clamp(1.8rem, 7.7vw, 2.4rem); line-height: 1.06; }
  /* Projects */
  .portfolio-content .section :is(.section-heading,.projects-heading,.skills-heading,.education-heading,.associative-heading,.hobbies-heading,.contact-heading) {
    margin-bottom: 1rem;
  }
  .portfolio-content .section :is(.section-heading,.projects-heading,.skills-heading,.education-heading,.associative-heading,.hobbies-heading,.contact-heading) p:last-child {
    font-size: .9rem;
    line-height: 1.55;
  }
  .responsive-fold.is-compact, .skill-card, .education-card, .experience-display, .associative-track-card, .contact-dashboard, .contact-quick-card, .project-detail-drawer__inner, .project-coverflow-card {
    border-width: 1.5px;
    border-color: rgba(255,90,0,.46);
  }
  .responsive-fold.is-compact > summary { font-family: var(--font-family-base); color: var(--color-text); }
  /* About */
  .about-mobile-intro { display: block; margin: .8rem 0 .3rem; color: var(--color-text-soft); font-size: .9rem; line-height: 1.55; }
  .about-story-fold.is-compact { border: 0; background: none; margin: 0 0 .8rem; }
  .about-story-fold.is-compact > summary { padding: .4rem 0; min-height: 36px; color: var(--color-primary); font-size: .85rem; }
  .about-story-fold.is-compact > .responsive-fold__body { padding: 0; }
  .about-text { margin-top: 0; }
  .about-text p { font-size: .9rem; }
  .about-section .about-grid { gap: .4rem; }
  .about-section .about-visual, .about-section .about-image-frame, .about-section .about-highlights-panel {
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: none;
    width: 100%;
    min-height: 0;
  }
  .about-highlights-panel::before, .about-highlights-panel::after, .about-highlights-glow { display: none; }
  /* Navigation */
  .about-highlights-header { margin-bottom: .5rem; }
  .about-highlights-header h3 { font-size: 1.1rem; }
  /* About */
  .about-highlights-list { gap: .35rem; }
  .about-highlights-list .about-highlight { padding: .5rem .6rem; gap: .65rem; border-width: 1px; border-color: rgba(255,90,0,.35); min-height: 40px; }
  .about-highlight p { font-size: .78rem; line-height: 1.3; }
  .about-highlight-number { font-size: .7rem; min-width: 20px; }
  /* Projects */
  .projects-layout { margin-top: 1rem; }
  .projects-coverflow-stage { height: auto; min-height: 0; overflow: visible; padding: 0; }
  .projects-coverflow-track { height: auto; display: flex; justify-content: center; }
  .project-coverflow-card:not(.is-active) { display: none; }
  .project-coverflow-card.is-active {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: 320px;
    opacity: 1;
  }
  .project-coverflow-card__inner { min-height: 320px; }
  .projects-coverflow-controls { position: relative; margin-top: 16px; gap: 10px; }
  .projects-coverflow-nav button { min-width: 44px; min-height: 32px; }
  .project-detail-drawer .project-detail-drawer__inner { display: flex; flex-direction: column; padding: 42px 14px 14px; overflow: visible; }
  .project-detail-drawer .project-detail-drawer__content { order: 1; width: 100%; padding: 0; }
  .project-detail-drawer .project-detail-drawer__text { width: 100%; max-width: none; padding: 0; }
  .project-detail-drawer .project-detail-drawer__kicker { font-size: .65rem; padding-right: 20px; }
  .project-detail-drawer .project-detail-drawer__meta { font-size: .8rem; }
  .project-mobile-fold.is-compact { margin: .5rem 0; background: rgba(255,255,255,.02); }
  .project-mobile-fold.is-compact > summary { font-size: .83rem; min-height: 42px; padding: .65rem .75rem; }
  .project-mobile-fold .project-detail-drawer__block { margin: 0; }
  .project-mobile-fold .project-detail-drawer__label { display: none; }
  .project-mobile-fold .project-detail-drawer__description { font-size: .85rem; }
  .project-detail-drawer .project-mobile-fold #projectDetailActions {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0,1fr) !important;
    margin: 0 !important;
    transform: none !important;
    gap: 6px !important;
  }
  .project-detail-drawer .project-mobile-fold #projectDetailActions > .btn {
    position: static !important;
    grid-column: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 38px !important;
    padding: .5rem .6rem !important;
    font-size: .76rem !important;
    white-space: normal !important;
  }
  .project-detail-drawer .project-detail-drawer__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    transform: none;
    margin: .5rem 0 0;
    align-self: auto;
  }
  #projectDetailLogos {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 4px !important;
    transform: none !important;
    flex: none;
  }
  #projectDetailLogos .project-detail-drawer__logo-slot {
    position: static !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 0 !important;
    padding: 2px !important;
  }
  #projectDetailLogos img { width: 100% !important; height: 100% !important; max-height: 32px !important; object-fit: contain; transform: none !important; }
  .project-detail-drawer #projectDetailGalleryFrame {
    position: relative;
    height: 230px !important;
    min-height: 0 !important;
    width: 100%;
    flex: none;
    margin: 0;
    transform: none;
    container-type: size;
  }
  #projectDetailImage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transform: none !important;
  }
  #projectDetailVideo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    transform: none !important;
  }
  .project-detail--irp #projectDetailVideo {
    width: 230px !important;
    max-width: 100% !important;
    height: 230px !important;
    object-fit: cover;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .project-detail-drawer #projectDetailCaption { height: auto; min-height: 0; margin: 0; font-size: .7rem; }
  .project-detail-project-nav {
    position: static;
    inset: auto;
    order: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    pointer-events: auto;
  }
  .project-detail-project-nav button { position: static; transform: none !important; height: 36px; box-shadow: none; }
  .project-detail-project-nav__prev::after { content: 'Previous project'; }
  .project-detail-project-nav__next::before { content: 'Next project'; }
  .project-detail-project-nav button { width: auto; gap: 6px; padding-inline: 8px; border-radius: 8px; }
  .project-detail-project-nav button::before, .project-detail-project-nav button::after { font: 600 .65rem/1.2 Arial,sans-serif; }
  /* Skills */
  .skill-card > .responsive-fold > summary { color: var(--color-text); padding: .6rem 0; }
  .skill-card > .responsive-fold { margin: 0; }
  .skills-grid { gap: .4rem; }
  .skills-grid .skill-card { padding: .5rem .8rem; }
  /* Experience */
  .experience-display__top { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: .65rem; }
  #experienceCategory { grid-column: 1 / -1; grid-row: 1; margin: 0; font-size: .62rem; }
  #experienceLogo {
    grid-column: 1;
    grid-row: 2;
    width: 82px;
    height: auto;
    min-height: 42px;
    padding: 4px;
    background: none;
    border: 0;
    border-radius: 0;
    align-self: center;
  }
  .experience-display__identity { grid-column: 2; grid-row: 2; }
  .experience-display__identity h3 { font-size: 1.1rem; }
  .experience-display__role { font-size: .78rem; }
  .experience-display__top > .experience-display__meta {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 12px;
    width: 100%;
  }
  .experience-display__meta span, .experience-display__meta strong {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: .68rem;
    line-height: 1.4;
  }
  .experience-display__meta strong { color: var(--color-text-soft); }
  .experience-logo-set--row .experience-logo-slot { width: 50%; }
  .experience-logo-set--row .experience-logo-slot img { aspect-ratio: 1; max-height: 40px; }
  /* Navigation */
  .education-card--has-website .education-card__header { padding-bottom: .4rem; }
  /* Education */
  .education-card .education-card__website {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex;
    width: fit-content;
    margin: .4rem 1rem .8rem;
    float: none;
  }
  .education-card.is-open .education-card__content > .education-card__website { margin: .9rem 0 0; }
  .education-card .education-card__content { padding: 0; }
  .education-card .education-card__grid { grid-template-columns: minmax(0,1fr); }
  /* Contact / footer */
  .contact-dashboard { padding: 12px; }
  /* Navigation */
  .contact-dashboard__header { display: flex; flex-direction: column; align-items: stretch; padding: 10px; gap: 10px; }
  .contact-dashboard__header .contact-share-button { position: static; align-self: flex-end; flex: none; width: 38px; height: 38px; }
  /* Contact / footer */
  .contact-intro { min-width: 0; }
  .contact-intro h3 { font-size: 1.15rem; }
  .contact-intro__text { font-size: .8rem; line-height: 1.5; }
  .contact-dashboard .contact-quick-card { min-height: 62px; padding: 8px; grid-template-columns: 32px minmax(0,1fr) 24px; gap: 8px; }
  .contact-quick-card__content > span:last-child { display: none; }
  .contact-quick-card__content strong { font-size: .83rem; }
  .contact-quick-card__icon { width: 30px; height: 30px; }
  .contact-dashboard__content.contact-dashboard__content--grid { gap: 8px; }
  .site-footer { width: 100%; min-width: 0; padding: 1rem 0; }
  .footer-container { width: 100%; max-width: 540px; padding-inline: 16px; margin-inline: auto; }
  .footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; min-width: 0; }
  .footer-links { display: flex; flex-wrap: wrap; width: 100%; gap: 10px 18px; }
  .footer-inner > p { max-width: 100%; }
  .footer-bottom { display: flex; flex-wrap: wrap; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 1199px) {
  /* Hobbies */
  .hobbies-section .compact-moodboard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; padding: 2px 3px; }
  .mobile-photo-dump { grid-column: 1 / -1; position: relative; min-width: 0; }
  .compact-moodboard .mobile-photo-label {
    color: var(--color-primary);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    margin: 0 0 6px;
  }
  .mobile-photo-viewport { width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 9px; }
  .mobile-photo-track { display: flex; width: max-content; animation: mobilePhotoLoop 36s linear infinite; }
  .mobile-photo-group { display: flex; gap: 9px; padding-right: 9px; }
  .mobile-photo-group figure { width: 125px; margin: 0; padding: 5px 5px 7px; background: #191c20; border: 1px solid #505258; border-radius: 8px; }
  .mobile-photo-group img { width: 113px; height: 76px; object-fit: cover; border-radius: 5px; display: block; }
  .mobile-photo-group figcaption { font: 700 .58rem/1.25 Arial,sans-serif; color: var(--color-text); text-align: center; margin-top: 4px; }
  .mobile-photo-pause {
    position: absolute;
    right: 0;
    top: -8px;
    min-height: 32px;
    padding: 4px 8px;
    color: var(--color-text-soft);
    background: none;
    border: 0;
    font: 600 .65rem Arial,sans-serif;
  }
  .mobile-photo-track.is-paused { animation-play-state: paused; }
  .mobile-note {
    position: relative;
    min-width: 0;
    padding: 10px;
    border: 1.5px solid rgba(255,90,0,.5);
    border-radius: 3px;
    background: #1a1e24;
    box-shadow: 0 5px 10px #0004;
    transform: rotate(-1.5deg);
  }
  .mobile-note:nth-of-type(even) { transform: rotate(1.5deg); }
  .mobile-note h3 { color: var(--color-text); font-size: .8rem; line-height: 1.2; margin: 0 0 5px; }
  .compact-moodboard .mobile-note p, .compact-moodboard .mobile-note li { margin: 0; color: var(--color-text-soft); font-size: .68rem; line-height: 1.4; }
  .mobile-note svg { display: block; width: 100%; height: 43px; color: var(--color-primary); }
  .mobile-note--gaming svg { fill: none; stroke: var(--color-text-soft); stroke-width: 2.5; }
  .mobile-note--ticket {
    grid-column: 1 / -1;
    padding-right: 32px;
    background: #171d23;
    border-right: 22px solid #d9d5cb;
    border-radius: 8px;
    min-height: 84px;
  }
  .mobile-note--ticket::after {
    content: 'RACE WEEKEND';
    position: absolute;
    right: -18px;
    top: 8px;
    writing-mode: vertical-rl;
    font: 800 .55rem Arial,sans-serif;
    color: #10151b;
  }
  .mobile-note--ticket h3 { width: 52%; font-style: italic; text-transform: uppercase; font-size: 1rem; }
  .mobile-note--ticket svg { position: absolute; top: 5px; right: 25px; width: 43%; height: 45px; }
  .mobile-note--ticket p { margin-top: 14px; font-size: .61rem; border-top: 1px dashed #65686d; padding-top: 5px; }
  .mobile-travel-map { width: 100%; height: 86px; object-fit: contain; margin-bottom: 4px; }
  .mobile-note--sport ul { padding: 0; margin: 0; list-style: none; }
  .mobile-note--sport li { margin: 9px 0; }
  .mobile-note--sport small { display: block; color: var(--color-text-muted); font-size: .6rem; }
  .mobile-note--help { grid-column: 1 / -1; }
  .mobile-note--help ul { padding: 0; margin: 0; list-style: none; }
  .mobile-note--help li { margin-top: 3px; }
  .mobile-note .mb-check { position: static; display: inline; margin-right: 5px; }
}
@keyframes mobilePhotoLoop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mobile-photo-track { animation: none; }
  .mobile-photo-group[aria-hidden="true"], .mobile-photo-pause { display: none; }
}
/* Projects */
.experience-project-link {
  display: block;
  width: fit-content;
  margin-top: .5rem;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.experience-project-link[hidden] { display: none; }
.experience-project-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 699px) {
  /* About */
  .about-section :is(.about-visual, .about-image-frame, .about-highlights-panel) {
    height: auto;
    max-height: none;
    overflow: visible;
    border-radius: 0;
    clip-path: none;
    mask-image: none;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
  }
  .about-image-frame::before, .about-image-frame::after { display: none; }
  .about-highlights-list { overflow: visible; }
  .about-highlight { height: auto; max-height: none; }
  .about-highlight p { white-space: normal; overflow: visible; }
  /* Experience */
  .experience-dashboard .experience-selector { display: flex; flex-direction: column; gap: 9px; width: 100%; overflow: visible; padding: 0; border: 0; }
  .experience-selector .experience-tab {
    display: flex;
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 10px 12px;
    align-items: center;
    scroll-margin-top: 80px;
  }
  .experience-selector .experience-tab::after {
    content: '+';
    position: static;
    margin-left: auto;
    color: var(--color-primary);
    width: auto;
    height: auto;
    background: none;
    font-size: 1.2rem;
  }
  .experience-selector .experience-tab[aria-expanded="true"]::after { content: '−'; }
  .experience-selector .experience-tab__content { flex: 1; min-width: 0; }
  .experience-selector .experience-tab__content strong { font-size: .87rem; }
  .experience-selector .experience-tab__content small { font-size: .72rem; }
  .experience-selector #experienceDisplay { width: 100%; min-width: 0; margin: 0 0 5px; }
  #experienceDisplay[hidden] { display: none !important; }
  .experience-display__content { display: contents; }
  .experience-fold > .responsive-fold__body > .experience-display__block > .experience-display__label { display: none; }
  .experience-fold { margin-block: 8px; }
  /* Navigation */
  .profile-sidebar, .profile-sidebar.sidebar-reveal-ready { height: 100dvh; max-height: 100dvh; box-sizing: border-box; }
  .profile-sidebar .profile-sidebar__inner { min-height: 100%; height: auto; padding: 48px 16px 12px; gap: 8px; box-sizing: border-box; }
  .profile-sidebar .profile-sidebar__photo-wrap { width: 64px; }
  .profile-sidebar .profile-sidebar__name { font-size: 1.15rem; margin-top: 8px; }
  .profile-sidebar .profile-sidebar__role { font-size: .65rem; line-height: 1.35; margin-bottom: 0; }
  .profile-sidebar #mainNav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 4px 0;
    padding: 0;
    transform: none;
    text-align: center;
  }
  .profile-sidebar #mainNav ul { display: flex; flex-direction: column; width: 100%; padding: 0; margin: 0; list-style: none; gap: 0; }
  .profile-sidebar #mainNav li { width: 100%; margin: 0; padding: 0; }
  .profile-sidebar #mainNav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    width: 100%;
    padding: 7px 2px;
    font-size: .7rem;
    letter-spacing: .07em;
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
  }
  .profile-sidebar .profile-sidebar__section { margin: 0; padding-top: 6px; }
  .profile-sidebar .profile-sidebar__contact-list { gap: 6px; }
  .profile-sidebar .profile-sidebar__contact-item { font-size: .65rem; }
  .profile-sidebar .profile-sidebar__contact-item span { font-size: .55rem; }
  .profile-sidebar .profile-sidebar__actions { margin: 0; gap: 6px; }
  .profile-sidebar .profile-sidebar__actions .btn { min-height: 34px; padding: 7px; font-size: .7rem; }
  .mobile-photo-group { align-items: flex-start; }
  .mobile-photo-group figure { height: auto; padding-bottom: 6px; }
  .mobile-photo-group img { height: 96px; }
  .mobile-photo-group figcaption { min-height: 24px; display: grid; place-items: center; }
  .mobile-photo-track { animation-duration: 22s; }
}
.portrait-zoom-trigger { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; }
.portrait-zoom-trigger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; }
.portrait-zoom-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 1px solid #ff5a00;
  border-radius: 16px;
  background: #11151a;
  width: min(86vw, 480px);
  max-width: 90vw;
  max-height: 85dvh;
  overflow: auto;
}
.portrait-zoom-dialog::backdrop { background: rgba(0,0,0,.82); }
.portrait-zoom-image { display: block; width: 100%; max-height: 80dvh; object-fit: contain; cursor: zoom-out; }
.portrait-zoom-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 1px solid #555;
  border-radius: 8px;
  background: #111e;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 699px) {
  /* Navigation */
  .contact-dashboard .contact-dashboard__header { display: grid; grid-template-columns: minmax(0,1fr) 32px; align-items: center; gap: 12px 7px; }
  .contact-dashboard__header .contact-status {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: fit-content;
    padding: 8px;
    font-size: .57rem;
    letter-spacing: .025em;
    white-space: normal;
  }
  .contact-dashboard__header .contact-intro { grid-column: 1 / -1; grid-row: 2; }
  .contact-dashboard .contact-dashboard__header .contact-share-button {
    position: static;
    inset: auto;
    transform: none;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 7px;
    border-radius: 8px;
  }
  .contact-dashboard__header .contact-share-button img { width: 18px; height: 18px; }
  html { overflow-anchor: none; }
  .portfolio-content > .section.mobile-expansion-pinned { justify-content: flex-start; padding-top: var(--expanded-inset, 24px); }
  /* Projects */
  .projects-section:has(.projects-layout.is-detail-open) .projects-heading { display: block; }
  .projects-section:has(.projects-layout.is-detail-open) .projects-layout { margin-top: 1rem; }
  /* Experience */
  .experience-selector #experienceDisplay.is-changing { animation: none; }
  /* Projects */
  #projectDetailLogos { display: none !important; }
}
@media (max-width: 1199px) {
  /* Experience */
  #experienceLogo, #experienceLogo .experience-logo-slot { border: 0; background: none; box-shadow: none; border-radius: 0; }
}
@media (min-width: 700px) and (max-width: 1199px) {
  /* Experience */
  .experience-dashboard .experience-selector { display: flex; flex-direction: column; gap: 9px; width: 100%; overflow: visible; padding: 0; border: 0; }
  .experience-selector .experience-tab {
    display: flex;
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 10px 12px;
    align-items: center;
    scroll-margin-top: 80px;
  }
  .experience-selector .experience-tab::after {
    content: '+';
    position: static;
    margin-left: auto;
    color: var(--color-primary);
    width: auto;
    height: auto;
    background: none;
    font-size: 1.2rem;
  }
  .experience-selector .experience-tab[aria-expanded="true"]::after { content: '−'; }
  .experience-selector .experience-tab__content { flex: 1; min-width: 0; }
  .experience-selector .experience-tab__content strong { font-size: .87rem; }
  .experience-selector .experience-tab__content small { font-size: .72rem; }
  .experience-selector #experienceDisplay { width: 100%; min-width: 0; margin: 0 0 5px; }
  #experienceDisplay[hidden] { display: none !important; }
  .experience-display__content { display: contents; }
  .experience-fold > .responsive-fold__body > .experience-display__block > .experience-display__label { display: none; }
  .experience-fold { margin-block: 8px; }
  /* Navigation */
  .profile-sidebar, .profile-sidebar.sidebar-reveal-ready { height: 100dvh; max-height: 100dvh; box-sizing: border-box; }
  .profile-sidebar .profile-sidebar__inner { min-height: 100%; height: auto; padding: 48px 16px 12px; gap: 8px; box-sizing: border-box; }
  .profile-sidebar .profile-sidebar__name { margin-top: 8px; }
  .profile-sidebar .profile-sidebar__role { line-height: 1.35; margin-bottom: 0; }
  .profile-sidebar #mainNav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 4px 0;
    padding: 0;
    transform: none;
    text-align: center;
  }
  .profile-sidebar #mainNav ul { display: flex; flex-direction: column; width: 100%; padding: 0; margin: 0; list-style: none; gap: 0; }
  .profile-sidebar #mainNav li { width: 100%; margin: 0; padding: 0; }
  .profile-sidebar #mainNav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 2px;
    letter-spacing: .07em;
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
  }
  .profile-sidebar .profile-sidebar__section { margin: 0; padding-top: 6px; }
  .profile-sidebar .profile-sidebar__contact-list { gap: 6px; }
  .profile-sidebar .profile-sidebar__contact-item { font-size: .65rem; }
  .profile-sidebar .profile-sidebar__contact-item span { font-size: .55rem; }
  .profile-sidebar .profile-sidebar__actions { margin: 0; gap: 6px; }
  .profile-sidebar .profile-sidebar__actions .btn { min-height: 34px; padding: 7px; font-size: .7rem; }
  /* Experience */
  .experience-display__top { display: grid; gap: .65rem; }
  #experienceCategory { grid-column: 1 / -1; grid-row: 1; margin: 0; }
  #experienceLogo { grid-column: 1; grid-row: 2; height: auto; min-height: 42px; background: none; border: 0; border-radius: 0; align-self: center; }
  .experience-display__identity { grid-column: 2; grid-row: 2; }
  .experience-display__top > .experience-display__meta {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 12px;
    width: 100%;
  }
  .experience-display__meta span, .experience-display__meta strong { padding: 0; background: none; border: 0; border-radius: 0; line-height: 1.4; }
  .experience-display__meta strong { color: var(--color-text-soft); }
  .experience-logo-set--row .experience-logo-slot { width: 50%; }
  .experience-logo-set--row .experience-logo-slot img { aspect-ratio: 1; max-height: 40px; }
  /* Navigation */
  .education-card--has-website .education-card__header { padding-bottom: .4rem; }
  /* Education */
  .education-card .education-card__website {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex;
    width: fit-content;
    margin: .4rem 1rem .8rem;
    float: none;
  }
  .education-card.is-open .education-card__content > .education-card__website { margin: .9rem 0 0; }
  .education-card .education-card__content { padding: 0; }
  .education-card .education-card__grid { grid-template-columns: minmax(0,1fr); }
  html { overflow-anchor: none; }
  /* Navigation */
  .site-header { position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 990; }
  body { padding-top: 60px; }
  /* Home */
  .home-section, .portfolio-content > .section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: calc(100svh - 60px);
    padding-block: 28px;
  }
  .portfolio-content > .section > .container, .home-section .home-container.container {
    width: 100%;
    max-width: 1040px;
    padding-inline: 28px;
    margin-inline: auto;
  }
  .portfolio-content > .section.mobile-expansion-pinned { justify-content: flex-start; padding-top: var(--expanded-inset,28px); }
  .home-section.is-scrolled { transform: none; opacity: 1; }
  .home-scroll { display: none; }
  /* Navigation */
  .profile-sidebar .profile-sidebar__inner { justify-content: center; }
  .profile-sidebar .profile-sidebar__photo-wrap { width: 84px; }
  .profile-sidebar .profile-sidebar__name { font-size: 1.3rem; }
  .profile-sidebar #mainNav a { font-size: .8rem; min-height: 40px; }
  .profile-sidebar .profile-sidebar__role { font-size: .75rem; }
  /* About */
  .about-mobile-intro { display: block; font-size: 1rem; line-height: 1.6; color: var(--color-text-soft); margin-block: 1rem .4rem; }
  .about-story-fold.is-compact { border: 0; background: none; }
  .about-story-fold.is-compact > summary { padding: .4rem 0; color: var(--color-primary); }
  .about-story-fold.is-compact > .responsive-fold__body { padding: 0; }
  .about-section :is(.about-visual,.about-image-frame,.about-highlights-panel) {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }
  .about-highlights-panel::before, .about-highlights-panel::after { display: none; }
  .about-highlights-list { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .about-highlight { height: auto; min-height: 72px; padding: 12px; }
  .about-highlight p { font-size: .9rem; line-height: 1.45; }
  /* Skills */
  .skills-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .skill-card { padding: 12px 18px; }
  .skill-card > .responsive-fold > summary { color: var(--color-text); font-size: 1rem; }
  /* Experience */
  .experience-tab__content strong { font-size: 1rem !important; }
  .experience-tab__content small { font-size: .85rem !important; }
  .experience-display__identity h3 { font-size: 1.3rem; }
  .experience-display__role { font-size: .95rem; }
  .experience-display__meta span, .experience-display__meta strong { font-size: .8rem; }
  #experienceLogo { width: 90px; padding: 0; }
  .experience-display__top { grid-template-columns: 90px minmax(0,1fr); }
  #experienceCategory { font-size: .75rem; }
  .experience-selector #experienceDisplay.is-changing { animation: none; }
  /* Education */
  .education-timeline { padding-left: 0; }
  .education-timeline::before { display: none; }
  /* Navigation */
  .education-card__header, .education-card--has-website .education-card__header { grid-template-columns: 100px minmax(0,1fr) 36px; gap: 14px; }
  /* Education */
  .education-card__main h3 { font-size: 1.2rem; }
  .education-card__main p { font-size: .95rem; }
  .education-card__content { padding-inline: 18px !important; }
  /* Societies */
  .associative-track__stage { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .associative-track-card__toggle { padding: 18px 20px; width: 100%; }
  .associative-track-card__toggle h3 { font-size: 1.25rem; }
  .associative-track-card__content, .associative-track-card__content p, .associative-track-card__content li { font-size: .95rem; line-height: 1.55; }
  /* Projects */
  .projects-section:has(.projects-layout.is-detail-open) .projects-heading { display: block; }
  .project-detail-drawer .project-detail-drawer__inner { padding: 38px 20px 20px; overflow: visible; }
  .project-detail-drawer .project-detail-drawer__content {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 20px;
    width: 100%;
    padding: 0;
  }
  /* Navigation */
  .tablet-project-header { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .tablet-project-header #projectDetailTitle { max-width: none; font-size: clamp(1.8rem,3.8vw,2.5rem); line-height: 1.12; margin-block: 8px; }
  .tablet-project-header #projectDetailMeta { max-width: none; margin: 0; }
  /* Projects */
  .project-detail-drawer .project-detail-drawer__text { grid-column: 1; grid-row: 2; width: 100%; max-width: none; min-width: 0; padding: 0; }
  .project-detail-drawer .project-detail-drawer__gallery {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    transform: none;
    align-self: start;
  }
  .project-detail-drawer #projectDetailLogos {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  .project-detail-drawer #projectDetailLogos .project-detail-drawer__logo-slot {
    width: 100% !important;
    min-height: 0 !important;
    height: 44px !important;
    padding: 4px !important;
  }
  .project-detail-drawer #projectDetailLogos img {
    max-width: 100% !important;
    max-height: 36px !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .project-detail-drawer #projectDetailGalleryFrame {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 300px !important;
    min-height: 0 !important;
    flex: none;
    margin: 0;
    transform: none;
    overflow: hidden;
    container-type: size;
  }
  .project-detail-drawer #projectDetailImage, .project-detail-drawer #projectDetailVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: none;
  }
  .project-detail--irp #projectDetailVideo {
    inset: 0 auto 0 50%;
    width: min(100cqw,100cqh);
    height: min(100cqw,100cqh);
    transform: translateX(-50%);
    object-fit: cover;
  }
  .project-detail-drawer #projectDetailCaption {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    font-size: .8rem;
    line-height: 1.4;
  }
  .project-detail-drawer #projectDetailActions {
    grid-column: 1 / -1 !important;
    grid-row: 3;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit,minmax(175px,1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 10px !important;
  }
  .project-detail-drawer #projectDetailActions > .btn {
    position: static !important;
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px !important;
    white-space: normal !important;
    overflow: visible !important;
    font-size: .82rem !important;
    line-height: 1.3 !important;
  }
  /* Hobbies */
  .hobbies-section .compact-moodboard { gap: 18px; }
  .mobile-photo-group { gap: 12px; padding-right: 12px; align-items: flex-start; }
  .mobile-photo-group figure { width: 174px; padding: 7px; }
  .mobile-photo-group img { width: 158px; height: 112px; }
  .mobile-photo-group figcaption { min-height: 26px; font-size: .75rem; display: grid; place-items: center; }
  .mobile-photo-track { animation-duration: 28s; }
  .compact-moodboard .mobile-photo-label, .mobile-photo-pause { font-size: .8rem; }
  .mobile-note { padding: 16px; }
  .mobile-note h3 { font-size: 1.1rem; }
  .compact-moodboard .mobile-note p, .compact-moodboard .mobile-note li { font-size: .9rem; line-height: 1.45; }
  .mobile-note svg { height: 64px; }
  .mobile-note--ticket { width: min(100%,560px); justify-self: center; padding-right: 36px; min-height: 118px; }
  .mobile-note--ticket h3 { font-size: 1.35rem; }
  .mobile-note--ticket svg { height: 62px; top: 8px; }
  .compact-moodboard .mobile-note--ticket p { font-size: .8rem; margin-top: 18px; }
  .mobile-note--ticket::after { font-size: .65rem; top: 14px; }
  .mobile-travel-map { height: 150px; }
  .mobile-note--sport small { display: inline; float: right; font-size: .8rem; }
  .mobile-note--sport li { margin-block: 16px !important; }
  /* Navigation */
  .contact-dashboard__header { position: relative; padding: 16px 64px 16px 16px; }
  .contact-dashboard__header .contact-share-button {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: auto;
    left: auto;
    width: 38px;
    height: 38px;
    transform: none;
    margin: 0;
  }
  /* Contact / footer */
  .footer-inner { display: flex; flex-wrap: wrap; gap: 20px; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: 16px 24px; }
  .footer-links a { white-space: nowrap; font-size: .9rem; }
  .footer-inner > p { font-size: .9rem; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; font-size: .8rem; }
  /* Projects */
  .project-detail-drawer__content > .project-mobile-fold { display: block; grid-column: 1 / -1; grid-row: 3; min-width: 0; }
  .project-detail-drawer__content > .project-mobile-fold > .responsive-fold__body { display: block; width: 100%; }
  .language-list strong { font-size: .88rem; line-height: 1.35; }
  .language-list span { font-size: .9rem; }
  .project-detail-drawer.project-detail--utac #projectDetailActions, .project-detail-drawer.project-detail--irp #projectDetailActions {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .project-detail-drawer.project-detail--utac #projectDetailActions > .btn:first-child {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
  .project-detail-drawer.project-detail--utac #projectDetailActions > .btn:nth-child(n+2), .project-detail-drawer.project-detail--irp #projectDetailActions > .btn {
    grid-column: auto !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
  .project-detail-drawer .project-detail-drawer__gallery-controls { position: static; margin: 0; width: 100%; align-self: auto; flex: none; }
  .project-detail-drawer .project-detail-drawer__gallery { justify-content: flex-start; }
  /* Hobbies */
  .hobbies-section .compact-moodboard {
    grid-template-areas: 'photos photos' 'ticket ticket' 'creativity gaming' 'travel sport' 'travel help';
    align-items: stretch;
  }
  .mobile-photo-dump { grid-area: photos; }
  .mobile-note--ticket { grid-area: ticket; }
  .mobile-note--creativity { grid-area: creativity; }
  .mobile-note--gaming { grid-area: gaming; }
  .mobile-note--travel { grid-area: travel; }
  .mobile-note--sport { grid-area: sport; padding: 12px 16px; }
  .mobile-note--help { grid-area: help; padding: 12px 16px; }
  .compact-moodboard .mobile-note--sport li { margin-block: 5px !important; font-size: .82rem; }
  .mobile-note--sport h3, .mobile-note--help h3 { font-size: 1rem; }
  .compact-moodboard .mobile-note--help li { font-size: .82rem; }
}
@media (min-width: 700px) and (max-width: 1199px) and (orientation: landscape) {
  /* Navigation */
  .profile-sidebar .profile-sidebar__inner { padding: 42px 14px 10px; gap: 5px; justify-content: center; }
  .profile-sidebar .profile-sidebar__photo-wrap { width: 54px; }
  .profile-sidebar .profile-sidebar__name { font-size: 1.1rem; margin-top: 5px; }
  .profile-sidebar .profile-sidebar__role { font-size: .64rem; }
  .profile-sidebar #mainNav { margin-block: 2px; }
  .profile-sidebar #mainNav a { min-height: 32px; padding-block: 5px; font-size: .72rem; }
  .profile-sidebar .profile-sidebar__contact-list { gap: 4px; }
  .profile-sidebar .profile-sidebar__section { padding-top: 4px; }
  .profile-sidebar .profile-sidebar__actions .btn { min-height: 30px; padding: 5px; }
  .profile-sidebar .profile-sidebar__actions { gap: 4px; }
  /* Skills */
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; }
  /* Projects */
  .project-detail-drawer .project-detail-drawer__content { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 22px; }
  .project-detail-drawer #projectDetailGalleryFrame { height: 265px !important; }
  .project-detail-drawer #projectDetailCaption { margin: 0; }
  .project-detail-drawer .project-detail-drawer__gallery { gap: 10px; }
}
@media (max-width: 1199px) {
  /* Hobbies */
  .compact-moodboard .mobile-note--creativity p, .compact-moodboard .mobile-note--travel p { margin-top: 18px; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .portfolio-content > .section { display: flex; align-items: center; }
  /* Navigation */
  .profile-sidebar__inner { padding: .7rem; }
  .profile-sidebar__photo-wrap { width: clamp(88px,14vh,120px); }
  .profile-sidebar__name { font-size: 1.25rem; }
  .profile-sidebar__role { font-size: .72rem; }
  /* Societies */
  .associative-track-card, .associative-track-card.is-open { width: 25%; }
  .associative-track-card[data-index="0"] { left: 30%; bottom: 2rem; }
  .associative-track-card[data-index="4"] { right: 3%; bottom: 2rem; }
  .associative-track__stage { height: 480px; min-height: 480px; }
  .associative-track { min-height: 480px; }
  /* Hobbies */
  .hobbies-wall { grid-template-columns: 180px minmax(0,1fr); gap: 14px; }
  .hobbies-photo-strip { min-height: 0; height: 560px; }
  .hobbies-wall .hobby-moodboard {
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-template-areas: 'ticket ticket drawing painting' 'gaming book music travel' 'sport sport code travel' 'puzzles help help countries';
    grid-template-rows: 125px 110px 145px 105px;
    gap: 14px;
    min-height: 0;
    align-items: center;
  }
  .hobby-moodboard > .mb-object { width: 100%; min-width: 0; grid-column: auto; }
  .hobby-moodboard > .mb-ticket { grid-area: ticket; min-height: 0; }
  .hobby-moodboard > .mb-drawing { grid-area: drawing; }
  .hobby-moodboard > .mb-painting { grid-area: painting; }
  .hobby-moodboard > .mb-gaming { grid-area: gaming; }
  .hobby-moodboard > .mb-book { grid-area: book; }
  .hobby-moodboard > .mb-music { grid-area: music; padding: 10px; }
  .hobby-moodboard > .mb-travel { grid-area: travel; max-width: 100%; justify-self: stretch; }
  .hobby-moodboard > .mb-sports-note { grid-area: sport; }
  .hobby-moodboard > .mb-code { grid-area: code; padding: 10px; }
  .hobby-moodboard > .mb-puzzles { grid-area: puzzles; }
  .hobby-moodboard > .mb-help { grid-area: help; padding: 10px; }
  .hobby-moodboard > .mb-countries { grid-area: countries; padding: 10px; }
  .mb-travel__note { min-height: 32px; padding: 3px; }
  .mb-ticket__series { font-size: .58rem; }
  .hobby-moodboard .mb-code code { font-size: .8rem; }
  .hobby-moodboard .mb-code-lines { font-size: .8rem; line-height: 20px; }
  .hobby-moodboard .mb-code h3 { font-size: .85rem; margin-bottom: .3rem; }
  .hobbies-photo__placeholder { height: 155px; }
  /* Projects */
  .project-detail-drawer #projectDetailActions > .btn {
    min-width: 0 !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 8px !important;
    font-size: .75rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  /* Experience */
  .experience-dashboard { align-items: start; }
  .experience-selector { align-content: start; }
  .experience-tab { min-height: 78px; padding: 12px; }
  .experience-display { padding: 16px; }
  .experience-display__content { gap: 12px; }
  .experience-display__block { padding: 12px; }
  .experience-display__list { gap: .55rem; }
  .experience-display__list li { font-size: .78rem; line-height: 1.45; }
  .experience-display__description { font-size: .88rem; line-height: 1.5; }
  .experience-display__identity h3 { font-size: 1.25rem; }
  .experience-display__tags span { font-size: .68rem; padding: 7px; }
  #experienceLogo { border: 0; background: none; box-shadow: none; border-radius: 0; padding: 0; }
}
.project-detail--gdp .project-detail-drawer__gallery { width: 100%; max-width: none; min-width: 0; justify-self: stretch; }
.project-detail--gdp #projectDetailGalleryFrame { width: 100%; max-width: 100%; }
@media (min-width: 1200px) and (max-width: 1599px) {
  /* Navigation */
  .skill-card > .skill-card__header { display: none; }
  /* Skills */
  .skill-card > .responsive-fold.is-compact { display: block; }
  .skill-card > .responsive-fold.is-compact > summary {
    display: list-item;
    cursor: pointer;
    color: var(--color-text);
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 0 12px;
  }
  .skill-card > .responsive-fold.is-compact > .responsive-fold__body { display: block; padding-top: 8px; }
  .skill-card > .responsive-fold.is-compact:not([open]) > .responsive-fold__body { display: none; }
  .skills-grid { align-items: stretch; }
  /* Projects */
  .project-detail-drawer .project-detail-drawer__inner { min-height: 650px; height: auto; }
  .project-detail-drawer .project-detail-drawer__content { min-height: 598px; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: start; }
  .project-detail-drawer .project-detail-drawer__text { display: flex; flex-direction: column; min-width: 0; min-height: 598px; max-width: none; }
  .project-detail-drawer #projectDetailActions {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 16px 0 0 !important;
    width: 100% !important;
    flex-shrink: 0;
  }
  .project-detail-drawer .project-detail-drawer__gallery { width: 100%; max-width: none; min-width: 0; justify-self: stretch; gap: 12px; transform: none; }
  .project-detail-drawer #projectDetailGalleryFrame { width: 100%; max-width: 100%; height: 100%; min-height: 0; }
  .project-detail-drawer #projectDetailImage { width: 100%; height: 100%; object-fit: contain; }
  .project-detail-drawer #projectDetailCaption { height: auto; min-height: 0; }
  .project-detail-drawer .project-detail-drawer__gallery-controls { margin: 0; align-self: end; }
  /* Experience */
  .experience-display__content { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); column-gap: 12px; align-items: start; }
  .experience-display__content > .experience-fold { display: contents; }
  .experience-display__content > .experience-fold > .responsive-fold__body { display: contents; }
  #experienceLogo, #experienceLogo .experience-logo-slot {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 0;
  }
  /* Education */
  .education-card { position: relative; }
  .education-card .education-card__website {
    position: absolute !important;
    top: 41px !important;
    right: 10.5rem !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }
  /* Societies */
  .associative-track__svg, .associative-track__connectors-layer { display: block; }
  /* Contact / footer */
  .contact-dashboard__content--grid .contact-quick-card { min-height: 88px; padding: 12px 16px; }
  .contact-dashboard__content--grid .contact-quick-card__qr-wrap { width: 58px; height: 58px; }
  .contact-dashboard__content--grid .contact-quick-card--linkedin { grid-template-columns: 40px minmax(0,1fr) 58px 27px; }
  /* Hobbies */
  .hobbies-wall .hobby-moodboard { display: block; position: relative; height: 560px; padding: 0; }
  .hobby-moodboard > .mb-object { position: absolute; inset: auto; margin: 0; }
  .hobby-moodboard > .mb-ticket { left: 2%; top: 30px; width: 42%; height: 164px; }
  .hobby-moodboard > .mb-drawing { left: 47%; top: 30px; width: 14%; }
  .hobby-moodboard > .mb-painting { left: 64%; top: 24px; width: 12%; }
  .hobby-moodboard > .mb-travel { top: 30px; height: 290px; }
  .hobby-moodboard > .mb-gaming { left: 5%; top: 242px; width: 17%; }
  .hobby-moodboard > .mb-book { left: 28%; top: 215px; width: 17%; height: 135px; }
  .hobby-moodboard > .mb-music { left: 50%; top: 170px; width: 21%; }
  .hobby-moodboard > .mb-code { left: 49%; top: 290px; width: 22%; }
  .hobby-moodboard > .mb-sports-note { left: 4%; top: 380px; width: 35%; }
  .hobby-moodboard > .mb-help { left: 64%; top: 435px; width: 32%; }
  .hobby-moodboard > .mb-countries { left: 74%; top: 335px; width: 24%; }
  .hobby-moodboard > .mb-puzzles { left: 40%; top: 455px; width: 23%; }
  .hobby-moodboard .mb-ticket h3 { font-size: 1.1rem; }
  .hobby-moodboard .mb-ticket__car { width: 43%; }
  .hobby-moodboard .mb-music { gap: 6px; padding: 8px; }
  .hobby-moodboard .mb-music__cover { width: 32px; height: 38px; flex-shrink: 0; }
  .mb-travel__image { height: 215px; }
  .mb-travel__note { top: 234px; }
}
@media (min-width: 1200px) and (max-width: 1599px) and (max-height: 820px) {
  /* About */
  .about-mobile-intro { display: block; margin: 16px 0 8px; color: var(--color-text-soft); font-size: 1rem; line-height: 1.6; }
  .about-story-fold.is-compact { display: block; }
  .about-story-fold.is-compact > summary { display: list-item; color: var(--color-primary); padding: 8px 0; cursor: pointer; font-weight: 700; }
  .about-story-fold.is-compact > .responsive-fold__body { display: block; }
  .about-story-fold.is-compact:not([open]) > .responsive-fold__body { display: none; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  /* Skills */
  .skill-card { min-height: 0; }
  .skills-grid { grid-auto-rows: auto; }
}
.projects-layout:not(.is-detail-open) .project-detail-drawer { visibility: hidden; overflow: clip; pointer-events: none; }
/* Societies */
.associative-track__stage { overflow: clip; }
/* Hobbies */
.mb-travel__note--france { width: 53%; }
.mb-travel__note--uk { width: 40%; }
.mb-travel__note { gap: 7px; padding-inline: 5px; white-space: nowrap; }
.mb-travel__note .mb-country-icons { display: inline-flex; align-items: center; gap: 1px; margin: 0; flex: 0 0 auto; }
.mb-travel__note .mb-country-icons img { flex: 0 0 12px; width: 12px; height: 12px; margin: 0; }
@media (min-width: 1200px) and (max-width: 1599px) {
  .portfolio-content { grid-column: 2; }
  /* Navigation */
  .profile-sidebar, .profile-sidebar.sidebar-reveal-ready {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100dvh - var(--header-height));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-12px);
  }
  .profile-sidebar.laptop-sidebar-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
  /* Projects */
  .project-detail-drawer .project-detail-drawer__inner, .project-detail-drawer .project-detail-drawer__content, .project-detail-drawer .project-detail-drawer__text {
    min-height: 0;
    height: auto;
  }
  .project-detail-drawer .project-detail-drawer__gallery { height: auto; min-height: 0; grid-template-rows: 82px 315px auto 40px; }
  .project-detail--portfolio .project-detail-drawer__gallery { top: 0; grid-template-rows: 315px auto auto; align-self: start; }
  .project-detail--portfolio #projectDetailGalleryFrame { grid-row: 1; height: 315px; }
  .project-detail--portfolio #projectDetailCaption { grid-row: 2; }
  .project-detail--portfolio .portfolio-hedgie-sticker { display: flex; position: static; grid-row: 3; margin: 12px 0 0; gap: 12px; }
  .project-detail--portfolio .portfolio-hedgie-sticker img { width: 100px; height: auto; }
  .project-detail--portfolio .project-detail-drawer__gallery-controls { display: none; }
  /* Societies */
  .associative-track { display: flow-root; }
  .associative-track__stage { position: relative; inset: auto; }
  .associative-track__svg { left: 94%; }
  .associative-track__stage .associative-track-card.is-open { max-height: none; }
  .laptop-society-detail[hidden] { display: none; }
  /* Hobbies */
  .hobby-moodboard > .mb-travel { left: 76%; width: 22%; }
  /* Navigation */
  .profile-sidebar.sidebar-reveal-ready:not(.laptop-sidebar-visible) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-12px); }
  .profile-sidebar.sidebar-reveal-ready.laptop-sidebar-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
}
/* Societies */
.associative-track__stage { overflow-x: clip; overflow-y: visible; }
@media (min-width: 1200px) and (max-width: 1599px) {
  /* Societies */
  .associative-track__stage { overflow: clip; }
}
@media (min-width: 1200px) {
  /* Projects */
  .project-detail-drawer .project-detail-drawer__content { align-items: stretch; }
  .project-detail-drawer .project-detail-drawer__gallery {
    display: grid;
    align-self: stretch;
    align-content: stretch;
    height: auto;
    min-height: 0;
    top: auto;
    transform: none;
    grid-template-rows: 82px minmax(315px,1fr) auto 40px;
    gap: 12px;
  }
  .project-detail-drawer #projectDetailLogos { grid-row: 1; }
  .project-detail-drawer #projectDetailGalleryFrame {
    grid-row: 2;
    align-self: stretch;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 315px;
    max-height: none;
    margin: 0;
    aspect-ratio: auto;
    container-type: size;
  }
  .project-detail-drawer #projectDetailImage {
    position: absolute;
    inset: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .project-detail-drawer #projectDetailCaption { grid-row: 3; height: auto; min-height: 0; margin: 0; align-self: center; }
  .project-detail-drawer .project-detail-drawer__gallery-controls { grid-row: 4; position: static; align-self: end; margin: 0; }
  .project-detail--portfolio .project-detail-drawer__gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: auto;
    min-height: 0;
    max-width: none;
    width: 100%;
    align-self: stretch;
    top: 0;
    transform: none;
  }
  .project-detail--portfolio #projectDetailGalleryFrame { flex: 0 0 315px; height: 315px; width: 100%; }
  .project-detail--portfolio #projectDetailCaption { width: 100%; text-align: center; }
  .project-detail--portfolio .portfolio-hedgie-sticker {
    display: flex;
    position: static;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 8px auto 0;
    gap: 14px;
  }
  .project-detail--portfolio .portfolio-hedgie-sticker span { text-align: center; }
  .project-detail--portfolio .project-detail-drawer__gallery-controls { display: none; }
  /* Societies */
  .associative-track__stage .associative-track-card.is-open { z-index: 30; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  /* Societies */
  .associative-track__stage .associative-track-card[data-index="1"].is-open { width: 44%; top: 100px; left: 3rem; bottom: auto; }
  .associative-track__stage .associative-track-card.is-open .associative-track-card__content { max-height: none; overflow: visible; }
}
@media (min-width: 1200px) {
  /* Projects */
  .project-detail--motorsport .project-detail-drawer__gallery { grid-template-rows: minmax(315px,1fr) auto 40px; }
  /* Home */
  .home-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: calc(100svh - var(--header-height));
    padding-block: clamp(1.5rem, 3vh, 2.5rem);
  }
  .home-section .home-container.container { height: auto; flex: 0 0 auto; margin-inline: auto; }
}
@media (min-width: 1600px) {
  /* Experience */
  .experience-display__top { grid-template-columns: 140px minmax(0, 1fr) auto; }
  .experience-display__logo { width: 140px; height: 80px; }
  .experience-logo-slot img { max-height: 64px; }
  .experience-logo-set--stack { gap: 8px; }
  .experience-logo-set--stack .experience-logo-slot img { max-height: 34px; }
}
@media (min-width: 1200px) and (max-width: 1599px) and (max-height: 650px) {
  /* Home */
  .home-section { padding-block: 16px; }
  .home-section .home-container.container { gap: 2rem; }
  .home-title { font-size: 3.5rem; }
  .home-eyebrow { margin-bottom: 12px; }
  .home-role { margin-top: 14px; font-size: 1.1rem; }
  .home-introduction { margin-top: 12px; font-size: .9rem; line-height: 1.5; }
  .home-focus { margin-top: 14px; gap: 6px; }
  .home-focus span { padding: 5px 8px; }
  .home-actions { margin-top: 14px; }
  .home-actions .btn { min-height: 40px; padding: 10px 18px; }
  .home-availability { margin-top: 12px; padding-top: 10px; }
  .home-profile__photo-wrap { width: 150px; }
  .home-profile__education { margin-top: 22px; gap: 8px; }
  .home-profile__education-item { min-height: 68px; padding: 8px 10px; grid-template-columns: 60px minmax(0,1fr); gap: 10px; }
  .home-profile__education-logo-wrap { width: 60px; height: 60px; }
  .home-profile__education-top strong { font-size: .85rem; }
  .home-profile__education-item p { font-size: .78rem; margin-top: 4px; }
  .home-scroll { display: none; }
  /* Navigation */
  .profile-sidebar { overflow-y: auto; }
  .profile-sidebar .profile-sidebar__section { margin-top: 6px; }
  .portfolio-content > .section { padding-block: 18px; }
  .portfolio-content .section h2 { font-size: 2rem; line-height: 1.08; }
  /* Projects */
  .portfolio-content .section :is(.section-heading,.projects-heading,.skills-heading,.education-heading,.associative-heading,.hobbies-heading,.contact-heading) {
    margin-bottom: 14px;
  }
  .portfolio-content .section :is(.section-heading,.projects-heading,.skills-heading,.education-heading,.associative-heading,.hobbies-heading,.contact-heading) p:last-child {
    font-size: .88rem;
    line-height: 1.45;
  }
  /* About */
  .about-highlights-panel { padding: 12px; }
  /* Navigation */
  .about-highlights-header h3 { font-size: 1.3rem; }
  /* About */
  .about-highlight { padding: 8px 10px; min-height: 0; }
  .about-mobile-intro { font-size: .9rem; line-height: 1.5; }
  /* Experience */
  .experience-display { padding: 12px; }
  .experience-display__top { margin-bottom: 12px; }
  .experience-display__description { font-size: .85rem; line-height: 1.45; }
  .experience-display__block { padding: 10px; }
  .experience-display__list { gap: 6px; }
  /* Contact / footer */
  .contact-dashboard__content--grid .contact-quick-card { min-height: 72px; padding: 10px 12px; }
  .contact-dashboard__content--grid .contact-quick-card__qr-wrap { width: 48px; height: 48px; }
  /* Projects */
  .project-mobile-fold.is-compact, .experience-fold.is-compact {
    display: block;
    border: 1px solid var(--color-border-primary-medium);
    border-radius: 9px;
    margin: 8px 0;
    background: var(--surface-card);
  }
  .project-mobile-fold.is-compact > summary, .experience-fold.is-compact > summary {
    display: list-item;
    padding: 10px 12px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
  }
  .project-mobile-fold.is-compact > .responsive-fold__body, .experience-display__content > .experience-fold.is-compact > .responsive-fold__body {
    display: block;
    padding: 0 12px 12px;
  }
  .project-mobile-fold.is-compact:not([open]) > .responsive-fold__body, .experience-display__content > .experience-fold.is-compact:not([open]) > .responsive-fold__body {
    display: none;
  }
  /* Experience */
  .experience-display__content { display: block; }
  .experience-display__content > .experience-fold.is-compact { display: block; }
  .experience-fold .experience-display__block { border: 0; background: none; padding: 0; }
  .experience-selector { gap: 6px; }
  .experience-tab { min-height: 54px; padding: 8px 10px; }
  /* Projects */
  .project-detail--portfolio #projectDetailGalleryFrame { flex-basis: 180px; }
  .project-detail--portfolio .portfolio-hedgie-sticker img { width: 70px; }
  .project-detail--motorsport #projectDetailGalleryFrame { height: 180px !important; }
  .project-mobile-fold .project-detail-drawer__block { margin: 0; }
  /* Societies */
  .associative-track__stage { height: 350px; min-height: 350px; }
  .associative-track__svg { top: 8%; transform: translate(-50%,-50%) rotate(-14deg) scale(1.65); }
  .associative-track-card[data-index="0"], .associative-track-card[data-index="4"] { bottom: 14px; }
  .associative-track-card[data-index="1"] { top: 135px; }
  .associative-track-card[data-index="2"] { top: 12px; }
  .associative-track-card[data-index="3"] { top: 30px; }
  .associative-track__stage .associative-track-card[data-index="1"].is-open { top: 12px; }
  .associative-track-card__toggle { padding: 9px 12px; }
  .associative-track__stage:has(.is-open) { height: 480px; min-height: 480px; }
  /* Hobbies */
  .hobbies-photo-strip, .hobbies-wall .hobby-moodboard { height: 390px; }
  .hobby-moodboard > .mb-ticket { top: 18px; height: 115px; }
  .hobby-moodboard .mb-ticket__car { top: 28px; width: 42%; }
  .hobby-moodboard .mb-ticket h3 { font-size: 1rem; }
  .hobby-moodboard > .mb-drawing { top: 15px; }
  .hobby-moodboard > .mb-painting { top: 12px; }
  .hobby-moodboard > .mb-travel { top: 12px; height: 205px; }
  .hobby-moodboard .mb-travel__image { height: 155px; }
  .hobby-moodboard .mb-travel__note { top: 166px; }
  .hobby-moodboard > .mb-gaming { top: 147px; }
  .hobby-moodboard > .mb-book { top: 148px; height: 105px; }
  .hobby-moodboard > .mb-music { top: 130px; }
  .hobby-moodboard > .mb-code { top: 224px; }
  .hobby-moodboard > .mb-puzzles { top: 322px; }
}
@media (min-width:1200px) and (max-width:1599px) {
  /* Societies */
  .associative-track-card[data-index="1"] { transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
}
/* Contact / footer */
.qr-contact-card { position: relative; }
.qr-card-main-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.qr-enlarge-button { position: relative; z-index: 2; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.qr-enlarge-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-enlarge-button:focus-visible, .qr-card-main-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.qr-zoom-dialog { position: fixed; inset: 0; margin: auto; width: min(86vw,440px); max-height: 90dvh; padding: 52px 24px 24px; border: 0; border-radius: 12px; }
.qr-zoom-dialog::backdrop { background: rgba(0,0,0,.8); }
.qr-zoom-dialog img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
.qr-zoom-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #eee;
  color: #111;
  font-size: 24px;
  cursor: pointer;
}
@media (min-width:1200px) and (max-width:1599px) and (max-height:650px) {
  /* Hobbies */
  .hobby-moodboard > .mb-gaming { padding: 8px; }
  .hobby-moodboard .mb-gaming svg { height: 38px; }
  .hobby-moodboard .mb-gaming h3 { font-size: .8rem; }
  .hobby-moodboard .mb-gaming p { font-size: .65rem; margin-top: 3px; }
  .hobby-moodboard > .mb-sports-note { top: 258px; padding: 8px 10px; }
  .hobby-moodboard > .mb-code { width: 19%; padding: 8px 10px; }
  .hobby-moodboard > .mb-help { left: 69%; width: 29%; top: 281px; padding: 8px; }
  .hobby-moodboard .mb-help ul { gap: 3px; margin-top: 4px; }
  .hobby-moodboard .mb-help li { font-size: .65rem; line-height: 1.3; }
  .hobby-moodboard > .mb-countries { padding: 8px; font-size: .75rem; top: 218px; }
}
.qr-zoom-dialog { background: #11151a; }
.qr-zoom-dialog img { background: #11151a; padding: 16px; }
@media (min-width:1200px) and (max-width:1599px) and (max-height:650px) {
  /* Projects */
  .projects-section .projects-layout { margin-top: 8px; }
  .projects-coverflow-stage { height: 340px; min-height: 340px; overflow: visible; }
  .project-coverflow-card { height: 320px; }
  .project-coverflow-card.is-active { transform: translate(-50%,-50%); }
  .project-coverflow-card__inner { padding: 14px; gap: 8px; }
  .projects-coverflow-controls { margin-top: 4px; }
  .project-detail-drawer .project-detail-drawer__gallery {
    grid-template-rows: 82px minmax(190px,1fr) auto 36px !important;
    gap: 12px;
    align-content: stretch;
    min-width: 0;
  }
  .project-detail-drawer #projectDetailLogos {
    height: 82px !important;
    min-height: 0;
    margin: 0 !important;
    grid-auto-rows: minmax(0,1fr);
    gap: 8px 12px;
    align-items: stretch;
  }
  .project-detail-drawer #projectDetailLogos .project-detail-drawer__logo-slot {
    height: 100% !important;
    min-height: 0;
    max-height: 82px;
    margin: 0;
    padding: 0;
  }
  .project-detail-drawer #projectDetailLogos img { height: 100% !important; max-height: 100% !important; width: 100%; object-fit: contain; }
  .project-detail-drawer #projectDetailGalleryFrame { height: 100% !important; min-height: 190px; max-height: none; overflow: hidden; }
  .project-detail-drawer #projectDetailImage { inset: 0; height: 100%; width: 100%; object-fit: contain; transform: none; }
  .project-detail--motorsport .project-detail-drawer__gallery { grid-template-rows: minmax(190px,1fr) auto 36px !important; }
  .project-detail--portfolio #projectDetailGalleryFrame { flex: 0 0 190px; height: 190px !important; }
  /* Hobbies */
  .hobbies-wall { align-items: start; }
  .hobbies-section .hobbies-wall .hobbies-photo-strip {
    height: 390px;
    min-height: 0;
    max-height: 390px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  /* Navigation */
  .hobbies-photo-strip__header { flex: 0 0 auto; }
  /* Hobbies */
  .hobbies-photo-strip__viewport { flex: 1 1 0; min-height: 0; height: auto; overflow: hidden; }
  /* Navigation */
  .profile-sidebar .profile-sidebar__inner { min-height: 100%; height: auto; gap: 6px; padding: 8px 10px; }
  .profile-sidebar .profile-sidebar__photo-wrap { width: 52px; }
  .profile-sidebar .profile-sidebar__identity { margin-top: 8px; }
  .profile-sidebar .profile-sidebar__name { font-size: 1.05rem; }
  .profile-sidebar .profile-sidebar__role { margin-top: 4px; font-size: .68rem; line-height: 1.25; }
  .profile-sidebar .profile-sidebar__education { margin-top: 8px; gap: 5px; }
  .profile-sidebar .profile-sidebar__education > div { padding: 5px 7px; }
  .profile-sidebar .profile-sidebar__education strong { font-size: .7rem; }
  .profile-sidebar .profile-sidebar__education span { font-size: .65rem; line-height: 1.25; }
  .profile-sidebar .profile-sidebar__section { margin: 0; padding-top: 6px; }
  .profile-sidebar .profile-sidebar__contact-list { gap: 6px; }
  .profile-sidebar .profile-sidebar__contact-item strong { font-size: .68rem; line-height: 1.2; }
  .profile-sidebar .profile-sidebar__actions { margin-top: 4px; gap: 5px; }
  .profile-sidebar .profile-sidebar__actions .btn { min-height: 30px; padding: 6px; font-size: .68rem; }
  .profile-sidebar .profile-sidebar__availability { margin-top: auto; padding: 6px; font-size: .58rem; }
  /* Societies */
  .associative-track__stage, .associative-track__stage:has(.is-open) { height: 350px; min-height: 350px; overflow: visible; }
  .associative-track__stage .associative-track-card.is-open { z-index: 30; }
  .associative-track__stage .associative-track-card[data-index="0"], .associative-track__stage .associative-track-card[data-index="4"] {
    top: auto;
    bottom: 14px;
  }
  .associative-track__stage, .associative-track__stage:has(.is-open) { overflow-x: clip; overflow-y: visible; }
  html { overflow-anchor: none; }
  .associative-track__stage .associative-track-card[data-index="0"].is-open, .associative-track__stage .associative-track-card[data-index="4"].is-open {
    width: 32%;
  }
  .associative-track-card { transition: border-color 200ms ease,background-color 200ms ease,box-shadow 200ms ease; }
  .associative-track__stage .associative-track-card[data-index="2"].is-open, .associative-track__stage .associative-track-card[data-index="3"].is-open {
    width: 38%;
  }
  /* Projects */
  .project-detail--irp #projectDetailLogos img, .project-detail--gdp #projectDetailLogos img {
    transform: none;
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (min-width:850px) and (max-width:1199px) and (min-height:1300px) and (orientation:portrait) {
  /* Home */
  .home-section { min-height: 0; padding: 34px 0 22px; }
  .home-section .home-container.container { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 24px; }
  .home-title { font-size: 3.7rem; }
  .home-role { font-size: 1.15rem; }
  .home-profile__photo-wrap { width: 150px; }
  .home-profile__education { margin-top: 24px; gap: 8px; }
  .home-profile__education-item { grid-template-columns: 52px minmax(0,1fr); min-height: 74px; padding: 8px; gap: 8px; }
  .home-profile__education-logo-wrap { width: 52px; height: 52px; }
  .home-profile__education-top strong { font-size: .8rem; }
  .home-profile__education-item p { font-size: .75rem; }
  .portfolio-content > .section { min-height: 0; padding-block: 40px; }
  /* About */
  .portfolio-content > .about-section { padding-top: 18px; padding-bottom: 30px; }
  .about-mobile-intro { display: none; }
  .about-section .about-grid { gap: 20px; }
  .about-section .about-text p { font-size: .95rem; line-height: 1.5; margin-top: 10px; }
  .about-section h2 { font-size: 2rem; }
  /* Navigation */
  .about-highlights-header h3 { font-size: 1.25rem; }
  /* About */
  .about-highlight { min-height: 52px; padding: 8px 12px; }
  .about-highlight p { font-size: .82rem; line-height: 1.35; }
  .about-story-fold > summary { display: none; }
  .about-story-fold > .responsive-fold__body { display: block !important; padding: 0; }
  /* Projects */
  .projects-layout { display: flex; flex-direction: column; gap: 20px; }
  .projects-layout.is-detail-open .projects-coverflow {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    height: auto;
    max-height: none;
  }
  .projects-coverflow-stage { height: 400px; overflow: hidden; }
  .projects-layout .project-detail-drawer { position: relative; inset: auto; width: 100%; }
  .projects-layout:not(.is-detail-open) .project-detail-drawer { display: none; }
  .projects-layout.is-detail-open .project-detail-drawer { display: block; }
  .project-detail-drawer .project-detail-drawer__inner { height: auto; min-height: 0; }
  .project-detail-drawer .project-detail-drawer__content { display: flex; flex-direction: column; gap: 22px; }
  .project-detail-drawer .project-detail-drawer__text { padding: 0; }
  .project-detail-drawer .project-detail-drawer__gallery { width: 100%; max-width: none; align-items: center; }
  .project-detail-drawer #projectDetailLogos { max-width: 520px !important; }
  .project-detail-drawer #projectDetailGalleryFrame { height: 330px !important; }
  .project-detail-drawer .project-detail-drawer__gallery-controls { position: static; margin: 0; }
  .project-detail-drawer .portfolio-hedgie-sticker { position: static; display: flex; justify-content: center; gap: 16px; margin: 12px auto; }
  .project-detail-drawer .portfolio-hedgie-sticker img { width: 100px; }
  .project-detail-project-nav { position: relative; }
  /* Skills */
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  /* Navigation */
  .skill-card__header { display: flex; margin-bottom: 14px; }
  /* Skills */
  .skill-card > .responsive-fold > summary { display: none; }
  .skill-card > .responsive-fold > .responsive-fold__body { display: block !important; padding: 0; }
  /* Experience */
  .experience-fold > summary { display: none; }
  .experience-fold > .responsive-fold__body { display: block !important; padding: 0; }
  .experience-fold { border: 0 !important; background: none !important; }
  .experience-display__content { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 14px; }
  .experience-display__content > .experience-fold { margin: 0; }
  /* Societies */
  .associative-track { position: relative; }
  .associative-track__stage {
    position: relative;
    display: block;
    border: 1px solid var(--color-border-primary-medium);
    border-radius: 20px;
    background: rgba(8,11,15,.85);
    overflow: clip;
  }
  .associative-track__svg { display: block; position: absolute; }
  .associative-track__connectors-layer { display: block; }
  .associative-track .associative-track-card { position: absolute; transform: none; transition: border-color 200ms ease,background-color 200ms ease; }
  .associative-track .associative-track-card[data-index="0"] { left: 20px; bottom: auto; }
  .associative-track .associative-track-card[data-index="1"] { left: auto; right: 20px; bottom: auto; }
  .associative-track .associative-track-card[data-index="2"] { left: 20px; bottom: auto; }
  .associative-track .associative-track-card[data-index="3"] { left: auto; right: 20px; top: auto; }
  .associative-track .associative-track-card[data-index="4"] { left: 20px; top: auto; }
  .associative-track .associative-track-card.is-open { z-index: 30; }
  .associative-track-card__content p, .associative-track-card__content li { font-size: .85rem; line-height: 1.45; }
  /* Hobbies */
  .hobbies-section .compact-hobbies { display: none; }
  .hobbies-wall { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 18px; align-items: stretch; }
  .hobbies-section .hobbies-wall .hobbies-photo-strip { flex-direction: column; height: 1030px; min-height: 0; overflow: hidden; }
  .hobbies-photo-strip__viewport { height: auto; min-height: 0; flex: 1 1 0; }
  .hobbies-section .hobbies-wall .hobby-moodboard { display: block; position: relative; }
  .hobby-moodboard > .mb-object { position: absolute; margin: 0; }
  /* Contact / footer */
  .contact-section { min-height: 0 !important; padding-bottom: 32px !important; }
  .contact-dashboard .contact-quick-card { min-height: 110px; }
  /* Navigation */
  .contact-dashboard__header { padding: 24px 64px 24px 24px; }
  /* Contact / footer */
  .site-footer { margin-top: 0; }
  /* About */
  .portfolio-content .about-section h2 { font-size: 2rem; }
  /* Projects */
  .projects-layout.is-detail-open .projects-carousel-side { display: block; transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .projects-layout.is-detail-open .project-detail-drawer { height: auto; max-height: none; }
  /* Hobbies */
  .hobbies-section .hobbies-wall .hobbies-photo-strip, .hobbies-section .hobbies-wall .hobby-moodboard { height: 1100px; }
  .hobbies-section .hobbies-wall { display: grid; }
  .hobbies-section .hobbies-wall .hobbies-photo-strip { grid-column: 1; }
  .hobbies-section .hobbies-wall .hobby-moodboard { min-width: 0; }
  /* Projects */
  .project-detail-drawer .project-detail-drawer__content > .project-mobile-fold { width: 100%; align-self: stretch; }
  .project-detail-drawer .project-detail-drawer__content > .project-mobile-fold > .responsive-fold__body { width: 100%; }
  .project-detail-drawer #projectDetailActions { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  .project-detail-drawer #projectDetailActions:has(> :nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .project-detail-drawer #projectDetailActions:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .project-detail-drawer #projectDetailActions:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0,1fr) !important; }
  /* Societies */
  .associative-track__stage { height: 1050px; min-height: 1050px; }
  .associative-track__svg { width: 1080px; height: 460px; max-width: none; transform: translate(-50%,-50%) rotate(76deg) scale(1.65); }
  .associative-track .associative-track-card { width: 42%; }
  .associative-track .associative-track-card[data-index="0"] { top: 40px; }
  .associative-track .associative-track-card[data-index="1"] { top: 270px; }
  .associative-track .associative-track-card[data-index="2"] { top: 510px; }
  .associative-track .associative-track-card[data-index="3"] { bottom: 200px; }
  .associative-track .associative-track-card[data-index="4"] { bottom: 32px; }
  /* Hobbies */
  .hobbies-section .hobbies-wall { grid-template-columns: minmax(0,1fr); }
  .hobbies-section .hobbies-wall .hobbies-photo-strip { display: none; }
  .hobbies-section .hobbies-wall .compact-hobbies { display: block; grid-column: 1; grid-row: 1; padding: 0; background: none; border: 0; }
  .hobbies-section .compact-hobbies > .mobile-note { display: none; }
  .hobbies-section .compact-hobbies .mobile-photo-dump { width: 100%; margin: 0; }
  .hobbies-section .hobbies-wall .hobby-moodboard { grid-column: 1; grid-row: 2; width: 100%; max-width: 780px; justify-self: center; }
  /* Societies */
  .associative-track__svg { left: calc(50% + var(--portrait-circuit-x,0px)); top: calc(50% + var(--portrait-circuit-y,0px)); }
  /* Hobbies */
  .hobbies-section .mobile-photo-group { gap: 18px; padding-right: 18px; }
  .hobbies-section .mobile-photo-group figure { flex: 0 0 290px; padding: 10px; }
  .hobbies-section .mobile-photo-group img { object-fit: cover; }
  .hobbies-section .mobile-photo-group figcaption { font-size: .95rem; line-height: 1.35; }
  .hobbies-section .mobile-photo-label { font-size: 1rem; }
  .hobby-moodboard .mb-travel__image { height: 74.1379%; }
  .hobby-moodboard .mb-travel__note { top: 80.6897%; min-height: 42px; gap: 8px; padding: 8px; }
  .hobby-moodboard .mb-travel__note strong { font-size: 1.25rem; }
  .hobby-moodboard .mb-country-icons img { width: 17px; height: 17px; }
  .hobby-moodboard > .mb-music { padding: 14px; }
  .hobby-moodboard .mb-object h3 { font-size: 1.2rem; }
  .hobby-moodboard .mb-object p { font-size: 1rem; line-height: 1.45; }
  .hobby-moodboard .mb-help li { font-size: .9rem; line-height: 1.4; }
  .hobby-moodboard .mb-code pre, .hobby-moodboard .mb-code code { font-size: 1.05rem; line-height: 26px; }
  .hobby-moodboard .mb-sports-note small { font-size: .85rem; }
  .portfolio-content > .hobbies-section { padding-block: 20px; }
  .hobbies-section .hobbies-wall { margin-top: 16px; gap: 14px; }
  .hobbies-section .mobile-photo-group figcaption { min-height: 32px; }
  .hobby-moodboard > .mb-countries { padding: 6px; }
  .hobby-moodboard > .mb-sports-note { padding: 8px; }
  .hobby-moodboard > .mb-help { padding: 8px; }
  .hobby-moodboard > .mb-puzzles { transform-origin: center top; }
  .hobby-moodboard .mb-sports-note ul { gap: 2px; }
}
/* Navigation */
.portrait-header-nav { display: none; }
@media (min-width:850px) and (max-width:1199px) and (min-height:1300px) and (orientation:portrait) {
  :root { --header-height: 100px; }
  /* Navigation */
  .site-header { position: fixed; top: 0; width: 100%; z-index: 999; }
  .site-header .header-inner { flex-wrap: wrap; gap: 4px 16px; padding-block: 6px; }
  .site-header .portrait-header-nav { display: flex; width: 100%; justify-content: space-between; gap: 8px; order: 5; padding: 4px 0; }
  .portrait-header-nav a { color: var(--color-text-soft); text-decoration: none; font-size: .8rem; font-weight: 700; }
  .portrait-header-nav a:hover, .portrait-header-nav a.is-active { color: var(--color-primary); }
  .profile-sidebar .profile-sidebar__inner { padding: 70px 24px 24px; gap: 18px; }
  .profile-sidebar .profile-sidebar__photo-wrap { width: 140px; }
  .profile-sidebar .profile-sidebar__name { font-size: 1.8rem; }
  .profile-sidebar .profile-sidebar__role { font-size: 1rem; line-height: 1.5; }
  .profile-sidebar .main-nav a { font-size: 1.05rem; padding: 14px 6px; min-height: 50px; }
  .profile-sidebar .profile-sidebar__contact-item strong { font-size: .95rem; }
  .profile-sidebar .profile-sidebar__actions .btn { font-size: 1rem; padding: 12px; }
  .profile-sidebar .profile-sidebar__availability { font-size: .85rem; }
  /* Hobbies */
  .hobbies-section .mobile-photo-group figure { width: 242px; flex-basis: 242px; }
  .hobbies-section .mobile-photo-group img { width: 220px; height: 220px; }
  .hobby-moodboard > .mb-ticket { height: auto; min-height: 170px; }
  .hobby-moodboard .mb-ticket__main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; align-items: center; }
  .hobby-moodboard .mb-ticket__main > .mb-label { grid-column: 1 / -1; font-size: .8rem; }
  .hobby-moodboard .mb-ticket h3 { margin: 0; font-size: 1.4rem; line-height: 1.05; }
  .hobby-moodboard .mb-ticket__car { position: static; width: 100%; height: 60px; }
  .hobby-moodboard .mb-ticket__series { position: static; grid-column: 1 / -1; font-size: .85rem; line-height: 1.4; margin: 0; }
  .hobby-moodboard > .mb-puzzles { transform: rotate(7deg); }
  .hobby-moodboard .mb-puzzles svg { width: 100%; }
  .hobby-moodboard > .mb-gaming { --tilt: 7deg; }
  .hobby-moodboard .mb-gaming p { font-size: .9rem; }
  .hobby-moodboard .mb-book small { font-size: .75rem; }
  .hobby-moodboard > .mb-travel { height: auto; aspect-ratio: 240 / 290; }
  .hobby-moodboard > .mb-countries { font-size: 1.05rem; }
  .hobby-moodboard .mb-sports-note li, .hobby-moodboard .mb-help li { font-size: 1.05rem; line-height: 1.45; }
  .hobby-moodboard .mb-sports-note li small { font-size: .95rem; }
}
@media (min-width:850px) and (hover:hover) and (pointer:fine) {
  /* Hobbies */
  .hobbies-section .hobby-moodboard > .mb-object:hover {
    z-index: 20;
    transform: rotate(0deg) translateY(-5px);
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.3));
  }
}
@media (min-width:850px) and (prefers-reduced-motion:no-preference) {
  /* Hobbies */
  .hobbies-section .hobby-moodboard > .mb-object { transition: transform 180ms ease,filter 180ms ease; }
}
@media (min-width:850px) and (max-width:1199px) and (min-height:1300px) and (orientation:portrait) {
  /* Navigation */
  .site-header { height: auto; min-height: 100px; background: #080a0c; }
  .site-header .portrait-header-nav { background: #080a0c; }
  .profile-sidebar #mainNav a { font-size: 1.05rem; min-height: 50px; padding: 14px 6px; }
  /* Hobbies */
  .hobby-moodboard > .mb-ticket { left: 4%; top: 25px; width: 66%; }
  .hobby-moodboard > .mb-puzzles { left: 75%; top: 19px; width: 21%; }
  .hobby-moodboard .mb-puzzles svg { height: 130px; }
  .hobby-moodboard > .mb-gaming { left: 75%; top: 175px; width: 21%; }
  .hobby-moodboard > .mb-drawing { left: 4%; top: 245px; width: 20%; }
  .hobby-moodboard > .mb-painting { left: 28%; top: 240px; width: 20%; }
  .hobby-moodboard > .mb-book { left: 51%; top: 245px; width: 20%; height: 125px; }
  .hobby-moodboard > .mb-travel { top: 415px; left: 4%; width: 44%; }
  .hobby-moodboard > .mb-music { top: 390px; left: 56%; width: 39%; }
  .hobby-moodboard > .mb-code { top: 530px; left: 57%; width: 37%; }
  .hobby-moodboard .mb-code-lines { font-size: 1.1rem; line-height: 25px; }
  .hobby-moodboard > .mb-help { top: 935px; left: 4%; width: 91%; --tilt: 0deg; }
  .hobby-moodboard > .mb-countries { top: 835px; left: 4%; width: 44%; }
  .hobby-moodboard > .mb-sports-note { top: 740px; left: 54%; width: 42%; }
  .hobby-moodboard .mb-sports-note li { font-size: 1rem; line-height: 1.4; }
  .hobbies-section .hobbies-wall .hobby-moodboard { height: 1070px; }
  .hobby-moodboard .mb-help ul { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; margin-top: 10px; }
  .hobby-moodboard .mb-help li { align-items: flex-start; }
}
@media (min-width:1600px) {
  .portfolio-content .section h2 { max-width: 100%; width: auto; white-space: normal; }
  /* Projects */
  .project-detail-drawer #projectDetailActions > .btn {
    white-space: normal !important;
    height: auto !important;
    min-height: 44px;
    padding: 8px 10px !important;
    line-height: 1.3;
  }
}
@media (min-width:850px) and (max-width:1199px) and (min-height:1300px) and (orientation:portrait) {
  /* Hobbies */
  .hobby-moodboard .mb-book__page { padding-inline: 6px; }
  .hobby-moodboard .mb-book h3 { font-size: .875rem; }
}
@media (min-width:1200px) and (max-width:1599px) and (max-height:650px) {
  /* Hobbies */
  .hobby-moodboard .mb-ticket__stub > span { white-space: nowrap; font-size: .58rem; letter-spacing: .06em; }
}
@media (min-width:1600px) and (max-width:1799px) and (min-height:801px) {
  /* Projects */
  .project-detail-drawer .project-detail-drawer__content { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
  .project-detail-drawer .project-detail-drawer__gallery { min-width: 0; width: 100%; max-width: 100%; }
}
@media (min-width:1200px) and (max-width:1599px) and (max-height:650px) {
  /* Hobbies */
  .hobby-moodboard .mb-book__page { padding-inline: 6px; }
}
@media (max-width:399px) and (max-height:820px) {
  /* Navigation */
  .profile-sidebar .profile-sidebar__inner { padding-top: 44px; gap: 4px; }
}
@media (min-width:850px) and (max-width:1199px) and (hover:hover) and (pointer:fine) {
  /* Hobbies */
  .hobbies-section .compact-hobbies { display: none; }
  .hobbies-wall { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 18px; align-items: stretch; }
  .hobbies-section .hobbies-wall .hobbies-photo-strip { flex-direction: column; height: 1030px; min-height: 0; overflow: hidden; }
  .hobbies-photo-strip__viewport { height: auto; min-height: 0; flex: 1 1 0; }
  .hobbies-section .hobbies-wall .hobby-moodboard { display: block; position: relative; }
  .hobby-moodboard > .mb-object { position: absolute; margin: 0; }
  .hobbies-section .hobbies-wall .hobbies-photo-strip, .hobbies-section .hobbies-wall .hobby-moodboard { height: 1100px; }
  .hobbies-section .hobbies-wall { display: grid; }
  .hobbies-section .hobbies-wall .hobbies-photo-strip { grid-column: 1; }
  .hobbies-section .hobbies-wall .hobby-moodboard { min-width: 0; }
  .hobbies-section .hobbies-wall { grid-template-columns: minmax(0,1fr); }
  .hobbies-section .hobbies-wall .hobbies-photo-strip { display: none; }
  .hobbies-section .hobbies-wall .compact-hobbies { display: block; grid-column: 1; grid-row: 1; padding: 0; background: none; border: 0; }
  .hobbies-section .compact-hobbies > .mobile-note { display: none; }
  .hobbies-section .compact-hobbies .mobile-photo-dump { width: 100%; margin: 0; }
  .hobbies-section .hobbies-wall .hobby-moodboard { grid-column: 1; grid-row: 2; width: 100%; max-width: 780px; justify-self: center; }
  .hobbies-section .mobile-photo-group { gap: 18px; padding-right: 18px; }
  .hobbies-section .mobile-photo-group figure { flex: 0 0 290px; padding: 10px; }
  .hobbies-section .mobile-photo-group img { object-fit: cover; }
  .hobbies-section .mobile-photo-group figcaption { font-size: .95rem; line-height: 1.35; }
  .hobbies-section .mobile-photo-label { font-size: 1rem; }
  .hobby-moodboard .mb-travel__image { height: 74.1379%; }
  .hobby-moodboard .mb-travel__note { top: 80.6897%; min-height: 42px; gap: 8px; padding: 8px; }
  .hobby-moodboard .mb-travel__note strong { font-size: 1.25rem; }
  .hobby-moodboard .mb-country-icons img { width: 17px; height: 17px; }
  .hobby-moodboard > .mb-music { padding: 14px; }
  .hobby-moodboard .mb-object h3 { font-size: 1.2rem; }
  .hobby-moodboard .mb-object p { font-size: 1rem; line-height: 1.45; }
  .hobby-moodboard .mb-help li { font-size: .9rem; line-height: 1.4; }
  .hobby-moodboard .mb-code pre, .hobby-moodboard .mb-code code { font-size: 1.05rem; line-height: 26px; }
  .hobby-moodboard .mb-sports-note small { font-size: .85rem; }
  .portfolio-content > .hobbies-section { padding-block: 20px; }
  .hobbies-section .hobbies-wall { margin-top: 16px; gap: 14px; }
  .hobbies-section .mobile-photo-group figcaption { min-height: 32px; }
  .hobby-moodboard > .mb-countries { padding: 6px; }
  .hobby-moodboard > .mb-sports-note { padding: 8px; }
  .hobby-moodboard > .mb-help { padding: 8px; }
  .hobby-moodboard > .mb-puzzles { transform-origin: center top; }
  .hobby-moodboard .mb-sports-note ul { gap: 2px; }
  .hobbies-section .mobile-photo-group figure { width: 242px; flex-basis: 242px; }
  .hobbies-section .mobile-photo-group img { width: 220px; height: 220px; }
  .hobby-moodboard > .mb-ticket { height: auto; min-height: 170px; }
  .hobby-moodboard .mb-ticket__main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; align-items: center; }
  .hobby-moodboard .mb-ticket__main > .mb-label { grid-column: 1 / -1; font-size: .8rem; }
  .hobby-moodboard .mb-ticket h3 { margin: 0; font-size: 1.4rem; line-height: 1.05; }
  .hobby-moodboard .mb-ticket__car { position: static; width: 100%; height: 60px; }
  .hobby-moodboard .mb-ticket__series { position: static; grid-column: 1 / -1; font-size: .85rem; line-height: 1.4; margin: 0; }
  .hobby-moodboard > .mb-puzzles { transform: rotate(7deg); }
  .hobby-moodboard .mb-puzzles svg { width: 100%; }
  .hobby-moodboard > .mb-gaming { --tilt: 7deg; }
  .hobby-moodboard .mb-gaming p { font-size: .9rem; }
  .hobby-moodboard .mb-book small { font-size: .75rem; }
  .hobby-moodboard > .mb-travel { height: auto; aspect-ratio: 240 / 290; }
  .hobby-moodboard > .mb-countries { font-size: 1.05rem; }
  .hobby-moodboard .mb-sports-note li, .hobby-moodboard .mb-help li { font-size: 1.05rem; line-height: 1.45; }
  .hobby-moodboard .mb-sports-note li small { font-size: .95rem; }
  .hobby-moodboard > .mb-ticket { left: 4%; top: 25px; width: 66%; }
  .hobby-moodboard > .mb-puzzles { left: 75%; top: 19px; width: 21%; }
  .hobby-moodboard .mb-puzzles svg { height: 130px; }
  .hobby-moodboard > .mb-gaming { left: 75%; top: 175px; width: 21%; }
  .hobby-moodboard > .mb-drawing { left: 4%; top: 245px; width: 20%; }
  .hobby-moodboard > .mb-painting { left: 28%; top: 240px; width: 20%; }
  .hobby-moodboard > .mb-book { left: 51%; top: 245px; width: 20%; height: 125px; }
  .hobby-moodboard > .mb-travel { top: 415px; left: 4%; width: 44%; }
  .hobby-moodboard > .mb-music { top: 390px; left: 56%; width: 39%; }
  .hobby-moodboard > .mb-code { top: 530px; left: 57%; width: 37%; }
  .hobby-moodboard .mb-code-lines { font-size: 1.1rem; line-height: 25px; }
  .hobby-moodboard > .mb-help { top: 935px; left: 4%; width: 91%; --tilt: 0deg; }
  .hobby-moodboard > .mb-countries { top: 835px; left: 4%; width: 44%; }
  .hobby-moodboard > .mb-sports-note { top: 740px; left: 54%; width: 42%; }
  .hobby-moodboard .mb-sports-note li { font-size: 1rem; line-height: 1.4; }
  .hobbies-section .hobbies-wall .hobby-moodboard { height: 1070px; }
  .hobby-moodboard .mb-help ul { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; margin-top: 10px; }
  .hobby-moodboard .mb-help li { align-items: flex-start; }
  .hobby-moodboard .mb-book__page { padding-inline: 6px; }
  .hobby-moodboard .mb-book h3 { font-size: .875rem; }
}
@media (min-width:850px) and (max-width:1199px) and (max-height:1299px) and (hover:hover) and (pointer:fine) {
  /* Hobbies */
  .hobbies-section .hobbies-wall .hobby-moodboard { height: 860px; }
  .hobby-moodboard > .mb-ticket { top: 20px; left: 4%; width: 65%; min-height: 0; }
  .hobby-moodboard .mb-ticket__main { padding: 10px 12px; gap: 6px; }
  .hobby-moodboard .mb-ticket h3 { font-size: 1.2rem; line-height: 1.05; }
  .hobby-moodboard .mb-ticket__main > .mb-label { font-size: .72rem; }
  .hobby-moodboard .mb-ticket__car { height: 48px; }
  .hobby-moodboard .mb-ticket__series { font-size: .8rem; line-height: 1.35; }
  .hobby-moodboard > .mb-puzzles { top: 12px; left: 77%; width: 18%; }
  .hobby-moodboard .mb-puzzles svg { height: 105px; }
  .hobby-moodboard > .mb-gaming { top: 135px; left: 76%; width: 20%; padding: 10px; }
  .hobby-moodboard .mb-gaming svg { height: 45px; }
  .hobby-moodboard .mb-gaming h3 { font-size: 1.05rem; }
  .hobby-moodboard .mb-gaming p { font-size: .82rem; }
  .hobby-moodboard > .mb-drawing { top: 190px; left: 5%; width: 19%; padding: 10px; }
  .hobby-moodboard > .mb-painting { top: 185px; left: 29%; width: 19%; padding: 10px; }
  .hobby-moodboard > .mb-book { top: 190px; left: 52%; width: 19%; height: 100px; }
  .hobby-moodboard .mb-drawing svg { height: 60px; }
  .hobby-moodboard .mb-painting .mb-canvas { height: 65px; }
  .hobby-moodboard .mb-drawing h3, .hobby-moodboard .mb-painting h3 { font-size: 1rem; }
  .hobby-moodboard > .mb-travel { top: 320px; left: 8%; width: 34%; }
  .hobby-moodboard .mb-travel__note { padding: 6px; min-height: 34px; gap: 5px; }
  .hobby-moodboard .mb-travel__note strong { font-size: 1.05rem; }
  .hobby-moodboard .mb-country-icons img { width: 14px; height: 14px; }
  .hobby-moodboard > .mb-music { top: 315px; left: 51%; width: 44%; padding: 10px; }
  .hobby-moodboard .mb-music h3 { font-size: 1.05rem; }
  .hobby-moodboard .mb-music p { font-size: .9rem; }
  .hobby-moodboard > .mb-code { top: 430px; left: 53%; width: 41%; padding: 10px 14px; }
  .hobby-moodboard .mb-code h3 { font-size: 1.05rem; }
  .hobby-moodboard .mb-code-lines { font-size: 1rem; line-height: 22px; }
  .hobby-moodboard > .mb-sports-note { top: 610px; left: 51%; width: 44%; padding: 8px 12px; }
  .hobby-moodboard .mb-sports-note li { font-size: .92rem; line-height: 1.35; }
  .hobby-moodboard .mb-sports-note li small { font-size: .85rem; }
  .hobby-moodboard > .mb-countries { top: 660px; left: 4%; width: 42%; padding: 6px; font-size: .98rem; }
  .hobby-moodboard > .mb-help { top: 745px; left: 4%; width: 91%; padding: 10px; }
  .hobby-moodboard .mb-help h3 { font-size: 1.1rem; }
  .hobby-moodboard .mb-help li { font-size: .95rem; line-height: 1.35; }
  .hobby-moodboard .mb-help ul { margin-top: 8px; }
  .hobby-moodboard .mb-book__page { padding-inline: 4px; }
}
