@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --page: #080808;
    --page-deep: #050505;
    --surface: #111114;
    --surface-raised: #17171b;
    --surface-soft: rgba(255, 255, 255, 0.045);
    --ink: #f3f0e9;
    --muted: #aaa59c;
    --quiet: #706d67;
    --line: rgba(243, 240, 233, 0.13);
    --line-soft: rgba(243, 240, 233, 0.08);
    --lime: #d8f27c;
    --violet: #a99bff;
    --peach: #ffad86;
    --danger: #ff8d8d;
    --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
    --page-gutter: clamp(20px, 4vw, 72px);
    --content-width: 1320px;
    --header-height: 88px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(169, 155, 255, 0.08), transparent 28rem),
        radial-gradient(circle at 92% 30%, rgba(216, 242, 124, 0.035), transparent 26rem),
        var(--page);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: '';
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    content: '';
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

body.page-home {
    background: var(--page-deep);
}

body.menu-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

img,
video {
    max-width: 100%;
}

::selection {
    color: var(--page);
    background: var(--lime);
}

*:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    padding: 18px var(--page-gutter);
    pointer-events: none;
}

.site-header.is-scrolled {
    padding-top: 12px;
}

.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--content-width));
    min-height: 52px;
    margin: 0 auto;
    padding: 8px 10px 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.72);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(24px) saturate(130%);
    pointer-events: auto;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.is-scrolled .site-bar {
    border-color: rgba(216, 242, 124, 0.2);
    background: rgba(12, 12, 13, 0.88);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.site-brand-mark {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(216, 242, 124, 0.8);
    border-radius: 10px;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: -0.09em;
    line-height: 1;
    transform: rotate(-5deg);
}

.site-brand-copy {
    display: grid;
    gap: 0;
    line-height: 1.1;
}

.site-brand-copy small {
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.53rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 20px;
}

.site-nav-link,
.site-social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 600;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav-link {
    padding: 0 14px;
}

.site-nav-link:hover,
.site-nav-link[aria-current='page'] {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
}

.site-nav-link[aria-current='page']::after {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lime);
    content: '';
    transform: translateX(-50%);
}

.site-socials {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-left: 14px;
    border-left: 1px solid var(--line-soft);
}

.site-social-link {
    width: 34px;
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.65rem;
}

.site-social-link:hover {
    color: var(--lime);
    transform: translateY(-2px);
}

