@font-face {
    font-family: 'Triomphe-Regular';
    src: url('/font/Triomphe-Regular.woff') format('woff'),
         url('/font/Triomphe-Regular.ttf') format('truetype'),
         url('/font/Triomphe-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Triomphe-Light';
    src: url('/font/Triomphe-Light.woff2') format('woff2'),
         url('/font/Triomphe-Light.woff') format('woff'),
         url('/font/Triomphe-Light.ttf') format('truetype'),
         url('/font/Triomphe-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

html { scroll-behavior: smooth; }
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
section { scroll-margin-top: 88px; }

.grid-bg {
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 40%, transparent 80%);
            mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 40%, transparent 80%);
}
.hero-glow {
    background:
        radial-gradient(55% 45% at 15% 10%, rgba(0, 51, 102, 0.55), transparent 60%),
        radial-gradient(50% 40% at 85% 10%, rgba(34, 211, 238, 0.06), transparent 65%),
        radial-gradient(40% 30% at 70% 80%, rgba(0, 51, 102, 0.35), transparent 70%);
}

.brand-panel {
    background:
        radial-gradient(120% 80% at 30% 20%, rgba(34, 211, 238, 0.18), transparent 60%),
        linear-gradient(140deg, #003366 0%, #002448 60%, #001B38 100%);
}
.brand-panel::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 85%);
    pointer-events: none;
}

