/* Core tokens */
:root {
  color-scheme: light;
  --bg-body: #f6f6f2; /* Site background to match top part */
  --bg-surface: rgba(0, 0, 0, 0.03);
  
  --text-primary: #000;  /* Make text black */
  --text-secondary: #000; /* Secondary text also black */
  --text-muted: #000;     /* Muted text black as requested */
  --accent-1: #fcb045;
  --accent-2: #fd1d1d;
  --accent-3: #833ab4;
  --accent-gradient: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  
  --border-light: rgba(0, 0, 0, 0.15);
  
  /* Softer, more diffuse large shadow */
  --shadow-large: 
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.08),
    0 60px 120px rgba(0, 0, 0, 0.10);
  --max-width: min(1200px, 92vw);
  --radius-sm: 0.75rem;
  --radius-md: 1.5rem;
  --radius-lg: 2.5rem;
  --font-heading: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --transition-base: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  /* Scroll reveal defaults */
  --reveal-distance: 60px;
  --reveal-duration: 900ms;
  --reveal-delay: 120ms;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Stagger settings */
  --stagger-step: 90ms;
  /* Adjust this to change the header (top bar) thickness */
  --header-pad-y: 0.6rem;
  --header-height: clamp(2.5rem, 4vw, 3rem);

  /* Edge blur controls (frosted + focused) */
  --edge-blur-height: clamp(36px, 8vh, 90px);
  --edge-blur-amount: 18px;
  /* Extra scroll length of Showreel beyond 100vh; used to overlap next section */
  --showreel-extra: 20vh;
}

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

html,
body {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fixed bottom-edge blur overlay */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--edge-blur-height);
  pointer-events: none;
  z-index: 9999;
  /* Blur only, no tint — so dark sections stay dark */
  background: transparent;
  -webkit-backdrop-filter: blur(var(--edge-blur-amount));
  backdrop-filter: blur(var(--edge-blur-amount));
  /* Focused, narrow fade */
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 28%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to top, rgba(0,0,0,1) 28%, rgba(0,0,0,0) 100%);
}

/* Removed dim overlay previously used for the hamburger menu */

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #111;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 160ms ease;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

.container {
  width: var(--max-width);
  margin-inline: auto;
}

/* Utility layer: layout & spacing primitives that reuse core tokens */
.u-stack {
  display: flex;
  flex-direction: column;
  gap: var(--u-stack-gap, 1.5rem);
}

/* removed unused u-stack variants */

.u-flow > * + * {
  margin-top: var(--u-flow-space, 1.25rem);
}

/* removed unused u-flow variants */

/* removed unused u-cluster utilities */

.u-grid {
  display: grid;
  gap: var(--u-grid-gap, 1.5rem);
  grid-template-columns: repeat(
    auto-fit,
    minmax(var(--u-grid-min, min(260px, 100%)), 1fr)
  );
}

/* removed unused u-grid variants */

/* removed unused shadow utility classes */

/* removed unused text-balance and sr-only */

.brand-mark {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.brand-tag {
  font-size: 0.84rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background-color: var(--bg-body);
  border-bottom: 1px dotted #d6d2c7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--header-pad-y);
  min-height: var(--header-height);
  width: 100%;
  max-width: none;
  padding-inline: 1rem 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.brand--bar .brand-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand--bar .brand-mark {
  color: #111;
}

.brand--bar .brand-tag {
  color: #111;
  font-weight: 700;
}

.brand-barcodes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;             /* barcode bar height */
  min-width: 140px;         /* ensure enough width for quiet zones */
  margin-inline: 0.4rem 0.6rem;
}

.brand-barcodes svg {
  display: block;
  height: 100%;
  width: auto;
}

/* Hide the barcode on smaller screens to free space */
@media (max-width: 900px) {
  .brand-barcodes { display: none !important; }
  /* Hide the trailing 'CREATIVE STUDIO' label on small screens */
  .brand-tag { display: none !important; }
  /* Hero: hide second line 'Studio' on small screens */
  .hero__title { grid-template-columns: 1fr; }
  .hero__title-line:nth-child(2) { display: none; }
}

/* removed unused .reg */

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Removed hamburger toggle styles */

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  position: relative;
}

