/* ===== TOP PAGE ===== */

/* ── Hero ── */
.top-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0c0d0f;
}
.top-hero__bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    will-change: transform, filter;
    animation: heroBgIn 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes heroBgIn {
    from {
        transform: scale(1.08) translate(1.8%, 1.8%);
        filter: blur(14px);
    }
    to {
        transform: scale(1.04) translate(0, 0);
        filter: blur(0);
    }
}
.top-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.82) 100%
    );
}
.top-hero__inner {
    position: relative;
    z-index: 2;
    padding-bottom: 90px;
    padding-top: 160px;
    width: 100%;
}
.top-hero__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45em;
    color: var(--base-color);
    text-transform: uppercase;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s ease both;
}
.top-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.32;
    letter-spacing: -0.01em;
    margin-bottom: 36px;
}
.top-hero__sub {
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.14em;
    line-height: 2.1;
    max-width: 400px;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeUp 0.8s 1.2s ease both;
}
.top-hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s 1.5s ease both;
}
.top-hero__scroll-line {
    width: 56px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}
.top-hero__scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--base-color);
    animation: scrollPulse 2.4s 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%   { left: -100%; }
    50%  { left: 0; }
    100% { left: 100%; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.top-hero .left-panel {
    position: absolute;
    left: 28px;
    bottom: 90px;
    z-index: 3;
}
@media (max-width: 991px) {
    .top-hero h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); }
    .top-hero .left-panel { display: none; }
    .top-hero__inner { padding-bottom: 70px; }
}
@media (max-width: 575px) {
    .top-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
    .top-hero__inner { padding-top: 130px; padding-bottom: 60px; }
}

/* ── Common labels / link btn ── */
.top-section-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45em;
    color: var(--base-color);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.top-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--base-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(203,163,115,0.3);
    padding-bottom: 7px;
    transition: gap 0.3s ease, border-color 0.3s ease;
}
.top-link-btn:hover {
    color: var(--base-color);
    gap: 18px;
    border-color: var(--base-color);
}

/* ── About ── */
.top-about {
    padding: 130px 0;
    background: #0c0d0f;
    position: relative;
    overflow: hidden;
}
@media (max-width: 991px) { .top-about { padding: 90px 0; } }
@media (max-width: 767px) { .top-about { padding: 70px 0; } }
.top-about__img-wrap {
    position: relative;
    overflow: hidden;
}
.top-about__img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(203,163,115,0.12);
    z-index: 1;
    pointer-events: none;
}
.top-about__img-wrap img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}
.top-about__img-wrap:hover img { transform: scale(1.03); }
.top-about__img-deco {
    position: absolute;
    bottom: -10px;
    right: 16px;
    font-size: clamp(3.5rem, 5vw, 5rem);
    font-weight: 900;
    font-family: var(--alt-font);
    color: transparent;
    -webkit-text-stroke: 1px rgba(203,163,115,0.1);
    line-height: 1;
    letter-spacing: -0.03em;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}
.top-about__heading {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.75;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.top-about__text {
    font-size: 13.5px;
    line-height: 2.15;
    color: var(--medium-gray);
    margin-bottom: 38px;
}
@media (max-width: 991px) {
    .top-about__img-wrap img { height: 400px; }
}
@media (max-width: 767px) {
    .top-about__img-wrap img { height: 260px; }
}

/* ── Service ── */
.top-service {
    padding: 120px 0;
    background: #141414;
    position: relative;
    overflow: hidden;
}
.top-service__photo {
    position: absolute;
    inset: 0;
    background-image: url(../img/service/service_bg01.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.07;
    z-index: 0;
}
.top-service > .container { position: relative; z-index: 1; }
.top-service-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 50%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 50%, #000 100%);
}
.top-service-bg__track {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(80px, 13vw, 148px);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.045);
    font-family: var(--alt-font);
    animation: topSvcBgScroll 200s linear infinite;
    line-height: 1.1;
    padding-bottom: 4px;
}
@keyframes topSvcBgScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 991px) { .top-service { padding: 90px 0; } }
@media (max-width: 767px) { .top-service { padding: 70px 0; } }
.top-service__heading {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.65;
    margin-bottom: 0;
}
.top-service__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--base-color) 0%, rgba(203,163,115,0.12) 55%, transparent 100%);
    margin: 50px 0 0;
    transform-origin: left;
}

