/* Design tokens */
:root {
    /* Color */
    --accent: #0064FF;
    --accent-deep: #0048bf;
    --ink: #0b1220;
    --muted: #606b7a;
    --line: rgba(0, 100, 255, 0.18);
    --white: #ffffff;
    --mist: #f8fbff;

    /* Type */
    --font-display: "Work Sans", sans-serif;
    --font-body: "Work Sans", sans-serif;

    /* Layout */
    --header-height: 76px;
    --container: 1160px;
    --container-pad: max(22px, calc((100% - var(--container)) / 2));
    --shell-gutter: 44px;

    /* Shape and motion */
    --radius-control: 8px;
    --radius-surface: 10px;
    --ease-out: cubic-bezier(0.2, 0.85, 0.2, 1);
    --shadow-control: 0 10px 24px rgba(0, 100, 255, 0.1);
    --shadow-header: 0 8px 30px rgba(11, 18, 32, 0.035);
    --shadow-surface: 0 18px 48px rgba(11, 18, 32, 0.08);
    --shadow-surface-hover: 0 24px 64px rgba(11, 18, 32, 0.12);

    /* Image treatment */
    --filter-blue-glass: grayscale(1) sepia(1) saturate(4.6) hue-rotate(178deg) brightness(1.08) contrast(0.92);
    --filter-blue-geometry: grayscale(1) sepia(1) saturate(5.5) hue-rotate(178deg) brightness(1.04) contrast(0.96);
    --filter-blue-life: grayscale(1) sepia(1) saturate(4) hue-rotate(178deg) brightness(1.08) contrast(0.92);
    --wash-hero-white:
        linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.98) 38%, rgba(255, 255, 255, 0.76) 64%, rgba(255, 255, 255, 0.28) 100%);
    --wash-hero-color:
        linear-gradient(90deg, transparent 0%, rgba(0, 100, 255, 0.1) 52%, rgba(0, 100, 255, 0.3) 100%),
        radial-gradient(circle at 78% 48%, rgba(0, 100, 255, 0.22), transparent 24rem);
    --wash-mobile-white:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.68) 72%, rgba(255, 255, 255, 0.96) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.74) 48%, rgba(255, 255, 255, 0.42) 100%);
    --wash-mobile-color:
        radial-gradient(ellipse at 66% 64%, rgba(0, 100, 255, 0.3), transparent 24rem),
        linear-gradient(180deg, transparent 0%, rgba(0, 100, 255, 0.08) 66%, transparent 100%);
    --mask-glass: radial-gradient(ellipse at 54% 52%, #000 0%, rgba(0, 0, 0, 0.72) 46%, transparent 78%);
    --mask-glass-mobile: radial-gradient(ellipse at 56% 50%, #000 0%, rgba(0, 0, 0, 0.48) 42%, transparent 76%);
    --mask-geometry-mobile: radial-gradient(ellipse at 56% 50%, #000 0%, #000 48%, rgba(0, 0, 0, 0.72) 62%, transparent 82%);

    /* Project media */
    --project-image-fallback: linear-gradient(135deg, #edf4ff 0%, #dbeaff 52%, #ffffff 100%);
    --project-image-featured:
        linear-gradient(90deg, rgba(0, 100, 255, 0.72), rgba(0, 100, 255, 0.16) 58%, rgba(255, 255, 255, 0.08)),
        url("/img/textu.avif"),
        radial-gradient(circle at 78% 28%, rgba(0, 100, 255, 0.42), transparent 18rem),
        linear-gradient(135deg, #f7fbff 0%, #d9e9ff 46%, #ffffff 100%);
    --project-image-product:
        linear-gradient(90deg, rgba(0, 100, 255, 0.78), rgba(0, 100, 255, 0.18) 62%, rgba(255, 255, 255, 0.08)),
        url("/img/terminal.avif"),
        radial-gradient(circle at 78% 24%, rgba(0, 100, 255, 0.3), transparent 14rem),
        linear-gradient(160deg, #ffffff 0%, #e8f1ff 100%);
    --project-image-experiment:
        linear-gradient(90deg, rgba(0, 100, 255, 0.76), rgba(0, 100, 255, 0.2) 62%, rgba(255, 255, 255, 0.06)),
        url("/img/error_page.avif"),
        radial-gradient(circle at 26% 22%, rgba(0, 100, 255, 0.28), transparent 16rem),
        linear-gradient(145deg, #fafdff 0%, #e4efff 100%);
}

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 70% 4%, rgba(0, 100, 255, 0.11), transparent 22rem),
        linear-gradient(180deg, var(--white) 0%, var(--mist) 48%, var(--white) 100%);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

img,
svg {
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

:where(a, button):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--header-height);
    padding: 0 var(--container-pad);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
    border-bottom: 1px solid rgba(0, 100, 255, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-header);
}

.brand-word,
.nav-link,
.hero-headline,
.text-button,
.section-label,
.showcase-copy span,
.contact-email {
    font-family: var(--font-display);
    letter-spacing: 0;
}

.brand-word {
    color: var(--accent);
    font-size: 1.12rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
}

.brand-home.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    color: var(--accent);
    font-size: 2rem;
    font-style: italic;
    font-weight: 900;
}

.site-header>.brand-home.nav-link::after {
    display: none;
}

.brand-home.nav-link:hover {
    color: var(--accent-deep);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    position: relative;
    color: currentColor;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.site-header>.brand-word.nav-link::after {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 180ms ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Sections */
.page-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: 116px 0;
    overflow: hidden;
}

.section-shell {
    position: relative;
    z-index: 2;
    width: min(calc(100% - var(--shell-gutter)), var(--container));
    margin: 0 auto;
}

/* Hero */
.hero-section {
    min-height: 100svh;
    background:
        radial-gradient(circle at 78% 48%, rgba(0, 100, 255, 0.1), transparent 31rem),
        linear-gradient(112deg, rgba(0, 100, 255, 0.055), transparent 42%),
        linear-gradient(180deg, var(--white) 0%, #f8fbff 100%),
        var(--white);
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(ellipse at 96% 6%, rgba(0, 100, 255, 0.16) 0%, rgba(0, 100, 255, 0.075) 22%, transparent 52%),
        linear-gradient(132deg, transparent 0%, transparent 46%, rgba(0, 100, 255, 0.026) 72%, rgba(0, 100, 255, 0.072) 100%);
    mix-blend-mode: multiply;
    opacity: 0.76;
}

.hero-visual-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-visual-field::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--wash-hero-white);
    z-index: 3;
}

.hero-visual-field::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--wash-hero-color);
    mix-blend-mode: color;
    opacity: 0.88;
}

.hero-glass-field {
    position: absolute;
    top: 49%;
    right: max(-18vw, calc((100% - var(--container)) / 2 - 300px));
    z-index: 0;
    width: min(58vw, 820px);
    height: min(92svh, 860px);
    opacity: 0.17;
    transform: translate3d(0, -50%, 0) rotate(-3deg) scale(1.04);
    transform-origin: center;
    animation: glassDrift 18s ease-in-out infinite alternate;
    -webkit-mask-image: var(--mask-glass);
    mask-image: var(--mask-glass);
}

.hero-glass {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 50%;
    filter: var(--filter-blue-glass);
    mix-blend-mode: multiply;
}

.hero-geometry {
    position: absolute;
    top: 50%;
    right: max(-8vw, calc((100% - var(--container)) / 2 - 150px));
    z-index: 1;
    width: min(63vw, 900px);
    max-height: 88svh;
    object-fit: contain;
    opacity: 0.26;
    filter: var(--filter-blue-geometry);
    mix-blend-mode: multiply;
    transform: translate3d(0, -50%, 0) rotate(-1.5deg) scale(1.01);
    transform-origin: center;
    animation: geometryDrift 14s ease-in-out infinite alternate;
}

.hero-sweep {
    position: absolute;
    right: -12vw;
    top: 60%;
    z-index: 4;
    width: min(58vw, 760px);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 100, 255, 0.34), transparent);
    opacity: 0.24;
    transform: rotate(-9deg);
    animation: sweepGlide 9s ease-in-out infinite alternate;
}

