/* ============================================================================
   Michaël Minelli — personal portfolio
   Responsive design, no framework.

   Single stylesheet merging the project's five historical layers, in their
   original cascade order:
     1. Base (former styles.css)  — variables, reset and full layout
     2. Editorial redesign V3     — sober palette and project hierarchy
     3. V4 adjustments            — blue palette, editorial hero, FlowRide
     4. V5 touch-ups              — animated hero, accessible media and details
     5. V6 finishing touches      — editorial hierarchy and micro-interactions
   Each layer overrides the previous one: section order is critical.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1/5 · BASE — theme variables, reset, navigation and full page layout
   ---------------------------------------------------------------------------- */
:root {
    color-scheme: light;
    --bg: #f5f6f3;
    --surface: #fff;
    --surface-soft: #f0f2f0;
    --text: #172338;
    --muted: #657084;
    --line: #e0e5e4;
    --accent: #4c70e8;
    --accent-2: #c7e9b5;
    --nav: #fffefaec;
    /* Inter is the only font family loaded (see index.html). */
    --sans: "Inter", system-ui, -apple-system, sans-serif;
    --serif: var(--sans);
    --shadow: 0 22px 65px rgba(17, 33, 57, 0.09);
    --radius: 26px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e1624;
    --surface: #172338;
    --surface-soft: #1b2a3f;
    --text: #eef3f7;
    --muted: #a1aec1;
    --line: #33445c;
    --accent: #9cb1ff;
    --accent-2: #c7e9b5;
    --nav: #1a2a3cf0;
    --shadow: 0 22px 65px rgba(0, 0, 0, 0.2);
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 106px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.is-locked {
    overflow: hidden;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    cursor: pointer;
}
button,
input {
    accent-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #8fa5ff;
    outline-offset: 4px;
}
::selection {
    background: #cfff90;
    color: #152235;
}
.container {
    max-width: 1316px;
    width: calc(100% - 72px);
    margin-inline: auto;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 1000;
    padding: 12px 20px;
    background: #fff;
    color: #172338;
    border-radius: 12px;
}
.skip-link:focus {
    top: 12px;
}
.reading-progress {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
}
.reading-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #a6e68c;
    transition: width 0.08s linear;
}
.site-header {
    height: 99px;
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
}
.nav-shell {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    min-width: 190px;
}
.brand-symbol {
    display: grid;
    place-items: center;
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    color: #fff;
    background: #15243b;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.12em;
    padding-right: 7px;
    line-height: 1;
}
.brand-dot {
    color: #baf58b;
    position: absolute;
    bottom: 7px;
    right: 8px;
    font-size: 26px;
}
.brand-wordmark {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.07em;
}
.brand-wordmark span {
    display: block;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: -0.03em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-left: auto;
    margin-right: auto;
}
.nav-link {
    font-size: 12px;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.icon-button {
    background: var(--surface);
    border: 1px solid var(--line);
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--text);
}
.theme-toggle svg {
    width: 19px;
    height: 19px;
}
.theme-toggle .sun-icon {
    display: none;
}
:root[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}
:root[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}
.nav-contact {
    background: #18273c;
    color: #fff;
    border-radius: 14px;
    padding: 14px 21px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition:
        transform 0.25s,
        background 0.25s;
}
.nav-contact:hover {
    transform: translateY(-2px);
    background: #3554a3;
}
.nav-contact span {
    padding-left: 9px;
    font-size: 16px;
}
.menu-toggle {
    display: none;
    position: relative;
}
.menu-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    left: 11px;
    top: 15px;
    transition:
        transform 0.2s,
        top 0.2s;
}
.menu-toggle span:last-child {
    top: 24px;
}
.menu-toggle[aria-expanded="true"] span:first-child {
    top: 19px;
    transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
    top: 19px;
    transform: rotate(-45deg);
}
/* Hero */
.hero {
    min-height: 672px;
    background: radial-gradient(
        circle at 66% 43%,
        #27436a 0,
        #16263f 39%,
        #101c2d 79%
    );
    color: #fff;
    position: relative;
    isolation: isolate;
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 58% 42%;
    box-shadow: 0 18px 60px rgba(17, 33, 57, 0.08);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.25;
    background-image:
        linear-gradient(#aabfe50a 1px, transparent 1px),
        linear-gradient(90deg, #aabfe50a 1px, transparent 1px);
    background-size: 56px 56px;
}
.hero-background-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}
.orb-one {
    width: 540px;
    height: 540px;
    right: -65px;
    top: 70px;
    border: 1px solid rgba(163, 207, 255, 0.14);
    box-shadow:
        0 0 0 95px rgba(130, 185, 255, 0.035),
        0 0 0 190px rgba(130, 185, 255, 0.026);
}
.orb-two {
    width: 380px;
    height: 380px;
    right: 80px;
    bottom: -240px;
    background: radial-gradient(
        circle,
        rgba(134, 157, 251, 0.2),
        transparent 65%
    );
}
.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--pointer-x, 72%) var(--pointer-y, 55%),
        rgba(160, 194, 243, 0.13),
        transparent 27%
    );
    transition: background 0.1s;
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: 93px 0 80px 76px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-eyebrow {
    color: #d7e4ec;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 27px;
}
.live-dot {
    height: 9px;
    width: 9px;
    background: #c7fa8f;
    border-radius: 50%;
    box-shadow:
        0 0 0 5px #b5ff7418,
        0 0 25px #bcff77a1;
    flex-shrink: 0;
}
.hero h1 {
    font-size: clamp(45px, 5.1vw, 71px);
    font-weight: 800;
    line-height: 1.115;
    letter-spacing: -0.067em;
    max-width: 740px;
    margin: 0 0 28px;
}
.hero h1 em {
    color: #d5ffa1;
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.06em;
}
.period {
    color: #a3beff;
}
.hero-summary {
    font-size: 15.5px;
    line-height: 1.95;
    color: #c3d0e2;
    max-width: 526px;
    margin: 0 0 32px;
    font-weight: 500;
}
.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-radius: 15px;
    padding: 15px 18px 15px 22px;
    font-weight: 800;
    font-size: 12.5px;
    min-height: 53px;
    transition:
        transform 0.23s,
        box-shadow 0.23s,
        background 0.23s;
    white-space: nowrap;
}
.button:hover {
    transform: translateY(-3px);
}
.button-primary {
    background: #cfff9f;
    color: #152338;
    box-shadow: 0 15px 34px rgba(161, 242, 109, 0.11);
}
.button-primary:hover {
    background: #e0ffba;
    box-shadow: 0 20px 40px rgba(161, 242, 109, 0.19);
}
.button-outline {
    border: 1px solid #8998ad5c;
    color: #e8f0fc;
    background: #ffffff0a;
}
.button-outline:hover {
    background: #ffffff1b;
}
.button-arrow {
    width: 28px;
    height: 28px;
    background: #192d40;
    color: #e6ffa9;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 18px;
}
.hero-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: #a5b7cc;
    font-weight: 600;
    margin-top: auto;
    padding-top: 65px;
}
.hero-line {
    width: 36px;
    height: 1px;
    background: #8291aa;
}
.hero-dot-sep {
    font-size: 9px;
    color: #d5ffa1;
}
.hero-portrait-wrap {
    position: relative;
    isolation: isolate;
    align-self: stretch;
    min-width: 0;
    min-height: 590px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.portrait-halo {
    position: absolute;
    z-index: -1;
    bottom: 50px;
    right: 5%;
    width: 97%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle at 53% 43%,
        #4778bfaa 0,
        #466c9b90 28%,
        #34517246 50%,
        transparent 72%
    );
}
.portrait-frame-ring {
    width: 430px;
    height: 430px;
    border: 1px solid #d3e4ff28;
    border-radius: 50%;
    position: absolute;
    z-index: 0;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow:
        0 0 0 58px #adc9f108,
        0 0 0 115px #adc9f106;
}
.portrait-grid {
    position: absolute;
    width: 280px;
    height: 370px;
    right: 16px;
    top: 80px;
    opacity: 0.22;
    background-image: radial-gradient(#c0deff 1px, transparent 1px);
    background-size: 15px 15px;
    mask-image: linear-gradient(to left, black, transparent);
}
.hero-portrait {
    width: min(113%, 660px);
    height: auto;
    max-width: none;
    position: absolute;
    bottom: -6px;
    left: 49%;
    transform: translateX(-50%);
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.13));
    max-height: 640px;
}
.floating-label {
    z-index: 4;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #ffffff47;
    background: #f3f7ffed;
    color: #192941;
    box-shadow: 0 18px 50px #0e182952;
    backdrop-filter: blur(12px);
    position: absolute;
    border-radius: 15px;
    padding: 12px 15px;
}
.floating-label small {
    display: block;
    color: #66809c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-bottom: 5px;
}
.floating-label strong {
    font-size: 12px;
    display: block;
    font-weight: 800;
    white-space: nowrap;
}
.floating-mini-icon {
    font-size: 22px;
    color: #6988e1;
}
.floating-label-top {
    top: 122px;
    left: -42px;
    transform: rotate(-6deg);
}
.floating-label-bottom {
    right: 15px;
    bottom: 70px;
    transform: rotate(4deg);
}
.work-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #70c69a;
    box-shadow: 0 0 0 5px #70c69a30;
}
.floating-arrow {
    font-size: 20px;
    color: #6381bf;
    padding-left: 6px;
}
.hero-scroll {
    position: absolute;
    z-index: 5;
    bottom: 27px;
    left: 76px;
    color: #b8c9dd;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 11px;
}
.scroll-mouse {
    border: 1px solid #a2b5cc;
    width: 17px;
    height: 25px;
    border-radius: 9px;
    position: relative;
}
.scroll-mouse::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 6px;
    background: #d0ffa8;
    top: 5px;
    left: 6px;
    border-radius: 4px;
    animation: mouse 1.8s infinite;
}
.hero-scroll > span:last-child {
    font-size: 16px;
    margin-left: 9px;
}
@keyframes mouse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        transform: translateY(8px);
        opacity: 0;
    }
}
/* Facts */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 39px 16px;
    gap: 13px;
}
.fact {
    padding: 18px 21px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.fact-icon {
    height: 38px;
    width: 38px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}
.fact strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 4px;
}
.fact span:not(.fact-icon) {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
/* Shared */
.section {
    padding-block: 114px 8px;
}
.section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 34px;
}
.section-intro > div:first-child {
    max-width: 790px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    margin: 0 0 19px;
}
.eyebrow-number {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    letter-spacing: 0;
}
h2 {
    font-size: clamp(36px, 4.4vw, 58px);
    font-weight: 800;
    line-height: 1.19;
    letter-spacing: -0.067em;
    margin: 0;
}
h2 em,
h3 em {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.045em;
}
.intro-aside {
    max-width: 300px;
}
.intro-aside p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 19px;
}
.intro-aside-foot {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    line-height: 1.6;
}
.intro-aside-foot span {
    font-size: 15px;
    margin-left: 8px;
}
.js .reveal {
    opacity: 0;
    transform: translateY(23px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Projects */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 35px 0 22px;
}
.filter-chip {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    padding: 13px 18px;
    border-radius: 100px;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}
.filter-chip:hover {
    transform: translateY(-2px);
}
.filter-chip.is-active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.filter-count {
    opacity: 0.65;
    margin-left: 7px;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 19px;
}
.project-card {
    grid-column: span 6;
    border: 1px solid var(--line);
    border-radius: 25px;
    min-height: 590px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}
.project-card:nth-child(4n + 1),
.project-card:nth-child(4n + 4) {
    grid-column: span 7;
}
.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3) {
    grid-column: span 5;
}
.project-card:last-child:nth-child(odd) {
    grid-column: span 12;
    min-height: 435px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #9cacd36b;
}
.project-card[hidden] {
    display: none !important;
}
.project-visual {
    height: 315px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-card:last-child:nth-child(odd) .project-visual {
    height: 100%;
    grid-column: 2;
    grid-row: 1;
}
.project-card:last-child:nth-child(odd) .project-content {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
}
.project-visual[data-accent="mint"] {
    background: #d8e8db;
}
.project-visual[data-accent="lavender"] {
    background: #e0ddf9;
}
.project-visual[data-accent="peach"] {
    background: #f8ddce;
}
.project-visual[data-accent="blue"] {
    background: #d3e7f1;
}
.project-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image: radial-gradient(#44616f30 1px, transparent 1px);
    background-size: 16px 16px;
}
.visual-badge {
    position: absolute;
    z-index: 5;
    top: 22px;
    left: 24px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #263d43;
    background: #ffffffbd;
    backdrop-filter: blur(6px);
    padding: 8px 12px;
    border-radius: 100px;
}
.visual-notice {
    position: absolute;
    z-index: 5;
    right: 19px;
    bottom: 17px;
    font-size: 9px;
    background: #ffffffc9;
    border: 1px solid #d7dfda;
    padding: 6px 9px;
    border-radius: 8px;
    color: #49606d;
    font-weight: 700;
}
.visual-art {
    position: relative;
    z-index: 2;
    width: 85%;
    height: 81%;
    transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.project-card:hover .visual-art {
    transform: translateY(-5px) rotate(-0.7deg) scale(1.015);
}
.demo-browser {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #f7f9fa;
    box-shadow: 0 20px 55px #253d4950;
    border: 1px solid #ffffffd6;
}
.demo-browser-bar {
    height: 29px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    border-bottom: 1px solid #dbe2e8;
    background: #fff;
}
.demo-browser-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d5dbe2;
}
.demo-browser-bar i:first-child {
    background: #f2a7a4;
}
.demo-browser-bar i:nth-child(2) {
    background: #f0d48b;
}
.demo-browser-bar i:nth-child(3) {
    background: #9bd4b9;
}
.demo-browser-bar b {
    font-size: 9px;
    color: #5e7480;
    margin: auto;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.visual-mobility .demo-browser {
    transform: perspective(800px) rotateY(-5deg) rotateX(5deg) translateY(12px);
}
.map-interface {
    height: calc(100% - 29px);
    display: grid;
    grid-template-columns: 37% 63%;
    color: #263949;
}
.map-sidebar {
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.mock-title {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.mock-small {
    font-size: 7px;
    color: #8899a6;
}
.map-route-field {
    background: #f1f5f7;
    border-radius: 6px;
    font-size: 8px;
    padding: 10px 8px;
    font-weight: 700;
}
.map-route-field span {
    color: #4e78b0;
    padding-right: 4px;
}
.map-mode {
    background: #d1f2cf;
    color: #225539;
    border-radius: 6px;
    padding: 7px;
    font-size: 8px;
    font-weight: 900;
    text-align: center;
    margin-top: auto;
}
.map-side-label {
    font-size: 8px;
    font-weight: 800;
    color: #6b8892;
}
.map-canvas {
    position: relative;
    overflow: hidden;
    background: #e2eee9;
    background-image:
        linear-gradient(
            28deg,
            transparent 42%,
            #c4d7c9 43% 45%,
            transparent 46%
        ),
        linear-gradient(130deg, transparent 45%, #fff 46% 49%, transparent 50%),
        linear-gradient(55deg, transparent 49%, #fff 50% 53%, transparent 54%),
        linear-gradient(
            150deg,
            transparent 40%,
            #d1dfda 41% 42%,
            transparent 43%
        );
    background-size:
        190px 150px,
        150px 110px,
        210px 210px,
        110px 150px;
}
.map-lake {
    position: absolute;
    left: -60px;
    top: -50px;
    width: 220px;
    height: 95px;
    background: #bbdbe3;
    transform: rotate(-25deg);
    border-radius: 50%;
}
.map-route {
    position: absolute;
    left: 25%;
    top: 20%;
    width: 40%;
    height: 52%;
    border: 5px solid transparent;
    border-top-color: #3a73dc;
    border-right-color: #3a73dc;
    border-bottom-color: #3a73dc;
    border-radius: 40% 30% 45% 40%;
    transform: rotate(17deg);
    filter: drop-shadow(0 2px 1px #fff);
}
.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #345fc3;
    border: 3px solid white;
    color: white;
    font-size: 9px;
    box-shadow: 0 2px 7px #20385c66;
}
.map-pin-start {
    left: 25%;
    top: 17%;
}
.map-pin-end {
    right: 23%;
    bottom: 18%;
    background: #162839;
}
.map-float {
    position: absolute;
    right: 8%;
    top: 22%;
    background: white;
    border-radius: 8px;
    padding: 8px;
    font-size: 8px;
    box-shadow: 0 6px 13px #273d4d36;
    font-weight: 800;
}
.map-float small {
    display: block;
    color: #82959c;
    font-weight: 600;
    margin-top: 2px;
}
.visual-code .demo-browser {
    transform: perspective(800px) rotateY(5deg) rotateX(4deg) translateY(12px);
}
.code-layout {
    height: calc(100% - 29px);
    background: #151c2d;
    display: grid;
    grid-template-columns: 34% 66%;
    color: #dfedfb;
}
.code-side {
    background: #1d2940;
    padding: 14px 10px;
}
.code-brand {
    font-size: 11px;
    font-weight: 900;
    color: #bcabfb;
    margin-bottom: 21px;
}
.code-side div:not(.code-brand) {
    color: #7e93af;
    font-size: 7px;
    margin: 12px 0;
    border-radius: 4px;
}
.code-side .active {
    background: #3c4f72;
    padding: 6px;
    color: #fff !important;
}
.code-main {
    padding: 15px 11px;
}
.code-head {
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 10px;
}
.code-line {
    height: 8px;
    background: #35445b;
    border-radius: 4px;
    margin-bottom: 9px;
}
.code-line.w1 {
    width: 85%;
}
.code-line.w2 {
    width: 60%;
    background: #577f85;
}
.code-line.w3 {
    width: 95%;
    background: #5a536b;
}
.code-line.w4 {
    width: 72%;
    background: #6776b6;
}
.code-success {
    margin-top: 18px;
    background: #24463d;
    border: 1px solid #32715b;
    border-radius: 7px;
    padding: 10px;
    font-size: 8px;
    color: #c7f8dd;
}
.code-success strong {
    display: block;
    font-size: 10px;
    margin-bottom: 3px;
}
.visual-iot .demo-browser {
    transform: perspective(800px) rotateY(-5deg) rotateX(6deg) translateY(11px);
}
.iot-dashboard {
    height: calc(100% - 29px);
    padding: 12px;
    background: #f4f7fa;
}
.iot-topline {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #263b51;
    font-weight: 900;
}
.iot-topline small {
    color: #36aa81;
    font-size: 8px;
}
.iot-chart {
    margin-top: 12px;
    height: 55%;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 11px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #e5ebed;
}
.iot-chart span {
    flex: 1;
    background: linear-gradient(#6ab7b3, #b9dfdb);
    border-radius: 3px 3px 0 0;
    height: var(--h, 55%);
}
.iot-readings {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.iot-readings div {
    background: #fff;
    border: 1px solid #e5ebed;
    border-radius: 7px;
    flex: 1;
    padding: 8px 5px;
    min-width: 0;
}
.iot-readings strong {
    font-size: 12px;
    display: block;
    color: #24394c;
}
.iot-readings small {
    font-size: 6px;
    color: #7c8b99;
}
.visual-workflow .demo-browser {
    background: #f8fbfd;
    transform: perspective(800px) rotateY(3deg) rotateX(5deg) translateY(12px);
}
.workflow-canvas {
    height: calc(100% - 29px);
    padding: 19px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}
.workflow-node {
    background: #fff;
    border: 1px solid #dfe9f4;
    box-shadow: 0 9px 19px #47677c21;
    min-height: 100px;
    flex: 1;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.workflow-node span {
    background: #e9efff;
    color: #617be7;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 13px;
}
.workflow-node strong {
    font-size: 8px;
    color: #294057;
}
.workflow-node small {
    font-size: 7px;
    line-height: 1.4;
    color: #95a1ad;
}
.workflow-arrow {
    font-size: 17px;
    color: #83a1ba;
}
.visual-grades .demo-browser {
    transform: perspective(800px) rotateY(-3deg) rotateX(5deg) translateY(8px);
}
.grades-layout {
    height: calc(100% - 29px);
    padding: 15px;
    background: #f5f9f7;
    color: #293c4a;
}
.grades-title {
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 13px;
}
.grades-row {
    height: 33px;
    margin-bottom: 6px;
    border-radius: 7px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 13px;
    gap: 8px;
    font-size: 9px;
}
.grades-row::before {
    content: "";
    background: #cbd7e4;
    width: 16px;
    height: 16px;
    border-radius: 5px;
}
.grades-row strong {
    margin-left: auto;
    color: #2f9876;
}
.grades-row:nth-of-type(2) strong {
    color: #e29d55;
}
.grades-footer {
    font-size: 9px;
    font-weight: 900;
    color: #2f947a;
    margin-top: 12px;
}
.project-content {
    padding: 27px 30px 29px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.07em;
    font-weight: 800;
    text-transform: uppercase;
}
.project-meta i {
    font-style: normal;
    color: var(--accent);
}
.project-heading {
    font-weight: 800;
    font-size: 29px;
    line-height: 1.12;
    letter-spacing: -0.06em;
    margin: 14px 0 10px;
}
.project-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.85;
    margin: 0 0 17px;
    max-width: 495px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-bottom: 22px;
}
.project-tags span {
    font-size: 10px;
    border-radius: 7px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--muted);
}
.project-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 19px;
}
.project-more {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.project-more span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    border-radius: 50%;
    font-size: 15px;
    transition: transform 0.2s;
}
.project-more:hover span {
    transform: rotate(45deg);
}
.project-external {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    padding: 8px 0;
}
.project-external:hover {
    color: var(--accent);
}
.projects-outro {
    margin-top: 25px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    padding: 25px 29px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.outro-asterisk {
    font-size: 29px;
    color: var(--accent);
}
.projects-outro p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 680px;
    flex: 1;
    margin: 0;
}
.projects-outro strong {
    color: var(--text);
}
.projects-outro a {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
}
.projects-outro a span {
    margin-left: 7px;
}
/* Expertise */
.expertise-section {
    padding-block: 125px 0;
}
.expertise-layout {
    display: grid;
    grid-template-columns: 39% 61%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 25px;
    min-height: 384px;
    overflow: hidden;
}
.expertise-menu {
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 22px;
}
.expertise-tab {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 24px 18px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.04em;
    transition:
        background 0.2s,
        color 0.2s,
        border-radius 0.2s;
}
.expertise-tab:last-child {
    border-bottom: none;
}
.expertise-tab span {
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.expertise-tab i {
    font-style: normal;
    margin-left: auto;
    font-size: 18px;
    opacity: 0;
}
.expertise-tab:hover {
    color: var(--text);
}
.expertise-tab[aria-selected="true"] {
    color: var(--text);
    background: var(--surface-soft);
    border-radius: 12px;
}
.expertise-tab[aria-selected="true"] i {
    opacity: 1;
    color: var(--accent);
}
.expertise-content {
    padding: 46px 52px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.expertise-kicker {
    letter-spacing: 0.17em;
    font-size: 10px;
    color: var(--accent);
    font-weight: 900;
}
.expertise-content h3 {
    font-size: 33px;
    letter-spacing: -0.06em;
    line-height: 1.2;
    margin: 17px 0;
}
.expertise-content p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 560px;
    margin: 0 0 25px;
}
.expertise-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.expertise-chip-list span {
    border-radius: 9px;
    background: var(--surface-soft);
    padding: 10px 13px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text);
}
.technology-marquee {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    padding: 34px 0 27px;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 9%,
        #000 91%,
        transparent
    );
}
.marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 32px;
    animation: marquee 45s linear infinite;
}
.marquee-track span {
    font-weight: 800;
    white-space: nowrap;
    color: var(--muted);
    font-size: 18px;
    letter-spacing: -0.035em;
}
.marquee-track i {
    color: var(--accent);
    font-size: 14px;
    font-style: normal;
}
.technology-marquee:hover .marquee-track {
    animation-play-state: paused;
}
@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}
/* Method */
.philosophy-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}
.philosophy-main {
    grid-column: 1/-1;
    border-radius: 26px;
    min-height: 360px;
    background: #15263b;
    position: relative;
    padding: 54px 61px;
    overflow: hidden;
    color: white;
}
.philosophy-main::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid #c2ddf521;
    border-radius: 50%;
    right: -50px;
    top: -45px;
    box-shadow:
        0 0 0 65px #c2ddf508,
        0 0 0 145px #c2ddf508;
}
.eyebrow-light {
    color: #b4ffa2;
}
.philosophy-main h2 {
    font-size: clamp(35px, 4.8vw, 61px);
    max-width: 920px;
    position: relative;
    z-index: 1;
}
.philosophy-main h2 em {
    color: #ceffb0;
}
.philosophy-main p:not(.eyebrow) {
    font-size: 14px;
    color: #b8c8dd;
    max-width: 560px;
    line-height: 1.8;
    margin-top: 23px;
}
.philosophy-mark {
    position: absolute;
    right: 75px;
    bottom: -110px;
    font-family: Georgia, serif;
    font-size: 480px;
    line-height: 1;
    color: #c4e8ff0e;
    pointer-events: none;
}
.method-card {
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--surface);
    padding: 31px 31px 30px;
    min-height: 265px;
    display: flex;
    flex-direction: column;
}
.method-number {
    font-weight: 900;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.04em;
}
.method-icon {
    font-size: 32px;
    margin: 18px 0 9px;
    color: var(--accent);
    line-height: 1;
}
.method-card h3 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    margin: 5px 0 10px;
    letter-spacing: -0.04em;
}
.method-card p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}
/* Career */
.journey-layout {
    display: grid;
    grid-template-columns: 41% 59%;
    gap: 22px;
    min-height: 365px;
}
.timeline-list {
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.timeline-button {
    background: transparent;
    border: 0;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 23px 25px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s;
}
.timeline-button::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    border-radius: 3px;
}
.timeline-button[aria-selected="true"] {
    background: var(--surface);
    border-radius: 0 13px 13px 0;
}
.timeline-button[aria-selected="true"]::before {
    background: var(--accent);
}
.timeline-button span {
    font-size: 10px;
    color: var(--accent);
    font-weight: 800;
}
.timeline-button strong {
    font-size: 17px;
    letter-spacing: -0.045em;
    color: var(--text);
}
.timeline-button small {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.timeline-content {
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 43px 48px;
    min-height: 366px;
}
.timeline-kicker {
    font-size: 10px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.17em;
}
.timeline-content h3 {
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.055em;
    margin: 16px 0 10px;
    line-height: 1.2;
}
.timeline-content p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}
.timeline-content ul {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
    display: grid;
    gap: 13px;
}
.timeline-content li {
    padding-left: 23px;
    position: relative;
    font-size: 12px;
    line-height: 1.7;
}
.timeline-content li::before {
    content: "↗";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
}
.education-block {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 30px;
    margin-top: 100px;
    padding-top: 46px;
    border-top: 1px solid var(--line);
}
.education-heading h3 {
    font-size: 34px;
    line-height: 1.22;
    letter-spacing: -0.06em;
    margin: 14px 0;
}
.education-list {
    display: grid;
    gap: 9px;
    padding-right: 30px;
}
.education-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 19px 23px;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 24px;
    align-items: start;
}
.education-item time {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    margin-top: 4px;
    white-space: nowrap;
}
.education-item h4 {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.028em;
    margin: 0 0 4px;
}
.education-item p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
    line-height: 1.6;
}
.education-item .education-distinction {
    font-size: 10px;
    color: var(--accent);
    margin-top: 9px;
    font-weight: 800;
}
/* Beyond */
.beyond-section {
    margin-top: 119px;
    background: #172b2e;
    color: white;
    padding: 93px 0;
}
.beyond-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 88px;
}
.beyond-copy h2 {
    max-width: 620px;
}
.beyond-copy h2 em {
    color: #ceffb0;
}
.beyond-copy > p:not(.eyebrow) {
    color: #cadbd5;
    font-size: 14px;
    line-height: 1.95;
    margin: 27px 0;
    max-width: 520px;
}
.beyond-points {
    border-top: 1px solid #ffffff30;
    border-bottom: 1px solid #ffffff30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
    padding: 22px 0;
    margin: 31px 0;
}
.beyond-points strong {
    display: block;
    font-size: 19px;
    letter-spacing: -0.055em;
    color: #d4ffaa;
}
.beyond-points span {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.7;
    color: #b5cac4;
}
.text-link {
    font-weight: 900;
    font-size: 11px;
}
.text-link span {
    margin-left: 12px;
    font-size: 18px;
}
.text-link-light {
    color: #ddfbbb;
}
.court-illustration {
    height: 470px;
    position: relative;
    border-radius: 26px;
    background: radial-gradient(
        circle at 36% 30%,
        #3f7167,
        #1e403d 65%,
        #16332f
    );
    overflow: hidden;
    box-shadow: 0 32px 70px #061b1a4d;
}
.court-illustration::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(#9bd1ba66 1px, transparent 1px);
    background-size: 20px 20px;
}
.court-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    left: 0;
    top: -140px;
    background: #a9ffd316;
    filter: blur(60px);
    border-radius: 50%;
}
.court-layout {
    position: absolute;
    left: 17%;
    top: 13%;
    width: 66%;
    height: 72%;
    transform: rotate(-24deg) skewX(-6deg);
    border: 3px solid #c1f7d4aa;
    box-shadow: 0 18px 45px #091b193d;
}
.court-layout::before,
.court-layout::after {
    content: "";
    position: absolute;
    border: 2px solid #c1f7d488;
    left: 13%;
    right: 13%;
    top: 0;
    bottom: 0;
}
.court-layout::after {
    left: 0;
    right: 0;
    top: 27%;
    bottom: 27%;
    border-left: none;
    border-right: none;
}
.court-middle {
    height: 2px;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    background: #c1f7d4aa;
    z-index: 1;
}
.court-service {
    position: absolute;
    left: 50%;
    width: 2px;
    background: #c1f7d499;
    height: 23%;
    transform: translateX(-50%);
}
.court-service-1 {
    top: 27%;
}
.court-service-2 {
    bottom: 27%;
}
.court-net {
    width: calc(100% + 36px);
    height: 8px;
    position: absolute;
    left: -18px;
    top: calc(50% - 4px);
    background: #d9ffe277;
    transform: rotate(-1deg);
    z-index: 2;
    box-shadow: 0 2px 10px #0f3229;
}
.court-ball {
    position: absolute;
    right: 18%;
    top: 29%;
    font-size: 30px;
    color: #d4ff94;
    filter: drop-shadow(0 0 18px #dcffa1);
    animation: shuttle 5s ease-in-out infinite;
}
@keyframes shuttle {
    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }
    50% {
        transform: translate(-23px, 28px) rotate(60deg);
    }
}
.court-note {
    position: absolute;
    bottom: 22px;
    left: 25px;
    right: 25px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}
