/* ==========================================================================
   thijsmerckx.be — styles
   Colors, font sizes and spacing live in the :root block below.
   Change a value there and it updates everywhere on the page.
   ========================================================================== */

/* ---------- Font: Kumbh Sans, hosted on your own server (no Google requests) ---------- */
@font-face {
  font-family: "Kumbh Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/kumbh-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kumbh Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/kumbh-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* A stand-in font tuned to the same size as Kumbh Sans, so the text
   doesn't jump when the real font arrives a split second later. */
@font-face {
  font-family: "Kumbh Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 106.2%;
  ascent-override: 92.9%;
  descent-override: 23.9%;
  line-gap-override: 0%;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #f9f8ea;
  --ink: #161616;
  --placeholder: #ecebdc;          /* shown while a clip or image is loading */
  --line: 1px solid var(--ink);    /* all strokes */
  --radius: 2px;                   /* button corners */

  /* Font sizes: the last number is the size on a 1440px-wide screen (your design),
     the first is the smallest size on phones. They scale smoothly in between. */
  --fs-xxl: clamp(2.5rem,    8.333vw, 7.5rem);    /* 120px */
  --fs-xl:  clamp(1.625rem,  4.861vw, 4.375rem);  /*  70px */
  --fs-l:   clamp(1.125rem,  1.806vw, 1.625rem);  /*  26px */
  --fs-m:   clamp(1.0625rem, 1.528vw, 1.375rem);  /*  22px */

  /* Spacing */
  --pad-x:    clamp(1.25rem, 3.333vw, 3rem);      /* 48px left/right */
  --pad-x-lg: clamp(1.25rem, 6.111vw, 5.5rem);    /* 88px, the "I do" block */
  --pad-y:    clamp(2.5rem,  4.444vw, 4rem);      /* 64px top/bottom */
  --pad-y-lg: clamp(3.5rem,  8.889vw, 8rem);      /* 128px, big sections */

  --split: 69.444%;                               /* 1000px of 1440: the wide column */
  --tile: clamp(12.5rem, 20.833vw, 25rem);        /* clip size: 300px on 1440 */
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Kumbh Sans", "Kumbh Sans Fallback", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-size: var(--fs-m);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul { padding: 0; list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

::selection { background: var(--ink); color: var(--bg); }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5em 1em;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Type helpers ---------- */
.text-xxl { font-size: var(--fs-xxl); line-height: 1.02; letter-spacing: -0.005em; }
.text-xl  { font-size: var(--fs-xl);  line-height: 1.2; }
.label    { font-size: var(--fs-m); font-weight: 600; margin-bottom: 1.6em; }
.label-plain { font-size: var(--fs-m); margin-bottom: 0.5em; }
.text-section p { max-width: 56em; }

.bracket::before { content: "["; }
.bracket::after  { content: "]"; }

/* ---------- Grid building blocks ---------- */
.block { border-bottom: var(--line); }
.pad { padding: var(--pad-y) var(--pad-x); }
.pad--wide { padding-inline: var(--pad-x-lg); }

.split {
  display: grid;
  grid-template-columns: var(--split) 1fr;
}
.split--reverse { grid-template-columns: calc(100% - var(--split)) 1fr; }
.split > .cell + .cell { border-left: var(--line); }

/* ---------- Navigation ---------- */
.nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--line);
}
.nav .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.5rem, 3.333vw, 3rem);       /* 48px on 1440 */
  padding: 0.25em 0.5em;
}
.nav .cell + .cell { border-left: var(--line); }

/* ---------- Name ---------- */
.name {
  display: flex;
  align-items: center;
  /* Kept compact so the reel starts high on the screen */
  padding: clamp(1.5rem, 3.472vw, 3.125rem) var(--pad-x);   /* 50px top/bottom on 1440 */
}

