/* ============================================================
   KISEISHA Inc. — Design System & Styles
   Concept: "Structure the unbuilt."
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
    /* Colors */
    --color-bg:          #0A0A0A;
    --color-bg-elevated: #141414;
    --color-bg-subtle:   #1A1A1A;
    --color-border:      #222222;
    --color-border-light:#333333;
    --color-text:        #E8E8E8;
    --color-text-muted:  #888888;
    --color-accent:      #4A9FE5;
    --color-accent-dim:  rgba(74, 159, 229, 0.1);
    --color-accent-sub:  #1f3174;
    --color-accent-bright: #6BB5F0;
    --color-white:       #FFFFFF;

    /* Typography */
    --font-heading: "Inter", "Noto Sans JP", sans-serif;
    --font-body:    "Noto Sans JP", sans-serif;
    --font-mono:    "JetBrains Mono", monospace;

    --text-hero:   clamp(2.5rem, 6vw, 5rem);
    --text-h1:     clamp(2rem, 4vw, 3.5rem);
    --text-h2:     clamp(1.5rem, 3vw, 2.5rem);
    --text-h3:     clamp(1.25rem, 2vw, 1.75rem);
    --text-body:   clamp(0.9rem, 1.1vw, 1.05rem);
    --text-small:  clamp(0.75rem, 0.9vw, 0.85rem);
    --text-label:  0.75rem;
    --text-ticker: 0.8rem;

    --leading-tight:   1.2;
    --leading-normal:  1.7;
    --leading-relaxed: 2.0;

    /* Spacing */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  32px;
    --space-lg:  64px;
    --space-xl:  128px;
    --space-2xl: 192px;

    /* Grid */
    --grid-max:    1200px;
    --grid-margin: clamp(20px, 4vw, 80px);

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-normal: 0.6s;
    --duration-slow:   1s;

    /* Header */
    --header-h: 72px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-body);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

address {
    font-style: normal;
}

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

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--grid-max);
    margin: 0 auto;
    padding: 0 var(--grid-margin);
}

.mono {
    font-family: var(--font-mono);
}

.section-num {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

/* --- ANIMATION CLASSES --- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                transform var(--duration-normal) var(--ease-out-expo);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* split text character animation */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

.split-text.is-visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.l-header.is-scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--grid-max);
    margin: 0 auto;
    padding: 0 var(--grid-margin);
}

.l-header__logo {
    display: flex;
    align-items: center;
    z-index: 101;
}

.logo-svg {
    height: 20px;
    width: auto;
    color: var(--color-white);
}

.l-header__nav {
    display: none;
}

.l-header__nav-list {
    display: flex;
    gap: clamp(16px, 2vw, 32px);
}

.l-header__nav-link {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.l-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out-expo);
}

.l-header__nav-link:hover {
    color: var(--color-white);
}

.l-header__nav-link:hover::after {
    width: 100%;
}

.l-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 101;
}

.l-header__contact-btn {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.08em;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 8px 24px;
    transition: background 0.3s ease, color 0.3s ease;
}

.l-header__contact-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.l-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 6px;
}

