/* =====================================================================
   CANGLIAN PTE. LTD. — corporate display site
   Palette: Ink Navy #1A3A5C · Mint #5FC9A8 · Paper #FBFAF7
   Type:    Fraunces (display) · Figtree (body)
   Motif:   ruled-ledger lines & the notebook margin rule
   ===================================================================== */

:root {
    --navy: #1A3A5C;
    --navy-deep: #12283F;
    --navy-ink: #0E1F33;
    --mint: #5FC9A8;
    --mint-deep: #3AA381;
    --mint-wash: #EAF6F1;
    --paper: #FBFAF7;
    --card: #FFFFFF;
    --ink: #22303D;
    --muted: #5B6B7A;
    --line: #E7E1D4;
    --line-soft: #F0ECE3;
    --shadow-card: 0 1px 2px rgba(18, 40, 63, .05), 0 10px 28px -14px rgba(18, 40, 63, .18);
    --shadow-pop: 0 2px 4px rgba(18, 40, 63, .08), 0 18px 44px -16px rgba(18, 40, 63, .28);
    --radius: 10px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Figtree", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='.55'/></svg>");
}

/* ---------- reset & base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

/* paper-grain overlay: keeps big colour fields from reading as flat "AI" fills */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    background-image: var(--grain);
    background-size: 240px 240px;
    opacity: .05;
}

::selection { background: rgba(95, 201, 168, .35); color: var(--navy-ink); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #CBD3DB; border-radius: 6px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--mint-deep); }

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--mint-deep); }

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 620;
    line-height: 1.18;
    color: var(--navy);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--white { background: var(--card); }

/* ---------- reading progress ---------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    z-index: 1000;
    background: linear-gradient(90deg, var(--mint), var(--mint-deep));
    box-shadow: 0 0 12px rgba(95, 201, 168, .55);
    opacity: 0;
    transition: opacity .3s ease;
}
.scroll-progress.is-visible { opacity: 1; }

/* ---------- back to top ---------- */

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--card);
    color: var(--navy);
    cursor: pointer;
    box-shadow: 0 4px 18px -6px rgba(18, 40, 63, .4);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s var(--ease-out), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--mint-deep); }
.to-top svg { width: 18px; height: 18px; }
.to-top__ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--mint-deep) var(--prog, 0%), transparent 0);
    -webkit-mask: radial-gradient(closest-side, transparent 73%, #000 74%);
    mask: radial-gradient(closest-side, transparent 73%, #000 74%);
}

/* ---------- italic accent words in headings ---------- */

.section-head h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--mint-deep);
}
.section--white .section-head h2 em { color: var(--mint-deep); }

/* light-text contexts: accent in bright mint */
.hero__title em,
.page-band h1 em,
.cta-band h2 em,
.solution-card h3 em {
    font-style: italic;
    font-weight: 500;
    color: var(--mint);
}

/* ---------- hand-drawn underline for text links ---------- */

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 5px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8' preserveAspectRatio='none'><path d='M2 6 C 20 2, 36 7, 52 4 S 86 5, 118 3' fill='none' stroke='%235FC9A8' stroke-width='2.4' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 7px;
    transition: color .15s ease, background-size .3s var(--ease-out);
}
.link-more:hover { color: var(--mint-deep); background-size: 100% 9px; }

/* ---------- shared pattern vocabulary ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mint-deep);
    margin: 0 0 14px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--mint);
    flex: none;
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0 0 10px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); margin: 0; }

/* the notebook margin rule, used to mark featured blocks */
.margin-rule { position: relative; }
.margin-rule::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--mint);
    opacity: .65;
}

/* ruled paper card (library-card feel) */
.ruled-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.ruled-card::after {
    content: "";
    position: absolute;
    inset: 54px 0 0 56px;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 35px,
        var(--line-soft) 35px,
        var(--line-soft) 36px
    );
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.2) 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.2) 70%, transparent);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--mint);
    color: var(--navy-ink);
}
.btn--primary:hover {
    background: var(--mint-deep);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(58, 163, 129, .8);
}

.btn--navy {
    background: var(--navy);
    color: #fff;
}
.btn--navy:hover { background: var(--navy-deep); color: #fff; }

.btn--ghost {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

.btn--outline {
    border-color: var(--navy);
    color: var(--navy);
    background: transparent;
}
.btn--outline:hover { background: var(--navy); color: #fff; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 2px solid var(--mint);
    padding-bottom: 3px;
}
.link-more:hover { color: var(--mint-deep); }

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 250, 247, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(18, 40, 63, .25); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    position: relative;
    padding: 10px 14px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy);
    border-radius: 6px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--mint);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--navy-ink); }

