/* ═══════════════════════════════════════════════════════════
   甫東科技 FullDot — Homepage CSS (home.css)
   Premium Redesign 2026 · AI + SEO Authority Design
═══════════════════════════════════════════════════════════ */

/* ── Variables (inherited from style.css :root) ── */
/* All CSS vars defined in style.css are available here */

/* ══════════════════════════════════
   § 1  HERO
══════════════════════════════════ */
.hm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #080a0c;
}

.hm-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hm-hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.9) saturate(.7);
    animation: hmHeroPan 30s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes hmHeroPan {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06) translate(-1%, -0.5%); }
}
.hm-hero-grad {
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, rgba(8,10,12,.98) 35%, rgba(8,10,12,.3) 100%),
        linear-gradient(to top, rgba(8,10,12,.9) 0%, transparent 45%);
}

.hm-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 180px 80px 100px;
}

.hm-hero-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: .65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    opacity: 0;
    animation: hmUp .8s .2s var(--ease-out) forwards;
}
.hm-label-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: hmPulse 2s ease-in-out infinite;
}
@keyframes hmPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(209,91,39,.5); }
    50%      { box-shadow: 0 0 0 6px rgba(209,91,39,0); }
}

.hm-hero-h1 {
    margin-bottom: 28px;
    opacity: 0;
    animation: hmUp .9s .4s var(--ease-out) forwards;
}
.hm-serif {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-light);
    margin-bottom: 10px;
    letter-spacing: .5px;
}
.hm-h1-main {
    display: block;
    font-size: clamp(3rem, 6.5vw, 6rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -2px;
    color: #fff;
}

.hm-hero-desc {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.9;
    color: rgba(255,255,255,.45);
    max-width: 520px;
    margin-bottom: 40px;
    opacity: 0;
    animation: hmUp .9s .6s var(--ease-out) forwards;
}

.hm-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    opacity: 0;
    animation: hmUp .9s .75s var(--ease-out) forwards;
}
.hm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent), #b84d1f);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    font-size: .95rem;
    transition: all .4s var(--ease-out);
    box-shadow: 0 8px 32px rgba(209,91,39,.3);
}
.hm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(209,91,39,.45);
}
.hm-btn-primary svg { transition: transform .3s; }
.hm-btn-primary:hover svg { transform: translateX(4px); }
.hm-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.65);
    border-radius: 100px;
    font-size: .95rem;
    transition: all .35s;
}
.hm-btn-ghost:hover {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: rgba(255,255,255,.04);
}

.hm-hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    opacity: 0;
    animation: hmUp .9s .9s var(--ease-out) forwards;
}
.hm-stat b {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    font-style: italic;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.hm-stat small {
    font-size: .72rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
}
.hm-stat-div {
    width: 1px; height: 48px;
    background: rgba(255,255,255,.12);
}

.hm-scroll-hint {
    position: absolute;
    right: 60px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 4;
    opacity: 0;
    animation: hmUp .8s 1.2s var(--ease-out) forwards;
}
.hm-scroll-track {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,.12);
    position: relative;
    overflow: hidden;
}
.hm-scroll-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 30px;
    background: var(--accent);
    animation: hmScrollSlide 2.2s ease-in-out infinite;
}
@keyframes hmScrollSlide {
    0%   { top: -30px; }
    100% { top: 60px; }
}
.hm-scroll-hint span {
    font-size: .55rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,.2);
    writing-mode: vertical-rl;
}