.site-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.site-menu-toggle span,
.site-menu-toggle::before,
.site-menu-toggle::after {
    display: block;
    width: 14px;
    height: 1px;
    margin: 3px auto;
    background: currentColor;
    content: '';
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-mobile-menu {
    display: none;
    width: min(100%, var(--content-width));
    margin: 8px auto 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(13, 13, 15, 0.95);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

.site-mobile-menu.is-open {
    display: grid;
}

.site-mobile-link {
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--muted);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 600;
}

.site-mobile-link:hover,
.site-mobile-link[aria-current='page'] {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}

.page-main {
    position: relative;
    z-index: 1;
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: calc(var(--header-height) + 74px) var(--page-gutter) 100px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(216, 242, 124, 0.08);
    content: '';
}

.section-label {
    margin: 0 0 18px;
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.display-title {
    margin: 20px 0 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(3.5rem, 8vw, 7.8rem);
    font-weight: 600;
    letter-spacing: -0.085em;
    line-height: 0.91;
}

.display-title em {
    color: var(--lime);
    font-style: normal;
}

.lede {
    max-width: 560px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.75;
}

.lede strong {
    color: var(--ink);
    font-weight: 600;
}

.button-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button::after {
    color: var(--lime);
    content: '↗';
    font-size: 1rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.button:hover {
    border-color: rgba(216, 242, 124, 0.55);
    background: rgba(216, 242, 124, 0.08);
    transform: translateY(-2px);
}

.button:hover::after {
    transform: translate(2px, -2px);
}

.button-primary {
    border-color: var(--lime);
    background: var(--lime);
    color: #11120d;
}

.button-primary::after {
    color: #11120d;
}

.button-primary:hover {
    border-color: var(--lime);
    background: #e4fb91;
}

.button-small {
    min-height: 38px;
    padding-inline: 15px;
    font-size: 0.68rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.04em;
}

.pill-accent {
    border-color: rgba(216, 242, 124, 0.28);
    color: var(--lime);
    background: rgba(216, 242, 124, 0.06);
}

.pill-violet {
    border-color: rgba(169, 155, 255, 0.3);
    color: var(--violet);
    background: rgba(169, 155, 255, 0.07);
}

.site-footer {
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 28px var(--page-gutter) 38px;
    border-top: 1px solid var(--line-soft);
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--lime);
}

/* Home */
.home-stage {
    position: relative;
    display: flex;
    min-height: 100svh;
    overflow: hidden;
    padding: 136px var(--page-gutter) 42px;
}

.home-stage::before {
    position: absolute;
    inset: 14% 12% 8% 46%;
    border: 1px solid rgba(243, 240, 233, 0.07);
    border-radius: 48% 52% 50% 45%;
    content: '';
    opacity: 0.5;
    transform: rotate(-15deg);
}

.home-stage::after {
    position: absolute;
    right: 5%;
    bottom: -40%;
    width: 65vw;
    height: 65vw;
    border: 1px solid rgba(216, 242, 124, 0.06);
    border-radius: 50%;
    content: '';
}

.home-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    align-items: center;
    gap: clamp(28px, 7vw, 120px);
    width: min(100%, var(--content-width));
    margin: auto;
}

.home-copy {
    max-width: 720px;
}

.home-title {
    max-width: 780px;
    margin-top: 27px;
    font-size: clamp(4.7rem, 11vw, 10.9rem);
    line-height: 0.83;
}

.home-title .title-line {
    display: block;
}

.home-title .title-line:nth-child(2) {
    padding-left: clamp(28px, 7vw, 100px);
    color: var(--muted);
}

.home-title .title-line:nth-child(2)::first-letter {
    color: var(--ink);
}

.home-subline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 27px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.71rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-subline::before {
    width: 32px;
    height: 1px;
    background: var(--lime);
    content: '';
}

.home-lede {
    max-width: 480px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.home-visual {
    position: relative;
    display: grid;
    width: min(100%, 580px);
    aspect-ratio: 1 / 1.03;
    min-height: 380px;
    margin-left: auto;
    place-items: center;
}

.home-visual::before {
    position: absolute;
    inset: 9% 5% 8% 8%;
    border: 1px dashed rgba(243, 240, 233, 0.2);
    border-radius: 50%;
    content: '';
    transform: rotate(26deg);
}

.home-visual::after {
    position: absolute;
    inset: 17% 15% 19% 13%;
    border: 1px solid rgba(169, 155, 255, 0.32);
    border-radius: 45% 55% 48% 52%;
    content: '';
    transform: rotate(-31deg);
}

.visual-grid {
    position: absolute;
    inset: 18% 12%;
    background-image:
        linear-gradient(rgba(216, 242, 124, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 242, 124, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse, black 25%, transparent 71%);
    opacity: 0.46;
    transform: perspective(620px) rotateX(62deg) rotateZ(-20deg) scale(1.18);
}

.visual-core {
    position: relative;
    z-index: 2;
    display: grid;
    width: 42%;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(216, 242, 124, 0.55);
    border-radius: 39% 61% 55% 45%;
    background: radial-gradient(circle at 32% 26%, rgba(216, 242, 124, 0.22), transparent 46%), rgba(216, 242, 124, 0.04);
    box-shadow: 0 0 90px rgba(216, 242, 124, 0.08), inset 0 0 45px rgba(216, 242, 124, 0.05);
    animation: visual-float 8s ease-in-out infinite;
    transform: rotate(19deg);
}

.visual-core::after {
    width: 28%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 38px rgba(216, 242, 124, 0.6);
    content: '';
}

@keyframes visual-float {
    0%, 100% { transform: rotate(19deg) translate3d(0, 0, 0); }
    50% { transform: rotate(23deg) translate3d(0, -12px, 0); }
}

/* Shared internal page intro */
.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.47fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 65px;
}

.page-intro-copy p:last-child {
    max-width: 530px;
}

.page-intro-note {
    padding: 18px 0 0 22px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.81rem;
    line-height: 1.8;
}

.page-intro-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.rule {
    width: 100%;
    height: 1px;
    margin: 28px 0;
    background: linear-gradient(90deg, var(--lime), rgba(216, 242, 124, 0.07) 55%, transparent);
}

/* Work */
.work-intro .display-title {
    max-width: 700px;
}

.work-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(216, 242, 124, 0.08);
}

.masonry-feed {
    columns: 3 250px;
    column-gap: clamp(12px, 1.6vw, 22px);
    width: 100%;
}

.feed-card {
    position: relative;
    display: block;
    break-inside: avoid;
    margin: 0 0 clamp(12px, 1.6vw, 22px);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
    isolation: isolate;
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.feed-card:nth-child(3n + 2) {
    border-radius: 32px 13px 27px 13px;
}

.feed-card:nth-child(3n) {
    border-radius: 13px 28px 13px 28px;
}

.feed-card:hover,
.feed-card:focus-visible {
    border-color: rgba(216, 242, 124, 0.48);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(216, 242, 124, 0.08);
    transform: translateY(-5px);
}

.feed-card-media {
    display: block;
    width: 100%;
    height: auto;
    background: #171719;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease;
}

.feed-card:hover .feed-card-media,
.feed-card:focus-visible .feed-card-media {
    filter: saturate(1.08) contrast(1.02);
    transform: scale(1.035);
}

.feed-card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 38%;
    padding: 54px 17px 16px;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.feed-card:hover .feed-card-overlay,
.feed-card:focus-visible .feed-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.feed-card-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.feed-card-description {
    margin: 5px 0 0;
    color: rgba(243, 240, 233, 0.66);
    font-size: 0.68rem;
    line-height: 1.45;
}

.feed-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
    color: rgba(243, 240, 233, 0.46);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.variant-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border: 1px solid rgba(216, 242, 124, 0.35);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.7);
    color: var(--lime);
    font-family: var(--mono);
    font-size: 0.57rem;
    letter-spacing: 0.06em;
    backdrop-filter: blur(12px);
}

