/* =====================================================================
   Step Forward Consulting Co. — Frontend
   Aesthetic: refined luxury editorial · charcoal + antique gold
   Display: Cormorant Garamond  ·  Body: Manrope  ·  Arabic: IBM Plex Sans Arabic
   ===================================================================== */

:root {
    --ink:        #1A1818;
    --ink-soft:   #262221;
    --ink-2:      #322d2b;
    --gold:       #D6BA59;
    --gold-deep:  #B2912F;
    --gold-light: #E8D49A;
    --paper:      #FAF7F1;
    --paper-2:    #F1EBDF;
    --paper-3:    #E9E1D2;
    --muted:      #6E6A64;
    --muted-soft: #908A82;
    --line:       rgba(26, 24, 24, 0.12);
    --line-soft:  rgba(26, 24, 24, 0.07);
    --line-gold:  rgba(214, 186, 89, 0.45);

    --shell: 1240px;
    --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);

    --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --f-body:    'Manrope', system-ui, sans-serif;
    --f-ar:      'IBM Plex Sans Arabic', 'Manrope', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 0.005em;
    -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; border: none; background: none; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Layout primitives ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.display {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(2.9rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
}
.display em { font-style: italic; color: var(--gold-deep); font-weight: 500; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.lead {
    font-size: clamp(1.08rem, 1.5vw, 1.32rem);
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
    max-width: 60ch;
}
p { max-width: 68ch; }

.eyebrow {
    font-family: var(--f-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.85em;
}
.eyebrow::before {
    content: "";
    width: 34px; height: 1px;
    background: var(--gold-deep);
    display: inline-block;
}
.eyebrow.is-center::after {
    content: "";
    width: 34px; height: 1px;
    background: var(--gold-deep);
    display: inline-block;
}
.eyebrow.is-light { color: var(--gold); }
.eyebrow.is-light::before, .eyebrow.is-light::after { background: var(--gold); }

.gold-text { color: var(--gold-deep); }
.serif { font-family: var(--f-display); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.65em;
    font-family: var(--f-body);
    font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.13em; text-transform: uppercase;
    padding: 1.02em 1.9em;
    border: 1px solid transparent;
    transition: all 0.45s var(--ease);
    position: relative;
}
.btn .arr { transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); color: var(--gold); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-ghost-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(250, 247, 241, 0.86);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 86px; }

.brand { display: flex; align-items: center; gap: 0.95rem; color: #fff; transition: color 0.4s var(--ease); }
.brand-mark { color: var(--gold); display: inline-flex; line-height: 0; transition: color 0.4s var(--ease); }
.brand-mark.gold { color: var(--gold); }
.brand-logo { height: 50px; width: auto; display: block; }
.footer-logo { height: 52px; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--f-display); font-weight: 600; font-size: 1.32rem;
    letter-spacing: 0.01em; display: flex; align-items: baseline; gap: 0.45em;
}
.brand-sub { font-size: 0.78rem; font-family: var(--f-body); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.62); transition: color 0.4s var(--ease); }
.brand-ar { font-family: var(--f-ar); font-size: 0.74rem; color: var(--gold); margin-top: 3px; letter-spacing: 0; transition: color 0.4s var(--ease); }

.site-nav { display: flex; align-items: center; gap: 2.1rem; margin-left: auto; }
.site-nav a {
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.86); position: relative; padding: 4px 0; transition: color 0.3s var(--ease);
}
.site-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
    background: var(--gold); transition: width 0.4s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--gold); }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.header-cta { padding: 0.78em 1.4em; font-size: 0.74rem; border-color: rgba(255,255,255,0.3); color: #fff; }
.header-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Header switches to dark text once scrolled onto the light background */
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .brand-mark { color: var(--gold-deep); }
.site-header.scrolled .brand-sub { color: var(--muted); }
.site-header.scrolled .brand-ar { color: var(--gold-deep); }
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-header.scrolled .site-nav a::after { background: var(--gold-deep); }
.site-header.scrolled .site-nav a:hover, .site-header.scrolled .site-nav a.is-active { color: var(--gold-deep); }
.site-header.scrolled .header-cta { border-color: var(--line); color: var(--ink); }
.site-header.scrolled .header-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: all 0.35s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none; flex-direction: column;
    background: var(--ink); padding: 1.5rem 32px 2.2rem;
    max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease);
}
.mobile-nav.open { max-height: 480px; }
.mobile-nav a { color: rgba(255,255,255,0.82); font-size: 1.05rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 500; }
.mobile-nav a.is-active { color: var(--gold); }
.mobile-cta { color: var(--gold) !important; border-bottom: none !important; margin-top: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem !important; }

/* =====================================================================
   HERO (home)
   ===================================================================== */
