/* ============================================
   הר סלול נדל״ן — Modern RTL Stylesheet
   ============================================ */

:root {
    --navy-900: #0a0a0a;
    --navy-800: #141414;
    --navy-700: #1f1f1f;
    --navy-600: #2a2a2a;
    --blue-500: #c9a227;
    --blue-400: #d9b94a;
    --cyan-400: #e8c66a;
    --gold-400: #f2c14e;
    --ink: #0c0c0c;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --paper: #faf8f3;
    --white: #ffffff;
    --line: rgba(0, 0, 0, 0.10);

    --grad-brand: linear-gradient(120deg, #b8902f 0%, #e8c66a 55%, #d4af37 100%);
    --grad-dark: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 50px -20px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.45);

    --font: 'Heebo', 'Assistant', system-ui, -apple-system, sans-serif;
    --container: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--paper);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }

.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: right;
    z-index: 1000;
    transition: transform 0.1s linear;
}

/* ---------- Aurora background ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.blob-1 { width: 540px; height: 540px; background: #c9a227; top: -120px; right: -80px; animation: drift 22s var(--ease) infinite alternate; }
.blob-2 { width: 460px; height: 460px; background: #e8c66a; bottom: -120px; left: -60px; animation: drift 26s var(--ease) infinite alternate-reverse; }
.blob-3 { width: 380px; height: 380px; background: #d4af37; top: 40%; left: 45%; opacity: 0.28; animation: drift 30s var(--ease) infinite alternate; }

@keyframes drift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(60px, 50px) scale(1.18); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 900;
    padding: 1.1rem 0;
    transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
    padding: 0.55rem 0;
    background: rgba(246, 248, 252, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px -20px rgba(8, 20, 39, 0.5);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; transition: color 0.35s var(--ease); }
.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    background: rgba(255,255,255,0.96);
    padding: 5px 10px;
    border-radius: 12px;
    box-shadow: 0 8px 22px -10px rgba(8,20,39,0.55);
    transition: height 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled .brand-logo {
    height: 44px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    mix-blend-mode: multiply;
}
.brand-sub {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 8px rgba(8,20,39,0.35);
    transition: color 0.35s var(--ease);
}
.site-header.scrolled .brand-sub { color: var(--muted); text-shadow: none; }
.brand-mark { color: var(--cyan-400); display: grid; place-items: center; transition: color 0.35s var(--ease); }
.site-header.scrolled .brand { color: var(--navy-800); }
.site-header.scrolled .brand-mark { color: var(--blue-500); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
.brand-text small { font-size: 0.78rem; opacity: 0.85; font-weight: 600; }
.site-header.scrolled .brand-text small { color: var(--muted); opacity: 1; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0.3rem; }
.main-nav a {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.97rem;
    color: rgba(255,255,255,0.92);
    position: relative;
    transition: color 0.25s, background 0.25s;
    text-shadow: 0 1px 8px rgba(8,20,39,0.35);
}
.site-header.scrolled .main-nav a:not(.nav-cta) { color: var(--navy-700); text-shadow: none; }
.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    inset-inline: 0.9rem;
    bottom: 0.32rem;
    height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a:not(.nav-cta):hover { color: #fff; }
.site-header.scrolled .main-nav a:not(.nav-cta):hover,
.site-header.scrolled .main-nav a.active { color: var(--blue-500); }

.nav-cta {
    background: var(--grad-brand);
    color: #1a1a1a !important;
    text-shadow: none;
    box-shadow: 0 10px 24px -10px rgba(184, 144, 47, 0.7);
    margin-inline-start: 0.4rem;
}
.nav-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
}
.site-header.scrolled .nav-toggle span { background: var(--navy-800); }
.nav-toggle.open span,
.site-header.scrolled .nav-toggle.open span { background: #fff; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, filter 0.25s;
    will-change: transform;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-primary {
    background: var(--grad-brand);
    color: #1a1a1a;
    box-shadow: 0 16px 34px -14px rgba(184, 144, 47, 0.75);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -16px rgba(184, 144, 47, 0.85); }
.btn-primary:hover svg { transform: translateX(-4px); }
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    background: var(--grad-dark);
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(201,162,39,0.35), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(232,198,106,0.28), transparent 45%);
    pointer-events: none;
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

/* Hero video background */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}
.hero-video.is-active { opacity: 1; }
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.66) 45%, rgba(10,10,10,0.92) 100%),
        linear-gradient(90deg, rgba(20,20,20,0.72) 0%, rgba(20,20,20,0.2) 60%),
        radial-gradient(circle at 78% 28%, rgba(201,162,39,0.22), transparent 50%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    z-index: 2;
}
.eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(201,162,39,0.14);
    border: 1px solid rgba(232,198,106,0.4);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-400);
    margin-bottom: 1.4rem;
}
.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 1.3rem;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #e6ddc9;
    max-width: 38ch;
    margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(120deg,#fff,#e8c66a);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.9rem; color: #c9bfa6; margin-top: 0.3rem; }

/* Hero visual */
.hero-visual { position: relative; height: 100%; min-height: 380px; }
.hero-card-stack { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.hero-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 22px;
    z-index: 2;
    pointer-events: none;
}
.hero-tower {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 280px;
    padding: 0 1rem;
}
.hero-tower span {
    width: 46px;
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, rgba(217,185,74,0.85), rgba(232,198,106,0.35));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 20px 40px -18px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    animation: rise 1.1s var(--ease) backwards;
}
.hero-tower span::after {
    content: '';
    position: absolute;
    inset: 8px;
    background-image:
        linear-gradient(rgba(255,255,255,0.18) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,255,255,0.18) 2px, transparent 2px);
    background-size: 12px 18px;
    opacity: 0.5;
}
/* Lit windows turning on inside the rooms */
.hero-tower span::before {
    content: '';
    position: absolute;
    inset: 8px;
    z-index: 1;
    background-image:
        radial-gradient(circle at center, rgba(255,221,140,0.98) 0 2.4px, transparent 3px),
        radial-gradient(circle at center, rgba(255,198,104,0.85) 0 2px, transparent 2.6px);
    background-size: 12px 18px, 12px 18px;
    background-position: 6px 9px, 12px 0px;
    opacity: 0;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 4px rgba(255,201,110,0.65));
    animation: windowsLight 5s ease-in-out infinite;
}
.hero-tower span:nth-child(1){ height: 55%; animation-delay: 0.1s; }
.hero-tower span:nth-child(2){ height: 80%; animation-delay: 0.22s; }
.hero-tower span:nth-child(3){ height: 100%; animation-delay: 0.34s; }
.hero-tower span:nth-child(4){ height: 72%; animation-delay: 0.46s; }
.hero-tower span:nth-child(5){ height: 48%; animation-delay: 0.58s; }
.hero-tower span:nth-child(1)::before { animation-delay: 1.0s;  animation-duration: 4.6s; }
.hero-tower span:nth-child(2)::before { animation-delay: 1.9s;  animation-duration: 5.4s; }
.hero-tower span:nth-child(3)::before { animation-delay: 1.4s;  animation-duration: 4.2s; }
.hero-tower span:nth-child(4)::before { animation-delay: 2.4s;  animation-duration: 5.8s; }
.hero-tower span:nth-child(5)::before { animation-delay: 0.7s;  animation-duration: 4.9s; }
@keyframes rise { from { transform: scaleY(0); opacity: 0; transform-origin: bottom; } to { transform: scaleY(1); opacity: 1; } }
@keyframes windowsLight {
    0%   { opacity: 0; }
    18%  { opacity: 0.9; }
    34%  { opacity: 0.4; }
    52%  { opacity: 1; }
    68%  { opacity: 0.55; }
    84%  { opacity: 0.92; }
    100% { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-tower span::before { animation: none; opacity: 0.85; }
}

/* Private houses next to the towers */
.house {
    position: relative;
    animation: rise 1.1s var(--ease) backwards;
}
.house-1 { animation-delay: 0.66s; }
.house-2 { animation-delay: 0.78s; }
.house-2 { transform: scale(0.86); }
.house-roof {
    width: 0; height: 0;
    margin: 0 auto;
    border-left: 46px solid transparent;
    border-right: 46px solid transparent;
    border-bottom: 30px solid #d9b94a;
    filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.25));
}
.house-body {
    position: relative;
    width: 76px;
    height: 64px;
    margin: 0 auto;
    border-radius: 4px 4px 6px 6px;
    background: linear-gradient(180deg, rgba(217,185,74,0.85), rgba(232,198,106,0.35));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 18px 36px -16px rgba(0,0,0,0.6);
    overflow: hidden;
}
.house-body .win {
    position: absolute;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(20,20,20,0.55);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.house-body .win:nth-of-type(1) { right: 12px; }
.house-body .win:nth-of-type(2) { left: 12px; }
.house-body .win::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 2px;
    background: rgba(255,210,120,0.98);
    box-shadow: 0 0 8px 2px rgba(255,201,110,0.7);
    opacity: 0;
    animation: windowGlow 4.6s ease-in-out infinite;
}
.house-1 .win:nth-of-type(1)::after { animation-delay: 1.2s; }
.house-1 .win:nth-of-type(2)::after { animation-delay: 2.4s; animation-duration: 5.2s; }
.house-2 .win:nth-of-type(1)::after { animation-delay: 0.6s; animation-duration: 5.6s; }
.house-2 .win:nth-of-type(2)::after { animation-delay: 1.8s; animation-duration: 4.2s; }
.house-body .door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 26px;
    border-radius: 4px 4px 0 0;
    background: rgba(20,20,20,0.55);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