.court-note span {
    font-size: 9px;
    letter-spacing: 0.1em;
    color: #b9d9cf;
    font-weight: 800;
}
.court-note strong {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.06em;
}
/* Contact */
.contact-section {
    padding-block: 118px 40px;
}
.contact-card {
    position: relative;
    isolation: isolate;
    background: #d5ffc0;
    color: #1a342a;
    border-radius: 30px;
    min-height: 450px;
    overflow: hidden;
    padding: 60px 69px;
}
.contact-card::before {
    content: "";
    width: 520px;
    height: 520px;
    position: absolute;
    right: -75px;
    top: -190px;
    border-radius: 50%;
    border: 1px solid #51875c35;
    box-shadow:
        0 0 0 65px #578c6030,
        0 0 0 150px #578c6017;
    z-index: -1;
}
.contact-stars {
    position: absolute;
    right: 95px;
    bottom: 35px;
    font-size: 140px;
    color: #306c4533;
    line-height: 1;
}
.contact-card .eyebrow {
    color: #3a7b55;
}
.contact-card h2 {
    max-width: 770px;
    font-size: clamp(38px, 4.5vw, 60px);
}
.contact-card h2 em {
    color: #387848;
}
.contact-card > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.9;
    max-width: 570px;
    margin: 20px 0 25px;
    color: #416a53;
}
.contact-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.button-dark {
    background: #1b3328;
    color: #efffe9;
}
.button-dark .button-arrow {
    background: #daffab;
    color: #203b2b;
}
.button-dark:hover {
    background: #31583f;
}
.copy-email {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    color: #2b5c3f;
    font-size: 12px;
    font-weight: 900;
    padding: 12px 0;
}
.copy-email:hover {
    text-decoration: underline;
}
.contact-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 47px;
    padding-top: 21px;
    border-top: 1px solid #2c6c4050;
    font-weight: 800;
    font-size: 11px;
}
.contact-bottom span {
    color: #548166;
    font-weight: 700;
}
.contact-bottom a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* Footer */
.footer {
    padding: 18px 0 58px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}
