/* HafBross: the artwork carries the colour; the interface stays quiet. */
:root {
    --atelier-ink: #0b0d10;
    --atelier-surface: #14171b;
    --atelier-paper: #f0ece3;
    --atelier-muted: #a5a6a9;
    --atelier-accent: #d0ad78;
    --atelier-line: rgba(232, 222, 206, .14);
    --atelier-ease: cubic-bezier(.2, .75, .2, 1);
}

html { scroll-padding-top: 108px; }
.atelier-site { background: var(--atelier-ink); color: var(--atelier-paper); }
.atelier-site.cyber-bg-mesh { background-image: none; }
.atelier-site > .bg-cyber-grid { display: none; }
.atelier-site ::selection { background: #d0ad78; color: #121212; }
.atelier-site ::-webkit-scrollbar-track { background: #0b0d10; }
.atelier-site ::-webkit-scrollbar-thumb:hover { background: var(--atelier-accent); }
.atelier-site.custom-cursor-active * { cursor: revert !important; }
.atelier-site .studio-cursor-dot, .atelier-site .studio-cursor-ring { display: none; }
.atelier-site :focus-visible { outline: 2px solid var(--atelier-accent); outline-offset: 5px; }
.atelier-site .font-mono { letter-spacing: .06em; }
.atelier-site .text-primary { color: var(--atelier-accent); }
.atelier-site .text-gradient-primary,
.atelier-site .text-gradient-cyan,
.atelier-site .text-gradient-purple,
.atelier-site .text-gradient-gold {
    color: var(--atelier-accent);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.atelier-site .bg-primary { background-color: var(--atelier-accent); color: #171717; }
.atelier-site [class~="bg-primary/10"], .atelier-site [class~="bg-primary/20"] { background-color: rgba(208, 173, 120, .1); }
.atelier-site [class~="border-primary/20"], .atelier-site [class~="border-primary/30"] { border-color: rgba(208, 173, 120, .25); }
.atelier-site [class*="hover:border-primary/"]:hover { border-color: rgba(208, 173, 120, .5); }
.atelier-site .hover\:text-primary:hover { color: var(--atelier-accent); }
.atelier-site .hover\:bg-primary:hover { background: var(--atelier-accent); }
.atelier-site .hover\:bg-primary-hover:hover { background: var(--atelier-accent); color: #171717; }
.atelier-site .btn-cyber-primary {
    background: var(--atelier-paper);
    color: #16181c;
    border: 1px solid var(--atelier-paper);
    border-radius: 6px;
    box-shadow: none;
}
.atelier-site .btn-cyber-primary:hover { background: var(--atelier-accent); border-color: var(--atelier-accent); box-shadow: none; }
.atelier-site .btn-cyber-glass { background: transparent; border-color: var(--atelier-line); border-radius: 6px; backdrop-filter: none; }
.atelier-site .spotlight-card::before { display: none; }
.atelier-site .tilt-card { transform: none !important; will-change: auto; }
.atelier-site [class*="shadow-[0_0_"] { box-shadow: none; }
.atelier-site .animate-ping { animation: none; }

/* Navigation and the rest of the current content inherit the new art direction. */
#mainHeader { padding-top: 18px; }
#mainHeader nav { background: rgba(11, 13, 16, .9); border-color: var(--atelier-line); border-radius: 8px; box-shadow: none; }
#mainHeader nav > a > div:first-child,
.atelier-site footer a > .bg-gradient-to-br { background: var(--atelier-accent); box-shadow: none; }
#mainHeader nav > a > div:first-child > div { background: #14171b; }
#mainHeader nav > .lg\:flex a { font-size: 12px; }
.atelier-site footer { background: #090b0d; backdrop-filter: none; }
.atelier-site footer > .absolute { display: none; }
.atelier-site footer .rounded-full { border-radius: 5px; }
.atelier-site footer [class*="bg-primary/"] { background: rgba(208, 173, 120, .09); }
.atelier-site .glass-panel { background: #171a1e; border-color: var(--atelier-line); box-shadow: none; }
.atelier-site .glass-panel-hover:hover { border-color: rgba(208, 173, 120, .5); box-shadow: none; }
.atelier-site .project-slide.opacity-0 { pointer-events: none; }
.atelier-site .project-slide.opacity-100 { pointer-events: auto; z-index: 1; }
.atelier-site .tech-chip { border-radius: 4px; }
.atelier-site .tech-chip:hover { border-color: var(--atelier-accent); box-shadow: none; }
.atelier-site:not(.page-home) h1 { font-weight: 600; letter-spacing: -.04em; }
.atelier-site:not(.page-home) h2, .atelier-site:not(.page-home) h3 { font-weight: 500; }
.atelier-site:not(.page-home) .spotlight-card { background: var(--atelier-surface); border-color: var(--atelier-line); border-radius: 9px; box-shadow: none; backdrop-filter: none; }
.atelier-site:not(.page-home) .spotlight-card:hover { border-color: rgba(208, 173, 120, .4); }
.atelier-site .reveal-element { transition-duration: .7s; }

/* Full-bleed studio world: video is a background, never a boxed player. */
.atelier-hero {
    min-height: 950px;
    padding: 180px 0 40px;
    display: block;
    isolation: isolate;
    background: #0b0d10;
}

.atelier-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #0b0d10;
}
.atelier-grain { position: absolute; inset: 0; z-index: 3; opacity: .045; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E"); }
.atelier-hero__content { pointer-events: none; text-align: left; }
.atelier-hero__content a, .atelier-hero__catalog { pointer-events: auto; }
.atelier-hero__copy { position: relative; z-index: 4; width: 40%; min-height: 560px; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.atelier-hero__copy > div:first-child { margin-bottom: 26px; padding: 0 0 10px; background: none; border: none; border-bottom: 1px solid var(--atelier-line); border-radius: 0; backdrop-filter: none; }
.atelier-hero__copy > div:first-child > span:first-child { display: none; }
.atelier-hero__copy > div:first-child > span:last-child { color: var(--atelier-accent); font-size: 10px; letter-spacing: .14em; }
.atelier-hero__copy h1 { max-width: 630px; margin: 0 0 28px; font-size: clamp(42px, 4.3vw, 66px); line-height: 1.06; font-weight: 600; letter-spacing: -.052em; color: var(--atelier-paper); }
.atelier-hero__copy h1 br { display: none; }
.atelier-hero__copy h1 .text-gradient-primary { color: var(--atelier-accent); }
.atelier-hero__copy > p { margin: 0 0 28px; max-width: 470px; color: #c0bfba; font-size: 17px; line-height: 1.75; font-weight: 400; }
.atelier-hero__copy > .flex-wrap { justify-content: flex-start; gap: 7px; margin-bottom: 30px; }
.atelier-hero__copy > .flex-wrap > span { border: none; border-left: 1px solid #6a5942; border-radius: 0; padding: 4px 9px; color: #a7a6a2; background: none; font-size: 10px; }
.atelier-hero__copy > div:last-child { align-items: flex-start; justify-content: flex-start; gap: 12px; margin-bottom: 0; }
.atelier-hero__copy > div:last-child a { padding: 14px 18px; font-size: 10px; letter-spacing: .08em; }
.atelier-hero__copy .animate-bounce { animation: none; }

/* Existing database-driven hero preview is now a compact product index. */
.atelier-hero__catalog { position: relative; z-index: 4; display: block; max-width: none; margin-top: 50px; padding: 24px 0 0; border-top: 1px solid var(--atelier-line); perspective: none; }
.atelier-hero__catalog > div { gap: 20px; }
.atelier-hero__catalog .tilt-card { padding: 0 18px 0 0; min-height: 92px; display: grid; grid-template-columns: 124px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 17px; border: none; border-right: 1px solid var(--atelier-line); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
.atelier-hero__catalog .tilt-card:last-child { border-right: none; }
.atelier-hero__catalog .tilt-card > div:first-child { grid-row: 1 / 3; margin: 0; aspect-ratio: auto; height: 82px; border: 1px solid var(--atelier-line); border-radius: 5px; }
.atelier-hero__catalog .tilt-card > div:first-child > .absolute { display: none; }
.atelier-hero__catalog h3 { align-self: end; font-size: 16px; font-weight: 500; color: var(--atelier-paper); }
.atelier-hero__catalog p { font-size: 11px; line-height: 1.6; margin-top: 5px; }

/* Landscape across the entire hero, graded into the site's ink at its edges. */
.atelier-stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.atelier-video-frame { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.atelier-video-poster, .atelier-hero-video { display: block; width: 120%; max-width: none; height: 100%; position: absolute; left: 0; top: 0; object-fit: cover; object-position: left 30%; filter: saturate(.85) brightness(.82); }
.atelier-hero-video { opacity: 0; transition: opacity .7s ease; }
.atelier-stage.is-video-ready .atelier-hero-video { opacity: 1; }
.atelier-video-frame::after { content: ''; position: absolute; inset: 0; z-index: 2; background:
    linear-gradient(90deg, #0b0d10 0%, rgba(11, 13, 16, .94) 14%, rgba(11, 13, 16, .84) 31%, rgba(11, 13, 16, .43) 48%, rgba(11, 13, 16, .08) 68%, rgba(11, 13, 16, .25) 100%),
    linear-gradient(0deg, #0b0d10 0%, rgba(11, 13, 16, .97) 13%, rgba(11, 13, 16, .3) 29%, transparent 48%, rgba(11, 13, 16, .16) 73%, rgba(11, 13, 16, .82) 100%);
}
.atelier-scene-controls { position: absolute; right: max(32px, calc((100vw - 1280px) / 2 + 32px)); bottom: 180px; z-index: 4; display: flex; justify-content: flex-end; align-items: center; gap: 8px; pointer-events: auto; }
.atelier-scene-controls button { display: grid; place-items: center; width: 44px; height: 44px; color: #ccc7be; border: 1px solid var(--atelier-line); border-radius: 50%; background: rgba(11, 13, 16, .5); transition: color .2s, border-color .2s; }
.atelier-scene-controls button:hover { color: #f4e7cf; border-color: #88765b; }
.atelier-scene-controls button:disabled { opacity: .3; cursor: default; }
.atelier-scene-controls button svg { width: 16px; height: 16px; }
.atelier-scene-controls span { color: #a3a09a; margin-right: 14px; font-size: 9px; letter-spacing: .14em; }
.atelier-stage.is-video-unavailable .atelier-scene-controls { visibility: hidden; }

/* Calm surfaces around the scene, using the existing page content. */
.page-home > section:not(.atelier-hero) { position: relative; }
.page-home > section:not(.atelier-hero) > .absolute { display: none; }
.page-home > section:nth-of-type(2) { border-top: 1px solid var(--atelier-line); background: #101216; padding: 35px 0; backdrop-filter: none; }
.page-home > section:nth-of-type(2) .spotlight-card { padding: 17px 10px; border: none; background: none; border-radius: 0; }
.page-home > section:nth-of-type(2) .spotlight-card > div:first-child { width: 42px; height: 42px; background: none; border: none; color: var(--atelier-accent); }
.page-home > section:nth-of-type(2) .stat-counter { font-size: 31px; font-weight: 500; color: var(--atelier-paper); }
.page-home section:not(.atelier-hero) > div > .text-center { max-width: none; text-align: left; margin-left: 0; }
.page-home section:not(.atelier-hero) > div > .text-center > .inline-flex { padding: 0; background: none; border: none; color: var(--atelier-accent); border-radius: 0; }
.page-home section:not(.atelier-hero) h2 { color: var(--atelier-paper); font-size: clamp(32px, 3.3vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.page-home #projects { padding-top: 110px; padding-bottom: 110px; }
.page-home #projects > div > .flex-wrap { justify-content: flex-start; gap: 22px; border-bottom: 1px solid var(--atelier-line); }
.page-home .filter-tab-btn { padding: 11px 0 17px; border: none; border-radius: 0; background: none; box-shadow: none; color: #a4a39f; font-size: 11px; }
.page-home .filter-tab-btn.active { color: var(--atelier-accent); border-bottom: 2px solid var(--atelier-accent); background: none; }
#projectsGrid { gap: 25px; }
.atelier-site .project-showcase-card { background: #15181c; border-color: var(--atelier-line); border-radius: 9px; box-shadow: none; backdrop-filter: none; }
.atelier-site .project-showcase-card:hover { border-color: rgba(208, 173, 120, .48); }
.atelier-site .project-showcase-card h3 { font-weight: 500; letter-spacing: -.02em; }
.atelier-site .project-showcase-card .rounded-full { border-radius: 4px; }
.page-home #services { border-color: var(--atelier-line); background: #14171a; padding-top: 100px; padding-bottom: 100px; }
.page-home #services .spotlight-card { border: none; border-top: 1px solid #5f5548; border-radius: 0; padding: 30px 10px 20px 0; background: none; }
.page-home #services .spotlight-card > div:first-child { background: none; border: none; color: var(--atelier-accent); }
.page-home #roadmap .spotlight-card { background: #14171b; border-color: var(--atelier-line); border-radius: 8px; }
.page-home #team .spotlight-card { background: #14171b; border-color: var(--atelier-line); border-radius: 8px; }
.page-home #team h3 { font-weight: 500; }
.page-home > section:last-of-type > div > div { border-radius: 10px; border-color: var(--atelier-line); background: #191c20; box-shadow: none; }
.page-home > section:last-of-type > div > div > .absolute { display: none; }
.atelier-site .marquee-track { animation-duration: 65s; }
.atelier-site .marquee-track > div { background: none; border: none; border-radius: 0; }
.atelier-site .marquee-track i { color: #a79883; }

@media (max-width: 1199px) {
    .atelier-hero { min-height: 880px; padding-top: 155px; }
    .atelier-hero__copy h1 { font-size: 46px; }
    .atelier-hero__copy > p { font-size: 15px; }
    .atelier-hero__catalog .tilt-card { grid-template-columns: 90px 1fr; column-gap: 12px; }
}
@media (max-width: 899px) {
    #mainHeader { padding-top: 12px; }
    .atelier-hero { padding-top: 135px; min-height: auto; display: block; }
    .atelier-hero__copy { width: 100%; min-height: 0; max-width: 630px; }
    .atelier-hero__copy h1 { max-width: 650px; font-size: 53px; }
    .atelier-hero__copy > p { max-width: 580px; }
    .atelier-hero__copy > div:last-child { flex-direction: row; }
    .atelier-video-poster, .atelier-hero-video { width: 110%; height: auto; aspect-ratio: 16 / 9; left: -5%; top: auto; bottom: 250px; object-fit: contain; object-position: center; mask-image: linear-gradient(0deg, transparent, #000 18%, #000 84%, transparent); }
    .atelier-video-frame::after { background:
        linear-gradient(0deg, #0b0d10 0%, #0b0d10 13%, rgba(11, 13, 16, .64) 24%, transparent 39%, rgba(11, 13, 16, .25) 55%, rgba(11, 13, 16, .95) 76%, #0b0d10 100%),
        linear-gradient(90deg, rgba(11, 13, 16, .6), transparent 30%, transparent 75%, rgba(11, 13, 16, .6));
    }
    .atelier-scene-controls { right: 25px; bottom: 210px; }
    .atelier-hero__content { display: contents; }
    .atelier-hero__copy { margin: 0 25px; width: calc(100% - 50px); order: 1; }
    .atelier-hero__catalog { margin: 350px 25px 0; }
    .atelier-hero__catalog > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .atelier-hero__catalog .tilt-card { display: block; padding-right: 10px; }
    .atelier-hero__catalog .tilt-card > div:first-child { height: 85px; margin-bottom: 12px; }
    .atelier-hero__catalog h3 { font-size: 14px; }
    .atelier-hero__catalog p { display: none; }
}
@media (max-width: 599px) {
    .atelier-hero { padding-top: 112px; padding-bottom: 30px; }
    .atelier-hero__copy { margin: 0 20px; width: calc(100% - 40px); }
    .atelier-hero__copy > div:first-child { margin-bottom: 18px; padding-bottom: 8px; }
    .atelier-hero__copy h1 { font-size: clamp(34px, 9.2vw, 48px); line-height: 1.12; margin-bottom: 20px; }
    .atelier-hero__copy > p { font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
    .atelier-hero__copy > .flex-wrap { margin-bottom: 18px; }
    .atelier-hero__copy > div:last-child { flex-wrap: wrap; gap: 8px; }
    .atelier-hero__copy > div:last-child a { width: calc((100% - 8px) / 2); padding: 12px 8px; font-size: 8px; gap: 5px; }
    .atelier-hero__copy > div:last-child a svg { width: 12px; height: 12px; }
    .atelier-video-poster, .atelier-hero-video { width: 140%; left: -20%; }
    .atelier-scene-controls { right: 20px; left: 20px; bottom: 210px; }
    .atelier-scene-controls span { font-size: 8px; margin-right: auto; }
    .atelier-hero__catalog { margin: 350px 20px 0; padding-top: 19px; }
    .atelier-hero__catalog > div { gap: 12px; }
    .atelier-hero__catalog .tilt-card { min-height: 100px; padding-right: 8px; }
    .atelier-hero__catalog .tilt-card > div:first-child { height: 58px; margin-bottom: 9px; }
    .atelier-hero__catalog h3 { white-space: normal; font-size: 11px; line-height: 1.4; }
    .page-home > section:nth-of-type(2) { padding: 22px 0; }
    .page-home > section:nth-of-type(2) .spotlight-card { gap: 7px; }
    .page-home > section:nth-of-type(2) .spotlight-card > div:first-child { width: 24px; height: 24px; }
    .page-home > section:nth-of-type(2) .stat-counter { font-size: 25px; }
    .page-home #projects { padding-top: 70px; padding-bottom: 70px; }
    .page-home #projects > div > .flex-wrap { gap: 14px; }
    .page-home .filter-tab-btn { font-size: 9px; }
    .page-home #services { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .atelier-site *, .atelier-site *::before, .atelier-site *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .atelier-site .reveal-element { opacity: 1; transform: none; }
    .atelier-scene-controls { display: none; }
}
