/* ==========================================================================
   Kamogawa Inc. — v2
   Luxe Editorial Dark
   ========================================================================== */

:root {
    /* === Theme: White × Gray (DMM / Apple-like) === */
    --bg:        #FFFFFF;
    --bg-2:      #F5F5F7;
    --line:      #D2D2D7;
    --text:      #1D1D1F;
    --text-dim:  #6E6E73;
    --accent:    #00B9EF;
}

:root {
    --serif-en:  'Inter Tight', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --serif-ja:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    --sans-en:   'Inter Tight', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --sans-ja:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    --max:       1240px;
    --gutter:    clamp(20px, 4vw, 56px);
    --section-y: clamp(72px, 10vw, 130px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans-ja);
    font-size: 17px;
    line-height: 2;
    font-weight: 500;
    letter-spacing: 0;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

a { color: inherit; text-decoration: none; transition: color 0.3s ease, opacity 0.3s ease; }
a:hover { color: var(--accent); }

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

/* ============================ Header ============================ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 22px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.site-header,
.site-header .site-nav a { color: var(--text); }
.site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom-color: var(--line);
}

.site-logo {
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1;
}

.site-nav ul {
    display: flex;
    gap: 38px;
    list-style: none;
}
.site-nav a {
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    background: none; border: none;
    width: 28px; height: 20px;
    position: relative;
    cursor: pointer;
    margin-left: 18px;
}
.nav-toggle span {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { top: calc(100% - 4px); }
.nav-toggle.is-open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

/* Recruit header variant */
.recruit-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.recruit-badge {
    font-family: var(--sans-en);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-dim);
    line-height: 1;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}
.recruit-back-link {
    font-family: var(--sans-en);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    transition: color 0.25s ease;
    text-decoration: none;
}
.recruit-back-link:hover { color: var(--accent); }

/* ============================ Hero ============================ */
.hero {
    background: var(--bg);
    padding: 140px var(--gutter) 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: var(--text);
}
.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    animation: heroIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.hero-mark {
    position: relative;
    max-width: 1080px;
    aspect-ratio: 4 / 1;
    margin: 0 auto;
}
.hero-mark .kamo-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.hero-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(45% + 6px);
    margin: 0;
    z-index: 2;
    color: var(--text);
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: clamp(44px, 6vw, 84px);
    line-height: 1.0;
    letter-spacing: -0.035em;
    text-align: center;
}