.hero-copy {
    max-width: 850px;
    padding-top: 34px;
}

.hero-copy h1 {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 9.8rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.84;
    animation: titleArrive 760ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.hero-headline {
    max-width: 690px;
    margin-top: 34px;
    color: var(--ink);
    font-size: 2.36rem;
    font-weight: 700;
    line-height: 1.08;
}

.hero-word-rotator {
    position: relative;
    display: inline-block;
    width: 8.05ch;
    height: 1.08em;
    margin: 0 0.02em;
    vertical-align: -0.13em;
}

.hero-word-window {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3.24em;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.14) 14%, #000 43%, #000 57%, rgba(0, 0, 0, 0.14) 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.14) 14%, #000 43%, #000 57%, rgba(0, 0, 0, 0.14) 86%, transparent 100%);
}

.hero-word-track {
    display: grid;
    color: var(--accent);
    font-style: italic;
    font-weight: 900;
    line-height: 1.08;
    will-change: transform;
    animation: heroWordTicker 9.2s var(--ease-out) infinite;
}

.hero-word-track span {
    height: 1.08em;
    white-space: nowrap;
}

.hero-sentence {
    max-width: 540px;
    margin-top: calc(18px + 1.6rem);
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-control);
    background: var(--accent);
    box-shadow: var(--shadow-control);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        transform 160ms var(--ease-out);
}