@keyframes hmUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   § 2  DUAL MARQUEE
══════════════════════════════════ */
.hm-marquee-wrap {
    background: var(--text-dark);
    padding: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.hm-marquee {
    display: flex;
    overflow: hidden;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.hm-marquee:last-child { border-bottom: none; }
.hm-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: hmMarqFwd 28s linear infinite;
}
.hm-marquee-rev .hm-marquee-track {
    animation: hmMarqRev 32s linear infinite;
}
.hm-marquee-track span {
    font-size: .72rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: rgba(255,255,255,.28);
    padding: 0 24px;
    text-transform: uppercase;
}
.hm-mdot {
    color: var(--accent) !important;
    opacity: .5 !important;
    font-size: .5rem !important;
    letter-spacing: 0 !important;
    padding: 0 4px !important;
}
@keyframes hmMarqFwd { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes hmMarqRev { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }

/* ══════════════════════════════════
   § 3  SERVICES — Magnetic Cards
══════════════════════════════════ */
.hm-services {
    background: var(--bg-cream);
    padding: 120px 0;
    overflow: hidden;
}
.hm-services-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Section Headers (shared) */
.hm-section-head {
    max-width: 640px;
    margin-bottom: 64px;
}
.hm-section-head-center {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .62rem;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hm-section-h2 {
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}
.hm-section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Service grid */
.hm-svc-grid {
    display: flex;
    height: 540px;
    gap: 3px;
    border-radius: 24px;
    overflow: hidden;
}
.hm-svc-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hm-svc-card.hm-svc-open { flex: 4.5; }
.hm-svc-inner {
    display: block;
    width: 100%; height: 100%;
    position: relative;
}
.hm-svc-bg {
    position: absolute; inset: 0;
}
.hm-svc-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease-out);
    filter: brightness(.35) saturate(.6);
    will-change: transform;
}
.hm-svc-card:hover .hm-svc-bg img,
.hm-svc-card.hm-svc-open .hm-svc-bg img {
    transform: scale(1.06);
    filter: brightness(.45) saturate(.8);
}
.hm-svc-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 28px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hm-svc-num {
    font-family: var(--font-serif);
    font-size: .75rem;
    font-style: italic;
    color: var(--accent-light);
    opacity: .7;
}
.hm-svc-tag {
    font-size: .58rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    font-weight: 700;
}
.hm-svc-title {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.2;
}
.hm-svc-title em {
    display: block;
    font-family: var(--font-serif);
    font-size: .7rem;
    font-weight: 400;
    color: rgba(255,255,255,.4);
    margin-bottom: 4px;
    font-style: italic;
}
.hm-svc-desc {
    font-size: .88rem;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height .6s var(--ease-out), opacity .4s;
    opacity: 0;
}
.hm-svc-card.hm-svc-open .hm-svc-desc {
    max-height: 100px;
    opacity: 1;
}
.hm-svc-arrow {
    display: none;
    align-self: flex-start;
    margin-top: 8px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    align-items: center;
    justify-content: center;
    transition: all .3s;
}
.hm-svc-card.hm-svc-open .hm-svc-arrow { display: flex; }
.hm-svc-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.hm-svc-more {
    margin-top: 40px;
    text-align: right;
}
.hm-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--accent);
    transition: gap .3s;
}
.hm-link-arrow:hover { gap: 14px; }

/* ══════════════════════════════════
   § 4  PORTFOLIO
══════════════════════════════════ */
.hm-portfolio {
    background: #fff;
    overflow: hidden;
}
.hm-port-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 80px 60px;
}

.hm-port-stage {
    display: grid;
    grid-template-columns: 1fr 420px;
    min-height: 680px;
    position: relative;
}

.hm-port-images {
    position: relative;
    overflow: hidden;
}
.hm-port-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hm-port-slide.hm-port-active { opacity: 1; }
.hm-port-slide img {
    width: 100%; height: 100%; object-fit: cover;
}
.hm-port-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent 60%, #fff 100%);
}

.hm-port-info {
    background: #fff;
    padding: 60px 60px 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.hm-port-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 40px;
    font-family: var(--font-serif);
    font-style: italic;
}
.hm-port-counter #hm-port-cur {
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    transition: all .4s;
}
.hm-port-sep { color: var(--text-light); margin: 0 4px; }
.hm-port-counter span:last-child { font-size: 1.2rem; color: var(--text-light); }

.hm-port-texts { flex: 1; position: relative; min-height: 200px; }
.hm-port-text {
    position: absolute; top: 0; left: 0; right: 0;
    opacity: 0; transform: translateY(20px);
    transition: all .5s var(--ease-out);
    pointer-events: none;
}
.hm-port-text.hm-port-text-active {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}
.hm-port-cat {
    display: inline-block;
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
}
.hm-port-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.hm-port-desc {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hm-port-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
}
.hm-port-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.hm-port-btn:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: #fff;
}
.hm-port-dots { display: flex; gap: 8px; flex: 1; }
.hm-port-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .3s;
}
.hm-port-dot.hm-port-dot-active {
    background: var(--accent);
    transform: scale(1.4);
}

/* ══════════════════════════════════
   § 5  PROCESS — Vertical Timeline
══════════════════════════════════ */
.hm-process {
    background: var(--bg-cream);
    padding: 120px 0;
}
.hm-process-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.hm-timeline {
    position: relative;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hm-tl-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
    z-index: 0;
}
.hm-tl-line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-light));
    transition: height 1s ease;
}

.hm-tl-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}
.hm-tl-item .hm-tl-card { grid-column: 1; }
.hm-tl-item .hm-tl-node { grid-column: 2; }
.hm-tl-item > *:last-child { grid-column: 3; }

.hm-tl-right .hm-tl-card { grid-column: 3; order: 3; }
.hm-tl-right .hm-tl-node { grid-column: 2; order: 2; }
.hm-tl-right > *:first-child { grid-column: 1; order: 1; display: flex; justify-content: flex-end; }

