/* ============================================================
   yonnidehaar.com — static rebuild of the Framer site
   ============================================================ */

/* Fonts ------------------------------------------------------
   Helvetica Now Display: originally uploaded to Framer, now local.
   Stored locally in assets/fonts/.
   If they ever fail to load, everything falls back to Inter. */
@font-face { font-family: "HND"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../../assets/fonts/8RjEmjrBZcG8aiIDO1jc2zCrk.woff2") format("woff2"); }
@font-face { font-family: "HND"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../../assets/fonts/L0uA7REszbAyDvc5xSc3UeATJx8.woff2") format("woff2"); }
@font-face { font-family: "HND"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../../assets/fonts/7RrsznpcsrEs2soQvC65QUBbS48.woff2") format("woff2"); }
@font-face { font-family: "HND"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../../assets/fonts/uGnlFaSA9B1HiDRJt9Z6nVa0.woff2") format("woff2"); }
@font-face { font-family: "HND"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("../../assets/fonts/mpDZMHdoGGILgqNJoY7CnfC7eM.woff2") format("woff2"); }
@font-face { font-family: "HND"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../../assets/fonts/bLZ5PUEeUVPqkcjuyb5rEZ9Vo.woff2") format("woff2"); }
@font-face { font-family: "HND"; font-weight: 700; font-style: italic; font-display: swap;
  src: url("../../assets/fonts/P7xCjve1YZO1L97SWGLtqJDRIs.woff2") format("woff2"); }

/* Inter, self-hosted (SIL OFL) — Latin subset */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../../assets/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../../assets/fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../../assets/fonts/Inter-Bold.woff") format("woff"); }

:root {
  --ink: #000;
  --ink-soft: #18170f;
  --bg: #fff;
  --grey: #f2f2f2;
  --dark: #18170f;
  --pad: 32px;
  --max: 1600px; /* site-wide content width cap */
  --display: "HND", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.2;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 700; }

/* Type scale ------------------------------------------------- */
.h-xl   { font-family: var(--display); font-size: 48px; line-height: 1.2; font-weight: 500; }
.h-xl.b { font-weight: 700; }
.h-lg   { font-family: var(--display); font-size: 32px; line-height: 1.2; font-weight: 700; }
.h-md   { font-family: var(--display); font-size: 24px; line-height: 1.4; font-weight: 500; letter-spacing: -0.04em; }
.h-sm   { font-family: var(--display); font-size: 18px; line-height: 1.4; font-weight: 500; }
.statement { font-family: var(--display); font-size: 32px; line-height: 1.2; font-weight: 500; }
.body p, p.body { font-size: 16px; line-height: 1.2; }
.prose p + p { margin-top: 1.2em; }
em, .it { font-style: italic; }

/* Layout ----------------------------------------------------- */
.wrap   { padding-inline: var(--pad); }
/* Cap content width on big screens; tinted sections keep a full-bleed background */
main, .footer { max-width: var(--max); margin-inline: auto; box-sizing: border-box; }
.section-grey, .footer--dark { clip-path: inset(0 -100vmax); }
.section-grey { box-shadow: 0 0 0 100vmax var(--grey); }
.footer--dark { box-shadow: 0 0 0 100vmax var(--dark); }
.wrap-s { padding-inline: 16px; }
.center { margin-inline: auto; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gap-lg { gap: 16px 40px; }
.stack > * + * { margin-top: 8px; }
.mt-xs { margin-top: 8px; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; }
.mt-l { margin-top: 64px; } .mt-xl { margin-top: 120px; } .mt-xxl { margin-top: 200px; }
.pb-xl { padding-bottom: 120px; }
.section-grey { background: var(--grey); padding-block: 120px; }
.max-330 { max-width: 330px; } .max-480 { max-width: 483px; } .max-520 { max-width: 520px; }
.max-600 { max-width: 600px; } .max-680 { max-width: 683px; } .max-700 { max-width: 700px; }
.max-800 { max-width: 800px; } .max-1000 { max-width: 1000px; } .max-1030 { max-width: 1030px; }

/* Nav -------------------------------------------------------- */
.nav {
  position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
  width: min(900px, calc(100% - 16px)); height: 60px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 16px; border-radius: 999px;
  background: rgba(242, 242, 242, .5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.nav a { text-decoration: none; }
.nav__logo { font-family: var(--display); font-weight: 700; font-size: 16px; text-transform: uppercase; color: #212121; flex: 1; white-space: nowrap; }
.nav__links { display: flex; gap: 40px; }
.nav__links a { font-family: var(--display); font-weight: 300; font-size: 16px; text-transform: uppercase; color: #050505; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: .5; }
.nav__cta { flex: 1; display: flex; justify-content: flex-end; }
.nav__cta a {
  display: inline-block; background: #ccc; border-radius: 999px; padding: 6px 22px;
  font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 25px;
  text-transform: uppercase; color: var(--ink-soft); transition: background .2s; white-space: nowrap;
}
.nav__cta a:hover { background: #bdbdbd; }

/* Media ------------------------------------------------------ */
.media { position: relative; width: 100%; overflow: hidden; background: #e9e9e9; }
.media img, .media video, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-3x2  { aspect-ratio: 3 / 2; }
.r-1x1  { aspect-ratio: 1 / 1; }
.r-53   { aspect-ratio: 1920 / 1146; }
.r-om   { aspect-ratio: 673 / 623; }
.r-om img { object-fit: contain; background: #fff; }
.rounded { border-radius: 16px; }
.dark-bg { background: #282622; }
.media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .6s; }
a.card:hover .media img { transform: scale(1.03); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding-inline: 1px; }
.gallery .full { grid-column: 1 / -1; }

/* Home + listing pages -------------------------------------- */
.hero-video { aspect-ratio: 16 / 9; width: 100%; background: #000; }
.hero-video iframe { width: 100%; height: 100%; border: 0; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.project-grid .full { grid-column: 1 / -1; }
.card { display: block; text-decoration: none; color: inherit; }

.sys-list { display: flex; flex-direction: column; gap: 64px; }
.sys-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-decoration: none; color: inherit; }
.sys-row p { font-weight: 600; max-width: 335px; margin-top: 10px; }
.sys-row h2 + h2 { margin-top: 10px; }

/* Project pages --------------------------------------------- */
.project-intro { padding: 80px 30px 0; }
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.overview .col-right { padding-left: 20px; }
.list-lines p { line-height: 1.2; }

/* Systems case studies -------------------------------------- */
.step { display: grid; grid-template-columns: minmax(0, 472px) minmax(0, 1fr); gap: 16px; align-items: start; }
.step__label { display: flex; gap: 24px; }
.step + .step { margin-top: 64px; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 56px; }
.compare-table th, .compare-table td { text-align: left; vertical-align: middle; padding: 16px 16px 16px 0; font-size: 16px; line-height: 1.2; }
.compare-table th { font-weight: 700; }
.compare-table col.c1 { width: 11%; } .compare-table col.c2 { width: 16%; } .compare-table col.c3 { width: 24.5%; }
.compare-table col.c4 { width: 27.5%; } .compare-table col.c5 { width: 15%; } .compare-table col.c6 { width: 6%; }
.compare-table tbody tr { border-top: 1px solid rgba(0, 0, 0, .12); }

.stats { display: grid; gap: 16px; }
.stats-3 { grid-template-columns: 1fr 1fr 1fr; }
.stats-3.weighted { grid-template-columns: 379fr 491fr 491fr; }
.stats-2 { grid-template-columns: 1fr 1fr; }
.stat {
  background: var(--grey); border-radius: 16px; padding: 16px;
  min-height: 360px; display: flex; flex-direction: column; justify-content: space-between;
}
.stat .h-sm, .stat .h-md { max-width: 420px; }

.challenges { display: grid; gap: 56px 64px; }
.challenges-2 { grid-template-columns: 1fr 1fr; }
.challenges-3 { grid-template-columns: 1fr 1fr 1fr; }
.challenges p { margin-top: 12px; }

.om-hero { position: relative; background: #000; color: #fff; }
.om-hero .media { background: #000; aspect-ratio: auto; height: min(950px, 100vh); }
.om-hero .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 85%, #000 100%);
}
.om-hero__text { position: absolute; left: 16px; right: 16px; bottom: 56px; }
.om-hero h1 { font-family: var(--display); font-size: 42px; font-weight: 400; line-height: 1.2; }

.caption a { text-decoration: none; }
.caption a:hover { text-decoration: underline; }

.process-list > * + * { margin-top: 16px; }

/* Contact block (systems overview) -------------------------- */
.contact-links a { text-decoration: none; }
.contact-links a:hover { opacity: .5; }

/* Footer ----------------------------------------------------- */
.footer { padding: 64px 64px 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer h3 { font-family: var(--display); font-size: 24px; line-height: 1.4; font-weight: 500; letter-spacing: -0.96px; }
.footer p, .footer a { font-size: 16px; line-height: 1.2; color: var(--ink-soft); text-decoration: none; display: block; }
.footer a:hover { opacity: .5; }
.footer--dark { background: var(--dark); color: #fff; padding-block: 40px; }
.footer--dark h3, .footer--dark p, .footer--dark a { color: #fff; }

/* Reveal on scroll ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------- */
@media (max-width: 1024px) {
  .stats-3, .stats-3.weighted, .challenges-3 { grid-template-columns: 1fr; }
  .stat { min-height: 240px; }
  .step { grid-template-columns: 1fr; }
}
@media (max-width: 809px) {
  :root { --pad: 16px; }
  .h-xl, .h-xl.b { font-size: 36px; }
  .h-lg, .statement { font-size: 24px; }
  .h-md { font-size: 20px; }
  .om-hero h1 { font-size: 32px; }
  .nav { padding: 0 8px 0 14px; }
  .nav__logo { width: auto; font-size: 13px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 13px; }
  .nav__cta a { font-size: 13px; padding: 4px 12px; }
  .project-grid, .sys-row, .grid-2, .overview, .challenges-2, .stats-2, .gallery { grid-template-columns: 1fr; }
  .overview .col-right { padding-left: 0; margin-top: 24px; }
  .sys-row p { max-width: none; margin-bottom: 16px; }
  .sys-list { gap: 48px; }
  .project-intro { padding: 64px 16px 0; }
  .section-grey { padding-block: 72px; }
  .mt-xl { margin-top: 72px; } .mt-xxl { margin-top: 112px; }
  .footer { grid-template-columns: 1fr 1fr; padding: 48px 16px; }
  .compare-wrap { overflow-x: auto; }
  .compare-table { min-width: 760px; }
}
@media (max-width: 480px) {
  .nav__cta { display: none; }
  .nav { padding: 0 16px; }
  .footer { grid-template-columns: 1fr; }
}
