/* Vin'Cere v2: launch films, link rows, More projects grid. Loaded after styles.css. */

/* film frame */
.film { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; background: #0d0f12; box-shadow: 0 18px 40px rgba(19,23,28,.14); }
.film video, .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film .sound { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border: 0; border-radius: 999px; background: rgba(19,23,28,.78); color: #fff; font: 500 13px/1 Geist, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); transition: background-color 200ms ease, transform 200ms var(--ease-out); }
.film .sound:hover { background: rgba(19,23,28,.92); }
.film .sound:active { transform: scale(.96); }
.film .sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.film .sound svg { width: 14px; height: 14px; }
.film .sound .off, .film.loud .sound .on { display: none; }
.film.loud .sound .off { display: inline; }
.film .badge { position: absolute; right: 12px; top: 12px; z-index: 3; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.86); color: var(--ink); font: 500 11px/1.2 Geist, system-ui, sans-serif; letter-spacing: .02em; }

/* typographic tile when a project has no film yet */
.tile { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--tone, #E4E1DA); display: grid; align-content: space-between; padding: clamp(14px, 2vw, 22px); color: var(--ink); }
.tile b { font: 700 clamp(26px, 3vw, 40px)/1 "Familjen Grotesk", system-ui, sans-serif; letter-spacing: -.02em; }
.tile span { font: 500 13px/1.3 Geist, system-ui, sans-serif; color: var(--ink-2); }
.tile::after { content: ""; position: absolute; right: -18%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(19,23,28,.14); box-shadow: 0 0 0 28px rgba(19,23,28,.03), 0 0 0 56px rgba(19,23,28,.025); }

/* featured cards: the card is a div with a stretched title link, so the link row can hold real links */
.cases .case { position: relative; }
.cases .case .shots { aspect-ratio: auto; }
.cases .case h3 a, .entries .entry h2 a { color: inherit; text-decoration: none; }
.cases .case h3 a::after, .entries .entry h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cases .case h3 a:focus-visible, .entries .entry h2 a:focus-visible { outline: none; }
.cases .case:has(h3 a:focus-visible), .entries .entry:has(h2 a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }
.cases .case .film, .links a, .film .sound { z-index: 2; }

/* link rows */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; position: relative; z-index: 2; font-size: 14px; }
.links a { position: relative; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.links a.go-case { text-decoration-thickness: 2px; }
.links a.todo { color: var(--muted); text-decoration-style: dashed; text-decoration-color: var(--rule); cursor: default; }
.links a.todo::after { content: " · soon"; font-weight: 400; }
.links a:not(.todo)[data-link]::after { content: " ↗"; }

/* More projects */
.more { padding-block: clamp(56px, 8vw, 112px) 0; }
.more .shead { margin-bottom: clamp(24px, 3vw, 40px); }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-grid > li { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 12px 12px 18px; background: #EDEBE6; border-radius: 18px; }
.more-grid .film { box-shadow: none; }
.more-grid .film .sound { left: 10px; bottom: 10px; padding: 6px 11px 6px 9px; font-size: 12px; }
.more-grid .txt { display: grid; align-content: start; gap: 8px; padding: 0 6px; }
.more-grid h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); }
.more-grid .meta { font-size: 12.5px; color: var(--muted); }
.more-grid p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.more-grid .links { margin-top: 6px; }
.work-more { padding-bottom: clamp(56px, 8vw, 112px); }

/* case study film cover */
.cover .film { box-shadow: 0 24px 60px rgba(0,0,0,.35); border-color: var(--night-line); }
.case-links { margin-top: 22px; }
.night .links a { color: inherit; }
.night .links a.todo { color: var(--night-muted); text-decoration-color: var(--night-line); }
.cs .links { font-size: 16px; }
.cs .film-notes { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { .film .sound { transition: none; } }

/* case study page: v1's homepage card rule (.case) also hit this layout and squashed it to half/half.
   Restore the intended contents rail + reading column. */
main > .case.wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; background: none; border-radius: 0; padding-top: clamp(48px, 7vw, 88px); padding-bottom: 0; max-width: 1240px; margin-inline: auto; }
main > .case.wrap:hover { background: none; }
@media (max-width: 860px) { main > .case.wrap { grid-template-columns: 1fr; } }
.cover .film { max-width: 1240px; margin-inline: auto; }
.cover figcaption { max-width: 1240px; margin-inline: auto; }
.case-head .case-links { margin-top: 18px; }

/* ---------- car rental page ---------- */
.kicker { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-bottom: 12px; }
.night .kicker { color: var(--night-muted); }
.cr-head h1 { max-width: 18ch; }
.cr { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 112px); }
.cr-block { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(18px, 2.4vw, 36px); background: #EDEBE6; border-radius: 22px; }
.cr-block + .cr-block { margin-top: clamp(14px, 2vw, 24px); }
@media (min-width: 900px) { .cr-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .cr-block:nth-of-type(even) .cr-txt { order: 2; } }
.cr-block h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; max-width: 20ch; }
.cr-vs { margin: 22px 0 0; display: grid; gap: 10px; }
.cr-vs > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.55); }
.cr-vs > div.with { background: #fff; box-shadow: inset 3px 0 0 var(--ink); }
.cr-vs dt { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.cr-vs .with dt { color: var(--ink); }
.cr-vs dd { margin: 0; font-size: 16px; line-height: 1.5; }
.cr-note { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); max-width: 48ch; }
.cr-cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cr-cta a.btn.todo { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); cursor: default; }
.cr-cta .or { font-size: 14px; color: var(--muted); }
.cr-cta .or a { color: var(--ink); }
.cr-media { margin: 0; }
.cr-media figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 60ch; }
.cr-phone { width: min(280px, 72%); margin-inline: auto; aspect-ratio: 9 / 19.5; border: 1px solid var(--ink); border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(19,23,28,.14); padding: 0; }
.cr-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cr-pair { position: relative; padding-bottom: 6%; }
.cr-pair .cr-screen { border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(19,23,28,.12); width: 88%; margin-left: auto; }
.cr-pair .cr-screen img { width: 100%; display: block; }
.cr-pair .cr-phone { position: absolute; left: 0; bottom: 0; width: 30%; z-index: 1; border-radius: 22px; }
.cr-honest { margin: 18px 4px 0; font-size: 14px; color: var(--muted); }
.cr-extra { padding-top: clamp(56px, 8vw, 104px); }
.cr-extra ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 760px) { .cr-extra ul { grid-template-columns: 1fr 1fr; } }
.cr-extra li { padding: 12px 12px 20px; background: #EDEBE6; border-radius: 18px; display: grid; gap: 10px; align-content: start; }
.cr-extra .cr-shot { aspect-ratio: 16 / 10; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.cr-extra .cr-shot img { width: 100%; height: 100%; object-fit: contain; }
.cr-extra h3, .cr-extra p, .cr-extra .links { margin: 0 6px; }
.cr-extra h3 { margin-top: 6px; font-size: clamp(20px, 2vw, 24px); }
.cr-extra p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cr-me { margin-top: clamp(56px, 8vw, 104px); display: grid; gap: 24px; align-items: center; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .cr-me { grid-template-columns: 160px minmax(0, 1fr); } }
.cr-me h2 { font-size: clamp(28px, 3vw, 40px); }
.cr-me p { max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.me-pic { width: 140px; aspect-ratio: 1; border-radius: 50%; background: #E4E1DA; display: grid; place-items: center; font: 700 48px/1 "Familjen Grotesk", sans-serif; color: var(--muted); border: 1px dashed var(--muted); }
/* home: link band to the car rental page */
.cr-band { margin-top: clamp(28px, 4vw, 48px); }
.cr-band a { display: grid; gap: 6px; padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 32px); border-radius: 22px; background: var(--ink); color: #fff; text-decoration: none; transition: transform 300ms var(--ease-out); }
.cr-band a:hover { transform: translateY(-2px); }
.cr-band .kicker { color: var(--night-muted); margin: 0; }
.cr-band b { font: 600 clamp(20px, 2.2vw, 28px)/1.2 "Familjen Grotesk", sans-serif; max-width: 34ch; }
.cr-band .go { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .cr-band a { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .cr-band a { transition: none; } }

/* car rental case study */
.cr-cover .cr-collage { position: relative; max-width: 1240px; margin-inline: auto; aspect-ratio: 16 / 8.2; }
.cr-collage .c-cal { position: absolute; left: 14%; right: 0; top: 0; border: 1px solid var(--night-line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.cr-collage .c-cal img { width: 100%; display: block; }
.cr-collage .c-site { position: absolute; left: 0; bottom: 0; width: 23%; margin: 0; border-color: var(--night-line); box-shadow: 0 24px 60px rgba(0,0,0,.45); z-index: 2; }
.cr-collage .c-card { position: absolute; right: 3%; bottom: 0; width: 30%; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); z-index: 2; }
.cr-collage .c-card img { width: 100%; display: block; }
@media (max-width: 700px) { .cr-cover .cr-collage { aspect-ratio: 4 / 3.4; } .cr-collage .c-site { width: 36%; } .cr-collage .c-card { width: 46%; } }
.cs .cr-built { display: grid; gap: 14px; margin-top: 24px; }
.cs .cr-block { padding: clamp(16px, 2vw, 28px); }
@media (min-width: 1100px) { .cs .cr-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cs .cr-block h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; max-width: 22ch; margin: 0; }
.cs .cr-block .kicker { margin-bottom: 8px; }
.cs ul.cr-extra { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .cs ul.cr-extra { grid-template-columns: 1fr 1fr; } }
.cs ul.cr-extra li { padding: 12px 12px 18px; background: #EDEBE6; border-radius: 18px; display: grid; gap: 8px; align-content: start; }
.cs .cr-extra .cr-shot { aspect-ratio: 16 / 10; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.cs .cr-extra .cr-shot img { width: 100%; height: 100%; object-fit: contain; }
.cs .cr-extra h4 { margin: 6px 6px 0; font-size: 19px; }
.cs .cr-extra p, .cs .cr-extra .links { margin: 0 6px; font-size: 15px; color: var(--ink-2); }
.cs .cr-me { margin-top: 28px; border-top: 0; padding-top: 0; }
.cs .cr-me h3 { font-size: 26px; margin: 0 0 6px; }
.cs .cr-me p { margin: 0; }
.case dl.cr-vs { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0 0; font-size: inherit; }
.case dl.cr-vs > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }

/* car rental: project grid under the header */
.cr-projects { padding-top: clamp(48px, 7vw, 88px); max-width: 1352px; margin-inline: auto; }
.pj-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pj-grid > li { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 12px 12px 18px; background: #EDEBE6; border-radius: 18px; }
.pj-media { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; background: #F7F5F0; }
.pj-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pj-media.film { aspect-ratio: 16 / 10; box-shadow: none; }
.pj-media.film video { object-fit: cover; }
.pj-media.tile { display: grid; align-content: space-between; padding: 18px; background: var(--tone); }
.pj-media.tile b { font: 700 clamp(26px, 3vw, 38px)/1 "Familjen Grotesk", system-ui, sans-serif; letter-spacing: -.02em; }
.pj-media.tile span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pj-grid .txt { display: grid; align-content: start; gap: 8px; padding: 0 6px; }
.pj-grid .meta { font-size: 12.5px; color: var(--muted); }
.pj-grid h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); }
.pj-grid p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pj-grid .links { margin-top: 6px; }
.cr-cover figcaption { position: relative; z-index: 3; margin-top: 18px; }
@media (min-width: 701px) { .cr-cover figcaption { padding-left: 25%; } }
/* fixes: no left stripe on "With this"; placeholder buttons read as "coming soon" */
.cr-vs > div.with { box-shadow: none; }
.cr-cta a.btn.todo { background: #E4E1DA; color: var(--muted); box-shadow: none; cursor: default; }
.cr-cta a.btn.todo:hover { transform: none; filter: none; }
.cr-cta a.btn .soon { font-weight: 400; opacity: .8; }
.cr-cta a.btn.todo::after { content: none; }
.cr-collage .c-rove { width: 19%; right: 4%; border-radius: 26px; border-color: var(--night-line); } @media (max-width: 700px) { .cr-collage .c-rove { width: 32%; } }
/* step-by-step walkthrough video in a phone frame */
.cr-walk { background: #F4F1EA; }
.cr-walk video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #F4F1EA; }
/* video placeholders (car rental) */
.vid-ph { position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, #E6E3DC 0 14px, #EDEBE6 14px 28px); border: 1.5px dashed #B9B4A9; border-radius: 18px; color: var(--ink); }
.vid-ph .play { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); position: relative; margin-bottom: 6px; }
.vid-ph .play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.vid-ph b { font-size: 17px; }
.vid-ph small { color: var(--muted); font-size: 14px; max-width: 36ch; }
.vid-ph em { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: #fff; border: 1px solid #B9B4A9; border-radius: 99px; padding: 3px 9px; color: var(--muted); }
.vid-ph.hero { aspect-ratio: 16 / 9; width: 100%; }
.vid-ph.hero .play { width: 76px; height: 76px; } .vid-ph.hero .play::after { left: 30px; top: 24px; border-width: 14px 0 14px 22px; }
.vid-ph.hero b { font-size: clamp(20px, 2.4vw, 28px); }
.vid-ph.walk { aspect-ratio: 16 / 10; margin-top: 18px; padding: 16px; }
.vid-ph.walk .play { width: 44px; height: 44px; } .vid-ph.walk .play::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
.vid-ph.walk b { font-size: 15px; } .vid-ph.walk small { font-size: 13px; }
.cr-walk-embed { margin-top: 18px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 28px rgba(19,23,28,.10); }
.cr-walk-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.walk-embed { margin: 0 0 clamp(24px, 3vw, 40px); }
.walk-embed figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.walk-embed figcaption a { color: inherit; text-decoration: underline; }

/* More projects: the live walkthroughs, embedded the way car-rental.html does (same 16 / 10 box, the embed scales its own 1200 x 750 stage) */
.more-walk { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--ink); }
.more-walk iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; } /* wheel/touch over a frame is native scroll that bypasses Lenis; with Lenis smoothing at the same time the two fight and the page bounces. The walkthrough autoplays; the Walkthrough link opens it interactive. */

.cr-walk-embed video { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }

.cr-walk-note { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.cr-walk-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* What I build on small screens: no sideways strip. Two columns on tablets, one column on phones. (.svc .svc-grid beats the carousel rules in styles.css whatever the load order.) */
@media (max-width: 1100px) {
  .svc .svc-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding-bottom: 0; gap: 36px 24px; }
  .svc .svc-grid li { scroll-snap-align: none; }
}
@media (max-width: 640px) {
  .svc .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .svc .svc-grid li { display: grid; gap: 0; }
  .svc .svc-grid .svc-fig { border-radius: 12px; overflow: hidden; }
  .svc .svc-grid h3 { margin: 16px 0 6px; font-size: 24px; }
  .svc .svc-grid p { max-width: none; font-size: 16px; line-height: 1.5; }
  .svc .svc-grid .seen { margin-top: 10px; font-size: 15px; }
  .svc .svc-grid .seen a { display: inline-block; padding: 6px 0; }
  .svc-head { gap: 16px; }
  .svc-head p { font-size: 17px; }
}

/* owl launcher on phones: a small pill in the corner, no perched owl, so it stops covering the text as you scroll */
@media (max-width: 640px) {
  button.owl-launch { right: 12px; bottom: 14px; padding: 10px 16px; font-size: 14px; box-shadow: 0 6px 18px rgba(19,23,28,.22); }
  button.owl-launch img { display: none; }
}

/* Today / With this rows stack on phones: the label sits above the text instead of eating a third of the width */
@media (max-width: 640px) {
  .cr-vs > div, .case dl.cr-vs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cr-vs dt { padding-top: 0; }
}

/* show more button (phones only; the script hides it on wider screens) */
.more-item[hidden] { display: none !important; }
.showmore { display: none; }
.showmore[hidden] { display: none !important; }
@media (max-width: 640px) {
  .showmore { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 24px 0 0; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; color: var(--ink); font: 600 16px/1 Geist, system-ui, sans-serif; cursor: pointer; }
  .showmore:active { background: rgba(19,23,28,.06); }
  .showmore:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  /* case study on phones: the wide screen video repeats the phone picture right below it, so keep only the phone picture */
  #website .cr-walk-embed { display: none; }

  /* easier to tap: links and contents entries were about 20px tall */
  .links a, .toc a, .cr-cta .btn { display: inline-flex; align-items: center; min-height: 40px; }
  .links { gap: 0 20px; }
  .end a, footer a { display: inline-flex; align-items: center; min-height: 40px; }
}
