@charset "UTF-8";

/* ==========================================================================
   thinkS corporate site - 2026-10 design refresh
   Loaded after style.css / front-page.css. Removing this file and
   motion.js restores the previous look.

   Motion rules only apply under html.motion-ready, which motion.js adds
   (and never adds when the visitor prefers reduced motion), so every
   element stays visible without JavaScript.
   ========================================================================== */

:root {
    --primary-color: #1933b3;
    --primary-deep: #0e1d6b;
    --accent-color: #c09128;
    --accent-deep: #a17820;
    --accent-soft: #f7f0e0;
    --text-color: #1e2333;
    --color-text: #1e2333;
    --color-text-sub: #5b6275;
    --light-bg: #f4f6fb;
    --bg-gray: #f4f6fb;
    --line: #e3e7f0;
    --card-shadow: 0 1px 2px rgba(14, 29, 107, 0.04), 0 8px 24px rgba(14, 29, 107, 0.05);
    --card-shadow-hover: 0 2px 4px rgba(14, 29, 107, 0.05), 0 18px 40px rgba(14, 29, 107, 0.10);
    --radius-md: 14px;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --nav-h: 80px;
}

body {
    font-feature-settings: "palt";
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    letter-spacing: 0.03em;
}

::selection {
    background: var(--accent-soft);
    color: var(--primary-deep);
}

/* --------------------------------------------------------------------------
   Section headings: Japanese is the heading, English is a small label
   -------------------------------------------------------------------------- */
.section-header {
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
    color: var(--accent-color) !important;
    font-size: 0.85rem !important;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.section-label::before,
.section-label::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    transform-origin: center;
}

.section-header h2 {
    display: block;
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
    line-height: 1.45;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--primary-deep);
    margin: 0;
}

.section-header h2::after {
    content: none;
}

.section-header h2 + p {
    margin-top: 1rem;
    color: var(--color-text-sub);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.82);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        backdrop-filter: saturate(160%) blur(14px);
    }
}

.navbar .container {
    transition: height 0.35s var(--ease-out);
}

.logo img {
    transition: height 0.35s var(--ease-out);
}

.navbar.is-scrolled {
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(14, 29, 107, 0.08);
}

