:root {
    --ink: #0c0c0d;
    --ink-soft: #171719;
    --paper: #efefeb;
    --paper-deep: #deded8;
    --mid: #c9c9c1;
    --white: #f7f7f4;
    --orange: #e4461c;
    --terracotta: #c97860;
    --muted-on-dark: rgba(247, 247, 244, 0.62);
    --muted-on-light: #676762;
    --page-pad: clamp(1.25rem, 4vw, 4.5rem);
}

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

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    min-width: 320px;
    background: var(--ink);
    color: var(--white);
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    background: var(--white);
    color: var(--ink);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.ambient-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--ink);
    pointer-events: none;
}

#ambient-canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.85;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    min-height: 76px;
    padding: 0 var(--page-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 12, 13, 0.2);
    transition: background-color 300ms ease, min-height 300ms ease;
}

.site-nav.is-scrolled {
    min-height: 62px;
    background: rgba(12, 12, 13, 0.9);
    backdrop-filter: blur(14px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-brand img {
    background: var(--white);
}

.site-nav nav {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    color: var(--muted-on-dark);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-nav nav a {
    position: relative;
    padding: 0.5rem 0;
    transition: color 200ms ease;
}

.site-nav nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.15rem;
    left: 0;
    height: 1px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
    color: var(--white);
}

.site-nav nav a:hover::after,
.site-nav nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

main {
    position: relative;
    z-index: 1;
}

.hero-section {
    position: relative;
    min-height: 100svh;
    padding: 7.5rem var(--page-pad) 5rem;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-grid {
    width: min(1380px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 7rem);
}

.section-kicker {
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted-on-dark);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: var(--orange);
}

.hero-copy h1 {
    max-width: 850px;
    font-size: clamp(4rem, 8.6vw, 9rem);
    font-weight: 650;
    letter-spacing: -0.072em;
    line-height: 0.82;
}

.hero-copy h1 em {
    color: var(--orange);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.hero-description {
    margin-top: clamp(2rem, 4vw, 3.5rem);
    color: var(--muted-on-dark);
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    line-height: 1.9;
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action {
    min-height: 52px;
    padding: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.action-primary {
    min-width: 210px;
    background: var(--white);
    color: var(--ink);
}

.action-secondary {
    color: var(--muted-on-dark);
}

.action:hover,
.action:focus-visible {
    transform: translateY(-3px);
}

.action-primary:hover,
.action-primary:focus-visible {
    background: var(--orange);
    color: var(--ink);
}

.action-secondary:hover,
.action-secondary:focus-visible {
    color: var(--white);
}

.hero-visual {
    position: relative;
    width: min(42vw, 570px);
    justify-self: center;
    will-change: transform;
    transform: translate3d(var(--visual-x, 0), var(--visual-y, 0), 0);
    transition: transform 150ms linear;
}

.hero-visual svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.orbit,
.signal-line {
    fill: none;
    stroke: rgba(247, 247, 244, 0.25);
    stroke-width: 1;
    transform-origin: 300px 300px;
}

.orbit-outer {
    animation: orbit-clockwise 28s linear infinite;
}

.orbit-inner {
    animation: orbit-counter 22s linear infinite;
}

.orbit-node {
    fill: var(--white);
    stroke: none;
}

.orbit-node-accent {
    fill: var(--orange);
}

.signal-line {
    stroke: var(--orange);
    stroke-width: 2;
    stroke-dasharray: 8 12;
    animation: signal-flow 8s linear infinite;
}

.visual-panel {
    fill: rgba(247, 247, 244, 0.92);
    transform-origin: 300px 300px;
    animation: panel-breathe 5s ease-in-out infinite;
}

.hero-visual image {
    transform-origin: 300px 300px;
    animation: logo-float 5s ease-in-out infinite;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: var(--page-pad);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(247, 247, 244, 0.42);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scroll-cue i {
    width: 34px;
    height: 1px;
    background: currentColor;
    transform-origin: left;
    animation: cue-pulse 1.8s ease-in-out infinite;
}

.about-section {
    position: relative;
    background: var(--paper);
    color: var(--ink);
    scroll-margin-top: 60px;
}

.about-inner {
    width: min(1380px, 100%);
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 10rem) var(--page-pad) 3rem;
}

.about-heading {
    display: grid;
    grid-template-columns: 0.52fr 1.25fr 1fr;
    gap: clamp(1.5rem, 4vw, 5rem);
    align-items: start;
}

.section-index {
    color: var(--muted-on-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-heading h2 {
    max-width: 660px;
    font-size: clamp(2.5rem, 5.3vw, 5.7rem);
    font-weight: 580;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.about-heading > p:last-child {
    max-width: 480px;
    color: var(--muted-on-light);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 2;
}

.work-heading {
    margin-top: clamp(6rem, 13vw, 12rem);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(12, 12, 13, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    scroll-margin-top: 80px;
}

.cycling-label {
    color: var(--muted-on-light);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cycling-label strong {
    min-width: 8.5rem;
    display: inline-block;
    color: var(--orange);
    transition: opacity 160ms ease, transform 160ms ease;
}

.cycling-label strong.is-switching {
    opacity: 0;
    transform: translateY(0.5em);
}

.product-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.product-card {
    position: relative;
    min-height: clamp(230px, 26vw, 390px);
    padding: clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 160ms ease, background-color 250ms ease;
}

.product-card::before {
    content: attr(data-symbol);
    position: absolute;
    right: -0.03em;
    bottom: -0.28em;
    color: currentColor;
    font-size: clamp(8rem, 22vw, 21rem);
    font-weight: 700;
    letter-spacing: -0.12em;
    line-height: 1;
    opacity: 0.08;
    pointer-events: none;
    transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease;
}

.product-card:hover::before,
.product-card:focus-visible::before {
    opacity: 0.14;
    transform: translate3d(-0.04em, -0.03em, 0) scale(1.04);
}

.card-light {
    background: var(--paper-deep);
}

.card-dark {
    background: var(--ink-soft);
    color: var(--white);
}

.card-accent {
    background: var(--terracotta);
    color: var(--ink);
}

.card-mid {
    background: var(--mid);
}

.product-category {
    position: relative;
    z-index: 1;
    color: currentColor;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    opacity: 0.62;
    text-transform: uppercase;
}

.product-card strong {
    position: relative;
    z-index: 1;
    max-width: 85%;
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.product-visit {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-visit i {
    font-size: 1.25rem;
    font-style: normal;
    transition: transform 240ms ease;
}

.product-card:hover .product-visit i,
.product-card:focus-visible .product-visit i {
    transform: translate(0.3rem, -0.3rem);
}

.site-footer {
    margin-top: clamp(6rem, 12vw, 11rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(12, 12, 13, 0.18);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 3rem;
}

.site-footer > div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer > div:first-child p {
    color: var(--muted-on-light);
    font-size: 0.78rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
}

.footer-links a {
    transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--orange);
}

.copyright {
    color: var(--muted-on-light);
    font-size: 0.7rem;
    white-space: nowrap;
}

html.js [data-reveal]:not(.product-card) {
    opacity: 0;
    transform: translateY(32px);
}

html.js [data-reveal]:not(.product-card).is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.js .product-card[data-reveal] {
    opacity: 0;
}

html.js .product-card[data-reveal].is-visible {
    opacity: 1;
    animation: product-reveal 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-fill-mode: backwards;
}

.product-grid [data-reveal]:nth-child(2) {
    animation-delay: 80ms;
}

.product-grid [data-reveal]:nth-child(3) {
    animation-delay: 140ms;
}

.product-grid [data-reveal]:nth-child(4) {
    animation-delay: 200ms;
}

@keyframes orbit-clockwise {
    to { transform: rotate(360deg); }
}

@keyframes orbit-counter {
    to { transform: rotate(-360deg); }
}

@keyframes signal-flow {
    to { stroke-dashoffset: -200; }
}

@keyframes panel-breathe {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(4deg) scale(0.96); }
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes cue-pulse {
    0%, 100% { transform: scaleX(0.35); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 1; }
}

@keyframes product-reveal {
    from {
        opacity: 0;
        transform: translateY(32px) perspective(900px) rotateX(0) rotateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) perspective(900px) rotateX(0) rotateY(0);
    }
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        position: relative;
        z-index: 2;
    }

    .hero-visual {
        position: absolute;
        right: -18vw;
        bottom: 4rem;
        z-index: 0;
        width: min(72vw, 560px);
        opacity: 0.44;
    }

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

    .about-heading > p:last-child {
        grid-column: 2;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
    }

    .copyright {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    :root {
        --page-pad: 1.25rem;
    }

    .site-nav {
        min-height: 64px;
    }

    .nav-brand span {
        display: none;
    }

    .site-nav nav {
        gap: 1.15rem;
        font-size: 0.65rem;
    }

    .hero-section {
        min-height: 100svh;
        padding-top: 6.5rem;
        padding-bottom: 4.5rem;
        align-items: center;
    }

    .hero-copy h1 {
        font-size: clamp(3.8rem, 20vw, 6rem);
    }

    .hero-description br {
        display: none;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: min(100%, 310px);
    }

    .action {
        width: 100%;
    }

    .action-secondary {
        padding-left: 0;
    }

    .hero-visual {
        right: -34vw;
        bottom: 1.5rem;
        width: 95vw;
    }

    .scroll-cue {
        display: none;
    }

    .about-inner {
        padding-top: 5rem;
    }

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

    .about-heading > p:last-child {
        grid-column: auto;
        margin-top: 1rem;
    }

    .work-heading {
        margin-top: 6rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

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

    .product-card {
        min-height: 210px;
    }

    .site-footer {
        margin-top: 6rem;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2rem;
    }

    .footer-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .copyright {
        grid-column: auto;
    }
}

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

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

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
    }

}