.footer-main {
    display: flex;
    align-items: center;
    gap: 22px;
}
.footer-logo {
    font-size: 41px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.13em;
}
.footer-logo span {
    color: var(--accent);
}
.footer-main p {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
}
.footer-main p span {
    color: var(--muted);
    font-weight: 500;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.footer-links a,
.footer-print {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    border: 0;
    background: none;
    padding: 0;
}
.footer-links a:hover,
.footer-print:hover {
    color: var(--accent);
}
.social-links {
    display: flex;
    gap: 8px;
}
.social-links a {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px;
    font-size: 10px;
    color: var(--text);
}
.social-links a:hover {
    background: var(--surface);
}
.back-top {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
    margin: 0;
    background: #23364a;
    color: white;
    border: 1px solid #ffffff45;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    z-index: 300;
    font-size: 22px;
    box-shadow: 0 15px 45px #19273e40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition:
        opacity 0.25s,
        transform 0.25s;
}
.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.toast {
    position: fixed;
    bottom: 82px;
    left: 50%;
    z-index: 200;
    transform: translate(-50%, 20px);
    background: #1b3028;
    color: #fff;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 13px 36px #0003;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
/* Project detail dialog */
.project-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: 0;
    padding: 0;
    width: min(970px, calc(100vw - 38px));
    max-width: none;
    max-height: min(90dvh, 1000px);
    background: var(--surface);
    color: var(--text);
    border-radius: 26px;
    box-shadow: 0 32px 100px #020c1c7d;
    overflow: auto;
    overscroll-behavior: contain;
}
.project-dialog::backdrop {
    background: #071222b8;
    backdrop-filter: blur(10px);
}
.dialog-inner {
    padding: 0 44px 44px;
}
.dialog-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 79px;
    margin-bottom: 37px;
}
.dialog-brand {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    display: flex;
    align-items: center;
    gap: 9px;
}
.dialog-brand-dot {
    width: 9px;
    height: 9px;
    background: var(--accent-2);
    border: 2px solid #2e734a;
    border-radius: 50%;
}
.dialog-index {
    color: var(--muted);
    margin-left: 6px;
}
.dialog-close {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 11px 9px 16px;
    font-size: 11px;
    font-weight: 900;
}
.dialog-close span {
    background: var(--text);
    color: var(--bg);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 20px;
    display: grid;
    place-items: center;
    line-height: 1;
}
.dialog-hero {
    display: grid;
    grid-template-columns: 1fr 275px;
    gap: 29px;
    align-items: end;
    margin-bottom: 30px;
}
.dialog-pretitle {
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.17em;
    color: var(--accent);
}
.dialog-hero h2 {
    font-size: clamp(44px, 5.4vw, 66px);
    margin: 9px 0 13px;
}
.dialog-hero p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}
.dialog-meta {
    border-left: 1px solid var(--line);
    padding-left: 27px;
}
.dialog-meta div {
    margin-bottom: 18px;
}
.dialog-meta small {
    display: block;
    font-size: 9px;
    letter-spacing: 0.14em;
    font-weight: 900;
    color: var(--muted);
    margin-bottom: 6px;
}
.dialog-meta strong {
    font-size: 12px;
}
.dialog-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
    overflow: auto;
}
.dialog-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 15px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.dialog-tab[aria-selected="true"] {
    color: var(--text);
    border-bottom-color: var(--accent);
}
.dialog-panel {
    min-height: 230px;
}
.dialog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 27px;
}
.dialog-section h3 {
    font-size: 18px;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
}
.dialog-section p {
    font-size: 12px;
    line-height: 1.95;
    color: var(--muted);
    margin: 0;
}
.dialog-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dialog-section li {
    padding: 0 0 12px 20px;
    position: relative;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
.dialog-section li::before {
    content: "↗";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
}
.dialog-wide {
    grid-column: 1/-1;
}
.dialog-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
}
.dialog-stack span {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 800;
}
.dialog-approach {
    grid-template-columns: minmax(0, 1fr);
}
.dialog-approach > .dialog-section:first-child ul {
    columns: 2;
    column-gap: 28px;
}
.dialog-approach > .dialog-section:first-child li {
    break-inside: avoid;
}
.tech-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.tech-filter,
.tech-group {
    --tech-hue: 210;
    --tech-saturation: 20%;
    --tech-ink: hsl(var(--tech-hue) var(--tech-saturation) 30%);
    --tech-fill: hsl(var(--tech-hue) var(--tech-saturation) 96%);
    --tech-border: hsl(var(--tech-hue) var(--tech-saturation) 80%);
}
.tech-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    max-width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--tech-border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--tech-ink);
    font-size: 10.5px;
    font-weight: 650;
    text-align: left;
    line-height: 1.5;
}
.tech-filter span {
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.tech-filter::after {
    content: "";
    flex: 0 0 10px;
    font-size: 11px;
}
.tech-filter[aria-pressed="true"] {
    border-color: var(--tech-ink);
    background: var(--tech-fill);
    box-shadow: inset 0 0 0 1px var(--tech-ink);
}
.tech-filter[aria-pressed="true"]::after {
    content: "✓";
}
.tech-filter:hover {
    background: var(--tech-fill);
    border-color: var(--tech-ink);
}
.dialog-section .tech-summary {
    margin: 12px 0;
    font-size: 11px;
}
.tech-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}
.tech-group {
    min-width: 0;
    border: 1px solid var(--tech-border);
    border-left: 3px solid var(--tech-ink);
    border-radius: 11px;
    padding: 13px;
    background: var(--tech-fill);
}
.tech-group[hidden] {
    display: none;
}
.tech-group h4 {
    margin: 0;
    color: var(--tech-ink);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 750;
    letter-spacing: -0.01em;
}
.tech-group .dialog-stack {
    gap: 6px;
    margin-top: 9px;
}
.tech-group .tech-tag {
    max-width: 100%;
    border-color: var(--tech-border);
    background: var(--surface);
    color: var(--tech-ink);
    padding: 7px 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
[data-tech-category="languages"] {
    --tech-hue: 214;
    --tech-saturation: 62%;
}
[data-tech-category="frontend"] {
    --tech-hue: 184;
    --tech-saturation: 64%;
}
[data-tech-category="backend"] {
    --tech-hue: 149;
    --tech-saturation: 52%;
}
[data-tech-category="data"] {
    --tech-hue: 37;
    --tech-saturation: 68%;
}
[data-tech-category="security"] {
    --tech-hue: 10;
    --tech-saturation: 64%;
}
[data-tech-category="devops"] {
    --tech-hue: 239;
    --tech-saturation: 52%;
}
[data-tech-category="quality"] {
    --tech-hue: 334;
    --tech-saturation: 56%;
}
:root[data-theme="dark"] .tech-filter,
:root[data-theme="dark"] .tech-group {
    --tech-ink: hsl(var(--tech-hue) var(--tech-saturation) 77%);
    --tech-fill: hsl(var(--tech-hue) var(--tech-saturation) 16%);
    --tech-border: hsl(var(--tech-hue) var(--tech-saturation) 34%);
}
@media (max-width: 760px) {
    .tech-groups {
        grid-template-columns: minmax(0, 1fr);
    }
    .dialog-approach > .dialog-section:first-child ul {
        columns: 1;
    }
}
.dialog-outcome {
    border-radius: 15px;
    background: var(--surface-soft);
    padding: 22px 25px;
    display: flex;
    align-items: center;
    gap: 19px;
    margin-top: 26px;
}
.dialog-outcome b {
    font-size: 25px;
    color: var(--accent);
}
.dialog-outcome p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.8;
    font-weight: 700;
}
.dialog-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.project-gallery {
    min-width: 0;
}
.project-dialog[data-active-tab="gallery"] .dialog-hero {
    display: block;
    margin-bottom: 10px;
}
.project-dialog[data-active-tab="gallery"] .dialog-hero h2 {
    font-size: 30px;
    margin: 0;
}
.project-dialog[data-active-tab="gallery"]
    .dialog-hero
    :is(p, .dialog-meta, .dialog-pretitle) {
    display: none;
}
.gallery-main {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}
.gallery-viewport {
    height: clamp(140px, min(38dvh, 64vw), 370px);
    padding: 12px;
    touch-action: pan-y pinch-zoom;
    background: var(--surface-soft);
}
#galleryZoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: zoom-in;
}
#galleryImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}
.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 10px 12px;
    background: var(--surface);
}
.gallery-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
#galleryCounter {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}
.gallery-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gallery-nav,
.gallery-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--text);
}
.gallery-nav {
    width: 44px;
    font-size: 27px;
    line-height: 1;
}
.gallery-expand {
    padding: 0 12px;
    font-size: 11px;
    font-weight: 650;
}
.gallery-nav:hover,
.gallery-expand:hover {
    background: var(--line);
}
.gallery-thumbs {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 12px 3px 7px;
}
.gallery-thumb {
    position: relative;
    flex: 0 0 60px;
    height: 55px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 3px;
}
.gallery-thumb span {
    position: absolute;
    right: 3px;
    bottom: 3px;
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 3px;
    background: #142a48;
    color: #fff;
    font-size: 9px;
    line-height: 1.4;
    font-weight: 700;
}
.gallery-thumb[aria-pressed="true"] {
    border-color: var(--accent);
    box-shadow: 0 2px 0 var(--accent);
}
.gallery-thumb:hover {
    border-color: var(--muted);
}
.gallery-hint {
    margin: 7px 0 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
}
@media (max-width: 760px) {
    .dialog-tabs {
        gap: 2px;
        overflow: visible;
    }
    .dialog-tab {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
        padding: 12px 5px;
        font-size: 11px;
        line-height: 1.4;
    }
    .gallery-thumb {
        flex-basis: 68px;
    }
}
.screenshot-placeholder {
    min-height: 215px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 11px;
    padding: 23px;
    background: var(--surface-soft);
    border: 1px dashed var(--muted);
    border-radius: 15px;
}
.screenshot-placeholder .screen-icon {
    font-size: 29px;
    color: var(--accent);
}
.screenshot-placeholder strong {
    font-size: 12px;
}
.screenshot-placeholder span {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
}
.screenshot-real {
    margin: 0;
    border: 1px solid var(--line);
    overflow: hidden;
    border-radius: 14px;
}
.screenshot-real img {
    width: 100%;
    height: 235px;
    object-fit: cover;
}
.screenshot-real figcaption {
    font-size: 11px;
    padding: 10px;
    color: var(--muted);
}
.dialog-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dialog-footer small {
    font-size: 10px;
    color: var(--muted);
}
.dialog-external {
    background: var(--text);
    color: var(--bg);
    font-size: 11px;
    font-weight: 900;
    padding: 13px 17px;
    border-radius: 12px;
}
.dialog-external:hover {
    opacity: 0.85;
}
/* Responsive */
@media (max-width: 1180px) {
    .container {
        width: calc(100% - 52px);
    }
    .hero {
        grid-template-columns: 55% 45%;
        min-height: 610px;
    }
    .hero-content {
        padding: 76px 0 70px 55px;
    }
    .hero h1 {
        font-size: clamp(44px, 5vw, 61px);
    }
    .hero-portrait {
        width: 122%;
        max-height: 590px;
    }
    .floating-label-top {
        left: -32px;
        top: 106px;
    }
    .hero-scroll {
        left: 55px;
    }
    .project-card {
        min-height: 575px;
    }
    .beyond-grid {
        gap: 50px;
    }
}
@media (max-width: 960px) {
    .nav-links {
        gap: 18px;
    }
    .brand {
        min-width: 155px;
    }
    .hero {
        grid-template-columns: 60% 40%;
    }
    .hero-content {
        padding-left: 40px;
    }
    .hero h1 {
        font-size: clamp(41px, 5.6vw, 55px);
    }
    .hero-summary {
        font-size: 13px;
    }
    .hero-scroll {
        left: 40px;
    }
    .hero-portrait {
        width: 145%;
        max-height: 560px;
    }
    .floating-label-top {
        top: 80px;
        left: -32px;
    }
    .floating-label-bottom {
        right: 7px;
        bottom: 80px;
    }
    .floating-label {
        padding: 9px 11px;
    }
    .floating-label strong {
        font-size: 10px;
    }
    .quick-facts {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-card:nth-child(n) {
        grid-column: span 6;
        min-height: 560px;
        display: flex;
    }
    .project-card:last-child:nth-child(odd) .project-visual {
        grid-row: auto;
        grid-column: auto;
        height: 315px;
    }
    .project-card:last-child:nth-child(odd) .project-content {
        grid-row: auto;
        grid-column: auto;
        justify-content: initial;
    }
    .project-visual {
        height: 285px;
    }
    .project-content {
        padding: 22px;
    }
    .project-heading {
        font-size: 25px;
    }
    .beyond-grid {
        gap: 34px;
    }
    .court-illustration {
        height: 410px;
    }
    .education-block {
        grid-template-columns: 1fr;
    }
    .education-heading h3 {
        margin-top: 0;
    }
    .education-list {
        padding-right: 0;
    }
    .philosophy-main {
        padding: 44px;
    }
    .contact-card {
        padding: 54px;
    }
    .footer-links {
        gap: 14px;
    }
}
@media (max-width: 760px) {
    html {
        scroll-padding-top: 80px;
    }
    .container {
        width: calc(100% - 32px);
    }
    .site-header {
        height: 81px;
    }
    .nav-shell {
        height: 60px;
    }
    .brand {
        min-width: unset;
    }
    .brand-symbol {
        width: 40px;
        height: 40px;
        font-size: 27px;
    }
    .brand-wordmark {
        font-size: 13px;
    }
    .nav-links {
        position: absolute;
        top: 69px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 15px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 17px;
        box-shadow: var(--shadow);
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-link {
        padding: 13px 15px;
        font-size: 13px;
    }
    .nav-contact {
        display: none;
    }
    .menu-toggle {
        display: grid;
    }
    .hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        border-radius: 24px;
    }
    .hero-content {
        padding: 52px 27px 13px;
    }
    .hero-eyebrow {
        font-size: 9px;
        margin-bottom: 22px;
    }
    .hero h1 {
        font-size: clamp(41px, 10vw, 62px);
        max-width: 550px;
        line-height: 1.13;
    }
    .hero-summary {
        font-size: 13px;
        line-height: 1.8;
        max-width: 500px;
    }
    .hero-cta {
        gap: 8px;
    }
    .button {
        padding: 13px 13px 13px 17px;
        font-size: 11px;
        min-height: 50px;
        gap: 10px;
    }
    .hero-portrait-wrap {
        height: 390px;
        min-height: 390px;
        width: 100%;
        overflow: hidden;
    }
    .hero-portrait {
        width: min(95%, 450px);
        max-height: 460px;
        bottom: -53px;
        left: 50%;
    }
    .portrait-halo {
        width: 380px;
        height: 380px;
        left: 50%;
        right: auto;
        bottom: -10px;
        transform: translateX(-50%);
    }
    .portrait-frame-ring {
        width: 330px;
        height: 330px;
        bottom: 10px;
    }
    .floating-label-top {
        top: 34px;
        left: 8%;
        transform: rotate(-5deg);
    }
    .floating-label-bottom {
        bottom: 50px;
        right: 8%;
    }
    .hero-bottom {
        margin-top: 26px;
        padding-top: 0;
        display: none;
    }
    .hero-scroll {
        display: none;
    }
    .quick-facts {
        padding-block: 19px 0;
        gap: 10px;
    }
    .fact {
        padding: 15px 13px;
        min-height: 76px;
        gap: 11px;
    }
    .fact-icon {
        height: 33px;
        width: 33px;
        font-size: 18px;
    }
    .fact strong {
        font-size: 12px;
    }
    .fact span:not(.fact-icon) {
        font-size: 9px;
    }
    .section {
        padding-top: 86px;
    }
    .section-intro {
        display: block;
    }
    .section-intro h2 {
        font-size: clamp(36px, 8vw, 50px);
    }
    .intro-aside {
        max-width: 540px;
        margin-top: 19px;
    }
    .intro-aside p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .project-filters {
        gap: 8px;
        margin: 24px 0 18px;
    }
    .filter-chip {
        padding: 11px 14px;
        font-size: 10px;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .project-card:nth-child(n) {
        grid-column: 1;
        min-height: 0;
    }
    .project-visual,
    .project-card:last-child:nth-child(odd) .project-visual {
        height: 280px;
    }
    .project-content {
        padding: 24px;
    }
    .project-heading {
        font-size: 27px;
    }
    .project-tags {
        margin-top: 14px;
    }
    .projects-outro {
        align-items: start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 22px;
    }
    .projects-outro p {
        flex-basis: calc(100% - 48px);
    }
    .projects-outro a {
        margin-left: 44px;
    }
    .expertise-section {
        padding-top: 89px;
    }
    .expertise-layout {
        grid-template-columns: 1fr;
    }
    .expertise-menu {
        flex-direction: row;
        overflow: auto;
        padding: 10px;
        gap: 7px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .expertise-tab {
        flex: 0 0 auto;
        border: 0;
        border-radius: 11px;
        padding: 13px 16px;
        font-size: 11px;
        gap: 8px;
        white-space: nowrap;
    }
    .expertise-tab span,
    .expertise-tab i {
        display: none;
    }
    .expertise-content {
        padding: 27px;
        min-height: 315px;
    }
    .expertise-content h3 {
        font-size: 27px;
    }
    .expertise-content p {
        font-size: 12px;
    }
    .technology-marquee {
        padding-block: 25px;
    }
    .marquee-track span {
        font-size: 15px;
    }
    .philosophy-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .philosophy-main {
        padding: 34px 27px;
        min-height: 330px;
    }
    .philosophy-main h2 {
        font-size: clamp(32px, 7vw, 45px);
    }
    .philosophy-main p:not(.eyebrow) {
        font-size: 12px;
    }
    .method-card {
        min-height: 0;
        padding: 25px;
    }
    .method-icon {
        margin: 9px 0 3px;
    }
    .journey-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .timeline-list {
        flex-direction: row;
        border-left: none;
        overflow: auto;
        gap: 8px;
    }
    .timeline-button {
        min-width: 200px;
        max-width: 235px;
        border: 1px solid var(--line);
        border-radius: 13px;
        padding: 14px;
        background: var(--surface);
    }
    .timeline-button[aria-selected="true"] {
        border-radius: 13px;
        border-color: var(--accent);
    }
    .timeline-button::before {
        display: none;
    }
    .timeline-button strong {
        font-size: 14px;
    }
    .timeline-content {
        padding: 28px;
        min-height: 330px;
    }
    .timeline-content h3 {
        font-size: 25px;
    }
    .education-block {
        margin-top: 60px;
        padding-top: 35px;
        gap: 13px;
    }
    .education-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .beyond-section {
        margin-top: 89px;
        padding: 72px 0;
    }
    .beyond-grid {
        grid-template-columns: 1fr;
    }
    .beyond-copy > p:not(.eyebrow) {
        font-size: 12px;
    }
    .court-illustration {
        height: 380px;
    }
    .contact-section {
        padding-block: 88px 28px;
    }
    .contact-card {
        padding: 42px 25px;
        min-height: 0;
    }
    .contact-card h2 {
        font-size: clamp(34px, 8vw, 48px);
    }
    .contact-card > p:not(.eyebrow) {
        font-size: 12px;
    }
    .contact-bottom {
        margin-top: 36px;
    }
    .footer {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 40px;
    }
    .footer-links {
        gap: 14px 20px;
    }
    .project-dialog {
        width: calc(100vw - 18px);
        max-height: 95dvh;
        border-radius: 19px;
    }
    .dialog-inner {
        padding: 0 20px 24px;
    }
    .dialog-head {
        height: 65px;
        margin-bottom: 22px;
    }
    .dialog-hero {
        grid-template-columns: 1fr;
    }
    .dialog-hero h2 {
        font-size: 43px;
    }
    .dialog-meta {
        border-left: 0;
        padding-left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        border-top: 1px solid var(--line);
        padding-top: 15px;
    }
    .dialog-meta div {
        margin: 0;
    }
    .dialog-grid,
    .dialog-gallery {
        grid-template-columns: 1fr;
    }
    .dialog-footer {
        flex-wrap: wrap;
    }
}
@media (max-width: 420px) {
    .brand-wordmark {
        display: none;
    }
    .hero-content {
        padding: 42px 21px 0;
    }
    .hero h1 {
        font-size: 39px;
    }
    .hero-eyebrow {
        font-size: 8px;
    }
    .hero-cta {
        align-items: stretch;
    }
    .hero-cta .button {
        width: 100%;
    }
    .hero-portrait-wrap {
        height: 325px;
        min-height: 325px;
    }
    .hero-portrait {
        max-height: 400px;
        bottom: -51px;
    }
    .floating-label-top {
        top: 25px;
        left: 5px;
    }
    .floating-label-bottom {
        right: 5px;
        bottom: 25px;
    }
    .fact strong {
        font-size: 11px;
    }
    .fact span:not(.fact-icon) {
        font-size: 8.5px;
    }
    .project-visual {
        height: 245px;
    }
    .project-card:last-child:nth-child(odd) .project-visual {
        height: 245px;
    }
    .project-visual .visual-art {
        width: 89%;
    }
    .beyond-points {
        gap: 9px;
    }
    .beyond-points strong {
        font-size: 16px;
    }
    .beyond-points span {
        font-size: 9px;
    }
    .court-illustration {
        height: 300px;
    }
    .court-note strong {
        font-size: 14px;
    }
    .footer-links {
        gap: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
@media print {
    * {
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .site-header,
    .project-filters,
    .project-more,
    .project-external,
    .projects-outro,
    .expertise-menu,
    .technology-marquee,
    .contact-actions,
    .footer-links,
    .back-top,
    .project-dialog,
    .hero-scroll,
    .floating-label,
    .reading-progress {
        display: none !important;
    }
    .container {
        max-width: none;
        width: 100%;
    }
    .hero {
        min-height: 0;
        padding: 0;
        display: block;
        background: #fff;
        color: #172338;
        box-shadow: none;
    }
    .hero-content {
        padding: 0;
    }
    .hero h1 {
        font-size: 36px;
        color: #172338;
    }
    .hero h1 em {
        color: #526dba;
    }
    .hero-summary,
    .hero-eyebrow {
        color: #172338;
    }
    .hero-portrait-wrap {
        display: none;
    }
    .quick-facts {
        grid-template-columns: repeat(4, 1fr);
    }
    .section {
        padding-block: 30px;
    }
    .section-intro {
        margin-bottom: 12px;
    }
    .section h2 {
        font-size: 27px;
    }
    .project-grid {
        display: block;
    }
    .project-card,
    .project-card:nth-child(n) {
        break-inside: avoid;
        display: block;
        min-height: 0;
        margin-bottom: 12px;
    }
    .project-visual {
        display: none;
    }
    .project-content {
        padding: 10px;
    }
    .project-actions {
        display: none;
    }
    .expertise-layout {
        display: block;
    }
    .expertise-content {
        padding: 12px;
        min-height: 0;
    }
    .philosophy-section,
    .beyond-section,
    .contact-section {
        display: none;
    }
    .timeline-list {
        display: none;
    }
    .timeline-content {
        min-height: 0;
    }
    .education-block {
        display: block;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
    .footer {
        padding: 20px 0;
    }
}

/* Associative commitments — factual, progressively disclosed. */
.association-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.65fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 36px;
}
.association-intro h2 {
    font-size: clamp(38px, 5vw, 67px);
    font-weight: 800;
    letter-spacing: -0.066em;
    line-height: 1.16;
    margin: 16px 0 24px;
    max-width: 890px;
}
.association-intro h2 em {
    font-family: var(--serif);
    font-weight: 500;
    color: #cfffaa;
}
.association-intro p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.9;
    color: #cadbd5;
    max-width: 720px;
    margin: 0;
}
.association-highlights {
    border-left: 1px solid #ffffff3d;
    padding: 0 0 0 27px;
    display: grid;
    gap: 16px;
}
.association-highlights > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #ffffff24;
    padding-bottom: 13px;
}
.association-highlights strong {
    font-size: 13px;
    letter-spacing: -0.018em;
    color: #d3ffaa;
}
.association-highlights span {
    font-size: 11px;
    color: #d0e1dc;
}
.association-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    align-items: start;
}
.association-card {
    border-radius: 20px;
    background: #f5f7f2;
    color: #152635;
    border: 1px solid #cfe5d9;
    overflow: hidden;
    transition:
        box-shadow 0.25s,
        border-color 0.25s;
}
.association-card[open] {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    border-color: #b4e5c6;
}
.association-summary {
    list-style: none;
    cursor: pointer;
    padding: 30px 32px;
    display: block;
    outline-offset: -5px;
}
.association-summary::-webkit-details-marker {
    display: none;
}
.association-number {
    display: block;
    color: #49736c;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.13em;
    margin-bottom: 21px;
}
.association-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}
.association-summary-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.association-summary-text strong {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 900;
    letter-spacing: -0.065em;
}
.association-fullname {
    font-size: 12px;
    color: #415c58;
    font-weight: 750;
    line-height: 1.5;
}
.association-period {
    font-size: 11px;
    color: #647670;
}
.association-expand-icon {
    border: 1px solid #d3ded9;
    color: #1c4034;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 25px;
    line-height: 1;
    flex-shrink: 0;
    transition:
        transform 0.25s,
        background 0.25s;
}
.association-card[open] .association-expand-icon {
    transform: rotate(45deg);
    background: #dbf3e0;
}
.association-teaser {
    display: block;
    font-size: 12px;
    line-height: 1.8;
    color: #3b5950;
    margin: 22px 0;
}
.association-open-label {
    font-size: 11px;
    font-weight: 900;
    color: #194a39;
    display: block;
}
.association-open-label .label-close {
    display: none;
}
.association-card[open] .association-open-label .label-open {
    display: none;
}
.association-card[open] .association-open-label .label-close {
    display: inline;
}
.association-details {
    border-top: 1px solid #dbe7dc;
    padding: 13px 32px 31px;
    display: grid;
    gap: 23px;
    background: #ffffff;
}
.association-group h3 {
    font-size: 13px;
    margin: 20px 0 14px;
    color: #162c29;
    letter-spacing: -0.028em;
}
.association-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
}
.association-group li {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #e6ece8;
    align-items: start;
}
.association-group li:last-child {
    border: 0;
}
.association-group time {
    color: #52766b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
}
.association-group li span {
    color: #203a36;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 600;
}
.association-source {
    margin: 20px 0 0;
    font-size: 10px;
    line-height: 1.8;
    color: #b5cdc3;
}
@media (max-width: 960px) {
    .association-intro {
        grid-template-columns: 1fr;
    }
    .association-highlights {
        border-left: 0;
        padding: 0;
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
    }
    .association-highlights > div {
        min-width: 180px;
        flex: 1;
    }
    .association-list {
        grid-template-columns: 1fr 1fr;
    }
    .association-summary {
        padding: 25px 23px;
    }
    .association-details {
        padding: 12px 23px 26px;
    }
    .association-group li {
        grid-template-columns: 95px 1fr;
    }
}
@media (max-width: 760px) {
    .association-intro {
        gap: 24px;
    }
    .association-intro h2 {
        font-size: clamp(35px, 8vw, 49px);
    }
    .association-list {
        grid-template-columns: 1fr;
    }
    .association-summary {
        padding: 26px;
    }
    .association-details {
        padding: 12px 26px 25px;
    }
    .association-group li {
        grid-template-columns: 110px 1fr;
    }
}
@media (max-width: 420px) {
    .association-summary {
        padding: 22px;
    }
    .association-details {
        padding: 10px 22px 23px;
    }
    .association-group li {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .association-group time {
        font-size: 10px;
    }
}
@media print {
    .association-list {
        grid-template-columns: 1fr;
    }
    .association-card {
        break-inside: avoid;
    }
    .association-card:not([open]) .association-details {
        display: block !important;
    }
    .association-details {
        background: #fff !important;
    }
    .association-intro {
        grid-template-columns: 1fr;
    }
    .association-summary {
        padding: 13px;
    }
    .association-details {
        padding: 13px;
    }
    .association-open-label,
    .association-expand-icon {
        display: none;
    }
}

@media print {
    .beyond-section {
        display: block !important;
        background: #fff !important;
        color: #172338 !important;
        padding: 20px 0 !important;
        margin: 0 !important;
    }
    .association-intro h2,
    .association-intro h2 em {
        color: #172338 !important;
    }
    .association-intro p:not(.eyebrow) {
        color: #172338 !important;
    }
    .association-highlights {
        display: none !important;
    }
    .association-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ----------------------------------------------------------------------------
   2/5 · EDITORIAL REDESIGN V3 (former refinement.css)
   Sober palette, neutral typography, authentic screenshots and clearer
   project hierarchy. Non-destructive override of the base theme.
   ---------------------------------------------------------------------------- */
:root {
    --bg: #f7f8f5;
    --surface: #ffffff;
    --surface-soft: #f2f4f0;
    --text: #1c2622;
    --muted: #63716a;
    --line: #dce3dc;
    --accent: #366b4c;
    --accent-2: #dbece0;
    --nav: #f7f8f5f0;
    --sans:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
        sans-serif;
    --serif: var(--sans);
    --shadow: 0 12px 35px rgba(34, 51, 40, 0.08);
    --radius: 17px;
}
:root[data-theme="dark"] {
    --bg: #151c19;
    --surface: #1d2822;
    --surface-soft: #26342b;
    --text: #edf3ed;
    --muted: #b5c1b8;
    --line: #394b3d;
    --accent: #9dcfae;
    --accent-2: #324e39;
    --nav: #151c19f0;
    --shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}
body {
    font-size: 14px;
    letter-spacing: -0.012em;
    line-height: 1.5;
}
.container {
    max-width: 1240px;
}
:where(h1, h2, h3, h4, p, strong) {
    text-wrap: pretty;
}
:where(h1, h2, h3) em {
    font-family: inherit;
    font-weight: inherit;
    font-style: normal;
    letter-spacing: inherit;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #69a987;
    outline-offset: 3px;
}
::selection {
    background: #cde6d2;
    color: #173d26;
}
.reading-progress span {
    background: var(--accent);
}
/* Calmer, more compact navigation */
.site-header {
    height: 80px;
}
.nav-shell {
    height: 66px;
    border-bottom: 1px solid var(--line);
}
.brand {
    min-width: auto;
    gap: 0;
}
.brand-symbol {
    display: none;
}
.brand-wordmark {
    font-size: 16px;
    letter-spacing: -0.035em;
    line-height: 1.1;
    font-weight: 750;
}
.brand-wordmark span {
    display: inline;
    margin-left: 5px;
    color: var(--text);
    font-weight: 450;
    letter-spacing: -0.035em;
}
.nav-links {
    gap: 28px;
}
.nav-link {
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0;
}
.nav-contact {
    background: #346848;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 650;
    padding: 12px 17px;
}
.nav-contact:hover {
    background: #265338;
    transform: none;
}
.icon-button {
    border-radius: 8px;
}
/* Hero — removes the artificial geometric decor */
.hero {
    min-height: 585px;
    color: var(--text);
    background: #edf1eb;
    border: 1px solid #e2e8e0;
    border-radius: 19px;
    grid-template-columns: 57% 43%;
    box-shadow: none;
}
.hero::before,
.hero-background-orb,
.hero-grain,
.portrait-frame-ring,
.portrait-grid {
    display: none;
}
.hero-content {
    padding: 82px 14px 81px 65px;
}
.hero-eyebrow {
    color: #53715e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.075em;
    margin-bottom: 25px;
}
.live-dot {
    background: #3f8b61;
    box-shadow: none;
    width: 7px;
    height: 7px;
}
.hero h1 {
    font-size: clamp(42px, 4.65vw, 63px);
    font-weight: 750;
    line-height: 1.13;
    letter-spacing: -0.057em;
    max-width: 700px;
    margin-bottom: 24px;
}
.hero h1 em {
    color: #477658;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: -0.05em;
}
.hero-summary {
    color: #5b6960;
    line-height: 1.82;
    font-size: 14px;
    max-width: 510px;
    font-weight: 400;
}
.button {
    border-radius: 8px;
    min-height: 49px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 650;
    gap: 18px;
    box-shadow: none;
}
.button:hover {
    transform: translateY(-1px);
}
.button-primary {
    background: #346848;
    color: #fff;
    box-shadow: none;
}
.button-primary:hover {
    background: #28563a;
    box-shadow: none;
}
.button-arrow {
    width: auto;
    height: auto;
    background: none;
    color: inherit;
    border-radius: 0;
    font-size: 17px;
}
.button-outline {
    color: #2b4834;
    border: 1px solid #b6c7b9;
    background: #ffffff9a;
}
.button-outline:hover {
    background: #fff;
}
.hero-bottom {
    color: #587160;
    font-weight: 500;
    font-size: 11px;
    padding-top: 40px;
}
.hero-line {
    background: #a8bcaa;
}
.hero-dot-sep {
    color: #587160;
    font-size: 15px;
}
.hero-scroll {
    color: #56725d;
    letter-spacing: 0.055em;
    font-weight: 600;
}
.scroll-mouse {
    border-color: #819b84;
}
.scroll-mouse::after {
    background: #547a5c;
}
.hero-portrait-wrap {
    min-height: 550px;
    overflow: hidden;
}
.portrait-halo {
    bottom: -50px;
    right: -10%;
    width: 108%;
    aspect-ratio: 1;
    background: radial-gradient(
        circle at 55% 48%,
        #dbe7d9 0,
        #dae7d9 38%,
        #dae7d940 64%,
        transparent 73%
    );
    filter: none;
}
.hero-portrait {
    max-height: 602px;
    width: min(110%, 630px);
    bottom: -34px;
    filter: none;
}
.floating-label-top {
    display: none;
}
.floating-label-bottom {
    bottom: 33px;
    right: 23px;
    transform: none;
    box-shadow: 0 9px 25px #202d201a;
}
.floating-label {
    border: 1px solid #e0e7df;
    background: #fffffff1;
    color: #24422c;
    border-radius: 10px;
    padding: 11px 14px;
    backdrop-filter: none;
}
.floating-label strong {
    font-size: 11px;
    font-weight: 700;
}
.floating-label small {
    letter-spacing: 0.07em;
    color: #66836e;
    font-size: 9px;
}
.floating-arrow {
    display: none;
}
/* Facts aligned as a plain list rather than decorative tiles */
.quick-facts {
    gap: 0;
    padding: 27px 0 6px;
}
.fact {
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: none;
    min-height: 70px;
    padding: 8px 19px;
    gap: 7px;
}
.fact:first-child {
    padding-left: 5px;
}
.fact:last-child {
    border-right: 0;
}
.fact-icon {
    width: 26px;
    height: 26px;
    background: none;
    color: #64826d;
    font-size: 10px;
    font-weight: 650;
    border-radius: 0;
}
.fact strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.fact span:not(.fact-icon) {
    font-size: 11px;
}
/* Section typography */
.section {
    padding-top: 100px;
}
.eyebrow {
    font-weight: 700;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.105em;
    margin-bottom: 15px;
}
.eyebrow-number {
    border: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    font-size: 10px;
}
h2 {
    font-size: clamp(34px, 4.2vw, 52px);
    letter-spacing: -0.055em;
    font-weight: 730;
    line-height: 1.16;
}
h2 em,
h3 em {
    font-weight: 450;
    color: var(--accent);
    font-family: inherit;
}
.intro-aside p {
    font-size: 12px;
    line-height: 1.75;
}
.intro-aside-foot {
    font-size: 10px;
    font-weight: 550;
}
/* Project selection: Navig featured, Sys-Coos compact */
.project-filters {
    margin: 26px 0 23px;
    gap: 8px;
}
.filter-chip {
    border-radius: 7px;
    padding: 10px 13px;
    font-size: 11px;
    font-weight: 600;
}
.filter-chip.is-active {
    background: #315f43;
    color: #fff;
    border-color: #315f43;
}
.project-grid {
    gap: 16px;
    align-items: stretch;
}
.project-card,
.project-card:nth-child(4n + 1),
.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3),
.project-card:nth-child(4n + 4),
.project-card:last-child:nth-child(odd) {
    grid-column: span 6;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border-color: var(--line);
    box-shadow: none;
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px #24382b12;
    border-color: #b3cbb8;
}
.project-card[data-project="navig"] {
    order: -10;
    grid-column: span 12;
    min-height: 400px;
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.9fr);
}
.project-card[data-project="navig"] .project-visual {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 400px;
}
.project-card[data-project="navig"] .project-content {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    padding: 35px 36px;
}
.project-card[data-project="navig"] .project-heading {
    font-size: 35px;
}
.project-card[data-project="navig"] .project-desc {
    font-size: 13px;
    line-height: 1.75;
}
.project-card[data-project="gradechelor"] {
    order: 2;
    grid-column: span 8;
}
.project-card[data-project="sys-coos"] {
    order: 3;
    grid-column: span 4;
}
.project-card[data-project="flowride"] {
    order: 0;
}
.project-card[data-project="dojo"] {
    order: 1;
}
.project-visual,
.project-card:last-child:nth-child(odd) .project-visual {
    height: 286px;
    grid-column: auto;
    grid-row: auto;
    background: #e9eee9;
}
.project-card:last-child:nth-child(odd) .project-content {
    grid-column: auto;
    grid-row: auto;
    justify-content: initial;
}
.project-visual::before {
    display: none;
}
.project-visual[data-accent="mint"],
.project-visual[data-accent="peach"] {
    background: #e9eee9;
}
.project-visual[data-accent="lavender"] {
    background: #ececf0;
}
.project-visual[data-accent="blue"] {
    background: #e6eaeb;
}
.visual-badge {
    top: 14px;
    left: 17px;
    letter-spacing: 0.045em;
    font-size: 9px;
    border: 1px solid #cbd7cc;
    color: #496650;
    background: #ffffffed;
    padding: 6px 9px;
}
.visual-notice {
    right: 15px;
    bottom: 13px;
    font-size: 9px;
    background: #fffffff1;
    color: #5c715f;
    border: 1px solid #d4dfd4;
    font-weight: 550;
    border-radius: 5px;
}
.project-content {
    padding: 24px 26px;
}
.project-meta {
    font-size: 10px;
    letter-spacing: 0.035em;
    font-weight: 600;
}
.project-meta i {
    color: var(--muted);
    font-weight: 500;
}
.project-heading {
    font-size: 25px;
    font-weight: 730;
    letter-spacing: -0.045em;
    margin: 13px 0 11px;
}
.project-heading span {
    font-size: 16px;
    color: var(--accent);
}
.project-desc {
    font-size: 12px;
    line-height: 1.75;
    margin-bottom: 16px;
}
.project-tags {
    padding-bottom: 18px;
    gap: 6px;
}
.project-tags span {
    background: var(--surface-soft);
    border-color: transparent;
    border-radius: 5px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 500;
}
.project-actions {
    padding-top: 17px;
}
.project-more {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}
.project-more span {
    background: none;
    font-size: 16px;
}
.project-external {
    font-size: 11px;
}
/* Simple browser window, no fake content or perspective */
.project-shot-wrap {
    width: 100%;
    height: 100%;
    padding: 36px 22px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-shot-browser {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #cdd8cf;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px #243b2d1b;
    display: flex;
    flex-direction: column;
}
.shot-toolbar {
    height: 29px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    background: #fbfcfb;
    border-bottom: 1px solid #e4e9e3;
    color: #728078;
}
.shot-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}
.shot-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccd5ce;
    display: block;
}
.shot-domain {
    font-size: 9px;
    text-align: center;
    flex: 1;
    font-weight: 600;
}
.shot-menu {
    width: 25px;
}
.project-shot-image {
    width: 100%;
    height: calc(100% - 29px);
    object-fit: cover;
    object-position: center top;
}
.project-card[data-project="navig"] .project-shot-wrap {
    padding: 46px 28px 32px;
}
.project-card[data-project="navig"] .project-shot-browser {
    box-shadow: 0 12px 30px #243b2d1b;
}
/* Remaining illustrations: Dojo kept, less playful style */
.visual-art {
    width: 84%;
    height: 79%;
}
.project-card:hover .visual-art {
    transform: none;
}
.visual-code .demo-browser,
.visual-workflow .demo-browser {
    transform: none;
}
.project-card[data-project="sys-coos"] .project-visual {
    height: 190px;
}
.project-card[data-project="sys-coos"] .visual-art {
    width: 88%;
    height: 75%;
}
.project-card[data-project="sys-coos"] .workflow-node {
    min-height: 72px;
    padding: 7px;
    gap: 4px;
}
.project-card[data-project="sys-coos"] .workflow-node small {
    font-size: 6px;
}
.project-card[data-project="sys-coos"] .workflow-canvas {
    padding: 12px 8px;
}
.project-card[data-project="sys-coos"] .project-content {
    padding: 19px 20px;
}
.project-card[data-project="sys-coos"] .project-heading {
    font-size: 22px;
}
.project-card[data-project="sys-coos"] .project-desc {
    font-size: 11px;
}
.project-card[data-project="sys-coos"] .project-tags span {
    font-size: 9px;
}
.projects-outro {
    border-radius: 11px;
    background: transparent;
    padding: 20px 0;
    border-left: 0;
    border-right: 0;
}
.projects-outro p {
    font-size: 12px;
}
/* Expertise, career, distinctions */
.expertise-section {
    padding-top: 110px;
}
.expertise-layout {
    border-radius: 14px;
}
.expertise-tab {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.035em;
    padding: 20px 18px;
}
.expertise-tab[aria-selected="true"] {
    border-radius: 7px;
}
.expertise-content h3 {
    font-size: 30px;
    font-weight: 700;
}
.expertise-chip-list span {
    font-size: 11px;
    font-weight: 550;
    border-radius: 5px;
}
.technology-marquee {
    mask-image: none;
}
.marquee-track {
    animation: none;
    gap: 19px;
    flex-wrap: wrap;
    width: auto;
}
.marquee-track span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}
.marquee-track span:nth-of-type(n + 9) {
    display: none;
}
.marquee-track i {
    font-size: 11px;
    color: #a7b3a9;
}
.philosophy-main {
    border-radius: 15px;
    background: #263d31;
    color: #fff;
    min-height: 310px;
}
.philosophy-main::before,
.philosophy-mark {
    display: none;
}
.philosophy-main h2 em {
    color: #c2dcc7;
}
.philosophy-main p:not(.eyebrow) {
    color: #d4e2d7;
}
.eyebrow-light {
    color: #c2dcc7;
}
.method-card {
    border-radius: 13px;
    min-height: 245px;
}
.method-icon {
    font-size: 23px;
}
.timeline-content {
    border-radius: 13px;
}
.timeline-content h3 {
    font-weight: 700;
}
.timeline-content li::before,
.dialog-section li::before {
    content: "—";
}
.education-block {
    margin-top: 85px;
}
.education-item {
    border-radius: 10px;
}
.education-item h4 {
    font-weight: 700;
}
.education-item .education-distinction {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}
.distinction-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 5px;
    background: #def0e0;
    color: #2b7542;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.01em;
    border: 1px solid #bce0c3;
    white-space: nowrap;
}
:root[data-theme="dark"] .distinction-badge {
    background: #274732;
    color: #c1e9ca;
    border-color: #3f6b4e;
}
/* Continued: two subdued sections instead of the neon palette */
.beyond-section {
    background: #263d31;
    margin-top: 108px;
    padding: 80px 0;
}
.beyond-copy h2 em {
    color: #c5e0c8;
}
.beyond-points strong {
    color: #c5e0c8;
}
.text-link-light {
    color: #d3e9d5;
}
.court-illustration {
    border-radius: 14px;
    background: #2a5342;
    box-shadow: none;
}
.court-illustration::before,
.court-glow {
    display: none;
}
.court-ball {
    filter: none;
    color: #e2ecdb;
}
.association-intro h2 em {
    color: #c5e0c8;
}
.association-highlights strong {
    color: #d3e9d5;
}
.association-card {
    background: #f9fbf8;
    border-color: #d5e1d6;
    border-radius: 12px;
}
.association-card[open] {
    box-shadow: 0 10px 25px #00000010;
    border-color: #aac7b1;
}
.association-summary-text strong {
    font-weight: 750;
    letter-spacing: -0.045em;
}
.contact-card {
    background: #e1ece2;
    color: #1d3927;
    border-radius: 15px;
    min-height: 390px;
    padding: 52px 60px;
}
.contact-card::before,
.contact-stars {
    display: none;
}
.contact-card h2 em {
    color: #3e6f4c;
}
.contact-card > p:not(.eyebrow) {
    color: #4b6c55;
}
.contact-card .eyebrow {
    color: #40714c;
}
.button-dark {
    background: #315d40;
    color: #fff;
}
.button-dark .button-arrow {
    background: none;
    color: #fff;
}
.button-dark:hover {
    background: #22472f;
}
.copy-email {
    color: #315d40;
}
.contact-bottom {
    border-color: #9cbaa3;
}
.contact-bottom span {
    color: #56765d;
}
.back-top {
    background: #315d40;
    border-radius: 9px;
    box-shadow: 0 8px 20px #1c382629;
}
.dialog-brand {
    letter-spacing: 0.06em;
}
.project-dialog {
    border-radius: 14px;
}
.project-dialog::backdrop {
    background: #14211dc0;
    backdrop-filter: blur(3px);
}
.dialog-gallery:has(.screenshot-real) {
    grid-template-columns: 1fr;
}
.screenshot-real {
    border-radius: 9px;
    background: var(--surface-soft);
}
.screenshot-real img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    background: #fff;
}
.screenshot-real a {
    display: block;
}
.screenshot-real figcaption {
    padding: 12px 16px;
    font-size: 11px;
}
/* Consistent dark-mode treatment of light graphic areas */
:root[data-theme="dark"] .hero {
    background: #223128;
    border-color: #344839;
}
:root[data-theme="dark"] .hero-eyebrow,
:root[data-theme="dark"] .hero h1 em {
    color: #b9dabf;
}
:root[data-theme="dark"] .hero-summary,
:root[data-theme="dark"] .hero-bottom,
:root[data-theme="dark"] .hero-scroll {
    color: #bdcfc2;
}
:root[data-theme="dark"] .button-outline {
    color: #d6e6d9;
    background: #25392b;
    border-color: #4c6d54;
}
:root[data-theme="dark"] .portrait-halo {
    background: radial-gradient(
        circle,
        #3e5844 0,
        #2b4334 57%,
        transparent 75%
    );
}
:root[data-theme="dark"] .visual-badge,
:root[data-theme="dark"] .visual-notice {
    color: #35503c;
    background: #fffffff0;
}
:root[data-theme="dark"] .contact-card {
    background: #304735;
    color: #f1f7ed;
}
:root[data-theme="dark"] .contact-card h2 em {
    color: #b9d9bc;
}
:root[data-theme="dark"] .contact-card > p:not(.eyebrow),
:root[data-theme="dark"] .contact-bottom span {
    color: #cfdfcf;
}
:root[data-theme="dark"] .contact-card .eyebrow {
    color: #c0d9c5;
}
:root[data-theme="dark"] .copy-email {
    color: #dcebdd;
}
:root[data-theme="dark"] .association-card {
    background: #213126;
    color: var(--text);
    border-color: #46604b;
}
:root[data-theme="dark"] .association-details {
    background: var(--surface);
}
:root[data-theme="dark"] .association-summary-text strong,
:root[data-theme="dark"] .association-fullname,
:root[data-theme="dark"] .association-teaser {
    color: var(--text);
}
/* Responsive: preserve the mobile site and its navigation */
@media (max-width: 1050px) {
    .project-card[data-project="navig"] {
        grid-template-columns: minmax(0, 1.18fr) minmax(255px, 0.92fr);
        min-height: 370px;
    }
    .project-card[data-project="navig"] .project-visual {
        min-height: 370px;
    }
    .project-card[data-project="navig"] .project-content {
        padding: 27px;
    }
}
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 58% 42%;
        min-height: 560px;
    }
    .hero-content {
        padding: 69px 0 75px 38px;
    }
    .hero h1 {
        font-size: clamp(40px, 5vw, 55px);
    }
    .hero-portrait {
        width: 128%;
        max-height: 550px;
        bottom: -27px;
    }
    .project-card[data-project="navig"] {
        grid-column: span 12;
        display: grid;
        min-height: 345px;
    }
    .project-card[data-project="navig"] .project-visual {
        height: 100%;
        min-height: 345px;
    }
    .project-card[data-project="gradechelor"] {
        grid-column: span 8;
    }
    .project-card[data-project="sys-coos"] {
        grid-column: span 4;
    }
    .project-card[data-project="flowride"],
    .project-card[data-project="dojo"] {
        grid-column: span 6;
    }
}
@media (max-width: 760px) {
    .site-header {
        height: 75px;
    }
    .nav-shell {
        height: 62px;
    }
    .nav-links {
        z-index: 50;
    }
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .hero-content {
        padding: 43px 27px 18px;
    }
    .hero h1 {
        font-size: clamp(37px, 8vw, 53px);
    }
    .hero-portrait-wrap {
        min-height: 320px;
        height: 350px;
    }
    .hero-portrait {
        width: min(87%, 450px);
        bottom: -53px;
        max-height: 455px;
    }
    .floating-label-bottom {
        right: 7%;
        bottom: 25px;
    }
    .quick-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .fact:nth-child(2) {
        border-right: none;
    }
    .fact {
        border-bottom: 1px solid var(--line);
        padding: 13px;
    }
    .fact:first-child {
        padding-left: 13px;
    }
    .section {
        padding-top: 79px;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .project-card,
    .project-card:nth-child(n),
    .project-card[data-project="navig"],
    .project-card[data-project="gradechelor"],
    .project-card[data-project="sys-coos"] {
        grid-column: 1;
        display: flex;
        min-height: 0;
    }
    .project-card[data-project="navig"] .project-visual,
    .project-card[data-project="navig"] .project-content {
        grid-column: auto;
        grid-row: auto;
    }
    .project-visual,
    .project-card:last-child:nth-child(odd) .project-visual,
    .project-card[data-project="navig"] .project-visual {
        height: 290px;
        min-height: 0;
    }
    .project-card[data-project="navig"] .project-content {
        padding: 25px;
    }
    .project-card[data-project="navig"] .project-heading {
        font-size: 28px;
    }
    .project-card[data-project="sys-coos"] .project-visual {
        height: 170px;
    }
    .project-shot-wrap,
    .project-card[data-project="navig"] .project-shot-wrap {
        padding: 38px 17px 22px;
    }
    .education-block {
        margin-top: 60px;
    }
    .contact-card {
        padding: 34px 27px;
    }
    .technology-marquee {
        padding: 22px 0;
    }
    .marquee-track {
        gap: 12px;
    }
    .marquee-track i {
        display: none;
    }
}
@media (max-width: 420px) {
    .brand-wordmark {
        display: inline;
        font-size: 15px;
    }
    .brand-wordmark span {
        display: inline;
    }
    .hero-content {
        padding: 38px 21px 12px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-portrait-wrap {
        height: 290px;
        min-height: 290px;
    }
    .hero-portrait {
        max-height: 385px;
        bottom: -46px;
    }
    .project-visual,
    .project-card[data-project="navig"] .project-visual {
        height: 226px;
    }
    .project-card[data-project="sys-coos"] .project-visual {
        height: 150px;
    }
    .project-shot-wrap,
    .project-card[data-project="navig"] .project-shot-wrap {
        padding: 36px 12px 14px;
    }
    .shot-toolbar {
        height: 24px;
    }
    .project-shot-image {
        height: calc(100% - 24px);
    }
}
@media print {
    .hero {
        background: #fff;
        color: #1c2622;
        border: none;
    }
    .hero h1 {
        color: #1c2622;
    }
    .hero-summary,
    .hero-eyebrow {
        color: #506653;
    }
    .project-card:nth-child(n) {
        display: block;
        min-height: 0;
    }
    .project-visual {
        display: none !important;
    }
    .education-item {
        break-inside: avoid;
    }
}
/* Last project's specificity: this rule neutralizes the V2 panoramic card. */
@media (min-width: 761px) {
    .project-card[data-project="gradechelor"]:last-child {
        grid-column: span 8;
    }
    .project-card[data-project="sys-coos"] {
        align-self: start;
    }
}

/* Two columns without overflow (30% + 70% + gap exceeded the V2 container). */
@media (min-width: 961px) {
    .education-block {
        grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
    }
}

/* ----------------------------------------------------------------------------
   3/5 · V4 ADJUSTMENTS (former v4.css)
   Blue palette, editorial hero, FlowRide featured. Overrides the previous
   layers without breaking their behavior.
   ---------------------------------------------------------------------------- */
:root {
    --bg: #f6f8fc;
    --surface: #fff;
    --surface-soft: #f0f4fa;
    --text: #17233a;
    --muted: #60708a;
    --line: #dce4f0;
    --accent: #315bb2;
    --accent-2: #e4edfd;
    --nav: #f6f8fcf2;
    --shadow: 0 18px 44px rgba(26, 48, 90, 0.085);
}
:root[data-theme="dark"] {
    --bg: #101827;
    --surface: #1a2639;
    --surface-soft: #24324a;
    --text: #f1f5fc;
    --muted: #b6c5dd;
    --line: #364763;
    --accent: #a7c1ff;
    --accent-2: #253b65;
    --nav: #101827f2;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.23);
}
body {
    font-family: var(--sans);
}
::selection {
    background: #cdddff;
    color: #173465;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #7799ea;
    outline-offset: 3px;
}
.site-header {
    height: 88px;
}
.nav-shell {
    height: 70px;
}
.brand-wordmark {
    font-size: 17px;
    font-weight: 760;
}
.brand-wordmark span {
    font-weight: 550;
}
.nav-link:hover,
.nav-link.is-active {
    color: var(--accent);
}
.nav-contact {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    line-height: 1;
    padding: 12px 18px;
    white-space: nowrap;
    text-align: center;
    background: #284d94;
    color: white;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}
.nav-contact svg {
    width: 17px;
    height: 17px;
    flex: none;
    display: block;
}
.nav-contact span {
    font-size: inherit;
    padding: 0;
    line-height: 1;
    display: inline-block;
}
.nav-contact:hover {
    background: #193e85;
}
/* More expressive hero card: name as title, readable role at second level. */
.hero {
    position: relative;
    min-height: 625px;
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    background: linear-gradient(115deg, #12233e 0%, #1a335a 56%, #25456f 100%);
    border: 1px solid #223c61;
    border-radius: 22px;
    color: #fff;
    box-shadow: 0 20px 55px rgba(17, 35, 67, 0.15);
}
.hero-content {
    padding: 78px 8px 88px 67px;
}
.hero-eyebrow {
    color: #bdd1f6;
    letter-spacing: 0.095em;
    font-size: 10px;
    margin-bottom: 29px;
}
.live-dot {
    background: #8eb0fc;
    box-shadow: 0 0 0 4px #8eb0fc1f;
}
.hero h1 {
    font-size: clamp(56px, 5.8vw, 88px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.067em;
    max-width: 790px;
    margin-bottom: 13px;
    color: #fff;
}
.hero h1 span {
    color: #bcd2fc;
}
.hero-role {
    color: #eff5ff;
    font-size: clamp(23px, 2.55vw, 34px);
    font-weight: 550;
    line-height: 1.22;
    letter-spacing: -0.048em;
    margin: 0 0 27px;
    max-width: 580px;
}
.hero-role span {
    color: #a7c5f9;
    font-weight: 400;
    margin-inline: 2px;
}
.hero-summary {
    max-width: 520px;
    color: #d1ddef;
    font-size: 14px;
    line-height: 1.82;
    letter-spacing: 0;
}
.hero-cta {
    gap: 11px;
}
.button-primary {
    background: #f9fbff;
    color: #183761;
    border: 1px solid transparent;
}
.button-primary:hover {
    background: #dce8ff;
    color: #122947;
}
.button-outline {
    border: 1px solid #7893b8;
    background: #ffffff13;
    color: #f6f9ff;
}
.button-outline:hover {
    background: #ffffff20;
}
.hero-bottom {
    color: #c4d4ea;
    font-size: 11px;
    padding-top: 31px;
}
.hero-line {
    background: #7593bc;
}
.hero-dot-sep {
    color: #8ca7cc;
}
.hero-scroll {
    color: #d0def1;
}
.scroll-mouse {
    border-color: #97b3d7;
}
.scroll-mouse::after {
    background: #d1e0fb;
}
.hero-portrait-wrap {
    min-height: 602px;
}
.portrait-halo {
    background: radial-gradient(
        ellipse at center,
        #355985 0%,
        #2b4c7950 48%,
        transparent 76%
    );
    width: 116%;
    right: -11%;
    bottom: -100px;
}
.hero-portrait {
    max-height: 636px;
    bottom: -36px;
    width: min(114%, 640px);
    filter: drop-shadow(0 16px 28px #09192b49);
}
.floating-label-bottom {
    display: flex;
    align-items: center;
    gap: 11px;
    bottom: 32px;
    right: 26px;
    border: 1px solid #d6e2f5;
    border-radius: 12px;
    background: #fcfdffed;
    box-shadow: 0 12px 30px #081f4440;
    color: #1b355e;
    padding: 12px 15px;
    min-height: 68px;
    max-width: 295px;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
    cursor: pointer;
    text-decoration: none;
    z-index: 7;
}
.floating-label-bottom:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 17px 35px #081f4455;
}
.floating-label-bottom:focus-visible {
    outline: 3px solid #91b7ff;
    outline-offset: 4px;
}
.floating-label-bottom small {
    color: #54729c;
    font-size: 9px;
}
.floating-label-bottom strong {
    color: #1b355e;
    font-size: 12px;
    line-height: 1.35;
}
.work-indicator {
    background: #3e77db;
    box-shadow: 0 0 0 5px #cee0ff;
}
.featured-arrow {
    color: #315bb2;
    flex: none;
    margin-left: 4px;
}
/* Restore the four cards, with pictograms related to the content's meaning. */
.quick-facts {
    gap: 12px;
    padding: 22px 0 14px;
}
.fact,
.fact:first-child,
.fact:last-child {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    min-height: 95px;
    padding: 17px 15px;
    gap: 13px;
    box-shadow: 0 4px 16px rgba(31, 57, 103, 0.025);
}
.fact-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 11px;
    background: var(--accent-2);
    color: var(--accent);
}
.fact-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fact strong {
    font-size: 13px;
    font-weight: 750;
}
.fact span:not(.fact-icon) {
    font-size: 11px;
    font-weight: 450;
    line-height: 1.45;
}
/* Flagship project: FlowRide instead of Navig. The others stay visible. */
.eyebrow {
    color: var(--accent);
}
h2 em,
h3 em {
    color: var(--accent);
}
.section {
    padding-top: 94px;
}
.project-filters {
    margin-top: 25px;
}
.filter-chip.is-active {
    background: #315bb2;
    border-color: #315bb2;
    color: #fff;
}
.project-card:hover {
    border-color: #b4c9e7;
    box-shadow: 0 14px 35px #1b37691a;
}
.project-card[data-project="navig"],
.project-card[data-project="flowride"] {
    min-height: 0;
}
.project-card[data-project="flowride"] {
    order: -10;
    grid-column: span 12;
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
    min-height: 415px;
}
.project-card[data-project="flowride"] .project-visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 415px;
    height: 100%;
}
.project-card[data-project="flowride"] .project-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
}
.project-card[data-project="flowride"] .project-heading {
    font-size: clamp(31px, 3.1vw, 40px);
}
.project-card[data-project="flowride"] .project-desc {
    font-size: 13px;
    line-height: 1.78;
}
.project-card[data-project="flowride"] .project-shot-wrap {
    padding: 43px 27px 31px;
}
.project-card[data-project="navig"] {
    order: 0;
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.project-card[data-project="navig"] .project-visual {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    height: 286px;
}
.project-card[data-project="navig"] .project-content {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    justify-content: initial;
    padding: 24px 26px;
}
.project-card[data-project="navig"] .project-heading {
    font-size: 25px;
}
.project-card[data-project="navig"] .project-shot-wrap {
    padding: 36px 22px 26px;
}
.project-card[data-project="dojo"] {
    order: 1;
    grid-column: span 6;
}
.project-card[data-project="gradechelor"] {
    order: 2;
    grid-column: span 8;
}
.project-card[data-project="sys-coos"] {
    order: 3;
    grid-column: span 4;
}
.project-card[data-project="sys-coos"] .project-visual {
    height: 190px;
}
.project-card[data-project="sys-coos"] .project-content {
    padding: 19px 20px;
}
.project-visual[data-accent="mint"],
.project-visual[data-accent="peach"],
.project-visual[data-accent="blue"] {
    background: #e8eff9;
}
.project-visual[data-accent="lavender"] {
    background: #e9edf6;
}
.visual-badge {
    color: #345580;
    background: #fffffff3;
    border-color: #d1dff0;
}
.visual-notice {
    display: none;
}
.project-shot-browser {
    border-color: #bfcde0;
    box-shadow: 0 13px 28px #1e3b6a1c;
}
.shot-toolbar {
    background: #f9fbfe;
    border-color: #dbe4f1;
    color: #70839d;
}
.shot-dots i {
    background: #c6d2e4;
}
.project-heading span {
    display: none;
}
.project-heading {
    letter-spacing: -0.045em;
}
.project-actions {
    gap: 10px 14px;
    flex-wrap: wrap;
}
.project-more {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.project-more span {
    font-size: 17px;
    color: inherit;
}
.project-external {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.project-external.product-link {
    font-weight: 700;
    color: #1c4c9a;
    border: 1px solid #bbd0ef;
    padding: 9px 12px;
    border-radius: 8px;
    background: #eaf1ff;
    white-space: nowrap;
}
.project-external.product-link:hover {
    background: #dbe9ff;
}
.project-tags span {
    background: var(--surface-soft);
    color: var(--muted);
}
/* Restore the tech marquee animation without fancy characters. */
.technology-marquee {
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 7%,
        #000 93%,
        transparent
    );
    overflow: hidden;
}
.marquee-track {
    animation: marquee 45s linear infinite;
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 26px;
}
.marquee-track span,
.marquee-track span:nth-of-type(n + 9) {
    display: inline;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 650;
    color: var(--muted);
}
.marquee-track .tech-separator {
    display: block;
    flex: 0 0 4px;
    width: 4px;
    height: 4px;
    background: #9bacc6;
    border-radius: 50%;
    font-size: 0;
}
.technology-marquee:hover .marquee-track {
    animation-play-state: paused;
}
.philosophy-main {
    background: #1a335a;
}
.philosophy-main h2 em,
.eyebrow-light,
.association-intro h2 em {
    color: #c8ddff;
}
.philosophy-main p:not(.eyebrow) {
    color: #d8e5fa;
}
.method-card {
    border-color: var(--line);
}
.method-icon svg {
    display: block;
    width: 30px;
    height: 30px;
    color: var(--accent);
}
.education-block {
    margin-top: 86px;
}
.education-item {
    border-color: var(--line);
}
.education-item time {
    color: var(--accent);
}
.education-honor {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 11px;
    line-height: 1.55;
    font-weight: 550;
}
.education-honor svg {
    width: 17px;
    height: 17px;
    min-width: 17px;
    color: var(--accent);
    margin-top: 0;
}
.education-honor span {
    max-width: 560px;
}
/* Strong, authentic volunteering section, no backstage text. */
.beyond-section {
    background: #142a49;
    margin-top: 115px;
    padding: 95px 0 104px;
}
.association-intro {
    grid-template-columns: minmax(0, 1.4fr) minmax(235px, 0.62fr);
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}
.association-intro h2 {
    font-size: clamp(40px, 5.2vw, 69px);
    line-height: 1.11;
    letter-spacing: -0.065em;
    margin: 18px 0 25px;
}
.association-intro h2 .associative-title {
    color: #fff;
    font-weight: 810;
}
.association-intro h2 em {
    font-size: 0.82em;
    font-weight: 470;
    color: #a9c7f9;
}
.association-intro p:not(.eyebrow) {
    color: #d2e0f4;
    font-size: 14px;
    line-height: 1.85;
    max-width: 650px;
}
.association-highlights {
    border-left: 1px solid #7790b85f;
    padding-left: 25px;
    gap: 19px;
}
.association-highlights > div {
    border-bottom: 1px solid #7790b83a;
    padding-bottom: 16px;
    gap: 6px;
}
.association-highlights strong {
    color: #d0e0fc;
    font-size: 15px;
}
.association-highlights span {
    color: #c6d4ec;
    font-size: 11px;
}
.association-list {
    gap: 17px;
}
.association-card {
    background: #fcfdff;
    color: #192c48;
    border: 1px solid #cddcf0;
    border-radius: 16px;
}
.association-card[open] {
    border-color: #92b5e7;
    box-shadow: 0 14px 34px #08172c35;
}
.association-number {
    color: #456caa;
}
.association-summary-text strong {
    color: #182d4e;
}
.association-fullname {
    color: #466080;
}
.association-period {
    color: #637994;
}
.association-teaser {
    color: #475e7e;
}
.association-expand-icon {
    border-color: #c7d5eb;
    color: #244c8e;
}
.association-card[open] .association-expand-icon {
    background: #e5efff;
}
.association-open-label {
    color: #24529d;
}
.association-details {
    background: #fff;
    border-color: #dfe7f4;
}
.association-group h3 {
    color: #1b3254;
}
.association-group li {
    border-color: #e9eef6;
}
.association-group time {
    color: #4e6fa0;
}
.association-group li span {
    color: #304b71;
}
.contact-card {
    background: #e5eefa;
    color: #182c50;
    border-radius: 18px;
}
.contact-card .eyebrow,
.contact-card h2 em,
.copy-email {
    color: #315bb2;
}
.contact-card > p:not(.eyebrow) {
    color: #526d93;
}
.contact-bottom {
    border-color: #c3d2e9;
}
.contact-bottom span {
    color: #617897;
}
.button-dark,
.back-top {
    background: #284d94;
    color: #fff;
}
.button-dark:hover,
.back-top:hover {
    background: #183c7c;
}
/* Lighter modals: no summary panel at the bottom. */
.project-dialog::backdrop {
    background: #0c1b35c9;
}
.dialog-brand-dot {
    background: #315bb2;
}
.dialog-external {
    color: var(--accent);
}
.dialog-footer {
    gap: 12px;
    justify-content: flex-end;
}
.dialog-footer .dialog-external {
    margin-right: auto;
}
.dialog-outcome {
    display: none;
}
:root[data-theme="dark"] .hero {
    background: linear-gradient(115deg, #102139 0%, #1b3354 57%, #2b4a72 100%);
    border-color: #37516e;
}
:root[data-theme="dark"] .hero h1 span {
    color: #c7d9fb;
}
:root[data-theme="dark"] .hero-role,
:root[data-theme="dark"] .hero-summary {
    color: #e5edfa;
}
:root[data-theme="dark"] .button-primary {
    background: #f9fbff;
    color: #1c385f;
}
:root[data-theme="dark"] .button-outline {
    color: #f9fbff;
    background: #ffffff16;
    border-color: #9db4d2;
}
:root[data-theme="dark"] .portrait-halo {
    background: radial-gradient(
        ellipse,
        #3a5a85 0%,
        #23426b55 52%,
        transparent 76%
    );
}
:root[data-theme="dark"] .floating-label-bottom {
    background: #f8fbffed;
    color: #1b355e;
}
:root[data-theme="dark"] .project-external.product-link {
    background: #294670;
    border-color: #557bb5;
    color: #e3edff;
}
:root[data-theme="dark"] .project-visual[data-accent] {
    background: #dce7f6;
}
:root[data-theme="dark"] .contact-card {
    background: #213758;
    color: #f2f6ff;
}
:root[data-theme="dark"] .contact-card .eyebrow,
:root[data-theme="dark"] .contact-card h2 em,
:root[data-theme="dark"] .copy-email {
    color: #c4d7fc;
}
:root[data-theme="dark"] .contact-card > p:not(.eyebrow),
:root[data-theme="dark"] .contact-bottom span {
    color: #c0d2eb;
}
:root[data-theme="dark"] .association-card {
    background: #213553;
    color: #e8f0ff;
    border-color: #456386;
}
:root[data-theme="dark"] .association-summary-text strong,
:root[data-theme="dark"] .association-fullname,
:root[data-theme="dark"] .association-teaser {
    color: #f0f5ff;
}
:root[data-theme="dark"] .association-details {
    background: #182b45;
}
:root[data-theme="dark"] .association-group h3,
:root[data-theme="dark"] .association-group li span {
    color: #e4eeff;
}
:root[data-theme="dark"] .association-period,
:root[data-theme="dark"] .association-open-label,
:root[data-theme="dark"] .association-number {
    color: #aecaff;
}
:root[data-theme="dark"] .association-group time {
    color: #b9cfff;
}
@media (max-width: 1050px) {
    .hero-content {
        padding-left: 43px;
    }
    .hero h1 {
        font-size: clamp(51px, 6vw, 75px);
    }
    .project-card[data-project="flowride"] {
        grid-template-columns: minmax(0, 1.15fr) minmax(255px, 0.9fr);
    }
    .project-card[data-project="flowride"] .project-content {
        padding: 28px;
    }
}
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 57% 43%;
        min-height: 565px;
    }
    .hero-content {
        padding: 63px 0 74px 38px;
    }
    .hero h1 {
        font-size: clamp(45px, 5.6vw, 62px);
    }
    .hero-role {
        font-size: clamp(21px, 2.8vw, 29px);
    }
    .hero-portrait-wrap {
        min-height: 535px;
    }
    .hero-portrait {
        width: 130%;
        max-height: 555px;
        bottom: -27px;
    }
    .project-card[data-project="flowride"] {
        grid-column: span 12;
        display: grid;
        min-height: 340px;
    }
    .project-card[data-project="flowride"] .project-visual {
        height: 100%;
        min-height: 340px;
    }
    .project-card[data-project="flowride"] .project-content {
        padding: 26px;
    }
    .project-card[data-project="navig"],
    .project-card[data-project="dojo"] {
        grid-column: span 6;
    }
    .project-card[data-project="gradechelor"] {
        grid-column: span 8;
    }
    .project-card[data-project="sys-coos"] {
        grid-column: span 4;
    }
    .quick-facts {
        gap: 10px;
    }
    .fact {
        padding: 13px 11px;
        gap: 10px;
    }
    .fact-icon {
        width: 37px;
        height: 37px;
        min-width: 37px;
    }
    .association-intro {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
@media (max-width: 760px) {
    .site-header {
        height: 76px;
    }
    .nav-contact {
        min-height: 40px;
        padding: 10px 12px;
        gap: 7px;
    }
    .nav-contact svg {
        width: 15px;
        height: 15px;
    }
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .hero-content {
        padding: 46px 28px 10px;
    }
    .hero-eyebrow {
        margin-bottom: 23px;
    }
    .hero h1 {
        font-size: clamp(45px, 9.5vw, 66px);
        margin-bottom: 12px;
    }
    .hero-role {
        font-size: clamp(24px, 5.5vw, 31px);
    }
    .hero-summary {
        font-size: 13px;
        line-height: 1.75;
    }
    .hero-portrait-wrap {
        min-height: 350px;
        height: 350px;
    }
    .hero-portrait {
        width: min(88%, 480px);
        max-height: 475px;
        bottom: -55px;
    }
    .floating-label-bottom {
        right: 6%;
        bottom: 21px;
    }
    .hero-scroll {
        display: none;
    }
    .quick-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-top: 17px;
    }
    .fact,
    .fact:first-child,
    .fact:last-child,
    .fact:nth-child(n) {
        border: 1px solid var(--line);
        padding: 13px;
        min-height: 87px;
    }
    .section {
        padding-top: 80px;
    }
    .project-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .project-grid > .project-card:nth-child(n) {
        grid-column: 1 / -1;
        display: flex;
        min-height: 0;
    }
    .project-card[data-project="flowride"] .project-visual,
    .project-card[data-project="flowride"] .project-content,
    .project-card[data-project="navig"] .project-visual,
    .project-card[data-project="navig"] .project-content {
        grid-column: auto;
        grid-row: auto;
    }
    .project-card[data-project="flowride"] .project-visual,
    .project-card[data-project="navig"] .project-visual {
        height: 295px;
        min-height: 0;
    }
    .project-card[data-project="flowride"] .project-content {
        padding: 25px;
    }
    .project-card[data-project="flowride"] .project-heading {
        font-size: 30px;
    }
    .project-card[data-project="flowride"] .project-shot-wrap {
        padding: 36px 17px 23px;
    }
    .project-card[data-project="navig"] .project-shot-wrap {
        padding: 36px 17px 23px;
    }
    .project-card[data-project="sys-coos"] .project-visual {
        height: 170px;
    }
    .marquee-track {
        gap: 24px;
    }
    .marquee-track .tech-separator {
        display: block;
    }
    .association-intro h2 {
        font-size: clamp(39px, 8vw, 56px);
    }
}
@media (max-width: 420px) {
    .brand-wordmark {
        font-size: 15px;
    }
    .nav-contact {
        font-size: 11px;
        padding: 10px;
    }
    .hero-content {
        padding: 39px 21px 8px;
    }
    .hero h1 {
        font-size: clamp(41px, 10.5vw, 52px);
    }
    .hero-role {
        font-size: 23px;
    }
    .hero-portrait-wrap {
        height: 302px;
        min-height: 302px;
    }
    .hero-portrait {
        max-height: 401px;
        bottom: -45px;
    }
    .floating-label-bottom {
        right: 9px;
        bottom: 14px;
        padding: 10px;
        min-height: 59px;
    }
    .floating-label-bottom strong {
        font-size: 10px;
    }
    .fact,
    .fact:first-child,
    .fact:last-child,
    .fact:nth-child(n) {
        padding: 10px;
        gap: 7px;
    }
    .fact-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    .fact-icon svg {
        width: 18px;
        height: 18px;
    }
    .fact strong {
        font-size: 12px;
    }
    .fact span:not(.fact-icon) {
        font-size: 10px;
    }
    .project-card[data-project="flowride"] .project-visual,
    .project-card[data-project="navig"] .project-visual {
        height: 233px;
    }
    .project-card[data-project="flowride"] .project-shot-wrap,
    .project-card[data-project="navig"] .project-shot-wrap {
        padding: 34px 12px 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}
@media print {
    .hero {
        background: #fff;
        border: 0;
        box-shadow: none;
        color: #17233a;
    }
    .hero h1,
    .hero h1 span,
    .hero-role,
    .hero-summary,
    .hero-eyebrow {
        color: #17233a;
    }
    .quick-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .fact {
        box-shadow: none;
    }
    .technology-marquee {
        display: none;
    }
}

@media (max-width: 350px) {
    .nav-shell {
        gap: 9px;
    }
    .nav-actions {
        gap: 7px;
    }
    .nav-contact {
        width: 40px;
        padding: 10px;
        min-width: 40px;
    }
    .nav-contact span {
        display: none;
    }
    .brand-wordmark {
        font-size: 14px;
    }
}

/* ----------------------------------------------------------------------------
   4/5 · V5 TOUCH-UPS (former v5.css)
   Return to an animated hero, nuanced blue palette, accessible details
   and media.
   ---------------------------------------------------------------------------- */
:root {
    --green-note: #36a577;
}
.hero {
    min-height: 690px;
    background: radial-gradient(
        circle at 76% 47%,
        #2a4f85 0%,
        #172e50 43%,
        #101e34 82%
    );
    border: 1px solid #304c76;
    border-radius: 27px;
    box-shadow: 0 21px 65px rgba(15, 30, 55, 0.15);
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
}
.hero::before {
    display: block;
    opacity: 0.35;
}
.hero-background-orb,
.hero-grain,
.portrait-frame-ring,
.portrait-grid {
    display: block;
}
.hero-background-orb {
    pointer-events: none;
}
.hero-grain {
    background: radial-gradient(
        circle at var(--pointer-x, 72%) var(--pointer-y, 55%),
        rgba(160, 194, 243, 0.19),
        transparent 27%
    );
}
.hero-content {
    padding: 76px 6px 98px 65px;
    justify-content: center;
}
.hero h1 {
    font-size: clamp(59px, 6.4vw, 92px);
    line-height: 1.015;
    letter-spacing: -0.067em;
    margin-bottom: 21px;
    max-width: 770px;
}
.hero h1 span {
    color: #c4d9ff;
}
.hero-role {
    font-size: clamp(23px, 2.45vw, 34px);
    line-height: 1.26;
    letter-spacing: -0.04em;
    font-weight: 560;
    color: #f5f8ff;
    margin-bottom: 24px;
}
.hero-role span {
    font-weight: 350;
    color: #84a5dc;
}
.hero-summary {
    max-width: 542px;
    color: #d8e3f7;
    font-size: 13.7px;
    line-height: 1.76;
    margin-bottom: 27px;
}
.hero-cta {
    gap: 12px;
}
.hero .button {
    min-height: 50px;
}
.hero-bottom {
    padding-top: 32px;
    margin-top: 6px;
    font-size: 11px;
    color: #cedcf3;
}
.hero-scroll {
    left: 65px;
    bottom: 22px;
    color: #cbd8ed;
    font-size: 9px;
    display: flex;
}
.scroll-mouse {
    border-color: #b0cae6;
}
.scroll-mouse::after {
    background: #b0e3cf;
}
.hero-portrait-wrap {
    min-height: 674px;
    overflow: hidden;
}
.portrait-halo {
    background: radial-gradient(
        ellipse,
        #4776ac80 0%,
        #2b50734d 53%,
        transparent 76%
    );
    bottom: -60px;
}
.portrait-frame-ring {
    opacity: 0.82;
}
.portrait-grid {
    opacity: 0.17;
}
.hero-portrait {
    bottom: -31px;
    max-height: 682px;
    width: min(120%, 680px);
    filter: drop-shadow(0 14px 32px #07162b66);
}
.floating-label-bottom {
    bottom: 65px;
    right: 19px;
    max-width: 340px;
    transform: none;
}
.floating-label-bottom strong {
    white-space: normal;
    max-width: 245px;
    font-size: 11.5px;
}
.work-indicator {
    background: var(--green-note);
    box-shadow: 0 0 0 5px #bfe9d8;
}
.featured-arrow {
    color: #3d69a9;
}
.project-card[data-project="flowride"] .project-visual {
    background: #e1eff1;
}
.project-card[data-project="flowride"] .project-content {
    gap: 1px;
}
/* Three clear actions, one visual system: detail view, official site, app. */
.project-actions {
    gap: 9px;
    align-items: center;
}
.project-more,
.project-external,
.project-external.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 9px 11px;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.3;
    font-size: 10.5px;
    font-weight: 650;
    white-space: normal;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}
.project-more {
    border: 1px solid #bfd0eb;
    background: #f0f5fd;
    color: #224c90;
}
.project-external {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface);
}
.project-external.product-link {
    background: #315bb2;
    border: 1px solid #315bb2;
    color: white;
}
.project-more:hover {
    background: #dae9ff;
}
.project-external:hover {
    background: var(--surface-soft);
}
.project-external.product-link:hover {
    background: #244a99;
    color: #fff;
}
.project-actions a span,
.project-actions button span {
    font-size: 13px;
}
.project-card[data-project="flowride"] .project-actions {
    margin-top: 22px;
}
.project-card[data-project="gradechelor"],
.project-card[data-project="sys-coos"] {
    align-self: stretch;
    height: 100%;
    min-height: 0;
}
/* Exact height balance on the Gradechelor / Sys-Coos row. */
.project-card[data-project="gradechelor"] .project-content,
.project-card[data-project="sys-coos"] .project-content {
    flex: 1;
}
.project-card[data-project="sys-coos"] .project-actions,
.project-card[data-project="gradechelor"] .project-actions {
    margin-top: auto;
}
.projects-outro {
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
    padding: 21px 0 19px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: none;
    border-radius: 0;
}
.projects-outro-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 750;
    color: var(--accent);
    white-space: nowrap;
}
.projects-outro p {
    max-width: 810px;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}
.timeline-projects-link {
    display: inline-flex;
    margin-top: 19px;
    gap: 12px;
    align-items: center;
    padding: 11px 15px;
    background: var(--accent-2);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}
.timeline-projects-link:hover {
    border-color: var(--accent);
}
/* Badminton: sober cards opening modals, non-exhaustive timeline. */
.association-highlights-intro {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    color: #b9cde8;
    font-weight: 700;
    margin-bottom: 4px;
}
.association-list {
    align-items: stretch;
}
.association-card {
    display: flex;
    flex-direction: column;
    min-height: 295px;
}
.association-summary {
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: auto;
}
.association-teaser {
    margin: 18px 0 20px;
}
.association-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    align-self: flex-start;
    margin-top: auto;
    border: 1px solid #bed0eb;
    background: #edf4ff;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    color: #234f90;
    cursor: pointer;
}
.association-open-button:hover {
    background: #dfeeff;
}
.association-dialog,
.lightbox-dialog {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 80px #071a3e5c;
}
.association-dialog {
    padding: 0;
    width: min(800px, calc(100vw - 30px));
    max-height: min(87dvh, 950px);
    overflow-y: auto;
}
.association-dialog::backdrop,
.lightbox-dialog::backdrop {
    background: #09172ecb;
    backdrop-filter: blur(5px);
}
.association-modal-inner {
    padding: 0 35px 32px;
}
.association-modal-intro {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.association-modal-intro h2 {
    font-size: clamp(40px, 6vw, 56px);
    margin: 6px 0 2px;
}
.association-modal-intro p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    max-width: 640px;
}
.association-modal-intro .association-modal-fullname {
    font-weight: 750;
    color: var(--text);
    font-size: 15px;
}
.association-modal-groups {
    display: grid;
    gap: 20px;
}
.association-modal-groups .association-group h3 {
    font-size: 16px;
    margin-top: 30px;
}
.association-modal-groups .association-group li {
    grid-template-columns: minmax(100px, 135px) 1fr;
    gap: 15px;
}
.association-modal-groups .association-group li span {
    font-weight: 450;
    font-size: 13px;
}
/* Close buttons with a perfectly centered cross. */
.project-dialog .dialog-close,
.association-dialog .dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
}
.project-dialog .dialog-close span,
.association-dialog .dialog-close span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    line-height: 1;
    font-size: 22px;
    font-weight: 400;
    transform: translateY(-1px);
}
/* Screenshots enlarged in a lightbox. The button is keyboard-operable. */
.screenshot-zoom {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    width: 100%;
    position: relative;
    text-align: left;
    cursor: zoom-in;
    border-radius: 9px;
    overflow: hidden;
    display: block;
}
.screenshot-zoom img {
    display: block;
    width: 100%;
    height: auto;
}
.zoom-label {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #172b49e8;
    color: #fff;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
    opacity: 0;
    transition: opacity 0.2s;
}
.screenshot-zoom:hover .zoom-label,
.screenshot-zoom:focus-visible .zoom-label {
    opacity: 1;
}
.lightbox-dialog {
    width: min(1420px, calc(100vw - 28px));
    max-height: 94dvh;
    overflow: hidden;
    padding: 0;
    background: #101c2d;
    color: #f8fbff;
    border-color: #526985;
}
.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px 9px;
    gap: 20px;
    font-size: 13px;
    font-weight: 650;
}
.lightbox-close {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid #8ba3bb71;
    border-radius: 9px;
    color: #fff;
    background: #ffffff16;
    cursor: pointer;
}
.lightbox-close:hover {
    background: #ffffff30;
}
.lightbox-stage {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
    padding: 0 12px;
}
.lightbox-stage img {
    display: block;
    width: 100%;
    height: calc(94dvh - 130px);
    max-height: 800px;
    min-height: 0;
    object-fit: contain;
}
.lightbox-nav {
    border: 1px solid #ffffff24;
    color: #fff;
    background: #ffffff16;
    border-radius: 10px;
    width: 42px;
    height: 52px;
    font-size: 32px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.lightbox-nav:hover {
    background: #ffffff35;
}
.lightbox-nav[hidden] {
    visibility: hidden;
    display: block;
    pointer-events: none;
}
.lightbox-caption {
    text-align: center;
    color: #c8d5e8;
    font-size: 11px;
    padding: 0 10px 10px;
}
.dialog-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}
.dialog-footer .dialog-external {
    margin: 0;
}
.dialog-footer .dialog-site-link,
.dialog-footer .dialog-product-link {
    font-size: 11px;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 9px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.dialog-footer .dialog-site-link {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--accent);
}
.dialog-footer .dialog-product-link {
    background: #315bb2;
    border: 1px solid #315bb2;
    color: #fff;
}
.dialog-footer .dialog-product-link:hover {
    background: #214883;
}
.dialog-footer .dialog-next {
    margin-left: auto;
}
.contact-card {
    min-height: 0;
}
.contact-actions {
    margin-bottom: 0;
}
.footer {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-block: 22px 42px;
}
.footer-links {
    justify-content: flex-end;
    gap: 14px 23px;
}
/* Dark theme: keep green for the small marker, not the main palette. */
:root[data-theme="dark"] .hero {
    background: radial-gradient(
        circle at 76% 47%,
        #23436d 0%,
        #162a48 44%,
        #0f1d32 83%
    );
}
:root[data-theme="dark"] .work-indicator {
    background: #42bb8d;
    box-shadow: 0 0 0 5px #30745e64;
}
:root[data-theme="dark"] .project-external.product-link,
:root[data-theme="dark"] .dialog-footer .dialog-product-link {
    color: #fff;
    background: #315bb2;
    border-color: #315bb2;
}
:root[data-theme="dark"] .project-more {
    background: #274470;
    color: #ebf3ff;
    border-color: #486ea3;
}
:root[data-theme="dark"] .association-open-button {
    background: #26436d;
    border-color: #5474a2;
    color: #eaf3ff;
}
:root[data-theme="dark"] .association-dialog {
    background: var(--surface);
}
@media (max-width: 1100px) {
    .hero-content {
        padding-left: 42px;
    }
    .hero h1 {
        font-size: clamp(54px, 6vw, 76px);
    }
    .hero-scroll {
        left: 42px;
    }
    .hero-portrait {
        width: 125%;
    }
    .floating-label-bottom {
        right: 10px;
    }
}
@media (max-width: 760px) {
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .hero-content {
        padding: 47px 28px 10px;
    }
    .hero h1 {
        font-size: clamp(47px, 9vw, 65px);
        margin-bottom: 15px;
    }
    .hero-role {
        font-size: clamp(23px, 5vw, 30px);
    }
    .hero-summary {
        font-size: 12.7px;
        line-height: 1.7;
    }
    .hero-portrait-wrap {
        min-height: 350px;
        height: 350px;
    }
    .hero-portrait {
        max-height: 480px;
        width: min(90%, 475px);
        bottom: -53px;
    }
    .hero-scroll {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 6px 28px 22px;
        align-self: flex-start;
        display: flex;
    }
    .floating-label-bottom {
        bottom: 18px;
        right: 14px;
        min-height: 54px;
        max-width: min(91vw, 320px);
    }
    .projects-outro {
        display: block;
    }
    .projects-outro-heading {
        display: block;
        margin-bottom: 7px;
    }
    .project-card[data-project="gradechelor"],
    .project-card[data-project="sys-coos"] {
        height: auto;
    }
    .association-modal-inner {
        padding: 0 22px 24px;
    }
    .lightbox-stage {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 3px;
        padding: 0 7px;
    }
    .lightbox-nav {
        width: 30px;
        height: 40px;
        font-size: 25px;
    }
    .lightbox-stage img {
        height: calc(94dvh - 125px);
    }
    .footer-links {
        justify-content: center;
    }
}
@media (max-width: 420px) {
    .hero-content {
        padding: 37px 21px 8px;
    }
    .hero h1 {
        font-size: clamp(40px, 11vw, 49px);
    }
    .hero-role {
        font-size: 22px;
    }
    .hero-summary {
        font-size: 12px;
    }
    .hero-portrait-wrap {
        min-height: 296px;
        height: 296px;
    }
    .hero-portrait {
        max-height: 409px;
        bottom: -45px;
    }
    .hero-scroll {
        margin-left: 21px;
        margin-bottom: 18px;
    }
    .floating-label-bottom {
        right: 8px;
        bottom: 12px;
        padding: 10px 11px;
    }
    .floating-label-bottom strong {
        font-size: 10px;
    }
    .project-actions {
        gap: 7px;
    }
    .project-actions .project-more,
    .project-actions .project-external {
        font-size: 10px;
    }
    .association-modal-groups .association-group li {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-grain {
        transition: none;
    }
    .zoom-label {
        transition: none;
    }
}
@media print {
    .association-dialog,
    .lightbox-dialog {
        display: none !important;
    }
    .hero {
        background: #fff !important;
        color: #17233a;
        box-shadow: none;
    }
    .hero h1,
    .hero h1 span,
    .hero-role,
    .hero-summary {
        color: #17233a;
    }
    .hero-scroll {
        display: none !important;
    }
}
/* Discreet secondary accents specific to each product universe. */
.project-visual[data-accent="mint"],
.project-card[data-project="flowride"] .project-visual {
    background: #e2f1ec;
}
.project-visual[data-accent="peach"] {
    background: #f6eee5;
}
.project-visual[data-accent="lavender"] {
    background: #eceaf5;
}
.project-visual[data-accent="blue"] {
    background: #e4ecf6;
}
:root[data-theme="dark"] .project-visual[data-accent] {
    background: #dce7f2;
}

/* ----------------------------------------------------------------------------
   5/5 · V6 FINISHING TOUCHES (former v6.css)
   Editorial hierarchy, professional links, micro-interactions and
   polish. Last layer of the cascade.
   ---------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 93px;
}
#formation {
    scroll-margin-top: 100px;
}

/* Role expressed as a typographic signature, no artificial slash. */
.hero {
    --hero-inset: 60px;
    display: grid;
    grid-template-areas: "heading portrait" "content portrait";
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    grid-template-rows: auto 1fr;
    min-height: 590px;
    padding-block: 0;
}
.hero-heading {
    grid-area: heading;
    position: relative;
    z-index: 3;
    padding: 44px 18px 0 var(--hero-inset);
}
.hero-content {
    grid-area: content;
    justify-content: flex-start;
    padding: 20px 18px 60px var(--hero-inset);
    min-width: 0;
}
.hero-portrait-wrap {
    grid-area: portrait;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: visible;
}
.hero-portrait {
    position: absolute;
    left: auto;
    right: 0;
    bottom: 0;
    transform: none;
    width: min(100%, 480px);
    height: auto;
    max-height: none;
    flex: 0 1 auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
    mask-image: linear-gradient(to right, transparent, #000 18%);
}
.hero h1 {
    margin-bottom: 23px;
}
.hero h1 span {
    margin-left: 0.12em;
}
.hero-role {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-left: 2px solid #85b5f2;
    padding-left: 17px;
    margin: 0;
    font-size: clamp(22px, 2.15vw, 29px);
    letter-spacing: -0.025em;
    line-height: 1.3;
}
.hero-role > span {
    margin: 0;
    color: #dce9ff;
    font-weight: 600;
}
.hero-summary {
    font-size: 13px;
    line-height: 1.76;
    max-width: 555px;
    margin-bottom: 23px;
}
.hero-cta {
    row-gap: 10px;
}
.hero-bottom {
    padding-top: 14px;
    margin-top: 0;
    font-size: 10px;
    color: #c3d2ea;
}

/* Social links: visible and direct, no oversized icon banner. */
.hero-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
    position: relative;
    z-index: 4;
    max-width: 570px;
}
.hero-socials-title {
    flex-basis: 100%;
    margin-bottom: 3px;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #bacce7;
    font-weight: 700;
}
.hero-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid #b7cdeb52;
    background: #ffffff0b;
    color: #e9f2ff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    min-height: 38px;
    transition:
        background 0.24s ease,
        border-color 0.24s ease,
        transform 0.24s ease,
        box-shadow 0.24s ease;
}
.hero-social:hover {
    background: #ffffff22;
    border-color: #b9d7fe90;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px #030d1f25;
}
.hero-social svg {
    width: 17px;
    height: 17px;
    flex: none;
}
.hero-social-gitlab {
    border-color: #b8cde88a;
    background: #ffffff20;
    color: #fff;
}
.hero-social-gitlab svg {
    color: #ffbc78;
}
.hero-social .social-external {
    font-size: 12px;
    color: #a6bce0;
    font-weight: 550;
}
.hero-socials a:focus-visible {
    outline-color: #b5d3ff;
}