#loading {
    display: block;
    min-height: 100px;
}

.spinner {
    width: 30px;
    height: 30px;
    margin: 70px auto;
    border: 1px solid rgba(216, 242, 124, 0.2);
    border-top-color: var(--lime);
    border-radius: 50%;
    animation: spin 850ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    padding: 90px 20px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.empty-state p {
    margin: 0;
}

/* Work detail dialog */
#detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    overflow-y: auto;
    padding: clamp(12px, 3vw, 38px);
    background: rgba(4, 4, 5, 0.78);
    backdrop-filter: blur(18px) saturate(110%);
}

#detail-overlay.open {
    display: block;
}

.detail-card {
    display: flex;
    flex-direction: column;
    width: min(100%, 1220px);
    min-height: calc(100vh - clamp(24px, 6vw, 76px));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: rgba(16, 16, 18, 0.94);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px 0;
}

.detail-kicker {
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.59rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#detail-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#detail-close:hover {
    border-color: var(--lime);
    color: var(--lime);
    transform: rotate(8deg);
}

.detail-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: clamp(26px, 5vw, 72px);
    align-items: start;
    padding: 25px clamp(20px, 5vw, 64px) 58px;
}

.detail-left {
    min-width: 0;
}

#detail-media-wrap {
    display: grid;
    min-height: 240px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 17px;
    background: #080809;
}

#detail-main-media {
    display: block;
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
}

.variants-row {
    display: flex;
    gap: 9px;
    width: 100%;
    margin-top: 13px;
    overflow-x: auto;
    padding: 2px 2px 6px;
}

.variant-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #080809;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.46;
    transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.variant-thumb:hover,
.variant-thumb.active {
    border-color: var(--lime);
    opacity: 1;
    transform: translateY(-2px);
}

.detail-right {
    align-self: stretch;
    padding: 17px 0 0 27px;
    border-left: 1px solid var(--line);
}

.detail-right h2 {
    margin: 16px 0 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.55rem);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.96;
}

#detail-desc {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.85;
}

#detail-desc p {
    margin: 0 0 0.9em;
}

#detail-desc a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.59rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-note::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime);
    content: '';
}

/* About */
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.72fr);
    gap: clamp(36px, 8vw, 120px);
    align-items: end;
}

.about-title {
    max-width: 760px;
}