.nav-cta { margin-left: 10px; padding: 11px 22px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero carousel ---------- */

.hero {
    position: relative;
    background: var(--navy-ink);
    overflow: hidden;
}
.hero__frame { position: relative; height: clamp(420px, 52vw, 640px); }

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* vertical side label — editorial, stationery-catalogue feel */
.hero__vlabel {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    z-index: 3;
    display: none;
    writing-mode: vertical-rl;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
    user-select: none;
}
@media (min-width: 620px) {
    .hero__vlabel { display: block; }
}

/* scroll hint at the bottom of the hero */
.hero__scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .5);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .42em;
    text-transform: uppercase;
}
.hero__scroll-hint::before {
    content: "";
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, .28);
    position: relative;
    overflow: hidden;
}
.hero__scroll-hint::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--mint);
    animation: hint-drop 1.8s var(--ease-out) infinite;
}
@keyframes hint-drop {
    0% { transform: translateY(0); opacity: 0; }
    18% { opacity: 1; }
    70% { transform: translateY(42px); opacity: 1; }
    100% { transform: translateY(42px); opacity: 0; }
}
@media (max-width: 620px) {
    .hero__scroll-hint { display: none; }
}

/* word-by-word reveal of the hero title */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .wi { display: inline-block; transform: translateY(120%); transition: transform .8s var(--ease-out); }
.hero.is-loaded .hero__title .wi { transform: none; }
.hero.is-loaded .hero__eyebrow,
.hero.is-loaded .hero__subtitle,
.hero.is-loaded .hero__actions { animation: hero-fade .9s var(--ease-out) both; }
.hero.is-loaded .hero__subtitle { animation-delay: .15s; }
.hero.is-loaded .hero__actions { animation-delay: .3s; }
@keyframes hero-fade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__title .wi { transform: none; transition: none; }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(88deg, rgba(14, 31, 51, .92) 0%, rgba(14, 31, 51, .78) 34%, rgba(14, 31, 51, .28) 68%, rgba(14, 31, 51, .12) 100%);
}

.hero__rule {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 88px,
        rgba(251, 250, 247, .5) 88px,
        rgba(251, 250, 247, .5) 89px
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
    color: #fff;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 18px;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--mint); }
.hero__title {
    font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem);
    font-weight: 640;
    color: #fff;
    margin: 0 0 18px;
    text-wrap: balance;
}
.hero__subtitle {
    font-size: clamp(1rem, .95rem + .4vw, 1.15rem);
    color: rgba(255, 255, 255, .88);
    max-width: 520px;
    margin: 0 0 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__dots {
    position: absolute;
    left: 24px;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 10px;
}
.hero__dots button {
    width: 34px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: background-color .2s ease;
    padding: 0;
}
.hero__dots button.is-active { background: var(--mint); }

.hero__arrows { position: absolute; right: 24px; bottom: 18px; z-index: 3; display: flex; gap: 10px; }
.hero__arrows button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(14, 31, 51, .25);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color .2s ease, border-color .2s ease;
}
.hero__arrows button:hover { background: var(--mint); border-color: var(--mint); color: var(--navy-ink); }

/* ---------- home: about teaser + company card ---------- */

.about-strip { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }

.company-card { padding: 30px 30px 26px 58px; }
.company-card .ruled-card::after { inset: 66px 0 12px 58px; }
.company-card__title {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 4px;
}
.company-card__stamp {
    display: inline-block;
    margin: 6px 0 16px;
    padding: 4px 12px;
    border: 2px solid var(--mint-deep);
    border-radius: 4px;
    color: var(--mint-deep);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}
.company-card dl { margin: 0; position: relative; z-index: 1; }
.company-card dt {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 9px;
}
.company-card dd {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy-ink);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ---------- features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.feature {
    padding: 34px 28px 30px;
    border-right: 1px solid var(--line);
}
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: none; }
.feature__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--mint-wash);
    color: var(--mint-deep);
    margin-bottom: 18px;
    transition: transform .3s var(--ease-out), background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.feature:hover .feature__icon {
    transform: rotate(-5deg) scale(1.08);
    background: var(--mint);
    color: var(--navy-ink);
    box-shadow: 0 10px 22px -12px rgba(58, 163, 129, .65);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin: 0 0 8px; }
.feature p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- product cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.product-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-pop);
    border-color: transparent;
}
.product-card__media {
    aspect-ratio: 4 / 3;
    background: #F3F1EA;
    overflow: hidden;
    position: relative;
}
.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }

/* mouse-follow light on the product photo */
.product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .42), transparent 62%);
    transition: opacity .35s ease;
    pointer-events: none;
}
.product-card:hover .product-card__media::after { opacity: 1; }

/* catalogue index number, stamped on the photo */
.product-card__no {
    position: absolute;
    top: 12px;
    left: 13px;
    z-index: 2;
    font-family: var(--font-display);
    font-style: italic;
    font-size: .74rem;
    letter-spacing: .06em;
    color: #fff;
    background: rgba(14, 31, 51, .62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 3px 11px 4px;
    border-radius: 999px;
    line-height: 1.2;
    transition: background-color .2s ease;
}
.product-card:hover .product-card__no { background: rgba(58, 163, 129, .88); }

/* bookmark-style category tag */
.product-card__tag {
    position: absolute;
    top: 12px;
    right: 0;
    z-index: 2;
    max-width: 68%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: var(--mint);
    color: var(--navy-ink);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding: 5px 13px 5px 11px;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 2px 8px -3px rgba(18, 40, 63, .4);
}
.product-card__tag::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -5px;
    border: 5px solid transparent;
    border-right-color: var(--navy-deep);
    border-bottom-color: var(--navy-deep);
    opacity: .9;
}

/* washi tape, peeled across the top of the card */
.product-card__tape {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    z-index: 3;
    background: linear-gradient(96deg, rgba(95, 201, 168, .38), rgba(95, 201, 168, .66) 38%, rgba(95, 201, 168, .34));
    box-shadow: 0 1px 3px rgba(18, 40, 63, .12);
    clip-path: polygon(2.5% 0, 97.5% 6%, 100% 100%, 0 94%);
    opacity: 0;
    transform: translateX(-50%) rotate(-1.2deg) scale(.96);
    transition: opacity .3s ease, transform .35s var(--ease-out);
    pointer-events: none;
}
.product-card:hover .product-card__tape { opacity: 1; transform: translateX(-50%) rotate(-1.2deg) scale(1); }

.product-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mint-deep);
    margin-bottom: 7px;
}
.product-card__name {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 620;
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.35;
}
.product-card__brief {
    font-size: .9rem;
    color: var(--muted);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__go {
    margin-top: auto;
    font-size: .88rem;
    font-weight: 700;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.product-card__go::after { content: "→"; transition: transform .2s ease; }
.product-card:hover .product-card__go { color: var(--mint-deep); }
.product-card:hover .product-card__go::after { transform: translateX(4px); }

.section-foot { margin-top: 38px; text-align: center; }

/* ---------- solutions (home + list) ---------- */

.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.solution-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: box-shadow .2s ease;
}
.solution-card:hover { box-shadow: var(--shadow-pop); }
.solution-card__media { position: relative; height: 190px; overflow: hidden; flex: none; }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.solution-card:hover .solution-card__media img { transform: scale(1.05); }
.solution-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 40, 63, .12), rgba(18, 40, 63, .78) 92%);
}
.solution-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.solution-card__no {
    font-family: var(--font-display);
    font-style: italic;
    font-size: .92rem;
    color: var(--mint);
    margin-bottom: 8px;
    display: inline-block;
    transform: rotate(-2deg);
    transition: transform .25s var(--ease-out);
}
.solution-card:hover .solution-card__no { transform: rotate(0deg) translateX(4px); color: #fff; }
.solution-card__body h3 { color: #fff; font-size: 1.22rem; margin: 0 0 10px; }
.solution-card__body p { font-size: .92rem; color: rgba(255, 255, 255, .82); margin: 0 0 18px; flex: 1; }
.solution-card__link {
    color: var(--mint);
    font-weight: 700;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.solution-card__link::after { content: "→"; transition: transform .2s ease; }
.solution-card__link:hover::after { transform: translateX(4px); }

/* wide variant used on solutions list page */
.solution-row {
    display: grid;
    grid-template-columns: 420px 1fr;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.solution-row + .solution-row { margin-top: 26px; }
.solution-row:hover { box-shadow: var(--shadow-pop); transform: translateY(-3px); }
.solution-row__media { position: relative; min-height: 260px; }
.solution-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solution-row__body { padding: 36px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.solution-row__body h2 { font-size: 1.55rem; margin: 0 0 12px; }
.solution-row__body p { color: var(--muted); margin-bottom: 22px; }

/* 3D tilt cards (desktop pointer only; JS opts in via [data-tilt]) */

[data-tilt] {
    transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
    transition: transform .5s var(--ease-out), box-shadow .2s ease, border-color .2s ease;
}
[data-tilt]:hover {
    transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, -4px));
}
[data-tilt].is-tilting { transition: transform .08s linear; }
[data-tilt]:hover { border-color: transparent; }

/* page-wide mouse spotlight — a soft lamp over the layout */
.spotlight {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .55), transparent 62%);
    mix-blend-mode: soft-light;
    transition: opacity .6s ease;
}
.spotlight.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .spotlight { display: none; } }

