/*
 * tantech.co.nz public site.
 * Reproduces the look of the Selo theme pages built in WordPress (Home and Web Services):
 * Lexend Deca headings, Inter body text, DM Sans for display lines, charcoal buttons,
 * soft mint/pink gradients, white 10px cards, a near-black feature band with coloured cards.
 */
:root {
    --ink: #0f110f;
    --heading: #272c2e;
    --text: #3b3b3b;
    --muted: #666666;
    --soft: #5f6366;
    --charcoal: #262c2e;
    --night: #121416;
    --teal: #2cbca5;
    --green: #58c09c;
    --lavender: #d0b9ef;
    --yellow: #f6d17c;
    --orange: #ee8735;
    --violet: #5b5fc7;
    --line: #e8e9ea;
    --tint: #f7f7f7;
    --footer: #f5f5f6;
    --radius: 10px;
    --head-font: "Lexend Deca", "Segoe UI", Arial, sans-serif;
    --body-font: Inter, "Segoe UI", Arial, sans-serif;
    --display-font: "DM Sans", "Segoe UI", Arial, sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 18px/1.65 var(--body-font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .25em 0; }
h1, h2, h3, h4 { font-family: var(--head-font); color: var(--heading); margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 600; line-height: 1.12; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.875rem); font-weight: 500; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
b, strong { font-weight: 600; color: var(--heading); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.container, .wrap { width: 100%; max-width: 1230px; margin: 0 auto; padding: 0 15px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- Header ---------- */
/* Selo sticky header: transparent over the banner/page title; after 80px it becomes a fixed white bar
   parked above the viewport, animates from 250px and slides in from 1000px (thresholds from selo/assets/js/sticky-header.js). */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; height: var(--header-h); margin-top: 8px; background: transparent; }
.site-header.is-fixed { position: fixed; margin-top: 0; background: #fff; box-shadow: 0 6px 24px rgba(15, 17, 15, .07); opacity: 0; transform: translateY(-120%); }
.site-header.is-fixed.is-anim { opacity: 1; transition: transform .3s ease-in-out, opacity .3s ease-in-out; }
.site-header.is-fixed.is-show, .site-header.is-open { transform: none; opacity: 1; }
.site-header.is-open { position: fixed; margin-top: 0; background: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; padding: 0 22px; }
.brand img { width: 71px; height: 40px; object-fit: contain; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; margin: 0; }
.main-nav > ul > li > a, .main-nav > ul > li > .nav-label { display: block; padding: 24px 14px; font: 500 14px/24px var(--head-font); color: #212529; text-decoration: none; white-space: nowrap; }
.main-nav > ul > li > a:hover, .main-nav li.is-current > a { color: var(--teal); }
.sub-toggle { display: none; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 270px; padding: 12px 8px; background: #fff; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15, 17, 15, .12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 8px 14px; border-radius: 8px; font: 400 15px/1.4 var(--body-font); color: var(--text); text-decoration: none; }
.submenu a:hover, .submenu a[aria-current] { background: var(--tint); color: var(--ink); }
.submenu-group { display: block; padding: 12px 14px 4px; font: 600 12px var(--head-font); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s, opacity .2s; }
.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .burger { display: block; }
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: 8px 22px 40px; display: none; }
    .is-open .main-nav { display: block; }
    .main-nav ul { display: block; }
    .main-nav > ul > li { border-bottom: 1px solid var(--line); }
    .main-nav > ul > li > a, .main-nav > ul > li > .nav-label { padding: 14px 44px 14px 0; font-size: 16px; }
    .sub-toggle { display: block; position: absolute; top: 4px; right: 0; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
    .sub-toggle::before { content: ""; display: block; width: 9px; height: 9px; margin: auto; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
    .is-expanded > .sub-toggle::before { transform: rotate(-135deg); }
    .submenu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px 8px; min-width: 0; }
    .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: none; }
    .has-sub.is-expanded > .submenu { display: block; }
}

/* ---------- Buttons and links ---------- */
/* Three standard buttons, one motion language (.45s, cubic-bezier(.7, 0, .2, 1)):
   1. .btn             solid: a fill (--btn-fill, teal by default) sweeps in from the left and out to the right.
   2. .btn.alt, a.more underline: the line runs out to the right and redraws from the left; text turns teal.
   3. .btn.outline     bordered: the same sweep as the solid button, filling with the border colour. */
:root { --ease-btn: cubic-bezier(.7, 0, .2, 1); }
.btn { position: relative; z-index: 0; overflow: hidden; display: inline-block; padding: 15px 40px; background: var(--charcoal); color: #fff; font: 600 18px/22px var(--head-font); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: color .45s var(--ease-btn), transform .1s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill, var(--teal)); transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--ease-btn); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { transform: scale(.98); }
.btn.outline { padding: 10px 25px; background: none; color: var(--ink); border: 1.5px solid currentColor; border-radius: 5px; font: 600 16px var(--display-font); --btn-fill: var(--ink); }
.btn.outline:hover, .btn.outline:focus-visible { color: #fff; }
.btn.alt, a.more { display: inline-block; padding: 0 0 6px; color: var(--ink); font: 500 18px/1.3 var(--head-font); text-decoration: none; border: 0; border-radius: 0; overflow: visible;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: color .3s; }
.btn.alt::before { content: none; }
a.more { font-size: 16px; margin-top: auto; align-self: flex-start; }
.btn.alt:hover, a.more:hover, .btn.alt:focus-visible, a.more:focus-visible { color: var(--teal); animation: line-redraw .7s var(--ease-btn); }
@keyframes line-redraw {
    0% { background-size: 100% 2px; background-position: 100% 100%; }
    50% { background-size: 0 2px; background-position: 100% 100%; }
    50.01% { background-size: 0 2px; background-position: 0 100%; }
    100% { background-size: 100% 2px; background-position: 0 100%; }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 30px 0 18px; }

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
section.tint { background: var(--tint); }
.eyebrow { font: 600 16px/1.4 var(--head-font); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.lead { font: 400 18px/1.7 var(--head-font); color: var(--muted); max-width: 60ch; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; z-index: -1; left: -.18em; right: -.12em; top: .12em; bottom: .02em; background: var(--yellow); border-radius: 40px; transform: rotate(-2deg); }
section > .wrap > h2.center, section > .wrap > .narrow.center { margin-bottom: 48px; }
.narrow.center > p, h2.center + p { color: var(--muted); }

/* Page hero (split or simple): soft mint and pink light, as on the WordPress pages. */
.hero { padding: calc(110px + var(--header-h)) 0 100px; background:
    radial-gradient(55% 70% at 4% 0%, rgba(88, 192, 156, .22), transparent 70%),
    radial-gradient(50% 70% at 100% 4%, rgba(232, 150, 205, .2), transparent 70%),
    linear-gradient(#fff, #fff); }
.hero > .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero.simple > .wrap { grid-template-columns: 1fr; max-width: 900px; text-align: center; }
.hero.simple .lead { margin-left: auto; margin-right: auto; }
.hero.simple .actions { justify-content: center; }
.hero h1 { margin-bottom: 22px; }

/* Grids and cards */
.grid { display: grid; gap: 30px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.tint .card { box-shadow: 0 1px 2px rgba(15, 17, 15, .04); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15, 17, 15, .22), 0 0 0 1px var(--line); }
.card p { font-size: 16px; color: var(--soft); }
.card ul { font-size: 16px; color: var(--soft); }
.card > :last-child { margin-bottom: 0; }
.card h3 a { text-decoration: none; }
.ico { width: 60px; height: 60px; border-radius: var(--radius); background: var(--charcoal); margin-bottom: 24px; position: relative; flex: none; }
.ico .icon { position: absolute; inset: 15px; width: 30px; height: 30px; color: #fff; }
.ico .icon .ac { fill: var(--teal); }
.ico:has(> .icon)::after { content: none; }
.ico::after { content: ""; position: absolute; inset: 16px; background: #fff; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 + p, .split p + p { color: var(--text); }
.split ul { padding-left: 0; list-style: none; }
.split ul li { position: relative; padding-left: 30px; margin: .6em 0; }
.split ul li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--green); -webkit-mask: radial-gradient(circle, #000 35%, transparent 37%), linear-gradient(#000, #000); -webkit-mask-composite: xor; mask-composite: exclude; }
.media { border-radius: 15px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15, 17, 15, .35); background: #fff; }
.media img { width: 100%; }

/* Feature band: the near-black block with coloured cards from the Web Services page. */
section.feature { background: var(--night); }
section.feature h2 { color: #fff; }
section.feature > .wrap > h2, section.feature .narrow.center p { color: #fff; }
section.feature .narrow.center p, section.feature > .wrap > p { color: #a0a0a0; }
section.feature .card { box-shadow: none; padding: 30px; }
section.feature .card:nth-child(3n+1) { background: var(--green); }
section.feature .card:nth-child(3n+2) { background: var(--lavender); }
section.feature .card:nth-child(3n) { background: var(--yellow); }
section.feature .card h3, section.feature .card p, section.feature .card li { color: var(--night); }
section.feature .card .ico { background: var(--night); }
section.feature .btn.outline { color: var(--night); --btn-fill: var(--night); margin-top: auto; align-self: flex-start; }
section.feature .btn.outline:hover, section.feature .btn.outline:focus-visible { color: #fff; }

/* Steps: the "How we work" row. */
.steps { gap: 0; }
.steps .card { counter-increment: step; background: none; box-shadow: none; border-radius: 0; padding: 10px 30px 20px; text-align: center; border-left: 1px solid rgba(15, 17, 15, .12); }
.steps .card:first-child { border-left: 0; }
.steps .card:hover { transform: none; box-shadow: none; }
.steps .card::before { content: counter(step); display: block; font: 300 64px/1 var(--head-font); color: var(--violet); margin-bottom: 26px; }
.steps .card h3 { font: 600 20px/1.3 var(--head-font); letter-spacing: .06em; text-transform: uppercase; color: var(--heading); }
.steps { counter-reset: step; }
section:has(> .wrap > .steps) { background: linear-gradient(120deg, #fff7ec 0%, #fbf7f3 45%, #ece9ff 100%); }

/* Tags, status pills, tables */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; list-style: none; }
.tags li { margin: 0; padding: 9px 22px; border: 1px solid var(--ink); border-radius: 25px; font-size: 16px; color: #555; background: #fff; }
.status { display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; font: 600 12px/1.4 var(--head-font); letter-spacing: .02em; background: rgba(88, 192, 156, .18); color: #1f7a62; }
.status.dev { background: rgba(238, 135, 53, .16); color: #a3501a; }
.status.custom { background: rgba(38, 44, 46, .1); color: var(--charcoal); }
.status.int { background: rgba(91, 95, 199, .12); color: var(--violet); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-family: var(--head-font); font-weight: 600; color: var(--ink); }

/* FAQ */
details { border-bottom: 1px solid #e3e3e3; padding: 22px 0; }
details:first-of-type { border-top: 1px solid #e3e3e3; }
summary { position: relative; list-style: none; cursor: pointer; padding-right: 44px; font: 500 20px/1.4 var(--head-font); color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); font: 400 24px/32px var(--head-font); text-align: center; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; color: var(--soft); }
.narrow > h2 { margin-bottom: 30px; }

/* Closing call to action, from "Ready for your digital success?" */
section.cta { padding: 120px 0; text-align: center; background:
    radial-gradient(50% 80% at 0% 100%, rgba(246, 209, 124, .35), transparent 70%),
    radial-gradient(50% 80% at 100% 0%, rgba(88, 192, 156, .25), transparent 70%),
    #fbfbf7; }
section.cta h2 { font: 700 clamp(2.2rem, 5.2vw, 4.4rem)/1.1 var(--display-font); color: var(--ink); letter-spacing: -0.03em; }
section.cta p { font: 400 21px/1.6 var(--head-font); color: #111; }
section.cta .btn { margin-top: 18px; border-radius: 10px; background: var(--ink); font-family: var(--display-font); }

/* Decorative stand-in for a picture that does not exist yet: a drawn UI mock, never a fake photo. */
.visual { position: relative; min-height: 360px; border-radius: 15px; overflow: hidden; display: grid; place-items: center; padding: 40px; background:
    radial-gradient(60% 70% at 0% 0%, rgba(88, 192, 156, .35), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, rgba(208, 185, 239, .55), transparent 70%),
    #f4f6f5; }
.visual.v2 { background: radial-gradient(60% 70% at 100% 0%, rgba(246, 209, 124, .55), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(88, 192, 156, .3), transparent 70%), #f7f5f0; }
.visual.v3 { background: radial-gradient(60% 70% at 0% 100%, rgba(238, 135, 53, .28), transparent 70%), radial-gradient(60% 70% at 100% 0%, rgba(208, 185, 239, .5), transparent 70%), #f6f4f7; }
.visual.compact { min-height: 190px; padding: 22px; margin-bottom: 22px; }
.mock-window { width: min(100%, 420px); background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(15, 17, 15, .35); overflow: hidden; }
.mock-window .bar { display: flex; gap: 6px; padding: 12px 14px; background: #f2f2f2; }
.mock-window .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d351b0; }
.mock-window .bar i:nth-child(2) { background: var(--orange); }
.mock-window .bar i:nth-child(3) { background: #c0cd46; }
.mock-window .body { display: grid; grid-template-columns: 30% 1fr; gap: 12px; padding: 16px; }
.mock-window .side { display: grid; gap: 8px; align-content: start; }
.mock-window .side i, .mock-window .rows i { display: block; height: 10px; border-radius: 5px; background: #eceeef; }
.mock-window .side i:first-child { background: var(--green); }
.mock-window .main { display: grid; gap: 10px; }
.mock-window .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-window .tiles i { height: 46px; border-radius: 8px; background: var(--tint); }
.mock-window .tiles i:first-child { background: var(--charcoal); }
.mock-window .rows { display: grid; gap: 8px; }
.mock-window .rows i:nth-child(2) { width: 80%; }
.mock-window .rows i:nth-child(3) { width: 60%; background: var(--lavender); }
.compact .mock-window .body { padding: 12px; }
.compact .mock-window .tiles i { height: 30px; }
.mock-phone { width: 170px; height: 330px; border-radius: 30px; background: var(--charcoal); padding: 12px; box-shadow: 0 30px 50px -24px rgba(15, 17, 15, .45); }
.mock-phone .screen { height: 100%; border-radius: 20px; background: #fff; padding: 16px 12px; display: grid; gap: 10px; align-content: start; }
.mock-phone .screen i { display: block; height: 10px; border-radius: 5px; background: #eceeef; }
.mock-phone .screen i:first-child { height: 70px; border-radius: 10px; background: var(--green); }
.mock-phone .screen i:nth-child(4) { height: 40px; border-radius: 8px; background: var(--yellow); }
.mock-phone .screen i:last-child { height: 30px; border-radius: 15px; background: var(--charcoal); margin-top: 10px; }
.mock-diagram { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: min(100%, 460px); }
.mock-diagram .node { background: #fff; border-radius: 12px; padding: 16px 12px; text-align: center; font: 500 14px/1.3 var(--head-font); color: var(--ink); box-shadow: 0 16px 32px -20px rgba(15, 17, 15, .4); }
.mock-diagram .hub { grid-row: span 3; grid-column: 2; width: 110px; height: 110px; border-radius: 50%; background: var(--charcoal); color: #fff; display: grid; place-items: center; text-align: center; font: 500 14px/1.3 var(--head-font); padding: 10px; }
.mock-diagram .left { grid-column: 1; }
.mock-diagram .right { grid-column: 3; }

/* Contact */
.contact-card { background: #fff; border-radius: 15px; padding: 40px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(15, 17, 15, .35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font: 500 15px var(--head-font); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 1px solid #d9dbdc; border-radius: 8px; background: #fff; font: 400 16px var(--body-font); color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44, 188, 165, .18); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-foot p { margin: 0; font-size: 14px; color: var(--soft); }
.topic-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.topic-field legend { padding: 0; margin-bottom: 10px; font: 500 15px var(--head-font); color: var(--ink); }
.topic-field .hint { margin-left: 6px; font: 400 13px var(--body-font); color: var(--muted); }
.topic-options { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-option { position: relative; margin: 0 !important; cursor: pointer; }
.topic-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic-option span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #d9dbdc; border-radius: 999px; background: #fff; font: 400 14px/1.3 var(--body-font); color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.topic-option span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid #b9bcbe; border-radius: 4px; flex: none; transition: background .2s, border-color .2s; }
.topic-option:hover span { border-color: var(--teal); }
.topic-option input:checked + span { background: rgba(44, 188, 165, .1); border-color: var(--teal); }
.topic-option input:checked + span::before { border-color: var(--teal); background: var(--teal) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="white" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m4 8.5 2.5 2.5L12 5.5"/%3E%3C/svg%3E') center / 12px no-repeat; }
.topic-option input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.field .error { margin: 6px 0 0; color: #b42318; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 22px; font-size: 16px; }
.notice.ok { background: rgba(88, 192, 156, .16); color: #145c49; }
.notice.bad { background: #fde8e7; color: #8f1d14; }
.contact-details p { margin-bottom: 1.4em; }
.contact-details a { text-decoration: none; }
.contact-layout { grid-template-columns: 1.45fr .85fr; }
.media.compact { margin-bottom: 22px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.qr { width: 180px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Home ---------- */
.home-hero { padding: calc(90px + var(--header-h)) 0 90px; background: #fff url('../images/home/hero-bg.webp') right bottom / cover no-repeat; }
.home-hero .wrap { display: grid; grid-template-columns: 601fr 549fr; gap: 50px; align-items: center; }
.home-hero h1 { font: 500 clamp(2.8rem, 6vw, 4.5rem)/1.12 var(--head-font); color: var(--heading); letter-spacing: -0.02em; margin-bottom: 32px; }
.home-hero .lead { font: 400 18px/1.85 var(--body-font); color: var(--text); margin-bottom: 44px; }
.home-hero .actions { margin: 0; }
.home-hero .stack { font: 500 15px var(--body-font); letter-spacing: .02em; color: rgba(59, 59, 59, .67); margin: 80px 0 0; }
/* Client logos: endless linear scroll, six per view as in the WordPress logo slider; each logo moves one slot every 4000ms. */
.logo-strip { background: var(--tint); padding: 50px 0; --slot: calc(min(100vw, 1230px) / 6); }
.logo-marquee { max-width: 1230px; margin: 0 auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: logo-scroll calc(var(--count) * 4000ms) linear infinite; }
.logo-track li { flex: none; width: var(--slot); margin: 0; display: grid; place-items: center; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-strip img { height: 70px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-strip img:hover { filter: none; opacity: 1; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
/* One team + What we do share one background, as one container did in WordPress. */
.home-intro { background: #fff url('../images/home/section-bg.webp') center top / cover no-repeat; }
.home-services { margin-top: 130px; }
.home-team h2 { font-weight: 500; }
.photo-frame { position: relative; max-width: 582px; }
.photo-frame .photo { position: absolute; left: 10.3%; top: 9.4%; width: 79.4%; border-radius: var(--radius); }
.services-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.services-board .card { grid-column: span 2; }
.services-board .card.lead-card { grid-column: span 4; background: var(--orange) url('../images/home/lead-rings.webp') 207px 182px / 100% auto no-repeat; color: #fff; box-shadow: none; overflow: hidden; position: relative; justify-content: space-between; min-height: 330px; }
.services-board .lead-card h3 { font: 500 clamp(2rem, 3.4vw, 2.875rem)/1.15 var(--head-font); color: var(--heading); max-width: 12ch; }
.services-board .lead-card .btn { align-self: flex-start; position: relative; z-index: 1; }
.services-board .lead-card .btn { --btn-fill: var(--ink); }
.products-band { background: var(--charcoal); }
.products-band h2 { color: #fff; }
.products-band .narrow p { color: rgba(255, 255, 255, .6); }
.products-band .card { background: transparent; border-radius: 15px; padding: 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.products-band .card:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.products-band .card img { border-radius: 10px; margin-bottom: 24px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.products-band .card h3 { color: #fff; font-size: 18px; font-weight: 500; }
.products-band .card p { color: rgba(255, 255, 255, .72); }
.products-band .card { position: relative; }
.products-band .card h3 a { text-decoration: none; }
.products-band .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); padding: 70px 0 30px; font-size: 15px; color: var(--ink); }
/* Full-width footer with 100px side padding (narrower on smaller screens). */
.footer-wrap { padding: 0 100px; }
.footer-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 50px; border-bottom: 1px solid #e2e2e3; }
.footer-brand img { width: auto; height: 60px; margin-bottom: 14px; }
.footer-big { display: block; margin: 0 0 8px; font: 600 clamp(1.4rem, 2.4vw, 2.25rem)/1.25 var(--head-font); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; word-break: break-word; }
a.footer-big:hover { color: var(--teal); }
.footer-top p:not(.footer-big) { margin: 0; color: var(--soft); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }
.social-links li { margin: 0; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); transition: background .3s var(--ease-btn), color .3s var(--ease-btn), transform .2s; }
.social-links a:hover, .social-links a:focus-visible { background: var(--teal); color: #fff; transform: translateY(-2px); }
.social-links .icon { width: 20px; height: 20px; }
.footer-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; padding: 44px 0; }
.footer-heading { font: 600 15px var(--head-font); margin-bottom: 12px; }
.footer-links .footer-heading a { display: inline; margin: 0; color: var(--ink); }
.footer-links a { display: block; margin: 6px 0; color: #4a4d4f; text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-links .footer-label { display: block; margin: 14px 0 4px; font: 600 12px var(--head-font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #e2e2e3; font-size: 13px; }
.footer-bottom p { margin: 0; color: #a0a1a2; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { text-decoration: none; }

/* eCommerce platforms, adapted from the "Platforms we build on" design component. */
section.platforms { background: radial-gradient(45% 60% at 0% 0%, rgba(88, 192, 156, .12), transparent 70%), radial-gradient(45% 60% at 100% 100%, rgba(208, 185, 239, .22), transparent 70%), #fbfbfd; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 12px/1.4 var(--head-font); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.pill-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .35; } }
.platform-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: -16px auto 48px; padding: 6px; border-radius: 30px; list-style: none; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.platform-pills li { margin: 0; padding: 8px 20px; border-radius: 999px; font: 500 15px var(--head-font); color: var(--ink); cursor: default; transition: background .3s var(--ease-btn), color .3s var(--ease-btn); }
.platform-pills li:hover { background: var(--tint); color: var(--teal); }
.platform-pills li:last-child { background: var(--charcoal); color: #fff; }
.platform-card { display: flex; flex-direction: column; padding: 30px; border-radius: 15px; background: #fff; box-shadow: 0 0 0 1px var(--line); scroll-margin-top: calc(var(--header-h) + 30px); transition: transform .3s var(--ease-btn), box-shadow .3s var(--ease-btn); }
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent), 0 18px 40px -18px rgba(15, 17, 15, .25); }
.platform-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.platform-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); transition: transform .3s var(--ease-btn); }
.platform-mark .icon { width: 30px; height: 30px; }
.platform-mark .icon .ac { opacity: .35; }
.platform-card:hover .platform-mark { transform: scale(1.06); }
.platform-badge { padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--brand) 8%, #fff); color: var(--brand); font: 600 12px var(--head-font); }
.platform-card h3 { font-size: 22px; transition: color .3s; }
.platform-card:hover h3 { color: var(--brand); }
.platform-card > p:not(.platform-meta) { color: var(--soft); font-size: 16px; }
.platform-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.platform-meta b { font-weight: 600; color: var(--brand); }
.platform-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 60px; padding: 40px; border-radius: 15px; background: var(--night); color: #a0a0a0; }
.platform-banner h3 { margin-bottom: 6px; color: #fff; font-size: 22px; }
.platform-banner p { margin: 0; font-size: 16px; }
.platform-banner .btn { background: #fff; color: var(--ink); border-radius: 10px; }
.platform-banner .btn:hover, .platform-banner .btn:focus-visible { color: #fff; }

/* Testimonials + closing call to action share the WordPress line background (uih7) over a soft pastel wash. */
.voices-band { position: relative; background:
    url('../images/home/voices-lines.webp') 50% 90% / 80% auto no-repeat,
    radial-gradient(40% 55% at 5% 30%, rgba(246, 209, 124, .22), transparent 70%),
    radial-gradient(45% 50% at 50% 70%, rgba(88, 192, 156, .16), transparent 70%),
    radial-gradient(40% 55% at 95% 45%, rgba(208, 185, 239, .3), transparent 70%),
    #fdfdfb; }
.voices-band section.cta { background: none; }
.voices-band section.testimonials { padding-bottom: 0; }
.voices-band .wrap { position: relative; }
.testimonials .wrap::before, .testimonials .wrap::after, .voices-band .cta .wrap::before, .voices-band .cta .wrap::after { content: ""; position: absolute; background: center / contain no-repeat; pointer-events: none; }
.testimonials .wrap::before { left: 10%; top: -10px; width: 40px; height: 44px; background-image: url('../images/home/spark.webp'); }
.testimonials .wrap::after { right: 10%; top: -6px; width: 40px; height: 40px; background-image: url('../images/home/asterisk.webp'); }
.voices-band .cta .wrap::before { left: -12%; bottom: -10px; width: 40px; height: 44px; background-image: url('../images/home/spark.webp'); }
.voices-band .cta .wrap::after { right: -12%; bottom: -60px; width: 40px; height: 44px; background-image: url('../images/home/spark.webp'); transform: rotate(180deg); }
.t-slider { position: relative; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 30px) / 3); column-gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; list-style: none; margin: 0; padding: 4px 4px 24px; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 40px 34px; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 10px 30px -18px rgba(15, 17, 15, .18); }
.t-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 50%; background: var(--violet); color: #fff; }
.t-mark .icon { width: 26px; height: 26px; }
.t-card blockquote { margin: 0 0 18px; }
.t-card blockquote p { margin: 0; font: 400 20px/1.5 var(--head-font); color: var(--ink); }
.t-stars { margin: 0 0 14px; color: #f6a623; letter-spacing: .2em; font-size: 16px; }
.t-author { margin: auto 0 0; font-size: 16px; color: var(--soft); }
.t-nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.t-nav[hidden] { display: none; }
.t-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .3s var(--ease-btn), color .3s var(--ease-btn); }
.t-nav button:hover, .t-nav button:focus-visible { background: var(--ink); color: #fff; }

/* Home "Tell us": copy and the contact form side by side, on the shared voices background. */
section.cta.cta-form { text-align: left; }
.cta-form .split { grid-template-columns: .9fr 1.1fr; align-items: center; }
.cta-form h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.cta-form .contact-card { text-align: left; }
.cta-form .contact-card .btn { margin-top: 0; }
.cta-form .form-foot p { font: 400 14px/1.5 var(--body-font); color: var(--soft); }

/* Policy pages: a readable single column. */
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.8em; font-size: 26px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); font-size: 16px; }

/* WeChat QR pop-up opened from the footer icon. */
.qr-dialog { border: 0; border-radius: 20px; padding: 30px; text-align: center; box-shadow: 0 30px 80px -30px rgba(15, 17, 15, .5); }
.qr-dialog::backdrop { background: rgba(15, 17, 15, .45); }
.qr-dialog img { width: 260px; height: auto; margin: 0 auto 12px; }
.qr-dialog p { margin: 0 0 16px; font: 500 16px var(--head-font); color: var(--ink); }
.social-links button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: background .3s var(--ease-btn), color .3s var(--ease-btn), transform .2s; }
.social-links button:hover, .social-links button:focus-visible { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* Back to top: appears after 600px of scrolling. */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--charcoal); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(15, 17, 15, .5); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease-btn), visibility .3s, background .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--teal); }
.to-top svg { width: 20px; height: 20px; }
main:focus { outline: none; }

/* Home banner collage (components/hero-collage). Sizes are in cqw of the collage, so it scales like the old image.
   Tiles: --depth sets how far a tile follows the pointer (--mx, --my set by script); --delay offsets the float. */
.hero-collage { --ink2: #262d2e; --tl: #50af9b; --mg: #d351b0; --lm: #c0cd46; --or: #f08833; position: relative; width: 100%; aspect-ratio: 1334 / 1536; container-type: inline-size; font-family: var(--head-font); user-select: none; }
.hc-decor { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hc-decor * { transform-box: fill-box; transform-origin: center; }
.hc-spin { animation: hc-spin 9s ease-in-out infinite alternate; }
.hc-spin.r { animation-direction: alternate-reverse; animation-duration: 11s; }
.hc-bob { animation: hc-float 4s ease-in-out infinite; }
.hc-bob.r { animation-delay: -2s; }
.hc-wave { animation: hc-wave 3s ease-in-out infinite; }
.hc-wave.r { animation-delay: -1.5s; }
@keyframes hc-spin { from { transform: rotate(-10deg) translateY(0); } to { transform: rotate(12deg) translateY(-6%); } }
@keyframes hc-float { 50% { transform: translateY(-1.4cqw); } }
@keyframes hc-wave { 50% { transform: translateX(1cqw) rotate(-8deg); } }

.hc-tile { position: absolute; width: 31.9%; aspect-ratio: 1; translate: calc(var(--mx, 0) * var(--depth) * 2.4cqw) calc(var(--my, 0) * var(--depth) * 2.4cqw); transition: translate .6s cubic-bezier(.2, .65, .3, 1), scale .35s var(--ease-btn); animation: hc-float 6s ease-in-out var(--delay) infinite; }
.hc-tile:hover { scale: 1.04; z-index: 2; }
.hc-circle { width: 34.1%; border-radius: 50%; }
.hc-frame { padding: 2.25cqw; border-radius: 1.6cqw; background: #c4c4c4; }
.hc-panel { height: 100%; padding: 2cqw; border-radius: 1.3cqw; background: #f2f2f2; }
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin: 0 0 1.4cqw; font-size: 1.95cqw; line-height: 1.2; color: #8a8a8a; }
.hc-head.left { justify-content: flex-start; }
.hc-head b { padding: .35cqw 1.1cqw; border-radius: 2cqw; background: var(--ink2); color: #fff; font-size: 1.1cqw; font-weight: 500; }
.hc-head strong { display: block; color: var(--ink2); font-size: 1.35cqw; font-weight: 600; }

/* Website: dark circle with a browser window. */
.hc-site { left: 16.5%; top: 1%; background: var(--ink2); }
.hc-browser { position: absolute; left: 13.6%; top: 24.8%; width: 72.5%; height: 52.7%; padding: 1.4cqw; border-radius: 1.2cqw; background: #fff; display: flex; flex-direction: column; gap: 1.3cqw; }
.hc-bar { display: flex; align-items: center; gap: .6cqw; }
.hc-bar i { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--mg); }
.hc-bar i:nth-child(2) { background: var(--or); }
.hc-bar i:nth-child(3) { background: var(--lm); }
.hc-bar b { flex: 1; height: 1.2cqw; margin-left: 1cqw; border-radius: 1cqw; background: #f2f2f2; }
.hc-hero { position: relative; flex: 1.3; padding: 1.5cqw; border-radius: .8cqw; background: var(--tl); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: .7cqw; }
.hc-hero span { display: block; width: 55%; height: .9cqw; border-radius: 1cqw; background: #fff; }
.hc-hero span + span { width: 38%; opacity: .5; }
.hc-hero em { display: block; width: 24%; height: 1.2cqw; margin-top: .4cqw; border-radius: 1cqw; background: var(--ink2); }
.hc-hero u { position: absolute; right: 1.5cqw; top: 50%; width: 4.2cqw; height: 4.2cqw; margin-top: -2.1cqw; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.hc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: hc-shine 4s ease-in-out infinite; }
@keyframes hc-shine { 60%, 100% { transform: translateX(100%); } }
.hc-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.hc-cards span { position: relative; border-radius: .6cqw; background: #f2f2f2; }
.hc-cards span::before { content: ""; position: absolute; left: 1cqw; top: 1cqw; width: 1.8cqw; height: 1.8cqw; border-radius: .4cqw; background: var(--c); animation: hc-pop 3s ease-in-out infinite; }
.hc-cards span:nth-child(2)::before { animation-delay: .3s; }
.hc-cards span:nth-child(3)::before { animation-delay: .6s; }
.hc-cards span::after { content: ""; position: absolute; left: 1cqw; right: 1cqw; bottom: 1cqw; height: .5cqw; border-radius: 1cqw; background: #ddd; }
@keyframes hc-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }

/* Bookings: week calendar whose blocks drop in and pulse in turn. */
.hc-book { left: 54.9%; top: 1%; }
.hc-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7cqw; height: calc(100% - 3.6cqw); }
.hc-day { display: flex; flex-direction: column; gap: .8cqw; text-align: center; font-size: 1.25cqw; color: var(--ink2); }
.hc-col { position: relative; flex: 1; border-radius: .7cqw; background: #fff; }
.hc-col i { position: absolute; left: 10%; right: 10%; border-radius: .6cqw; background: var(--c); animation: hc-drop .6s cubic-bezier(.2, .65, .3, 1.3) calc(var(--n) * .12s) both, hc-glow 10s ease-in-out calc(var(--n) * 1s + 1.5s) infinite; }
.hc-col i:hover { filter: brightness(1.12); }
@keyframes hc-drop { from { opacity: 0; transform: translateY(-40%) scale(.8); } }
@keyframes hc-glow { 0%, 8%, 100% { transform: none; box-shadow: none; } 4% { transform: scale(1.08); box-shadow: 0 .6cqw 1.4cqw -.4cqw rgba(0, 0, 0, .35); } }

/* Dashboard: bars that grow, keep breathing and jump on hover. */
.hc-dash { left: 17.6%; top: 33.1%; }
.hc-head b.hc-app { position: relative; flex: none; width: 3.1cqw; height: 3.1cqw; padding: 0; border-radius: .8cqw; background: var(--tl); }
.hc-app::before { content: ""; position: absolute; inset: .75cqw; background: linear-gradient(#fff 0 0) 0 0 / 42% 42% no-repeat, linear-gradient(#fff 0 0) 100% 0 / 42% 42% no-repeat, linear-gradient(#fff 0 0) 0 100% / 42% 42% no-repeat, linear-gradient(#fff 0 0) 100% 100% / 42% 42% no-repeat; }
.hc-chart { display: flex; align-items: flex-end; justify-content: space-between; height: calc(100% - 7cqw); padding: 0 .6cqw; }
.hc-chart span { position: relative; width: 2.85cqw; border-radius: 2cqw; background: var(--ink2); overflow: hidden; animation: hc-grow .9s cubic-bezier(.2, .65, .3, 1) calc(var(--n) * .12s) both; transform-origin: bottom; }
.hc-chart i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill); border-radius: 2cqw; background: var(--tl); transform-origin: bottom; animation: hc-breathe 3.2s ease-in-out calc(var(--n) * -.8s) infinite alternate; }
.hc-dash:hover .hc-chart i { animation: hc-jump .5s cubic-bezier(.2, .65, .3, 1.4) calc(var(--n) * .07s) both; }
@keyframes hc-grow { from { transform: scaleY(0); } }
@keyframes hc-breathe { to { transform: scaleY(1.35); } }
@keyframes hc-jump { 50% { transform: scaleY(1.7); } }

/* Store: product card with a cart badge; "Add to cart" counts up. */
.hc-store { left: 53.7%; top: 31.2%; background: var(--tl); }
.hc-product { position: absolute; left: 25%; top: 20%; width: 50%; height: 60%; padding: 1.4cqw; border-radius: 1.2cqw; background: #fff; display: flex; flex-direction: column; gap: .8cqw; }
.hc-photo { flex: 1; display: grid; place-items: center; border-radius: .8cqw; background: #f2f2f2; }
.hc-photo svg { width: 46%; height: auto; transition: transform .35s var(--ease-btn); }
.hc-store:hover .hc-photo svg { transform: rotate(-8deg) scale(1.08); }
.hc-line { height: .9cqw; width: 75%; border-radius: 1cqw; background: var(--ink2); }
.hc-line.short { width: 45%; height: .6cqw; background: #ccc; }
.hc-add { display: grid; place-items: center; height: 2.8cqw; margin-top: .3cqw; border-radius: 2cqw; background: var(--ink2); color: #fff; font-size: 1.15cqw; font-weight: 500; cursor: pointer; transition: background .25s, transform .15s; }
.hc-add:hover { background: #000; }
.hc-add:active { transform: scale(.95); }
.hc-cart { position: absolute; left: 71.4%; top: 14.3%; width: 16.3%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--or); animation: hc-wiggle 5s ease-in-out 2s infinite; }
.hc-cart svg { width: 58%; height: auto; }
.hc-cart b { position: absolute; right: -6%; top: -6%; min-width: 2.4cqw; height: 2.4cqw; padding: 0 .5cqw; display: grid; place-items: center; border-radius: 2cqw; background: var(--ink2); color: #fff; font-size: 1.2cqw; font-weight: 600; }
.hc-cart b[hidden] { display: none; }
.hc-cart.is-bump { animation: hc-bump .45s cubic-bezier(.2, .65, .3, 1.5); }
@keyframes hc-wiggle { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-14deg); } 96% { transform: rotate(10deg); } }
@keyframes hc-bump { 50% { transform: scale(1.3); } }

/* Mobile: phone whose list rows slide in turn. */
.hc-mobile { left: 16.5%; top: 63.3%; background: var(--lm); }
.hc-phone { position: absolute; left: 30.1%; top: 14.3%; width: 39.6%; height: 73.2%; padding: 3.2cqw 1.3cqw 2.2cqw; border: .75cqw solid var(--ink2); border-radius: 3cqw; background: #fff; display: flex; flex-direction: column; gap: .8cqw; }
.hc-notch { position: absolute; left: 50%; top: .8cqw; width: 3.6cqw; height: .7cqw; margin-left: -1.8cqw; border-radius: 1cqw; background: var(--ink2); }
.hc-home { position: absolute; left: 50%; bottom: .8cqw; width: 4.6cqw; height: .35cqw; margin-left: -2.3cqw; border-radius: 1cqw; background: var(--ink2); }
.hc-phone .hc-hero { flex: none; height: 5.2cqw; padding: 1cqw; }
.hc-phone .hc-hero u { width: 2.2cqw; height: 2.2cqw; margin-top: -1.1cqw; right: 1cqw; }
.hc-row { display: flex; align-items: center; gap: .9cqw; height: 3.5cqw; margin: 0; padding: 0 1cqw; border-radius: .6cqw; background: #f2f2f2; animation: hc-slide 4.5s ease-in-out calc(var(--n) * .25s) infinite; }
.hc-row i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--c); flex: none; }
.hc-row span { flex: 1; height: .55cqw; border-radius: 1cqw; background: #ccc; }
@keyframes hc-slide { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(8%); } }

/* Servers: status rows with live lights. */
.hc-servers { left: 54.9%; top: 64.1%; }
.hc-cloud { width: 5.7cqw; height: auto; }
.hc-servers .hc-head { font-size: 2cqw; margin-bottom: 1.6cqw; }
.hc-server { display: flex; align-items: center; gap: 1.1cqw; height: 5.2cqw; margin-bottom: .9cqw; padding: 0 1.3cqw; border-radius: .9cqw; background: #fff; transition: transform .25s, box-shadow .25s; }
.hc-server:hover { transform: translateX(.6cqw); box-shadow: 0 .4cqw 1.2cqw -.6cqw rgba(0, 0, 0, .3); }
.hc-server b { display: flex; align-items: center; justify-content: center; gap: .35cqw; width: 2.5cqw; height: 2.5cqw; border-radius: .5cqw; background: var(--ink2); }
.hc-server b i { width: .5cqw; height: .5cqw; border-radius: 50%; background: var(--lm); animation: hc-blink 1.6s steps(2, jump-none) calc(var(--n) * .4s) infinite; }
.hc-server span { flex: 1; display: flex; flex-direction: column; gap: .5cqw; }
.hc-server s { display: block; width: 75%; height: .7cqw; border-radius: 1cqw; background: var(--ink2); }
.hc-server s + s { width: 40%; height: .5cqw; background: #ccc; }
.hc-server em { padding: .35cqw 1.2cqw; border-radius: 2cqw; background: var(--tl); color: #fff; font-size: 1.1cqw; font-style: normal; font-weight: 500; position: relative; }
.hc-server em::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(80, 175, 155, .6); animation: hc-ping 2.4s ease-out calc(var(--n) * .8s) infinite; }
@keyframes hc-blink { 50% { opacity: .25; } }
@keyframes hc-ping { 70%, 100% { box-shadow: 0 0 0 .9cqw rgba(80, 175, 155, 0); } }

/* Products: documented plugins in the dark band, screenshots cropped to one shape. */
.products-band.documented .card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.products-band.documented .status { margin-top: 0; background: rgba(44, 188, 165, .16); color: #7fe0cf; }
.products-band.documented .doc-link { margin: auto 0 0; padding-top: 6px; font: 500 14px var(--head-font); color: var(--teal); }

/* News: category switch, post cards and the article. */
.news-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.news-cats a { padding: 8px 20px; border: 1px solid var(--line); border-radius: 25px; font: 500 15px var(--head-font); color: var(--text); text-decoration: none; background: #fff; transition: border-color .2s, color .2s; }
.news-cats a:hover { border-color: var(--ink); color: var(--ink); }
.news-cats a[aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
.news-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.card.post-card { padding: 0; overflow: hidden; }
.post-card > :not(.post-thumb) { margin-left: 30px; margin-right: 30px; }
.post-card > :last-child { margin-bottom: 30px; }
.post-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 24px; background: linear-gradient(135deg, rgba(44, 188, 165, .22), rgba(208, 185, 239, .35)); }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-meta { margin-bottom: 10px; font: 500 14px/1.4 var(--head-font); color: var(--muted); }
.post-meta a { color: var(--teal); text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card .post-meta a { position: relative; z-index: 1; }
.news-pages { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font: 500 15px var(--head-font); color: var(--muted); }
.post-hero .wrap { max-width: 820px; }
.post-hero .post-meta { margin: 18px 0 0; }
.post-crumbs { margin-bottom: 18px; font: 500 14px var(--head-font); color: var(--muted); }
.post-crumbs a { color: var(--teal); text-decoration: none; }
.post-crumbs a:hover { text-decoration: underline; }
section.post-body { padding-top: 0; }
.post-cover { margin: 0 0 48px; }
.post-cover img { width: 100%; border-radius: var(--radius); }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { margin: 1.8em 0 .6em; font-size: 28px; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose a { color: var(--teal); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--teal); color: var(--soft); }
.prose code { padding: 2px 6px; border-radius: 5px; background: var(--tint); font-size: .9em; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--radius); background: var(--night); color: #e6e6e6; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.post-back { margin-top: 48px; }
.post-preview { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: calc(100% - 96px); margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--orange); color: #fff; font: 500 14px/1.4 var(--head-font); box-shadow: 0 10px 24px -10px rgba(15, 17, 15, .5); }
.post-preview a { color: #fff; }

/* Reminder for a signed-in admin while maintenance mode is on. */
.maint-note { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: calc(100% - 96px); padding: 10px 16px; border-radius: 10px; background: #b42318; color: #fff; font: 500 14px/1.4 var(--head-font); text-decoration: none; box-shadow: 0 10px 24px -10px rgba(15, 17, 15, .5); }
.maint-note:hover { background: #8f1c13; }
.maint-note.hidden-note { bottom: 64px; background: var(--charcoal); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .g4 { grid-template-columns: repeat(2, 1fr); }
    .steps .card:nth-child(3) { border-left: 0; }
    .services-board { grid-template-columns: repeat(2, 1fr); }
    .services-board .card, .services-board .card.lead-card { grid-column: span 1; }
    .services-board .card.lead-card { grid-column: 1 / -1; }
    .footer-wrap { padding: 0 40px; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
    .t-track { grid-auto-columns: calc((100% - 30px) / 2); }
}
@media (max-width: 860px) {
    body { font-size: 17px; }
    section { padding: 64px 0; }
    .hero { padding: calc(64px + var(--header-h)) 0 64px; }
    .hero > .wrap, .home-hero .wrap, .split, .g2, .g3, .form-grid { grid-template-columns: 1fr; }
    .split { gap: 36px; }
    .card { padding: 28px; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .platform-banner { padding: 30px; }
    .cta-form .split { grid-template-columns: 1fr; }
    .testimonials .wrap::before, .testimonials .wrap::after, .voices-band .cta .wrap::before, .voices-band .cta .wrap::after { display: none; }
    section.cta { padding: 80px 0; }
    .home-hero { padding: calc(40px + var(--header-h)) 0 64px; }
    .home-hero .stack { margin-top: 40px; }
    .home-services { margin-top: 80px; }
    .logo-strip { --slot: calc(100vw / 3); }
}
@media (max-width: 560px) {
    .g4, .services-board { grid-template-columns: 1fr; }
    .steps .card { border-left: 0; border-top: 1px solid rgba(15, 17, 15, .12); padding-top: 26px; }
    .steps .card:first-child { border-top: 0; }
    .footer-wrap { padding: 0 20px; }
    .t-track { grid-auto-columns: 100%; }
    .t-card { padding: 32px 24px; }
    .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .contact-card { padding: 24px; }
    .visual { padding: 24px 14px; }
    .mock-diagram { gap: 10px; }
    .mock-diagram .hub { width: 84px; height: 84px; font-size: 12px; }
    .mock-diagram .node { padding: 10px 6px; font-size: 12px; }
}

/* Scroll reveal: the layout script adds .reveal to content blocks and .is-visible when they scroll into view
   (Elementor fadeIn, staggered 100ms like the WordPress cards). Nothing is hidden without JavaScript. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .65, .3, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Card icons: simple line glyphs, rotated through the cards of a grid. */
.card:nth-child(8n+1) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="16 18 22 12 16 6"/%3E%3Cpolyline points="8 6 2 12 8 18"/%3E%3C/svg%3E'); }
.card:nth-child(8n+2) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolygon points="12 2 2 7 12 12 22 7 12 2"/%3E%3Cpolyline points="2 17 12 22 22 17"/%3E%3Cpolyline points="2 12 12 17 22 12"/%3E%3C/svg%3E'); }
.card:nth-child(8n+3) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/%3E%3C/svg%3E'); }
.card:nth-child(8n+4) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/%3E%3C/svg%3E'); }
.card:nth-child(8n+5) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="3" width="18" height="18" rx="2"/%3E%3Cline x1="3" y1="9" x2="21" y2="9"/%3E%3Cline x1="9" y1="21" x2="9" y2="9"/%3E%3C/svg%3E'); }
.card:nth-child(8n+6) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/%3E%3C/svg%3E'); }
.card:nth-child(8n+7) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"/%3E%3C/svg%3E'); }
.card:nth-child(8n) { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="4" y1="21" x2="4" y2="14"/%3E%3Cline x1="4" y1="10" x2="4" y2="3"/%3E%3Cline x1="12" y1="21" x2="12" y2="12"/%3E%3Cline x1="12" y1="8" x2="12" y2="3"/%3E%3Cline x1="20" y1="21" x2="20" y2="16"/%3E%3Cline x1="20" y1="12" x2="20" y2="3"/%3E%3Cline x1="1" y1="14" x2="7" y2="14"/%3E%3Cline x1="9" y1="8" x2="15" y2="8"/%3E%3Cline x1="17" y1="16" x2="23" y2="16"/%3E%3C/svg%3E'); }