.text-button:hover {
    border-color: var(--accent-deep);
    background: var(--accent-deep);
    transform: translateY(-2px);
}

.text-button:active {
    transform: translateY(0);
}

.text-button-quiet {
    background: transparent;
    box-shadow: none;
    color: var(--accent);
}

.text-button-quiet:hover {
    color: var(--white);
}

/* 404 */
.error-page-body {
    background: var(--white);
}

.error-page {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: 120px var(--container-pad) 92px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 48%, rgba(0, 100, 255, 0.1), transparent 31rem),
        linear-gradient(112deg, rgba(0, 100, 255, 0.055), transparent 42%),
        linear-gradient(180deg, var(--white) 0%, var(--mist) 100%),
        var(--white);
}

.error-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.error-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.98) 38%, rgba(255, 255, 255, 0.74) 68%, rgba(255, 255, 255, 0.34) 100%);
}

.error-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 100, 255, 0.1) 52%, rgba(0, 100, 255, 0.28) 100%),
        radial-gradient(circle at 78% 48%, rgba(0, 100, 255, 0.22), transparent 24rem);
    mix-blend-mode: color;
    opacity: 0.82;
}

.error-geometry {
    position: absolute;
    top: 50%;
    right: max(-8vw, calc((100% - var(--container)) / 2 - 150px));
    width: min(63vw, 900px);
    max-height: 88svh;
    object-fit: contain;
    opacity: 0.2;
    filter: var(--filter-blue-geometry);
    mix-blend-mode: multiply;
    transform: translate3d(0, -50%, 0) rotate(-1.5deg) scale(1.01);
    transform-origin: center;
    animation: geometryDrift 14s ease-in-out infinite alternate;
}

.error-sweep {
    position: absolute;
    right: -12vw;
    top: 60%;
    width: min(58vw, 760px);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 100, 255, 0.34), transparent);
    opacity: 0.22;
    transform: rotate(-9deg);
    animation: sweepGlide 9s ease-in-out infinite alternate;
}

.error-brand {
    position: absolute;
    top: 32px;
    left: var(--container-pad);
    z-index: 2;
    font-size: 2rem;
}

.error-content {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
}

.error-code {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(7rem, 18vw, 15rem);
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.72;
}

.error-content h1 {
    max-width: 680px;
    margin-top: 32px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 5.9rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.96;
}

.error-content>p:not(.error-code) {
    max-width: 560px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 500;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* Shared section layout */
.life-layout,
.work-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
    gap: 76px;
    align-items: center;
}

.section-intro {
    max-width: 760px;
}

.section-label {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.section-intro h2 {
    margin-top: 22px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.04;
}

.section-intro p:not(.section-label) {
    max-width: 620px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.64;
}

/* Life */
.life-section {
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(0, 100, 255, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 86% 48%, rgba(0, 100, 255, 0.11), transparent 27rem),
        linear-gradient(180deg, var(--white), var(--mist));
    background-size: 96px 96px, auto, auto;
}

.life-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.64) 100%),
        url("/img/keyboard.avif");
    background-position: center, right 5% center;
    background-size: cover, min(54vw, 760px) auto;
    background-repeat: no-repeat;
    filter: var(--filter-blue-life);
    mix-blend-mode: multiply;
    opacity: 0.16;
    animation: lifeTextureDrift 16s ease-in-out infinite alternate;
    pointer-events: none;
}

