/* ==========================================================================
   NATAN SANTIAGO — "GROWTH REPORT" DESIGN SYSTEM
   The site reads like a live performance report: numbered sections,
   tabular data, a margin ruler that tracks reading progress, a serif
   display face for editorial weight against monospace for data.
   ========================================================================== */

:root {
    --bg: #0A0A0C;
    --bg-elevated: #121214;
    --bg-elevated-2: #18181B;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #F2F1ED;
    --text-secondary: #9797A0;
    --text-tertiary: #55555C;
    --accent: #FF5A1F;
    --accent-soft: rgba(255, 90, 31, 0.10);
    --accent-border: rgba(255, 90, 31, 0.35);
    --accent-glow: rgba(255, 90, 31, 0.45);

    /* Legacy aliases */
    --color-primary: var(--accent);
    --color-background: var(--bg);
    --color-surface: var(--bg-elevated);
    --color-text: var(--text);
    --color-text-secondary: var(--text-secondary);
    --color-border: var(--border);

    --font-display: 'Fraunces', Georgia, serif;
    --font-family: 'Inter', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-speed: 0.3s ease;
    --speed: 0.3s;
    --rail-w: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    animation: page-fade-in 0.7s var(--ease) both;
}
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }

::selection { background: var(--accent); color: #0A0A0C; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; position: relative; }

body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 0%, transparent 70%);
}

.section { padding: 7rem 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   Section marks — real, sequential, CSS-counter driven running headers.
   -------------------------------------------------------------------------- */
main { counter-reset: section-counter; }
.section { counter-increment: section-counter; }

.section-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.section-mark::before {
    content: '\00A7 ' counter(section-counter, decimal-leading-zero) ' \2014';
    color: var(--accent);
}

.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-mark { justify-content: center; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text);
}

.section-sub { margin-top: 1rem; color: var(--text-secondary); font-size: 1.05rem; max-width: 60ch; }
.section-header.centered .section-sub { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.7rem; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
    cursor: pointer;
}
.btn-primary { background-color: var(--accent); color: #0A0A0C; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-soft); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); font-weight: 500; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-nav { padding: 0.55rem 1.2rem; border: 1px solid var(--border-strong); font-size: 0.9rem; font-weight: 500; }
.btn-nav:hover { border-color: var(--accent); color: var(--accent); }

.hero-link-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: color var(--speed), gap var(--speed);
}
.hero-link-secondary:hover { color: var(--accent); gap: 0.75rem; }

.contact-btn-whatsapp:hover { background-color: #20b858 !important; transform: translateY(-3px); }
.contact-btn-email:hover { background-color: #444 !important; transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Header / top nav (all breakpoints)
   -------------------------------------------------------------------------- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background-color var(--speed), border-color var(--speed);
}
.header.is-scrolled { background: rgba(10, 10, 12, 0.88); border-bottom-color: var(--border); }

.nav { display: flex; justify-content: space-between; align-items: center; height: 4.5rem; }

.nav-logo {
    color: var(--text); font-weight: 600; font-family: var(--font-display); font-style: italic;
    font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: 0.55rem;
}
.nav-logo::before {
    content: ''; width: 8px; height: 8px; background: var(--accent);
    border-radius: 2px; box-shadow: 0 0 10px var(--accent-glow);
}

.nav-menu { list-style: none; display: flex; align-items: center; gap: 2.25rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.92rem; position: relative; transition: color var(--speed); }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background-color: var(--accent); border-radius: 2px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); transition: transform var(--speed), opacity var(--speed); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Rail — the signature element. A margin ruler tracking reading progress,
   plus a live local clock. Desktop only; purely ambient, never blocks nav.
   -------------------------------------------------------------------------- */
.rail {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: var(--rail-w);
    height: 100vh;
    z-index: 900;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0 1.75rem;
    border-right: 1px solid var(--border);
}

