/* ============================================================
   TS Labs — look & feel afgestemd op myOwned
   Licht, blauw/paars, witte kaarten, zachte schaduwen, Inter.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg:        #f4f7fc;
  --card:      #ffffff;
  --ink:       #1a1d2b;
  --ink-soft:  #5b6478;
  --ink-faint: #98a1b6;
  --blue:      #2563eb;
  --blue-dark: #1d4ed8;
  --grad:      linear-gradient(135deg, #4f7cff 0%, #7c5cff 100%);
  --border:    #e6e9f2;
  --border-soft:#eef1f7;
  --pill-bg:   #eef1f7;
  --tag-bg:    #eef3ff;
  --tag-ink:   #3b5bd6;

  --shadow-sm: 0 1px 3px rgba(20,30,70,0.06);
  --shadow:    0 12px 34px rgba(30,50,120,0.09);
  --shadow-lg: 0 22px 50px rgba(30,50,120,0.14);
  --shadow-blue: 0 10px 26px rgba(37,99,235,0.30);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --radius-sm: 13px;
  --maxw: 1140px;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 520px at 50% -10%, #e7edfb 0%, rgba(231,237,251,0) 60%),
    linear-gradient(180deg, #eef2fb 0%, #f4f7fc 320px);
  background-repeat: no-repeat;
  min-height: 100vh;
}
::selection { background: #cfdcff; color: var(--ink); }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mono { /* labels */
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink-faint);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(99,102,241,0.35);
}
.brand .name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .name span { color: var(--blue); }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
  font-size: 0.92rem; padding: 8px 12px; border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.topnav a:hover { color: var(--blue); background: var(--tag-bg); }

/* language toggle (myOwned pill style) */
.lang {
  display: inline-flex; background: var(--pill-bg);
  border-radius: 100px; padding: 4px; gap: 2px;
}
.lang button {
  font-family: inherit; font-weight: 700; font-size: 0.8rem;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 100px; cursor: pointer;
  transition: all .2s ease;
}
.lang button.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { padding: 6vh 0 5vh; text-align: left; }
.hero .kicker {
  display: inline-block; background: #fff; border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 100px; box-shadow: var(--shadow-sm);
  margin-bottom: 24px; color: var(--blue); font-weight: 700; font-size: 0.78rem;
}
.hero h1 {
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}
.hero .lede {
  max-width: 640px; margin-top: 24px;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--ink-soft);
}
.hero .lede strong { color: var(--ink); font-weight: 700; }

/* ---------- Section heading ---------- */
.section { padding: 4vh 0 8vh; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; }
.section-head h2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.section-head .count { margin-left: auto; }

/* ---------- Project grid (cards) ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.project {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px 22px;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
a.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.stage {
  height: 340px; display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: 22px; position: relative;
}
.stage::after {
  content: ""; position: absolute; bottom: 4px; left: 50%;
  width: 62%; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(40,60,130,0.20), transparent 70%);
  filter: blur(7px);
}
.stage img {
  height: 100%; width: auto; max-width: 100%; position: relative; z-index: 1;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
a.project:hover .stage img { transform: translateY(-6px) scale(1.015); }
.stage.framed img {
  border-radius: 30px; border: 7px solid #11141c;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.35);
}

.project .num { font-size: 0.78rem; font-weight: 700; color: var(--ink-faint); margin-bottom: 7px; }
.project h3 { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
a.project:hover h3 { color: var(--blue); }
.project .desc { margin-top: 10px; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.5; flex-grow: 1; }
.project .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 0.72rem; font-weight: 600; color: var(--tag-ink);
  background: var(--tag-bg); padding: 5px 11px; border-radius: 100px;
}
.project .meta {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.status { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.live{ background:#22c55e; } .dot.build{ background:var(--blue); }
.dot.private{ background:#8b5cf6; } .dot.idea{ background:var(--ink-faint); }
.arrow { font-size: 0.85rem; font-weight: 700; color: var(--blue); opacity: .5; transition: opacity .25s ease, transform .25s ease; }
a.project:hover .arrow { opacity: 1; transform: translateX(3px); }

.project.empty { background: transparent; border: 1.5px dashed var(--border); box-shadow: none; }
.stage.empty-stage { height: 340px; align-items: center; }
.stage.empty-stage .plus {
  width: 84px; height: 84px; border-radius: 24px; background: #fff;
  border: 1px solid var(--border); display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800; color: var(--ink-faint); box-shadow: var(--shadow-sm);
}

/* ---------- About ---------- */
.about {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px; margin-bottom: 8vh;
}
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.about h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.about p { color: var(--ink-soft); font-size: 1.05rem; }
.about p + p { margin-top: 14px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-links a {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  text-decoration: none; font-weight: 700; transition: all .2s ease;
}
.contact-links a:hover { border-color: var(--blue); color: var(--blue); transform: translateX(3px); }
.contact-links a span { color: var(--blue); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); padding: 26px 0 46px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--ink-faint); font-size: 0.82rem; font-weight: 600;
}

/* ---------- Buttons (landing) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; padding: 15px 26px;
  border-radius: 100px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.btn.primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,99,235,0.38); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Landing (tinypng) ---------- */
.lander { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; padding: 5vh 0 4vh; }
.lander .stage { height: 540px; margin: 0; }
.lander h1 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.0; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.lander .lede { margin-top: 20px; font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.features { padding: 5vh 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feat h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.feat p { color: var(--ink-soft); font-size: 0.95rem; }
.keynote {
  background: linear-gradient(135deg, #eef3ff, #f3efff); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin: 3vh 0 7vh;
}
.keynote .mono { display: block; margin-bottom: 6px; color: var(--blue); }
.keynote a { color: var(--blue); font-weight: 700; }

/* ---------- Article (privacy) ---------- */
.article { padding: 2vh 0 8vh; max-width: 720px; }
.article .back { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 30px; text-decoration: none; color: var(--ink-soft); font-weight: 700; }
.article .back:hover { color: var(--blue); }
.article h1 { font-weight: 900; letter-spacing: -0.02em; font-size: clamp(1.9rem, 5vw, 3rem); }
.article .updated { margin-top: 12px; }
.article-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; margin-top: 26px; }
.article-card h2 { font-weight: 800; font-size: 1.2rem; margin: 28px 0 10px; }
.article-card h2:first-child { margin-top: 0; }
.article-card p, .article-card li { color: var(--ink-soft); }
.article-card p { margin-bottom: 14px; }
.article-card ul { margin: 0 0 14px 20px; }
.article-card li { margin-bottom: 7px; }
.article-card a { color: var(--blue); font-weight: 600; }
.note {
  background: linear-gradient(135deg, #eef3ff, #f3efff); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0;
  font-size: 0.9rem; color: var(--ink-soft);
}

/* ---------- Load animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.04s}.d2{animation-delay:.12s}.d3{animation-delay:.2s}.d4{animation-delay:.3s}

/* ---------- Responsive ---------- */
@media (max-width: 920px) { .projects, .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .projects, .features { grid-template-columns: 1fr; }
  .about { padding: 30px; } .about .grid { grid-template-columns: 1fr; gap: 30px; }
  .lander { grid-template-columns: 1fr; gap: 30px; } .lander .stage { order: -1; height: 460px; }
  .article-card { padding: 26px 22px; }
  .topnav a:not(.lang button) { padding: 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }
