/* ============================================
   RND FACTORY — Apple-Inspired Interactive Design
   ============================================ */

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

:root {
    --bg-black: #000;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --text-white: #f5f5f7;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);
    --text-dark: #1d1d1f;
    --text-dark-muted: #515154;
    --text-dark-dim: #86868b;
    --accent-pink: #2997ff;
    --accent-purple: #0040c0;
    --accent-yellow: #5ac8fa;
    --accent-blue: #007aff;
    --brand-blue: #0066cc;
    --brand-blue-dark: #003d99;
    --brand-blue-light: #5ac8fa;
    --gradient: linear-gradient(135deg, #5ac8fa 0%, #007aff 50%, #003d99 100%);
    --gradient-soft: linear-gradient(135deg, rgba(90, 200, 250, 0.8) 0%, rgba(0, 122, 255, 0.8) 50%, rgba(0, 61, 153, 0.8) 100%);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-mid: rgba(255, 255, 255, 0.18);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Gradient Text Utility */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-title-large {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* ============================================
   1. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 122, 255, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(90, 200, 250, 0.12) 0%, transparent 65%),
        linear-gradient(180deg, #020817 0%, #051535 50%, #020817 100%);
}

/* Aurora rings — large, vivid, fast-flowing (Apple Music style) */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    mix-blend-mode: screen;
    background: transparent;
    will-change: transform;
}

.orb-1 {
    width: 1500px;
    height: 1500px;
    top: 50%;
    left: 50%;
    margin-top: -750px;
    margin-left: -750px;
    background: radial-gradient(
        circle at center,
        transparent 22%,
        rgba(0, 180, 255, 0.5) 32%,
        rgba(60, 200, 255, 0.7) 42%,
        rgba(140, 230, 255, 0.85) 50%,
        rgba(60, 200, 255, 0.7) 58%,
        rgba(0, 180, 255, 0.5) 68%,
        transparent 78%
    );
    animation: auroraSpin1 12s linear infinite, auroraBreathe 6s ease-in-out infinite;
}

.orb-2 {
    width: 1800px;
    height: 1800px;
    top: 50%;
    left: 50%;
    margin-top: -900px;
    margin-left: -900px;
    background: radial-gradient(
        circle at center,
        transparent 24%,
        rgba(40, 110, 240, 0.45) 33%,
        rgba(80, 140, 245, 0.65) 42%,
        rgba(140, 180, 250, 0.8) 50%,
        rgba(80, 140, 245, 0.65) 58%,
        rgba(40, 110, 240, 0.45) 67%,
        transparent 78%
    );
    animation: auroraSpin2 16s linear infinite, auroraBreathe 7s ease-in-out infinite -2s;
}

.orb-3 {
    width: 1200px;
    height: 1200px;
    top: 50%;
    left: 50%;
    margin-top: -600px;
    margin-left: -600px;
    background: radial-gradient(
        circle at center,
        transparent 20%,
        rgba(140, 220, 255, 0.5) 30%,
        rgba(180, 230, 255, 0.7) 42%,
        rgba(225, 245, 255, 0.85) 50%,
        rgba(180, 230, 255, 0.7) 58%,
        rgba(140, 220, 255, 0.5) 70%,
        transparent 80%
    );
    animation: auroraSpin3 10s linear infinite, auroraBreathe 5s ease-in-out infinite -1s;
}

/* Smooth circular orbit + scale pulse — wider movement, never too small */
@keyframes auroraSpin1 {
    0%     { transform: translate(380px, 0)        rotate(0deg)   scale(1.0); }
    12.5%  { transform: translate(269px, -269px)   rotate(45deg)  scale(1.12); }
    25%    { transform: translate(0, -380px)       rotate(90deg)  scale(1.28); }
    37.5%  { transform: translate(-269px, -269px)  rotate(135deg) scale(1.45); }
    50%    { transform: translate(-380px, 0)       rotate(180deg) scale(1.6); }
    62.5%  { transform: translate(-269px, 269px)   rotate(225deg) scale(1.45); }
    75%    { transform: translate(0, 380px)        rotate(270deg) scale(1.28); }
    87.5%  { transform: translate(269px, 269px)    rotate(315deg) scale(1.12); }
    100%   { transform: translate(380px, 0)        rotate(360deg) scale(1.0); }
}

@keyframes auroraSpin2 {
    0%     { transform: translate(290px, 290px)    rotate(0deg)    scale(1.1); }
    12.5%  { transform: translate(410px, 0)        rotate(-45deg)  scale(1.0); }
    25%    { transform: translate(290px, -290px)   rotate(-90deg)  scale(0.95); }
    37.5%  { transform: translate(0, -410px)       rotate(-135deg) scale(1.15); }
    50%    { transform: translate(-290px, -290px)  rotate(-180deg) scale(1.4); }
    62.5%  { transform: translate(-410px, 0)       rotate(-225deg) scale(1.65); }
    75%    { transform: translate(-290px, 290px)   rotate(-270deg) scale(1.4); }
    87.5%  { transform: translate(0, 410px)        rotate(-315deg) scale(1.2); }
    100%   { transform: translate(290px, 290px)    rotate(-360deg) scale(1.1); }
}

@keyframes auroraSpin3 {
    0%     { transform: translate(-225px, -225px)  rotate(0deg)   scale(0.95); }
    12.5%  { transform: translate(0, -320px)       rotate(45deg)  scale(1.1); }
    25%    { transform: translate(225px, -225px)   rotate(90deg)  scale(1.28); }
    37.5%  { transform: translate(320px, 0)        rotate(135deg) scale(1.45); }
    50%    { transform: translate(225px, 225px)    rotate(180deg) scale(1.6); }
    62.5%  { transform: translate(0, 320px)        rotate(225deg) scale(1.45); }
    75%    { transform: translate(-225px, 225px)   rotate(270deg) scale(1.28); }
    87.5%  { transform: translate(-320px, 0)       rotate(315deg) scale(1.1); }
    100%   { transform: translate(-225px, -225px)  rotate(360deg) scale(0.95); }
}

@keyframes auroraBreathe {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 0.85; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 32px;
    max-width: 1100px;
}

.hero-tag {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(48px, 9vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    color: #ffffff;
}

/* Hero & Footer gradient text — brighter for navy background readability */
.hero .gradient-text,
.footer .gradient-text {
    background: linear-gradient(135deg, #67e8f9 0%, #a5e3ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(18px, 2.4vw, 28px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 0;
}

.hero-logo {
    display: block;
    margin: 0 auto 20px;
    width: clamp(140px, 16vw, 200px);
    height: auto;
    object-fit: contain;
    position: relative;
    top: -30px;
    transform-origin: center center;
    opacity: 0;
    animation: heroLogoIntro 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
    z-index: 5;
    image-rendering: -webkit-optimize-contrast;
}

@keyframes heroLogoIntro {
    0% {
        opacity: 0;
        transform: translateY(220px) scale(3.6);
    }
    22% {
        opacity: 1;
        transform: translateY(220px) scale(3.6);
    }
    58% {
        opacity: 1;
        transform: translateY(220px) scale(3.6);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-desc {
    font-size: clamp(14px, 1.4vw, 17px);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn .arrow {
    transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(6px);
}

.btn-primary {
    background: #ffffff;
    color: #0a1d3a;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================
   2. ABOUT (Company Overview) — Apple Watch Ultra Style
   ============================================ */
.about {
    padding: 80px 0 120px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #f5f5f7 0%, #c5d5e8 100%);
}

.about-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Card 1 — Image with overlay text */
.about-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 100px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translate3d(0, var(--scroll-y, 0), 0);
    transition: transform 0.1s linear;
    will-change: transform;
}

@media (min-width: 768px) {
    .about-card {
        aspect-ratio: 16 / 11;
    }
}

.about-card-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80');
    background-size: cover;
    background-position: center;
    filter: saturate(1.1) contrast(1.05);
    z-index: 0;
    transform: scale(1);
    transition: transform 2s var(--ease);
}

.about-card:hover .about-card-bg {
    transform: scale(1.06);
}

.about-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
    z-index: 1;
}

.about-card-content {
    position: relative;
    z-index: 2;
    padding: clamp(36px, 5vw, 64px);
    max-width: 600px;
}

/* Apple-style red tag */
.about-tag {
    display: inline-block;
    color: #007aff;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0;
}

.about-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 20px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.about-desc {
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.65;
    color: #f5f5f7;
    font-weight: 400;
    max-width: 460px;
}

.about-desc strong {
    font-weight: 600;
    color: #fff;
}

/* Per-line text reveal — cascades when parent .about-card / .about-second becomes visible */
.anim-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
    will-change: opacity, transform, filter;
}

.about-card.visible .anim-line,
.about-second.visible .anim-line,
.vision-card.visible .anim-line {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Card 2 — Text block below (on light section bg, dark text) */
.about-second {
    padding: 40px clamp(36px, 5vw, 64px) 0;
    max-width: 880px;
}

.about-second .about-title {
    font-size: clamp(28px, 4vw, 48px);
    color: #1d1d1f;
}

.about-second .about-desc {
    max-width: 600px;
    color: #515154;
}

.about-second .about-desc strong {
    color: #1d1d1f;
}

/* ============================================
   2-1. WHY RND — Apple Horizontal Carousel Style
   ============================================ */
.why {
    padding: 100px 0 120px;
    color: #1d1d1f;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #c5d5e8 0%, #f5f5f7 100%);
}

/* Narrower container to match Apple's content area, pushing cards visually right */
.why .container {
    max-width: 1024px;
}

.why-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.why-main-title {
    font-size: clamp(32px, 4.4vw, 56px);
    color: #1d1d1f;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    flex: 1 1 480px;
}

.why-link {
    display: none;
}

.why-link span {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s var(--ease);
}

.why-link:hover {
    color: #0077ed;
}

.why-link:hover span {
    transform: translateX(4px);
}

/* Carousel — NO scroll-snap (caused 2nd carousel to misalign) */
.why-carousel-wrap {
    margin-bottom: 32px;
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Grid mode — used by Business Areas to show all cards at once with no nav */
.why-carousel-wrap.is-grid {
    overflow: visible;
    padding: 8px 24px 24px;
    margin-bottom: 0;
}

.why-carousel-wrap.is-grid .why-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

.why-carousel-wrap.is-grid .why-track::before,
.why-carousel-wrap.is-grid .why-track::after {
    display: none;
}

.why-carousel-wrap::-webkit-scrollbar {
    display: none;
}

.why-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Real spacer using ::before with explicit, identical size */
.why-track::before {
    content: '';
    display: block;
    flex: 0 0 auto;
    width: max(32px, calc((100vw - 1024px) / 2 + 24px));
    min-width: max(32px, calc((100vw - 1024px) / 2 + 24px));
    height: 1px;
    pointer-events: none;
}

.why-track::after {
    content: '';
    display: block;
    flex: 0 0 auto;
    width: 32px;
    min-width: 32px;
    height: 1px;
    pointer-events: none;
}

.why-card {
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    height: 460px;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.why-card-tag {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.why-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.why-card-desc {
    font-size: 14px;
    color: #515154;
    line-height: 1.55;
    margin-bottom: 20px;
}

.why-card-visual {
    margin-top: auto;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #f5f5f7;
}

.why-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}

.why-card:hover .why-card-visual img {
    transform: scale(1.06);
}

.why-card-add {
    display: none;
}

.why-card-add svg {
    width: 12px;
    height: 12px;
}

.why-card-add:hover {
    background: var(--accent-pink);
    transform: scale(1.1) rotate(90deg);
}

/* Nav arrows */
.why-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 100px;
}

.why-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8e8ed;
    color: #6e6e73;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    border: none;
}

.why-nav-btn:hover:not(:disabled) {
    background: #d2d2d7;
    color: #1d1d1f;
}

.why-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.why-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   3. VISION & CORE COMPETENCY — Apple Watch Ultra Style
   ============================================ */
.vision {
    padding: 100px 0 120px;
    color: #1d1d1f;
    position: relative;
    overflow: hidden;
}

.vision-bg-decoration {
    display: none;
}

/* TOP: Stats block — Apple Watch Ultra (LEFT-aligned) */
.vision-stats-block {
    max-width: 760px;
    margin: 0 0 80px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.vision-icon-wrap {
    width: 36px;
    height: 36px;
    margin: 0 0 28px;
    color: #007aff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    filter: drop-shadow(0 0 16px rgba(0, 122, 255, 0.4));
}

.vision-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.vision-stats-title {
    font-size: clamp(36px, 5.6vw, 68px);
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.vision-stats-desc {
    font-size: clamp(14px, 1.2vw, 16px);
    color: #515154;
    line-height: 1.65;
    margin: 0 0 56px;
    max-width: 600px;
}

.vision-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 80px;
    text-align: left;
    max-width: 720px;
    margin: 0;
}

.v-stat {
    display: flex;
    flex-direction: column;
}

.v-stat-tag {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.v-stat-num {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    background: linear-gradient(135deg, #5ac8fa 0%, #007aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    word-break: keep-all;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.v-stat-num sup {
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 2px;
    font-weight: 600;
}

.v-stat-secondary .v-stat-num {
    font-size: clamp(30px, 3.6vw, 40px);
}

.v-stat p {
    font-size: 14px;
    color: #515154;
    line-height: 1.5;
}

/* Comparison Table — 경쟁사와의 구조적 차이점 */
.comparison-block {
    margin: 120px 0 100px;
    padding: 0;
    position: relative;
    z-index: 2;
}

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-title {
    font-size: clamp(31px, 3.84vw, 46px);
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.comp-highlight-text {
    background: linear-gradient(135deg, #5ac8fa 0%, #007aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comparison-sub {
    font-size: 17px;
    color: #86868b;
    letter-spacing: 0.5px;
    margin: 0;
}

.comparison-table {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8ed;
    max-width: 980px;
    margin: 0 auto;
}

.ct-row {
    display: grid;
    grid-template-columns: 180px 1fr 1.1fr;
    border-bottom: 1px solid #e8e8ed;
    transition: background 0.3s var(--ease);
}

.ct-row:last-child {
    border-bottom: none;
}

.ct-row:not(.ct-head):hover {
    background: #fafbfc;
}

.ct-cell {
    padding: 24px 29px;
    font-size: 18px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

/* Header row */
.ct-head {
    background: #f5f5f7;
}

.ct-head .ct-cell {
    font-weight: 700;
    font-size: 16px;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ct-label-head {
    background: #ebebef;
}

/* Label column (left) */
.ct-label {
    background: #fafbfc;
    font-weight: 600;
    color: #515154;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Highlighted RND Factory column — emphasized larger */
.ct-highlight {
    background: rgba(0, 122, 255, 0.06);
    color: #003d99;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    position: relative;
}

.ct-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #5ac8fa 0%, #007aff 100%);
}

/* Header RND Factory cell — also emphasized */
.ct-highlight-head {
    background: linear-gradient(135deg, #5ac8fa 0%, #007aff 100%);
    color: #fff !important;
    letter-spacing: 1.2px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .ct-highlight {
        font-size: 16px;
    }
    .ct-highlight-head {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .ct-row {
        grid-template-columns: 100px 1fr 1.2fr;
    }
    .ct-cell {
        padding: 14px 16px;
        font-size: 13px;
    }
    .ct-label {
        font-size: 12px;
    }
    .ct-head .ct-cell {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

/* BOTTOM: Image card (Apple style) */
.vision-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 100px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    min-height: 500px;
    transform: translate3d(0, var(--scroll-y, 0), 0);
    transition: transform 0.1s linear;
    will-change: transform;
}

@media (min-width: 768px) {
    .vision-card {
        aspect-ratio: 4 / 3;
        min-height: 700px;
    }
}

@media (min-width: 1280px) {
    .vision-card {
        aspect-ratio: 3 / 2;
        min-height: 760px;
    }
}

.vision-card-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=1600&q=80');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1) brightness(0.65);
    z-index: 0;
    transform: scale(1);
    transition: transform 2s var(--ease);
}

.vision-card:hover .vision-card-bg {
    transform: scale(1.06);
}

.vision-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 45%, transparent 70%);
    z-index: 1;
}

.vision-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: clamp(36px, 5vw, 64px);
    max-width: 720px;
}

.vision-card-tag {
    display: block;
    color: #5ac8fa;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0;
}

.vision-card-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 20px;
}

.vision-card-desc {
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
}

/* ============================================
   3-1. COMPETENCY SECTION (mirrors Why RND carousel design)
   ============================================ */
.competency-section {
    padding: 100px 0 120px;
    color: #1d1d1f;
    position: relative;
    overflow: hidden;
}

.competency-section .container {
    max-width: 1024px;
}

.comp-subheader {
    margin: 56px 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e5e7;
}

.comp-sub-tag {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.comp-sub-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ============================================
   4-1. SERVICES
   ============================================ */
.services {
    padding: 100px 0 120px;
    color: #1d1d1f;
    background: linear-gradient(180deg, #c5d5e8 0%, #f5f5f7 100%);
}

/* 주요 사업 및 시스템 (What We Do) section — top of pair */
#what-we-do {
    background: linear-gradient(180deg, #f5f5f7 0%, #c5d5e8 100%);
}

.services-header {
    margin-bottom: 32px;
    text-align: left;
}

.services-eyebrow {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.services-headline {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 600;
    color: #86868b;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.services-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.srv-card {
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease);
    cursor: pointer;
}

.srv-card:hover {
    transform: translateY(-6px);
}

.srv-card-light,
.srv-card-dark {
    background: #ffffff;
}

.srv-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.srv-image-light,
.srv-image-dark {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f2 100%);
}

.srv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}

.srv-card:hover .srv-card-image img {
    transform: scale(1.05);
}

.srv-card-body {
    padding: 26px 30px 30px;
}

.srv-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 14px;
}

.srv-card-text strong {
    font-weight: 600;
    color: inherit;
}

.srv-card-link {
    display: inline-block;
    font-size: 14px;
    color: #06c;
    transition: color 0.3s var(--ease);
}

.srv-card-link span {
    display: inline-block;
    margin-left: 2px;
    transition: transform 0.3s var(--ease);
}

.srv-card-link:hover {
    color: #0077ed;
}

.srv-card-link:hover span {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .services-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   5. HISTORY — Voyage Timeline (sticky 3D camera)
   ============================================ */
.history-runway {
    position: relative;
    height: 700vh;
    background: #f5f5f7;
}

.history-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #f5f5f7;
}

.history-header-pane {
    position: absolute;
    left: 6%;
    top: 12%;
    z-index: 12;
    pointer-events: auto;
    max-width: 360px;
}

.history-header-pane .history-eyebrow {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 12px;
}

.history-header-pane .history-headline {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 500;
    color: #6e6e73;
    letter-spacing: -0.01em;
    line-height: 1.55;
    margin: 0;
}

.history-counter {
    position: absolute;
    right: 6%;
    top: 12%;
    z-index: 12;
    text-align: right;
}

/* Stacked log of passed years — sits under the section header,
   then drifts to screen center at the end of the runway. */
/* Box dimensions and font sizes are FIXED — JS only animates transform: scale().
   Keeping width and font constant means line breaks never reflow during the
   sidebar→center drift; we just scale everything up uniformly. */
.history-stack {
    position: absolute;
    left: 6%;
    top: calc(12% + 130px);
    z-index: 11;
    width: 360px;
    pointer-events: none;
    transform-origin: top left;
}

.history-stack__item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(60, 60, 67, 0.1);
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.history-stack__item.is-shown {
    opacity: 1;
    transform: translateY(0);
}

.history-stack__year {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.01em;
    color: #007aff;
    flex: 0 0 auto;
    min-width: 86px;
}

.history-stack__body {
    flex: 1 1 auto;
    min-width: 0;
}

.history-stack__fields {
    font-size: 12px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.5;
    margin: 0 0 4px;
}

.history-stack__results {
    font-size: 11px;
    color: #6e6e73;
    line-height: 1.5;
    letter-spacing: 0.2px;
    margin: 0;
}

/* Centered mode only swaps the year color treatment — geometry is JS driven. */
.history-stack.is-centered .history-stack__year {
    font-weight: 800;
    background: linear-gradient(135deg, #5ac8fa 0%, #007aff 50%, #003d99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.history-counter__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #007aff;
    margin-bottom: 8px;
}

.history-counter__num {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1;
}

.history-counter__num span:last-child {
    color: #aeaeb2;
    font-weight: 600;
    margin-left: 2px;
}

.history-stations {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    perspective: 1100px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    overflow: hidden;
}

.history-station {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    z-index: 6;
    opacity: 0;
}

.history-station__inner {
    width: 560px;
    max-width: 88vw;
}

/* Text aligns toward the marker side: --left stations have marker on the
   right of the title (text-align: right), --right stations have marker on
   the left (text-align: left). This makes the text read into the marker. */
.history-station__text {
    text-align: right;
}

.history-station--right .history-station__text {
    text-align: left;
}

.history-station__num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    display: inline-block;
    background: linear-gradient(135deg, #5ac8fa 0%, #007aff 50%, #003d99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-station__title {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    color: #007aff;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.history-station__fields {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.history-station__results {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.55;
    letter-spacing: 0.3px;
    margin: 0;
}

.tl-trail-svg,
.tl-marker-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
.tl-trail-svg { z-index: 3; }
.tl-marker-svg { z-index: 7; }

.tl-trail-path-bg {
    fill: none;
    stroke: rgba(60, 60, 67, 0.16);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tl-trail-path-fg {
    fill: none;
    stroke: #007aff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(0 0 4px rgba(0, 122, 255, 0.55))
        drop-shadow(0 0 10px rgba(0, 122, 255, 0.25));
}

.tl-trail-station {
    fill: rgba(174, 174, 178, 0.5);
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 0.8;
}

.tl-trail-station.is-passed {
    fill: #fff;
    stroke: #007aff;
    stroke-width: 1.4;
    filter:
        drop-shadow(0 0 6px rgba(0, 122, 255, 0.85))
        drop-shadow(0 0 16px rgba(0, 122, 255, 0.4));
}

.history-mini {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    width: min(720px, 78vw);
    z-index: 12;
}

.history-mini__bar {
    position: relative;
    height: 2px;
    background: rgba(60, 60, 67, 0.14);
    border-radius: 2px;
    overflow: hidden;
}

.history-mini__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5ac8fa, #007aff);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.5);
    transition: width 0.18s linear;
}

.history-mini__dots {
    display: flex;
    justify-content: space-between;
    margin-top: -4px;
}

.history-mini__dot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #aeaeb2;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.history-mini__dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(60, 60, 67, 0.25);
    margin-bottom: 8px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.history-mini__dot.is-passed {
    color: #007aff;
}

.history-mini__dot.is-passed::before {
    background: #007aff;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .history-runway { height: 600vh; }
    .history-header-pane { left: 5%; top: 8%; max-width: 80%; }
    .history-counter { right: 5%; top: 8%; }
    .history-station__inner { width: 88vw; }
    .history-mini { width: 88vw; bottom: 32px; }
    .history-mini__dot span { font-size: 9px; }
}

/* ============================================
   6. FOOTER (Closing + Contact)
   ============================================ */
.footer {
    color: #ffffff;
    padding: 120px 0 40px;
    position: relative;
    overflow: hidden;
    /* Fill the viewport so the previous section is fully out of view
       once the user reaches the bottom of the page. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 122, 255, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(90, 200, 250, 0.12) 0%, transparent 65%),
        linear-gradient(180deg, #020817 0%, #051535 50%, #020817 100%);
}

.footer > .container {
    width: 100%;
}

/* Aurora orbs container inside footer (and reusable elsewhere) */
.aurora-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Footer orbs sized smaller to fit the shorter section */
.footer .hero-orb {
    filter: blur(60px);
}

.footer .orb-1 {
    width: 900px;
    height: 900px;
    margin-top: -450px;
    margin-left: -450px;
}

.footer .orb-2 {
    width: 1100px;
    height: 1100px;
    margin-top: -550px;
    margin-left: -550px;
}

.footer .orb-3 {
    width: 750px;
    height: 750px;
    margin-top: -375px;
    margin-left: -375px;
}

.footer-bg-orb {
    display: none;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
}

/* ============================================
   Outro intro — ONE shared logo at the top of the bottom area animates
   from large to settled. Once it lands, the closing message and footer
   content rise together underneath.
   ============================================ */
.outro-stage {
    position: relative;
}

.outro-logo {
    display: block;
    margin: 0 auto 40px;
    width: clamp(140px, 16vw, 200px);
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transform-origin: center center;
    opacity: 0;
    transform: translateY(120px) scale(2.6);
    position: relative;
    z-index: 3;
}

.outro-stage .footer-brand,
.outro-stage .footer-contact {
    opacity: 0;
    transform: translateY(24px);
}

.outro-stage.played .outro-logo {
    animation: outroLogoSettle 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}

.outro-stage.played .footer-brand,
.outro-stage.played .footer-contact {
    animation: outroContentRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}

/* Closing message — three lines stacked normally, each fading in
   sequentially after the logo settles, matching the hero intro feel. */
.cm-deck {
    width: 100%;
    max-width: 1240px;
    margin: 24px auto 0;
}

.cm-line {
    text-align: center;
    font-size: clamp(26px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 14px;
    padding: 0 16px;
    opacity: 0;
    transform: translateY(24px);
}

.cm-line:last-child { margin-bottom: 0; }

.outro-stage.played .cm-line {
    animation: outroContentRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.outro-stage.played .cm-line:nth-of-type(1) { animation-delay: 2.4s; }
.outro-stage.played .cm-line:nth-of-type(2) { animation-delay: 2.75s; }
.outro-stage.played .cm-line:nth-of-type(3) { animation-delay: 3.1s; }

.cm-line em {
    font-style: normal;
    background: linear-gradient(135deg, #ffffff 0%, #c5d5e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .cm-line {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@keyframes outroLogoSettle {
    0%   { opacity: 0; transform: translateY(120px) scale(2.6); }
    20%  { opacity: 1; transform: translateY(120px) scale(2.6); }
    55%  { opacity: 1; transform: translateY(120px) scale(2.6); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

.closing {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.closing-message {
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.03em;
    margin-top: 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.closing-message em {
    font-style: normal;
    background: linear-gradient(135deg, #ffffff 0%, #c5d5e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .outro-logo,
    .outro-stage .closing-message,
    .outro-stage .footer-brand,
    .outro-stage .footer-contact {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.footer-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-eng {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.contact-block h4 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.contact-block p,
.contact-block a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    transition: color 0.3s var(--ease);
}

.contact-link:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-credit {
    letter-spacing: 1.5px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    z-index: 999;
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.5);
}

/* ============================================
   ANIMATIONS — CLEAN BIDIRECTIONAL REVEAL (no blur, sharp text)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cards keep transform-free reveal (hover-friendly) */
.why-card.reveal,
.srv-card.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-card.reveal.visible,
.srv-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stats — gentle scale + fade */
.v-stat.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.v-stat.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text intro — soft fade + gentle slide-up */
[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(24px);
    animation: heroTextReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Stagger hero text after logo intro completes (~2.8s) */
.hero-subtitle[data-anim="fade-up"] {
    animation-delay: 3.4s;
}

.hero-desc[data-anim="fade-up"] {
    animation-delay: 3.7s;
}

/* Hero title — line-by-line sequential reveal */
.hero-title {
    display: block;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    animation: heroLineReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line-1 {
    animation-delay: 2.7s;
}

.hero-line-2 {
    animation-delay: 3.0s;
}

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

/* Per-letter or per-word stagger via gradient mask */
.hero-title .gradient-text {
    display: inline-block;
    animation: gradientPulse 3s ease-in-out 4s infinite;
}

@keyframes gradientPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.visible,
    .why-card.reveal,
    .v-stat.reveal,
    .srv-card.reveal {
        transition: opacity 0.3s ease;
        transform: none !important;
        filter: none !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .why-track::before {
        flex: 0 0 24px;
        width: 24px;
    }
}

@media (max-width: 968px) {
    .about {
        padding: 60px 0 80px;
    }
    .about-card {
        aspect-ratio: 4 / 5;
        margin-bottom: 60px;
    }

    .why-card {
        flex: 0 0 260px;
        height: 440px;
    }
    .why-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-cards,
    .footer-info,
    .footer-contact {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .container { padding: 0 20px; }

    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }

    .why-card {
        flex: 0 0 78%;
        height: 420px;
    }

    .ct-row {
        grid-template-columns: 1fr;
    }
    .ct-row:not(.ct-head) .ct-label {
        background: rgba(0, 122, 255, 0.1);
        font-size: 11px !important;
    }

    .about-card-content {
        padding: 32px 24px;
    }
    .about-second {
        padding: 24px 24px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .service-block {
        padding: 36px 24px;
    }

    .comp-card {
        padding: 32px 24px;
    }
}