.work-section,
.contact-section {
    background:
        radial-gradient(circle at 16% 18%, rgba(0, 100, 255, 0.08), transparent 24rem),
        linear-gradient(180deg, var(--white), var(--mist));
}

.life-system {
    position: relative;
    display: grid;
    min-height: 430px;
    align-content: center;
    gap: 34px;
    padding-left: 34px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.life-system::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--accent);
}

.life-system::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    animation: lifeScan 5.8s ease-in-out infinite;
}

.history-line {
    position: relative;
    display: grid;
    gap: 18px;
}

.history-line::before {
    content: "";
    position: absolute;
    left: 58px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(0, 100, 255, 0.22);
}

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 24px;
    align-items: start;
}

.history-item::before,
.member-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 0.78rem;
    width: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
}

.life-system.visible .history-item::before,
.life-system.visible .member-item::before {
    animation: lifeTick 640ms ease both;
}

.life-system.visible .history-item:nth-child(2)::before {
    animation-delay: 140ms;
}

.life-system.visible .member-item:nth-child(2)::before {
    animation-delay: 280ms;
}

.history-item time,
.member-item span {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.35;
}

.history-item p,
.member-item p {
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.55;
}

.team-line {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(0, 100, 255, 0.14);
}

.member-item {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 100, 255, 0.14);
}

.member-item h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.12;
}

/* Work */
.work-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.showcase-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 260px;
    padding: 24px;
    border: 1px solid rgba(0, 100, 255, 0.1);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
    overflow: hidden;
    isolation: isolate;
    transition: box-shadow 260ms ease, transform 260ms var(--ease-out);
}

.showcase-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        var(--project-image, var(--project-image-fallback));
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
    transition: transform 620ms var(--ease-out);
}

.showcase-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(11, 18, 32, 0.02) 0%, rgba(11, 18, 32, 0.5) 100%),
        linear-gradient(90deg, rgba(0, 100, 255, 0.4), transparent 72%);
}

.showcase-item:hover::before {
    transform: scale(1.045);
}

.work-showcase.reveal .showcase-item {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
}

.work-showcase.visible .showcase-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 620ms ease,
        box-shadow 260ms ease,
        transform 620ms var(--ease-out);
}

.work-showcase.visible .showcase-item:nth-child(2) {
    transition-delay: 80ms;
}

.work-showcase.visible .showcase-item:nth-child(3) {
    transition-delay: 150ms;
}

.work-showcase.visible .showcase-item:hover {
    box-shadow: var(--shadow-surface-hover);
    transform: translateY(-3px) scale(1);
}

.showcase-item-featured {
    grid-column: span 2;
    min-height: 410px;
    --project-image: var(--project-image-featured);
}

.showcase-item-product {
    --project-image: var(--project-image-product);
}

.showcase-item-experiment {
    --project-image: var(--project-image-experiment);
}

.showcase-copy {
    max-width: 520px;
    color: var(--white);
}

.showcase-copy span {
    font-size: 0.84rem;
    font-weight: 800;
}

.showcase-copy h3 {
    margin-top: 10px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.showcase-copy p {
    max-width: 460px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
}

/* Contact */
.contact-layout {
    align-items: center;
    gap: 88px;
}

.contact-links {
    display: grid;
    width: 100%;
    gap: 32px;
    padding-top: 4px;
    font-style: normal;
}

.contact-primary {
    display: grid;
    gap: 14px;
}

.contact-primary>span {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
}

.contact-email {
    justify-self: start;
    color: var(--accent);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
}

.contact-email:hover {
    color: var(--accent-deep);
}

.social-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 100, 255, 0.14);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 24px rgba(11, 18, 32, 0.04);
    color: var(--ink);
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease,
        transform 160ms var(--ease-out);
}

.social-icon:hover {
    border-color: rgba(0, 100, 255, 0.28);
    background: rgba(0, 100, 255, 0.035);
    box-shadow: 0 14px 32px rgba(0, 100, 255, 0.08);
    color: var(--accent);
    transform: translateY(-2px);
}

.social-icon:active {
    transform: translateY(0);
}

