/* ============================================================
   AMACHAL — Create Human × Brand Connection
   On-brand one-page site. Black / Yellow / White.
   Cairo (Co Headline proxy) · Nunito Sans (Avenir proxy)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
    /* brand constants */
    --ama-black: #070103;
    --ama-yellow: #ffdd00;
    --ama-white: #ffffff;

    --font-display: "Cairo", "Co Headline", system-ui, sans-serif;
    --font-body: "Nunito Sans", "Avenir", system-ui, -apple-system, sans-serif;

    --accent: #ffdd00;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-snap: cubic-bezier(0.34, 1.36, 0.64, 1);
    --maxw: 1360px;
    --pad: clamp(22px, 6vw, 104px);

    /* THEME — light default */
    --bg: #ffffff;
    --fg: #0a0506;
    --muted: rgba(10, 5, 6, 0.58);
    --faint: rgba(10, 5, 6, 0.4);
    --surface: #f4f3f1;
    --surface-2: #eceae6;
    --line: rgba(10, 5, 6, 0.13);
    --line-strong: rgba(10, 5, 6, 0.26);
    --nav-bg: rgba(255, 255, 255, 0.78);
    --on-accent: #070103;
    --invert: 0;
}

body.dark {
    --bg: #070103;
    --fg: #f0ede8;
    --muted: rgba(240, 237, 232, 0.6);
    --faint: rgba(240, 237, 232, 0.38);
    --surface: #16100f;
    --surface-2: #1f1a19;
    --line: rgba(240, 237, 232, 0.13);
    --line-strong: rgba(240, 237, 232, 0.28);
    --nav-bg: rgba(7, 1, 3, 0.74);
    --on-accent: #070103;
    --invert: 1;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--accent);
    color: var(--ama-black);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.02em;
}

/* ---------- UTILITIES ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
    display: inline-block;
}

.x {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 900;
    font-style: normal;
    display: inline-block;
}

/* ---------- NAV ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--pad);
    transition:
        background 0.4s var(--ease),
        padding 0.4s var(--ease),
        border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 240%;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(7, 1, 3, 0.62) 0%,
        rgba(7, 1, 3, 0.34) 45%,
        rgba(7, 1, 3, 0) 100%
    );
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s var(--ease);
}
.nav.scrolled::before {
    opacity: 0;
}

.nav.scrolled {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    padding-top: 14px;
    padding-bottom: 14px;
}

.nav .brand {
    display: flex;
    align-items: center;
}
.nav .brand img {
    height: 86px;
    width: auto;
    transition:
        height 0.35s var(--ease),
        opacity 0.3s var(--ease);
}
.nav.scrolled .brand img {
    height: 56px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 42px);
}
.nav-links a {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nav-fg, #fff);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.32s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
}

/* nav text: white over hero, theme color once scrolled */
.nav {
    --nav-fg: #fff;
}
.nav.scrolled {
    --nav-fg: var(--fg);
}

/* dark/light toggle */
.toggle {
    --tw: 54px;
    position: relative;
    width: var(--tw);
    height: 28px;
    border-radius: 999px;
    border: 1.5px solid var(--nav-fg);
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.3s var(--ease);
    flex: none;
    display: none;
}
.toggle .knob {
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nav-fg);
    transition:
        left 0.32s var(--ease-snap),
        background 0.3s var(--ease);
    display: grid;
    place-items: center;
}
.toggle .knob svg {
    width: 12px;
    height: 12px;
    display: block;
}
body.dark .toggle .knob {
    left: calc(var(--tw) - 23px);
    background: var(--accent);
}

/* hamburger */
.burger {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    background: none;
    border: 0;
    padding: 0;
}
.burger span {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--nav-fg);
    transition: 0.3s var(--ease);
}
.burger span:nth-child(1) {
    top: 1px;
}
.burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.burger span:nth-child(3) {
    bottom: 1px;
}

/* ---------- HERO SLIDER ---------- */
.hero {
    position: relative;
    height: calc(100vh - var(--clients-h, 104px));
    min-height: 520px;
    background: var(--ama-black);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.85s ease-in-out,
        visibility 0.85s ease-in-out;
}
.slide.active {
    opacity: 1;
    visibility: visible;
}