.l-header__hamburger-line {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.l-header__hamburger.is-active .l-header__hamburger-line:first-child {
    transform: rotate(45deg) translate(2px, 3px);
}

.l-header__hamburger.is-active .l-header__hamburger-line:last-child {
    transform: rotate(-45deg) translate(2px, -3px);
}

/* --- DROPDOWN --- */
.l-header__nav-item {
    position: relative;
}

.l-header__dropdown {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 220px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 110;
}

.l-header__nav-item.has-dropdown:hover .l-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.l-header__dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: var(--text-small);
    color: var(--color-text-muted);
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.l-header__dropdown-item:hover {
    color: var(--color-white);
    background: var(--color-bg-subtle);
}

.l-header__dropdown-label {
    font-size: 0.6rem;
    color: var(--color-accent);
    min-width: 16px;
}

/* --- MOBILE NAV --- */
.l-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--color-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.l-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.l-mobile-nav__inner {
    width: 100%;
    padding: calc(var(--header-h) + 16px) var(--grid-margin) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
}

.l-mobile-nav__menu > ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.l-mobile-nav__menu > ul > li {
    display: flex;
    flex-direction: column;
}

.l-mobile-nav__menu .num {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.l-mobile-nav__menu .l-mobile-nav__parent a {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.l-mobile-nav__menu .l-mobile-nav__parent a:hover {
    color: var(--color-accent);
}

.l-mobile-nav__parent {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.l-mobile-nav__toggle {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.l-mobile-nav__toggle:hover {
    border-color: var(--color-accent);
}

.l-mobile-nav__toggle-icon {
    display: block;
    width: 12px;
    height: 12px;
    position: relative;
}

.l-mobile-nav__toggle-icon::before,
.l-mobile-nav__toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.l-mobile-nav__toggle-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.l-mobile-nav__toggle-icon::after {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.l-mobile-nav__toggle.is-open .l-mobile-nav__toggle-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

.l-mobile-nav__sub {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 0 48px;
    border-left: 1px solid var(--color-border);
    margin-left: 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.l-mobile-nav__sub.is-open {
    max-height: 400px;
    padding: 12px 0 12px 48px;
}

.l-mobile-nav__sub li {
    display: block;
}

.l-mobile-nav__sub a {
    font-family: var(--font-body) !important;
    font-size: var(--text-small) !important;
    font-weight: 400 !important;
    color: var(--color-text-muted) !important;
    letter-spacing: 0 !important;
    transition: color 0.3s ease;
}

.l-mobile-nav__sub a:hover {
    color: var(--color-accent) !important;
}

.l-mobile-nav__info {
    margin-top: auto;
    padding-top: var(--space-md);
    font-size: var(--text-small);
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ============================================================
   HERO
   ============================================================ */
.s-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
}

/* Hero Video Background */
.s-hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.s-hero__video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2) contrast(1.2) saturate(0.4);
}

.s-hero__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(10, 10, 10, 0.3) 40%,
        rgba(10, 10, 10, 0.7) 80%,
        rgba(10, 10, 10, 1) 100%
    );
}

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

.s-hero__grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.s-hero__grid-lines .v-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-border);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.6s ease, transform 1.2s var(--ease-out-expo);
}

.s-hero__grid-lines .v-line:nth-child(1) { left: 4%; transition-delay: 0.2s; }
.s-hero__grid-lines .v-line:nth-child(2) { left: 25%; transition-delay: 0.4s; }
.s-hero__grid-lines .v-line:nth-child(3) { left: 50%; transition-delay: 0.3s; }
.s-hero__grid-lines .v-line:nth-child(4) { left: 75%; transition-delay: 0.5s; }
.s-hero__grid-lines .v-line:nth-child(5) { right: 4%; left: auto; transition-delay: 0.6s; }

.s-hero.is-loaded .s-hero__grid-lines .v-line {
    opacity: 1;
    transform: scaleY(1);
}

.s-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-xl) 0 var(--space-lg);
}

.s-hero__content {
    padding: 0;
}

.s-hero__section-num {
    margin-bottom: var(--space-md);
}

.s-hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.s-hero__heading-line {
    display: block;
}

.s-hero__sub {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: var(--color-accent);
    letter-spacing: 0.15em;
}

.s-hero__ticker {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: var(--grid-max);
    margin: var(--space-md) auto 0;
}

@media (min-width: 1024px) {
    .s-hero__ticker {
        position: relative;
        margin-top: var(--space-lg);
    }
}

.s-hero__ticker-inner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    font-size: var(--text-ticker);
}

.s-hero__ticker-tag {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-bg);
    background: var(--color-accent);
    padding: 2px 8px;
}

.s-hero__ticker-text {
    color: var(--color-text-muted);
}

.s-hero__scroll {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

@media (min-width: 1024px) {
    .s-hero__scroll {
        display: flex;
    }
}

.s-hero__scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

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

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

/* Hero Visual */
.s-hero__visual {
    display: block;
}

.s-hero__visual-frame {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.s-hero__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.s-hero__visual-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-subtle) 50%, #1a2a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
}

