/* ============================================================
   CINEX FILMS — design system v2 "The Atelier"
   Quiet luxury dark. Watch-dial display type (thin, wide-tracked
   Josefin Sans), Jost for reading. Faded imagery under text.
   Red diamond + blue play used sparingly, like hallmarks.
   ============================================================ */

:root {
  --ink: #0b0a09;
  --ink-2: #110f0e;
  --paper: #F2F0EB;
  --paper-dim: #CAC7C0;
  --paper-faint: #AFABA3;
  --hairline: #2B2A27;
  --red: #ef3d38;
  --blue: #3a67c8;
  --blue-bright: #8aa4e4;
  --display: 'Helvetica Neue', 'Helvetica', 'Arial Nova', Arial, sans-serif;
  --sans: 'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 17px; line-height: 1.75;
  font-weight: 400; -webkit-font-smoothing: antialiased;
}

a { color: var(--paper); text-decoration: none; transition: color 0.4s ease, opacity 0.4s ease, border-color 0.4s ease; }
a:hover { color: var(--paper-dim); }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 1px solid var(--blue-bright); outline-offset: 4px; }
img { max-width: 100%; display: block; }

.wrap { padding-left: clamp(22px, 5vw, 72px); padding-right: clamp(22px, 5vw, 72px); max-width: 1360px; margin: 0 auto; }

/* ---- Type roles ---- */
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.22em; line-height: 1.26; text-wrap: balance; margin: 0;
}
h1.display { font-size: clamp(27px, 4.1vw, 52px); }
h2.display { font-size: clamp(20px, 2.6vw, 32px); }
.label {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500; color: var(--paper-faint);
}
.label.red { color: var(--red); }
.label.blue { color: var(--blue-bright); }
.lede { font-size: clamp(16px, 1.25vw, 17.5px); line-height: 1.9; color: var(--paper-dim); max-width: 560px; }
p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

/* ---- Hallmarks ---- */
.diamond { display: inline-block; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); flex: none; }
.play-tri { display: inline-block; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--blue-bright); flex: none; }

