/* ==========================================================================
   Translog Connections - premium components & transitions
   ========================================================================== */

/* ---------- Photo page header sizing ---------- */
.page-hero.photo { padding: 178px 0 84px; }

/* ---------- Scroll reveal (progressive: visible without JS) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- Carousel controls (featured / team) ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.carousel-head .ch-left { max-width: 620px; }
.carousel-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 400; }
.carousel-head .ch-aside { color: var(--muted); font-size: 16px; max-width: 340px; }
.car-nav { display: flex; gap: 12px; flex: 0 0 auto; }
.car-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 17px; cursor: pointer; transition: all .2s var(--ease); display: grid; place-items: center; }
.car-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 1fr); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }

/* ---------- Why choose (numbered timeline) ---------- */
.why { display: grid; grid-template-columns: 1fr 1.18fr; gap: 90px; align-items: start; }
.why-intro .eyebrow { display: block; }
.why-intro h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; letter-spacing: -0.03em; }
.why-intro p { color: var(--muted); font-size: 16px; margin-top: 16px; max-width: 380px; }
.why-intro .why-img { border-radius: 16px; overflow: hidden; margin-top: 34px; max-width: 260px; box-shadow: var(--shadow-sm); }
.why-intro .why-img img { width: 100%; height: 220px; object-fit: cover; }
.why-steps { position: relative; display: grid; gap: 26px; padding-left: 52px; }
.why-steps::before { content: ""; position: absolute; left: 17px; top: 14px; bottom: 24px; width: 2px; background: var(--line); }
.why-steps::after { content: ""; position: absolute; left: 17px; top: 14px; height: 30%; width: 2px; background: var(--accent); }
.why-step { position: relative; background: #eef1f4; border-radius: 18px; padding: 32px 34px; }
.why-num { position: absolute; left: -52px; top: 32px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--muted); z-index: 2; }
.why-step:first-child .why-num { border-color: var(--accent); color: var(--accent); }
.why-step .wi { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-strong); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 20px; }
.why-step h4 { font-size: 23px; font-weight: 400; margin-bottom: 8px; letter-spacing: -0.02em; }
.why-step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Dark testimonial carousel ---------- */
.t-dark { background: var(--navy); color: #fff; }
.t-dark .head-center h2 { color: #fff; }
.t-carousel { max-width: 860px; margin: 0 auto; }
.t-viewport { overflow: hidden; }
.t-track { display: flex; transition: transform .55s var(--ease); }
.t-slide { min-width: 100%; text-align: center; padding: 0 4%; }
.t-slide .stars { color: #f5a623; font-size: 16px; margin-bottom: 20px; }
.t-slide .quote { font-size: clamp(20px, 2.6vw, 31px); font-weight: 400; color: #fff; line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 32px; }
.t-slide .who { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.t-slide .who .av { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 20px; margin-bottom: 12px; }
.t-slide .who .nm { color: #fff; font-weight: 500; font-size: 17px; }
.t-slide .who .cp { color: rgba(255,255,255,.6); font-size: 14px; }
.t-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.t-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; cursor: pointer; font-size: 16px; transition: all .2s var(--ease); }
.t-btn:hover { background: #fff; color: var(--navy); }
.t-dots { display: flex; gap: 8px; }
.t-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: all .2s var(--ease); padding: 0; }
.t-dots button.on { background: #fff; width: 24px; border-radius: 6px; }

/* ---------- Team carousel ---------- */
.team-card { min-width: 300px; }
.team-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1.15; background: #dfe4ea; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; font-size: 60px; font-weight: 300; }
.team-card .tname { margin-top: 18px; font-size: 21px; font-weight: 400; color: var(--ink); letter-spacing: -0.02em; }
.team-card .trole { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- Contact split panel ---------- */
.contact-panel { position: relative; overflow: hidden; background: #dce8fb; border-radius: 28px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.contact-panel::before { content: ""; position: absolute; left: -60px; bottom: -60px; width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), transparent 70%); border-radius: 50%; }
.cp-left { position: relative; z-index: 2; }
.cp-left h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 14px; }
.cp-left .cp-desc { color: var(--ink-2); font-size: 16px; margin-bottom: 30px; max-width: 440px; }
.uform .ug { margin-bottom: 26px; }
.uform label { font-size: 14px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }
.uinput { width: 100%; border: 0; border-bottom: 1.5px solid rgba(20,24,29,.22); background: transparent; padding: 10px 0; font-family: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s var(--ease); }
.uinput:focus { outline: none; border-bottom-color: var(--blue-strong); }
textarea.uinput { resize: vertical; min-height: 70px; }
.uform .urow { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cp-photo { position: relative; z-index: 2; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact info strip ---------- */
.contact-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.ci-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.ci-card .ci-ic { width: 48px; height: 48px; border-radius: 12px; background: #e8f3fb; color: var(--blue-strong); display: grid; place-items: center; font-size: 19px; margin-bottom: 18px; }
.ci-card h5 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.ci-card p, .ci-card a { color: var(--ink-2); font-size: 14px; line-height: 1.6; display: block; }
.ci-card a:hover { color: var(--blue-strong); }
.ci-card .zh { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* ---------- About bento (screenshot) ---------- */
.about-bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.about-bento .bento-main { border-radius: 20px; overflow: hidden; min-height: 460px; position: relative; }
.about-bento .bento-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.bento-cell { border-radius: 20px; overflow: hidden; position: relative; min-height: 210px; }
.bento-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-stat { background: #eef1f4; display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.bento-stat .n { font-size: clamp(38px, 4vw, 52px); font-weight: 500; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.bento-stat .l { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }

/* ---------- Service detail (Mahlog style) ---------- */
.svc-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-overview .svc-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-sm); }
.svc-overview .svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-overview h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 16px; }
.svc-overview p { color: var(--ink-2); font-size: 16.5px; margin-bottom: 16px; }
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.benefit-list li .bi { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #e8f3fb; color: var(--blue-strong); display: grid; place-items: center; font-size: 16px; }
.benefit-list li .bt strong { display: block; font-weight: 500; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.benefit-list li .bt span { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .why { grid-template-columns: 1fr; gap: 44px; }
    .contact-panel { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
    .cp-photo { aspect-ratio: 16/10; }
    .contact-info { grid-template-columns: repeat(2, 1fr); }
    .about-bento { grid-template-columns: 1fr; }
    .about-bento .bento-main { min-height: 320px; }
    .svc-overview { grid-template-columns: 1fr; gap: 34px; }
    .carousel-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
    .carousel-head .car-nav { align-self: flex-end; }
    .car-track { grid-auto-columns: 86%; }
    .team-card { min-width: 78%; }
    .contact-info { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr 1fr; }
    .uform .urow { grid-template-columns: 1fr; gap: 0; }
    .contact-panel { padding: 28px; }
    .why-steps { padding-left: 44px; }
    .why-step { padding: 26px 24px; }
}