/* Language switcher */
.lang-switch { display: inline-flex; gap: 0.35rem; align-items: center; }
.lang-switch__btn {
  appearance: none; border: 1px solid var(--border-light); background: #fff; color: #111;
  font: inherit; padding: 0.35rem 0.6rem; border-radius: 999px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; line-height: 1;
}
.lang-switch__btn:hover { background: #f2f2f2; }
.lang-switch__btn.is-active { background: #111; color: #fff; border-color: #111; }

/* Hamburger toggle (shown on small screens) */
.nav-toggle { display: none; position: relative; width: 40px; height: 32px; border: 1px solid var(--border-light); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle__bar { position: absolute; left: 8px; right: 8px; height: 2px; background: #111; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle__bar:nth-child(1){ top: 9px; }
.nav-toggle__bar:nth-child(2){ top: 15px; }
.nav-toggle__bar:nth-child(3){ top: 21px; }
.nav-panel.is-open .nav-toggle__bar:nth-child(1){ top: 15px; transform: rotate(45deg); }
.nav-panel.is-open .nav-toggle__bar:nth-child(2){ opacity: 0; }
.nav-panel.is-open .nav-toggle__bar:nth-child(3){ top: 15px; transform: rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

/* Header specific link color (light top bar) */
.site-header .nav-links a { color: #111; font-weight: 700; }
/* removed redundant hover color override and unused ghost button override */


.nav-links a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: background var(--transition-base);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  background: var(--accent-gradient);
}


/* removed empty media queries */




.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.button--primary {
  background: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #d4d4d4 0%, #8e8e8e 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #111;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4),
              0 4px 8px rgba(0, 0, 0, 0.15);
}

.button--secondary {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: linear-gradient(145deg, #bfbfbf 0%, #9e9e9e 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.774),
              0 6px 12px rgba(0, 0, 0, 0.2);
}
/* removed unused ghost button variant */

/* removed unused link-arrow */

/* removed unused link-arrow pseudos */

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 1.5rem;
  background: var(--bg-body);
  color: #111;
}

.hero > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(0.75rem, 2vw, 2rem);
}

.hero__grid {
  display: grid;
  gap: 1.8rem;
  max-width: none;
}

/* removed unused hero eyebrow */

.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 0.8;
  text-transform: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
}

.hero__title-line {
  display: block;
  color: #111;
  
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(5rem, 14vw, 10rem);
}
.hero__title-line:nth-child(1) { text-align: left; }
.hero__title-line:nth-child(2) { text-align: right; }

/* removed unused hero subtitle/actions/stats */

/* removed unused hero stats styles */

/* removed unused hero bg */

/* Section base styles */
section {
  padding: 6rem 0;
}

/* Hero visual panel under the big title */
.hero-visual {
  padding-top: 0.75rem;
  padding-bottom: 3rem;
  background: var(--bg-body);
  /* When navigated via #hero, keep content just below the fixed header */
  scroll-margin-top: calc(var(--header-height) + var(--header-pad-y));
}

.image-panel {
  position: relative;
  border-radius: 1.25rem;
  margin-inline: clamp(0.75rem, 2vw, 1.25rem);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.image-panel__tabs {
  position: absolute;
  left: 0;                 /* span full width of frame */
  right: 0;
  top: 0;                  /* sit flush with the top */
  display: grid;           /* three equal columns */
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;   /* center each tab in its third */
  align-items: start;
  gap: clamp(0.75rem, 3vw, 2rem);
  z-index: 2;
}

.image-panel__tabs .tab {
  text-align: center;
  font-size: 0.9rem;                   /* bigger tabs */
  color: #111;                          /* black text */
  background: var(--bg-body);           /* same tone as page */
  border: none;                         /* blend into background */
  border-radius: 0 0 12px 12px;         /* square top, rounded bottom */
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1;
  padding: 0.55rem 0;                   /* taller tabs, width controlled below */
  width: 90%;                           /* roughly one third width per tab */
  position: relative;
  box-shadow: none;                     /* no floating effect */
}

.image-panel__tabs .tab::after {
  content: none;               /* remove dotted underline */
}

.image-panel__media {
  position: relative;
  background: #111;
  min-height: min(68vh, 820px);
}

.image-panel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.image-panel__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Even lighter overlay for greater clarity */
    linear-gradient(0deg, rgba(0,0,0,.22), rgba(0,0,0,.18)),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.10) 30%);
  pointer-events: none;
  z-index: 1;
}

/* Video caption (bottom-left) */
.image-panel__caption {
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  z-index: 2;
  color: #fff;
  max-width: 40ch;
}

.caption-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.9;
}

.caption-title {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.05;
  font-weight: 800;
  font-size: clamp(1.6rem, 5.2vw, 3.2rem);
}

.caption-title span { display: block; }

.section__header {
  max-width: 760px;
  --u-flow-space: 0.8rem;
}

.section__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2rem);
  line-height: 1.05;
}

.section__title-wrap {
  display: grid;
  gap: 0.6rem;
}

.brands {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0; /* sit marquee right under hero visual */
}

.brands > .container {
  width: var(--max-width);
  margin-inline: auto;
  padding-inline: 0;
}

/* Layout similar to the reference: label left, heading right */
.brands .section__header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

/* Two centered columns variant for brands header */
.brands .section__header--two-col {
  /* Make columns size to their content and center as a group */
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  justify-items: center;
  column-gap: clamp(2rem, 6vw, 6rem);
  text-align: center;
  margin-inline: auto; /* center the whole header block */
}

/* Mobile: stack the two headlines vertically */
@media (max-width: 720px) {
  .brands .section__header--two-col {
    grid-template-columns: 1fr;
    row-gap: 1rem;
    justify-content: center;
    justify-items: center;
  }
  .brands .section__header--two-col .section__title,
  .brands .section__header--two-col .section__title--partners {
    max-width: 28ch;
  }
}

.brands .section__eyebrow,
.section__eyebrow--partners {
  grid-column: 1;
  justify-self: start;
  letter-spacing: 0.22em;
}

.brands .section__eyebrow::before,
.section__eyebrow--partners::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0642b;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.brands .section__title,
.section__title--partners {
  grid-column: 2;
  font-size: clamp(2rem, 4vw, 2.5rem);
  max-width: 100ch;
}

/* Reset placement when using two-column variant */
.brands .section__header--two-col .section__title,
.brands .section__header--two-col .section__title--partners {
  grid-column: auto;
  max-width: 28ch; /* keep a readable measure for each column */
}

.brands__marquee {
  overflow: hidden;
  position: relative;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  order: -1; /* show marquee before header content */
}

.brands__track {
  display: flex;
  gap: 3.5rem;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 1.8rem 0;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}

.brands__track span {
  opacity: 0.7;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* Selected Work title layout */
.work { 
  margin-top: -1.5rem; /* pull section up tighter under brands */
}

.work__intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.6fr;
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 0.25rem 0 0.25rem; /* extra-tight spacing above Case Studies */
}

