/* CodeSolid: één pagina in twee talen, ontwerp "Ochtendglas" (glazen panelen over zachte lichten).
   Elke tekst staat er twee keer, met lang="en" en lang="nl"; js/lang.js zet data-lang op <html>
   en de regel hieronder verbergt de andere taal. Zonder JavaScript blijft het Engels. */
[data-lang="en"] [lang="nl"],
[data-lang="nl"] [lang="en"] { display: none !important; }

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f3ee;
  --ink: #1b1a18;
  --ink-2: #4d4a45;
  --ink-3: #6b665e;
  --line: rgba(27, 26, 24, 0.09);
  --glass: rgba(255, 255, 255, 0.45);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.92);
  --shadow: 0 30px 70px -40px rgba(70, 45, 20, 0.45);
  --frame-shadow: 0 24px 50px -24px rgba(40, 25, 10, 0.5);
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; position: relative; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 560px) { .wrap { padding: 0 14px; } }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* Glas: een doorschijnend paneel met een witte rand en een lichte boord bovenaan. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 #ffffff;
}

/* De zachte lichten achter het glas */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.glow span { position: absolute; display: block; border-radius: 999px; }
.glow-sun {
  right: -160px; top: -220px; width: 720px; height: 720px;
  background: radial-gradient(circle, #ffb07a 0%, rgba(255, 176, 122, 0) 68%);
  filter: blur(20px); animation: sun 20s ease-in-out infinite;
}
.glow-sky {
  left: -220px; top: 420px; width: 620px; height: 620px; opacity: 0.85;
  background: radial-gradient(circle, #8ec5ff 0%, rgba(142, 197, 255, 0) 66%); filter: blur(24px);
}
.glow-mint {
  left: 45%; top: 640px; width: 520px; height: 520px; opacity: 0.9;
  background: radial-gradient(circle, #a8ecd0 0%, rgba(168, 236, 208, 0) 66%); filter: blur(24px);
}
@keyframes sun { 50% { transform: translate(-40px, 30px); } }
@media (prefers-reduced-motion: reduce) { .glow-sun { animation: none; } }

/* Kop */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--glass-edge);
  box-shadow: 0 6px 16px -6px rgba(60, 40, 20, 0.35), inset 0 1px 0 #ffffff;
}
.brand-mark span { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); }
.brand { gap: 12px; }
.brand-name { font-weight: 600; font-size: 1.65rem; letter-spacing: -0.02em; }
.lang-btn {
  min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink); box-shadow: none;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.8); }

/* Bovenaan: wie, en de diavoorstelling met een collage per app */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 40px;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-weight: 500; font-size: 0.95rem; color: var(--ink-3); }
h1 {
  font-size: clamp(3rem, 6.4vw, 5.5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600;
  text-wrap: balance;
}
h1 em { font-weight: 300; }
.lead { font-size: 1.22rem; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #ffffff; box-shadow: 0 14px 30px -14px rgba(27, 26, 24, 0.7); }
.btn-dark:hover { background: #33312d; }
.btn-glass {
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.8); }

.show { min-width: 0; scroll-margin-top: 24px; }
/* De voorstelling: per app een collage, zijwaarts schuivend; pijltjes verschijnen als je erover gaat */
.stage { position: relative; border-radius: 26px; overflow: hidden; }
.stage:focus-visible { outline-offset: 4px; }
.track { display: flex; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .track { transition: none; } }
.slide { flex: 0 0 100%; min-width: 0; position: relative; height: 540px; }
.board { position: absolute; inset: 20px 20px 28px; }
.frame {
  position: absolute; display: block; padding: 5px; border-radius: 18px; overflow: hidden; cursor: zoom-in;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--glass-edge); box-shadow: var(--frame-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 13px; background: #ece7df; transition: transform .5s ease;
}
.frame:hover img { transform: scale(1.04); }
.frame:hover { z-index: 5; }

/* Schikking van de drie foto's, per soort beelden */
.lay-wide .f1 { left: 0; top: 0; width: 64%; height: 70%; z-index: 1; }
.lay-wide .f2 { left: 50%; top: 12%; width: 50%; height: 50%; z-index: 2; }
.lay-wide .f3 { left: 16%; top: 50%; width: 50%; height: 50%; z-index: 3; }
.lay-phones .f1 { left: 4%; top: 6%; width: 28%; height: 94%; z-index: 1; }
.lay-phones .f2 { left: 36%; top: 0; width: 28%; height: 94%; z-index: 3; }
.lay-phones .f3 { left: 68%; top: 4%; width: 28%; height: 94%; z-index: 2; }
.lay-mix .f1 { left: 0; top: 0; width: 60%; height: 60%; z-index: 1; }
.lay-mix .f2 { left: 8%; top: 48%; width: 52%; height: 52%; z-index: 2; }
.lay-mix .f3 { left: 66%; top: 2%; width: 32%; height: 96%; z-index: 3; }
.lay-naai .f1 { left: 2%; top: 0; width: 32%; height: 100%; z-index: 3; }
.lay-naai .f2 { left: 38%; top: 0; width: 42%; height: 56%; z-index: 1; }
.lay-naai .f3 { left: 52%; top: 44%; width: 46%; height: 56%; z-index: 2; }

.arrow {
  position: absolute; top: 50%; z-index: 10; width: 52px; height: 52px; margin-top: -26px; padding: 0;
  display: grid; place-items: center; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--ink);
  border-radius: 999px; border: 1px solid #ffffff; background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -14px rgba(40, 25, 10, 0.5);
  opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.arrow-prev { left: 14px; }
.arrow-next { right: 14px; }
.arrow:hover { background: #ffffff; }
.stage:hover .arrow, .stage:focus-within .arrow { opacity: 1; }
@media (hover: none) { .arrow { opacity: 1; width: 44px; height: 44px; margin-top: -22px; font-size: 1.4rem; } }

/* Zonder JavaScript: alle collages onder elkaar, zonder pijltjes */
html:not(.js) .hero { align-items: start; }
html:not(.js) .track { flex-direction: column; gap: 12px; }
html:not(.js) .arrow { display: none; }

/* Wat ik maak: één vaste glazen balk */
.make { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 26px; margin-bottom: 18px; }
.make-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.make-item + .make-item { border-left: 1px solid var(--line); }
.icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.85); border: 1px solid #ffffff; box-shadow: 0 8px 18px -10px rgba(60, 40, 20, 0.45);
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.make-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 3px; }
.make-item p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }

/* Contact */
#contact { scroll-margin-top: 24px; }
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center;
  padding: 34px 40px; border-radius: 30px; margin-bottom: 24px;
}
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 6px; }
.contact p { color: var(--ink-2); }
.btn-mail { font-size: 1.05rem; min-height: 56px; }

/* Voet: de wettelijke vermeldingen van de BV */
.foot { padding-top: 8px; padding-bottom: 36px; color: var(--ink-3); font-size: 0.85rem; }
.foot { text-align: center; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 0; }
.legal dt { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.legal dd { margin: 2px 0 0; color: var(--ink-2); }
.foot-note { margin-top: 18px; }

/* Beheer (/admin, functions/admin.js): al de apps als glazen kaarten, enkel voor Dominick */
body.admin { min-height: 100dvh; }
.admin-who { font-size: 0.95rem; color: var(--ink-3); }
.admin-who a { color: var(--ink); text-underline-offset: 3px; }
.admin-main { padding-top: 40px; padding-bottom: 48px; }
.admin-main h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.admin-main .lead { margin-top: 10px; }
.apps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 22px; border-radius: 22px;
  text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.app-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.7); }
.app-name { font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.app-open { color: var(--ink-3); }
.app-host { font-size: 0.9rem; color: var(--ink-2); }
.app-what { font-size: 0.9rem; color: var(--ink-3); }
@media (max-width: 960px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apps { grid-template-columns: minmax(0, 1fr); } .admin-who { font-size: 0.85rem; text-align: right; } }

/* Lightbox: een foto groot op mat glas, sluit met Esc of een klik */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 52px 72px 24px;
  border: 0; color: var(--ink); cursor: zoom-out;
  background: rgba(246, 243, 238, 0.74);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox::backdrop { background: transparent; }
.lb-img {
  min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 18px; border: 1px solid #ffffff; box-shadow: 0 40px 90px -30px rgba(40, 25, 10, 0.55);
}
.lb-cap { flex: none; text-align: center; font-size: 0.95rem; color: #33302b; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 999px; border: 1px solid #ffffff; background: rgba(255, 255, 255, 0.75); font-size: 1.5rem; line-height: 1;
}
.lb-btn:hover { background: #ffffff; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); background: var(--ink); color: #ffffff; border: 0; }
.lightbox[data-single] .lb-prev, .lightbox[data-single] .lb-next { display: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; }
  .make { grid-template-columns: minmax(0, 1fr); }
  .make-item + .make-item { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .top { padding-top: 18px; }
  .brand-name { font-size: 1.4rem; }
  .brand-mark { width: 34px; height: 34px; }
  .slide { height: 420px; }
  .board { inset: 12px 4px 18px; }
  .contact { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .btn-mail { justify-self: start; }
  .lightbox { padding: 56px 12px 76px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .glow-sun { width: 380px; height: 380px; right: -140px; top: -60px; }
  .glow-sky { width: 360px; height: 360px; top: 700px; }
  .glow-mint { width: 320px; height: 320px; left: 30%; top: 1300px; }
}

/* Op een laptop past alles op één scherm: de voorstelling en de titel schalen mee met de hoogte. */
@media (min-width: 961px) and (min-height: 620px) {
  body:not(.admin) { min-height: 100dvh; display: flex; flex-direction: column; }
  main { flex: 1; display: flex; flex-direction: column; }
  .top { padding-top: 22px; }
  .hero { flex: 1; padding-top: 16px; padding-bottom: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  h1 { font-size: clamp(2.6rem, min(4.6vw, 7.6vh), 5rem); }
  .lead { font-size: clamp(1rem, 2.1vh, 1.2rem); }
  .hero-text { gap: clamp(14px, 2.4vh, 24px); }
  .slide { height: clamp(300px, calc(100dvh - 424px), 560px); }
  .make { margin-bottom: 12px; }
  .make-item { padding: 14px 20px; }
  .make-item p { font-size: 0.88rem; }
  .icon { width: 34px; height: 34px; }
  .contact { padding: 14px 16px 14px 28px; margin-bottom: 12px; border-radius: 24px; }
  .contact p { font-size: 0.95rem; }
  .contact h2 { font-size: clamp(1.3rem, 2.6vh, 1.7rem); }
  .btn-mail { min-height: 50px; }
  .foot { padding-bottom: 18px; font-size: 0.8rem; }
  .legal { gap: 6px 28px; }
  .legal div { display: flex; gap: 8px; align-items: baseline; }
  .legal dd { margin: 0; }
  .foot-note { margin-top: 8px; }
}