.hero {
    position: relative; background: var(--ink); color: #fff; overflow: hidden;
    padding-top: 200px; padding-bottom: clamp(90px, 12vw, 150px);
    min-height: 92vh; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; opacity: 0.55; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(100deg, var(--ink) 26%, rgba(26,24,24,0.62) 58%, rgba(26,24,24,0.28) 100%),
        linear-gradient(0deg, var(--ink) 2%, transparent 40%);
}
.hero .shell { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 880px; }
.hero h1 { color: #fff; margin: 1.5rem 0 1.8rem; }
.hero h1 .thin { font-weight: 400; font-style: italic; color: var(--gold-light); }
.hero-lead { color: rgba(255,255,255,0.74); max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero-stats {
    display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4.5rem);
    margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.4rem;
    border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stat .num { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold); line-height: 1; }
.hero-stat .lbl { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.6rem; }

.scroll-cue {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
    font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.5);
    display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* =====================================================================
   PAGE INTRO (inner pages)
   ===================================================================== */
.page-intro {
    background: var(--ink); color: #fff; position: relative; overflow: hidden;
    padding: clamp(150px, 18vw, 220px) 0 clamp(60px, 8vw, 96px);
}
.page-intro::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(214,186,89,0.16) 1px, transparent 0);
    background-size: 26px 26px; opacity: 0.5; mask-image: linear-gradient(120deg, #000, transparent 70%);
}
.page-intro::after {
    content: ""; position: absolute; right: -8%; top: -40%; width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(214,186,89,0.16), transparent 62%); pointer-events: none;
}
.page-intro .shell { position: relative; z-index: 2; }
.page-intro h1 { color: #fff; font-size: clamp(2.7rem, 6vw, 5rem); margin: 1.3rem 0 1.3rem; max-width: 16ch; }
.page-intro h1 em { font-style: italic; color: var(--gold-light); }
.page-intro .lead { color: rgba(255,255,255,0.72); }
.crumbs { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }
.sec-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 1.3rem 0 1.2rem; }
.sec-head .lead { margin: 0; }
.sec-head.is-center .lead { margin: 0 auto; }

/* =====================================================================
   HOME — intro split
   ===================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split .copy p + p { margin-top: 1.2rem; }
.split .copy .lead { margin-bottom: 1.4rem; }

.figure-frame { position: relative; }
.figure-frame::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border: 1px solid var(--line-gold); z-index: 0; pointer-events: none;
}
.figure-frame img, .figure-frame .ph { position: relative; z-index: 1; width: 100%; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.6rem; }
.mini-grid div { background: var(--paper); padding: 1.6rem; }
.mini-grid .k { font-family: var(--f-display); font-size: 2rem; color: var(--gold-deep); line-height: 1; }
.mini-grid .v { font-size: 0.82rem; color: var(--muted); margin-top: 0.45rem; letter-spacing: 0.02em; }

/* ---------- Services preview / list ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card {
    background: var(--paper); padding: clamp(1.8rem, 3vw, 2.6rem); position: relative;
    transition: background 0.45s var(--ease), color 0.45s var(--ease); overflow: hidden;
    min-height: 230px; display: flex; flex-direction: column;
}
.svc-card .idx { font-family: var(--f-display); font-size: 0.95rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.svc-card h3 { font-size: 1.5rem; margin: 1.4rem 0 0.7rem; transition: color 0.45s var(--ease); }
.svc-card p { font-size: 0.92rem; color: var(--muted); transition: color 0.45s var(--ease); margin-top: auto; }
.svc-card .glyph { position: absolute; right: 1.4rem; top: 1.4rem; color: var(--gold-deep); opacity: 0.85; transition: color 0.45s var(--ease); }
.svc-card::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--gold); transition: width 0.5s var(--ease);
}
.svc-card:hover { background: var(--ink); color: #fff; }
.svc-card:hover h3 { color: #fff; }
.svc-card:hover p { color: rgba(255,255,255,0.62); }
.svc-card:hover .glyph { color: var(--gold); }
.svc-card:hover::after { width: 100%; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.value-chip {
    background: var(--ink); color: #fff; padding: 1.8rem 1.6rem; position: relative;
    display: flex; flex-direction: column; gap: 0.5rem; transition: transform 0.4s var(--ease);
    border: 1px solid var(--ink);
}
.value-chip .vn { font-family: var(--f-display); font-size: 1.35rem; color: var(--gold); }
.value-chip .vd { font-size: 0.86rem; color: rgba(255,255,255,0.62); }
.value-chip:hover { transform: translateY(-6px); }

/* ---------- Vision / Mission rows ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.vm-card { border-top: 2px solid var(--gold); padding-top: 1.8rem; }
.vm-card .ico { color: var(--gold-deep); margin-bottom: 1.1rem; }
.vm-card h3 { font-size: 1.75rem; margin-bottom: 0.9rem; }
.vm-card p { color: var(--muted); }

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 120%, rgba(214,186,89,0.2), transparent 55%);
}
.cta-band .shell { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18ch; }
.cta-band h2 em { font-style: italic; color: var(--gold-light); }

/* ---------- Approach / numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--paper); padding: 2.2rem 1.7rem; }
.step .sn { font-family: var(--f-display); font-size: 2.6rem; color: var(--gold-deep); line-height: 1; }
.step h4 { font-size: 1.3rem; margin: 1rem 0 0.6rem; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* =====================================================================
   SERVICES PAGE — alternating list
   ===================================================================== */