/* Kamogawa river — animated brand mark */
.kamo-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
}
.kamo-branch-top,
.kamo-branch-bot {
    stroke-dasharray: 290;
    stroke-dashoffset: 290;
}
.kamo-stem {
    stroke-dasharray: 1260;
    stroke-dashoffset: 1260;
}
.kamo-branch-top { animation: kamo-draw 1.4s 0.6s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.kamo-branch-bot { animation: kamo-draw 1.4s 0.9s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.kamo-stem       { animation: kamo-draw 2.0s 2.1s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
@keyframes kamo-draw {
    to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .kamo-line { stroke-dashoffset: 0; animation: none; }
}
.hero-caption {
    margin-top: 22px;
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.hero-caption .ja {
    font-family: var(--sans-ja);
    letter-spacing: 0.05em;
    text-transform: none;
    margin-right: 8px;
    color: var(--text-dim);
}

/* ============================ News list (inside About Us) ============================ */
.news-list {
    list-style: none;
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 14px;
}
.news-list li {
    display: flex;
    gap: 28px;
    align-items: baseline;
    font-size: 15px;
    line-height: 1.7;
}
.news-date {
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 50px;
}
.news-text {
    color: var(--text);
    font-weight: 500;
    text-wrap: pretty;
}
.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
    .news-list li { flex-direction: column; gap: 2px; font-size: 14px; }
    .news-date  { min-width: 0; }
}

/* ============================ Section base ============================ */
.section {
    padding: var(--section-y) var(--gutter);
    position: relative;
}
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-head {
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.section-title + .section-lead { margin-top: 18px; }
.section-number {
    font-family: var(--sans-en);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.section-title {
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 76px);
    letter-spacing: -0.035em;
    line-height: 1.0;
    color: var(--text);
}
.section-title-ja {
    font-family: var(--serif-ja);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0.02em;
}
.section-lead {
    max-width: 680px;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.95;
}

/* ============================ Services ============================ */
.subgroup-label {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 40px;
}
.subgroup-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
.subgroup-label + .subgroup-label {
    margin-top: 120px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 96px;
}
.featured-card {
    display: block;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}
.featured-photo {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 36px;
    background: var(--bg-2);
    position: relative;
}

/* ALPHA mockup variant: floating PC (background) + floating phone (front) */
.featured-photo--mockup {
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(0, 185, 239, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 80%, rgba(0, 185, 239, 0.05) 0%, transparent 55%),
        var(--bg);
    perspective: 1600px;
}
.mockup-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.featured-card:hover .mockup-stage { transform: scale(1.02); }

/* PC monitor — floating background layer, on the right side */
.mockup-pc {
    position: absolute;
    right: 4%;
    top: 12%;
    width: 62%;
    transform: rotateY(13deg) rotateX(3deg) translateZ(-50px);
    transform-origin: 30% 50%;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.featured-card:hover .mockup-pc {
    transform: rotateY(10deg) rotateX(2deg) translateZ(-30px);
}
.mockup-pc-bezel {
    background: linear-gradient(160deg, #20202c 0%, #0e0e16 100%);
    border-radius: 12px;
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 40px 80px rgba(20, 20, 40, 0.18),
        0 18px 36px rgba(20, 20, 40, 0.12),
        0 0 90px rgba(0, 185, 239, 0.08);
}
.mockup-pc-screen {
    aspect-ratio: 16 / 10;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.mockup-pc-scroller {
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    animation: mockupScroll 18s ease-in-out infinite;
}
@keyframes mockupScroll {
    0%   { background-position: 50% 0%; }
    8%   { background-position: 50% 0%; }
    50%  { background-position: 50% 100%; }
    58%  { background-position: 50% 100%; }
    100% { background-position: 50% 0%; }
}
/* The mockup-pc-stand / -base are kept hidden for clean floating look */
.mockup-pc-stand,
.mockup-pc-base { display: none; }

/* Phone — floating front layer, lower-left, iPhone 15-like detailing */
.mockup-phone {
    position: absolute;
    left: 6%;
    bottom: 4%;
    width: 23%;
    aspect-ratio: 9 / 19.5;
    /* outer titanium frame */
    background: linear-gradient(135deg, #4a4a52 0%, #2a2a32 30%, #1a1a22 50%, #2a2a32 70%, #4a4a52 100%);
    border-radius: 20% / 10%;
    padding: 1.3% 1.3%;
    transform: rotateY(-12deg) rotateX(-2deg) translateZ(80px);
    transform-origin: 50% 100%;
    box-shadow:
        0 0 0 1.5px rgba(255,255,255,0.08) inset,
        0 1px 0 rgba(255,255,255,0.18) inset,
        0 30px 60px rgba(20, 20, 40, 0.22),
        0 14px 28px rgba(20, 20, 40, 0.14),
        0 0 70px rgba(0, 185, 239, 0.18);
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.featured-card:hover .mockup-phone {
    transform: rotateY(-8deg) rotateX(-1deg) translateZ(115px) translateY(-6px);
}
/* Inner black bezel ring */
.mockup-phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 18% / 9%;
    overflow: hidden;
    position: relative;
}
.mockup-phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Dynamic Island — pill-shaped, prominent and centered near the top */
.mockup-phone-notch {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 4.5%;
    background: #000;
    border-radius: 100px;
    z-index: 3;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 2px 4px rgba(0,0,0,0.5);
}
.mockup-phone-notch::after {
    /* tiny camera dot on the right side */
    content: '';
    position: absolute;
    right: 14%;
    top: 50%;
    transform: translateY(-50%);
    width: 22%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2c2c3a 0%, #0a0a14 60%, #000 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
/* Side buttons — power on right, volume on left */
.mockup-phone::before {
    /* power button (right side) */
    content: '';
    position: absolute;
    right: -1.5%;
    top: 28%;
    width: 1.5%;
    height: 12%;
    background: linear-gradient(90deg, #1a1a22 0%, #3a3a44 50%, #1a1a22 100%);
    border-radius: 2px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.mockup-phone::after {
    /* volume button (left side) */
    content: '';
    position: absolute;
    left: -1.5%;
    top: 22%;
    width: 1.5%;
    height: 7%;
    background: linear-gradient(90deg, #1a1a22 0%, #3a3a44 50%, #1a1a22 100%);
    border-radius: 2px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* Reset existing video hover scale/filter for the mockup */
.featured-card:hover .featured-photo--mockup video,
.featured-card:hover .featured-photo--mockup img {
    transform: none;
    filter: none;
}

@media (max-width: 720px) {
    .mockup-pc       { right: 2%; top: 14%; width: 68%; transform: rotateY(10deg) translateZ(-25px); }
    .mockup-phone    { width: 26%; left: 4%; bottom: 5%; transform: rotateY(-7deg) translateZ(40px); }
    .featured-card:hover .mockup-pc    { transform: rotateY(8deg) translateZ(-15px); }
    .featured-card:hover .mockup-phone { transform: rotateY(-4deg) translateZ(60px) translateY(-3px); }
}
.featured-tap {
    display: none;
}
@media (hover: none) {
    .featured-tap {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        color: var(--text);
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        z-index: 2;
    }
}
.featured-photo img,
.featured-photo video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(0.96);
}
.featured-card:hover .featured-photo img,
.featured-card:hover .featured-photo video {
    transform: scale(1.05);
    filter: brightness(1.05);
}
.featured-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 9px 14px;
    border: 1px solid var(--text);
}
.featured-body {
    max-width: 720px;
}
.featured-name {
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: clamp(30px, 3.2vw, 40px);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    line-height: 1.15;
    color: var(--text);
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover .featured-name {
    color: var(--accent);
    transform: translateX(4px);
}
.featured-name-aux {
    font-weight: 400;
}
.featured-name-ja {
    font-family: var(--sans-ja);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 22px;
}
.featured-desc {
    color: var(--text);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 0;
}
.featured-note {
    margin-top: 14px;
    margin-bottom: 0;
    font-family: var(--sans-ja);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}
.featured-arrow {
    display: inline-block;
    margin-top: 28px;
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: transform 0.4s ease, color 0.3s ease;
}
.featured-card:hover .featured-arrow {
    transform: translateX(8px);
    color: var(--accent);
}

/* Private Brand (single, horizontal) */
.pb-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.pb-photo {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-2);
}
.pb-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.96);
}
.pb-card:hover .pb-photo img { transform: scale(1.05); }
.pb-content { padding: 8px 0; }
.pb-name {
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text);
}
.pb-name-ja {
    font-family: var(--sans-ja);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-bottom: 26px;
}
.pb-desc {
    color: var(--text);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 32px;
}
.pb-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans-en);
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent);
    transition: gap 0.3s ease, color 0.3s ease;
}
.pb-link:hover { gap: 18px; color: var(--accent); }

/* ============================ Clients ============================ */
/* Marquee label (inline section heading) */
.marquee-label {
    text-align: center;
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 88px 0 28px;
}

/* Auto-scrolling marquee (2-row, opposite directions) */
.marquee {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
    mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}
.marquee-track--reverse {
    animation-direction: reverse;
    animation-duration: 70s;
}
.marquee:hover .marquee-track {
    animation-play-state: paused;
}
.marquee-item {
    flex-shrink: 0;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    min-width: 200px;
}
.marquee-item img {
    max-height: 48px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.4s ease, opacity 0.4s ease;
    mix-blend-mode: multiply;
}
.marquee-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}
.marquee-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.01em;
    transition: color 0.4s ease;
    white-space: nowrap;
}
.marquee-item:hover span {
    color: var(--text);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}
@media (max-width: 640px) {
    .marquee-item { padding: 0 32px; min-width: 160px; height: 80px; }
    .marquee-item img { max-height: 40px; max-width: 110px; }
    .marquee-item span { font-size: 14px; }
}

.partner-group + .partner-group { margin-top: 72px; }
.partner-group-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.partner-label-en {
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}
.partner-label-ja {
    font-family: var(--sans-ja);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.partner-count {
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    margin-left: auto;
    letter-spacing: 0.1em;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: transparent;
}
.client-cell {
    width: 25%;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    aspect-ratio: 5 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    transition: background-color 0.4s ease;
}
.client-cell:hover { background: var(--bg); }
.client-logo {
    max-height: 64px;
    max-width: 70%;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.5s ease, opacity 0.5s ease;
    margin-bottom: 14px;
    mix-blend-mode: multiply;
}
.client-cell:hover .client-logo {
    filter: grayscale(0);
    opacity: 1;
}
.client-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    line-height: 1.5;
}
.client-cell--more {
    font-family: var(--sans-en);
    font-weight: 500;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.client-cell--text {
    text-decoration: none;
    color: var(--text);
}
.client-cell--text .client-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.client-cell--text:hover .client-name {
    color: var(--accent);
}

/* ============================ Company ============================ */
.about-statement {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.about-statement p {
    font-family: var(--sans-ja);
    font-weight: 600;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.7;
    letter-spacing: -0.005em;
    color: var(--text);
    margin: 0;
}
.about-statement span {
    color: var(--text);
    background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 24%, transparent) 60%);
    padding: 0 4px;
}


.about-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.about-info-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.about-info-label {
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.about-info-value {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text);
}
.about-info-value em {
    font-style: normal;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* ============================ Contact ============================ */
.contact { background: var(--bg-2); }
.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-lead {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.8;
    text-align: center;
    max-width: 560px;
    margin-bottom: 48px;
    letter-spacing: 0.01em;
}
.contact-direct {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.contact-direct dt {
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.contact-direct dd {
    font-family: var(--sans-en);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 28px;
    width: 100%;
    max-width: 720px;
}
.field {
    position: relative;
    border-bottom: 1px solid var(--line);
    padding-top: 18px;
    transition: border-color 0.3s ease;
}
.field--full { grid-column: 1 / -1; }
.field:focus-within { border-bottom-color: var(--accent); }
.field label {
    position: absolute;
    left: 0;
    top: 24px;
    font-size: 13px;
    color: var(--text-dim);
    pointer-events: none;
    transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}
.field input,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0 12px;
    resize: vertical;
}
.field textarea { min-height: 100px; }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.btn-submit {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 32px;
    background: var(--text);
    border: 1px solid var(--text);
    color: var(--bg);
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 14px 44px;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
}
.btn-submit:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    padding: 14px 52px;
}

/* ============================ Footer ============================ */
.site-footer {
    padding: 40px var(--gutter);
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}
.footer-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}
.footer-info {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.5;
}
.footer-info a:hover { color: var(--text); }
.footer-brand-mark {
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
    margin-top: 10px;
}
.footer-copy {
    font-family: var(--sans-en);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1;
    margin-top: 4px;
}

/* ============================ Section title char stagger ============================ */
.kt-word {
    display: inline-block;
    white-space: nowrap;
}
.kt-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.section-head.is-visible .kt-char {
    opacity: 1;
    transform: translateY(0);
}

/* ============================ Reveal animation ============================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================ Responsive ============================ */
@media (max-width: 960px) {
    .featured-grid { gap: 72px; }
    .pb-card       { grid-template-columns: 1fr; gap: 32px; }
    .pb-photo      { aspect-ratio: 5 / 4; }
    .subgroup-label + .subgroup-label { margin-top: 96px; }
    .client-cell   { width: 33.333%; }
    .about-info    { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
    .contact-form  { grid-template-columns: 1fr; }
    .section-head  { gap: 20px; margin-bottom: 40px; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .site-header   { padding: 18px var(--gutter); }
    .site-nav      { display: none; }
    .site-nav.is-open {
        display: flex;
        position: fixed;
        inset: 0;
        background: var(--bg);
        align-items: center;
        justify-content: center;
        z-index: 99;
    }
    .site-nav.is-open ul {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }
    .site-nav.is-open a { font-size: 16px; letter-spacing: 0.2em; }
    .nav-toggle { display: block; z-index: 101; }

    .hero-media .pc { display: none; }
    .hero-media .sp { display: block; }
    .hero { min-height: 520px; }


    .client-cell   { width: 50%; }

    .about-statement { margin-bottom: 64px; }
    .about-info    { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }

    .footer-brand-mark  { font-size: 14px; }
    .footer-copy        { font-size: 10px; }

    .section-head  {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .kt-char { opacity: 1; transform: none; }
}

/* ============================ Underline link animation ============================ */
.underline-link {
    position: relative;
    display: inline-block;
}
.underline-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.underline-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================ Recruit page ============================ */

/* Why us — 2x2 grid of reasons */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 64px;
}
.why-grid > .why-item:nth-child(3):last-child,
.why-grid > .why-item:nth-child(5):last-child {
    grid-column: 1 / -1;
    max-width: 760px;
}
.why-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.why-num {
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent);
}
.why-h3 {
    font-family: var(--sans-ja);
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 22px);
    letter-spacing: 0.01em;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}
.why-desc {
    font-size: 15px;
    line-height: 1.95;
    color: var(--text-dim);
    margin: 0;
}

/* Our Way (culture) — statement + 4 stacked points with dividers */
.culture-statement {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.culture-statement p {
    font-family: var(--sans-ja);
    font-weight: 600;
    font-size: clamp(18px, 1.9vw, 22px);
    line-height: 2;
    letter-spacing: 0.005em;
    color: var(--text);
    margin: 0;
}
.culture-statement span {
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 24%, transparent) 60%);
    padding: 0 4px;
}
.culture-points {
    max-width: 880px;
    margin: 80px auto 0;
    display: grid;
    gap: 0;
}
.culture-item {
    padding: 32px 0;
    border-top: 1px solid var(--line);
}
.culture-item:last-child {
    border-bottom: 1px solid var(--line);
}
.culture-num {
    display: block;
    font-family: var(--sans-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 10px;
}
.culture-h3 {
    font-family: var(--sans-ja);
    font-weight: 700;
    font-size: clamp(17px, 1.7vw, 20px);
    letter-spacing: 0.005em;
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 10px;
}
.culture-item p {
    font-size: 15px;
    line-height: 1.95;
    color: var(--text-dim);
    margin: 0;
}

/* Open positions — table-like rows */
.positions-note {
    max-width: 720px;
    margin: 0 0 40px;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.85;
}
.positions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.position-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: baseline;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.pos-brand-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pos-brand-name {
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: clamp(22px, 2.2vw, 28px);
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
    margin: 0;
}
.pos-brand-aux {
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-dim);
}
.pos-brand-tag {
    font-family: var(--sans-ja);
    font-size: 12.5px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin: 0;
}
.pos-body { display: flex; flex-direction: column; gap: 10px; }
.pos-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.pos-title {
    font-family: var(--sans-ja);
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 22px);
    letter-spacing: 0.005em;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
}
.pos-type {
    display: inline-block;
    font-family: var(--sans-en);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    padding: 4px 10px;
    border-radius: 99px;
    line-height: 1.4;
    text-transform: none;
}
.pos-type--pt {
    background: var(--bg-2);
    color: var(--text-dim);
}
.pos-type--ft {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
}
.pos-roles {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 4px;
}
.pos-role {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pos-role + .pos-role {
    padding-top: 22px;
    border-top: 1px dashed var(--line);
}
.pos-summary {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    margin: 0;
}

/* Work info — dl pattern */
.work-info {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}
.work-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}
.work-item dt {
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-top: 3px;
}
.work-item dd {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
    margin: 0;
}

/* Salary rank block */
.rank-block {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}
.rank-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: baseline;
    margin-bottom: 28px;
}
.rank-title {
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}
.rank-note {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-dim);
    margin: 0;
}
/* Salary Ranks — horizontal card slider */
.rank-slider {
    position: relative;
}
.rank-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px 24px;
    margin: 0 -4px;
}
.rank-slider-track::-webkit-scrollbar { display: none; }

