/* ==========================================================================
   Storybords — gedeelde stijl
   Papier-look: cream, inkt, amber. Mobile-first.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* kleur */
  --cream: #f4f2ea;
  --cream-deep: #ece8dc;
  --card: #ffffff;
  --line: #e2ddcf;
  --line-soft: #eeeade;
  --ink: #17150f;
  --muted: #77715f;
  --amber: #d99a2f;
  --amber-soft: #f7e7c6;

  /* typografie */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.0625rem, 0.95rem + 0.7vw, 1.375rem);
  --text-h2: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  --text-h3: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-hero: clamp(2.5rem, 1rem + 10vw, 7rem);

  /* ruimte */
  --wrap: 1120px;
  --gutter: 1rem;
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7.5rem);

  /* vorm */
  --radius-card: 14px;
  --radius-inner: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(23, 21, 15, 0.04),
    0 8px 24px -12px rgba(23, 21, 15, 0.14);
  --shadow-lift: 0 2px 4px rgba(23, 21, 15, 0.06),
    0 18px 38px -16px rgba(23, 21, 15, 0.26);

  /* motion */
  --dur-fast: 140ms;
  --dur: 260ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* papier-korrel, heel licht */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
    rgba(23, 21, 15, 0.055) 0.5px,
    transparent 0.5px
  );
  background-size: 3px 3px;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  position: relative;
  z-index: 1;
}

.section {
  padding-block: var(--space-section);
}

/* --- Kleine labels ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.45;
  color: var(--muted);
  max-width: 34ch;
  text-wrap: pretty;
}

/* --- Knoppen ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.875rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 95%;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease), background-color var(--dur-fast) linear,
    color var(--dur-fast) linear;
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 22px -14px rgba(23, 21, 15, 0.9);
}

.btn--ink:hover {
  background: #2a2619;
  transform: translateY(-2px);
  box-shadow: 0 16px 26px -16px rgba(23, 21, 15, 0.95);
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 22px -14px rgba(217, 154, 47, 0.95);
}

.btn--amber:hover {
  background: #e8ad48;
  transform: translateY(-2px);
  box-shadow: 0 16px 26px -14px rgba(217, 154, 47, 1);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--card);
  border-color: #d3ccb8;
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

/* zichtbare focus overal */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 3;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 234, 0.9);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 82%;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.wordmark__mark {
  width: 1.25rem;
  height: 0.9rem;
  border-radius: 3px;
  border: 2px solid var(--ink);
  background: linear-gradient(
    to bottom,
    var(--amber) 0 45%,
    transparent 45% 100%
  );
  flex: none;
}

.header-link {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding-top: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 900;
  font-stretch: 82%;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin-block: 0.75rem 1rem;
  text-transform: uppercase;
}

/* speels detail: de O krijgt een amber punt */
.hero__title span {
  color: var(--amber);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* --- Storyboard-bord (voorbeeld-visual) --------------------------------- */
.board {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  padding: clamp(0.875rem, 0.5rem + 1.5vw, 1.5rem);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.board__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.875rem;
  padding-inline: 0.25rem;
}

.board__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 0.9375rem;
}

.board__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.shot {
  min-width: 0;
  padding: 0.5rem 0.5rem 0.625rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* licht gedraaide kaartjes — rechtop bij hover */
.shot:nth-child(1) { transform: rotate(-1.6deg); }
.shot:nth-child(2) { transform: rotate(1.2deg); }
.shot:nth-child(3) { transform: rotate(0.9deg); }
.shot:nth-child(4) { transform: rotate(-1.1deg); }

.shot:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #efece1;
  border: 1px dashed #d9d2bf;
}

/* scene 1 — zonsopkomst */
.frame--sun {
  background: linear-gradient(to bottom, #f8e9c8 0 62%, #e9e4d4 62% 100%);
}
.frame--sun::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 26%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
}
.frame--sun::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32%;
  height: 2px;
  background: rgba(23, 21, 15, 0.28);
}

/* scene 2 — persoon in beeld */
.frame--person::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: 20%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--ink);
}
.frame--person::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 40% 40% 0 0;
  background: var(--ink);
}

/* scene 3 — close-up */
.frame--closeup::before {
  content: "";
  position: absolute;
  left: 18%;
  top: -18%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--ink);
}
.frame--closeup::after {
  content: "";
  position: absolute;
  left: 44%;
  top: 30%;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
}