@keyframes windowGlow {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    45%  { opacity: 0.45; }
    65%  { opacity: 0.95; }
    100% { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
    .house-body .win::after { animation: none; opacity: 0.85; }
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.95);
    color: var(--ink);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    z-index: 3;
}
.float-card strong { display: block; font-size: 0.95rem; }
.float-card span { font-size: 0.8rem; color: var(--muted); }
.fc-icon {
    width: 44px; height: 44px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--grad-brand);
    color: #1a1a1a;
}
.fc-icon svg { width: 24px; height: 24px; }
.card-a { top: 6%; right: -4%; animation: floaty 5s ease-in-out infinite; }
.card-b { bottom: 8%; left: -6%; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 1.6rem; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    z-index: 3;
}
.scroll-cue span {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: scrolly 1.8s var(--ease) infinite;
}
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ============================================
   TRUST STRIP / MARQUEE
   ============================================ */
.trust-strip {
    background: var(--navy-800);
    padding: 1.1rem 0;
    overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: marquee 26s linear infinite;
    color: #c9bfa6;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}
.marquee-track span:not(:nth-child(even)) { color: var(--gold-400); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head.center { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-eyebrow {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--blue-500);
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--navy-800);
    margin-bottom: 1rem;
}
.section-lead { font-size: 1.15rem; color: var(--muted); }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.about-media { position: relative; }
.media-frame {
    aspect-ratio: 4/4.4;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(201,162,39,0.18), rgba(232,198,106,0.12)),
        var(--grad-dark);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.media-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.media-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.media-illustration {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 62%;
    height: auto;
    color: rgba(255,255,255,0.92);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    z-index: 1;
}
.about-logo {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
    z-index: 1;
}
.media-badge {
    position: absolute;
    bottom: 1.4rem; right: 1.4rem;
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-md);
    padding: 1rem 1.3rem;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}
