@font-face {
    font-family: GilroyExtraBold;
    src: url("../gilroy-extrabold.woff2") format("woff2");
    font-display: swap;
}

:root {
    --ink: #211914;
    --ink-deep: #17110e;
    --ink-lift: #33271c;
    --gold: #c9852e;
    --gold-light: #e8b768;
    --gold-pale: #f4dfb2;
    --bronze: #8a5a2b;
    --white: #ffffff;
    --cream: #f4ece0;
    --muted: #d6cbc1;
    --line: rgba(255, 255, 255, 0.12);
    --line-gold: rgba(232, 183, 104, 0.35);
    --shadow-gold: rgba(201, 133, 46, 0.28);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 21px;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 50%;
    width: min(1190px, calc(100% - 40px));
    height: 80px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 13px 0;
}

.brand img {
    width: 250px;
    display: block;
}

.site-nav {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 50%;
    width: min(1190px, calc(100% - 40px));
    height: 80px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    padding: 13px 0;
    pointer-events: none;
}

.site-nav a {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    pointer-events: auto;
}

.site-nav a:hover,
.text-link:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 930px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 120px 20px 65px;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(33, 25, 20, 0.35), rgba(33, 25, 20, 0.3), rgba(33, 25, 20, 0.92)),
        url("../pattern.png");
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.eyebrow {
    margin: 12px 0 0;
    color: var(--white);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
    order: 2;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: GilroyExtraBold, Arial, sans-serif;
    letter-spacing: 0;
    line-height: 0.98;
    overflow-wrap: break-word;
}

h1 {
    order: 1;
    width: min(1060px, 100%);
    margin: 0 auto;
    color: #fff;
    font-size: clamp(2rem, 4.5vw + 1.2rem, 4.875rem);
    text-transform: uppercase;
}

.mobile-breaks span {
    display: inline;
}

h2 {
    color: var(--gold);
    font-size: 36px;
}

h3 {
    font-size: 30px;
}

p {
    color: var(--muted);
    font-size: 21px;
    line-height: 1.45;
}

.intro-copy {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 100px;
    text-align: center;
}

.intro-copy h2 {
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 33px;
    text-transform: uppercase;
}

.intro-copy p {
    width: min(820px, 100%);
    margin: 0 auto;
    color: #fff;
    font-size: 18px;
}

.legacy-section,
.section,
.split-section,
.contact-section,
.content-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.split-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
    padding: 0 0 120px;
}

#about-us img {
    display: block;
    width: 100%;
}

#about-us .eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 33px;
}

#about-us p {
    width: min(510px, 100%);
    margin: 0 0 10px;
    color: #fff;
    font-size: 20px;
}

.text-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.section {
    padding: 0 0 110px;
}

.section-heading {
    margin-bottom: 74px;
    text-align: center;
}

.section-heading h2,
.youtube-section h2 {
    color: var(--gold);
    font-size: 27px;
    text-transform: uppercase;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top:5em;
}

.technology-card {
    position: relative;
    min-height: 315px;
    padding: 5em 22px 30px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, #332720, #1c1512);
    text-align: left;
}

.technology-icon {
    position: absolute;
    top: -58px;
    left: 50%;
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: linear-gradient(145deg, #5f4228, #211713 68%);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: var(--gold);
    font-size: 58px;
    transform: translateX(-50%);
}

.technology-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.technology-card h2,
.technology-card h3 {
    margin-bottom: 9px;
    color: var(--gold);
    font-size: 23px;
    text-align: left;
}

.technology-card p {
    color: var(--muted);
    font-size: 18px;
}

.technology-card ul {
    min-height: 94px;
    margin: 11px 0 0;
    padding-left: 16px;
}

.technology-card li {
    margin-bottom: 5px;
    color: #fff;
    font-size: 17px;
    line-height: 1.32;
}

.tech-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 8px;
}

.tech-links a {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.button,
.technology-card > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 31px;
    padding: 8px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.button i,
.technology-card > a i {
    font-size: 0.95em;
}

.technology-card > a {
    margin-top: 13px;
}

.youtube-section {
    padding: 0 0 110px;
    text-align: center;
}

.playlist-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 31px 0 30px;
}

.playlist-btn {
    min-width: 310px;
}

.playlist-btn.active {
    background: var(--gold);
    color: #fff;
}

.youtube-status {
    width: min(760px, 100%);
    margin: 20px auto;
    color: #fff;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
    width: min(1020px, 100%);
    margin: 0 auto;
}

.video-card {
    background: transparent;
    text-align: center;
}

.video-card a {
    text-decoration: none;
}

.video-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-card h3 {
    margin-top: 7px;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.yt-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.86);
}