/* image source — placée en <img class="ph-img"> dans le HTML */
.slide .ph-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(0) contrast(1.06) brightness(0.92);
    transform: scale(1.04);
    transition:
        transform 6.5s linear,
        filter 0.5s var(--ease);
}
body.show-color .slide .ph-img {
    filter: contrast(1.04) brightness(0.96);
}
.slide.active .ph-img {
    transform: scale(1.12);
}

/* overlay gradient (élément vide, pas d'image) */
.slide .ph {
    position: absolute;
    inset: 0;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 1, 3, 0.55) 0%,
        rgba(7, 1, 3, 0.28) 38%,
        rgba(7, 1, 3, 0.62) 100%
    );
}

.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pad) clamp(72px, 11vh, 128px);
    max-width: var(--maxw);
    margin: 0 auto;
    left: 0;
    right: 0;
}

.hero-meta {
    color: #fff;
    max-width: 980px;
}

.slide-eyebrow {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    display: none;
}
.slide-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.hero-title {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(30px, 3.5vw, 100px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0;
}

.hero-client {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-client b {
    color: #fff;
    font-weight: 800;
}

.hero-cta {
    margin-top: 34px;
}

/* slide entrance — transform only (opacity always 1) so content is never invisible */
.hero-meta .slide-eyebrow,
.hero-meta .hero-title,
.hero-meta .hero-client,
.hero-meta .hero-cta {
    transition: transform 0.85s var(--ease);
}
.hero-meta .hero-title {
    transition-delay: 0.06s;
}
.hero-meta .hero-client {
    transition-delay: 0.16s;
}
.hero-meta .hero-cta {
    transition-delay: 0.24s;
}

.hero-meta.pre .slide-eyebrow {
    transform: translateY(14px);
}
.hero-meta.pre .hero-title {
    transform: translateY(22px);
}
.hero-meta.pre .hero-client {
    transform: translateY(16px);
}
.hero-meta.pre .hero-cta {
    transform: translateY(16px);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1.6px solid transparent;
    transition:
        transform 0.14s var(--ease),
        box-shadow 0.3s var(--ease),
        background 0.3s var(--ease),
        color 0.3s var(--ease),
        border-color 0.3s var(--ease);
}
.btn .arrow {
    width: 17px;
    height: 17px;
    transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
    transform: translateX(5px);
}

.btn.primary {
    background: var(--accent);
    color: var(--on-accent);
}
.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 221, 0, 0.34);
}
.btn.primary:active {
    transform: translateY(0);
}

.btn.ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.btn.ghost-light:hover {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

.btn.solid {
    background: var(--fg);
    color: var(--bg);
}
.btn.solid:hover {
    background: var(--accent);
    color: var(--on-accent);
    transform: translateY(-2px);
}

/* ---------- HERO CONTROLS ---------- */
.hero-ui {
    position: absolute;
    z-index: 4;
    left: var(--pad);
    right: var(--pad);
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.hero-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}
.hero-dots button {
    width: 34px;
    height: 3px;
    border-radius: 2px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.32);
    transition:
        background 0.3s var(--ease),
        width 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.hero-dots button.on {
    background: rgba(255, 255, 255, 0.4);
    width: 54px;
}
.hero-dots button.on::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    animation: fill var(--autoplay, 5000ms) linear forwards;
}
@keyframes fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.hero-count {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    display: none;
}
.hero-count b {
    font-size: 22px;
}
.hero-count .sep {
    opacity: 0.5;
    margin: 0 6px;
}

.hero-arrows {
    display: flex;
    gap: 8px;
}
.hero-arrows button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    transition: 0.25s var(--ease);
}
.hero-arrows button:hover {
    background: #fff;
    color: var(--ama-black);
    border-color: #fff;
}
.hero-arrows svg {
    width: 18px;
    height: 18px;
}

