/* CREATIVWORLDS minimal site. One stylesheet; dark theme (black background, white text). */

:root {
  color-scheme: dark;
  --bg: #000000;
  --text: #ffffff;
  --soft: #cfcfcf;
  --muted: #9a9a9a;
  --line: #262626;
  --input-line: #4a4a4a;
  --placeholder: #2a2a2a;
  --placeholder-dark: #363636;
  --logo-grey: #6e6e6e;
  --panel: #141414;
  --error: #ff8a80;

  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(2.4rem, 6vw, 5.5rem);
  --fs-h1: clamp(2rem, 4.4vw, 3.75rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: .8125rem;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --space: clamp(64px, 9vw, 140px);
  --header-h: 80px;
  --topbar-h: 36px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg);
  /* always keep room for the scrollbar, so pages don't shift sideways when one page scrolls and another doesn't
     (Chrome and Edge on Windows); the space is black like the page */
  scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
/* Headlines: Anton, all caps. Anton ships one weight, which is already heavy. */
h1, h2, .next strong {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .005em; line-height: 1.02; text-wrap: balance;
}
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--text); color: var(--bg);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 0 var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { position: relative; z-index: 60; display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: auto; height: 28px; }
@media (max-width: 720px) { .logo img { height: 22px; } }

.nav ul { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a { position: relative; padding: 6px 0; font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; position: relative; z-index: 60;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-toggle span { top: 18px; }
.menu-toggle span::before { content: ''; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    display: flex; align-items: center; padding: 0 var(--gutter);
    background: var(--bg);
    opacity: 0; visibility: hidden;
  }
  /* fade only when the menu button is used, so resizing the window never flashes the menu */
  .nav-anim .nav { transition: opacity .3s var(--ease), visibility 0s .3s; }
  .nav ul { flex-direction: column; gap: 8px; }
  .nav a { font-size: 2.5rem; font-weight: 500; letter-spacing: -.02em; }
  .nav a::after { display: none; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-anim.nav-open .nav { transition: opacity .3s var(--ease); }
  .nav-open { overflow: hidden; }
}

/* ---------- Placeholders ---------- */

.ph {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: var(--placeholder);
  overflow: hidden;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1; }
.ph > img, .ph > picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph > picture { display: block; height: 100%; }
/* Skeleton pulse: image boxes gently pulse until their image has loaded (js/main.js adds .is-loaded) */
@keyframes ph-pulse { 0%, 100% { background-color: var(--placeholder); } 50% { background-color: var(--placeholder-dark); } }
.ph:has(img):not(.is-loaded) { animation: ph-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ph:has(img):not(.is-loaded) { animation: none; } }

/* ---------- Hero ---------- */

/* Full-width image right under the header; the headline overlaps its lower half
   and lines up with the page's left edge (logo, section headings). */
.hero { position: relative; display: grid; width: 100%; }
.hero-image, .hero-content { grid-area: 1 / 1; }
.hero-image { display: block; overflow: hidden; background: var(--placeholder); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
/* Phones see a narrow slice: keep the character in frame */
@media (max-width: 720px) { .hero-image img { object-position: 80% center; } }
/* Darken the bottom so the headline stays readable over the photo */
.hero::after { content: ''; position: relative; z-index: 1; grid-area: 1 / 1; align-self: end; height: 60%; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / 70%), rgb(0 0 0 / 0%)); }
.hero-image { aspect-ratio: auto; min-height: 520px; height: calc(100svh - var(--topbar-h) - var(--header-h) - var(--gutter)); max-height: 900px; }
.hero-content {
  position: relative; z-index: 2; align-self: end;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
}
.hero h1 { font-size: clamp(2.6rem, 6.25vw, 6.5rem); line-height: .98; }
.hero h1 span { display: block; }
.hero-sub {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px;
  margin-top: clamp(20px, 2.5vw, 32px);
}
.hero-sub p { margin: 0; max-width: 44ch; color: var(--soft); font-size: var(--fs-lead); line-height: 1.5; }

/* ---------- Text link ---------- */

.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; border-bottom: 2px solid currentColor; padding-bottom: 2px;
  white-space: nowrap;
}
.link .arrow { transition: transform .3s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- Sections ---------- */

.section { padding-top: var(--space); padding-bottom: var(--space); }
.section + .section { padding-top: 0; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { font-size: var(--fs-h2); }

.eyebrow { display: block; font-family: var(--font); line-height: 1.6; margin-bottom: 16px; color: var(--muted); font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; }

.statement { font-size: var(--fs-h1); max-width: 22ch; line-height: 1.12; letter-spacing: -.02em; }

.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- Work grid ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: clamp(28px, 3vw, 44px); }
.filters button {
  padding: 6px 0; background: none; border: 0; border-bottom: 2px solid transparent;
  font: inherit; font-size: .9375rem; color: var(--muted); cursor: pointer;
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: var(--text); border-color: currentColor; }

.grid { display: grid; gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card { display: block; }
/* Hover: real images slowly zoom inside their frame */
.card .ph img { transition: transform 1.2s var(--ease); }
.card:hover .ph img, .card:focus-visible .ph img { transform: scale(1.05); }
/* Empty placeholders keep the grey fade until they get an image */
.card .ph:not(:has(img))::after {
  content: ''; position: absolute; inset: 0; background: var(--placeholder-dark);
  transform: scale(1.04); opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.card:hover .ph:not(:has(img))::after { opacity: 1; transform: scale(1); }
.card-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.card h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.card-meta span { color: var(--muted); font-size: .9375rem; }
.grid > li[hidden] { display: none; }

/* ---------- Lists ---------- */

.rows { border-top: 2px solid var(--line); }
.rows li {
  display: grid; gap: 8px; padding: 28px 0; border-bottom: 2px solid var(--line);
}
.rows h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.rows p { margin: 0; color: var(--muted); }
.rows .num { color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
  .rows li { grid-template-columns: 80px 1fr 1fr; gap: 32px; align-items: baseline; }
}

/* ---------- Project page ---------- */

.project-head { padding-top: clamp(40px, 7vw, 110px); }
.project-head h1 { font-size: var(--fs-h1); }
.project-head .lead { margin-top: 20px; max-width: 70ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; }

/* Main project image, right under the divider line below the title */
.project-hero { margin-top: clamp(32px, 4vw, 56px); }
.project-hero > .ph { margin-top: 30px; }
.project-hero::before { content: ""; display: block; border-top: 2px solid var(--line); }

/* Category, Year, Clients and Overview on one row under the image (stacked on phones) */
.project-info { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; padding-top: clamp(32px, 4vw, 56px); }
.project-info .project-overview { grid-column: 1 / -1; }
.project-info.prose > div + div { margin-top: 0; }
/* Space between that row and the disclaimer, on pages with no gallery */
.project-disclaimer { padding-top: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) {
  .project-info { grid-template-columns: minmax(0, .8fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 2.6fr); gap: 40px; }
  .project-info .project-overview { grid-column: auto; }
}

.prose h2 { font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 12px; }
.prose p { color: var(--soft); max-width: 60ch; }
.prose > div + div { margin-top: 40px; }
@media (min-width: 900px) { .two-col.prose > div + div { margin-top: 0; } }

.gallery { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 680px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .ph--wide { grid-column: 1 / -1; } }

.next { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 40px 0; border-top: 2px solid var(--line); }
.next span { color: var(--muted); font-size: var(--fs-small); }
.next strong { font-size: var(--fs-h2); }
/* arrow after the next project's title: 28px wide, height follows the artwork */
.next strong .arrow-icon { display: inline-block; width: 28px; height: auto; margin-left: .4em; vertical-align: middle; fill: currentColor; transition: transform .3s var(--ease); }
.next:hover strong .arrow-icon { transform: translateX(4px); }

/* Back link at the right of the project title: same type as the Category / Year / Overview headings */
.project-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .005em; line-height: 1;
}
.back-link .arrow-icon { width: 20px; height: 15px; fill: currentColor; transform: scaleX(-1); transition: transform .3s var(--ease); }
.back-link:hover .arrow-icon { transform: scaleX(-1) translateX(4px); }

/* Homepage: "View All Work" button, 60px under the selected work and 60px above "What we do" */
.home-work { padding-bottom: 60px; }
.more-work { display: flex; justify-content: center; margin-top: 60px; }

.note { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Contact ---------- */

.form { display: grid; gap: 24px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; background: none;
  border: 0; border-bottom: 2px solid var(--input-line); border-radius: 0;
  font: inherit; color: inherit;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.field select option { background: var(--bg); color: var(--text); }
.field textarea { min-height: 140px; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field .error { display: block; min-height: 1.2em; margin-top: 6px; color: var(--error); font-size: var(--fs-small); }
.field [aria-invalid="true"] { border-color: var(--error); }

.btn {
  justify-self: start; min-height: 48px; padding: 0 28px;
  background: var(--text); color: var(--bg); border: 0; border-radius: 0;
  font: inherit; font-weight: 500; cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }

.form-status { margin: 0; font-size: .9375rem; }
.demo { padding: 14px 16px; background: var(--panel); font-size: .875rem; color: var(--soft); }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(56px, 7vw, 96px) 0 32px; border-top: 2px solid var(--line); }
.footer-cta { display: inline-block; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; } /* matches .services h3 */
.footer-cta:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(48px, 6vw, 88px); color: var(--muted); font-size: .875rem;
}
.footer-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-row a:hover { color: var(--text); }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Stagger items that enter side by side */
@media (min-width: 680px) { .grid > li:nth-child(even) .reveal, .services > li:nth-child(even).reveal { transition-delay: .12s; } }
@media (min-width: 1024px) {
  .services > li.reveal { transition-delay: 0s; }
  .services > li:nth-child(3n+2).reveal { transition-delay: .12s; }
  .services > li:nth-child(3n).reveal { transition-delay: .24s; }
}

/* ---------- Hero intro (CSS only, plays once on load) ---------- */

@keyframes hero-line { from { opacity: 0; transform: translateY(60%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
.hero h1 span { animation: hero-line 1.1s var(--ease) .15s both; }
.hero h1 span + span { animation-delay: .3s; }
.hero-sub { animation: hero-fade .9s var(--ease) .7s both; }
.hero-image { animation: hero-settle 1.8s var(--ease) both; }
.hero { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Home: services ---------- */

.services { display: grid; gap: 0 clamp(20px, 3vw, 40px); border-top: 2px solid var(--line); }
.services li { display: grid; gap: 8px; align-content: start; padding: 28px 0 32px; border-bottom: 2px solid var(--line); }
.services .num { color: var(--muted); font-size: .9375rem; }
.services .svc-icon { display: block; width: 28px; height: 28px; color: #d5d5d5; stroke-width: 1.5; } /* stroke-width: line thickness (Lucide default is 2) */
.services h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.services p { margin: 0; color: var(--muted); max-width: 36ch; }
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Home: client logo carousel ---------- */

.clients-head { flex-direction: column; align-items: flex-start; gap: 10px; }
.clients-head .note { margin: 0; }
.marquee {
  /* LOGO SCROLL SPEED: seconds for one full loop of the logos. Higher = slower. */
  --marquee-time: 44s;
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; flex-shrink: 0; align-items: center; gap: clamp(48px, 7vw, 104px);
  padding-right: clamp(48px, 7vw, 104px);
  animation: marquee var(--marquee-time, 44s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* each logo's height is scaled by --k (set per logo in index.html) so wide and tall marks look the same size */
.marquee-track img { display: block; width: auto; height: calc(clamp(30px, 3.2vw, 42px) * var(--k, 1)); max-width: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- Hero button (square, matches .btn on the contact page) ---------- */

.pill {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: 0 28px;
  background: var(--text); color: var(--bg);
  border-radius: 0;
  font-weight: 500; white-space: nowrap;
  transition: opacity .2s, transform .3s var(--ease);
}
.pill:hover { opacity: .88; }
.pill .arrow { transition: transform .3s var(--ease); }
.pill:hover .arrow { transform: translateX(4px); }
.pill:focus-visible { outline-color: var(--text); outline-offset: 4px; }

/* ---------- Contact image: fills the form's height beside it ---------- */

.contact-image { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .contact-image { aspect-ratio: auto; height: 100%; } }
@media (max-width: 899px) { .ph--mobile-wide { aspect-ratio: 16 / 9; } } /* a separate wide image is swapped in when the page stacks */
.form-status:empty { display: none; }
/* hidden spam-trap field in the contact form */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer social icons (outline) ---------- */

.footer-row ul:has(.social) { gap: 4px; margin-right: -11px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); transition: color .2s; }
.social:hover { color: var(--text); }
.social svg { fill: currentColor; }
.social svg .knockout { fill: var(--bg); } /* the "in" letters, cut out of the LinkedIn square */
.footer-row { align-items: center; }
.footer-row p { margin: 0; }
@media (max-width: 720px) {
  .hero::after { height: 75%; background: linear-gradient(to top, rgb(0 0 0 / 88%) 0%, rgb(0 0 0 / 60%) 55%, rgb(0 0 0 / 0%) 100%); }
}

/* ---------- Top bar (scrolls away; the header below stays sticky) ---------- */

.topbar { height: var(--topbar-h); border-bottom: 2px solid var(--line); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.topbar p { margin: 0; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.status-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.status-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #3ddc84; animation: status-ping 2.4s ease-out infinite; }
/* Red dot, picked in the site editor (Homepage > Top bar status) */
.status-dot--red, .status-dot--red::after { background: #ff4d4d; }
@keyframes status-ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.local-time span:not(:empty)::before { content: '·'; margin: 0 .6em; }
.lt-time { font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-width: 560px) { .lt-date { display: none; } }

/* ---------- Hero buttons ---------- */

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill--outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pill--outline:hover { opacity: 1; background: rgb(255 255 255 / 10%); }
@media (prefers-reduced-motion: reduce) { .status-dot::after { display: none; } }
@media (max-width: 560px) {
  .topbar { font-size: .6875rem; letter-spacing: .03em; }
  .topbar-inner { gap: 10px; }
}

/* Project video: 75% of the main image width, centered; full width on phones */
.project-video .video-wrap { position: relative; width: var(--video-width, 75%); margin: 0 auto; }
/* video above an image gallery: same gap as between gallery images */
.project-video--stack { padding-bottom: clamp(20px, 3vw, 40px); }
.project-video video { display: block; width: 100%; height: auto; background: #000; }
@media (max-width: 720px) { .project-video .video-wrap, .project-video .demo-wrap { width: 100%; } }
/* interactive demo (iframe gallery): same width as the video player, no border or scrollbars */
.project-video .demo-wrap { width: var(--video-width, 75%); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.project-video .demo-wrap iframe { display: block; width: 100%; height: 100%; border: 0; overflow: hidden; }
/* Circular play button over the paused video; hidden while playing */
.video-play {
  position: absolute; top: 50%; left: 50%;
  width: clamp(64px, 8vw, 104px); aspect-ratio: 1; padding: 0;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .3); color: #fff; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
}
/* play_button.svg: its own ring and triangle, drawn in the button's color */
.video-play svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.video-play:hover, .video-play:focus-visible { background: rgba(0, 0, 0, .55); transform: translate(-50%, -50%) scale(1.08); }
.video-play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.video-wrap.is-playing .video-play { opacity: 0; pointer-events: none; }
.project-video .disclaimer { width: var(--video-width, 75%); margin: 50px auto 0; text-align: center; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 720px) { .project-video .disclaimer { width: 100%; } }

/* ---------- Construct 3 overlay (Services, About, Inquire images) ----------
   js/main.js adds the iframe; it stays invisible until the game says it is ready. */
.c3-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; pointer-events: none; transition: opacity .8s var(--ease);
}
.c3-frame.is-ready { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .c3-frame { transition: none; } }
