:root {
    --bg: #0d0d0c;
    --bg-2: #141413;
    --surface: #1c1b19;
    --border: #2a2926;
    --border-strong: #3a3833;
    --fg: #ece7df;
    --fg-2: #a8a29a;
    --muted: #6b655d;
    --accent: #d4a847;
    --accent-2: #e6c170;
    --accent-dim: rgba(212, 168, 71, 0.12);
    --accent-glow: rgba(212, 168, 71, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 70% -10%, var(--accent-glow), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(212, 168, 71, 0.06), transparent 55%);
    pointer-events: none;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 9999;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--accent-glow);
}

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

img {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
}

#site-header.scrolled {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-mark {
    color: var(--fg);
    transition: color 0.3s var(--ease);
}

.logo-mark:hover {
    color: var(--accent);
}

.logo-svg {
    display: block;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-2);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--fg);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.menu-trigger {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 200;
}

.menu-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--fg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.2s;
}

.menu-bar::before,
.menu-bar::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: var(--fg);
    left: 0;
    transition: transform 0.3s var(--ease-out);
}

.menu-bar::before {
    top: -7px;
}

.menu-bar::after {
    top: 7px;
}

.menu-trigger.open .menu-bar {
    background: transparent;
}

.menu-trigger.open .menu-bar::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-trigger.open .menu-bar::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.mobile-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.section-intro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
}

.intro-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px 280px;
    gap: 48px;
    align-items: end;
}

.label-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 14px;
    margin-bottom: 32px;
    background: var(--accent-dim);
    backdrop-filter: blur(4px);
}

.label-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.intro-headline {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--fg);
}

.intro-headline .italic {
    font-style: italic;
    color: var(--accent);
}

.hl-line {
    display: block;
    overflow: hidden;
}

.hl-char {
    display: inline-block;
    transform: translateY(0);
    will-change: transform, opacity;
}

.hl-space {
    display: inline-block;
    width: 0.28em;
}

body.js-ready .hl-char {
    transform: translateY(110%);
    opacity: 0;
    animation: charReveal 0.7s var(--ease-out) forwards;
    animation-delay: calc(var(--char-i) * 0.035s);
}

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

.intro-meta {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.meta-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--fg);
    line-height: 1;
    letter-spacing: -0.02em;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.intro-col-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.image-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(30%) contrast(1.05);
    transition: filter 0.5s var(--ease);
}

.image-frame:hover img {
    filter: grayscale(0%) contrast(1);
}

.image-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.intro-col-aside {
    padding-bottom: 16px;
}

.aside-text {
    font-size: 0.9375rem;
    color: var(--fg-2);
    line-height: 1.7;
    margin-bottom: 32px;
}

.aside-highlight {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.aside-highlight:hover {
    color: var(--fg);
    border-color: var(--fg);
}

.about-body a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.about-body a:hover {
    color: var(--fg);
    border-color: var(--fg);
}

.aside-links {
    display: flex;
    gap: 16px;
}

.icon-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--fg-2);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.icon-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.icon-link svg {
    width: 18px;
    height: 18px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-hint span {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

.section-about {
    padding: 120px 40px;
    position: relative;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 64px;
}

.about-label {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vertical-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    height: fit-content;
}

.label-number {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent);
    font-style: italic;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.about-pull-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.3;
    color: var(--fg);
    font-style: italic;
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
}

.about-body p {
    color: var(--fg-2);
    margin-bottom: 20px;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.marquee-strip {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--muted);
    font-style: italic;
    flex-shrink: 0;
}

.marquee-track .dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    align-self: center;
    display: inline-block;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.section-craft {
    padding: 120px 40px;
}

.craft-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.craft-header {
    margin-bottom: 64px;
}

.craft-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-top: 16px;
}

.craft-title em {
    color: var(--accent);
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.craft-card {
    background: linear-gradient(160deg, var(--bg-2), var(--surface));
    border: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.craft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.craft-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.craft-card:hover::before {
    opacity: 1;
}

.craft-card-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--accent);
    font-style: italic;
    display: block;
    margin-bottom: 24px;
}

.craft-card h3 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.craft-list li {
    font-size: 0.875rem;
    color: var(--fg-2);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.craft-list li:last-child {
    border-bottom: none;
}

.craft-card:hover .craft-list li {
    color: var(--fg);
    padding-left: 8px;
}

.section-works {
    padding: 120px 40px;
    background: var(--bg-2);
    position: relative;
}

.section-live {
    padding: 120px 40px;
    position: relative;
}

.section-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.live-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.live-header {
    margin-bottom: 64px;
}

.live-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-top: 16px;
}