.rank-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    padding: 32px 30px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.rank-card:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
    box-shadow: 0 6px 24px color-mix(in srgb, var(--text) 6%, transparent);
    transform: translateY(-2px);
}
.rank-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}
.rank-card-tier {
    font-family: var(--sans-en);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}
.rank-card-range {
    font-family: var(--sans-en);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.rank-card-tier-name {
    font-family: var(--sans-ja);
    font-weight: 700;
    font-size: 26px;
    color: var(--text);
    margin: 4px 0 0;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.rank-card-tier-desc {
    font-family: var(--sans-ja);
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-dim);
    margin: 4px 0 0;
    min-height: calc(1.75em * 2);
}
.rank-card-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    border-top: 1px solid var(--line);
}
.rank-card-list > li {
    border-bottom: 1px solid var(--line);
}

/* Rank row accordion inside card */
.rcr-acc { width: 100%; }
.rcr-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 12px;
    gap: 14px;
    align-items: center;
    padding: 14px 6px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}
.rcr-summary::-webkit-details-marker { display: none; }
.rcr-summary:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.rcr-acc[open] .rcr-summary { background: color-mix(in srgb, var(--accent) 5%, transparent); }

.rcr-name {
    font-family: var(--sans-en);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.rcr-wage {
    font-family: var(--sans-en);
    font-weight: 500;
    font-size: 13px;
    color: var(--text-dim);
    white-space: nowrap;
}
.rcr-toggle {
    width: 12px;
    height: 12px;
    position: relative;
    justify-self: end;
}
.rcr-toggle::before,
.rcr-toggle::after {
    content: '';
    position: absolute;
    background: var(--text-dim);
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.rcr-toggle::before {
    top: 50%; left: 0;
    width: 100%; height: 1.5px;
    transform: translateY(-50%);
}
.rcr-toggle::after {
    top: 0; left: 50%;
    width: 1.5px; height: 100%;
    transform: translateX(-50%);
}
.rcr-acc[open] .rcr-toggle::after { transform: translateX(-50%) scaleY(0); }
.rcr-acc[open] .rcr-toggle::before { background: var(--accent); }

.rcr-detail {
    padding: 6px 8px 18px;
    background: color-mix(in srgb, var(--accent) 3%, transparent);
    border-top: 1px dashed var(--line);
}
.rcr-detail dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 12px 0 0;
}
.rcr-detail dt {
    font-family: var(--sans-ja);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-top: 12px;
}
.rcr-detail dt:first-child { margin-top: 0; }
.rcr-detail dd {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}
.rcr-detail dd ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rcr-detail dd ul li {
    position: relative;
    padding-left: 12px;
    margin-top: 2px;
    border-bottom: none;
}
.rcr-detail dd ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 6px;
    height: 1px;
    background: var(--text-dim);
}