.svc-row { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: clamp(2.4rem, 4vw, 3.4rem) 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num { font-family: var(--f-display); font-size: 2.6rem; color: var(--gold-deep); line-height: 0.9; }
.svc-row h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.svc-row .tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 0.4em 0.9em; }
.svc-row p { color: var(--muted); }
.svc-row:hover .num { color: var(--gold); }

/* =====================================================================
   CLIENTS PAGE
   ===================================================================== */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-cell {
    background: var(--paper); aspect-ratio: 16 / 10; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 1.5rem; gap: 0.4rem;
    transition: background 0.4s var(--ease);
}
.logo-cell:hover { background: var(--paper-2); }
.logo-cell .cn { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.logo-cell .cm { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft); }
.logo-cell .car { font-family: var(--f-ar); font-size: 0.8rem; color: var(--gold-deep); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem,4vw,3rem); text-align: center; }
.stat-strip .num { font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--gold-deep); line-height: 1; }
.stat-strip .lbl { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.6rem; }

/* =====================================================================
   TEAM PAGE
   ===================================================================== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.member { }
.member-photo { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4/3.4; }
.member-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line-gold); z-index: -1; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(0.18) contrast(1.02); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.member:hover .member-photo img { filter: grayscale(0); transform: scale(1.03); }
.member-body { padding-top: 1.8rem; }
.member-body .role { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.member-body h3 { font-size: 2rem; margin: 0.5rem 0 1rem; }
.member-body p { color: var(--muted); font-size: 0.96rem; }
.member-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.member-meta span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 0.4em 0.85em; }

.exp-list { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.exp-list li { list-style: none; position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 0.94rem; }
.exp-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-card { background: var(--paper); padding: 1.9rem; display: flex; gap: 1.2rem; align-items: flex-start; transition: background 0.4s var(--ease); }
.contact-card:hover { background: var(--paper-2); }
.contact-card .ico { color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.contact-card .ck { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-card .cv { font-size: 1.12rem; font-family: var(--f-display); color: var(--ink); margin-top: 0.3rem; }
.contact-card .cv a:hover { color: var(--gold-deep); }

.form { display: grid; gap: 1.3rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
    font-family: var(--f-body); font-size: 1rem; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); padding: 0.95em 1em;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-deep); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.84rem; color: var(--muted-soft); }
.form-success { background: var(--ink); color: #fff; padding: 1.1em 1.3em; font-size: 0.92rem; display: none; }
.form-success.show { display: block; }
.form-success b { color: var(--gold); }

/* =====================================================================
   Reveal animation
   ===================================================================== */
/* Only hide reveal elements when JS is active (so no-JS users still see content) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }
.reveal[data-d="5"] { transition-delay: 0.5s; }

/* hero load-in (no JS dependency) */
.hero .reveal-load { opacity: 0; transform: translateY(24px); animation: heroIn 1s var(--ease) forwards; }
.hero .reveal-load.d1 { animation-delay: 0.15s; }
.hero .reveal-load.d2 { animation-delay: 0.3s; }
.hero .reveal-load.d3 { animation-delay: 0.45s; }
.hero .reveal-load.d4 { animation-delay: 0.6s; }
.hero .reveal-load.d5 { animation-delay: 0.78s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: clamp(4rem, 7vw, 6rem) 0 2.4rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand-mark { margin-bottom: 1.4rem; }
.footer-tagline { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.4; color: rgba(255,255,255,0.9); max-width: 34ch; }
.footer-ar { font-family: var(--f-ar); color: var(--gold); margin-top: 1rem; font-size: 0.95rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col h4 { font-family: var(--f-body); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; font-weight: 600; }
.footer-col a, .footer-meta { font-size: 0.95rem; color: rgba(255,255,255,0.66); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.footer-disc { color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
    .svc-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
    .site-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-nav { display: flex; }
    .site-header.scrolled { background: rgba(250, 247, 241, 0.92); }
    .split, .vm-grid, .team-grid, .contact-grid, .cta-band .shell { grid-template-columns: 1fr; }
    .split .figure-frame { order: -1; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-strip, .steps { grid-template-columns: repeat(2, 1fr); }
    .svc-row { grid-template-columns: 1fr; gap: 1rem; }
    .svc-row .num { font-size: 2rem; }
    .form .row { grid-template-columns: 1fr; }
    .cta-band .shell { text-align: left; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .shell { padding: 0 22px; }
    .brand-sub { display: none; }
    .svc-grid, .logo-grid, .values-grid, .stat-strip, .steps, .mini-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 150px; min-height: auto; }
    .hero-stats { gap: 1.8rem; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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