.scroll-hint {
    position: absolute;
    z-index: 4;
    left: 50%;
    transform: translateX(-50%);
    bottom: 104px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-hint .l {
    width: 1px;
    height: 34px;
    background: linear-gradient(rgba(255, 255, 255, 0.5), transparent);
    animation: hint 2s var(--ease) infinite;
}
@keyframes hint {
    0%,
    100% {
        opacity: 0.25;
        transform: scaleY(0.6);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- CLIENTS (static logo wall) ---------- */
.clients {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.clients-band {
    max-width: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    padding: clamp(20px, 2.4vw, 30px) 0;
}
@media (max-width: 760px) {
    .clients-band {
        flex-wrap: wrap;
        padding: clamp(20px, 2.4vw, 30px) var(--pad);
        gap: clamp(16px, 5vw, 32px);
        justify-content: center;
    }
}
.clogo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.32s var(--ease);
}
.clogo:hover {
    transform: translateY(-2px);
}
.clogo img {
    height: clamp(26px, 3vw, 40px);
    width: auto;
    flex: none;
    filter: grayscale(1) brightness(0.55) contrast(1.05);
    opacity: 0.7;
    transition:
        filter 0.32s var(--ease),
        opacity 0.32s var(--ease);
}
.clogo:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- SECTION FRAME ---------- */
.section {
    padding: clamp(90px, 13vh, 160px) var(--pad);
    position: relative;
}
.inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

/* ---------- ABOUT ---------- */
.about {
    text-align: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.about .wave::before,
.about .wave::after {
    content: "";
    position: absolute;
    width: clamp(680px, 80vw, 1200px);
    height: clamp(680px, 80vw, 1200px);
    border-radius: 50%;
    background: var(--surface);
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}
.about .wave::before {
    left: -34vw;
    top: -30vw;
}
.about .wave::after {
    right: -34vw;
    bottom: -30vw;
}
.about .inner {
    position: relative;
    z-index: 1;
}

.about-eyebrow {
    justify-content: center;
    margin-bottom: 36px;
}

.monument {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(30px, 7.6vw, 104px);
    line-height: 0.96;
    letter-spacing: -0.03em;
    margin: 0 auto;
}
.monument .line {
    display: block;
    white-space: nowrap;
}
.monument .line > span {
    display: inline-block;
}
.monument .x {
    margin: 0 0.06em;
    display: inline-block;
}

.about-copy {
    max-width: 740px;
    margin: 54px auto 0;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.7;
    color: var(--muted);
}
.about-copy b {
    color: var(--fg);
    font-weight: 700;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 72px auto 0;
    max-width: 880px;
    border-top: 1px solid var(--line);
}
.stat {
    flex: 1 1 200px;
    padding: 34px 18px 8px;
    position: relative;
}
.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 34px;
    bottom: 18px;
    width: 1px;
    background: var(--line);
}
.stat .num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat .num em {
    font-style: normal;
    color: var(--accent);
}
.stat .cap {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- SERVICES ---------- */
.services {
    background: var(--surface);
}

.services-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 54px;
}
.services-head h2 {
    font-size: clamp(34px, 5vw, 72px);
    text-transform: uppercase;
}
.services-head p {
    max-width: 380px;
    color: var(--muted);
    margin: 0;
    font-size: 16px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 1.6vw, 22px);
}

.svc {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: clamp(280px, 40vh, 440px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(26px, 3vw, 44px);
    color: #fff;
    isolation: isolate;
}
/* image source service — placée en <img class="ph-img"> dans le HTML */
.svc .ph-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) contrast(1.05) brightness(0.8);
    transition:
        transform 0.65s var(--ease),
        filter 0.5s var(--ease);
}
body.show-color .svc .ph-img {
    filter: contrast(1.04) brightness(0.86);
}
.svc:hover .ph-img {
    transform: scale(1.06);
}

/* overlay gradient (élément vide) */
.svc .ph {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.svc::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(7, 1, 3, 0.12),
        rgba(7, 1, 3, 0.74)
    );
    transition: background 0.5s var(--ease);
}
.svc:hover::after {
    background: linear-gradient(
        180deg,
        rgba(7, 1, 3, 0.18),
        rgba(7, 1, 3, 0.82)
    );
}