/* ---- Buttons: hairline, tracked, patient ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 38px; font-family: var(--display); font-size: 13px; letter-spacing: 0.26em;
  text-transform: uppercase; font-weight: 500; cursor: pointer; background: transparent;
  border: 1px solid #5A5854; color: var(--paper);
  transition: border-color 0.5s ease, background 0.5s ease, color 0.5s ease;
}
.btn-red { border-color: #A33330; }
.btn-red:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-outline-blue { border-color: #5E74A8; color: var(--blue-bright); }
.btn-outline-blue:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 9, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.logo img { height: 26px; width: auto; opacity: 0.94; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-family: var(--display); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.nav-links a { color: var(--paper-faint); }
.nav-links a:hover { color: var(--paper); }
.nav-links a.active { color: var(--paper); border-bottom: 1px solid var(--red); padding-bottom: 4px; }
.nav-cta { border: 1px solid #5A5854; color: var(--paper); padding: 11px 22px; }
.nav-cta:hover { border-color: var(--red); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--paper); margin: 7px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11, 10, 9, 0.97); padding: 30px clamp(22px, 5vw, 72px) 38px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---- Hero (home): faded image, centered, vignetted ---- */
.hero {
  position: relative; min-height: clamp(540px, 88vh, 820px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-media { position: absolute; inset: 0; animation: heroFade 3.2s ease both; }
@keyframes heroFade { from { opacity: 0.001; } to { opacity: 1; } }
.hero-media { background: linear-gradient(160deg, #141316 0%, #0d0c0b 60%, var(--ink) 100%); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 68% 56% at 50% 45%, rgba(11,10,9,0.62) 0%, rgba(11,10,9,0.74) 48%, var(--ink) 94%); }
.letterbox { display: none; }
.hero-inner {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center;
  gap: 28px; max-width: 860px; padding: 100px 24px;
}
.hero-inner > * { animation: rise 1.8s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.5s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.75s; }
.hero-inner > *:nth-child(5) { animation-delay: 1s; }
@keyframes rise { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-marks { display: flex; align-items: center; gap: 18px; }
.hero .lede, .hero-sub { margin: 0 auto; }

/* ---- Page hero (interior) ---- */
.page-hero { position: relative; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(44px, 6vw, 88px); display: flex; flex-direction: column; gap: 22px; border-bottom: 1px solid var(--hairline); }
.page-hero .eyebrow { display: flex; align-items: center; gap: 16px; }

/* ---- Sections ---- */
.section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { display: flex; align-items: center; gap: 16px; }

/* ---- Stats: thin, engraved ---- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(40px, 9vw, 130px); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat b { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.stat b span { color: var(--red); }
.stat i { font-style: normal; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-faint); text-align: center; font-weight: 500; }

/* ---- Cards / grids: faded imagery that wakes on hover ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(36px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(30px, 3.5vw, 44px); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; filter: saturate(0.4); transition: opacity 1.1s ease, filter 1.1s ease, transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
a.card:hover .card-media img, .card:hover .card-media img { opacity: 0.95; filter: saturate(0.65); transform: scale(1.02); }
.card { display: flex; flex-direction: column; gap: 18px; color: var(--paper); }
.card:hover { color: var(--paper); }
.card-meta { display: flex; flex-direction: column; gap: 8px; }
.card-meta h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; font-size: 16.5px; line-height: 1.5; }
.card-meta p { color: var(--paper-dim); font-size: 15px; line-height: 1.75; }
.card-media .badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(11, 10, 9, 0.7); backdrop-filter: blur(6px); padding: 9px 16px;
  font-family: var(--display); font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
}

/* ---- Panel (Content Engine): faint frame, warm interior ---- */
.panel {
  background: linear-gradient(150deg, #121013 0%, #0d0c0c 100%);
  border: 1px solid #2C3652;
  padding: clamp(44px, 6.5vw, 96px) clamp(26px, 6vw, 88px);
  display: flex; flex-direction: column; gap: 48px;
}
.panel header { display: flex; flex-direction: column; gap: 18px; max-width: 800px; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; }
.feature { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #38456A; padding-top: 22px; }
.feature b { font-family: var(--display); font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500; }
.feature p { font-size: 15px; line-height: 1.8; color: var(--paper-dim); }

/* ---- Industry strip / big lists: thin engraved lines ---- */
.big-links { display: flex; flex-direction: column; }
.big-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--hairline);
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: clamp(17px, 2.1vw, 26px); line-height: 1.4;
}
.big-links a:first-child { border-top: 1px solid var(--hairline); }
.big-links a small { font-family: var(--display); font-size: 12.5px; letter-spacing: 0.26em; color: var(--paper-faint); font-weight: 500; }
.big-links a:hover { color: var(--paper); }
.big-links a:hover small { color: var(--blue-bright); }

/* ---- Process steps: large, editorial, unmissable ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(36px, 4vw, 56px); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid #46443F; padding-top: 26px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 62px);
  line-height: 0.9; color: var(--red); letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.step b { font-family: var(--display); font-size: clamp(15px, 1.5vw, 19px); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; line-height: 1.4; }
.step p { font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.8; color: var(--paper-dim); }

/* ---- Split layout ---- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: clamp(40px, 6vw, 90px); align-items: center; }
.split .media { overflow: hidden; }
.split .media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; filter: saturate(0.4); transition: opacity 1.2s ease, filter 1.2s ease; }
.split:hover .media img { opacity: 0.95; filter: saturate(0.6); }
.split .copy { display: flex; flex-direction: column; gap: 22px; }

/* ---- Articles ---- */
.article-body { max-width: 700px; margin: 0 auto; padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(72px, 9vw, 120px); font-size: 16.5px; line-height: 1.95; color: #DFDCD6; }
.article-body h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.18em; font-size: 19px; line-height: 1.55; margin: 2.2em 0 0.9em; color: var(--paper); }
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: 0.55em; }
.article-body a { border-bottom: 1px solid #4A5C86; }
.article-body a:hover { color: var(--blue-bright); }
.article-meta { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--paper-faint); font-weight: 500; }

/* ---- CTA band ---- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 34px; }
.cta-band h2 { font-size: clamp(22px, 3vw, 38px); }
.cta-band h2 em { font-style: normal; color: var(--red); }

/* ---- Breadcrumbs ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; color: var(--paper-faint); }
.crumbs a { color: var(--paper-faint); }
.crumbs a:hover { color: var(--blue-bright); }
.crumbs .sep { width: 4px; height: 4px; background: var(--red); transform: rotate(45deg); flex: none; }
.crumbs [aria-current] { color: var(--paper-dim); }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; max-width: 800px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--display); font-size: 14.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 200; color: var(--red); flex: none; transition: transform 0.4s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 26px; color: var(--paper-dim); font-size: 15.5px; line-height: 1.85; max-width: 660px; }

/* ---- Sideways nav ---- */
.sideways { display: flex; flex-wrap: wrap; gap: 14px 30px; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.sideways a { color: var(--paper-faint); display: inline-flex; align-items: center; gap: 10px; }
.sideways a::before { content: ""; width: 4px; height: 4px; background: var(--blue); transform: rotate(45deg); }
.sideways a:hover { color: var(--blue-bright); }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--hairline); padding-top: 64px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 44px; }
.footer-grid .col { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.footer-grid .col .label { margin-bottom: 8px; }
.footer-grid .col a { color: var(--paper-dim); }
.footer-grid .col a:hover { color: var(--blue-bright); }
.footer-grid .col img { opacity: 0.85; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hairline); padding-top: 30px; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-faint); font-weight: 500; }

/* ---- Reveal: long, soft, patient ---- */
.reveal { transition: opacity 1.6s ease, transform 1.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.pending { opacity: 0.001; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal.pending, .hero-inner > *, .hero-media { opacity: 1; transform: none; }
}

/* Logos never stretch */
.footer-grid .col img { align-self: flex-start; height: 26px; width: auto; }
.logo img { align-self: center; }

/* ---- Video lightbox (Vimeo) ---- */
.vlb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); background: rgba(5, 5, 4, 0.92); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.vlb.open { opacity: 1; pointer-events: auto; }
.vlb .frame { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.vlb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlb .close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: var(--paper); cursor: pointer; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase; padding: 8px; }
.vlb .close:hover { color: var(--paper-dim); }
[data-vimeo] { cursor: pointer; }

/* ---- Hero background video (Vimeo). Poster image stays beneath as fallback. ---- */
.hero-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  border: 0; opacity: 0; transition: opacity 2.4s ease;
  filter: saturate(0.62) contrast(1.06);
}
.hero-video.ready iframe { opacity: 0.82; }
@media (prefers-reduced-motion: reduce) { .hero-video iframe { opacity: 0.82 !important; transition: none; } }