.live-title em {
    color: var(--accent);
}

.live-subtitle {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 16px;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.live-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, var(--bg-2), var(--surface));
    border: 1px solid var(--border);
    padding: 36px 32px 32px;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.live-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.live-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.live-card:hover::after {
    transform: scaleX(1);
}

.live-card-feature {
    grid-column: 1 / -1;
    background:
        radial-gradient(ellipse 50% 100% at 100% 0%, var(--accent-dim), transparent 70%),
        linear-gradient(160deg, var(--bg-2), var(--surface));
}

.live-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: livePulse 2s var(--ease) infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { opacity: 0; }
}

.live-domain {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    text-align: right;
    word-break: break-all;
}

.live-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--fg);
    margin-bottom: 12px;
}

.live-card-feature h3 {
    font-size: 2.25rem;
}

.live-card p {
    font-size: 0.9375rem;
    color: var(--fg-2);
    line-height: 1.7;
    margin-bottom: 24px;
}

.live-card-feature p {
    max-width: 640px;
}

.live-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.live-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 10px;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.live-card:hover .live-tag {
    color: var(--fg-2);
    border-color: var(--accent);
}

.live-arrow {
    position: absolute;
    top: 32px;
    right: 32px;
    color: var(--muted);
    opacity: 0;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.live-card:hover .live-arrow {
    opacity: 1;
    color: var(--accent);
    transform: translate(3px, -3px);
}

.live-card-top {
    padding-right: 28px;
}

.live-arrow svg {
    width: 18px;
    height: 18px;
}

.live-browser {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.live-card:hover .live-browser {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.live-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.live-browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    flex-shrink: 0;
}

.live-browser-dot:nth-child(1) { background: #e0654a; }
.live-browser-dot:nth-child(2) { background: #e0b13a; }
.live-browser-dot:nth-child(3) { background: #4aa564; }

.live-browser-url {
    margin-left: 10px;
    font-size: 0.6875rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-shot-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        repeating-linear-gradient(45deg, var(--bg-2) 0 10px, var(--surface) 10px 20px);
}

.live-shot-wrap::before {
    content: 'Loading preview...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    z-index: 0;
}

.live-shot {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.live-shot.loaded {
    opacity: 1;
    transform: scale(1);
}

.live-card:hover .live-shot.loaded {
    transform: scale(1.04);
    transition: transform 6s var(--ease);
}

.live-shot.shot-error {
    opacity: 1;
    transform: scale(1);
    object-fit: contain;
    padding: 20%;
    filter: grayscale(0.4);
}

.live-card-feature {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.live-card-feature .live-card-body {
    display: flex;
    flex-direction: column;
}

.live-card-feature .live-browser {
    margin-bottom: 0;
}

.live-card-feature .live-shot-wrap {
    aspect-ratio: 16 / 11;
}

.section-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.works-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.works-header {
    margin-bottom: 64px;
}

.works-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-top: 16px;
}

.works-title em {
    color: var(--accent);
}

.works-subtitle {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 16px;
}

.works-list {
    display: flex;
    flex-direction: column;
}

.works-loading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 40px 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.work-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.3s var(--ease);
    text-decoration: none;
    color: inherit;
}

.work-item:first-child {
    border-top: 1px solid var(--border);
}

.works-list:hover .work-item {
    opacity: 0.4;
}

.works-list:hover .work-item:hover {
    opacity: 1;
}

.work-index {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--accent);
    font-style: italic;
}

.work-info h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--fg);
    text-transform: capitalize;
    margin-bottom: 6px;
}

.work-info p {
    font-size: 0.8125rem;
    color: var(--fg-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.work-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 10px;
}

.work-arrow {
    color: var(--muted);
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-item:hover .work-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}

.work-arrow svg {
    width: 18px;
    height: 18px;
}

.section-reach {
    padding: 120px 40px;
    position: relative;
}

.section-reach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.reach-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.reach-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-top: 16px;
    margin-bottom: 48px;
}

.reach-headline em {
    color: var(--accent);
}

.reach-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reach-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reach-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.reach-detail a {
    color: var(--fg-2);
    transition: color 0.3s var(--ease);
    font-size: 0.9375rem;
}

.reach-detail a:hover {
    color: var(--accent);
}

.reach-detail span:not(.reach-label) {
    color: var(--fg-2);
    font-size: 0.9375rem;
}

.reach-links {
    display: flex;
    gap: 24px;
}

.reach-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.form-field input,
.form-field textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    outline: none;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #1a1206;
    border: none;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    align-self: flex-start;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.submit-btn:hover {
    box-shadow: 0 10px 30px var(--accent-glow);
    transform: translateY(-2px);
}

.submit-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.submit-btn svg {
    width: 16px;
    height: 16px;
}

#site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
}

.back-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--fg-2);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.back-to-top:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 16px;
    height: 16px;
}