/* scene 4 — wijd shot */
.frame--wide::before {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 0;
  width: 26%;
  height: 52%;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
}
.frame--wide::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 0;
  width: 34%;
  height: 34%;
  background: rgba(23, 21, 15, 0.45);
  border-radius: 2px 2px 0 0;
}

.shot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.shot__id {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.shot__time {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--amber-soft);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.5rem;
}

.shot__line {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

/* tijdlijn onder de kaartjes */
.timeline {
  margin-top: 0.875rem;
  padding: 0.625rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
}

.timeline__track {
  display: flex;
  gap: 4px;
  height: 12px;
}

.timeline__seg {
  border-radius: 3px;
  background: var(--line);
}

.timeline__seg--a { flex: 3; background: var(--ink); }
.timeline__seg--b { flex: 2; background: var(--amber); }
.timeline__seg--c { flex: 4; background: #cfc8b4; }
.timeline__seg--d { flex: 2; background: var(--ink); }

.timeline__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Features ----------------------------------------------------------- */
.section-head {
  max-width: 48ch;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head h2 {
  font-size: var(--text-h2);
  margin-block: 0.75rem 0.75rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.feature {
  min-width: 0;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  border-color: #d6cfba;
  box-shadow: var(--shadow-lift);
}

/* eerste blok krijgt meer gewicht: grid-doorbreker */
.feature--wide {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.feature--wide .feature__text {
  color: #cfc9b8;
}

.feature--wide .feature__num {
  color: var(--amber);
  border-color: rgba(244, 242, 234, 0.25);
}

.feature__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--muted);
}

.feature h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.5rem;
}

.feature__text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* --- CTA-band ----------------------------------------------------------- */
.cta {
  padding: clamp(2rem, 1.5rem + 4vw, 4rem);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  text-align: left;
}

.cta h2 {
  font-size: var(--text-h2);
  margin-bottom: 0.75rem;
}

.cta p {
  color: #cfc9b8;
  max-width: 42ch;
  margin-bottom: 1.75rem;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  margin-top: var(--space-section);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) linear,
    border-color var(--dur-fast) linear;
}

.site-footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* --- Login -------------------------------------------------------------- */
.login {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: 1.25rem clamp(2rem, 1rem + 4vw, 4rem);
}

.login__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 1rem + 4vw, 3rem);
}

.login__card {
  padding: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}

.login__title {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.login__sub {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.field {
  margin-bottom: 1.125rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  transition: border-color var(--dur-fast) linear,
    box-shadow var(--dur-fast) linear, background-color var(--dur-fast) linear;
}

.field input::placeholder {
  color: #a49d8a;
}

.field input:hover {
  border-color: #d3ccb8;
}

.field input:focus {
  outline: none;
  background: var(--card);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 154, 47, 0.22);
}

.field input:focus-visible {
  outline: none;
  border-radius: var(--radius-inner);
}

.login__submit {
  margin-top: 0.5rem;
}

.notice {
  display: none;
  margin-top: 1.125rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--amber-soft);
  border: 1px solid #e6cf9c;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-inner);
}

.notice.is-visible {
  display: block;
  animation: notice-in var(--dur) var(--ease) both;
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) linear,
    border-color var(--dur-fast) linear;
}

.login__back:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.login__footer {
  margin-top: 2rem;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* --- Groter scherm ------------------------------------------------------ */
@media (min-width: 46rem) {
  :root {
    --gutter: 1.75rem;
  }

  .hero__inner {
    max-width: 60ch;
  }

  .lead {
    max-width: 42ch;
  }

  .board__head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  /* bento-ritme: 4+2 op de eerste rij, 3+3 op de tweede */
  .features {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature:nth-child(2) {
    grid-column: span 2;
  }

  .feature:nth-child(3),
  .feature:nth-child(4) {
    grid-column: span 3;
  }

  /* eerste blok pakt de meeste ruimte: hiërarchie i.p.v. gelijke tegels */
  .feature--wide {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .feature--wide h3 {
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  }

  .feature--wide .feature__text {
    max-width: 38ch;
    font-size: 1rem;
  }

  .cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .cta__copy {
    max-width: 46ch;
  }

  .cta p {
    margin-bottom: 0;
  }
}

/* --- Minder beweging ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shot,
  .shot:hover {
    transform: none;
  }
}
