/* ==========================================================================
   JustLogin — site stylesheet
   One design system for every public page. Paired with public/js/site.js.
   ========================================================================== */

:root {
    --ink: #111114;
    --ink-2: #1c1c21;
    --ink-3: #2a2a31;
    --red: #dc264e;
    --red-deep: #b0183a;
    --text: #2b2b31;
    --muted: #66666f;
    --line: rgba(17, 17, 20, 0.1);
    --line-strong: rgba(17, 17, 20, 0.2);
    --line-light: rgba(255, 255, 255, 0.12);
    --soft: #f5f5f6;
    --white: #ffffff;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-display: "Inter Tight", "Inter", system-ui, Arial, sans-serif;
    --radius: 8px;
    --ease: cubic-bezier(0.76, 0, 0.24, 1);
    --header-h: 118px;
    --shadow: 0 18px 48px rgba(17, 17, 20, 0.1);
}

/* Base
   ------------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    line-height: 1.04;
}

h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    line-height: 1.1;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 1em;
}

ul,
ol,
dl,
dd,
figure {
    margin: 0;
    padding: 0;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    top: 12px;
}

.wrap {
    width: min(1240px, 100% - 32px);
    margin-inline: auto;
}

/* Reveal: hidden only when JS is running, so content never disappears without it */
.js .reveal {
    opacity: 0;
}

/* Labels, links, buttons
   ------------------------------------------------------------------------ */
.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.label::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
}

.label-light {
    color: #ff7c97;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 600;
    transition: gap 0.3s var(--ease), color 0.2s ease;
}

.link-arrow:hover {
    gap: 14px;
    color: var(--red);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-sm {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-deep);
}

.btn-light {
    background: var(--white);
    color: var(--ink);
}

.btn-light:hover {
    background: #e9e9ec;
}

.btn-outline {
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--red);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Checklists */
.checks {
    display: grid;
    gap: 0;
    margin: 0 0 32px;
    list-style: none;
}

.checks li {
    position: relative;
    padding: 11px 0 11px 30px;
    border-bottom: 1px solid var(--line);
}

.checks li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 12px;
    height: 7px;
    border-bottom: 2px solid var(--red);
    border-left: 2px solid var(--red);
    transform: translateY(-75%) rotate(-45deg);
}

.checks-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.checks-light li {
    border-color: var(--line-light);
    color: rgba(255, 255, 255, 0.86);
}

/* Header
   ------------------------------------------------------------------------ */
.site-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: var(--white);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.site-head svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.topbar {
    overflow: hidden;
    max-height: 42px;
    border-bottom: 1px solid var(--line-light);
    font-size: 0.82rem;
    transition: max-height 0.35s var(--ease), opacity 0.25s ease, border-color 0.35s ease;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 42px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, 0.72);
}

.topbar-info > * {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-info a:hover,
.topbar-promo:hover {
    color: var(--white);
}

.topbar-promo {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 76px;
}

.brand img {
    width: 172px;
    filter: brightness(0) invert(1);
    transition: filter 0.35s ease;
}

.primary-nav {
    margin-left: auto;
}

.primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.primary-nav > ul > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 26px 12px;
    font-size: 0.94rem;
    font-weight: 500;
}

.primary-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 18px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.3s var(--ease);
}

.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li > a[aria-current="page"]::after {
    transform: scaleX(1);
}

.primary-nav .chev {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.has-mega:hover .chev,
.has-mega:focus-within .chev {
    transform: rotate(180deg);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-call {
    display: grid;
    line-height: 1.2;
    text-align: right;
}

.nav-call small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
}

.nav-call strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    transition: transform 0.3s var(--ease);
}

.menu-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.menu-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* Solid header after scrolling, or on hover/menu use */
.site-head.is-solid,
.site-head:hover,
.site-head:focus-within {
    background: var(--white);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(17, 17, 20, 0.06);
    color: var(--ink);
}

.site-head.is-solid .topbar,
.site-head:hover .topbar,
.site-head:focus-within .topbar {
    border-color: var(--line);
}

.site-head.is-solid .topbar-info,
.site-head:hover .topbar-info,
.site-head:focus-within .topbar-info,
.site-head.is-solid .nav-call small,
.site-head:hover .nav-call small,
.site-head:focus-within .nav-call small {
    color: var(--muted);
}