@media (min-width: 992px) {
    .navbar.is-scrolled .container {
        height: 64px;
    }
    .navbar.is-scrolled .logo img {
        height: 34px;
    }
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 991px) {
    .nav-menu {
        padding: 6.5rem 2rem 2rem;
        box-shadow: -20px 0 40px rgba(14, 29, 107, 0.12);
        transition: right 0.4s var(--ease-out);
    }
    .nav-menu li {
        margin-bottom: 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-menu .nav-link {
        display: block;
        padding: 1.1rem 0;
        font-size: 1rem;
    }
    .nav-menu .nav-link::after {
        bottom: -1px;
    }
    .nav-overlay {
        background: rgba(14, 29, 107, 0.35);
    }
    .motion-ready .nav-menu li {
        opacity: 0;
        transform: translateX(16px);
        transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
    }
    .motion-ready .nav-menu.active li {
        opacity: 1;
        transform: none;
    }
    .motion-ready .nav-menu.active li:nth-child(2) { transition-delay: 0.05s; }
    .motion-ready .nav-menu.active li:nth-child(3) { transition-delay: 0.1s; }
    .motion-ready .nav-menu.active li:nth-child(4) { transition-delay: 0.15s; }
    .motion-ready .nav-menu.active li:nth-child(5) { transition-delay: 0.2s; }
    .menu-toggle span {
        height: 2px;
    }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 1.05rem 2.6rem;
    border-radius: 999px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: none;
    text-align: center;
    box-shadow: 0 6px 18px rgba(192, 145, 40, 0.28);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, color 0.3s ease;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent-deep);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(192, 145, 40, 0.36);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-text {
    display: inline-block;
    border-bottom: 0;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
    transition: color 0.3s ease, background-size 0.4s var(--ease-out);
}

.btn-text:hover {
    background-size: 0 1px;
    background-position: 100% 100%;
}

.btn-login {
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(25, 51, 179, 0.25);
    transition: background 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.btn-login:hover {
    background-color: var(--primary-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(25, 51, 179, 0.3);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    height: auto;
    min-height: clamp(540px, 76vh, 680px);
    padding: 4rem 0;
    background: linear-gradient(125deg, var(--primary-color) 0%, #15299a 55%, var(--primary-deep) 100%);
}

@media (min-width: 992px) {
    .hero-bg {
        clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

.hero h1 {
    font-size: clamp(1.4rem, 0.6rem + 2.4vw, 2.4rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    white-space: normal;
    margin-bottom: 0;
}

.hero-line {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.08em;
}

.hero-line > span {
    display: inline-block;
}

.hero-rule {
    display: block;
    width: 64px;
    height: 3px;
    margin: 1.8rem 0 2rem;
    background: var(--accent-color);
    transform-origin: left;
}

.hero-checklist li {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero .btn-primary {
    padding: 1.15rem 2.8rem;
}

@media (min-width: 992px) {
    .hero-content {
        width: 52%;
    }
}

@media (max-width: 991px) {
    .hero {
        min-height: 0;
        padding: 5rem 0 4rem;
        margin-top: 64px;
    }
    .hero-bg {
        opacity: 0.22;
    }
    .hero-rule {
        margin: 1.4rem 0 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero .btn-primary {
        display: block;
    }
}

/* Load sequence */
.motion-ready .hero-bg {
    animation: hero-bg-in 1.8s var(--ease-out) both;
}
.motion-ready .hero-line > span {
    animation: hero-line-in 1s var(--ease-out) both;
}
.motion-ready .hero-line:nth-of-type(1) > span { animation-delay: 0.15s; }
.motion-ready .hero-line:nth-of-type(2) > span { animation-delay: 0.3s; }
.motion-ready .hero-rule {
    animation: rule-in 0.8s var(--ease-out) 0.75s both;
}
.motion-ready .hero-checklist li,
.motion-ready .hero-content > .btn-primary {
    animation: fade-up 0.8s var(--ease-out) both;
}
.motion-ready .hero-checklist li:nth-child(1) { animation-delay: 0.9s; }
.motion-ready .hero-checklist li:nth-child(2) { animation-delay: 1s; }
.motion-ready .hero-checklist li:nth-child(3) { animation-delay: 1.1s; }
.motion-ready .hero-content > .btn-primary { animation-delay: 1.25s; }

@keyframes hero-bg-in {
    from { opacity: 0; transform: scale(1.06); }
}
@keyframes hero-line-in {
    from { transform: translateY(105%); }
}
@keyframes rule-in {
    from { transform: scaleX(0); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-panel {
    border: 1px solid var(--line);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-panel:hover {
    transform: translateY(-4px);
    border-color: #cfd6ea;
}

/* Static information panels should not float on hover */
.info-wrapper .card-panel:hover,
.worries-list.card-panel:hover {
    transform: none;
    box-shadow: var(--card-shadow);
    border-color: var(--line);
}

.service-card {
    cursor: default;
}

.service-thumb img,
.work-thumb img {
    transition: transform 0.8s var(--ease-out);
}

.service-card:hover .service-thumb img,
.work-card:hover .work-thumb img {
    transform: scale(1.04);
}

.service-title {
    color: var(--primary-deep);
}

.service-tag,
.work-tag {
    background: var(--light-bg);
    border: 1px solid var(--line);
    color: var(--color-text-sub);
    border-radius: 999px;
    font-weight: 600;
}

.work-card {
    padding: 0;
}

.work-title {
    color: var(--primary-deep);
}

/* Problems list */
.worries-list.card-panel {
    border-left: 3px solid var(--accent-color);
}

.solution-msg {
    color: var(--primary-deep);
    letter-spacing: 0.05em;
}

.cta-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 2.5rem 2rem;
}

/* Reasons */
.reasons-intro {
    color: var(--primary-deep);
}

.reason-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem 2rem;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.reason-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0.18);
    transition: transform 0.5s var(--ease-out);
}

.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.reason-card:hover::before {
    transform: scaleX(1);
}

.reason-number {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.reason-title {
    color: var(--primary-deep);
}

.reason-desc {
    color: var(--color-text-sub);
}

/* --------------------------------------------------------------------------
   FLOW / AX steps: arrows drawn as lines
   -------------------------------------------------------------------------- */
.flow-step,
.ax-step-num {
    letter-spacing: 0.12em;
    font-size: 0.85rem;
}

.flow-title {
    color: var(--primary-deep);
}

.flow-output-tag {
    background: var(--accent-soft);
    color: #7a5a14;
    border-radius: 999px;
}

.flow-arrow,
.ax-step-arrow {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    padding: 0;
    font-size: 0;
    color: transparent;
}

.flow-arrow::before,
.ax-step-arrow::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 12px;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: var(--accent-color);
    transform-origin: left center;
}

.flow-arrow::after,
.ax-step-arrow::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -5px;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transform: rotate(45deg);
}

@media (max-width: 991px) {
    .flow-card {
        margin-bottom: 0;
    }
    .flow-arrow {
        flex: 0 0 52px;
        width: auto;
        height: 52px;
        margin: 0;
        transform: none;
    }
    .flow-arrow::before {
        left: 50%;
        right: auto;
        top: 10px;
        bottom: 12px;
        width: 2px;
        height: auto;
        margin: 0 0 0 -1px;
        transform-origin: center top;
    }
    .flow-arrow::after {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 12px;
        margin: 0 0 0 -5px;
        transform: rotate(135deg);
    }
}

@media (max-width: 768px) {
    .ax-step-arrow {
        flex: 0 0 52px;
        width: auto;
        height: 52px;
        transform: none;
    }
    .ax-step-arrow::before {
        left: 50%;
        right: auto;
        top: 10px;
        bottom: 12px;
        width: 2px;
        height: auto;
        margin: 0 0 0 -1px;
        transform-origin: center top;
    }
    .ax-step-arrow::after {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 12px;
        margin: 0 0 0 -5px;
        transform: rotate(135deg);
    }
}

/* AX */
.ax-what-inner {
    border-width: 1px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    padding: 2rem 1.75rem 1.6rem;
}

.ax-label {
    border-radius: 999px;
    padding: 4px 14px;
    letter-spacing: 0.08em;
}

.ax-fails h3,
.ax-approach h3 {
    color: var(--primary-deep);
}

.ax-fails-list li {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
}

.ax-step h4 {
    color: var(--primary-deep);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: #cfd6ea;
    box-shadow: var(--card-shadow);
}

.faq-item summary {
    padding: 1.2rem 1.4rem;
    gap: 1rem;
}

.faq-item summary::after {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: 0;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.35s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
    background: var(--primary-color);
    color: var(--white);
}

.faq-answer {
    padding: 0 1.4rem 1.4rem;
    color: var(--color-text-sub);
}

/* Smooth open/close where the browser supports it; otherwise it just opens */
@supports selector(::details-content) {
    :root {
        interpolate-size: allow-keywords;
    }
    .motion-ready .faq-item::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
    }
    .motion-ready .faq-item[open]::details-content {
        block-size: auto;
    }
}

@media (max-width: 767px) {
    .faq-item summary {
        padding: 1rem 1.1rem;
    }
    .faq-item summary::after {
        position: static;
    }
    .faq-answer {
        padding: 0 1.1rem 1.2rem;
    }
}

.faq-cta,
.cta-box.ax-cta {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.faq-cta-title {
    color: var(--primary-deep);
}

/* --------------------------------------------------------------------------
   Vision / News / About
   -------------------------------------------------------------------------- */
.vision-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(14, 29, 107, 0.12);
}

.vision-image img {
    display: block;
    box-shadow: none;
    border-bottom: 0;
}

.vision-text h3 {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
    color: var(--primary-deep);
    letter-spacing: 0.08em;
}

.vision-text p {
    color: var(--color-text-sub);
    line-height: 1.9;
}

.vision-text p.fw-bold {
    color: var(--text-color);
}

.news-item {
    padding: 1.2rem 0.5rem;
    border-color: var(--line) !important;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: var(--light-bg);
}

.news-date {
    color: var(--accent-deep);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.news-link:hover {
    text-decoration: none;
}

.news-archive-thumb {
    overflow: hidden;
    border-radius: 10px;
}

.news-archive-thumb img {
    border-radius: 0;
    transition: transform 0.6s var(--ease-out);
}

.news-archive-link:hover {
    opacity: 1;
}

.news-archive-link:hover .news-archive-thumb img {
    transform: scale(1.04);
}

.news-archive-link:hover .news-title {
    color: var(--primary-color);
}

.news-archive-content .news-title {
    transition: color 0.3s ease;
}

.info-wrapper {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.info-title {
    border-left-width: 3px;
    border-left-color: var(--accent-color);
    color: var(--primary-deep);
    font-size: 1.3rem;
    line-height: 1.4;
}

.info-wrapper .card-panel {
    padding: 0.5rem 2rem;
}

table.company-table th,
table.company-table td {
    border-bottom-color: var(--line);
}

@media (min-width: 992px) {
    table.company-table th,
    table.company-table td {
        padding: 1.2rem 1rem;
    }
}

table.company-table tr:last-child th,
table.company-table tr:last-child td {
    border-bottom: 0;
}

table.company-table th {
    background: transparent;
    color: var(--primary-deep);
}

@media (max-width: 991px) {
    .info-wrapper .card-panel {
        padding: 0.5rem 1.25rem 1rem;
    }
    table.company-table tr:last-child th {
        border-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.contact {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 0;
    background-image:
        radial-gradient(ellipse at 85% 0%, rgba(192, 145, 40, 0.22), transparent 55%),
        linear-gradient(rgba(14, 29, 107, 0.9), rgba(25, 51, 179, 0.88)),
        url('../img/vision-smile.jpg');
    background-attachment: scroll;
    background-position: center;
}

.contact h2 {
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem);
    line-height: 1.6;
    letter-spacing: 0.06em;
}

.contact-btn {
    padding: 1.15rem 3rem !important;
}

/* --------------------------------------------------------------------------
   Sub pages
   -------------------------------------------------------------------------- */
.page-main {
    padding-top: calc(var(--nav-h) + 4rem);
}

.page-main h1.info-title {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    margin-bottom: 1.75rem;
}

.form-embed,
.mail-fallback,
.login-card {
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-md);
}

.mail-fallback {
    border-left: 3px solid var(--accent-color);
}

.login-card .info-title {
    font-size: 1.5rem;
}

.error-code {
    font-size: clamp(5rem, 3rem + 8vw, 8rem);
    font-weight: 200;
    letter-spacing: 0.08em;
    color: var(--primary-color);
}

.error-title {
    color: var(--primary-deep);
    letter-spacing: 0.08em;
}

@media (max-width: 991px) {
    .page-main {
        padding-top: 7rem;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--primary-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: 3.5rem 0 2rem;
    text-align: left;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.5rem;
}

.footer-brand img {
    display: block;
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
}

.footer-links {
    margin-bottom: 0;
    justify-content: flex-end;
}

.footer-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-copy {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

@media (max-width: 600px) {
    footer {
        text-align: center;
    }
    .footer-inner {
        flex-direction: column;
    }
    .footer-brand img {
        margin: 0 auto;
    }
    .footer-links {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Scroll reveal (classes added by motion.js)
   -------------------------------------------------------------------------- */
.motion-ready .reveal,
.motion-ready .reveal-group > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.9s var(--ease-out) calc(var(--i, 0) * var(--step, 90ms)),
        transform 0.9s var(--ease-out) calc(var(--i, 0) * var(--step, 90ms));
}

.motion-ready .reveal.is-visible,
.motion-ready .reveal-group.is-visible > * {
    opacity: 1;
    transform: none;
}

/* Heading label lines grow in from the text */
.motion-ready .section-header.reveal .section-label::before,
.motion-ready .section-header.reveal .section-label::after {
    transform: scaleX(0);
    transition: transform 0.8s var(--ease-out) 0.25s;
}
.motion-ready .section-header.reveal .section-label::before { transform-origin: right center; }
.motion-ready .section-header.reveal .section-label::after { transform-origin: left center; }
.motion-ready .section-header.reveal.is-visible .section-label::before,
.motion-ready .section-header.reveal.is-visible .section-label::after {
    transform: scaleX(1);
}

/* Flow arrows: stay in place and draw their line after the previous card */
.flow-grid,
.ax-steps {
    --step: 260ms;
}

.motion-ready .reveal-group > .flow-arrow,
.motion-ready .reveal-group > .ax-step-arrow {
    opacity: 1;
    transform: none;
}

.motion-ready .reveal-group > .flow-arrow::before,
.motion-ready .reveal-group > .ax-step-arrow::before {
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out) calc(var(--i, 0) * var(--step) + 0.15s);
}

.motion-ready .reveal-group > .flow-arrow::after,
.motion-ready .reveal-group > .ax-step-arrow::after {
    opacity: 0;
    transition: opacity 0.3s ease calc(var(--i, 0) * var(--step) + 0.6s);
}

.motion-ready .reveal-group.is-visible > .flow-arrow::before,
.motion-ready .reveal-group.is-visible > .ax-step-arrow::before {
    transform: scaleX(1);
}

.motion-ready .reveal-group.is-visible > .flow-arrow::after,
.motion-ready .reveal-group.is-visible > .ax-step-arrow::after {
    opacity: 1;
}

@media (max-width: 991px) {
    .motion-ready .reveal-group > .flow-arrow::before {
        transform: scaleY(0);
    }
    .motion-ready .reveal-group.is-visible > .flow-arrow::before {
        transform: scaleY(1);
    }
}

@media (max-width: 768px) {
    .motion-ready .reveal-group > .ax-step-arrow::before {
        transform: scaleY(0);
    }
    .motion-ready .reveal-group.is-visible > .ax-step-arrow::before {
        transform: scaleY(1);
    }
}

/* --------------------------------------------------------------------------
   Reduced motion: no movement at all
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    .card-panel:hover,
    .reason-card:hover,
    .btn-primary:hover,
    .btn-login:hover {
        transform: none;
    }
}