.badge-num { display: block; font-size: 2rem; font-weight: 900; color: var(--blue-500); line-height: 1; }
.badge-text { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.about-text p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.08rem; }
.check-list { margin: 1.6rem 0 2rem; display: grid; gap: 0.8rem; }
.check-list li {
    position: relative;
    padding-inline-start: 2rem;
    font-weight: 600;
    color: var(--text);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 1.4rem; height: 1.4rem;
    display: grid; place-items: center;
    background: var(--grad-brand);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
}

/* TEAM */
.team-block { margin-top: clamp(3.5rem, 7vw, 6rem); }
.team-block .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.4rem);
}
.team-card {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: clamp(1.2rem, 2.5vw, 2rem);
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 2.4vw, 2rem);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover, 0 30px 60px rgba(8,20,39,0.16));
}
.team-photo {
    position: relative;
    aspect-ratio: 1/1.12;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--grad-dark);
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.team-info h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 0.2rem;
}
.team-role {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blue-500);
    margin-bottom: 0.9rem;
}
.team-info p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.team-points { display: grid; gap: 0.55rem; }
.team-points li {
    position: relative;
    padding-inline-start: 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.team-points li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 0.6rem; height: 0.6rem;
    border-radius: 50%;
    background: var(--grad-brand);
}

/* ============================================
   SERVICES CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem;
    box-shadow: 0 10px 30px -22px rgba(8,20,39,0.4);
    transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 4px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.sc-icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    font-size: 1.9rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(201,162,39,0.12), rgba(232,198,106,0.12));
    margin-bottom: 1.2rem;
    transition: transform 0.4s var(--ease);
    color: var(--blue-500);
}
.sc-icon svg { width: 30px; height: 30px; }
.service-card:hover .sc-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy-800); margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); }

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: linear-gradient(180deg, var(--paper), #eef2f9); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
}
.project-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-card); }
.pc-img {
    aspect-ratio: 16/10;
    position: relative;
    background:
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #1a1a1a), var(--navy-800));
    overflow: hidden;
}
.pc-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.7s var(--ease);
}
.pc-img img + .pc-fallback,
.pc-img:has(img)::after { display: none; }
.project-card:hover .pc-img img { transform: scale(1.08); }
.pc-img::before,
.pc-img::after {
    pointer-events: none;
}
/* Dark gradient at the bottom for label/text legibility */
.pc-img[data-label] {
    --label-shade: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
}
.pc-img[data-label] img { mask: none; }
.pc-img[data-label]::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--label-shade);
    z-index: 2;
    -webkit-mask: none; mask: none;
}
.pc-img[data-label]::before {
    content: attr(data-label);
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 3;
    background: rgba(255,255,255,0.95);
    color: var(--navy-800);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    background-image: none;
    width: auto; height: auto;
    inset-inline-start: auto;
}