.work__display {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(3rem, 9vw, 7rem);
}
.work__display .wline { display: block; }
.work__display .dot { display: inline; }

/* removed unused work__badge */

.work__meta {
  align-self: end;
  padding-top: 0;
}
.work__meta-eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}
.work__meta-text {
  margin: 0;
  max-width: 48ch;
  color: rgba(0,0,0,0.6);
}

/* removed unused work__mark */

@media (max-width: 1024px) {
  .work__intro {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .work__mark { justify-self: start; }
}


/* removed unused why grid/card blocks */

/* removed unused about blocks */

/* WHY — editorial layout */
.why--editorial {
  display: grid;
  justify-content: center;          /* centers the entire block horizontally */
  grid-template-columns: clamp(280px, 20vw, 360px) minmax(600px, 1100px); /* left + right */
  column-gap: clamp(3rem, 6vw, 6rem);
  row-gap: clamp(1.5rem, 4vw, 2rem);
  margin-inline: auto;
  max-width: 1500px;                /* keeps it centered within page */
  text-align: left;
  /* Nudge the entire section a bit to the right for better visual centering */
  transform: translateX(clamp(8px, 1.4vw, 28px));
}

.why--editorial .why__mast span:nth-child(1),
.why--editorial .why__mast .plus,
.why--editorial .why__mast span:nth-child(3) {
  font-family: var(--font-heading); /* match Case Studies font */
  font-weight: 800;
  font-size: clamp(2.8rem, 7.6vw, 6.2rem);
  line-height: .7;
  letter-spacing: -0.015em;
}

.why__mast {
  grid-column: 1;
  grid-row: 1; /* keep inside the first row so it sits above the headline */
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.why__mast { overflow: visible; padding-right: 0.5ch; }
.why__mast .plus { transform: translateY(-0.04em); }

.why__copy {
  grid-column: 2;
  color: var(--text-secondary);
  column-count: 2;
  column-gap: clamp(3rem, 5vw, 5rem);
  column-fill: balance;
  max-width: 85%;
}
.why__copy p { margin: 0 0 1rem; }
.why__copy--top { grid-row: 1; }
.why__copy--bottom { grid-row: 3; }

.why__headline {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: clamp(.5rem, 1.5vw, 1rem) 0 clamp(.8rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: .92;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  white-space: normal;
}

@media (max-width: 1200px) {
  .why--editorial { transform: none; }
  .why--editorial .why__headline { white-space: nowrap; }
  .why__mast { grid-row: 1; grid-column: 1; }
  .why__copy { column-count: 1; }
}

/* Stack the HUMAN + AI section on smaller screens */
  @media (max-width: 900px) {
    .why--editorial {
      grid-template-columns: 1fr;
      row-gap: 1.5rem;
      column-gap: 0;
      transform: none;
      text-align: center;
      /* Add safe side gutters so text doesn't touch screen edges */
      padding-inline: clamp(1rem, 5vw, 1.25rem);
    }

  .why__mast {
    grid-column: 1;
    grid-row: 1;
    justify-items: center;
    align-content: center;
    text-align: center;
  }

  .why--editorial .why__headline {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    white-space: normal; /* override nowrap from 1200px rules */
    overflow-wrap: anywhere;
    word-break: normal;
    margin-inline: auto;
  }

    .why__copy {
      grid-column: 1;
      column-count: 1;
      max-width: 100%;
      margin-inline: auto;
      text-align: left;
    }
  .why__copy--top { grid-row: 3; }
  .why__copy--bottom { grid-row: 4; }
}

.services__grid {
  margin-top: 3rem;
  --u-grid-gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  padding: 2.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  --u-stack-gap: 1.25rem;
  /* Replace drop shadow with uniform inner shadow ~50% strength */
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 0 32px rgba(0, 0, 0, 0.22);
}

.service-card h3 {
  margin: 0;
  font-size: 1.6rem;
  font-family: var(--font-heading);
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  --u-flow-space: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.showreel__wrap {
  display: grid;
  gap: 0;
}

.showreel__badge {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Pin the showreel and use section scroll to drive progress */
.showreel.showreel--pinned {
  /* Keep some scroll room for the grow; controlled via --showreel-extra */
  height: calc(100vh + var(--showreel-extra, 20vh));
  padding-top: 0;
  padding-bottom: 0;
}

.showreel.showreel--pinned .showreel__scroller {
  position: sticky;
  top: 0;
  height: 100vh;   /* pins the frame in the viewport */
}

/* Map progress -> scale and radius.
   We keep your JS/var strategy but make the math visible here. */
.showreel__card {
  /* progress 0..1 is set by JS on the section (root var) */
  --p: var(--p, 0);
  --minScale: 0.86;  /* starting size when section is reached */
  --maxScale: 1.06;  /* end size at full progress (keeps edges visible) */
  --scale: calc(var(--minScale) + (var(--maxScale) - var(--minScale)) * var(--p));
  --radius: calc(28px * (1 - var(--p))); /* rounds less as it grows */

  transform: translateZ(0) scale(var(--scale));
  border-radius: var(--radius);
}

.showreel {
  overflow: visible;
  padding-top: 0; /* tighter top spacing; frame anchors to top */
  padding-bottom: 0; /* no space below the screenshot */
}

/* Decrease vertical gap before Services when following Showreel */
.showreel + .services,
.showreel + section {
  padding-top: 0; /* keep compact for general sections */
}

/* Pull Pricing up by exactly the Showreel's extra scroll height,
   while keeping its internal top padding intact */
.showreel + .pricing {
  margin-top: calc(-1 * var(--showreel-extra, 20vh));
  padding-top: clamp(4.5rem, 9vw, 7rem); /* restore default internal spacing */
}

/* Scroll-grow container spans full viewport width */
.showreel__scroller {
  position: relative;
  /* Full-bleed, centered to viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  justify-self: center; /* center within grid column */
  aspect-ratio: 16 / 9; /* reserve height, avoid layout shift */
  display: grid;
  /* Align preview to the top instead of vertically centering */
  justify-items: center;
  align-items: start;
  /* Adjustable small top gap above the preview */
  padding-top: var(--showreel-top-gap, 0.1rem);
  padding-bottom: var(--showreel-top-gap, 0rem);
  box-sizing: border-box;
}

.showreel__card {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  border-radius: var(--radius, var(--radius-lg));
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  /* Scroll-grow animation driven by CSS vars */
  --p: 0;            /* progress (0..1) set by JS */
  --scale: 1;        /* computed scale set by JS */
  --radius: 28px;    /* border radius set by JS */
  transform: translateZ(0) scale(var(--scale));
  transform-origin: center top; /* grow downward so top edge stays near top */
  will-change: transform, border-radius;
  transition: border-radius 240ms ease;
}

.showreel__card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 6px;
}

.showreel__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(252, 176, 69, 0.45), rgba(131, 58, 180, 0.6));
}

.showreel__video,
.showreel__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 1;
  pointer-events: none;
}

.showreel__preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.showreel__noise {
  position: absolute;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  mix-blend-mode: soft-light;
  opacity: 0.35;
  z-index: 2;
}

.showreel__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0;                   /* text only, no pill */
  background: transparent;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  z-index: 3;                  /* above noise */
  transition: opacity 240ms var(--reveal-ease), transform 360ms var(--reveal-ease);
}