/* Slider controls */
.rank-slider-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 22px;
    line-height: 1;
    font-family: var(--sans-en);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--text) 8%, transparent);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.rank-slider-arrow:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.06);
}
.rank-slider-arrow--prev { left: -22px; }
.rank-slider-arrow--next { right: -22px; }
.rank-slider-arrow[disabled] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 720px) {
    .rank-card { flex: 0 0 86vw; padding: 28px 24px; }
    .rank-slider-arrow { display: none; }
    .rank-slider-track { padding-left: 4vw; padding-right: 4vw; }
}

/* Salary Ranks — flat grade ladder (2026) */
.rank-ladder {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.rank-ladder > li { border-bottom: 1px solid var(--line); }
.rcr-name--role {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
}
.rcr-grade {
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--accent);
    flex: none;
}
.rcr-role {
    font-family: var(--sans-ja);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.rcr-detail dd .rcr-allow {
    margin: 2px 0 0;
    line-height: 1.8;
}
@media (max-width: 720px) {
    .rcr-name--role { gap: 10px; }
    .rcr-role { font-size: 14px; }
}

/* Process — numbered step list */
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 36px;
}
.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    align-items: baseline;
}
.step-num {
    font-family: var(--sans-en);
    font-size: clamp(36px, 3.6vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--accent);
}
.step-body { display: flex; flex-direction: column; gap: 10px; }
.step-title {
    font-family: var(--sans-ja);
    font-weight: 700;
    font-size: clamp(17px, 1.7vw, 20px);
    color: var(--text);
    margin: 0;
}
.step-desc {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-dim);
    margin: 0;
}