.svc .idx {
    position: absolute;
    top: clamp(22px, 2.6vw, 40px);
    left: clamp(26px, 3vw, 44px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}
.svc .plus {
    position: absolute;
    top: clamp(22px, 2.6vw, 40px);
    right: clamp(26px, 3vw, 44px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: grid;
    place-items: center;
    transition: 0.3s var(--ease);
}
.svc:hover .plus {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}
.svc:hover .plus svg {
    stroke: var(--ama-black);
}
.svc .plus svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    transition: stroke 0.3s var(--ease);
}

.svc h3 {
    font-size: clamp(30px, 3.4vw, 52px);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.svc h3 .dot {
    color: var(--accent);
}

.svc p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
    max-width: 42ch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.5s var(--ease),
        opacity 0.4s var(--ease),
        margin 0.4s var(--ease);
}
.svc:hover p {
    max-height: 120px;
    opacity: 1;
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.contact-eyebrow {
    margin-bottom: 28px;
}
.contact h2 {
    font-size: clamp(38px, 5.6vw, 84px);
    text-transform: uppercase;
    margin-bottom: 36px;
}
.contact h2 .x {
    margin: 0 0.04em;
}

.cinfo dl {
    margin: 0;
    display: grid;
    gap: 22px;
}
.cinfo .lab {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.cinfo .val {
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 600;
}
.cinfo a.val {
    transition: color 0.25s var(--ease);
}
.cinfo a.val:hover {
    color: var(--accent);
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 38px;
}
.socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    display: grid;
    place-items: center;
    color: var(--fg);
    transition: 0.3s var(--ease);
}
.socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ama-black);
    transform: translateY(-3px);
}
.socials svg {
    width: 20px;
    height: 20px;
}

/* honeypot — masqué visuellement mais présent dans le DOM */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* form */
form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 28px;
}

.field {
    position: relative;
}
.field.full {
    grid-column: 1 / -1;
}

.field input,
.field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid var(--line-strong);
    padding: 18px 2px 12px;
    font-family: inherit;
    font-size: 17px;
    color: var(--fg);
    transition: border-color 0.3s var(--ease);
}
.field textarea {
    resize: none;
    min-height: 50px;
    line-height: 1.5;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.field label {
    position: absolute;
    left: 2px;
    top: 18px;
    font-size: 17px;
    color: var(--muted);
    pointer-events: none;
    transition: all 0.26s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: -6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg);
}

.field .bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1.5px;
    width: 0;
    background: var(--accent);
    transition: width 0.35s var(--ease);
}
.field input:focus ~ .bar,
.field textarea:focus ~ .bar {
    width: 100%;
}

.form-submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.form-msg {
    grid-column: 1 / -1;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.form-msg.show {
    opacity: 1;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--ama-black);
    color: #fff;
    padding: clamp(48px, 7vw, 80px) var(--pad);
}
.footer .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer .sig {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer .sig .col {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.footer .sig .l {
    font-size: 10px;
    letter-spacing: 0.18em;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.footer .sig .w {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(18px, 2vw, 26px);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.footer .sig .xx {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(34px, 4vw, 52px);
    color: var(--accent);
    line-height: 1;
}
.footer .copy {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.footer .copy .x {
    font-size: 13px;
}

/* ---------- REVEALS ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transform: translateY(26px);
        transition: transform 0.8s var(--ease);
    }
    .reveal.in {
        transform: none;
    }
    .reveal.d1 {
        transition-delay: 0.1s;
    }
    .reveal.d2 {
        transition-delay: 0.22s;
    }
    .reveal.d3 {
        transition-delay: 0.34s;
    }

    .monument .line > span {
        transform: translateY(24px);
        transition: transform 1s var(--ease);
    }
    .monument.in .line > span {
        transform: none;
    }
    .monument .line:nth-child(2) > span {
        transition-delay: 0.12s;
    }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 115;
    background: var(--ama-black);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s var(--ease),
        visibility 0.4s var(--ease);
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu a {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13vw;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    padding: 10px 0;
    opacity: 0.85;
    transition: 0.25s var(--ease);
}
.mobile-menu a:hover {
    color: var(--accent);
    opacity: 1;
}
.mobile-menu .close {
    position: absolute;
    top: 22px;
    right: var(--pad);
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    color: #fff;
}
.mobile-menu .close svg {
    width: 28px;
    height: 28px;
}

/* ---------- BREAKPOINTS ---------- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }
    .nav .toggle {
        display: none;
    }
    .burger {
        display: block;
    }
    .hero-arrows {
        display: none;
    }
    .scroll-hint {
        display: none;
    }
    .hero-inner {
        padding-bottom: 120px;
    }
    .svc p {
        max-height: 120px;
        opacity: 1;
    }
    .stat + .stat::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
    html {
        scroll-behavior: auto;
    }
}
