/* Netflix case study — built from the Figma frame "Netflix Case Study" (1512 wide).
   Type is Switzer (Light / Regular / Medium + italics) in place of the file's Helvetica Neue. */
body.nf {
  --red: #651615; --edge: #4b1919; --ink: #464646; --gray: #888;
  --nav-bg: rgba(255, 255, 255, 0.58); --nav-border: rgba(255, 255, 255, 0.82);
  --nav-text: rgba(13, 20, 30, 0.7); --nav-text-hover: #0d141e;
  background: #fff; color: var(--ink); font-family: var(--font); font-weight: 300;
}
/* the nav star takes the page's colour */
body.nf .nav__star svg path:first-child { fill: #7a1a1d; }
body.nf .nav__star svg path:last-child { fill: #7a1a1d; fill-opacity: 1; }

/* 111.111vw × zoom(--z=0.9) paints at 100vw. Avoid calc(100vw / var()) — Netlify CSS post-processing failed on that. */
.nf-hero { zoom: var(--z); background: #6b0d0d; line-height: 0; width: 111.111111vw; }
.nf-hero img { width: 100%; max-width: none; margin: 0; aspect-ratio: 3024 / 954; object-fit: cover; display: block; }

/* Full viewport width: counteract --z zoom so the grey case-study shell
   stretches and shrinks with the window instead of sitting in a 1512px box. */
.nf-wrap {
  zoom: var(--z);
  display: grid;
  grid-template-columns: minmax(200px, 344px) minmax(0, 1fr);
  width: 111.111111vw;
  max-width: none;
  margin: 0;
  overflow-x: clip;
  position: relative;
  box-sizing: border-box;
}
.nf-rail {
  position: relative;
  z-index: 2;
  align-self: stretch;
  padding: 72px 0 72px 84px;
  font-size: 15px;
  color: #3c3c3c;
  font-weight: 400;
}
.nf-rail__inner {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nf-rail a { transition: color 0.25s; }
.nf-rail a:hover, .nf-rail a.is-active { color: var(--red); }
.nf-rail .nf-back { font-size: 12px; height: 35px; }
.nf-main { padding: 72px clamp(24px, 4vw, 72px) 0 0; min-width: 0; }

/* header */
.nf-head h1 { font-size: 36px; line-height: 1.043; font-weight: 500; letter-spacing: -0.03em; color: #3c3c3c; }
.nf-head__sub { margin-top: 16px; font-size: 20px; line-height: 1.63; letter-spacing: -0.03em; color: #595959; }
/* fixed spacing between the four boxes: they no longer spread out on wide screens */
.nf-meta { margin-top: 36px; display: flex; justify-content: flex-start; gap: 104px; flex-wrap: wrap; }
@media (max-width: 1499px) { .nf-meta { gap: 24px; } }
.nf-meta div { border: 1px solid #cfcfcf; border-radius: 4px; padding: 15px 20px; min-width: 214px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.3s; }
.nf-meta div:hover { border-color: #b9a3a3; }
.nf-meta small { font-size: 12px; line-height: 1.043; letter-spacing: -0.03em; color: #616161; }
.nf-meta span { font-size: 20px; line-height: 1.63; letter-spacing: -0.03em; color: #3c3c3c; white-space: nowrap; }
.nf-div { margin: 96px 0 72px; border: 0; height: 1px; background: #e7e7e7; }

/* sections */
.nf-secs { display: flex; flex-direction: column; gap: 128px; }
.nf-sec { scroll-margin-top: 90px; }
.nf-eb { font-size: 14px; line-height: 1.63; letter-spacing: -0.03em; color: var(--gray); text-transform: uppercase; }
.nf-h { margin-top: 4px; font-size: 24px; line-height: 1.63; font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--red); }
.nf-h b { font-weight: 700; }
.nf-p { margin-top: 10px; font-size: 20px; line-height: 1.63; letter-spacing: -0.03em; color: var(--ink); }
.nf-p + .nf-p { margin-top: 0; }
.nf-sec > .nf-block { margin-top: 40px; }

/* full-bleed gray bands: paint to the wrap edges (wrap is viewport-wide after zoom compensation) */
.nf-band {
  position: relative;
  background: #f9f9f9;
  box-shadow: 0 0 0 100vw #f9f9f9;
  clip-path: inset(-64px -100vw);
}
.nf-photo.nf-band { clip-path: inset(-64px -100vw 0 -100vw); }

/* framed cards */
.nf-card { background: #fff; border: 1px solid var(--edge); border-radius: 8px; box-shadow: -2px 5px 7.65px rgba(0, 0, 0, 0.08); }
.nf-ctx { position: relative; width: 1015px; max-width: 100%; height: 403px; margin-left: 29px; background: rgba(255, 255, 255, 0.69); box-shadow: none; }
.nf-ctx > * { position: absolute; display: block; }
.nf-ctx img { max-width: none; }
.nf-ctx .sv { position: absolute; }
.nf-ctx .sv img { position: absolute; }

.nf-cards3 { position: relative; height: 319px; margin-top: 32px; width: 1073px; max-width: 100%; }
.nf-cards3 > div { position: absolute; top: 35px; width: 337px; height: 284px; padding: 21px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; background: #fff; border: 1px solid var(--edge); border-radius: 7px; box-shadow: -2px 5px 7.65px rgba(0, 0, 0, 0.08); transition: transform 0.6s var(--ease-out); }
.nf-cards3 > div:hover { transform: translateY(-4px); }
.nf-cards3 h3 { width: 190px; font-size: 24px; line-height: 1.14; font-weight: 500; font-style: italic; letter-spacing: -0.03em; color: #6d5656; }
.nf-cards3 p { font-size: 16px; line-height: 1.63; letter-spacing: -0.03em; color: var(--ink); }
.nf-cards3 img { position: absolute; max-width: none; pointer-events: none; }

.nf-media { height: 565px; padding: 20px 40px 22px 62px; display: flex; align-items: center; justify-content: center; }
.nf-media img { width: 906px; max-width: 100%; height: auto; }
.nf-media--int { height: auto; padding: 48px 0; border-color: var(--red); }
.nf-media--int img { width: 886px; }

/* flows */
.nf-flows { display: flex; flex-direction: column; gap: 96px; margin-top: 64px; }
.nf-flow { background: #fff; border: 1px solid #ededed; border-radius: 4px; box-shadow: -2px 5px 7.65px rgba(0, 0, 0, 0.08); padding: 24px; display: flex; flex-direction: column; gap: 36px; }
.nf-flow__t { font-size: 24px; line-height: 1.63; font-weight: 400; letter-spacing: -0.03em; color: #636363; }
.nf-flow__d { font-size: 16px; line-height: 1.63; letter-spacing: -0.03em; color: var(--ink); }
.nf-flow__m { height: 475px; border: 1px solid var(--edge); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nf-flow__m video { height: 447px; width: auto; max-width: 100%; display: block; border-radius: 4px; }

/* reflection */
.nf-refl { display: flex; gap: 40px; margin-top: 40px; }
.nf-refl > div { flex: 1 1 0; min-width: 0; min-height: 185px; padding: 36px 44px; background: #fff; border: 1px solid #e2cece; border-radius: 8px; box-shadow: -2px 5px 7.65px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; gap: 12px; transition: transform 0.6s var(--ease-out); }
.nf-refl > div:hover { transform: translateY(-3px); }
.nf-refl h3 { font-size: 20px; line-height: 1.14; font-weight: 500; font-style: italic; letter-spacing: -0.03em; color: var(--ink); }
.nf-refl p { font-size: 16px; line-height: 1.63; letter-spacing: -0.03em; color: var(--ink); }
.nf-sub { margin-top: 128px; }

/* grey band runs straight into the footer; photo has rounded corners and a soft shadow */
.nf-photo { text-align: center; padding: 8px 0 72px; }
.nf-photo p { font-size: 20px; line-height: 1.63; letter-spacing: -0.03em; color: var(--ink); }
.nf-photo img { display: block; margin: 12px auto 0; width: 659px; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }

@media (max-width: 1100px) {
  .nf-wrap { grid-template-columns: minmax(0, 1fr); padding: 0 32px; width: 111.111111vw; }
  .nf-rail { position: static; padding: 32px 0 0; }
  .nf-rail__inner { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .nf-rail .nf-back { height: auto; width: 100%; }
  .nf-main { padding: 32px 0 0; }
  .nf-ctx, .nf-cards3 { transform-origin: 0 0; }
  .nf-cards3 { height: auto; display: grid; gap: 20px; }
  .nf-cards3 > div { position: static; width: auto; height: auto; min-height: 200px; }
  .nf-cards3 img, .nf-ctx { display: none; }
  .nf-refl { flex-direction: column; }
  .nf-flow__m { height: 380px; }
  .nf-flow__m video { height: 352px; }
  .nf-media { height: auto; padding: 20px; }
  .nf-meta div { min-width: 0; flex: 1 1 200px; }
  .nf-meta span { white-space: normal; }
}
@media (max-width: 760px) {
  .nf-head h1 { font-size: 28px; }
  .nf-flow__m { height: 320px; }
  .nf-flow__m video { height: 292px; }
}