/* ---------- Reel ---------- */
.reel { border-bottom: var(--line); }
.reel__frame {
  --icon: clamp(4.5rem, 13.194vw, 11.875rem);  /* play button size, 190px */
  position: relative;
  background: var(--placeholder);
  overflow: hidden;
}
.reel__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  isolation: isolate;
}
.reel__poster { width: 100%; }
.reel__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--icon);
  aspect-ratio: 1;
  border: clamp(3px, 0.556vw, 8px) solid var(--play, #fff);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 1.25rem rgb(0 0 0 / 0.18));
  transition: transform 0.25s ease;
}
.reel__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 34%;
  height: 38%;
  background: var(--play, #fff);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, -50%);
}
.reel__play:hover .reel__icon,
.reel__play:focus-visible .reel__icon { transform: translate(-50%, -50%) scale(1.06); }
.reel__play:focus-visible { outline-offset: -6px; outline-color: var(--play, #fff); }
/* Dark play button for light stills: add the class play--dark to the reel__frame */
.play--dark { --play: var(--ink); }
.play--dark .reel__icon { filter: none; }
/* Round blur field inside the play button, for busy stills:
   add the class play--blur to the reel__frame. Same size as the button. */
.play--blur .reel__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--icon);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Silent looping reel (wallpaper) */
.reel__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--placeholder);
}
/* Small pause/play button, bottom right. White with a soft shadow so it reads on light and dark frames. */
.reel__toggle {
  --size: clamp(2.25rem, 2.778vw, 2.5rem);   /* 40px on 1440 */
  position: absolute;
  right: clamp(0.75rem, 1.667vw, 1.5rem);
  bottom: clamp(0.75rem, 1.667vw, 1.5rem);
  width: var(--size);
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(22 22 22 / 0.18);
  cursor: pointer;
  filter: drop-shadow(0 0 0.5rem rgb(0 0 0 / 0.2));
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.reel__toggle:hover,
.reel__toggle:focus-visible { opacity: 1; }
.reel__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Pause icon: two bars */
.reel__toggle span,
.reel__toggle span::after {
  position: absolute;
  top: 50%;
  width: 14%;
  height: 38%;
  background: #fff;
  transform: translateY(-50%);
}
.reel__toggle span { left: 30%; }
.reel__toggle span::after { content: ""; left: 230%; top: 50%; width: 100%; height: 100%; }
/* Play icon (shown while paused): a triangle */
.reel__toggle.is-paused span {
  left: 54%;
  width: 34%;
  height: 38%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, -50%);
}
.reel__toggle.is-paused span::after { display: none; }

/* ---------- About ---------- */
#about { min-height: clamp(10rem, 19.444vw, 17.5rem); }
#about .cell--main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
}
#about .cell--main p { max-width: 30em; }
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  line-height: 1.6;
  text-align: center;
}

/* ---------- Reach out if you need ---------- */
.needs {
  padding: var(--pad-y-lg) var(--pad-x);
  text-align: center;
}
.needs__intro {
  font-size: var(--fs-m);
  margin-bottom: clamp(1rem, 2.5vw, 2.25rem);
}
.needs__list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.778vw, 2.5rem);
}
.need__article {
  font-size: var(--fs-m);
  margin-right: 0.15em;
}
.need__desc { margin-top: 0.35em; }

/* ---------- Portfolio link ---------- */
/* No min-height here: the featured video sets the row's height, so it touches
   all four lines. The text next to it is always shorter and sits centred. */
.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  text-align: center;
}
.portfolio__image {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 48rem) {
  #work .portfolio { padding-block: 0; }
}
.portfolio__image img {
  width: 100%;
  background: var(--placeholder);
}
/* Featured project: same click-to-play player as the reel, sized for the side cell */
.feature__frame {
  --icon: clamp(3rem, 5.556vw, 5rem);
  width: 100%;
}
.feature__frame .reel__icon {
  border-width: clamp(2px, 0.278vw, 4px);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, clamp(14rem, 28.819vw, 26rem));   /* 415px */
  padding: 0.75em 1.5em;
  font-size: var(--fs-l);
  line-height: 1.2;
  color: var(--bg);
  background: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover,
.button:focus-visible { background: transparent; color: var(--ink); text-decoration: none; }

/* ---------- Text sections ---------- */
.text-section { padding: var(--pad-y) var(--pad-x); }
section.text-section { min-height: clamp(10rem, 17.917vw, 16.125rem); }

/* ---------- Clip strips ---------- */
.strip__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track.is-dragging { cursor: grabbing; user-select: none; }
.strip__track:focus-visible { outline-offset: -3px; }
.clip {
  flex: 0 0 auto;
  width: var(--tile);
  height: var(--tile);
  object-fit: cover;
  background: var(--placeholder);
}
.strip__track.is-dragging .clip { pointer-events: none; }

/* ---------- Services ---------- */
.split--tall { min-height: clamp(20rem, 49.028vw, 44.125rem); }
.services { max-width: 12em; }
.ae {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75em;
}
.ae__icon { width: clamp(2.5rem, 3.75vw, 3.375rem); height: auto; }
.ae p { max-width: 11em; line-height: 1.3; }

/* ---------- Contact & thanks ---------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 2.778vw, 2.5rem);
  min-height: clamp(20rem, 44.514vw, 40rem);
  padding: var(--pad-y-lg) var(--pad-x);
  text-align: center;
}
.thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(9rem, 19.653vw, 17.6875rem);
  padding: var(--pad-y) var(--pad-x);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: clamp(9rem, 17.014vw, 15.3125rem);
  text-align: center;
}
.footer > .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
}
.footer > .cell + .cell { border-left: var(--line); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 47.99rem) {
  .split,
  .split--reverse { grid-template-columns: 1fr; }
  .split > .cell + .cell { border-left: 0; border-top: var(--line); }
  .split--reverse > .cell--side { display: none; }
  .split--reverse > .cell + .cell { border-top: 0; }

  .split--tall { min-height: 0; }
  .ae { flex-direction: row; align-items: center; }

  .footer { grid-template-columns: 1fr; }
  .footer > .cell + .cell { border-left: 0; border-top: var(--line); }
  .footer > .cell { padding-block: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