.social-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.site-footer {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    align-items: start;
    justify-content: space-between;
    gap: 64px;
    padding: 46px var(--container-pad);
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-brand p,
.footer-note {
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-brand p {
    max-width: 280px;
    margin-top: 14px;
}

.footer-info {
    display: grid;
    gap: 22px;
}

.footer-info dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 36px;
}

.footer-info div {
    display: grid;
    gap: 4px;
}

.footer-info dt {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
}

.footer-info dd {
    color: var(--ink);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
}

.footer-info a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding-top: 4px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-note {
    margin-top: 2px;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes titleArrive {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes geometryDrift {
    0% {
        transform: translate3d(0, -50%, 0) rotate(-1.5deg) scale(1.01);
    }

    100% {
        transform: translate3d(-22px, calc(-50% - 10px), 0) rotate(-2.5deg) scale(1.035);
    }
}

@keyframes geometryMobileDrift {
    0% {
        transform: translate3d(-42%, -42%, 0) rotate(-2deg) scale(1.04);
    }

    100% {
        transform: translate3d(calc(-42% - 16px), calc(-42% - 10px), 0) rotate(-2.8deg) scale(1.07);
    }
}

@keyframes glassDrift {
    0% {
        transform: translate3d(0, -50%, 0) rotate(-3deg) scale(1.04);
    }

    100% {
        transform: translate3d(-18px, calc(-50% - 8px), 0) rotate(-4deg) scale(1.075);
    }
}

@keyframes glassMobileDrift {
    0% {
        transform: translate3d(-48%, -46%, 0) rotate(-5deg) scale(1.04);
    }

    100% {
        transform: translate3d(calc(-48% - 12px), calc(-46% - 8px), 0) rotate(-5.8deg) scale(1.07);
    }
}

@keyframes heroWordTicker {
    0%,
    17% {
        transform: translateY(0);
    }

    23%,
    40% {
        transform: translateY(-1.08em);
    }

    46%,
    63% {
        transform: translateY(-2.16em);
    }

    69%,
    86% {
        transform: translateY(-3.24em);
    }

    92%,
    100% {
        transform: translateY(-4.32em);
    }
}

@keyframes sweepGlide {
    0% {
        opacity: 0.24;
        translate: 0 0;
    }

    100% {
        opacity: 0.62;
        translate: -48px -12px;
    }
}

@keyframes lifeScan {

    0%,
    100% {
        transform: translateY(-20%);
        opacity: 0.18;
    }

    50% {
        transform: translateY(210%);
        opacity: 0.72;
    }
}

@keyframes lifeTick {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes lifeTextureDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1.02);
    }

    100% {
        transform: translate3d(-18px, -8px, 0) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    .hero-word-track {
        animation: none !important;
        transform: translateY(0) !important;
    }
}

/* Responsive */
@media (max-width: 980px) {

    .life-layout,
    .work-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-copy h1 {
        font-size: 6.7rem;
    }

    .hero-headline {
        font-size: 1.9rem;
    }

    .hero-word-rotator {
        width: 8.1ch;
    }

    .section-intro h2 {
        font-size: 3.6rem;
    }

    .hero-geometry {
        right: -18vw;
        width: min(78vw, 760px);
    }

    .hero-sweep {
        width: 62vw;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 66px;
        --container-pad: 18px;
    }

    .brand-home.nav-link {
        min-height: 48px;
        font-size: 1.55rem;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        padding: 18px;
        border-top: 1px solid rgba(0, 100, 255, 0.12);
        background: rgba(255, 255, 255, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav .nav-link {
        padding: 18px 0;
        border-bottom: 1px solid rgba(0, 100, 255, 0.12);
        font-size: 1rem;
    }

    .nav-link::after {
        bottom: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .page-section {
        min-height: auto;
        padding: 98px 0;
    }

    .hero-section {
        min-height: 100svh;
        background:
            radial-gradient(circle at 72% 72%, rgba(0, 100, 255, 0.12), transparent 19rem),
            linear-gradient(180deg, var(--white) 0%, #f8fbff 100%),
            var(--white);
    }

    .hero-copy {
        padding-top: 76px;
    }

    .hero-copy h1 {
        font-size: 4.6rem;
    }

    .hero-headline {
        margin-top: 24px;
        font-size: 1.45rem;
    }

    .hero-word-rotator {
        display: inline-grid;
        width: 8.2ch;
    }

    .hero-sentence,
    .section-intro p:not(.section-label) {
        font-size: 1rem;
    }

    .section-intro h2 {
        font-size: 2.68rem;
    }

    .life-section::before {
        background-position: center, right -22vw bottom 12%;
        background-size: cover, 94vw auto;
        opacity: 0.09;
    }

    .life-system {
        min-height: auto;
        gap: 28px;
        padding-left: 28px;
    }

    .history-line::before {
        left: 46px;
    }

    .history-item {
        grid-template-columns: 68px 1fr;
        gap: 16px;
    }

    .history-item::before,
    .member-item::before {
        left: -28px;
        width: 14px;
    }

    .member-item {
        padding: 18px 0;
    }

    .member-item h3 {
        font-size: 1.25rem;
    }

    .history-item p,
    .member-item p {
        font-size: 0.94rem;
    }

    .hero-visual-field::before {
        background: var(--wash-mobile-white);
    }

    .hero-visual-field::after {
        background: var(--wash-mobile-color);
        opacity: 0.62;
    }

    .hero-glass-field {
        top: 58%;
        right: auto;
        left: 50%;
        width: 148vw;
        height: 72svh;
        opacity: 0.08;
        transform: translate3d(-48%, -46%, 0) rotate(-5deg) scale(1.04);
        animation: glassMobileDrift 16s ease-in-out infinite alternate;
        -webkit-mask-image: var(--mask-glass-mobile);
        mask-image: var(--mask-glass-mobile);
    }

    .hero-geometry {
        top: 58%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: 172vw;
        height: 74svh;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: 56% 50%;
        opacity: 0.145;
        transform: translate3d(-42%, -42%, 0) rotate(-2deg) scale(1.04);
        -webkit-mask-image: var(--mask-geometry-mobile);
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-image: var(--mask-geometry-mobile);
        mask-repeat: no-repeat;
        mask-size: 100% 100%;
        animation: geometryMobileDrift 12s ease-in-out infinite alternate;
    }

    .hero-sweep {
        top: auto;
        bottom: 24vh;
        width: 92vw;
        opacity: 0.16;
    }

    .error-page {
        align-items: flex-start;
        padding: 118px var(--container-pad) 76px;
        background:
            radial-gradient(circle at 72% 72%, rgba(0, 100, 255, 0.12), transparent 19rem),
            linear-gradient(180deg, var(--white) 0%, #f8fbff 100%),
            var(--white);
    }

    .error-brand {
        top: 22px;
        left: var(--container-pad);
        font-size: 1.55rem;
    }

    .error-atmosphere::before {
        background: var(--wash-mobile-white);
    }

    .error-atmosphere::after {
        background: var(--wash-mobile-color);
        opacity: 0.62;
    }

    .error-geometry {
        top: 58%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: 172vw;
        height: 74svh;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: 56% 50%;
        opacity: 0.13;
        transform: translate3d(-42%, -42%, 0) rotate(-2deg) scale(1.04);
        -webkit-mask-image: var(--mask-geometry-mobile);
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-image: var(--mask-geometry-mobile);
        mask-repeat: no-repeat;
        mask-size: 100% 100%;
        animation: geometryMobileDrift 12s ease-in-out infinite alternate;
    }

    .error-sweep {
        top: auto;
        bottom: 24vh;
        width: 92vw;
        opacity: 0.14;
    }

    .error-code {
        font-size: 7.2rem;
    }

    .error-content h1 {
        margin-top: 24px;
        font-size: 3rem;
    }

    .error-content>p:not(.error-code) {
        font-size: 1rem;
    }

    .work-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-item,
    .showcase-item-featured {
        grid-column: auto;
        min-height: 300px;
    }

    .showcase-copy h3 {
        font-size: 1.72rem;
    }
}

@media (max-width: 480px) {
    :root {
        --shell-gutter: 28px;
    }

    .hero-copy h1 {
        font-size: 3.35rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .text-button {
        width: 100%;
    }

    .error-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .error-geometry {
        top: 60%;
        width: 198vw;
        height: 76svh;
        opacity: 0.12;
    }

    .section-intro h2 {
        font-size: 2.12rem;
    }

    .member-item h3,
    .showcase-copy h3 {
        font-size: 1.08rem;
    }

    .contact-email {
        font-size: 1.45rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon svg {
        width: 25px;
        height: 25px;
    }

    .hero-geometry {
        top: 60%;
        width: 198vw;
        height: 76svh;
        opacity: 0.13;
    }

    .hero-glass-field {
        top: 61%;
        width: 182vw;
        height: 76svh;
        opacity: 0.065;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .footer-info dl {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