.rail-mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem; font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color var(--speed), color var(--speed);
    flex-shrink: 0;
}
.rail-mark:hover { border-color: var(--accent); color: var(--accent); }

.rail-ruler {
    flex: 1;
    width: 1px;
    background: var(--border);
    margin: 2rem 0;
    position: relative;
}
.rail-progress-dot {
    position: absolute;
    left: 50%; top: 0;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: translate(-50%, -50%);
}

.rail-clock {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}
.rail-clock-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}
.rail-clock-time { font-size: 0.72rem; color: var(--text-secondary); writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.05em; }
.rail-clock-label { font-size: 0.6rem; color: var(--text-tertiary); writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.08em; text-transform: uppercase; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (min-width: 1100px) {
    .rail { display: flex; }
    body { padding-left: var(--rail-w); }
}

/* --------------------------------------------------------------------------
   Hero — cover page of the report
   -------------------------------------------------------------------------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 4.5rem; position: relative; overflow: hidden; --x: 50%; --y: 30%; }
.hero-content { display: flex; align-items: center; gap: 4rem; position: relative; z-index: 1; }
.hero-text { flex: 1.05; text-align: left; }
.hero-visual { flex: 0.95; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary);
    margin-bottom: 1.75rem; letter-spacing: 0.01em;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: pulse-dot 2s ease-in-out infinite; }

.hero-meta {
    display: flex; flex-wrap: wrap; gap: 0 2.5rem;
    font-family: var(--font-mono); font-size: 0.78rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.hero-meta-row { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.hero-meta-label { color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; }
.hero-meta-value { color: var(--text); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.2vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.06;
    margin-bottom: 1rem;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 500; }

.hero-subtitle { font-family: var(--font-mono); font-size: 0.95rem; color: var(--accent); margin-bottom: 1.4rem; letter-spacing: 0.01em; }
.hero-description { font-size: 1.08rem; color: var(--text-secondary); max-width: 54ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

/* Ambient orbs */
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: 0.5; mix-blend-mode: screen; }
.ambient-orb--one { width: 420px; height: 420px; top: -10%; left: 5%; background: radial-gradient(circle, rgba(255,90,31,0.55), transparent 70%); animation: orb-drift-a 16s ease-in-out infinite; }
.ambient-orb--two { width: 360px; height: 360px; bottom: -15%; right: 8%; background: radial-gradient(circle, rgba(255,140,60,0.4), transparent 70%); animation: orb-drift-b 20s ease-in-out infinite; }
@keyframes orb-drift-a { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.1); } }
@keyframes orb-drift-b { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-35px,-25px) scale(1.08); } }

/* Signal panel — recast as a report figure */
.signal-panel {
    position: relative;
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-elevated-2));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    overflow: hidden;
    max-width: 460px;
    margin-left: auto;
    animation: panel-float 6s ease-in-out infinite;
}
@keyframes panel-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero:hover .signal-panel::before { opacity: 1; }
.signal-panel::before {
    content: ''; position: absolute; top: var(--y, 30%); left: var(--x, 50%);
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
    transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 0.5s;
}

.signal-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-tertiary); position: relative; z-index: 1;
}
.signal-panel-header .live { display: flex; align-items: center; gap: 0.4rem; color: var(--accent); }
.signal-panel-header .live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: pulse-dot 2s ease-in-out infinite; }