/* ---------- CTA band ---------- */

.cta-band {
    background:
        linear-gradient(120deg, rgba(95, 201, 168, .16), rgba(95, 201, 168, 0) 55%),
        var(--navy-deep);
    color: #fff;
    border-radius: 14px;
    padding: 54px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, #fff 54px, #fff 55px);
}
.cta-band::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 26px;
    width: 74px;
    height: 20px;
    background: linear-gradient(100deg, rgba(95, 201, 168, .55), rgba(95, 201, 168, .85) 40%, rgba(95, 201, 168, .5));
    transform: rotate(-6deg);
    opacity: .85;
    clip-path: polygon(0 8%, 100% 0, 98% 100%, 2% 92%);
    pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: 0 0 8px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band .btn { flex: none; }

/* ---------- page hero band (inner pages) ---------- */

.page-band {
    background:
        linear-gradient(115deg, rgba(95, 201, 168, .18) 0%, rgba(95, 201, 168, .04) 42%, rgba(95, 201, 168, 0) 70%),
        var(--navy);
    color: #fff;
    padding: 58px 0 54px;
    position: relative;
    overflow: hidden;
}
.page-band::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .1;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 64px, #fff 64px, #fff 65px);
}
.page-band .container { position: relative; z-index: 1; }
.page-band h1 {
    color: #fff;
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem);
    margin: 0 0 10px;
}
.page-band .lede { color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0; font-size: 1.05rem; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    color: rgba(255, 255, 255, .66);
    margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb .sep { opacity: .6; }

/* ---------- products listing ---------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 34px 0 30px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pills a {
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    transition: all .15s ease;
}
.filter-pills a:hover { border-color: var(--mint-deep); color: var(--mint-deep); }
.filter-pills a.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.filter-search { display: flex; gap: 0; }
.filter-search input {
    width: 250px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: var(--card);
    font: inherit;
    font-size: .92rem;
    color: var(--ink);
}
.filter-search input::placeholder { color: #9AA7B2; }
.filter-search button {
    padding: 11px 18px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: var(--navy);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.filter-search button:hover { background: var(--navy-deep); }

.list-count { color: var(--muted); font-size: .92rem; margin: 0 0 22px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
}
.pagination li { display: inline-flex; }
.pagination a:hover { border-color: var(--mint-deep); color: var(--mint-deep); }
.pagination .active span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled span { color: #B8C0C8; cursor: default; }

/* ---------- product detail ---------- */

.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 54px; align-items: start; }

.gallery__main {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #F3F1EA;
    aspect-ratio: 4 / 3;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery__thumbs button {
    width: 84px;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #F3F1EA;
    transition: border-color .15s ease;
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button.is-active { border-color: var(--mint-deep); }

.pd-cat {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mint-deep);
    margin-bottom: 10px;
}
.pd-name { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); margin-bottom: 14px; }
.pd-brief { color: var(--muted); font-size: 1.02rem; margin-bottom: 26px; }

.spec-table { margin: 0 0 28px; border-top: 1px solid var(--line); }
.spec-table div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: .93rem;
}
.spec-table dt { color: var(--muted); font-weight: 600; margin: 0; }
.spec-table dd { margin: 0; color: var(--ink); font-weight: 600; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pd-note { font-size: .86rem; color: var(--muted); margin: 16px 0 0; }

.prose { max-width: 100%; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.prose p { color: #3A4856; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; color: #3A4856; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 8px; margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* ---------- about page ---------- */

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.about-particulars { position: sticky; top: 96px; }

.about-photo {
    border-radius: 14px;
    overflow: hidden;
    margin: 10px 0 34px;
    box-shadow: var(--shadow-card);
}
.about-photo img { width: 100%; }

/* ---------- contact ---------- */

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 54px; align-items: start; }

.contact-list { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); margin-bottom: 30px; }
.contact-item { display: flex; gap: 18px; padding: 20px 2px; border-bottom: 1px solid var(--line-soft); }
.contact-item__icon {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--mint-wash);
    color: var(--mint-deep);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin: 2px 0 4px; }
.contact-item p { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.contact-item a { color: var(--navy); font-weight: 600; }
.contact-item a:hover { color: var(--mint-deep); }

.map-box {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #E9ECEF center/cover no-repeat url("../img/map-fallback.svg");
    box-shadow: var(--shadow-card);
}
.map-box iframe { display: block; width: 100%; height: 380px; border: 0; }

/* form styled like ruled paper: underlines instead of boxes */
.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 36px 38px 38px;
}
.form-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }

.field { margin-bottom: 24px; }
.field label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 7px;
}
.field label .req { color: #C2544A; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    padding: 11px 4px;
    border: none;
    border-bottom: 2px solid var(--line);
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    border-radius: 0;
    transition: border-color .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--mint-deep);
    background: linear-gradient(to bottom, transparent, rgba(95, 201, 168, .06));
}
.field input::placeholder,
.field textarea::placeholder { color: #A6B0B9; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.captcha-row { display: flex; align-items: center; gap: 14px; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 42px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.captcha-row .captcha-refresh {
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 6px;
}
.captcha-row .captcha-refresh:hover { color: var(--mint-deep); }

.form-alert {
    border-radius: 8px;
    padding: 13px 16px;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid;
}
.form-alert--error { background: #FDF1F0; border-color: #EDC7C3; color: #A03B31; }
.form-alert--ok { background: var(--mint-wash); border-color: #BCE4D5; color: #23685A; }

.form-success { text-align: center; padding: 46px 20px; }
.form-success__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--mint-wash);
    color: var(--mint-deep);
    display: grid;
    place-items: center;
}
.form-success__icon svg { width: 32px; height: 32px; }

/* ---------- legal / generic page ---------- */

.legal-body { max-width: 800px; margin: 0 auto; }
.legal-body .prose > :first-child { margin-top: 0; }
.legal-meta { color: var(--muted); font-size: .88rem; margin-bottom: 30px; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); margin-top: 84px; position: relative; overflow: hidden; }

.site-footer__watermark {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(4.5rem, 14vw, 12rem);
    line-height: 1;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
.site-footer__grid { position: relative; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .9fr 1.1fr;
    gap: 44px;
    padding: 58px 0 46px;
}
.site-footer .brand img { height: 40px; }
.site-footer__about { font-size: .92rem; color: rgba(255, 255, 255, .68); margin: 16px 0 0; }
.site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 4px 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--mint); }
.site-footer .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.site-footer .contact-line svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--mint); }

.site-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 20px 0;
}
.site-footer__bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
}

/* ---------- 404 ---------- */

.error-wrap { text-align: center; padding: 90px 24px 40px; }
.error-code {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
    font-weight: 640;
    color: var(--navy);
    line-height: 1;
    margin: 0 0 6px;
}
.error-code em { color: var(--mint-deep); font-style: normal; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__slide { transition: none; }
    [data-tilt] { transform: none; transition: none; }
    .scroll-progress, .to-top, .spotlight { display: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature { padding-left: 0; }
    .feature:nth-child(2n) { border-right: none; }
    .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 960px) {
    .about-strip { grid-template-columns: 1fr; gap: 36px; }
    .solution-grid { grid-template-columns: 1fr; }
    .solution-card { min-height: 0; }
    .product-detail { grid-template-columns: 1fr; gap: 36px; }
    .about-layout { grid-template-columns: 1fr; }
    .about-particulars { position: static; }
    .contact-layout { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; padding: 44px 30px; }
    .solution-row { grid-template-columns: 1fr; }
    .solution-row__media { min-height: 220px; }
    .solution-row__body { padding: 28px 26px 32px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-pop);
        padding: 12px 20px 20px;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 10px; font-size: 1.02rem; }
    .main-nav a::after { display: none; }
    .main-nav a.is-active { color: var(--mint-deep); }
    .nav-cta { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-card__body { padding: 14px 15px 16px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; }
    .feature:last-child { border-bottom: none; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 26px 22px 28px; }
    .spec-table div { grid-template-columns: 1fr; gap: 2px; }
    .site-footer__grid { grid-template-columns: 1fr; padding: 44px 0 34px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-search { }
    .filter-search input { width: auto; flex: 1; }
}

@media (max-width: 460px) {
    .product-grid { grid-template-columns: 1fr; }
    .brand img { height: 36px; }
    .hero__frame { height: 480px; }
    .hero__content { padding-bottom: 84px; }
    .hero__dots { left: 24px; bottom: 22px; }
}

/* print-friendly for bank reviewers */
@media print {
    .site-header, .site-footer, .hero__dots, .hero__arrows, .nav-cta, .btn, .filter-bar, .pagination,
    .scroll-progress, .to-top, .spotlight, .hero__vlabel, .hero__scroll-hint, .product-card__tape { display: none !important; }
    body { background: #fff; }
    body::before { display: none; }
}