.showreel__cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1;
}

.showreel__cta-sub {
  font-size: clamp(1.2rem, 3.6vw, 2rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.96;
}

/* Reveal CTA when card is sufficiently progressed */
#showreelCard[data-revealed="true"] .showreel__cta {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Right-hand label */
.showreel__label {
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-right: var(--container-padding, 1rem);
  transition: opacity 160ms ease, visibility 160ms ease;
}

.showreel__label.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .showreel__scroller { aspect-ratio: 16 / 9; }
  #showreelCard {
    transform: none !important;
    --scale: 1;
    --p: 1;
    --radius: 20px;
  }
  #showreelCard .showreel__cta {
    transition: opacity 200ms ease;
    opacity: 1;
  }
}

/* Small screens: simplify showreel (no grow animation, not pinned) */
@media (max-width: 720px) {
  .showreel__label { display: none; }
  /* Collapse the showreel section itself (remove desktop pinned height) */
  .showreel.showreel--pinned { height: auto; padding-top: 0; padding-bottom: 0; }
  /* Disable pinning/grow behavior on mobile */
  .showreel.showreel--pinned .showreel__scroller {
    position: relative;
    top: auto;
    height: auto;
    aspect-ratio: 16 / 9; /* keep preview proportion */
  }
  /* Add a tiny white seam between Showreel and Pricing */
  .showreel { position: relative; }
  .showreel::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px; /* cover subpixel gaps */
    height: 8px;                     /* small visible gap */
    background: var(--bg-body);      /* site light background */
    pointer-events: none;
    z-index: 1;
  }
  /* Keep the preview static (no scale by progress) */
  #showreelCard {
    transform: none !important;
    --scale: 1 !important;
    --p: 1 !important;
    --radius: 20px !important;
  }
  /* Keep CTA visible on mobile */
  #showreelCard .showreel__cta {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
}


/* ===== PRICING (white title + more translucent glass) ============================== */
.pricing {
  scroll-margin-top: calc(var(--header-height) + var(--header-pad-y));
  position: relative;
  background:
    radial-gradient(34rem 26rem at 20% -10%, rgba(131,58,180,.22), transparent 60%),
    radial-gradient(38rem 28rem at 82% -12%, rgba(253,29,29,.22), transparent 60%),
    linear-gradient(180deg, #0a0a0f 0%, #0a0a0f 55%, #040406 100%);
  color: #f6f6f6;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90rem 60rem at -15% 10%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(80rem 50rem at 115% 90%, rgba(255,193,94,.20), transparent 60%);
  opacity: .35;
  pointer-events: none;
}

.pricing::after {
  content: attr(data-bg);
position: absolute;
inset-inline: 0;
top: 0;
transform: translateY(-4rem); /* adjust this value up/down as needed */
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(6rem, 19vw, 16rem);
  letter-spacing: -0.04em;
  color: rgb(255, 255, 255);
  text-shadow: none;
  pointer-events: none;
  z-index: 0; /* stays behind the grid */
}

/* Mobile: prevent the large background title from being clipped. */
@media (max-width: 720px) {
  /* Reset the upward shift so the word sits fully inside the section. */
  .pricing::after {
    transform: none;
    top: 0; /* anchor to the section's padded top */
    /* Scale down slightly on small screens for breathing room. */
    font-size: clamp(3.5rem, 17vw, 8rem);
  }

  /* When following the pinned showreel, avoid pulling the section up too far on mobile. */
  .showreel + .pricing {
  /* Leave a very small light gap before Pricing */
    margin-top: 0.5rem;
    padding-top: clamp(0.6rem, 2vw, 0.9rem);
  }

  /* Make pricing cards narrower than viewport and centered. */
  .pricing__grid { justify-items: center; }
  .pricing-card {
    width: min(520px, calc(100vw - 3rem)); /* larger side gutters on phones */
    box-sizing: border-box;
    justify-self: center;
  }

  /* Keep feature lines on a single line when possible. */
  .pricing-card__features li {
    white-space: nowrap;
    grid-template-columns: 1fr;
    align-items: start;
    /* tighter line-height on mobile for denser feature list */
    line-height: 1.2;
  }

  /* ensure all feature text respects the tighter line-height */
  .pricing-card__features { line-height: 1.2; }
  .pricing-card__features .t-mobile { line-height: 1.2; }

  /* Give internal top space so the big PRICING title is fully visible
     without changing the external gap between sections. */
  .pricing > .container { padding-top: clamp(2.2rem, 8vw, 3.2rem); }

  /* Also push the grid down a touch so the large background title
     is completely clear above the first card. */
  .pricing__grid { margin-top: clamp(4.75rem, 12vw, 6.25rem); }
}

.pricing > .container { position: relative; z-index: 2; width: min(1500px, 94vw); }

/* removed unused pricing__intro */

.pricing__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.pricing__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: #fff;
  letter-spacing: -0.02em;
}