/* Present context restored, green marker kept. */
.floating-label-bottom {
    z-index: 8;
}
.floating-label-bottom .work-indicator {
    background: #36a577;
    box-shadow: 0 0 0 5px #bce6d6;
}
.floating-label-bottom:hover .featured-arrow {
    transform: translateX(3px);
}
.featured-arrow {
    transition: transform 0.22s ease;
}

/* Each of the four cards is real keyboard and click navigation. */
.quick-facts .fact {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 0;
    transition:
        transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.28s,
        box-shadow 0.28s,
        background 0.28s;
}
.quick-facts .fact:focus-visible {
    outline: 3px solid #7799ea;
    outline-offset: 4px;
}
.quick-facts .fact:hover {
    transform: translateY(-5px);
    border-color: #bdcfe9;
    box-shadow: 0 14px 30px #1a396715;
    background: var(--surface);
}
.quick-facts .fact::after {
    content: "→";
    position: absolute;
    top: 13px;
    right: 11px;
    font-size: 15px;
    line-height: 1;
    color: var(--muted);
    opacity: 0;
    transform: translate(-4px, 0);
    transition:
        opacity 0.22s,
        transform 0.22s;
}
.quick-facts .fact:hover::after,
.quick-facts .fact:focus-visible::after {
    opacity: 0.8;
    transform: translate(0, 0);
}
.quick-facts .fact-icon {
    transition: transform 0.28s ease;
    background: #e5edfc;
    color: #315bb2;
}
.quick-facts .fact:hover .fact-icon {
    transform: scale(1.07) rotate(-4deg);
}
.quick-facts .fact:nth-child(2) .fact-icon {
    background: #dff1e9;
    color: #2c876a;
}
.quick-facts .fact:nth-child(3) .fact-icon {
    background: #ede8fb;
    color: #7453b3;
}
.quick-facts .fact:nth-child(4) .fact-icon {
    background: #fcebdc;
    color: #ab6b39;
}
:root[data-theme="dark"] .quick-facts .fact-icon {
    background: #263e64;
    color: #b4caff;
}
:root[data-theme="dark"] .quick-facts .fact:nth-child(2) .fact-icon {
    background: #244c41;
    color: #a0e1c6;
}
:root[data-theme="dark"] .quick-facts .fact:nth-child(3) .fact-icon {
    background: #393056;
    color: #d2bbff;
}
:root[data-theme="dark"] .quick-facts .fact:nth-child(4) .fact-icon {
    background: #4c382d;
    color: #f4c194;
}
.quick-facts .fact:nth-child(1) {
    transition-delay: 0ms;
}
.quick-facts .fact:nth-child(2) {
    transition-delay: 65ms;
}
.quick-facts .fact:nth-child(3) {
    transition-delay: 130ms;
}
.quick-facts .fact:nth-child(4) {
    transition-delay: 195ms;
}