.about-title span {
    display: block;
}

.about-title span:last-child {
    padding-left: clamp(26px, 5vw, 80px);
    color: var(--violet);
}

.about-stamp {
    position: relative;
    min-height: 300px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(169, 155, 255, 0.12), rgba(216, 242, 124, 0.03));
}

.about-stamp::before,
.about-stamp::after {
    position: absolute;
    border: 1px solid rgba(169, 155, 255, 0.32);
    border-radius: 50%;
    content: '';
}

.about-stamp::before {
    right: -24%;
    bottom: -35%;
    width: 85%;
    aspect-ratio: 1;
}

.about-stamp::after {
    right: 4%;
    bottom: -9%;
    width: 56%;
    aspect-ratio: 1;
    border-color: rgba(216, 242, 124, 0.35);
}

.stamp-label {
    position: relative;
    z-index: 1;
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stamp-mark {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 1;
    color: var(--lime);
    font-family: var(--display);
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -0.15em;
    line-height: 0.8;
    transform: rotate(-8deg);
}

.stamp-meta {
    position: absolute;
    bottom: 28px;
    left: 27px;
    z-index: 1;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    line-height: 1.8;
    text-transform: uppercase;
}

.about-body {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    gap: clamp(40px, 8vw, 120px);
    margin-top: 92px;
}

.about-copy {
    max-width: 670px;
}

.about-copy p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

.about-copy p:first-child {
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}

.fact-card {
    min-height: 108px;
    padding: 17px;
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.fact-card small {
    display: block;
    margin-bottom: 13px;
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fact-card strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.03rem;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.tool-list {
    border-top: 1px solid var(--line);
}

.tool-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--line-soft);
}

.tool-number {
    color: var(--lime);
    font-family: var(--mono);
    font-size: 0.62rem;
}

.tool-name {
    color: var(--ink);
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.tool-detail {
    color: var(--quiet);
    font-size: 0.67rem;
    text-align: right;
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 86px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
}

.about-cta p {
    margin: 0;
    color: var(--muted);
    font-family: var(--display);
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    letter-spacing: -0.055em;
    line-height: 1.1;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(460px, 0.95fr) minmax(420px, 1.05fr);
    gap: clamp(34px, 5vw, 78px);
    align-items: start;
}

.contact-layout > * {
    min-width: 0;
}

.contact-title {
    max-width: 570px;
    font-size: clamp(3.25rem, 6.5vw, 6.5rem);
    overflow-wrap: normal;
    word-break: normal;
}

.contact-title span {
    display: block;
    max-width: 100%;
}

.contact-title span:last-child {
    padding-left: clamp(14px, 2.5vw, 32px);
    white-space: nowrap;
    color: var(--violet);
}

.contact-side-copy {
    max-width: 420px;
}

.contact-side-copy .lede {
    margin-top: 22px;
}

.contact-types {
    margin-top: 36px;
}

.contact-types .section-label {
    margin-bottom: 11px;
}

.contact-socials {
    display: grid;
    gap: 0;
    margin-top: 50px;
    border-top: 1px solid var(--line);
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    transition: color 180ms ease, padding 180ms ease;
}

.contact-social-link::after {
    color: var(--quiet);
    content: '↗';
    font-size: 1rem;
    transition: color 180ms ease, transform 180ms ease;
}

.contact-social-link:hover {
    padding-inline: 5px;
    color: var(--lime);
}

.contact-social-link:hover::after {
    color: var(--lime);
    transform: translate(3px, -3px);
}

.contact-form-card {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.form-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.form-card-heading h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1;
}

.form-card-heading p {
    max-width: 185px;
    margin: 0;
    color: var(--quiet);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    line-height: 1.55;
    text-align: right;
    text-transform: uppercase;
}

.contact-form {
    display: grid;
    gap: 22px;
}

.field-wrap label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    outline: none;
    background: rgba(5, 5, 6, 0.52);
    color: var(--ink);
    font-size: 0.84rem;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field-input::placeholder {
    color: rgba(243, 240, 233, 0.26);
}

.field-input:focus {
    border-color: rgba(216, 242, 124, 0.55);
    background: rgba(216, 242, 124, 0.035);
    box-shadow: 0 0 0 4px rgba(216, 242, 124, 0.07);
}

select.field-input {
    cursor: pointer;
}

select.field-input option {
    background: #111114;
    color: var(--ink);
}

textarea.field-input {
    min-height: 142px;
    resize: vertical;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--lime);
    border-radius: 999px;
    background: var(--lime);
    color: #11120d;
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.submit-btn::after {
    margin-left: 10px;
    content: '↗';
    font-size: 1rem;
}

.submit-btn:hover {
    background: #e4fb91;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.56;
    transform: none;
}

.form-error-msg {
    display: none;
    padding: 11px 13px;
    border: 1px solid rgba(255, 141, 141, 0.24);
    border-radius: 10px;
    background: rgba(255, 141, 141, 0.06);
    color: var(--danger);
    font-size: 0.72rem;
}

.form-error-msg.show {
    display: block;
}

.form-success {
    display: none;
    padding: 38px 5px 8px;
    text-align: center;
}

.form-success.show {
    display: block;
}

.success-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid rgba(216, 242, 124, 0.42);
    border-radius: 50%;
    color: var(--lime);
    font-size: 1.35rem;
}

.form-success h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.6rem;
    letter-spacing: -0.06em;
}