.pricing__subtitle {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 1.02rem;
  line-height: 1.7;
}

.pricing__grid {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  --u-grid-gap: 1.8rem;
  --u-grid-min: 460px;
  justify-content: center;
}

.pricing-card {
  position: relative;
  /* Smaller, uniform padding on all sides to reduce height */
  padding: clamp(1.6rem, 3vw, 2.2rem);
  /* softer corners, toned-down illumination */
  border-radius: 26px;

  /* subtler illuminated glass gradient body for better legibility */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 10%,
    rgba(15, 15, 20, 0.35) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);

  color: #f6f6f6;
  --u-stack-gap: 1.05rem;

  /* toned-down blur and saturation to improve see-through */
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);

  /* gentler edge glow, depth, and faint ambient halo */
  box-shadow:
    0 -1px 6px rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.45),
    0 0 28px rgba(255,255,255,0.03);

  overflow: hidden;
  isolation: isolate;
}

.pricing-card > * { position: relative; z-index: 1; }

.pricing-card::before,
.pricing-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pricing-card::before {
  inset: 0;
  border-radius: inherit;
  /* shrink and fade the glow so background text shows through */
  background:
    radial-gradient(120% 70% at 50% -20%, rgba(255,255,255,0.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* removed older top-hairline pseudo to avoid double ::after definitions */

.pricing-card::after {
  width: 320px; height: 320px; border-radius: 50%;
  right: -90px; bottom: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.7), rgba(255,255,255,.08) 70%);
  filter: blur(26px);
  opacity: .22;
}

/* Remove small corner badge labels to save vertical space */
.pricing-card__badge { display: none !important; }

.pricing-card__header h3 {
  margin: 0;
  font-size: 1.7rem;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.pricing-card__price {
  display: inline-flex;          /* stays inline with text flow */
  align-items: baseline;         /* aligns by text baseline instead of bottom */
  gap: 0.4rem;                   /* tightens spacing */
  font-family: var(--font-heading);
}

.pricing-card__currency {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  transform: none;               /* remove translation that drops kr lower */
}

.pricing-card__amount {
  font-size: clamp(3rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;                /* keeps large text vertically centered */
}

.pricing-card__suffix {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  transform: none;               /* remove translation that drops kr lower */
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  --u-flow-space: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.pricing-card__features li {
  display: grid;
  grid-template-columns: 14ch 1fr; /* fixed label column + flexible text */
  align-items: baseline;
  column-gap: 1.2rem;
  white-space: nowrap; /* keep each feature on a single line */
}

/* Mobile/desktop copy toggles */
.pricing .t-mobile { display: none; }
.pricing .t-desktop { display: inline; }
@media (max-width: 720px) {
  .pricing .t-mobile { display: inline; }
  .pricing .t-desktop { display: none; }
}

.pricing-card__features li::before {
  content: none;
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(255,255,255,.75), rgba(255,255,255,.08) 70%);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}


.pricing-card__features strong {
  color: #fff;
  font-weight: 600;
  white-space: nowrap; /* ensure label never wraps */
}

.pricing-card__meta {
  position: relative;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .32em;
  color: rgba(255,255,255,.6);
  text-align: center; padding: .5rem 0; /* tighter top/bottom */
  white-space: nowrap;
}

/* Lightbox (modal) */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.lightbox[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.lightbox__dialog {
  position: relative;
  width: min(1280px, 96vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}

.lightbox__header {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.25rem 0.75rem;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  z-index: 2;
}

.lightbox__header h2 {
  margin: 0;
  font: 600 1rem var(--font-heading);
}

.lightbox__close {
  appearance: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.lightbox__media {
  position: absolute;
  inset: 0;
}

.lightbox__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Remove decorative lines around subscription meta */
.pricing-card__meta::before,
.pricing-card__meta::after {
  content: none;
  display: none;
}

.pricing-card__cta {
  margin-top: 0.1rem; /* tighten spacing above CTA */
  width: 100%;
  justify-content: center;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
}

/* Remove empty guarantee line to avoid extra bottom space */
.pricing-card__guarantee { display: none !important; }

.pricing-card .button--secondary {
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(7,7,7,.85), rgba(24,24,24,.35));
  color: rgba(255,255,255,.95);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.15), 0 12px 24px rgba(0,0,0,.55);
}
.pricing-card .button--secondary:hover,
.pricing-card .button--secondary:focus-visible {
  /* Disable hover brightening for pricing secondary buttons */
  border-color: rgba(255,255,255,.22) !important;
  background: linear-gradient(135deg, rgba(7,7,7,.85), rgba(24,24,24,.35)) !important;
  color: rgba(255,255,255,.95) !important;
  text-decoration: none !important;
}

.pricing-card--standard::after {
  right: auto;
  left: 18%;
  background: radial-gradient(circle at 50% 0%, rgba(255,203,105,.28), transparent 70%);
  opacity: .5;
  filter: blur(28px);
}

.pricing-card--pro {
  background: rgba(18,18,18,.48);
  border-color: rgba(255,255,255,.18);
}

.pricing-card--pro::after {
  background: radial-gradient(circle at 50% 0%, rgba(255,246,222,.55), rgba(239,180,255,.28) 45%, transparent 75%);
  opacity: .55;
  filter: blur(26px);
}

.pricing-card--pro .pricing-card__badge {
  color: rgba(255, 255, 255, 0.82);
}

.pricing-card--pro .button--primary {
  background: linear-gradient(120deg, rgba(255,255,255,.98), rgba(233,213,255,.85), rgba(255,222,173,.9));
  color: #131313;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.55);
}
.pricing-card--pro .button--primary:hover,
.pricing-card--pro .button--primary:focus-visible {
  /* Disable hover brightening for pricing primary button */
  background: linear-gradient(120deg, rgba(255,255,255,.98), rgba(233,213,255,.85), rgba(255,222,173,.9)) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 32px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.55) !important;
  text-decoration: none !important;
}

/* Pricing: glassy CTA variant (scoped) */
.pricing .glass-btn {
  position: relative;
  overflow: hidden;
  /* rectangular with subtle rounding */
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15),
              0 6px 16px rgba(0, 0, 0, 0.35);
  isolation: isolate; /* create stacking context for blob/text layering */
  /* flatten shape while keeping center alignment */
  height: 56px;
  padding: 0 28px;
}

/* Prevent hover lift or visual change on pricing CTAs */
.pricing .glass-btn:hover,
.pricing .glass-btn:focus-visible {
  transform: none;
  text-decoration: none !important; /* override global a:hover underline */
}

.pricing .glass-btn span { position: relative; z-index: 2; }

.pricing .glass-btn::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 55%;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,.28), rgba(255,255,255,0));
  z-index: 1; /* above blob, below text */
  pointer-events: none;
  mix-blend-mode: screen;
}