/* A single set of projects, no filters distracting from the content. */
.section-projects .section-intro {
    margin-bottom: 31px;
}
.project-card {
    transition:
        transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.32s ease,
        border-color 0.3s ease,
        opacity 0.6s ease;
}
.project-shot-image {
    transition: transform 0.65s cubic-bezier(0.19, 0.65, 0.3, 1);
}
.project-card:hover .project-shot-image {
    transform: scale(1.045);
}
.project-card[data-project="sys-coos"] .project-visual {
    height: 286px;
    min-height: 0;
}
.project-card[data-project="sys-coos"] .visual-art {
    height: 76%;
    width: 88%;
}
.project-card[data-project="sys-coos"] .demo-browser {
    height: 100%;
}

/* Destination buttons in modals have guaranteed contrast. */
.project-dialog .dialog-footer .dialog-external {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 43px;
    padding: 11px 15px;
    border-radius: 10px;
    text-decoration: none;
    line-height: 1.2;
    font-size: 11px;
    font-weight: 720;
    transition:
        transform 0.23s ease,
        background 0.23s ease,
        border-color 0.23s ease,
        box-shadow 0.23s ease,
        opacity 0.23s ease;
}
.project-dialog .dialog-footer .dialog-site-link,
.project-dialog .dialog-footer .dialog-external:not(.dialog-product-link) {
    color: var(--text);
    background: var(--surface);
    border: 1px solid #b7c5dd;
}
.project-dialog .dialog-footer .dialog-site-link:hover,
.project-dialog
    .dialog-footer
    .dialog-external:not(.dialog-product-link):hover {
    background: var(--surface-soft);
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}
.project-dialog .dialog-footer .dialog-product-link {
    background: #274d98;
    border: 1px solid #274d98;
    color: #fff;
}
.project-dialog .dialog-footer .dialog-product-link:hover {
    background: #173e82;
    border-color: #173e82;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #0f2a5a28;
    opacity: 1;
}
:root[data-theme="dark"] .project-dialog .dialog-footer .dialog-site-link,
:root[data-theme="dark"]
    .project-dialog
    .dialog-footer
    .dialog-external:not(.dialog-product-link) {
    border-color: #788ba7;
    color: #edf3ff;
    background: #28374f;
}
:root[data-theme="dark"] .project-dialog .dialog-footer .dialog-product-link {
    background: #315db2;
    color: #fff;
    border-color: #315db2;
}