.hm-tl-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hm-tl-node-inner {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    transition: border-color .35s, box-shadow .35s, transform .35s;
    will-change: transform;
    padding: 12px;
    color: var(--text-muted);
}
.hm-tl-node-inner svg {
    width: 100%; height: 100%;
    display: block;
}
.hm-tl-item:hover .hm-tl-node-inner {
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(209,91,39,.18);
    transform: scale(1.1);
    color: var(--text-dark);
}
.hm-tl-num {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent);
}

.hm-tl-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    border: 1px solid var(--border);
    transition: all .4s var(--ease-out);
    max-width: 420px;
}
.hm-tl-item:hover .hm-tl-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.08);
    border-color: var(--accent);
}
.hm-tl-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.3px;
}
.hm-tl-desc {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ══════════════════════════════════
   § 6  ABOUT — Split Screen
══════════════════════════════════ */
.hm-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
    overflow: hidden;
}
.hm-about-visual {
    position: relative;
    overflow: hidden;
}
.hm-about-img-wrap {
    position: absolute; inset: 0;
}
.hm-about-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}
.hm-about:hover .hm-about-img-wrap img { transform: scale(1.04); }
.hm-about-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(209,91,39,.2) 0%, rgba(12,15,20,.6) 100%);
}
.hm-about-badge {
    position: absolute;
    bottom: 48px; right: 48px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.hm-badge-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.hm-badge-lab {
    font-size: .75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hm-about-content {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 80px;
}
.hm-about-h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 28px;
}
.hm-about-lead {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
}
.hm-about-body {
    font-size: .95rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.hm-about-metrics {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.hm-metric strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}
.hm-metric strong sup {
    font-size: 1rem;
    color: var(--accent);
}
.hm-metric span {
    font-size: .75rem;
    color: var(--text-muted);
    letter-spacing: .5px;
}

/* ══════════════════════════════════
   § 7  TRUST
══════════════════════════════════ */
.hm-trust {
    background: var(--bg-cream);
    padding: 120px 0;
}
.hm-trust-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.hm-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
    margin-top: 64px;
}
.hm-tc-1, .hm-tc-5 { grid-row: span 2; }
.hm-tc-3           { grid-column: span 2; }

.hm-trust-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
}
.hm-trust-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}
.hm-trust-card:hover img { transform: scale(1.06); }
.hm-trust-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%);
    transition: background .4s;
}
.hm-trust-card:hover .hm-trust-overlay {
    background: linear-gradient(to top, rgba(209,91,39,.7) 0%, rgba(0,0,0,.2) 60%);
}
.hm-trust-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 20px;
    color: #fff;
}
.hm-trust-info strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.hm-trust-info span {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
    letter-spacing: .5px;
}

.hm-trust-quote {
    max-width: 800px;
    margin: 64px auto 0;
    text-align: center;
    padding: 48px 60px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
    border: 1px solid var(--border);
    position: relative;
}
.hm-trust-quote::before {
    content: '"';
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-size: 6rem;
    color: var(--accent);
    line-height: 1;
    opacity: .3;
}
.hm-trust-quote p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ══════════════════════════════════
   § 8  CTA BANNER
══════════════════════════════════ */
.hm-cta {
    position: relative;
    background: #080a0c;
    padding: 140px 80px;
    text-align: center;
    overflow: hidden;
}
.hm-cta-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.hm-cta-inner {
    position: relative; z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.hm-cta-eyebrow {
    display: block;
    font-size: .62rem;
    letter-spacing: 5px;
    color: var(--accent-light);
    margin-bottom: 24px;
    opacity: .7;
}
.hm-cta-h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-style: italic;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 20px;
}
.hm-cta-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.4);
    line-height: 1.85;
    margin-bottom: 48px;
}
.hm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--accent), #b84d1f);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: all .5s var(--ease-out);
    box-shadow: 0 12px 48px rgba(209,91,39,.3);
}
.hm-cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 64px rgba(209,91,39,.5);
}

/* ══════════════════════════════════
   § 9  CONTACT FORM
══════════════════════════════════ */
.hm-contact {
    background: #fff;
    padding: 120px 0;
}
.hm-contact-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 100px;
    align-items: start;
}
.hm-contact-h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.3;
}
.hm-contact-intro {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 40px;
}
.hm-contact-details { font-style: normal; }
.hm-contact-row {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
    color: var(--text-dark);
    transition: color .3s;
}
a.hm-contact-row:hover { color: var(--accent); }
.hm-ci-label {
    font-size: .65rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    width: 40px;
    flex-shrink: 0;
    padding-top: 2px;
}