.site-head.is-solid .topbar-promo,
.site-head:hover .topbar-promo,
.site-head:focus-within .topbar-promo {
    color: var(--ink);
}

.site-head.is-solid .brand img,
.site-head:hover .brand img,
.site-head:focus-within .brand img {
    filter: none;
}

.site-head.is-compact .topbar {
    max-height: 0;
    opacity: 0;
    border-color: transparent;
}

/* Mega menu */
.has-mega {
    position: static;
}

.mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 30px 60px rgba(17, 17, 20, 0.12);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mega-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    padding-block: 32px 36px;
}

.mega-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 20px;
}

.mega-list a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.mega-list a:hover {
    background: var(--soft);
}

.mega-list img {
    width: 44px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
}

.mega-list strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.mega-list small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.mega-feature {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
}

.mega-feature img {
    margin-bottom: 10px;
    border-radius: 6px;
}

.mega-feature-label {
    color: #ff7c97;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mega-feature strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.mega-feature small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.84rem;
}

.mega-feature .link-arrow {
    margin-top: 6px;
    color: var(--white);
    font-size: 0.9rem;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 110px 24px 32px;
    background: var(--ink);
    color: var(--white);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu nav {
    display: grid;
}

.mobile-menu nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
}

.mobile-menu-foot {
    display: grid;
    gap: 10px;
}

/* Hero (home)
   ------------------------------------------------------------------------ */
.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
}

/* Fine engineering grid, faded toward the edges */
.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.45;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}

.hero h1,
.page-hero h1 {
    color: var(--white);
}