/* The × glyph was intrinsically off-center in the font: centered SVG cross. */
.project-dialog .dialog-close,
.association-dialog .dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    line-height: 1;
    padding: 0 9px 0 14px;
}
.project-dialog .dialog-close .dialog-close-icon,
.association-dialog .dialog-close .dialog-close-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    transform: none;
    padding: 0;
    line-height: 0;
}
.project-dialog .dialog-close .dialog-close-icon svg,
.association-dialog .dialog-close .dialog-close-icon svg {
    display: block;
    width: 13px;
    height: 13px;
    overflow: visible;
}
.dialog-close:hover {
    filter: brightness(0.97);
}
.dialog-meta {
    min-width: 0;
}
.dialog-meta-roles {
    margin-bottom: 19px;
}
.dialog-role-list {
    list-style: none;
    margin: 9px 0 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}
.dialog-role-list li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    font-weight: 650;
    font-size: 11px;
    line-height: 1.4;
    padding: 8px 12px;
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 9px;
}
.dialog-role-list li::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
    background: var(--accent);
}
.dialog-panel > * {
    animation: tab-soft-in 0.32s ease-out both;
}
.dialog-hero {
    animation: modal-soft-in 0.3s ease-out both;
}
.project-dialog[open],
.association-dialog[open],
.lightbox-dialog[open] {
    animation: modal-soft-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.project-dialog::backdrop,
.association-dialog::backdrop,
.lightbox-dialog::backdrop {
    animation: backdrop-soft-in 0.28s ease both;
}
.dialog-tabs .dialog-tab {
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}
.dialog-tabs .dialog-tab:hover {
    background: var(--surface-soft);
    color: var(--text);
}
.expertise-content > * {
    animation: tab-soft-in 0.33s ease-out both;
}
.expertise-tab {
    transition:
        color 0.2s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}
.technology-marquee .marquee-track {
    animation-duration: 52s;
}
.association-open-button {
    transition:
        background 0.23s,
        transform 0.23s ease,
        box-shadow 0.23s;
}
.association-open-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px #091c3f12;
}
@keyframes tab-soft-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes modal-soft-in {
    from {
        opacity: 0;
        transform: translateY(11px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes backdrop-soft-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes hero-breathe {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-12px, 6px, 0);
    }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-background-orb.orb-one {
        animation: hero-breathe 19s ease-in-out infinite alternate;
    }
    .hero-background-orb.orb-two {
        animation: hero-breathe 25s ease-in-out infinite alternate-reverse;
    }
}

@media (max-width: 1180px) {
    .hero {
        --hero-inset: 40px;
    }
    .hero h1 {
        font-size: clamp(49px, 5.65vw, 70px);
    }
    .hero-socials {
        gap: 6px;
    }
    .hero-social {
        font-size: 10px;
        padding: 8px 9px;
    }
}
@media (max-width: 960px) {
    .hero h1 {
        font-size: clamp(42px, 5.8vw, 61px);
    }
    .hero-socials-title {
        font-size: 8px;
    }
    .hero-social {
        min-height: 33px;
        padding: 7px 8px;
    }
    .hero-social .social-external {
        display: none;
    }
    .hero-role {
        font-size: 22px;
    }
    .hero-bottom {
        flex-wrap: wrap;
    }
}
@media (max-width: 760px) {
    .hero {
        grid-template-areas: "heading" "portrait" "content" "scroll";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        min-height: 0;
        padding: 32px 26px 22px;
    }
    .hero-heading {
        padding: 0;
        text-align: center;
    }
    .hero-content {
        padding: 24px 0 0;
        width: 100%;
    }
    .hero h1 {
        font-size: clamp(40px, 8.5vw, 60px);
        margin-bottom: 16px;
    }
    .hero-role {
        align-items: center;
        border: 0;
        padding: 0;
        gap: 5px;
        margin: 0;
        max-width: none;
        font-size: clamp(18px, 4.3vw, 23px);
    }
    .hero-portrait-wrap {
        flex-direction: column;
        align-items: center;
        min-height: 0;
        height: auto;
        padding: 20px 0 0;
    }
    .hero-portrait {
        position: relative;
        right: auto;
        width: min(76%, 260px);
        height: auto;
        max-height: none;
        bottom: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .portrait-frame-ring {
        width: 250px;
        height: 250px;
        bottom: 65px;
        box-shadow: none;
        opacity: 0.4;
    }
    .portrait-grid {
        display: none;
    }
    .hero-portrait-wrap .floating-label-bottom {
        position: relative;
        inset: auto;
        margin-top: -22px;
        width: min(100%, 310px);
        max-width: 100%;
        min-height: 56px;
        padding: 11px 13px;
        text-align: left;
    }
    .hero-portrait-wrap .floating-label-bottom strong {
        font-size: 11px;
    }
    .hero-cta {
        width: 100%;
        gap: 10px;
    }
    .hero-cta .button {
        flex: 1 1 140px;
        min-height: 48px;
        padding: 12px 14px;
        gap: 10px;
        font-size: 11px;
    }
    .hero-scroll {
        grid-area: scroll;
        position: static;
        margin: 24px 0 0;
        justify-self: start;
    }
    .hero-summary {
        font-size: 13px;
        max-width: 570px;
    }
    .hero-socials {
        margin-top: 19px;
        gap: 7px;
    }
    .hero-socials-title {
        font-size: 9px;
    }
    .hero-social {
        padding: 9px 11px;
        min-height: 38px;
        font-size: 11px;
    }
    .hero-bottom {
        padding-top: 19px;
        gap: 8px;
    }
    .hero-line {
        display: none;
    }
    .project-card[data-project="sys-coos"] .project-visual {
        height: 286px;
    }
    .dialog-role-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .dialog-meta-roles {
        margin-bottom: 7px;
    }
}
@media (max-width: 420px) {
    .hero {
        padding: 28px 20px 20px;
    }
    .hero-content {
        padding: 22px 0 0;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero-summary {
        font-size: 12px;
    }
    .hero-social {
        gap: 5px;
        padding: 9px;
        font-size: 10px;
    }
    .hero-social svg {
        width: 15px;
        height: 15px;
    }
    .hero-social .social-external {
        display: none;
    }
    .hero-scroll {
        margin-top: 22px;
        font-size: 8px;
    }
    .quick-facts .fact::after {
        display: none;
    }
    .project-card[data-project="sys-coos"] .project-visual {
        height: 270px;
    }
    .project-dialog .dialog-footer .dialog-external {
        flex: 1 1 auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-background-orb,
    .dialog-panel > *,
    .dialog-hero,
    .expertise-content > *,
    .project-dialog[open],
    .association-dialog[open],
    .lightbox-dialog[open],
    .project-dialog::backdrop,
    .association-dialog::backdrop,
    .lightbox-dialog::backdrop {
        animation: none !important;
    }
    .quick-facts .fact,
    .hero-social,
    .project-card,
    .project-shot-image {
        transition: none !important;
    }
}
@media print {
    .hero {
        display: block;
        min-height: 0;
        padding: 25px;
    }
    .hero-heading,
    .hero-content {
        padding: 0;
    }
    .hero-portrait-wrap {
        display: none;
    }
    .hero-socials {
        display: none;
    }
    .quick-facts .fact {
        text-decoration: none;
    }
    .quick-facts .fact::after {
        display: none;
    }
}

/* ----------------------------------------------------------------------------
   Modal scrollbars — scroll the inner wrapper so the bar stays inside the
   rounded frame instead of being clipped by the dialog's corner radius.
   ---------------------------------------------------------------------------- */
.project-dialog {
    overflow: clip;
}
.project-dialog .dialog-inner {
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: calc(min(90dvh, 1000px) - 24px);
    margin: 12px;
}
.association-dialog {
    overflow-y: clip;
}
.association-dialog .association-modal-inner {
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: calc(min(87dvh, 950px) - 24px);
    margin: 12px;
}

/* Thin rounded thumb on a transparent track (Firefox + WebKit/Blink). */
.project-dialog .dialog-inner,
.association-dialog .association-modal-inner {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent)
        transparent;
}
.project-dialog .dialog-inner::-webkit-scrollbar,
.association-dialog .association-modal-inner::-webkit-scrollbar {
    width: 10px;
}
.project-dialog .dialog-inner::-webkit-scrollbar-track,
.association-dialog .association-modal-inner::-webkit-scrollbar-track {
    background: transparent;
}
.project-dialog .dialog-inner::-webkit-scrollbar-thumb,
.association-dialog .association-modal-inner::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 55%, transparent);
    border: 3px solid transparent;
    border-radius: 8px;
    background-clip: padding-box;
}
.project-dialog .dialog-inner::-webkit-scrollbar-thumb:hover,
.association-dialog .association-modal-inner::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--muted) 80%, transparent);
    background-clip: padding-box;
}

/* Smaller dialog frame on mobile: keep the same inset ratio. */
@media (max-width: 760px) {
    .project-dialog .dialog-inner {
        max-height: calc(95dvh - 16px);
        margin: 8px;
    }
    .association-dialog .association-modal-inner {
        margin: 8px;
        max-height: calc(min(87dvh, 950px) - 16px);
    }
}
