/* ==========================================================
   Lucas van der Heijden: one-page site
   Tokens, type and layout follow design.md
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --mist: #F4F4F5;
  --line: #E4E4E7;
  --line-dark: #3A3A3D;
  --red: #D7261E;
  --red-deep: #B3170F;
  --text: #0A0A0A;
  --text-2: #3F3F46;
  --label: #52525B;
  --text-on-dark: #D4D4D8;
  --label-on-dark: #A1A1AA;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

/* The signature red full stop */
.dot { color: var(--red); }
.dot--white { color: var(--white); }

/* ---------- 3. Type ---------- */
h1, h2, h3 { font-family: var(--font-display); }

h1 {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
}

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}
.label--dark { color: var(--label-on-dark); }
.label--on-red { color: var(--white); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); }
.btn--secondary { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--black); }
.btn--small { padding: 12px 22px; font-size: 15px; }
.btn--large { padding: 16px 28px; }
.btn--secondary.btn--large { padding: 14.5px 26px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 40px; height: 40px; border-radius: 9px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.nav a:hover,
.nav a[aria-current="true"] { color: var(--white); }
.nav a[aria-current="true"] { border-bottom-color: var(--red); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 0;
  background: var(--black);
  color: var(--white);
}
.hero__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  z-index: -1;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* left-to-right black fade keeps the text area clean */
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(10, 10, 10, 0.55) 16%, rgba(10, 10, 10, 0) 36%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__art img { animation: art-in 0.9s ease-out both; }
  @keyframes art-in { from { opacity: 0; } to { opacity: 1; } }
}

.hero__content { max-width: 680px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-on-dark);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 56ch; color: var(--text-on-dark); margin-bottom: 40px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 96px;
  padding: 24px 0 64px;
  border-top: 1px solid var(--line-dark);
  /* solid black band, full width, so illustration lines never cross the text */
  background: var(--black);
  box-shadow: 0 0 0 100vmax var(--black);
  clip-path: inset(0 -100vmax);
}
.fact dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-on-dark);
}
.fact dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--white);
}

/* ---------- 7. Sections (shared) ---------- */
.section { padding: 104px 0 112px; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .label { margin-bottom: 20px; }
.section-head--dark h2 { color: var(--white); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* black illustration panels at the top of cards */
.card-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}
.card-panel img { width: 100%; height: 100%; object-fit: cover; }
.card-panel--solution { height: 180px; }
.card-panel--licence { height: 128px; }

/* ---------- 8. Solution cards ---------- */
.solution-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.solution-card__body { padding: 32px; }
.solution-card__body h3 { font-size: 26px; margin-bottom: 12px; }
.solution-card__body > p { color: var(--text-2); margin-bottom: 24px; max-width: 46ch; }

.bullets { display: grid; gap: 12px; }
.bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
}