.yt-modal[hidden] {
    display: none;
}

.yt-modal > div {
    position: relative;
    width: min(860px, 100%);
}

#yt-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #17120f;
    font-weight: 900;
    cursor: pointer;
}

.we-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 52px;
    align-items: center;
    padding: 0 0 120px;
}

.we-photo img {
    display: block;
    width: 100%;
    transform: rotate(-4deg);
}

.we-copy {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 30px;
    align-items: start;
}

.we-copy strong {
    color: #fff;
    font-family: GilroyExtraBold, Arial, sans-serif;
    font-size: 68px;
    line-height: 0.86;
}

.we-copy ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.we-copy li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 20px;
}

.we-copy p {
    grid-column: 1 / -1;
    color: #fff;
    font-size: 18px;
}

.consult-copy {
    padding: 0 0 80px;
    text-align: center;
}

.consult-copy p {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
}

.consult-copy h2 {
    width: min(1050px, 100%);
    margin: 0 auto 20px;
    color: #fff;
    font-size: 27px;
}

.consult-copy h3 {
    color: #fff;
    font-size: 24px;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 55px;
    align-items: center;
    padding: 0 0 120px;
}

.dialog-box {
    position: relative;
}

.dialog-box img {
    display: block;
    width: 100%;
}

.dialog-box > div {
    position: absolute;
    top: 38%;
    left: 12%;
    width: 77%;
    transform: translateY(-50%);
}

.dialog-box h2 {
    color: #fff;
    font-size: 51px;
    line-height: 0.94;
}

.dialog-box p {
    margin: 8px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.contact-form {
    display: grid;
    gap: 8px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 25px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111;
    padding: 5px 8px;
    font: inherit;
    font-size: 17px;
}

textarea {
    resize: vertical;
}

.robot-check,
.captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 170px;
    min-height: 42px;
    margin: 8px 0;
    padding: 7px;
    background: #f5f5f5;
    color: #222;
    font-size: 17px;
}

.robot-check input {
    width: 14px;
    min-height: 14px;
}

.contact-form .button {
    width: 116px;
    min-height: 28px;
    padding: 7px 20px;
}

.sense-intro {
    width: 100%;
    padding: 80px 20px 40px;
    text-align: center;
}

.sense-intro h2 {
    color: var(--gold);
    font-size: 33px;
    text-transform: uppercase;
}

.sense-panel {
    width: 100%;
    padding: 70px 20px 90px;
    background: #fff;
    color: #221b16;
    text-align: center;
}

.sense-panel > div {
    width: min(760px, 100%);
    margin: 0 auto;
}

.sense-panel h2 {
    color: #221b16;
    font-size: 36px;
}

.sense-panel h2:first-child {
    display: none;
}

.sense-panel p {
    width: min(590px, 100%);
    margin: 10px auto;
    color: #777;
    font-size: 17px;
}

.sense-panel span {
    display: inline-flex;
    margin: 14px 0;
    padding: 9px 30px;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

blockquote {
    width: min(560px, 100%);
    margin: 22px auto;
    padding: 0 0 0 18px;
    border-left: 3px solid var(--gold);
    color: #555;
    font-size: 21px;
    font-style: italic;
    line-height: 1.45;
    text-align: left;
}

.sense-panel article {
    width: min(470px, 100%);
    margin: 22px auto 0;
    padding: 22px 28px;
    border-radius: 8px;
    background: #2b2b2d;
    color: #fff;
}

.sense-panel article h3 {
    margin-bottom: 7px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 27px;
}

.sense-panel article p {
    color: #fff;
}

.sense-panel article strong {
    color: var(--gold);
    font-size: 18px;
}

.closing-line {
    width: 100%;
    padding: 64px 20px;
    text-align: center;
}

.closing-line h3 {
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 27px;
    font-weight: 900;
}

.page-hero {
    width: min(1180px, calc(100% - 40px));
    min-height: 360px;
    display: grid;
    align-content: end;
    margin: 0 auto;
    padding: 140px 0 56px;
    text-align: center;
}

.page-hero .eyebrow {
    color: var(--gold);
    font-size: 21px;
}

.content-section {
    padding: 0 0 90px;
}

.rich-content {
    width: min(860px, 100%);
    margin: 0 auto;
}

.technology-detail-hero img {
    width: 145px;
    height: 145px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.technology-detail-icon {
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 32px;
    background: linear-gradient(145deg, #5f4228, #211713 68%);
    color: var(--gold);
    font-size: 68px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.notice {
    position: fixed;
    z-index: 40;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, calc(100% - 32px));
    padding: 12px 16px;
    border-radius: 4px;
    background: #fff;
    color: #201712;
    text-align: center;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr 0.55fr;
    gap: 75px;
    padding: 58px max(24px, calc((100% - 1180px) / 2));
    background: #fff;
    color: #221b16;
}

.site-footer p,
.site-footer a,
.site-footer span {
    color: #4a4038;
    font-size: 17px;
}

.site-footer h2 {
    margin-bottom: 6px;
    color: #221b16;
    font-size: 23px;
}

.footer-logo {
    width: 172px;
    margin-bottom: 10px;
}

.footer-contact {
    display: grid;
    align-content: start;
    gap: 11px;
}

.footer-contact a,
.footer-contact span,
.footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i,
.footer-nav i {
    width: 18px;
    color: var(--gold);
    text-align: center;
}

.footer-nav {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-nav a {
    color: #4a4038;
    font-size: 17px;
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}


/* ================================================================
   Motion & interaction system
   Added per the "Meta Aivi Motion System" UX/UI plan.
   Every rule below is additive - no existing selector's original
   declarations are removed, only extended.
   ================================================================ */

/* --- Scroll reveal utility (progressive enhancement: no-JS = fully visible) --- */
[data-reveal] {
    opacity: 1;
    transform: none;
}

html.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

html.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.technology-grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.technology-grid > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.technology-grid > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.technology-grid > [data-reveal]:nth-child(4) { transition-delay: 240ms; }
.technology-grid > [data-reveal]:nth-child(5) { transition-delay: 320ms; }
.technology-grid > [data-reveal]:nth-child(6) { transition-delay: 400ms; }

.video-grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.video-grid [data-reveal]:nth-child(2) { transition-delay: 70ms; }
.video-grid [data-reveal]:nth-child(3) { transition-delay: 140ms; }
.video-grid [data-reveal]:nth-child(4) { transition-delay: 210ms; }
.video-grid [data-reveal]:nth-child(5) { transition-delay: 280ms; }
.video-grid [data-reveal]:nth-child(6) { transition-delay: 350ms; }

.we-copy li[data-reveal]:nth-child(1) { transition-delay: 0ms; }
.we-copy li[data-reveal]:nth-child(2) { transition-delay: 90ms; }
.we-copy li[data-reveal]:nth-child(3) { transition-delay: 180ms; }

.consult-copy > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.consult-copy > [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.consult-copy > [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.consult-copy > [data-reveal]:nth-child(4) { transition-delay: 270ms; }
.consult-copy > [data-reveal]:nth-child(5) { transition-delay: 360ms; }

#about-us > div:last-child[data-reveal] { transition-delay: 150ms; }

/* --- Hero entrance: pure CSS, runs automatically on load, no JS dependency --- */
.hero-content .eyebrow {
    animation: heroRiseFade .7s var(--ease) both;
}

.hero-content h1 span {
    animation: heroFade .7s var(--ease) both;
}

.hero-content h1 span:nth-child(1) { animation-delay: .10s; }
.hero-content h1 span:nth-child(2) { animation-delay: .18s; }
.hero-content h1 span:nth-child(3) { animation-delay: .26s; }
.hero-content h1 span:nth-child(4) { animation-delay: .34s; }
.hero-content h1 span:nth-child(5) { animation-delay: .42s; }

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

@keyframes heroFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero video {
    animation: heroDrift 24s ease-in-out infinite alternate;
}

@keyframes heroDrift {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 1;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    color: var(--gold-light);
    text-decoration: none;
    animation: scrollBounce 2.2s var(--ease) infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* --- Buttons --- */
.button,
.technology-card > a {
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.button::before,
.technology-card > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .55) 35%, transparent 50%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}

.button:hover,
.technology-card > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -10px var(--shadow-gold);
}

.button:hover::before,
.technology-card > a:hover::before {
    transform: translateX(120%);
}

.playlist-btn {
    transition: background .3s var(--ease), color .3s var(--ease);
}

/* --- Nav + text links: underline sweep instead of a flat color swap --- */
.site-nav a,
.footer-nav a,
.text-link,
.back-link {
    position: relative;
    display: inline-block;
    transition: color .3s var(--ease);
}

.site-nav a::after,
.footer-nav a::after,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.site-nav a:hover::after,
.footer-nav a:hover::after,
.text-link:hover::after {
    transform: scaleX(1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.back-link:hover {
    color: var(--gold-pale);
}

.back-link i {
    transition: transform .3s var(--ease);
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* --- Technology cards --- */
.technology-card {
    transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.technology-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-gold);
    box-shadow: 0 24px 44px -18px var(--shadow-gold);
}

.technology-icon {
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.technology-card:hover .technology-icon {
    transform: translateX(-50%) scale(1.08) rotate(-3deg);
    box-shadow: 0 12px 24px var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* --- Video cards: zoom + play glyph --- */
.video-card {
    overflow: hidden;
}

.video-card a {
    position: relative;
    display: block;
    overflow: hidden;
}

.video-card img {
    transition: transform .6s var(--ease);
}

.video-card a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 17, 14, .05), rgba(23, 17, 14, .6));
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.video-card a::after {
    content: "\25B6";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 15px;
    line-height: 1;
    transform: translate(-50%, -50%) scale(.8);
    opacity: 0;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.video-card a:hover::before,
.video-card a:hover::after {
    opacity: 1;
}

.video-card a:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.video-card a:hover img {
    transform: scale(1.06);
}

/* --- WhatsApp float: breathing pulse ring, delayed so it doesn't compete with the hero --- */
.whatsapp-float {
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .55);
    animation: waPulse 2.6s var(--ease) infinite;
    animation-delay: 1.5s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

@keyframes waPulse {
    0% { transform: scale(.82); opacity: .9; }
    80% { transform: scale(1.55); opacity: 0; }
    100% { opacity: 0; }
}

/* --- SenseSystem panel + footer: warm cream instead of stark white, gold-bridged seam --- */
.sense-panel {
    position: relative;
    background: var(--cream);
}

.sense-panel::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, var(--ink) 0%, var(--cream) 100%);
    pointer-events: none;
}

.sense-panel article {
    background: linear-gradient(180deg, var(--ink-lift), var(--ink-deep));
    border: 1px solid var(--line-gold);
    box-shadow: 0 20px 40px -20px rgba(33, 25, 20, .35);
}

.site-footer {
    background: var(--cream);
}

/* --- Contact form: gold focus glow instead of the browser default --- */
input,
textarea,
select {
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--shadow-gold);
    background: #fffdf8;
}

/* --- Video modal close button --- */
#yt-close {
    transition: transform .3s var(--ease), background .3s var(--ease);
}

#yt-close:hover {
    transform: rotate(90deg);
    background: var(--gold-pale);
}

@media (max-width: 980px) {
    .site-header {
        width: calc(100% - 28px);
        justify-content: center;
        padding: 28px 0 12px;
        z-index: 46;
    }

    .brand img {
        width: 275px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 37px;
        left: 0;
        width: 36px;
        height: 36px;
        border: 0;
        background: transparent;
        color: var(--gold);
        padding: 0;
        font-size: 28px;
    }

    .site-nav {
        display: grid;
        align-content: start;
        gap: 18px;
        position: fixed;
        z-index: 45;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 84vw);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 104px 30px 32px;
        border: 0;
        border-radius: 0;
        background: rgba(33, 25, 20, .7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 24px 0 60px rgba(0, 0, 0, .4);
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: auto;
        transition: transform .4s var(--ease), visibility 0s linear .4s;
    }

    .site-nav.is-open {
        position: fixed;
        left: 0;
        transform: translateX(0);
        visibility: visible;
        transition: transform .4s var(--ease);
    }

    body:has(.site-nav.is-open) {
        overflow: hidden;
    }

    .split-section,
    .we-section,
    .contact-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .technology-grid,
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        padding: 42px 24px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 18px;
    }

    .site-header {
        width: calc(100% - 28px);
        padding-top: 29px;
    }

    .brand img {
        width: min(245px, calc(100vw - 96px));
    }

    h1 {
        width: min(330px, calc(100vw - 32px));
        line-height: 0.96;
        white-space: normal;
    }

    .eyebrow {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.1;
    }

    .hero {
        min-height: 365px;
        align-items: start;
        padding: 118px 16px 42px;
    }

    .hero-content {
        width: min(330px, calc(100vw - 32px));
        margin-top: 0;
    }

    .hero-content > * {
        min-width: 0;
        max-width: 100%;
    }

    .intro-copy,
    .legacy-section,
    .section,
    .split-section,
    .contact-section,
    .content-section {
        width: min(100%, calc(100% - 40px));
    }

    .intro-copy {
        padding: 48px 0 56px;
    }

    .intro-copy h2 {
        width: min(335px, 100%);
        margin-right: auto;
        margin-left: auto;
        font-size: 23px;
        line-height: 1.05;
    }

    .intro-copy p {
        width: min(315px, 100%);
        font-size: 15px;
        line-height: 1.55;
    }

    .split-section {
        gap: 34px;
        padding-bottom: 64px;
        text-align: center;
    }

    #about-us > div:last-child {
        order: -1;
    }

    #about-us .eyebrow {
        width: min(315px, 100%);
        margin-right: auto;
        margin-left: auto;
        font-size: 23px;
        line-height: 1.05;
    }

    #about-us p {
        width: min(285px, 100%);
        margin-right: auto;
        margin-left: auto;
        font-size: 15px;
        line-height: 1.5;
    }

    .mobile-breaks span {
        display: block;
    }

    .section {
        padding-bottom: 64px;
    }

    .section-heading {
        margin-bottom: 76px;
    }

    .section-heading h2,
    .youtube-section h2 {
        font-size: 24px;
        line-height: 1.08;
    }

    .technology-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .technology-grid {
        gap: 6em;
    }

    .technology-card {
        min-height: 316px;
        padding: 6em 26px 38px;
        text-align: center;
    }

    .technology-icon {
        top: -78px;
        width: 160px;
        height: 160px;
        border-radius: 34px;
        font-size: 70px;
    }

    .technology-card h2,
    .technology-card h3 {
        font-size: 21px;
        line-height: 1.08;
        text-align: center;
    }

    .technology-card ul {
        min-height: 0;
        margin-top: 10px;
        padding-left: 18px;
        text-align: left;
    }

    .technology-card li {
        font-size: 16px;
        line-height: 1.4;
    }

    .technology-card > a {
        min-width: 138px;
        min-height: 46px;
        margin-top: 25px;
        font-size: 16px;
    }

    .youtube-section {
        padding-bottom: 64px;
    }

    .playlist-filters {
        margin: 38px 0 25px;
    }

    .playlist-btn {
        min-width: min(290px, 100%);
        min-height: 48px;
        font-size: 15px;
    }

    .video-grid {
        gap: 26px;
        width: 100%;
    }

    .video-card h3 {
        margin-top: 7px;
        font-size: 14px;
        font-weight: 700;
    }

    .we-section {
        gap: 20px;
        padding-bottom: 64px;
    }

    .we-photo img {
        border-width: 8px;
    }

    .we-copy {
        grid-template-columns: auto 1fr;
        gap: 6px 10px;
    }

    .we-copy strong {
        font-size: 56px;
    }

    .we-copy li {
        padding: 4px 0;
        font-size: 11px;
    }

    .we-copy p {
        font-size: 12px;
        line-height: 1.55;
    }

    .consult-copy {
        padding-bottom: 48px;
    }

    .consult-copy p {
        font-size: 10px;
    }

    .consult-copy h2 {
        margin-bottom: 12px;
        font-size: 15px;
        line-height: 1.08;
    }

    .consult-copy h3 {
        font-size: 10px;
        line-height: 1.2;
    }

    .contact-section {
        gap: 16px;
        padding-bottom: 64px;
    }

    .dialog-box h2 {
        font-size: 22px;
    }

    .dialog-box p {
        font-size: 8px;
    }

    .contact-form {
        gap: 7px;
    }

    input,
    textarea,
    select {
        min-height: 30px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .robot-check,
    .captcha-box {
        width: 178px;
        min-height: 46px;
        font-size: 11px;
    }

    .contact-form .button {
        width: 80px;
        min-height: 28px;
        padding: 7px 16px;
        font-size: 11px;
    }

    .sense-intro {
        padding: 64px 20px 32px;
    }

    .sense-panel::before {
        top: -32px;
        height: 32px;
    }

    .sense-intro h2 {
        font-size: 17px;
        line-height: 1.04;
    }

    .sense-panel {
        padding: 48px 20px 48px;
    }

    .sense-panel h2 {
        font-size: 24px;
    }

    .sense-panel p {
        font-size: 10px;
        line-height: 1.55;
    }

    .sense-panel span {
        margin: 12px 0;
        padding: 8px 20px;
        font-size: 10px;
    }

    blockquote {
        font-size: 11px;
    }

    .sense-panel article {
        padding: 24px 24px;
    }

    .sense-panel article h3 {
        font-size: 17px;
    }

    .sense-panel article strong {
        font-size: 10px;
    }

    .closing-line {
        padding: 40px 20px;
    }

    .closing-line h3 {
        font-size: 14px;
        line-height: 1.18;
    }

    .site-footer {
        gap: 24px;
        padding: 38px 28px 72px;
    }

    .footer-logo {
        width: 145px;
    }

    .site-footer h2 {
        font-size: 13px;
    }

    .site-footer p,
    .site-footer a,
    .site-footer span,
    .footer-nav a {
        font-size: 10px;
        line-height: 1.45;
    }

    .whatsapp-float {
        right: 18px;
        bottom: 34px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}
