/* ==========================================================================
   Awakeye depth layer: liquid glass, bento grids and soft 3D.
   Shared by concepts F and G. All colour comes from the concept's tokens.
   ========================================================================== */
:root {
  --r-16: 26px;
  --r-12: 18px;
  --shade: color-mix(in srgb, var(--dark) 30%, transparent);
  --soft-shadow: 0 1px 1px color-mix(in srgb, var(--dark) 5%, transparent), 0 10px 22px -12px color-mix(in srgb, var(--dark) 16%, transparent), 0 34px 64px -34px var(--shade);
  --soft-shadow-up: 0 2px 2px color-mix(in srgb, var(--dark) 5%, transparent), 0 18px 34px -14px color-mix(in srgb, var(--dark) 22%, transparent), 0 54px 90px -40px color-mix(in srgb, var(--dark) 42%, transparent);
  --glass-rim: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(255,255,255,.2), inset 1px 0 0 rgba(255,255,255,.22), inset -1px 0 0 rgba(255,255,255,.22);
  --glass-sheen: linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.05) 42%, rgba(255,255,255,.16));
}

/* ---------- Liquid glass: nav ---------- */
body .site-header .nav {
  background: var(--glass-sheen), rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-rim), 0 18px 44px -20px color-mix(in srgb, var(--dark) 55%, transparent);
  transition: height .4s var(--ease), background-color .4s, box-shadow .4s;
}
.nav-logo, .logo-mark, .nav-links a, .nav-burger span { transition: color .3s, background-color .3s; }
.nav-on-dark .site-header .nav {
  background: var(--glass-sheen), rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.1), inset 1px 0 0 rgba(255,255,255,.14), inset -1px 0 0 rgba(255,255,255,.14), 0 18px 44px -20px rgba(0,0,0,.6);
}
.nav-on-dark .nav-logo, .nav-on-dark .logo-mark, .nav-on-dark .nav-links a { color: #fff; }
.nav-on-dark .nav-links a:hover { background: rgba(255,255,255,.12); }
.nav-on-dark .nav-burger { background: rgba(255,255,255,.14); }
.nav-on-dark .nav-burger span { background: #fff; }

/* ---------- Soft buttons ---------- */
.btn { border-radius: 14px; }
.btn-orange { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 3px rgba(0,0,0,.12), 0 14px 26px -12px color-mix(in srgb, var(--orange) 70%, transparent); }
.btn-white { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px color-mix(in srgb, var(--dark) 6%, transparent), 0 12px 24px -14px var(--shade); }
.arrow-box { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 2px rgba(0,0,0,.12); border-radius: 9px; }
.arrow-box-lg { border-radius: 13px; }
.btn.hero-cta {
  background: var(--glass-sheen), rgba(255,255,255,.09);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.12), inset 1px 0 0 rgba(255,255,255,.14), inset -1px 0 0 rgba(255,255,255,.14), 0 20px 40px -22px rgba(0,0,0,.7);
}

/* ---------- Soft 3D hero ---------- */
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.h3d { position: absolute; display: block; pointer-events: none; aspect-ratio: 1; background: center / contain no-repeat; }
.h3d-main { left: clamp(20px, 4vw, 72px); bottom: clamp(40px, 9vh, 96px); width: clamp(170px, 19vw, 300px); background-image: url(../img/soft/eye.webp); }
.has-3d .h3d { background-image: none; }
.has-3d .hero-mark svg { opacity: 0; }
.hero-video {
  padding: 7px; border-radius: 22px;
  background: var(--glass-sheen), rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 30px 60px -28px rgba(0,0,0,.85);
}
.hero-video video { border-radius: 15px; }
.hero-video-meta { left: 17px; bottom: 15px; border-radius: 8px; }
@media (max-width: 720px) {
  .h3d-main { left: 14px; bottom: 26px; width: 136px; }
}

/* ---------- Stacking panels ---------- */
.panel { box-shadow: var(--glass-rim), 0 -10px 34px -22px var(--shade), var(--soft-shadow); }
.panel-media { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dark) 6%, transparent); }
.panel-media:hover img { transform: none; }
.panel-media .media-card {
  left: auto; right: 14px; bottom: 14px; width: min(58%, 340px); padding: 16px 62px 16px 18px;
  background: var(--glass-sheen), rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--glass-rim), 0 22px 44px -22px color-mix(in srgb, var(--dark) 60%, transparent);
}
.panel-media .media-title { margin-top: 0; font-size: 19px; }
.panel-media .media-sub { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.panel-media .media-card .arrow-box-lg { top: 14px; right: 14px; }
@media (max-width: 960px) { .panel-media .media-card { left: auto; } }

/* ---------- Bento tiles ---------- */
.tile {
  position: relative; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--r-16);
  background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--bg) 55%, #fff));
  color: var(--text);
  box-shadow: inset 0 1px 0 #fff, var(--soft-shadow);
}
.tile-dark { background: radial-gradient(120% 130% at 12% 0%, color-mix(in srgb, var(--dark) 82%, #fff), var(--dark) 62%); color: var(--text-on-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), var(--soft-shadow); }
.tile-accent { background: linear-gradient(150deg, color-mix(in srgb, var(--orange) 86%, #fff), var(--orange) 55%, var(--orange-dark)); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), var(--soft-shadow); }
.tile-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2.1vw, 31px); line-height: 1.1; letter-spacing: -0.015em; color: var(--dark); }
.tile-dark .tile-title { color: #fff; }
.tile-accent .tile-title { color: inherit; }
.tile-copy p { margin-top: 12px; font-size: 16px; color: var(--text-2); }
.tile-dark .tile-copy p { color: var(--text-on-dark); }
.tile-3d { display: block; flex: none; filter: drop-shadow(0 22px 22px color-mix(in srgb, var(--dark) 26%, transparent)); transition: transform .9s var(--ease); }
.tile:hover .tile-3d { transform: translateY(-6px) rotate(-2deg) scale(1.03); }

/* Tilt + moving light (only where the script enables it) */
.js [data-tilt].is-in { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js [data-tilt].is-tilting { transition: opacity .7s var(--ease), transform .14s linear, box-shadow .4s; box-shadow: var(--glass-rim), var(--soft-shadow-up); z-index: 2; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.2), transparent 62%);
  transition: opacity .4s;
}
[data-tilt].is-tilting::after { opacity: 1; }

/* ---------- Why bento ---------- */
.why-inner { max-width: var(--max); }
.why-intro { max-width: 760px; }
.why-bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; text-align: left; }
.why-a { grid-column: span 4; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; min-height: 300px; }
.why-a .tile-copy { max-width: 470px; }
.why-a .tile-3d { width: clamp(170px, 19vw, 270px); height: auto; margin: -14px -6px -14px 0; }
.why-b { grid-column: span 2; grid-row: span 2; }
.why-b .tile-3d { width: min(100%, 300px); height: auto; margin: 0 auto 16px; }
.why-b .tile-copy { margin-top: auto; }
.why-c { grid-column: span 2; }
.why-c .tile-3d { width: 128px; height: auto; margin: -8px 0 8px -10px; }
.why-d { grid-column: span 2; justify-content: flex-end; min-height: 260px; }
.why-d .tile-3d { position: absolute; right: 0; top: -6%; width: 62%; height: auto; }
.why-d .tile-title { position: relative; max-width: 8em; padding-right: 56px; }
.why-d .arrow-box-lg { position: absolute; right: 22px; bottom: 22px; background: var(--dark); color: var(--orange); }
.tile-accent .arrow-box svg { animation: none; }
.why-d:hover .arrow-box svg { animation: arrowSlide .5s var(--ease) both; }

/* ---------- Work bento: full screenshots, never cropped ---------- */
.work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.work-card { grid-column: span 3; padding: 10px; box-shadow: inset 0 1px 0 #fff, var(--soft-shadow); }
.work-card.s2 { grid-column: span 2; }
.work-card.is-wide { grid-column: 1 / -1; }
.work-card .work-img { border-radius: 18px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dark) 6%, transparent); }
.work-card:hover .work-img img { transform: none; }
.work-card .media-card { background: transparent; padding: 16px 64px 12px 12px; }
.work-card .media-card .arrow-box-lg { top: 14px; right: 8px; }
.work-card.s2 .media-title { font-size: 19px; }
.work-card.s2 .media-sub { font-size: 14px; }
@media (min-width: 721px) {
  .work-card.is-wide .media-card { padding: 24px 28px; }
}
@media (max-width: 1100px) {
  .work-card, .work-card.s2 { grid-column: span 3; }
  .work-card.is-wide { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-card, .work-card.s2, .work-card.is-wide { grid-column: auto; }
}

/* Scuola DJ Online: the site's own running ticker and drifting sparks, live on the screenshot.
   Sizes follow the original at 1600px: band at 88.7% height, 26px type, 28s per loop. */
.work-img.has-ticker { position: relative; container-type: inline-size; }
.sdo-ticker {
  position: absolute; left: 0; right: 0; top: 88.7%; height: 6.7%; overflow: hidden;
  display: flex; align-items: center; background: #D6FF3D; color: #0B0714; white-space: nowrap;
}
.sdo-run {
  display: inline-flex; gap: 2.375cqw; flex: none;
  font-family: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  font-weight: 900; font-size: 1.625cqw; line-height: 1; text-transform: uppercase;
  animation: sdoRun 28s linear infinite;
}
.sdo-run span::after { content: "✦"; margin-left: 2.375cqw; font-size: 1cqw; vertical-align: .25cqw; }
@keyframes sdoRun { to { transform: translateX(-50%); } }
.sdo-sparks { position: absolute; left: 0; top: 0; width: 100%; height: 88.7%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sdo-run { animation: none; } }

/* ---------- Band: liquid glass over soft objects ---------- */
.band { padding: clamp(90px, 11vw, 150px) var(--gutter); }
.band-obj { position: absolute; height: auto; pointer-events: none; }
.band-obj-b { width: clamp(220px, 25vw, 370px); left: 50%; top: 50%; margin: -20px 0 0 330px; animation-delay: -4s; }
@keyframes softFloat { from { transform: translate3d(0, -12px, 0) rotate(-3deg); } to { transform: translate3d(0, 14px, 0) rotate(4deg); } }
.band-glass {
  position: relative; max-width: 1000px; margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) clamp(22px, 5vw, 64px);
  border-radius: 40px;
  background: var(--glass-sheen), color-mix(in srgb, var(--dark) 42%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(175%);
  backdrop-filter: blur(14px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46), inset 0 -1px 0 rgba(255,255,255,.12), inset 1px 0 0 rgba(255,255,255,.16), inset -1px 0 0 rgba(255,255,255,.16), 0 50px 90px -44px rgba(0,0,0,.8);
}
@media (max-width: 860px) {
  .band-obj-b { margin: 50px 0 0 30px; width: 190px; }
}

/* ---------- About bento ---------- */
.about-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
.about-a { grid-column: span 8; }
.about-a p + p { margin-top: 18px; color: var(--text-2); max-width: 720px; }
.about-a .text-link { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.about-b { grid-column: span 4; }
.about-c { grid-column: span 6; flex-direction: row; align-items: center; gap: 12px; }
.about-c .tile-3d { width: clamp(150px, 15vw, 220px); height: auto; margin-right: -12px; }
.about-d, .about-e, .about-f { grid-column: span 2; }
.tile-stat { margin: 0; justify-content: space-between; gap: 22px; min-height: 230px; }
.tile-label { font-size: 15px; line-height: 1.35; color: var(--text-2); }
.tile-accent .tile-label { color: inherit; font-size: 17px; }
.tile-num { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(60px, 6vw, 88px); line-height: .95; letter-spacing: -0.03em; color: var(--dark); }
.tile-accent .tile-num { color: inherit; font-size: clamp(96px, 11vw, 168px); }
@media (max-width: 1100px) {
  .about-a, .about-c { grid-column: 1 / -1; }
  .about-b { grid-column: 1 / -1; min-height: 0; }
  .about-d, .about-e, .about-f { grid-column: span 4; }
}
@media (max-width: 860px) {
  .why-a, .why-b, .why-c, .why-d { grid-column: span 3; grid-row: auto; }
  .why-a { grid-column: 1 / -1; }
  .why-b { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
  .why-b .tile-3d { width: 150px; flex: none; margin: 0; }
  .why-b .tile-copy { margin: 0; }
}
@media (max-width: 600px) {
  .why-c, .why-d { grid-column: 1 / -1; }
  .why-a, .why-b, .about-c { flex-direction: column; align-items: flex-start; }
  .why-a .tile-3d, .about-c .tile-3d { width: 170px; margin: 0; align-self: flex-end; }
  .why-b .tile-3d { order: 2; align-self: flex-end; }
  .why-d { min-height: 210px; }
  .why-d .tile-3d { width: 48%; right: -4%; }
  .about-d, .about-e, .about-f { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
  .about-d .tile-label, .about-e .tile-label, .about-f .tile-label { order: 2; text-align: right; max-width: 62%; }
}

/* ---------- Contact ---------- */
.form {
  background: var(--glass-sheen), rgba(255,255,255,.82);
  box-shadow: var(--glass-rim), var(--soft-shadow);
}
.field input, .field textarea, .field select { border-radius: 13px; background: rgba(255,255,255,.72); }

/* ---------- Language switch ---------- */
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-burger { margin-left: 8px; }
.lang-switch { display: flex; align-items: center; gap: 1px; }
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 34px; min-height: 44px; border-radius: 12px;
  font-size: 13px; font-weight: 500; color: var(--text-2); transition: color .3s, background-color .2s;
}
.lang-switch a:hover { background: color-mix(in srgb, var(--dark) 8%, transparent); }
.lang-switch a[aria-current="true"] { color: var(--dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.nav-on-dark .lang-switch a { color: rgba(255,255,255,.72); }
.nav-on-dark .lang-switch a:hover { background: rgba(255,255,255,.12); }
.nav-on-dark .lang-switch a[aria-current="true"] { color: #fff; }
.nav-links { flex: 1; justify-content: center; }
html[lang="es"] .nav-links a, html[lang="nl"] .nav-links a { padding: 0 11px; }
@media (max-width: 1140px) { .nav-links a { padding: 0 9px; font-size: 15px; } }

/* Longer headlines in Dutch and Spanish */
.panel-title, .tile-title, .media-title { overflow-wrap: break-word; hyphens: manual; }
html[lang="nl"] .hero-title { font-size: clamp(40px, 5.6vw, 84px); }
html[lang="nl"] .footer-giant, html[lang="es"] .footer-giant { font-size: clamp(44px, 8.4vw, 122px); }
@media (max-width: 720px) { html[lang="nl"] .hero-title { font-size: clamp(38px, 10.8vw, 52px); } }

/* ---------- Fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body .site-header .nav, .panel-media .media-card, .form { background: #fff; }
  .nav-on-dark .site-header .nav, .btn.hero-cta, .band-glass, .hero-video { background: color-mix(in srgb, var(--dark) 80%, #fff); }
}
@media (prefers-reduced-motion: reduce) {
  .tile:hover .tile-3d { transform: none; }
}