/* Floating label form */
.hm-form { display: flex; flex-direction: column; gap: 20px; }
.hm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-form-field { position: relative; }
.hm-form-field input,
.hm-form-field textarea,
.hm-select {
    width: 100%;
    padding: 20px 18px 8px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: .95rem;
    background: var(--bg-cream);
    color: var(--text-dark);
    transition: border-color .3s, background .3s;
    outline: none;
    appearance: none;
}
.hm-form-field input:focus,
.hm-form-field textarea:focus,
.hm-select:focus {
    border-color: var(--accent);
    background: #fff;
}
.hm-form-field label {
    position: absolute;
    left: 18px; top: 14px;
    font-size: .92rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all .25s var(--ease-smooth);
}
.hm-form-field input:not(:placeholder-shown) ~ label,
.hm-form-field input:focus ~ label,
.hm-form-field textarea:not(:placeholder-shown) ~ label,
.hm-form-field textarea:focus ~ label {
    top: 6px;
    font-size: .65rem;
    letter-spacing: 1px;
    color: var(--accent);
}
.hm-select {
    padding: 14px 18px;
    cursor: pointer;
    color: var(--text-muted);
}
.hm-form-field textarea { resize: vertical; min-height: 120px; }
.hm-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--text-dark);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .4s var(--ease-out);
    align-self: flex-start;
}
.hm-submit-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(209,91,39,.25);
}
.hm-form-success {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: 48px; text-align: center;
    background: rgba(209,91,39,.04);
    border: 1px solid rgba(209,91,39,.12);
    border-radius: 16px;
}
.hm-form-success p { font-size: 1rem; color: var(--text-muted); }

/* ══════════════════════════════════
   FOOTER — Controlled by style.css
   DO NOT add footer rules here.
══════════════════════════════════ */

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1200px) {
    .hm-hero-inner { padding: 160px 48px 80px; }
    .hm-services-inner, .hm-process-inner,
    .hm-trust-inner, .hm-contact-inner { padding: 0 48px; }
    .hm-port-header { padding: 80px 48px 48px; }
    .hm-about-content { padding: 80px 48px; }
    .hm-cta { padding: 120px 48px; }
    .hm-tl-card { max-width: 360px; }
}

@media (max-width: 1024px) {
    .hm-svc-grid { height: 420px; }
    .hm-port-stage { grid-template-columns: 1fr; }
    .hm-port-images { height: 480px; position: relative; }
    .hm-port-slide { position: absolute; }
    .hm-port-img-overlay { background: linear-gradient(to top, #fff 0%, transparent 50%); }
    .hm-port-info { padding: 40px 48px 60px; }
    .hm-about { grid-template-columns: 1fr; }
    .hm-about-visual { height: 400px; }
    .hm-about-content { padding: 60px 48px; }
    .hm-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-tc-1, .hm-tc-5 { grid-row: span 1; }
    .hm-tc-3 { grid-column: span 1; }
    .hm-contact-inner { grid-template-columns: 1fr; gap: 60px; }
    .hm-tl-item { grid-template-columns: 1fr; gap: 20px; }
    .hm-tl-item .hm-tl-card,
    .hm-tl-right .hm-tl-card { grid-column: 1; order: 2; }
    .hm-tl-item .hm-tl-node,
    .hm-tl-right .hm-tl-node { grid-column: 1; order: 1; flex-direction: row; }
    .hm-tl-line { display: none; }
}

@media (max-width: 768px) {
    .hm-hero-inner { padding: 130px 24px 60px; }
    .hm-h1-main { letter-spacing: -1px; }
    .hm-hero-stats { gap: 20px; }
    .hm-scroll-hint { display: none; }
    .hm-services, .hm-process, .hm-trust { padding: 72px 0; }
    .hm-services-inner, .hm-process-inner,
    .hm-trust-inner, .hm-contact-inner { padding: 0 24px; }
    .hm-port-header { padding: 60px 24px 36px; }
    .hm-about-content { padding: 48px 24px; }
    .hm-cta { padding: 80px 24px; }
    .hm-svc-grid {
        height: auto;
        flex-direction: column;
        gap: 2px;
    }
    .hm-svc-card { flex: none; height: 200px; }
    .hm-svc-card.hm-svc-open { flex: none; height: 320px; }
    .hm-trust-grid { grid-template-columns: 1fr 1fr; }
    .hm-form-row { grid-template-columns: 1fr; }
    .hm-about-badge { bottom: 24px; right: 24px; padding: 20px 28px; }
    .hm-section-h2 { font-size: 2rem; }
    .hm-contact { padding: 72px 0; }
}

@media (max-width: 480px) {
    .hm-hero-actions { flex-direction: column; align-items: flex-start; }
    .hm-btn-primary, .hm-btn-ghost { width: 100%; justify-content: center; }
    .hm-trust-grid { grid-template-columns: 1fr; }
    .hm-submit-btn { width: 100%; }
    .hm-cta-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .hm-canvas, #hm-cta-canvas { display: none; }
}