.s-hero__visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, var(--color-bg) 100%);
    pointer-events: none;
}

.s-hero__visual-border {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    pointer-events: none;
}

.s-hero__visual-caption {
    margin-top: 12px;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-align: right;
}

/* ============================================================
   IDENTITY
   ============================================================ */
.s-identity {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
}

.s-identity__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.s-identity__heading {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.s-identity__lead {
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
}

.s-identity__numbers {
    display: flex;
    gap: var(--space-lg);
}

.s-identity__number-item {
    display: flex;
    flex-direction: column;
}

.s-identity__number-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.s-identity__number-label {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* Phases */
.s-identity__phases {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.s-identity__phase {
    flex: 1;
    min-width: 140px;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.s-identity__phase:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-dim);
}

.s-identity__phase-num {
    font-size: var(--text-label);
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-xs);
}

.s-identity__phase-title {
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.s-identity__phase-en {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.s-identity__phase-connector {
    width: 32px;
    height: 1px;
    background: var(--color-border);
    flex-shrink: 0;
    display: none;
}

/* ============================================================
   CAPABILITY
   ============================================================ */
.s-capability {
    padding: var(--space-2xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.s-capability__scroll-area {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: var(--space-lg) 0;
}

.s-capability__scroll-area::-webkit-scrollbar {
    display: none;
}

.s-capability__track {
    display: flex;
    gap: 1px;
    min-width: max-content;
}

@media (min-width: 1024px) {
    .s-capability__track {
        min-width: 0;
    }
    .s-capability__card {
        flex: 1;
        width: auto;
    }
}

.s-capability__card {
    width: 320px;
    flex-shrink: 0;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.s-capability__card:hover {
    border-color: var(--color-accent);
}

.s-capability__card-inner {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}

.s-capability__card-num {
    font-size: var(--text-label);
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-md);
}

.s-capability__card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.s-capability__card-divider {
    width: 32px;
    height: 1px;
    background: var(--color-accent);
    margin-bottom: var(--space-md);
}

.s-capability__card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s-capability__card-list li {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    padding-left: 16px;
    position: relative;
}

.s-capability__card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border: 1px solid var(--color-accent);
}

.s-capability__card-link {
    display: block;
    margin-top: var(--space-md);
    font-size: var(--text-label);
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.s-capability__card:hover .s-capability__card-link {
    color: var(--color-accent);
}

a.s-capability__card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.s-capability__footer {
    margin-top: var(--space-md);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.s-projects {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
}

.s-projects__heading {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.s-projects__category {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.s-projects__category:first-of-type {
    margin-top: 0;
}

.s-projects__category-en {
    font-size: var(--text-label);
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

.s-projects__category-ja {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.s-projects__list {
    display: flex;
    flex-direction: column;
}

.s-projects__item {
    display: block;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
    transition: background 0.3s ease;
    cursor: pointer;
}

.s-projects__item--has-thumb {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    flex-wrap: wrap;
}

.s-projects__item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.s-projects__item:hover {
    background: var(--color-bg-elevated);
}

.s-projects__item:hover .s-projects__item-arrow {
    color: var(--color-accent);
    transform: translate(4px, -4px);
}

.s-projects__item:hover .s-projects__item-line {
    transform: scaleX(1);
}

.s-projects__item-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: 12px;
}

.s-projects__item-num {
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

.s-projects__item-name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.s-projects__item-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.s-projects__item-desc {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin-bottom: 12px;
    max-width: 600px;
}

.s-projects__item-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.s-projects__item-tags span {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    padding: 3px 10px;
}

/* Projects Thumbnails — hidden on mobile, shown on desktop */
.s-projects__item-thumb {
    display: none;
}

.s-projects__item--has-thumb {
    flex-wrap: nowrap;
}

.s-projects__item-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    padding: 24px;
    transition: border-color 0.3s ease, filter 0.3s ease;
}

/* White-bg logos need invert for dark theme */
.s-projects__item-thumb-img.--invert {
    filter: invert(1) brightness(0.85);
}

.s-projects__item:hover .s-projects__item-thumb-img.--invert {
    filter: invert(1) brightness(1);
}

.s-projects__item:hover .s-projects__item-thumb-img {
    border-color: var(--color-accent);
}

.s-projects__item-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-subtle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
    text-align: center;
    line-height: 1.6;
}

.s-projects__item:hover .s-projects__item-thumb-placeholder {
    border-color: var(--color-accent);
}

.s-projects__item-line {
    height: 1px;
    background: var(--color-accent);
    margin-top: var(--space-md);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

/* ============================================================
   CASES
   ============================================================ */
.s-cases {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
}

.s-cases__heading {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.s-cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--color-border);
    margin-bottom: var(--space-lg);
}

.s-cases__card {
    background: var(--color-bg);
    transition: background 0.3s ease;
}

.s-cases__card:hover {
    background: var(--color-bg-elevated);
}

.s-cases__card:hover .s-cases__card-placeholder {
    border-color: var(--color-accent);
}

.s-cases__card-visual {
    width: 100%;
}

.s-cases__card-placeholder {
    aspect-ratio: 16/9;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.s-cases__card-placeholder span {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
}

.s-cases__card-body {
    padding: var(--space-md) 0;
}

.s-cases__card-category {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-xs);
}

.s-cases__card-title {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.6;
    margin-bottom: 12px;
}

.s-cases__card-tags {
    display: flex;
    gap: var(--space-xs);
}

.s-cases__card-tags span {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.s-cases__card-tags span + span::before {
    content: '/';
    margin-right: var(--space-xs);
}

.s-cases__footer {
    padding-top: var(--space-md);
}

/* ============================================================
   ABOUT
   ============================================================ */
.s-about {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
}

.s-about__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.s-about__visual {
    display: block;
}

.s-about__visual-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--color-border);
    filter: brightness(0.85) contrast(1.05);
}

@media (min-width: 1024px) {
    .s-about__visual-img {
        max-width: 280px;
        aspect-ratio: 3/4;
    }
}

.s-about__visual-placeholder {
    aspect-ratio: 3/4;
    max-width: 280px;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-subtle) 100%);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
}

.s-about__content {
    max-width: 720px;
}

.s-about__quote {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-accent);
}

.s-about__attribution {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
}

.s-about__role {
    display: block;
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.s-about__name {
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.1em;
}

.s-about__sign {
    display: block;
    height: 36px;
    width: auto;
    margin-top: 8px;
}

.s-about__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-small);
    color: var(--color-text-muted);
    padding-left: var(--space-md);
}

/* ============================================================
   NEWS
   ============================================================ */
.s-news {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
}

.s-news__list {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-lg);
}

.s-news__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s ease, padding 0.3s ease;
}

.s-news__item:first-child {
    border-top: 1px solid var(--color-border);
}

.s-news__item:hover {
    background: var(--color-bg-elevated);
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.s-news__item:hover .s-news__arrow {
    color: var(--color-accent);
    transform: translateX(4px);
}

.s-news__date {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.s-news__tag {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    white-space: nowrap;
    width: fit-content;
}

.s-news__title {
    font-size: var(--text-body);
    color: var(--color-text);
}

.s-news__arrow {
    font-size: var(--text-body);
    color: var(--color-text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    display: none;
}

/* News Cards */
.s-news__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .s-news__arrow {
        display: block;
    }
    .s-news__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.s-news__card {
    display: block;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.s-news__card:hover {
    border-color: var(--color-accent);
}

.s-news__card-thumb {
    aspect-ratio: 16/9;
    background: var(--color-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.s-news__card-thumb-placeholder {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
}

.s-news__card-body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

.s-news__card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.s-news__card-title {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.6;
}

.s-news__footer {
    padding-top: var(--space-sm);
}

/* ============================================================
   CTA
   ============================================================ */
.s-cta {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
}

.s-cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.s-cta__label {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.s-cta__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.s-cta__sub {
    font-size: var(--text-body);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.s-cta__action {
    display: flex;
    justify-content: center;
}

/* --- COMPONENTS --- */
.c-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: var(--text-small);
    letter-spacing: 0.1em;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 16px 48px;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease;
}

.c-btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.c-btn-primary__icon {
    transition: transform 0.3s ease;
}

.c-btn-primary:hover .c-btn-primary__icon {
    transform: translateX(4px);
}

.c-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.c-link-arrow:hover {
    color: var(--color-accent);
}

.c-link-arrow__icon {
    transition: transform 0.3s ease;
}

.c-link-arrow:hover .c-link-arrow__icon {
    transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.l-footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.l-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.l-footer__company {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-md);
}

.l-footer__offices {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.l-footer__office-label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.l-footer__address {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.l-footer__contact-info {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.l-footer__contact-info a {
    transition: color 0.3s ease;
}

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

.l-footer__address a {
    transition: color 0.3s ease;
}

.l-footer__address a:hover {
    color: var(--color-accent);
}

.l-footer__nav {
    display: flex;
    gap: var(--space-lg);
}

.l-footer__nav-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.l-footer__nav-col a {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.l-footer__nav-col a:hover {
    color: var(--color-accent);
}

.l-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.l-footer__privacy {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.l-footer__privacy:hover {
    color: var(--color-text);
}

.l-footer__copyright {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE — TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .s-identity__grid {
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }

    .s-identity__numbers {
        flex-direction: column;
        padding-top: var(--space-sm);
    }

    .s-cases__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s-cases__card {
        padding: var(--space-sm);
    }

    .s-news__item {
        grid-template-columns: auto auto 1fr auto;
        align-items: center;
        gap: var(--space-md);
    }

    .l-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    .l-header__nav {
        display: block;
    }

    .l-header__contact-btn {
        display: inline-flex;
    }

    .l-header__hamburger {
        display: none;
    }

    .s-hero__layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .s-hero__visual {
        display: block;
    }

    .s-identity__phases {
        flex-wrap: nowrap;
    }

    .s-identity__phase-connector {
        display: block;
    }

    .s-capability__card {
        width: 360px;
    }

    /* Projects with thumbnails */
    .s-projects__item--has-thumb {
        display: grid;
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto auto;
        gap: 0 var(--space-md);
        flex-wrap: nowrap;
    }

    .s-projects__item-thumb {
        display: block;
        grid-row: 1 / 2;
        aspect-ratio: 4/3;
        width: auto;
    }

    .s-projects__item-body {
        grid-row: 1 / 2;
    }

    .s-projects__item-line {
        grid-column: 1 / -1;
    }

    .s-projects__item--has-thumb:hover {
        background: var(--color-bg-elevated);
    }

    /* About layout */
    .s-about__layout {
        grid-template-columns: 280px 1fr;
        gap: var(--space-xl);
    }

    .s-about__visual {
        display: block;
    }
}

/* Archive card mobile compact */
.p-archive__case-body { padding: 10px 12px 14px; }
.p-archive__case-title { font-size: 0.8rem; line-height: 1.5; margin-bottom: 6px; }
.p-archive__case-category { font-size: 0.55rem; margin-bottom: 4px; }
@media (min-width: 768px) {
    .p-archive__case-body { padding: 24px; }
    .p-archive__case-title { font-size: 1rem; margin-bottom: 12px; }
    .p-archive__case-category { font-size: 0.65rem; margin-bottom: 8px; }
}

/* SEO: H1 subtitle for crawlers */
.p-detail__hero-h1-sub {
    display: block;
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 8px;
    letter-spacing: 0;
}

/* Screen reader only (visually hidden but accessible to crawlers) */
.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;
}

/* News readability */
.s-news__card-title { color: #fff; }
.s-hero__ticker-text { color: var(--color-text); }
.s-hero__ticker-text a { color: var(--color-text); }