.hero {
    padding-top: calc(var(--header-h) + 56px);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.hero h1 {
    max-width: 10em;
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 6.2vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.hero-lead {
    max-width: 34em;
    margin-bottom: 36px;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.hero-media {
    position: relative;
    padding: 0 0 48px 48px;
}

.hero-photo {
    aspect-ratio: 5 / 5.2;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink-2);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% center;
}

.hero-shot {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 64%;
    padding: 7px 7px 0;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.hero-shot img {
    width: 100%;
    border-radius: 4px;
}

.hero-shot figcaption {
    padding: 9px 6px 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(56px, 8vw, 96px);
    border-top: 1px solid var(--line-light);
}

.hero-stats > div {
    padding: 28px 24px 36px 0;
}

.hero-stats > div + div {
    padding-left: 24px;
    border-left: 1px solid var(--line-light);
}

.hero-stats dt {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-stats dd {
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
}

/* Page hero (inner pages)
   ------------------------------------------------------------------------ */
.page-hero {
    padding: calc(var(--header-h) + 48px) 0 clamp(64px, 8vw, 96px);
}

.page-hero-inner.has-aside {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
}

.page-hero h1 {
    max-width: 15em;
    margin-bottom: 22px;
}

.page-hero-lead {
    max-width: 38em;
    margin-bottom: 32px;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.page-hero-lead:last-child {
    margin-bottom: 0;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.crumbs a:hover {
    color: var(--white);
}

.crumbs [aria-current] {
    color: rgba(255, 255, 255, 0.85);
}

.hero-index {
    display: grid;
    list-style: none;
    border-top: 1px solid var(--line-light);
}

.hero-index a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
    transition: color 0.2s ease, padding 0.3s var(--ease);
}

.hero-index a:hover {
    padding-left: 12px;
    color: var(--white);
}

.hero-index span {
    color: #ff7c97;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

/* Sections
   ------------------------------------------------------------------------ */
.sec {
    padding-block: clamp(72px, 9vw, 120px);
}

.sec-tight {
    padding-block: 40px;
    border-bottom: 1px solid var(--line);
}

.sec-soft {
    background: var(--soft);
}

.sec-dark {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
}

.sec-dark h2,
.sec-dark h3 {
    color: var(--white);
}

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.sec-head > div {
    max-width: 760px;
}

.sec-head h2 {
    max-width: 18em;
}

.sec-head-lead {
    max-width: 40em;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.sec-head-lead a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sec-head .link-arrow {
    flex-shrink: 0;
    padding-bottom: 6px;
}

.lead-light {
    max-width: 34em;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.lead-light strong {
    color: var(--white);
    font-weight: 600;
}

/* Split: copy + media */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.split h2 {
    margin-bottom: 22px;
}

.split p {
    color: var(--muted);
}

.sec-dark .split p {
    color: rgba(255, 255, 255, 0.7);
}

.split-rev > :first-child {
    order: 2;
}

.spec-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.spec-cols h3 {
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.spec-cols p {
    margin: 0;
    font-size: 0.92rem;
}

/* Media frames */
.frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.frame img {
    width: 100%;
}

.frame figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

.frame-dark {
    border-color: var(--line-light);
    background: var(--ink-2);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.frame-dark figcaption {
    border-color: var(--line-light);
    color: rgba(255, 255, 255, 0.72);
}

.art-panel {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 12%;
    border-radius: var(--radius);
    background: var(--soft);
}

.art-panel img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.art-panel-dark {
    width: min(100%, 420px);
    margin-left: auto;
    border: 1px solid var(--line-light);
    background: var(--ink-2);
}

.photo {
    overflow: hidden;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ticker
   ------------------------------------------------------------------------ */
.ticker {
    overflow: hidden;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
}

.ticker-track span {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ticker-track i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--red);
}

/* About split (home)
   ------------------------------------------------------------------------ */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
    gap: clamp(40px, 6vw, 96px);
}

.statement {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.about-side p {
    color: var(--muted);
}

/* Service grid
   ------------------------------------------------------------------------ */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
    padding: 32px;
    background: var(--white);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.svc-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.svc-card img {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.svc-card-no {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.svc-card h3 {
    font-size: 1.25rem;
    transition: color 0.35s ease;
}

.svc-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.35s ease;
}

.svc-card .link-arrow {
    margin-top: 8px;
    font-size: 0.92rem;
}

.svc-card:hover {
    background: var(--ink);
}

.svc-card:hover h3,
.svc-card:hover .link-arrow {
    color: var(--white);
}

.svc-card:hover p,
.svc-card:hover .svc-card-no {
    color: rgba(255, 255, 255, 0.66);
}

/* Showcase (Roster on dark)
   ------------------------------------------------------------------------ */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
}

.showcase h2 {
    margin-bottom: 22px;
}

.showcase-stage {
    position: relative;
    padding-bottom: 20%;
}

.showcase-main {
    width: 88%;
    margin-left: auto;
}

.showcase-back {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 58%;
}

/* Industries
   ------------------------------------------------------------------------ */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ind-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.ind-no {
    display: block;
    margin-bottom: 36px;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
}

.ind-card h3 {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1.35rem;
}

.ind-card ul {
    display: grid;
    gap: 7px;
    list-style: none;
    color: var(--muted);
    font-size: 0.94rem;
}

/* Why us
   ------------------------------------------------------------------------ */
.why {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: stretch;
}

.why-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
}

.why-figure {
    display: block;
    margin: 12px 0 16px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.why-card p {
    max-width: 22em;
    margin-bottom: 32px;
}

.why-card .btn {
    margin-top: auto;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
}

.why-item {
    display: flex;
    gap: 18px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.why-no {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
}

.why-item h3 {
    margin-bottom: 8px;
}

.why-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Process
   ------------------------------------------------------------------------ */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

.steps-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-strong);
}

.steps-line span {
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.no-js .steps-line span,
.steps-line.is-static span {
    transform: none;
}

.step {
    position: relative;
    padding-top: 36px;
}

.step::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 13px;
    height: 13px;
    border: 2px solid var(--red);
    border-radius: 50%;
    background: var(--soft);
}

.step-no {
    display: block;
    margin-bottom: 16px;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* FAQ
   ------------------------------------------------------------------------ */
.faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.faq-list {
    border-top: 1px solid var(--ink);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    position: relative;
    padding: 22px 48px 22px 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    transform: translateY(-50%);
    transition: transform 0.3s var(--ease), background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    max-width: 44em;
    padding-bottom: 22px;
    color: var(--muted);
}

/* Product pages
   ------------------------------------------------------------------------ */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gallery-main {
    grid-column: 1 / -1;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feat-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.feat-no {
    margin-bottom: 28px;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
}

.feat-card h3 {
    margin-bottom: 10px;
}

.feat-card > p {
    color: var(--muted);
    font-size: 0.93rem;
}

.feat-card .checks {
    margin: auto 0 0;
    font-size: 0.9rem;
}

.feat-card .checks li {
    padding-block: 8px;
}

.feat-card .checks li:last-child {
    border-bottom: 0;
}

.tax-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tax-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.tax-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.tax-code {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tax-card h3 {
    font-size: 1.3rem;
}

.tax-card-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.tax-card .checks {
    margin: 0;
    font-size: 0.94rem;
}

.tax-card .checks li:last-child {
    border-bottom: 0;
}

.tax-note {
    margin: 28px 0 0;
    color: var(--muted);
}

.tax-note a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.module {
    padding: 26px;
    background: var(--white);
}

.module h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.module p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.report-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    border-top: 1px solid var(--line-light);
}

.report-list > div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
}

.report-list dt {
    color: var(--white);
    font-weight: 600;
}

.report-list dd {
    font-size: 0.88rem;
}

.report-table {
    overflow: hidden;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    background: var(--ink-2);
}

.report-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-light);
    color: var(--white);
    font-weight: 600;
}

.report-ok {
    color: #7fd6ad;
    font-size: 0.82rem;
    font-weight: 500;
}

.report-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.report-table th,
.report-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-light);
    text-align: left;
}

.report-table th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-table td {
    color: rgba(255, 255, 255, 0.86);
}

.report-table tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(127, 214, 173, 0.14);
    color: #7fd6ad;
    font-size: 0.78rem;
    font-weight: 600;
}

.compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.compare-card {
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.compare-card h3 {
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.compare-card > p:not(.label) {
    color: var(--muted);
}

.compare-card .checks {
    margin: 24px 0 0;
}

.compare-card-dark {
    border-color: var(--ink);
    background: var(--ink);
}

.compare-card-dark h3 {
    color: var(--white);
}

.compare-card-dark > p:not(.label) {
    color: rgba(255, 255, 255, 0.7);
}

.compare-card-dark .checks li {
    border-color: var(--line-light);
    color: rgba(255, 255, 255, 0.86);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.pill-row li {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
}

/* About
   ------------------------------------------------------------------------ */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
}

.stat-row > div {
    padding: 32px 32px 8px 0;
}

.stat-row > div + div {
    padding-left: 32px;
    border-left: 1px solid var(--line);
}

.stat-row strong {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-row span {
    display: block;
    max-width: 22em;
    color: var(--muted);
}

/* Service detail + article layouts
   ------------------------------------------------------------------------ */
.detail,
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.detail-main h2 {
    margin-bottom: 20px;
}

.detail-main > p {
    max-width: 40em;
    color: var(--muted);
    font-size: 1.05rem;
}

.detail-sub {
    margin: 48px 0 18px;
    font-size: 1.3rem;
}

.included {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
}

.included li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 600;
}

.included span {
    color: var(--red);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.mini-steps {
    display: grid;
    gap: 0;
    list-style: none;
    counter-reset: step;
    border-top: 1px solid var(--line);
}

.mini-steps li {
    position: relative;
    padding: 14px 0 14px 44px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    counter-increment: step;
}

.mini-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 14px;
    left: 0;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
}

.mini-steps strong {
    color: var(--ink);
    font-weight: 600;
}

.detail-side {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 16px;
}

.side-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.side-card-dark {
    display: grid;
    gap: 12px;
    border-color: var(--ink);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
}

.side-card-dark .label {
    margin-bottom: 4px;
}

.side-card-dark h3 {
    color: var(--white);
    font-size: 1.3rem;
}

.side-phone {
    margin: 4px 0 8px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.side-nav {
    display: grid;
}

.side-nav .label {
    margin-bottom: 10px;
}

.side-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.94rem;
    transition: color 0.2s ease, padding 0.3s var(--ease);
}

.side-nav a:last-child {
    border-bottom: 0;
}

.side-nav a:hover {
    padding-left: 6px;
    color: var(--ink);
}

.side-nav a[aria-current="page"] {
    color: var(--red);
    font-weight: 600;
}

/* Article */
.prose {
    max-width: 720px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.prose p {
    margin-bottom: 1.4em;
}

.article-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.article-image {
    width: 100%;
    margin-bottom: 32px;
    border-radius: var(--radius);
}

.prose .link-arrow {
    margin-top: 16px;
}

/* Blog cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.post-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--ink);
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card-media img {
    transform: scale(1.04);
}

.post-card-placeholder {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 24px;
    background:
        linear-gradient(var(--line-light) 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(90deg, var(--line-light) 1px, transparent 1px) 0 0 / 36px 36px,
        var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.post-card time {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.84rem;
}

.post-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.post-card h3 a:hover {
    color: var(--red);
}

.post-card p {
    flex: 1;
    color: var(--muted);
    font-size: 0.94rem;
}

.post-card .link-arrow {
    font-size: 0.92rem;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.pager-btn {
    font-weight: 600;
}

.pager-btn.is-disabled {
    color: var(--muted);
    opacity: 0.5;
}

.pager-info {
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state {
    padding: 48px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

/* Contact
   ------------------------------------------------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 18px;
}

.contact-info > p {
    max-width: 30em;
    color: var(--muted);
}

.contact-phone {
    display: inline-block;
    margin: 16px 0 36px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    transition: color 0.2s ease;
}

.contact-phone:hover {
    color: var(--red);
}

.contact-details {
    border-top: 1px solid var(--line);
}

.contact-details > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.contact-details dt {
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-details dd {
    color: var(--ink);
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--red);
}

.form-card {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3.5vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-card h3 {
    font-size: 1.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-card label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card textarea {
    resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.08);
}

.form-fine {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.form-note {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.form-note-ok {
    border: 1px solid rgba(28, 140, 98, 0.25);
    background: #eef9f4;
    color: #136b4a;
}

.form-note-error {
    border: 1px solid rgba(220, 38, 78, 0.25);
    background: #fdf1f3;
    color: var(--red-deep);
}

/* Map */
.map-section {
    position: relative;
    height: clamp(380px, 46vw, 520px);
    border-top: 1px solid var(--line);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.5s ease;
}

.map-section:hover iframe {
    filter: none;
}

.map-card {
    position: absolute;
    left: max(16px, calc((100vw - 1240px) / 2));
    bottom: 32px;
    display: grid;
    justify-items: start;
    gap: 12px;
    width: min(300px, calc(100% - 32px));
    padding: 22px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.map-card img {
    width: 150px;
}

.map-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* CTA band + footer
   ------------------------------------------------------------------------ */
.cta-band {
    padding-block: clamp(56px, 7vw, 88px);
    background: var(--red);
    color: var(--white);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-band .label {
    color: rgba(255, 255, 255, 0.8);
}

.cta-band h2 {
    max-width: 16em;
    color: var(--white);
}

.cta-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-band .btn-light:hover {
    background: var(--ink);
    color: var(--white);
}

.site-foot {
    padding-top: clamp(64px, 8vw, 96px);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.94rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

.foot-brand img {
    width: 180px;
    margin-bottom: 22px;
    filter: brightness(0) invert(1);
}

.foot-brand p {
    max-width: 26em;
}

.foot-phone {
    display: inline-block;
    margin-top: 8px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-foot h3 {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-foot ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.site-foot a {
    transition: color 0.2s ease;
}

.site-foot a:hover {
    color: var(--white);
}

.foot-contact {
    margin-top: 14px;
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px 28px;
    border-top: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

/* Floating buttons
   ------------------------------------------------------------------------ */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    background: #1fa855;
    color: var(--white);
    box-shadow: 0 14px 30px rgba(31, 168, 85, 0.35);
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(31, 168, 85, 0.45);
}

.wa-float svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.go-top {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.go-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.go-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Motion helpers
   ------------------------------------------------------------------------ */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.split-word > span {
    display: inline-block;
    will-change: transform;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

.page-curtain {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: 50% 100%;
    pointer-events: none;
}

html.is-entering .page-curtain {
    transform: scaleY(1);
}

html.is-entering .page-curtain,
.page-curtain.is-active {
    pointer-events: all;
}

/* Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1180px) {
    .primary-nav,
    .nav-call {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .navbar-actions {
        margin-left: auto;
    }

    .feat-grid,
    .ind-grid,
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 76px;
    }

    .topbar {
        display: none;
    }

    .hero-inner,
    .page-hero-inner.has-aside,
    .showcase,
    .split,
    .about-split,
    .why,
    .faq,
    .contact-grid,
    .detail,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .split-rev > :first-child {
        order: 0;
    }

    .hero-media {
        max-width: 600px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stats > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .hero-stats > div:nth-child(n + 3) {
        border-top: 1px solid var(--line-light);
    }

    .svc-grid,
    .post-grid,
    .tax-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 48px;
    }

    .steps-line {
        display: none;
    }

    .step {
        border-top: 1px solid var(--line-strong);
    }

    .detail-side {
        position: static;
    }

    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 0.97rem;
    }

    .brand img {
        width: 148px;
    }

    .navbar-actions .btn {
        display: none;
    }

    .hero-media {
        padding: 0 0 36px 20px;
    }

    .hero-shot {
        width: 72%;
    }

    .sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .svc-grid,
    .post-grid,
    .feat-grid,
    .ind-grid,
    .tax-grid,
    .module-grid,
    .compare,
    .gallery,
    .why-list,
    .steps,
    .stat-row,
    .spec-cols,
    .included,
    .report-list,
    .form-row,
    .checks-2 {
        grid-template-columns: 1fr;
    }

    .svc-card {
        min-height: 0;
        padding: 26px;
    }

    .stat-row > div,
    .stat-row > div + div {
        padding: 24px 0;
        border-left: 0;
    }

    .stat-row > div + div {
        border-top: 1px solid var(--line);
    }

    .showcase-stage {
        padding-bottom: 28%;
    }

    .map-section {
        height: auto;
    }

    .map-section iframe {
        height: 340px;
        filter: none;
    }

    .map-card {
        position: static;
        width: auto;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--line);
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .foot-bottom {
        flex-direction: column;
    }

    .wa-float span {
        display: none;
    }

    .wa-float {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
    }

    .page-curtain {
        display: none;
    }

    .steps-line span {
        transform: none;
    }
}

/* Tax & compliance
   ------------------------------------------------------------------------ */
.group-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.cmp-grid + .group-title {
    margin-top: 48px;
}

.cmp-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: 20px;
}

.cmp-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.35s var(--ease);
}

.cmp-card:hover {
    border-color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.cmp-code,
.mega-code {
    display: inline-grid;
    place-items: center;
    align-self: flex-start;
    min-width: 56px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cmp-card .cmp-code {
    margin-bottom: 10px;
    transition: background-color 0.25s ease;
}

.cmp-card:hover .cmp-code {
    background: var(--red);
}

.cmp-card h3 {
    font-size: 1.2rem;
}

.cmp-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.cmp-card .link-arrow {
    margin-top: 6px;
    font-size: 0.92rem;
}

.sw-list {
    display: grid;
    border-top: 1px solid var(--line-light);
}

.sw-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-light);
    transition: padding 0.3s var(--ease);
}

.sw-item:hover {
    padding-left: 8px;
}

.sw-no {
    color: #ff7c97;
    font-size: 0.82rem;
    font-weight: 600;
}

.sw-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--white);
    font-weight: 600;
}

.sw-item small {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
    line-height: 1.55;
}

.code-panel {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    width: min(100%, 380px);
    aspect-ratio: 1;
    margin-left: auto;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    background:
        linear-gradient(var(--line-light) 1px, transparent 1px) 0 0 / 38px 38px,
        linear-gradient(90deg, var(--line-light) 1px, transparent 1px) 0 0 / 38px 38px,
        var(--ink-2);
    text-align: center;
}

.code-panel span {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 8vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.code-panel small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.fine-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

/* Compliance mega menu */
.mega-groups {
    display: grid;
    gap: 22px;
}

.mega-group-title {
    margin: 0 0 6px 12px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mega-list-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-code {
    min-width: 50px;
    height: 34px;
    font-size: 0.74rem;
}

/* Footer with five columns */
.foot-grid {
    grid-template-columns: 1.4fr 0.8fr 1.1fr 1.1fr 1fr;
}

@media (max-width: 1180px) {
    .cmp-grid {
        grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .cmp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .code-panel {
        width: 220px;
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .cmp-grid {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }
}

/* At a glance (key facts)
   ------------------------------------------------------------------------ */
.key-facts {
    margin: 0 0 40px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    background: var(--soft);
}

.key-facts-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.key-facts dl > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 0.94rem;
}

.key-facts dt {
    color: var(--muted);
}

.key-facts dd {
    color: var(--ink);
}

@media (max-width: 720px) {
    .key-facts dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