.mac-window {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #0A1224;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 30px 50px -25px rgba(0, 0, 0, 0.6),
        0 10px 30px -15px rgba(0, 51, 102, 0.3);
}
.mac-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #152342 0%, #0D1730 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mac-dot {
    width: 11px; height: 11px;
    border-radius: 9999px;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.mac-dot.red    { background: #FF5F57; }
.mac-dot.yellow { background: #FEBC2E; }
.mac-dot.green  { background: #28C840; }
.mac-url {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin: 0 8px 0 16px;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mac-body {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0A1224;
    overflow: hidden;
}
.mac-body img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .3s ease; }
.mac-body img[data-loaded="false"] { opacity: 0; }

.card-hover { position: relative; transition: border-color .25s ease, background-color .25s ease, transform .25s ease; }
.card-hover:hover { border-color: rgba(34, 211, 238, 0.35); background-color: rgba(16, 27, 51, 0.55); }

.link-underline {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .25s ease;
}
.link-underline:hover { background-size: 100% 1px; }

.chip { border: 1px solid rgba(148, 163, 184, 0.18); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

.wordmark {
    font-family: 'Triomphe-Light', 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 15% 10%, rgba(34, 211, 238, 0.14), transparent 60%),
        linear-gradient(140deg, #003366 0%, #002448 55%, #001B38 100%);
    border-color: rgba(34, 211, 238, 0.25);
}
.feature-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 0% 0%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 100% 80% at 0% 0%, #000 30%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card:hover { border-color: rgba(34, 211, 238, 0.45); background-color: transparent; }

.dossier {
    position: relative;
    border: 1px solid rgba(30, 106, 168, 0.35);
    border-radius: 20px;
    background:
        radial-gradient(50% 40% at 100% 0%, rgba(34, 211, 238, 0.04), transparent 60%),
        radial-gradient(60% 45% at 0% 100%, rgba(0, 51, 102, 0.28), transparent 70%),
        linear-gradient(180deg, rgba(0, 36, 72, 0.22) 0%, rgba(10, 18, 36, 0.55) 60%, rgba(5, 10, 20, 0.75) 100%);
}
.dossier::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 95%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 95%);
    pointer-events: none;
    z-index: 0;
}
.dossier > * { position: relative; z-index: 1; }
@media (max-width: 639.98px) {
    .dossier {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
}

.shot-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.shot-slider::-webkit-scrollbar { display: none; }
.shot-slider > figure {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 85%;
}
.shot-slider > figure:last-child { padding-right: 1rem; }

@media (hover: hover) and (pointer: fine) {
    .shot-slider {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }
    .shot-slider > figure { width: 100%; flex-shrink: initial; scroll-snap-align: none; }
    .shot-slider > figure:last-child { padding-right: 0; }
}

@media (min-width: 768px) {
    .shot-slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }
    .shot-slider > figure { width: auto; flex-shrink: initial; }
    .shot-slider > figure:last-child { padding-right: 0; }
}

:focus-visible {
    outline: 2px solid rgb(var(--c-accent));
    outline-offset: 2px;
    border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050A14; }
::-webkit-scrollbar-thumb { background: #111E3A; border-radius: 6px; border: 2px solid #050A14; }
::-webkit-scrollbar-thumb:hover { background: #182A4A; }

/* Contact form */
.site-form .form-field { margin-bottom: 1.25rem; }
.site-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #E2E8F0;
    margin-bottom: 0.4rem;
}
.site-form input[type="text"],
.site-form input[type="email"],
.site-form textarea {
    width: 100%;
    background: rgba(5, 10, 20, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: #F1F5F9;
    font-size: 0.95rem;
    transition: border-color .2s ease;
}
.site-form input:focus,
.site-form textarea:focus {
    outline: none;
    border-color: #22D3EE;
}
.site-form .form-errors, .site-form .form-messages { margin-bottom: 1rem; }
.site-form .buttons button,
.site-form .buttons input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #22D3EE;
    color: #050A14;
    font-weight: 500;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    transition: background .2s ease;
}
.site-form .buttons button:hover,
.site-form .buttons input[type="submit"]:hover { background: #67E8F9; }

/* ---------------- Theme variables ---------------- */
:root {
    --c-ink-950: 5 10 20;
    --c-ink-900: 10 18 36;
    --c-ink-850: 13 23 48;
    --c-ink-800: 17 30 58;
    --c-ink-700: 24 42 74;
    --c-ink-600: 33 54 96;
    --c-white: 255 255 255;
    --c-slate-200: 226 232 240;
    --c-slate-300: 203 213 225;
    --c-slate-400: 148 163 184;
    --c-slate-500: 100 116 139;
    --c-slate-600: 71 85 105;
    --c-slate-700: 51 65 85;
    --c-accent: 34 211 238;
    --c-accent-soft: 103 232 249;
    color-scheme: dark;
}
[data-theme="light"] {
    --c-ink-950: 255 255 255;
    --c-ink-900: 248 250 252;
    --c-ink-850: 241 245 249;
    --c-ink-800: 226 232 240;
    --c-ink-700: 203 213 225;
    --c-ink-600: 148 163 184;
    --c-white: 15 23 42;
    --c-slate-200: 30 41 59;
    --c-slate-300: 51 65 85;
    --c-slate-400: 71 85 105;
    --c-slate-500: 100 116 139;
    --c-slate-600: 148 163 184;
    --c-slate-700: 203 213 225;
    --c-accent: 14 116 144;
    --c-accent-soft: 8 145 178;
    color-scheme: light;
}

/* Theme toggle icons */
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }

/* Footer logo variants */
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* Components that keep a dark, branded background in both themes */
[data-theme="light"] .brand-panel { --c-white: 255 255 255; }

/* Light-mode component overrides */
[data-theme="light"] ::selection { background: rgba(0, 51, 102, 0.85); color: #fff; }
[data-theme="light"] .grid-bg {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}
[data-theme="light"] .hero-glow {
    background:
        radial-gradient(55% 45% at 15% 10%, rgba(0, 51, 102, 0.10), transparent 60%),
        radial-gradient(50% 40% at 85% 10%, rgba(14, 116, 144, 0.06), transparent 65%),
        radial-gradient(40% 30% at 70% 80%, rgba(0, 51, 102, 0.07), transparent 70%);
}
[data-theme="light"] .card-hover:hover {
    border-color: rgba(14, 116, 144, 0.4);
    background-color: rgba(226, 232, 240, 0.55);
}
[data-theme="light"] .feature-card {
    background:
        radial-gradient(120% 80% at 15% 10%, rgba(14, 116, 144, 0.10), transparent 60%),
        linear-gradient(140deg, #E9F1F8 0%, #F3F8FC 55%, #FBFDFE 100%);
    border-color: rgba(14, 116, 144, 0.30);
}
[data-theme="light"] .feature-card::before {
    background-image:
        linear-gradient(to right, rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 51, 102, 0.05) 1px, transparent 1px);
}
[data-theme="light"] .feature-card:hover { border-color: rgba(14, 116, 144, 0.5); }
[data-theme="light"] .dossier {
    border-color: rgba(30, 106, 168, 0.30);
    background:
        radial-gradient(50% 40% at 100% 0%, rgba(14, 116, 144, 0.05), transparent 60%),
        radial-gradient(60% 45% at 0% 100%, rgba(0, 51, 102, 0.06), transparent 70%),
        linear-gradient(180deg, rgba(241, 245, 249, 0.6) 0%, rgba(248, 250, 252, 0.8) 60%, rgba(255, 255, 255, 0.95) 100%);
}
[data-theme="light"] .dossier::before {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}
[data-theme="light"] .chip { border-color: rgba(15, 23, 42, 0.15); }
[data-theme="light"] ::-webkit-scrollbar-track { background: #F1F5F9; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #CBD5E1; border-color: #F1F5F9; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
[data-theme="light"] .site-form input[type="text"],
[data-theme="light"] .site-form input[type="email"],
[data-theme="light"] .site-form textarea {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.18);
    color: #0F172A;
}
[data-theme="light"] .site-form label { color: #1E293B; }
[data-theme="light"] .site-form .buttons button,
[data-theme="light"] .site-form .buttons input[type="submit"] { background: #0E7490; color: #FFFFFF; }
[data-theme="light"] .site-form .buttons button:hover,
[data-theme="light"] .site-form .buttons input[type="submit"]:hover { background: #0891B2; }