/* Select field for recruit form */
.field--select select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 4px 24px 12px 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                      linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
    background-position: calc(100% - 12px) 16px, calc(100% - 6px) 16px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}
.field--select select:focus ~ label,
.field--select select:valid ~ label {
    top: 0;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

@media (max-width: 960px) {
    .why-grid          { grid-template-columns: 1fr; gap: 40px; }
    .position-row      { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
    .work-item         { grid-template-columns: 140px 1fr; gap: 24px; }
    .process-step      { grid-template-columns: 60px 1fr; gap: 20px; }
}

@media (max-width: 640px) {
    .work-item         { grid-template-columns: 1fr; gap: 6px; }
    .work-item dt      { font-size: 11px; }
}

/* =========================================================== */
/*  Apply form overlay — CERN-inspired submit animation         */
/* =========================================================== */
.apply-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.apply-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.apply-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}
.apply-overlay-eyebrow {
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin: 0 0 10px;
}
.apply-overlay-status {
    font-family: var(--sans-en);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 32px;
    letter-spacing: -0.01em;
    min-height: 32px;
}
.apply-stage {
    width: 420px;
    height: 420px;
    max-width: 84vw;
    max-height: 84vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apply-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.apply-overlay-close {
    margin-top: 40px;
    font-family: var(--sans-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 12px 28px;
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    background: transparent;
    color: var(--accent);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, opacity 0.3s;
}
.apply-overlay-close:hover { background: var(--accent); color: white; }
.apply-overlay-close[hidden] { display: none; }

/* Animation parts — hidden by default */
.apply-svg .ball,
.apply-svg .trail,
.apply-svg .flash,
.apply-svg .flash-ring,
.apply-svg .ring,
.apply-svg .ray,
.apply-svg .ray-cap,
.apply-svg .crosshair,
.apply-svg .constellation,
.apply-svg .dot,
.apply-svg .micro-dot {
    opacity: 0;
}

/* Phase 1 — Particles fly in */
.apply-stage.is-playing .ball {
    animation: applyBallFly 0.55s cubic-bezier(.55,0,.85,.15) forwards;
}
.apply-stage.is-playing .trail {
    animation: applyTrailIn 0.5s cubic-bezier(.55,0,.85,.15) forwards;
}
.apply-svg .ball--left   { --travel: 130px;  transform: translateX(0); }
.apply-svg .ball--right  { --travel: -130px; transform: translateX(0); }
.apply-svg .trail--left  { transform-origin: 90px 240px; }
.apply-svg .trail--right { transform-origin: 390px 240px; }
@keyframes applyBallFly {
    0%   { opacity: 0; transform: translateX(0); }
    18%  { opacity: 1; }
    88%  { opacity: 1; transform: translateX(var(--travel)); }
    100% { opacity: 0; transform: translateX(var(--travel)) scale(0.3); }
}
@keyframes applyTrailIn {
    0%   { opacity: 0; transform: scaleX(0); }
    30%  { opacity: 0.7; }
    85%  { opacity: 0.55; transform: scaleX(1); }
    100% { opacity: 0; }
}

/* Phase 2 — Collision flash */
.apply-stage.is-playing .flash {
    animation: applyFlashCore 0.45s cubic-bezier(.05,.95,.25,1) forwards;
    animation-delay: 0.55s;
}
.apply-stage.is-playing .flash-ring {
    animation: applyFlashShock 0.7s cubic-bezier(.15,.9,.3,1) forwards;
    animation-delay: 0.55s;
}
@keyframes applyFlashCore {
    0%   { opacity: 0; r: 0; }
    18%  { opacity: 1; r: 18; }
    100% { opacity: 0; r: 38; }
}
@keyframes applyFlashShock {
    0%   { opacity: 0; r: 0; stroke-width: 5; }
    18%  { opacity: 1; stroke-width: 3.5; }
    100% { opacity: 0; r: 110; stroke-width: 0.4; }
}

/* Phase 3 — Rings burst */
.apply-stage.is-playing .ring {
    transform-origin: 240px 240px;
    animation: applyRingBurst 0.6s cubic-bezier(.15,.9,.25,1.05) forwards;
}
.apply-stage.is-playing .ring-1 { animation-delay: 0.66s; }
.apply-stage.is-playing .ring-2 { animation-delay: 0.72s; }
.apply-stage.is-playing .ring-3 { animation-delay: 0.78s; }
.apply-stage.is-playing .ring-4 { animation-delay: 0.85s; }
.apply-stage.is-playing .ring-5 { animation-delay: 0.92s; }
.apply-stage.is-playing .ring-6 { animation-delay: 1.00s; }
.apply-stage.is-playing .ring-7 { animation-delay: 1.08s; }
@keyframes applyRingBurst {
    0%   { opacity: 0; transform: scale(0); }
    30%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}
.apply-stage.is-playing .crosshair {
    animation: applyFadeIn 0.4s ease-out forwards;
    animation-delay: 0.72s;
}
@keyframes applyFadeIn {
    from { opacity: 0; }
    to   { opacity: 0.75; }
}

/* Phase 4 — Rays */
.apply-stage.is-playing .ray {
    transform-origin: 240px 240px;
    animation: applyRayExtend 0.75s cubic-bezier(.42,.0,.18,1) forwards;
}
.apply-stage.is-playing .ray-1 { animation-delay: 1.4s; }
.apply-stage.is-playing .ray-2 { animation-delay: 1.45s; }
.apply-stage.is-playing .ray-3 { animation-delay: 1.52s; }
.apply-stage.is-playing .ray-4 { animation-delay: 1.58s; }
.apply-stage.is-playing .ray-5 { animation-delay: 1.64s; }
.apply-stage.is-playing .ray-6 { animation-delay: 1.7s; }
.apply-stage.is-playing .ray-7 { animation-delay: 1.76s; }
.apply-stage.is-playing .ray-8 { animation-delay: 1.82s; }
.apply-stage.is-playing .ray-9 { animation-delay: 1.86s; }
.apply-stage.is-playing .ray-cap-1 { animation: applyFadeIn 0.3s ease-out forwards; animation-delay: 1.95s; }
.apply-stage.is-playing .ray-cap-2 { animation: applyFadeIn 0.3s ease-out forwards; animation-delay: 2.0s; }
.apply-stage.is-playing .ray-cap-3 { animation: applyFadeIn 0.3s ease-out forwards; animation-delay: 2.05s; }
@keyframes applyRayExtend {
    0%   { opacity: 0; transform: scale(0); }
    30%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}

/* Phase 5 — Constellation + dots */
.apply-stage.is-playing .constellation { animation: applyFadeIn 0.5s ease-out forwards; animation-delay: 2.1s; }
.apply-stage.is-playing .dot {
    transform-origin: center;
    transform-box: fill-box;
    animation: applyDotPop 0.45s cubic-bezier(.3,1.45,.55,1) forwards;
}
.apply-stage.is-playing .dot-1  { animation-delay: 1.95s; }
.apply-stage.is-playing .dot-2  { animation-delay: 2.02s; }
.apply-stage.is-playing .dot-3  { animation-delay: 2.06s; }
.apply-stage.is-playing .dot-4  { animation-delay: 2.14s; }
.apply-stage.is-playing .dot-5  { animation-delay: 2.18s; }
.apply-stage.is-playing .dot-6  { animation-delay: 2.25s; }
.apply-stage.is-playing .dot-7  { animation-delay: 2.32s; }
.apply-stage.is-playing .dot-8  { animation-delay: 2.38s; }
.apply-stage.is-playing .dot-9  { animation-delay: 2.43s; }
.apply-stage.is-playing .dot-10 { animation-delay: 2.5s;  }
.apply-stage.is-playing .dot-11 { animation-delay: 2.55s; }
.apply-stage.is-playing .dot-12 { animation-delay: 2.6s;  }
@keyframes applyDotPop {
    0%   { opacity: 0; transform: scale(0.2); }
    55%  { opacity: 1; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}
.apply-stage.is-playing .micro-dot {
    animation: applyMicroFade 0.6s ease-out forwards;
}
.apply-stage.is-playing .micro-dot-1 { animation-delay: 2.2s; }
.apply-stage.is-playing .micro-dot-2 { animation-delay: 2.3s; }
.apply-stage.is-playing .micro-dot-3 { animation-delay: 2.4s; }
.apply-stage.is-playing .micro-dot-4 { animation-delay: 2.5s; }
.apply-stage.is-playing .micro-dot-5 { animation-delay: 2.6s; }
.apply-stage.is-playing .micro-dot-6 { animation-delay: 2.35s; }
.apply-stage.is-playing .micro-dot-7 { animation-delay: 2.45s; }
@keyframes applyMicroFade {
    from { opacity: 0; }
    to   { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    .apply-stage.is-playing .ball,
    .apply-stage.is-playing .trail,
    .apply-stage.is-playing .flash,
    .apply-stage.is-playing .flash-ring,
    .apply-stage.is-playing .ring,
    .apply-stage.is-playing .ray,
    .apply-stage.is-playing .ray-cap,
    .apply-stage.is-playing .crosshair,
    .apply-stage.is-playing .constellation,
    .apply-stage.is-playing .dot,
    .apply-stage.is-playing .micro-dot {
        animation: applyFadeIn 0.3s ease-out forwards;
        animation-delay: 0s;
        transform: none;
    }
}