.pc-body { padding: 1.5rem 1.6rem 1.8rem; }
.pc-body h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy-800); margin-bottom: 0.5rem; }
.pc-body p { color: var(--muted); margin-bottom: 1.1rem; }
.pc-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--text); font-weight: 600; }
.pc-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta-ic { width: 17px; height: 17px; color: var(--blue-500); flex: none; }
.projects-cta { text-align: center; margin-top: 3rem; }

/* ============================================
   PROCESS / TIMELINE
   ============================================ */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.tl-item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.6rem 1.6rem;
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.tl-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.tl-dot {
    position: absolute;
    top: -24px; right: 1.6rem;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-weight: 900;
    border-radius: 16px;
    box-shadow: 0 14px 28px -12px rgba(184,144,47,0.7);
}
.tl-content h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy-800); margin: 0.6rem 0 0.4rem; }
.tl-content p { color: var(--muted); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--grad-dark); color: #fff; }
.testimonials .section-title { color: #fff; }
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
}
.testi-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.9rem;
    position: relative;
    backdrop-filter: blur(8px);
    transition: transform 0.4s var(--ease), background 0.4s;
}
.testi-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.09); }
.quote-mark { font-size: 4rem; line-height: 0.4; color: var(--cyan-400); font-family: Georgia, serif; height: 2rem; }
.testi-card blockquote { font-size: 1.1rem; color: #dce6f4; margin: 1rem 0 1.5rem; }
.testi-card figcaption { display: flex; align-items: center; gap: 0.9rem; }
.ava {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}
.testi-card figcaption strong { display: block; color: #fff; }
.testi-card figcaption small { color: #9a8f78; }

/* ============================================
   PRESS / MEDIA
   ============================================ */
.press .section-sub { color: var(--muted); margin-top: 0.6rem; }
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    margin-top: 2.4rem;
}
.press-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.press-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,162,39,0.5);
    box-shadow: 0 30px 60px -28px rgba(0,0,0,0.35);
}
.press-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.press-quote { color: var(--text); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.press-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--blue-500);
    margin-top: auto;
}
.press-link svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.press-card:hover .press-link svg { transform: translate(2px, -2px); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact-info p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.contact-list { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-ic {
    width: 48px; height: 48px;
    flex: none;
    display: grid; place-items: center;
    font-size: 1.3rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(201,162,39,0.12), rgba(232,198,106,0.12));
    color: var(--blue-500);
}
.ci-ic svg { width: 24px; height: 24px; }
.contact-list small { display: block; color: var(--muted); font-size: 0.85rem; }
.contact-list a { font-weight: 700; color: var(--navy-800); }
.contact-list a:hover { color: var(--blue-500); }
.contact-socials { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.soc-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: var(--navy-800);
    color: #fff;
    font-weight: 700;
    transition: transform 0.25s var(--ease), filter 0.25s;
}
.soc-btn:hover { transform: translateY(-3px); filter: brightness(1.15); }

.contact-map {
    margin: 0 0 1.8rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    line-height: 0;
}
.contact-map iframe { display: block; width: 100%; filter: grayscale(0.15); }
.map-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    background: var(--grad-brand);
    transition: filter 0.25s;
}
.map-open:hover { filter: brightness(1.08); }
.map-open svg { width: 18px; height: 18px; }