/* ── Service SVG animation ── */
.top-svc-anim {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    display: block;
    margin: auto;
}
.top-svc-anim .ring {
    fill: none;
    stroke: rgba(203,163,115,0.1);
    stroke-width: 1;
}
.top-svc-anim .ring-a { animation: svcRingPulse 3.5s ease-in-out infinite; }
.top-svc-anim .ring-b { animation: svcRingPulse 3.5s 0.9s ease-in-out infinite; }
.top-svc-anim .ring-c { animation: svcRingPulse 3.5s 1.8s ease-in-out infinite; }
@keyframes svcRingPulse {
    0%,100% { stroke-opacity: 0.1; }
    50%      { stroke-opacity: 0.35; }
}
.top-svc-anim .arc1 {
    fill: none;
    stroke: rgba(203,163,115,0.35);
    stroke-width: 1;
    stroke-dasharray: 90 950;
    transform-origin: 200px 200px;
    animation: svcRotCW 14s linear infinite;
}
.top-svc-anim .arc2 {
    fill: none;
    stroke: rgba(203,163,115,0.2);
    stroke-width: 1;
    stroke-dasharray: 50 750;
    transform-origin: 200px 200px;
    animation: svcRotCCW 20s linear infinite;
}
.top-svc-anim .arc3 {
    fill: none;
    stroke: rgba(203,163,115,0.25);
    stroke-width: 1;
    stroke-dasharray: 30 430;
    transform-origin: 200px 200px;
    animation: svcRotCW 9s linear infinite;
}
@keyframes svcRotCW  { to { transform: rotate(360deg);  } }
@keyframes svcRotCCW { to { transform: rotate(-360deg); } }
.top-svc-anim .cdot {
    fill: var(--base-color);
    animation: svcCDot 2.4s ease-in-out infinite;
}
@keyframes svcCDot {
    0%,100% { r: 4; opacity: 0.7; }
    50%      { r: 6.5; opacity: 1; }
}
@media (max-width: 991px) { .top-svc-anim-col { display: none; } }
.top-svc-band {
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    position: relative;
    overflow: hidden;
    transition: background 0.35s;
    text-decoration: none;
}
.top-svc-band::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--base-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s cubic-bezier(0.76,0,0.24,1);
}
.top-svc-band:hover { background: rgba(255,255,255,0.02); }
.top-svc-band:hover::before { transform: scaleY(1); }
.top-svc-band__inner {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 34px 24px;
}
.top-svc-band__num {
    font-family: var(--alt-font);
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(203,163,115,0.28);
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    letter-spacing: -0.03em;
    transition: -webkit-text-stroke-color 0.35s;
}
.top-svc-band:hover .top-svc-band__num {
    -webkit-text-stroke-color: rgba(203,163,115,0.75);
}
.top-svc-band__info { flex: 1; }
.top-svc-band__title {
    font-size: 15px;
    font-weight: 600;
    color: #e8e0d4;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
}
.top-svc-band__desc {
    font-size: 13px;
    color: #5a5a5a;
    line-height: 1.9;
    margin: 0;
}
.top-svc-band__arrow {
    font-size: 13px;
    color: rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: color 0.3s, transform 0.3s;
}
.top-svc-band:hover .top-svc-band__arrow {
    color: var(--base-color);
    transform: translateX(6px);
}
.top-service__footer { margin-top: 50px; }
@media (max-width: 575px) {
    .top-svc-band__inner { gap: 20px; padding: 26px 16px; }
}

/* ── Works ── */
.top-works {
    padding: 120px 0 0;
    background: #0c0d0f;
}
@media (max-width: 991px) { .top-works { padding: 90px 0 0; } }
.top-works__head { margin-bottom: 52px; }
.top-works__heading {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.65;
    margin-bottom: 0;
}
.top-works-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 310px 250px;
    gap: 3px;
}
.top-works-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #141414;
}
.top-works-card--large { grid-row: span 2; }
.top-works-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.top-works-card:hover img { transform: scale(1.05); }
.top-works-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.top-works-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    transform: translateY(6px);
    transition: transform 0.4s ease;
}
.top-works-card:hover .top-works-card__body { transform: translateY(0); }
.top-works-card__tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--base-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.top-works-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.5;
}
.top-works-card--large .top-works-card__body { padding: 32px 36px; }
.top-works-card--large .top-works-card__title { font-size: 18px; }
.top-works__more {
    padding: 56px 0;
    text-align: center;
}
@media (max-width: 767px) {
    .top-works-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 220px;
    }
    .top-works-card--large { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 480px) {
    .top-works-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 240px);
    }
    .top-works-card--large { grid-row: span 1; grid-column: span 1; }
}

/* ── CTA (contact banner) ── */
.top-cta {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    min-height: clamp(320px, 50vw, 560px);
}
.top-cta__imgs {
    position: absolute;
    inset: 0;
    display: flex;
}
.top-cta__img {
    flex: 1;
    overflow: hidden;
}
.top-cta__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.top-cta:hover .top-cta__img img {
    transform: scale(1.1);
}
.top-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    transition: background 0.6s;
}
.top-cta:hover .top-cta__overlay {
    background: rgba(0,0,0,0.38);
}
.top-cta__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(320px, 50vw, 560px);
    padding: 60px 20px;
    text-align: center;
}
.top-cta__title {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.6;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.top-cta__sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.1em;
    line-height: 2.1;
    margin-bottom: 44px;
}
.top-cta__circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.4s, background 0.4s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.top-cta:hover .top-cta__circle {
    border-color: var(--base-color);
    background: var(--base-color);
    transform: scale(1.18);
}
.top-cta__circle i {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s, transform 0.4s;
}
.top-cta:hover .top-cta__circle i {
    color: #111;
    transform: translateX(2px);
}
@media (max-width: 575px) {
    .top-cta__en { font-size: clamp(2.8rem, 12vw, 5rem); }
    .top-cta__circle { width: 52px; height: 52px; }
}