.signal-chart { width: 100%; height: 100px; margin-bottom: 1.5rem; display: block; position: relative; z-index: 1; }
.signal-chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--line-length, 600); stroke-dashoffset: var(--line-length, 600); transition: stroke-dashoffset 1.6s var(--ease); }
.signal-chart.is-drawn .line { stroke-dashoffset: 0; }
.signal-chart .area { fill: url(#signalGradient); stroke: none; opacity: 0; transition: opacity 1s ease 0.4s; }
.signal-chart.is-drawn .area { opacity: 1; }

.signal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; z-index: 1; }
.signal-stats > div { border-top: 1px solid var(--border); padding-top: 1rem; }
.signal-stat-label { font-size: 0.68rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.signal-stat-value { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.signal-stat-value.accent { color: var(--accent); }

.signal-caption {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    max-width: 460px;
    margin-left: auto;
    font-style: italic;
}
.signal-caption strong { color: var(--text-secondary); font-style: normal; font-weight: 500; }

/* --------------------------------------------------------------------------
   Tool ticker / marquee
   -------------------------------------------------------------------------- */
.ticker-wrap {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow: hidden; padding: 1.5rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 3.5rem; animation: ticker-scroll 28s linear infinite; }
.ticker-track span { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; }
.ticker-track span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card { background-color: var(--bg-elevated); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: transform var(--speed) var(--ease), border-color var(--speed); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.project-image { width: 100%; height: 200px; overflow: hidden; background-color: var(--bg-elevated-2); }
.project-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.92); }
.project-logo-bg { background-color: #fff; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.project-logo-bg img { width: 75%; height: auto; object-fit: contain; }
.project-content { padding: 1.6rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; color: var(--text); }
.project-description { color: var(--text-secondary); margin-bottom: 1.25rem; flex-grow: 1; font-size: 0.95rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.project-tags span { font-family: var(--font-mono); background-color: var(--accent-soft); color: var(--accent); padding: 0.28rem 0.7rem; border-radius: 4px; font-size: 0.68rem; letter-spacing: 0.03em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; }
.timeline-item { position: relative; padding: 2.1rem 6rem 2.1rem 2.25rem; border-top: 1px solid var(--border); }
.timeline-item:first-child { border-top: none; padding-top: 0; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 2.4rem; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline-item:first-child::before { top: 0.3rem; }
.timeline-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.03em; }
.timeline-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0.5rem 0 0.15rem; letter-spacing: -0.01em; }
.timeline-company { color: var(--text-secondary); font-style: normal; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.75rem; }
.timeline-content p { color: var(--text-secondary); font-size: 0.98rem; max-width: 62ch; }
.company-logo { position: absolute; right: 0; top: 2.1rem; width: 46px; height: 46px; background: #fff; border-radius: 50%; padding: 7px; display: none; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); }
.timeline-item:first-child .company-logo { top: 0; }
.company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (min-width: 640px) { .company-logo { display: flex; } }

/* --------------------------------------------------------------------------
   Skills
   -------------------------------------------------------------------------- */
.skills-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.skill-item { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.9rem; border: 1px solid var(--border); margin: -1px 0 0 -1px; }
.skill-icon { font-size: 1.25rem; color: var(--accent); margin-top: 0.2rem; }
.skill-text h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.skill-text p { color: var(--text-secondary); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-container { text-align: center; max-width: 640px; }
.contact-subtitle { color: var(--text-secondary); margin: 1.4rem auto 2.25rem; font-size: 1.05rem; }
.lead-form { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; margin: 0 auto; background-color: var(--bg-elevated); padding: 2.2rem; border-radius: var(--radius-md); border: 1px solid var(--border); text-align: left; }
.lead-form input, .lead-form textarea { width: 100%; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background-color: var(--bg); color: var(--text); font-family: var(--font-family); font-size: 0.95rem; transition: border-color var(--speed), box-shadow var(--speed); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--text-tertiary); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lead-form textarea { min-height: 110px; resize: vertical; }
.btn-form { width: 100%; border: none; font-size: 1rem; justify-content: center; }
.contact-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.social-links { margin-top: 2.25rem; }
.social-icon { color: var(--text-secondary); font-size: 1.3rem; margin: 0 0.6rem; transition: color var(--speed), transform var(--speed); display: inline-block; }
.social-icon:hover { color: var(--accent); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Footer + Modal
   -------------------------------------------------------------------------- */
.footer { padding: 2.4rem 0; text-align: center; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-tertiary); }
.footer-content { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.privacy-link { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-family: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.privacy-link:hover { color: var(--accent); }
.modal { display: none; position: fixed; inset: 0; z-index: 2000; background-color: rgba(5, 5, 6, 0.9); backdrop-filter: blur(6px); }
.modal-content { background-color: var(--bg-elevated); margin: 6% auto; padding: 2.4rem; border: 1px solid var(--border); width: 90%; max-width: 680px; border-radius: var(--radius-md); color: var(--text-secondary); max-height: 82vh; overflow-y: auto; }
.modal-content p, .modal-content h3 { text-align: left; }
.modal-content h3 { color: var(--text); font-family: var(--font-display); }
.close-modal { color: var(--text-secondary); float: right; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: color var(--speed); }
.close-modal:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   WhatsApp float
   -------------------------------------------------------------------------- */
.whatsapp-float { position: fixed; width: 54px; height: 54px; bottom: 32px; right: 32px; background-color: #1a1a1d; border: 1px solid var(--border-strong); color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none; z-index: 100; transition: transform var(--speed), border-color var(--speed); }
.whatsapp-float:hover { transform: scale(1.08); border-color: #25D366; }

/* --------------------------------------------------------------------------
   Cases page — exhibits with real data tables
   -------------------------------------------------------------------------- */
.detailed-cases { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.case-item { background-color: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.75rem; }

.case-number {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 1.1rem;
}
.case-number::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); flex-shrink: 0; }
.case-number strong { color: var(--accent); font-weight: 600; }

.case-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 1.4rem; letter-spacing: -0.015em; color: var(--text); }
.case-title em { color: var(--accent); font-style: italic; font-weight: 500; }
.case-body { color: var(--text-secondary); margin-bottom: 1.75rem; font-size: 1.02rem; max-width: 72ch; }
.case-body strong { color: var(--text); font-weight: 600; }
.case-flex { display: flex; flex-direction: column; gap: 2rem; }

.data-table { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; font-size: 0.92rem; }
.data-table caption { text-align: left; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 0.75rem; }
.data-table caption i { color: var(--accent); margin-right: 0.4rem; }
.data-table th { text-align: left; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); font-weight: 500; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-strong); }
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.num { font-family: var(--font-mono); color: var(--accent); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table td strong { color: var(--text); font-weight: 600; }

.case-subhead { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.case-gallery-item { border-radius: var(--radius-sm); overflow: hidden; height: 190px; border: 1px solid var(--border); }
.case-gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.case-logo-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.case-logo-badge { width: 60px; height: 60px; background: #fff; border-radius: 50%; padding: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); overflow: hidden; }
.case-logo-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.case-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.case-links .btn { font-size: 0.88rem; padding: 0.6rem 1.15rem; }
.back-link-wrap { text-align: center; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Creative Portfolio — bento grid (editorial register shift)
   -------------------------------------------------------------------------- */
.page-intro { margin-bottom: 1rem; }
.page-intro .section-sub { color: var(--text-secondary); max-width: 680px; font-size: 1.05rem; margin-bottom: 2rem; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 1.25rem;
    margin-top: 2rem;
}
.bento-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.bento-item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(3) { grid-column: span 3; }
.bento-item:nth-child(4) { grid-column: span 3; }
.bento-item:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(6) { grid-column: span 4; grid-row: span 2; }

.bento-item {
    position: relative; border-radius: var(--radius-md); overflow: hidden;
    display: block; background-color: var(--bg-elevated); border: 1px solid var(--border);
    text-decoration: none;
}
.bento-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 0.7s var(--ease); }
.bento-item:hover img { transform: scale(1.06); }
.bento-item:hover { border-color: var(--border-strong); }

.bento-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,12,0.96) 0%, rgba(10,10,12,0.4) 50%, transparent 100%);
    opacity: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem;
    transition: opacity var(--speed);
}
.bento-item:hover .bento-overlay { opacity: 1; }
.bento-title { font-family: var(--font-display); font-style: italic; color: #fff; font-size: 1.35rem; font-weight: 500; margin-bottom: 0.4rem; letter-spacing: -0.005em; }
.bento-desc { color: #C6C6CC; font-size: 0.9rem; margin-bottom: 0.9rem; }
.bento-tag { align-self: flex-start; font-family: var(--font-mono); background-color: var(--accent); color: #0A0A0C; padding: 0.28rem 0.7rem; border-radius: 4px; font-size: 0.64rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }

.section-divider { margin-bottom: 2.5rem; }

.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; justify-items: center; margin-top: 2.5rem; }
.ig-container { width: 100%; max-width: 330px; height: 580px; border-radius: var(--radius-md); overflow: hidden; background-color: #fff; border: 1px solid var(--border); }
.ig-container iframe { width: 100% !important; height: 100% !important; border: none !important; }

/* --------------------------------------------------------------------------
   Global cursor spotlight + custom cursor
   -------------------------------------------------------------------------- */
.cursor-spotlight {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 90, 31, 0.07), transparent 42%);
    opacity: 0; transition: opacity 0.4s ease;
}
.cursor-spotlight.is-active { opacity: 1; }

.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--accent-border); transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background-color 0.25s; }
.cursor-ring.is-active { width: 52px; height: 52px; background: var(--accent-soft); border-color: var(--accent); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor .btn { cursor: none; }

/* --------------------------------------------------------------------------
   Tilt cards + magnetic buttons
   -------------------------------------------------------------------------- */
.tilt-card { transform-style: preserve-3d; transition: transform 0.25s var(--ease); will-change: transform; }
.magnetic { transition: transform 0.25s var(--ease); }

/* --------------------------------------------------------------------------
   Scroll progress bar
   -------------------------------------------------------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); z-index: 1200; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow .dot, .signal-panel-header .live .dot, .rail-clock-dot { animation: none; }
    html { scroll-behavior: auto; }
    .signal-panel { animation: none; }
    .ticker-track { animation: none; }
    .signal-chart .line { transition: none; stroke-dashoffset: 0; }
    .signal-chart .area { transition: none; opacity: 1; }
    body { animation: none; opacity: 1; }
    .ambient-orb { animation: none; }
    .cursor-spotlight { display: none; }
    .tilt-card { transition: none; }
    .tilt-card:hover { transform: none !important; }
    .magnetic { transition: none; }
    .cursor-dot, .cursor-ring { display: none; }
}

@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-content { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-text { text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-meta { justify-content: center; border-bottom: none; }
    .hero-meta-row { align-items: center; }
    .signal-panel, .signal-caption { margin: 0 auto; }
    .case-flex { flex-direction: column; }
}

@media (max-width: 768px) {
    .section { padding: 4.5rem 0; }
    .section-title { font-size: 2rem; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 4.5rem; right: 0;
        width: 75%; max-width: 300px; height: calc(100vh - 4.5rem);
        background: rgba(10,10,12,0.98); backdrop-filter: blur(14px);
        border-left: 1px solid var(--border);
        flex-direction: column; align-items: flex-start; padding: 2rem; gap: 1.5rem;
        transform: translateX(100%); transition: transform var(--speed) var(--ease);
    }
    .nav-menu.is-open { transform: translateX(0); }
    .timeline-item { padding-right: 2.25rem; }
    .company-logo { display: none !important; }
    .case-item { padding: 1.75rem; }
    .signal-stats { grid-template-columns: 1fr; gap: 0.75rem; }
    .signal-stats > div { display: flex; align-items: baseline; justify-content: space-between; padding-top: 0.75rem; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-item { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/3; }
    .data-table { font-size: 0.85rem; }
    .data-table th, .data-table td { padding: 0.6rem 0.6rem; }
}