.pricing .glass-btn .blob {
  position: absolute;
  width: 40%;
  height: 160%;
  top: -30%;
  left: -20%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center,
    hsl(280 100% 65% / 0.6) 0%,
    hsl(330 100% 70% / 0.4) 40%,
    transparent 70%);
  /* animate color and motion */
  filter: blur(24px) hue-rotate(0deg);
  mix-blend-mode: screen;
  animation:
    blobDrift 10s ease-in-out infinite alternate,
    blobHue 6s linear infinite;
}

@keyframes blobDrift {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(150%, 20%) scale(1.1); }
  100% { transform: translate(80%, -30%) scale(0.9); }
}

@keyframes blobHue {
  0%   { filter: blur(24px) hue-rotate(0deg); }
  50%  { filter: blur(24px) hue-rotate(180deg); }
  100% { filter: blur(24px) hue-rotate(360deg); }
}

/* Removed hover speed-up to keep motion constant */

@media (prefers-reduced-motion: reduce) {
  .pricing .glass-btn .blob { animation: none; opacity: 0.5; }
}

.section__title--faq {
  font-size: clamp(2.4rem, 5vw, 3rem);
}

.faq__grid {
  margin-top: 3rem;
  --u-flow-space: 1rem;
}

.faq-item {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding: 1.25rem 0;
}
.faq-item:last-of-type {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
  transition: color 0.25s ease;
}

.faq-item summary:hover {
  color: var(--accent-2, #f7be02);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.75rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}


.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-item p {
  margin-top: 0.75rem;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.6;
  max-width: 65ch;
  transition: opacity 0.25s ease;
}

/* Blog section removed */

.cta {
  padding-bottom: 7rem;
}

.cta__layout {
  --u-grid-gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: start; /* align left text with top of form (NAME) */
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-large);
}

.cta__text p {
  color: var(--text-secondary);
}

.cta__form {
  --u-flow-space: 1.1rem;
}

.cta__form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.cta__form input,
.cta__form textarea {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: #000;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.cta__form input:focus-visible,
.cta__form textarea:focus-visible {
  outline: none;
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}
.cta__textarea textarea {
  min-height: 140px;
  resize: vertical;
}

/* Compact mobile tweaks for CTA section */
@media (max-width: 720px) {
  /* Tighten section spacing */
  .cta { padding-top: 2.75rem; padding-bottom: 3.5rem; }

  /* Lean card layout and spacing */
  .cta__layout {
    --u-grid-gap: 1.25rem;
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  /* Slightly smaller heading inside CTA */
  .cta .section__title { font-size: clamp(1.6rem, 6.2vw, 1.9rem); }

  /* Reduce vertical rhythm in form */
  .cta__form { --u-flow-space: 0.85rem; }
  .cta__form label { gap: 0.3rem; font-size: 0.8rem; letter-spacing: 0.14em; }

  /* Smaller inputs for a tighter feel */
  .cta__form input,
  .cta__form textarea {
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
  }

  .cta__textarea textarea { min-height: 110px; }

  /* Slightly smaller CTA button within the form */
  .cta .button { padding: 0.7rem 1.2rem; font-size: 0.68rem; }
}

.site-footer {
  /* Unified with new Arqiv footer styling */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(6rem, 12vw, 10rem);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}

.footer__brand p {
  color: inherit;
  max-width: 32ch;
}

.footer__note {
  color: inherit;
  font-size: 0.85rem;
  letter-spacing: .02em;
  text-transform: none;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer__links h4 {
  margin: 0 0 .75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(255,255,255,0.85);
}

.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
  color: inherit;
}

.footer__links a {
  color: inherit;
  font-size: 0.95rem;
}

/* Reveal animations */
[data-animate] {
  opacity: 0;
  transform: translateY(var(--reveal-distance, 40px));
  transition:
    transform var(--reveal-duration, 600ms) var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--reveal-delay, 80ms),
    opacity var(--reveal-duration, 600ms) var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--reveal-delay, 80ms);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children within visible sections */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(var(--reveal-distance, 40px));
  transition:
    transform var(--reveal-duration, 600ms) var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) calc(var(--reveal-delay, 80ms) + (var(--i, 0) * var(--stagger-step, 90ms))),
    opacity var(--reveal-duration, 600ms) var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) calc(var(--reveal-delay, 80ms) + (var(--i, 0) * var(--stagger-step, 90ms)));
}