.contact-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--shadow-card);
}
.field { position: relative; margin-bottom: 1.3rem; }
.field input, .field textarea {
    width: 100%;
    padding: 1.1rem 1rem 0.5rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    transition: border-color 0.25s, box-shadow 0.25s;
    resize: vertical;
}
.field textarea { min-height: 110px; }
.field label {
    position: absolute;
    top: 0.95rem; right: 1rem;
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
    transition: transform 0.2s var(--ease), font-size 0.2s, color 0.2s;
    transform-origin: right;
    background: transparent;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(201,162,39,0.18);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-0.65rem) scale(0.78);
    color: var(--blue-500);
    font-weight: 700;
}
.form-note { margin-top: 0.9rem; font-weight: 600; font-size: 0.95rem; min-height: 1.2rem; }
.form-note.ok { color: #16a34a; }
.form-note.err { color: #dc2626; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--navy-900); color: #cabfa6; padding-top: 3.5rem; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer-brand { display: flex; gap: 0.9rem; align-items: center; }
.footer-logo {
    height: 64px;
    width: auto;
    background: rgba(255,255,255,0.96);
    padding: 6px 10px;
    border-radius: 12px;
    flex: none;
}
.footer-brand .brand-mark { color: var(--blue-400); }
.footer-brand strong { color: #fff; font-size: 1.15rem; }
.footer-brand p { font-size: 0.95rem; margin-top: 0.3rem; max-width: 30ch; }
.footer-nav { display: grid; gap: 0.6rem; align-content: start; }
.footer-nav a { transition: color 0.2s, padding 0.2s; }
.footer-nav a:hover { color: #fff; padding-inline-start: 6px; }
.footer-contact { display: grid; gap: 0.6rem; align-content: start; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.3rem 0; font-size: 0.88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #8597b0; }

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.floating-actions {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 800;
}
.fab {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    position: relative;
}
.fab::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse 2.4s var(--ease) infinite;
}
.fab-wa { background: #25d366; }
.fab-call { background: var(--blue-500); }
.fab:hover { transform: scale(1.1) translateY(-2px); }
@keyframes pulse { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
[data-reveal]:nth-child(2) { transition-delay: 0.06s; }
[data-reveal]:nth-child(3) { transition-delay: 0.12s; }
[data-reveal]:nth-child(4) { transition-delay: 0.18s; }
.cards-grid .reveal:nth-child(2){ transition-delay: 0.08s; }
.cards-grid .reveal:nth-child(3){ transition-delay: 0.16s; }
.cards-grid .reveal:nth-child(4){ transition-delay: 0.24s; }
.cards-grid .reveal:nth-child(5){ transition-delay: 0.32s; }
.cards-grid .reveal:nth-child(6){ transition-delay: 0.40s; }

/* Project cards — richer staggered entrance */
.projects-grid .project-card.reveal {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.projects-grid .project-card.reveal.in { opacity: 1; transform: none; }
.projects-grid .project-card:nth-child(1){ transition-delay: 0.05s; }
.projects-grid .project-card:nth-child(2){ transition-delay: 0.15s; }
.projects-grid .project-card:nth-child(3){ transition-delay: 0.25s; }
.projects-grid .project-card:nth-child(4){ transition-delay: 0.35s; }
.projects-grid .project-card:nth-child(5){ transition-delay: 0.45s; }
/* Image gently zooms in as the card reveals */
.projects-grid .project-card.reveal .pc-img img {
    transform: scale(1.12);
    transition: transform 1.1s var(--ease);
}
.projects-grid .project-card.reveal.in .pc-img img { transform: scale(1); }
.project-card:hover .pc-img img { transform: scale(1.08) !important; }
/* Title slides up subtly */
.projects-grid .project-card .pc-body h3 {
    transition: color 0.3s var(--ease);
}
.project-card:hover .pc-body h3 { color: var(--blue-500); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-skyline {
        right: 0;
        transform: scale(0.62);
        transform-origin: bottom center;
        opacity: 0.28;
    }
    .about-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 420px; margin-inline: auto; }
    .team-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; z-index: 950; }
    /* While the menu is open, drop the header blur so the fixed menu
       isn't trapped inside the header's containing block. */
    .site-header.scrolled:has(.main-nav.open) {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .main-nav {
        position: fixed;
        top: 0; bottom: 0;
        left: 0; right: auto;
        width: min(78%, 320px);
        z-index: 940;
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
        background: #0a0a0a;
        box-shadow: 4px 0 30px rgba(0,0,0,0.5);
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s var(--ease);
        will-change: transform;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav a,
    .site-header.scrolled .main-nav a:not(.nav-cta) {
        color: #fff;
        font-size: 1.2rem;
        padding: 0.7rem 1rem;
        text-shadow: none;
    }
    .main-nav a:not(.nav-cta)::after { display: none; }
    .site-header.scrolled .main-nav a:not(.nav-cta):hover,
    .site-header.scrolled .main-nav a.active,
    .main-nav a.active { color: var(--gold-400); }
    .nav-cta,
    .site-header.scrolled .main-nav a.nav-cta { color: #1a1a1a !important; }
    .nav-cta { margin: 0.5rem 0 0; }
    .hero-stats { gap: 1.6rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom .container { justify-content: center; text-align: center; }
    .team-card { grid-template-columns: 1fr; text-align: center; }
    .team-photo { max-width: 220px; margin-inline: auto; }
    .team-points { text-align: start; display: inline-grid; }
}

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

/* ============================================
   ARTICLES — page hero band
   ============================================ */
.page-hero {
    position: relative;
    background: var(--grad-dark);
    color: #fff;
    padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(201,162,39,0.4), transparent 45%),
        radial-gradient(circle at 12% 85%, rgba(232,198,106,0.3), transparent 48%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 30%, #000 25%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 25%, transparent 72%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 1.1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb span.sep { opacity: 0.5; }
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.5px;
    max-width: 18ch;
}
.page-hero .page-lead {
    margin-top: 1.1rem;
    max-width: 60ch;
    color: rgba(255,255,255,0.82);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    backdrop-filter: blur(6px);
    margin-bottom: 1.1rem;
}
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.78);
}
.article-meta-row span { display: inline-flex; align-items: center; gap: 0.45rem; }
.article-meta-row svg { width: 17px; height: 17px; color: var(--cyan-400); }

/* ---------- Articles grid (listing) ---------- */
.articles-section { background: var(--paper); }
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.7rem;
}

/* Articles pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(201,162,39,0.55);
    color: var(--blue-500);
}
.page-btn.is-active {
    background: var(--grad-brand);
    border-color: transparent;
    color: #1a1a1a;
}
.page-btn.page-nav { font-weight: 600; }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.article-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-card); }
.ac-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.ac-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.article-card:hover .ac-thumb img { transform: scale(1.07); }
.ac-cat {
    position: absolute;
    top: 0.9rem;
    inset-inline-start: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #1a1a1a;
    background: var(--grad-brand);
    box-shadow: 0 8px 20px -8px rgba(184,144,47,0.7);
}
.ac-body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ac-body h3 {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.ac-body p {
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 1.1rem;
    flex: 1;
}
.ac-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--muted);
}
.ac-read {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--blue-500);
}
.ac-read svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.article-card:hover .ac-read svg { transform: translateX(-4px); }

/* ---------- Single article body ---------- */
.article-section { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6.5rem); }
.article-wrap { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.article-lead {
    font-size: clamp(1.12rem, 2vw, 1.32rem);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-inline-start: 1.1rem;
    border-inline-start: 4px solid var(--blue-500);
}
.article-body { color: var(--text); font-size: 1.07rem; line-height: 1.85; }
.article-body h2 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--ink);
    margin: 2.4rem 0 1rem;
    line-height: 1.3;
}
.article-body h3 {
    font-size: clamp(1.18rem, 2.2vw, 1.4rem);
    font-weight: 700;
    color: var(--navy-700);
    margin: 1.8rem 0 0.8rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-inline-start: 1.4rem; }
.article-body ul li, .article-body ol li { margin-bottom: 0.55rem; position: relative; }
.article-body ul { list-style: none; padding-inline-start: 0; }
.article-body ul li { padding-inline-start: 1.7rem; }
.article-body ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--grad-brand);
}
.article-body ol { list-style: decimal; }
.article-body ol li { padding-inline-start: 0.3rem; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-figure {
    margin: 2.2rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.article-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.article-figure figcaption {
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
    padding: 0.7rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: none;
}
.article-quote {
    margin: 2rem 0;
    padding: 1.5rem 1.7rem;
    background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(232,198,106,0.08));
    border-radius: var(--radius-md);
    border-inline-start: 4px solid var(--cyan-400);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--navy-700);
    line-height: 1.7;
}
.article-cta {
    margin-top: 3rem;
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    background: var(--grad-dark);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.article-cta h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin-bottom: 0.6rem; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.4rem; }
.article-nav {
    width: min(100% - 2.5rem, 820px);
    margin: 2.5rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.article-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--blue-500);
    padding: 0.6rem 0;
    transition: gap 0.25s var(--ease);
}
.article-nav a:hover { gap: 0.85rem; }
.article-nav svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .articles-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ACCESSIBILITY WIDGET (left side)
   ============================================ */
.a11y-widget {
    position: fixed;
    bottom: 1.5rem; left: 1.5rem;
    z-index: 1200;
    font-family: var(--font);
}
.a11y-toggle {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: grid; place-items: center;
    background: var(--navy-900);
    color: var(--gold-400);
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5);
    transition: transform 0.3s var(--ease), filter 0.3s;
}
.a11y-toggle:hover { transform: scale(1.08); filter: brightness(1.1); }
.a11y-toggle:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }

.a11y-panel {
    position: absolute;
    bottom: 70px; left: 0;
    width: 300px;
    max-width: calc(100vw - 3rem);
    background: #fff;
    color: #1a1a1a;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 28px 70px -20px rgba(0,0,0,0.5);
    padding: 1rem;
    animation: a11yIn 0.25s var(--ease);
}
@keyframes a11yIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.a11y-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 0.7rem; margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold-400);
}
.a11y-head strong { font-size: 1.1rem; color: var(--navy-900); }
.a11y-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: #555;
    width: 32px; height: 32px; border-radius: 8px;
}
.a11y-close:hover { background: rgba(0,0,0,0.06); }
.a11y-fontrow {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 0.5rem; margin-bottom: 0.8rem;
}
.a11y-fontrow button {
    padding: 0.6rem; border-radius: 10px; cursor: pointer;
    border: 1.5px solid rgba(0,0,0,0.12); background: #f6f5f1;
    font-weight: 800; font-size: 1rem; color: var(--navy-900);
}
.a11y-fontrow button:hover { border-color: var(--gold-400); background: #fff; }
.a11y-fontrow span { text-align: center; font-weight: 700; font-size: 0.9rem; }
.a11y-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.a11y-grid button {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.6rem 0.55rem; border-radius: 10px; cursor: pointer;
    border: 1.5px solid rgba(0,0,0,0.12); background: #f6f5f1;
    font-size: 0.82rem; font-weight: 600; color: var(--navy-900);
    text-align: start; transition: border-color 0.2s, background 0.2s;
}
.a11y-grid button:hover { border-color: var(--gold-400); background: #fff; }
.a11y-grid button.on {
    background: var(--navy-900); color: var(--gold-400);
    border-color: var(--navy-900);
}
.a11y-ic { font-size: 1rem; flex: none; }
.a11y-reset {
    width: 100%; margin-top: 0.8rem;
    padding: 0.7rem; border-radius: 10px; cursor: pointer;
    border: none; background: var(--grad-brand); color: #1a1a1a;
    font-weight: 800; font-size: 0.9rem;
}
.a11y-reset:hover { filter: brightness(1.05); }
.a11y-statement {
    display: block; text-align: center; margin-top: 0.7rem;
    font-size: 0.85rem; font-weight: 700; color: var(--navy-900);
    text-decoration: underline;
}
.a11y-widget button:focus-visible,
.a11y-statement:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* ---- Accessibility state classes ---- */
html.a11y-fontscale { font-size: var(--a11y-font-scale, 100%); }
html.a11y-spacing body { letter-spacing: 0.06em; word-spacing: 0.16em; line-height: 2; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 2; }
html.a11y-readable body, html.a11y-readable body * {
    font-family: Arial, 'Assistant', sans-serif !important;
    font-weight: 500;
}
html.a11y-links a:not(.btn):not(.fab):not(.a11y-statement) {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 700 !important;
    outline: 1px dashed currentColor; outline-offset: 2px;
}
html.a11y-highlight h1, html.a11y-highlight h2, html.a11y-highlight h3 {
    outline: 2px dashed var(--gold-400); outline-offset: 4px;
    background: rgba(242,193,78,0.12);
}
html.a11y-bigcursor body, html.a11y-bigcursor body * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1' d='M5 2l14 9-6 1 4 8-3 1-4-8-5 4z'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-stopmotion *, html.a11y-stopmotion *::before, html.a11y-stopmotion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
html.a11y-stopmotion video { display: none; }

@media (max-width: 760px) {
    .a11y-widget { bottom: 1.2rem; left: 1.2rem; }
    .floating-actions { bottom: 1.2rem; right: 1.2rem; }
}

/* ============================================
   SKIP LINK (keyboard accessibility)
   ============================================ */
.skip-link {
    position: fixed;
    top: -100px;
    inset-inline-start: 1rem;
    z-index: 2000;
    background: var(--grad-brand);
    color: #1a1a1a;
    font-weight: 800;
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: top 0.25s var(--ease);
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #0a0a0a;
    outline-offset: 2px;
}

/* ============================================
   GLOBAL FOCUS-VISIBLE (keyboard users only)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible {
    outline: 3px solid #0a0a0a;
    outline-offset: 3px;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--grad-dark);
    color: #fff;
    padding: clamp(7rem, 14vw, 10rem) 0 5rem;
    overflow: hidden;
}
.error-wrap {
    position: relative;
    z-index: 2;
    max-width: 640px;
}
.error-code {
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: clamp(6rem, 22vw, 12rem);
    line-height: 0.9;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}
.error-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin: 0.5rem 0 0.8rem;
}
.error-hero p {
    color: rgba(255,255,255,0.78);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

/* ============================================
   ARTICLES — category filter bar
   ============================================ */
.articles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.4rem;
}
.filter-btn {
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    box-shadow: var(--shadow-soft);
}
.filter-btn:hover {
    border-color: var(--gold-400);
    transform: translateY(-2px);
}
.filter-btn.is-active {
    background: var(--grad-brand);
    color: #1a1a1a;
    border-color: transparent;
}