.form-success p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Utilities and responsive behavior */
.hidden {
    display: none !important;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

[data-reveal-delay='1'] { animation-delay: 100ms; }
[data-reveal-delay='2'] { animation-delay: 180ms; }
[data-reveal-delay='3'] { animation-delay: 260ms; }
[data-reveal-delay='4'] { animation-delay: 340ms; }

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .site-nav-links,
    .site-socials {
        display: none;
    }

    .site-menu-toggle {
        display: block;
    }

    .home-grid,
    .page-intro,
    .about-hero,
    .about-body,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .home-stage {
        padding-top: 126px;
    }

    .home-grid {
        align-content: center;
        gap: 14px;
    }

    .home-visual {
        width: min(100%, 520px);
        min-height: 300px;
        margin: 0 auto;
        opacity: 0.76;
    }

    .page-intro {
        gap: 22px;
        margin-bottom: 48px;
    }

    .page-intro-note {
        max-width: 520px;
    }

    .work-legend {
        justify-content: flex-start;
    }

    .about-stamp {
        min-height: 230px;
        max-width: 540px;
    }

    .about-body {
        margin-top: 60px;
    }

    .contact-form-card {
        max-width: 680px;
    }

    .detail-inner {
        grid-template-columns: 1fr;
    }

    .detail-right {
        padding: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 1050px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 62px;
    }

    .contact-title {
        max-width: 760px;
    }
}

@media (max-width: 560px) {
    :root {
        --page-gutter: 17px;
        --header-height: 76px;
    }

    .site-header {
        padding-top: 12px;
    }

    .site-bar {
        min-height: 48px;
        padding-left: 12px;
    }

    .site-brand-copy small {
        display: none;
    }

    .page-main {
        padding-top: calc(var(--header-height) + 54px);
        padding-bottom: 72px;
    }

    .display-title {
        font-size: clamp(3.35rem, 17vw, 5.8rem);
    }

    .home-stage {
        min-height: 100svh;
        padding-top: 100px;
        padding-bottom: 22px;
    }

    .home-title {
        font-size: clamp(4rem, 21vw, 7rem);
    }

    .home-title .title-line:nth-child(2) {
        padding-left: 25px;
    }

    .contact-title {
        font-size: clamp(2.85rem, 15vw, 5.3rem);
    }

    .contact-title span:last-child {
        padding-left: 14px;
    }

    .home-visual {
        min-height: 220px;
        margin-top: 4px;
    }

    .home-lede {
        font-size: 0.86rem;
    }

    .about-facts {
        grid-template-columns: 1fr;
    }

    .tool-row {
        grid-template-columns: 34px 1fr;
    }

    .tool-detail {
        grid-column: 2;
        text-align: left;
    }

    .about-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-card-heading {
        flex-direction: column;
        gap: 10px;
    }

    .form-card-heading p {
        max-width: none;
        text-align: left;
    }

    .detail-card {
        border-radius: 18px;
    }

    .detail-inner {
        padding: 18px 15px 34px;
    }

    .detail-card-header {
        padding-inline: 15px;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

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