[data-animate].is-visible [data-stagger] > * {
  opacity: 1;
  transform: translateY(0);
}

/* Set index variables for first 12 children */
[data-stagger] > *:nth-child(1) { --i: 0 }
[data-stagger] > *:nth-child(2) { --i: 1 }
[data-stagger] > *:nth-child(3) { --i: 2 }
[data-stagger] > *:nth-child(4) { --i: 3 }
[data-stagger] > *:nth-child(5) { --i: 4 }
[data-stagger] > *:nth-child(6) { --i: 5 }
[data-stagger] > *:nth-child(7) { --i: 6 }
[data-stagger] > *:nth-child(8) { --i: 7 }
[data-stagger] > *:nth-child(9) { --i: 8 }
[data-stagger] > *:nth-child(10) { --i: 9 }
[data-stagger] > *:nth-child(11) { --i: 10 }
[data-stagger] > *:nth-child(12) { --i: 11 }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}


/* Responsive adjustments */
@media (max-width: 1024px) {
  .nav-links { display: none; }

  .nav-toggle { display: inline-block; }
  .nav-panel { gap: 0.8rem; }

  /* Mobile menu: compact dropdown sized to its content */
  .nav-panel.is-open .nav-links {
    display: grid;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: auto;
    width: max-content;
    min-width: clamp(220px, 60vw, 380px);
    max-width: min(92vw, 420px);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: rgba(246,246,242,0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    align-content: start;
    justify-content: start;
    justify-items: start;
    row-gap: 0.5rem;
    z-index: 1300;
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
  }

  /* keep all nav items visible on mobile */
  .nav-panel.is-open .nav-links a { font-size: 1rem; letter-spacing: 0.14em; line-height: 1.15; padding-block: 0.1rem; }
  
  /* Hide language switcher in header bar on small screens */
  .lang-switch { display: none; }

  /* When menu is open, show languages inside the dropdown (as last item) */
  .nav-panel.is-open .lang-switch {
    display: inline-flex;
    position: static;
    z-index: 1;
    gap: 0.35rem;
    margin-top: 0.6rem;
  }

  .cta__layout {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  section {
    padding: 4.5rem 0;
  }

  .site-header > .container {
    padding-block: 1rem;
  }

  .hero {
    padding-top: 6rem;
  }

  /* On phones, hide the big hero heading entirely */
  .hero { display: none; }

  /* Make hero visual less tall on phones
     Use a ~16:9 aspect so it feels lighter
     while keeping space for the overlay text. */
  /* Add a comfortable gap under the fixed header */
  .hero-visual { padding-top: 1.25rem; }
  /* Nudge the panel down a touch for visual breathing room */
  .image-panel { margin-top: 0.5rem; }
  .image-panel__media {
    min-height: unset;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Hide hero top tabs on mobile */
  .image-panel__tabs { display: none; }

  .showreel__cta {
    inset: auto;          /* clear bottom-right placement */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }


  .pricing-card {
    padding: 1.25rem; /* uniform all around on phones */
  }

  .faq-item {
    padding-inline: 1.4rem;
  }

  .cta__layout {
    padding: 2.5rem;
  }
}

@media (max-width: 540px) {
  .hero__title {
    font-size: clamp(3.2rem, 12vw, 5.6rem);
  }

  .brands__track {
    font-size: 1.2rem;
    gap: 2rem;
  }

  

  .cta__form input,
  .cta__form textarea {
    padding-inline: 0.9rem;
  }

  .cta__layout {
    padding: 2rem;
  }
}
.site-header .brand-mark { font-size: clamp(1.2rem, 1.3vw, 1.5rem); }
.site-header .brand-tag { font-size: 0.72rem; }
/* Selected Work: Vertical Carousel */
.work__carousel { position: relative; margin-top: 2rem; }
.vslider__viewport { position: relative; height: clamp(390px, 51vh, 570px); overflow: visible; border-radius: 0; background: transparent; box-shadow: none; perspective: 1000px; --stack-gap: 56px; --stack-scale: .06; }
/* Stacked layout: track only serves as a positioned container */
.vslider__track { position: relative; height: 100%; }
/* Slides overlap each other and animate via transform */
.vslide { position: absolute; inset: 0; padding: clamp(0.4rem, 1.2vw, 0.8rem); transform-origin: center; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 380ms ease, filter 380ms ease; will-change: transform, opacity, filter; pointer-events: none; }
.vslide::after { content: ""; position: absolute; inset: clamp(0.4rem, 1.2vw, 0.8rem); border-radius: 2rem; background: rgba(0,0,0,var(--dim,0)); transition: background 380ms ease; pointer-events: none; }
.vslide.is-active { pointer-events: auto; }
.vslide.is-active::after { background: rgba(0,0,0,0); }
.vslide__media { box-shadow: 0 25px 50px rgba(0,0,0,.3); }
.vslide.is-active .vslide__media { box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.vslide__media { position: relative; overflow: hidden; height: 100%; border-radius: 2rem; background: #000; }
/* removed unused vslide__media--black */
.vslide__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vslide__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Overlay controls and chips */
.vslider__cta { position: absolute; left: 50%; top: 0.9rem; transform: translateX(-50%); background: #0f1f2b; color: #fff; padding: 0.6rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.vslider__cta:hover { filter: brightness(1.06); }
.vslide__chip { position: absolute; left: 1rem; bottom: 1rem; background: #fff; color: #111; border-radius: 999px; padding: 0.35rem 0.7rem 0.35rem 0.55rem; font-weight: 700; font-size: 0.85rem; display: inline-grid; grid-auto-flow: column; align-items: center; gap: 0.5rem; box-shadow: 0 8px 20px rgba(0,0,0,0.18); pointer-events: none; }
.vslide__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3c3c; display: inline-block; }

/* Only show the chip on the active card */
.vslide:not(.is-active) .vslide__chip { opacity: 0; }

/* Arrow controls */
.vslider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
  font-size: 0; /* hide inner text, use pseudo for chevron */
}
.vslider__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid rgba(255,255,255,.95);
  border-right: 3px solid rgba(255,255,255,.95);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 220ms ease;
}
.vslider__arrow--left::before { transform: translate(-45%, -50%) rotate(225deg); }
.vslider__arrow--right::before { transform: translate(-55%, -50%) rotate(45deg); }
.vslider__arrow:hover { background: rgba(0,0,0,0.6); }
.vslider__arrow--left:hover::before { transform: translate(calc(-45% - 2px), -50%) rotate(225deg); }
.vslider__arrow--right:hover::before { transform: translate(calc(-55% + 2px), -50%) rotate(45deg); }
.vslider__arrow:focus-visible { outline: 2px solid rgba(255,255,255,0.65); outline-offset: 2px; }
.vslider__arrow[disabled] { opacity: .26; cursor: default; pointer-events: none; }
.vslider__arrow--left { left: 12px; }
.vslider__arrow--right { right: 12px; }

@media (max-width: 720px) {
  .vslider__arrow { width: 36px; height: 36px; font-size: 18px; }
  .vslider__arrow--left { left: 8px; }
  .vslider__arrow--right { right: 8px; }
}

/* Ensure the CTA never briefly appears behind slides during transitions */
.vslider__cta { display: none !important; pointer-events: none; }

/* Pagination */
.vslider__pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.vslider__dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(17, 24, 39, 0.28); padding: 0; cursor: pointer; transition: transform 160ms ease, background 160ms ease, opacity 160ms ease; opacity: 0.7; }
.vslider__dot[aria-current="true"] { background: #111; opacity: 1; transform: scale(1.15); }
.vslider__dot:focus-visible { outline: 2px solid rgba(0,0,0,0.45); outline-offset: 2px; }

/* Desktop-only glass controls for the Work carousel */
@media (min-width: 721px) {
  .vslider__pagination { display: none; }

  .vslider__glass {
    position: static;          /* under the carousel, as before */
    display: flex;
    justify-content: center;   /* centered under the slider */
    align-items: center;
    gap: 0.9rem;
    margin-top: 12px;          /* spacing below the frames */
    width: 100%;
  }

  .vglass__btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    color: #111;
    cursor: pointer;
  }
  .vglass__btn::before {
    content: '';
    display: block;
    width: 12px; height: 12px;
    box-shadow: 0 0 0 3px #111 inset, 12px 0 0 3px #111 inset; /* pause icon */
  }
  .vglass__btn.is-paused::before {
    /* play icon */
    width: 0; height: 0; box-shadow: none; border-left: 14px solid #111; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 2px;
  }

  .vglass__bar {
    --glass-w: clamp(180px, 26vw, 280px); /* shorter, like the example */
    width: var(--glass-w);
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.78));
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
  }
  .vglass__meter {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
    overflow: hidden;
  }
  .vglass__fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--progress, 0%);
    background: linear-gradient(to right, #2c2c2c, #4a4a4a);
    border-radius: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  }
  .vglass__track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }
  .vglass__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.38); transition: background .2s ease; border: none; padding: 0; cursor: pointer; }
  .vglass__dot:focus-visible { outline: 2px solid rgba(0,0,0,0.45); outline-offset: 2px; }
  .vglass__dot.is-active { background: #111; }
  .vglass__indicator { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 999px; background: #333; box-shadow: 0 1px 4px rgba(0,0,0,0.25); transform: translate(-50%, -50%); transition: left 200ms ease; }
}

/* Keep reveal animation even with reduced motion to ensure visibility */

/* Hide glass controls on mobile */
@media (max-width: 720px) {
  .vslider__glass { display: none !important; }
}

/* === Footer Redesign (Arqiv style) === */
footer {
  position: relative;
  background:
    radial-gradient(40rem 28rem at 10% -20%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(40rem 28rem at 90% -10%, rgba(255,193,94,0.10), transparent 60%),
    #0b0b0e;
  color: #e7e7ea;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(6rem, 12vw, 10rem);
  overflow: hidden; /* needed for the peek effect */
  z-index: 10001; /* sits above body edge-blur overlay */
}

footer .container {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
}

footer h4,
footer h3 {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

footer a {
  color: rgba(235,235,240,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .18em;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}