/* ---------- 9. Licence cards ---------- */
.licence-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.licence-card__body { padding: 24px; }
.licence-card__letter {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.licence-card__body h3 { margin-bottom: 8px; }
.licence-card__body p:last-child { font-size: 15px; color: var(--text-2); }

/* ---------- 10. Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  padding-top: 28px;
  border-top: 2px solid var(--black);
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.step--first .step__num { background: var(--red); }
.step h3 { margin-bottom: 12px; font-size: 22px; }
.step p { font-size: 15px; color: var(--text-2); }

/* ---------- 11. Why work with me ---------- */
.why {
  padding: 104px 0 112px;
  background: var(--black);
  color: var(--white);
}
.why__inner {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: #18181B;
}
.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__placeholder {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  color: var(--label-on-dark);
}
/* shown only when a real photo is in place */
.portrait.has-photo .portrait__placeholder { display: none; }
.portrait:not(.has-photo) .portrait__img { visibility: hidden; }

.portrait figcaption { margin-top: 20px; display: grid; gap: 4px; }
.portrait__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.portrait__role { font-size: 15px; color: var(--label-on-dark); }

.why__content .section-head { margin-bottom: 48px; }

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
.reason { padding-top: 24px; border-top: 1px solid var(--line-dark); }
.reason__icon { width: 32px; height: 32px; margin-bottom: 20px; color: var(--white); }
.reason h3 { margin-bottom: 8px; color: var(--white); }
.reason p { font-size: 15px; color: var(--text-on-dark); }

/* ---------- 12. Contact ---------- */
.contact { padding: 104px 0 112px; background: var(--white); }
.contact__block {
  padding: 72px 64px;
  background: var(--red);
  color: var(--white);
  border-radius: 24px;
}
.contact__block .label { margin-bottom: 20px; }
.contact__block h2 {
  max-width: 14em;
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.contact__text { max-width: 52ch; margin-bottom: 40px; font-size: 18px; line-height: 1.6; }

.contact__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.contact-btn svg { width: 24px; height: 24px; margin-bottom: 12px; }
.contact-btn__label { font-size: 14px; line-height: 1.2; opacity: 0.75; font-weight: 500; }
.contact-btn__value { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.contact-btn--dark { background: var(--black); color: var(--white); }
.contact-btn--light { background: var(--white); color: var(--black); }
.contact-btn:hover { transform: translateY(-2px); }
/* red outline would vanish on the red block, so use white here */
.contact__block :focus-visible { outline-color: var(--white); outline-offset: 3px; }

/* ---------- 13. Footer ---------- */
.site-footer {
  padding: 56px 0;
  background: var(--black);
  color: var(--label-on-dark);
  font-size: 14px;
  line-height: 1.6;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 48px;
}
.footer-main, .footer-legal { display: grid; gap: 6px; align-content: start; }
.footer-legal { max-width: 44ch; }
.footer-name {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
/* inline-flex + min-height gives the small footer links a full-size tap area */
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-on-dark); }
.site-footer a:hover { color: var(--white); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1023px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps { gap: 40px 32px; }
  .why__inner { grid-template-columns: 1fr; gap: 56px; }
  .portrait { max-width: 380px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 72px; }
  /* illustration sits behind the text here, so dim it to keep the copy readable */
  .hero__art { width: 100%; opacity: 0.35; }
  .hero__art::after {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 100%);
  }
  .contact__block { padding: 56px 40px; }
}

/* not enough room for name, links and button on one line: links go on a second row */
@media (max-width: 899px) {
  .header-inner { padding-block: 10px; gap: 0 12px; }
  .brand { order: 1; }
  .site-header .btn { order: 2; }
  .nav { order: 3; width: 100%; margin-left: -12px; gap: 2px; }
}

@media (max-width: 799px) {
  .grid--2 { grid-template-columns: 1fr; }
  .contact__buttons { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  .section, .why, .contact { padding: 72px 0 80px; }
  .section-head { margin-bottom: 40px; }

  /* smaller brand and button so everything fits on a phone */
  .brand { gap: 10px; }
  .brand__mark { width: 36px; height: 36px; border-radius: 8px; }
  .brand__name { font-size: 15px; white-space: nowrap; }
  .site-header .btn { padding: 10px 16px; font-size: 14px; }
  .nav { margin-left: -10px; }
  .nav a { padding: 0 10px; white-space: nowrap; }

  .hero { padding: 56px 0 0; }
  .hero__buttons .btn { width: 100%; }
  .facts { margin-top: 56px; gap: 24px 16px; padding-bottom: 48px; }
  .fact dd { font-size: 18px; }

  .grid--4, .steps, .reasons { grid-template-columns: 1fr; }
  .solution-card__body { padding: 24px; }
  .contact__block { padding: 40px 24px; border-radius: 20px; }
  .contact__text { margin-bottom: 32px; }
}

@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; border-radius: 7px; }
  .brand__name { font-size: 13px; }
  .site-header .btn { padding: 10px 12px; font-size: 13px; }
  .facts { grid-template-columns: 1fr; }
}