.reveal-block,
.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

body.js-ready .reveal-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

body.js-ready .reveal-block.visible {
    opacity: 1;
    transform: translateY(0);
}

body.js-ready .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

body.js-ready .reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    text-align: center;
    padding: 40px 0;
    color: var(--fg-2);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .intro-col-aside {
        grid-column: 1 / -1;
    }

    .craft-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-intro {
        padding: 120px 24px 60px;
    }

    .section-about,
    .section-craft,
    .section-works,
    .section-reach {
        padding: 80px 24px;
    }

    .header-inner {
        padding: 0 24px;
    }

    .menu-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 0;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-2);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 32px;
        transition: right 0.4s var(--ease-out);
        z-index: 150;
        border-left: 1px solid var(--border);
    }

    .nav-list.open {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .intro-col-image {
        order: -1;
    }

    .image-frame img {
        height: 320px;
    }

    .intro-headline {
        font-size: clamp(2.4rem, 8vw, 3.5rem);
    }

    .intro-meta {
        flex-wrap: wrap;
        gap: 24px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-label {
        flex-direction: row;
        align-items: center;
    }

    .vertical-label {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .live-card,
    .live-card-feature {
        padding: 28px 24px;
    }

    .live-card-feature {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .live-card-feature .live-card-body {
        order: 2;
    }

    .live-card-feature .live-browser {
        order: 1;
    }

    .live-card-feature h3 {
        font-size: 1.75rem;
    }

    .work-item {
        grid-template-columns: 32px 1fr auto;
        gap: 16px;
    }

    .reach-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    #site-footer {
        padding: 24px;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .intro-headline {
        font-size: 2.2rem;
    }

    .intro-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-divider {
        width: 40px;
        height: 1px;
    }

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

    .work-index {
        display: none;
    }
}

[data-theme="light"] {
    --bg: #faf8f4;
    --bg-2: #f0ede6;
    --surface: #e8e4dc;
    --border: #d9d4ca;
    --border-strong: #c5bfb2;
    --fg: #1a1a1a;
    --fg-2: #5a5650;
    --muted: #8a8580;
    --accent: #a87d24;
    --accent-2: #b89438;
    --accent-dim: rgba(168, 125, 36, 0.1);
    --accent-glow: rgba(168, 125, 36, 0.14);
    --shadow-sm: 0 2px 8px rgba(60, 50, 30, 0.08);
    --shadow-md: 0 12px 40px rgba(60, 50, 30, 0.12);
    --shadow-lg: 0 30px 80px rgba(60, 50, 30, 0.16);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 50% at 70% -10%, rgba(168, 125, 36, 0.1), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(168, 125, 36, 0.05), transparent 55%);
}

[data-theme="light"] .grain-overlay {
    opacity: 0.025;
    mix-blend-mode: multiply;
}

[data-theme="light"] #site-header.scrolled {
    background: rgba(250, 248, 244, 0.9);
}

[data-theme="light"] .image-frame img {
    filter: grayscale(15%) contrast(1.02);
}

[data-theme="light"] .image-frame:hover img {
    filter: grayscale(0%) contrast(1);
}

body {
    transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fg-2);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: 24px;
    padding: 0;
    transition: color 0.3s var(--ease);
}

.theme-toggle:hover {
    color: var(--fg);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.theme-icon {
    position: absolute;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-out);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .submit-btn {
    color: #fff;
}

[data-theme="light"] .submit-btn:hover {
    box-shadow: 0 10px 30px var(--accent-glow);
}

#site-header,
#site-header.scrolled,
.nav-list,
.craft-card,
.form-field input,
.form-field textarea,
.icon-link,
.back-to-top,
.label-tag,
.work-tag,
.live-card,
.live-tag,
.section-works,
.mobile-overlay,
#site-footer {
    transition: background 0.45s var(--ease), border-color 0.45s var(--ease), color 0.45s var(--ease);
}

a:focus-visible,
.nav-link:focus-visible,
.work-item:focus-visible,
.live-card:focus-visible,
.icon-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

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

    body.js-ready .hl-char,
    body.js-ready .reveal-block,
    body.js-ready .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .marquee-track {
        animation: none !important;
    }

    .scroll-line::after,
    .live-dot::after {
        animation: none !important;
    }
}
