/* ==========================================================================
   Therilla Studio
   Built for an Elementor rebuild: every layout is a flex container.
   Breakpoints match Elementor defaults: tablet <= 1024px, mobile <= 767px.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #02177F;         /* logo navy: headings, dark buttons (14.7:1 on white) */
  --navy-deep: #010E52;    /* navy hover */
  --orange: #FF6A35;       /* logo orange: fills only (buttons, icons on tint) */
  --orange-accent: #E8541F;/* orange for large headline text (3.7:1) */
  --orange-text: #C2410C;  /* orange for small text, links, icons (5.2:1) */

  /* Neutrals */
  --bg: #FFFFFF;           /* page background */
  --surface: #F4F5FA;      /* raised band, cards, inputs */
  --surface-2: #E9EBF5;    /* hover surface */
  --tint: #FFF4EE;         /* warm orange-tinted band */
  --ink: #0A0F2E;          /* body text (18.7:1) */
  --muted: #555A78;        /* secondary text (6.2:1 or better on every surface) */
  --line: rgba(10, 15, 46, 0.12);
  --line-strong: rgba(10, 15, 46, 0.24);

  /* Type */
  --font: "Montserrat", system-ui, sans-serif;

  --fs-display: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3.125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.9375rem;

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --max: 1320px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow: 0 18px 40px -22px rgba(2, 23, 127, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--orange-text);
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

::selection { background: var(--orange); color: var(--ink); }

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

html { scrollbar-color: #C9CCDD var(--bg); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #C9CCDD; border-radius: 12px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }

p { margin: 0; max-width: 68ch; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); font-weight: 500; }
.accent { color: var(--orange-accent); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Layout primitives (Elementor: Container) ---------- */

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--paper { background: var(--tint); }
.section--raised { background: var(--surface); }
.section--orange { background: var(--orange); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 1rem + 2.5vw, 4rem); }
.row--center { align-items: center; }
.row--end { align-items: flex-end; }
.row--between { justify-content: space-between; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.col--40 { flex: 0 1 40%; }
.col--60 { flex: 0 1 calc(60% - 4rem); }
.col--45 { flex: 0 1 45%; }
.col--55 { flex: 0 1 calc(55% - 4rem); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack--lg { gap: 2rem; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 { flex: 1 1 520px; max-width: 18ch; }
.section-head p { flex: 0 1 440px; }

/* ---------- Buttons (Elementor: Button) ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 0.95rem; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn i { font-size: 0.9em; transition: transform 0.3s var(--ease-out); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--line-strong); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(2, 23, 127, 0.04); }
.btn--ink { background: var(--navy); color: #fff; }
.btn--ink:hover { background: var(--navy-deep); }
.section--orange .btn--ghost, .cta-band .btn--ghost { border-color: rgba(10, 15, 46, 0.4); color: var(--ink); }
.section--orange .btn--ghost:hover, .cta-band .btn--ghost:hover { border-color: var(--ink); background: rgba(10, 15, 46, 0.06); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--orange-text); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; align-self: flex-start;
}
.text-link:hover { color: var(--navy); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 148px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; padding: 0.55rem 0.85rem; border-radius: 999px;
  font-weight: 600; font-size: 0.925rem; text-decoration: none; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a:hover { color: var(--navy); background: var(--surface); }
.nav-list a[aria-current="page"] { color: var(--navy); }
.nav-list a[aria-current="page"]::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.5rem;
  border-radius: 50%; background: var(--orange); align-self: center;
}
.nav .btn { min-height: 46px; padding: 0.65rem 1.25rem; }

.nav-social { display: none; }

.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 46px; padding: 0 1.1rem; border-radius: 999px;
  border: 2px solid var(--line-strong); background: transparent; color: var(--navy);
  font: 700 0.9rem var(--font); cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out), opacity 0.2s;
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 5px; }
.menu-toggle .bars span:nth-child(3) { top: 10px; }
.menu-open .menu-toggle .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

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

.hero { padding-top: clamp(3.5rem, 2rem + 6vw, 7.5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero h1 { font-size: var(--fs-display); max-width: 17ch; }
.hero .lead { max-width: 54ch; }
.hero-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; }
.hero-intro .stack { flex: 0 1 580px; }

.page-hero { padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { max-width: 17ch; }
.page-hero .lead { max-width: 58ch; }

/* The brand slash: the logo's two orange bars, as a heading mark */
.slash {
  display: inline-flex; gap: 0.12em; vertical-align: baseline; margin-right: 0.18em;
  height: 0.72em; transform: translateY(0.02em);
}
.slash::before, .slash::after {
  content: ""; width: 0.16em; height: 100%; background: var(--orange); transform: skewX(16deg);
}

/* ---------- Media ---------- */

.media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.media--wide { aspect-ratio: 21 / 9; }
.media--video { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
a.media:hover img, .card:hover .media img { transform: scale(1.035); }

.play {
  position: absolute; left: clamp(1rem, 0.5rem + 2vw, 2rem); bottom: clamp(1rem, 0.5rem + 2vw, 2rem);
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--navy);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(10, 15, 46, 0.45);
}
.play .play-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--ink);
  transition: transform 0.4s var(--ease-out);
}
.play .play-icon i { margin-left: 3px; }
a.media:hover .play-icon { transform: scale(1.1); }
.play small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8125rem; line-height: 1.2; }

.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---------- Client logos (Elementor: Image Carousel / Images in a row) ---------- */

.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem 3rem;
}
.logos-label { flex: 0 0 auto; font-weight: 700; font-size: var(--fs-small); color: var(--muted); max-width: 18ch; line-height: 1.4; }
.logos-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2rem clamp(2rem, 1rem + 3vw, 4rem); flex: 1 1 520px; list-style: none; margin: 0; padding: 0; }
.logos-list li { display: flex; align-items: center; }
.logos-list img { height: 54px; width: auto; filter: grayscale(1) contrast(1.1); opacity: 0.7; mix-blend-mode: multiply; transition: filter 0.3s, opacity 0.3s; }
.logos-list img.logo-tall { height: 64px; }
.logos-list li:hover img { filter: none; opacity: 1; }
.logo-word { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: #6B6F8A; }

/* ---------- Statement ---------- */

.statement { font-weight: 700; font-size: clamp(1.625rem, 1.15rem + 2vw, 2.875rem); line-height: 1.22; letter-spacing: -0.025em; color: var(--navy); max-width: 26ch; text-wrap: balance; }
.statement .dim { color: #7A7E99; display: block; text-align: justify; }

/* ---------- Services list (Elementor: Icon Box) ---------- */

.service-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem;
  padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  transition: padding-left 0.5s var(--ease-out);
}
.service-item .icon {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--orange-text); font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.service-item h3 { flex: 1 1 320px; font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.service-item p { flex: 1 1 340px; color: var(--muted); }
.service-item .arrow { flex: 0 0 auto; font-size: 1.5rem; color: var(--muted); transition: transform 0.5s var(--ease-out), color 0.3s; }
a.service-item:hover { padding-left: 1rem; }
a.service-item:hover .icon { background: var(--orange); color: var(--ink); box-shadow: none; }
a.service-item:hover .arrow { color: var(--orange-text); transform: translateX(6px); }

/* ---------- Project cards (Elementor: Image + Heading + Text inside a Container) ---------- */

.cards { display: flex; flex-wrap: wrap; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.card { flex: 1 1 calc(50% - 2.5rem); min-width: 280px; display: flex; flex-direction: column; gap: 1.1rem; text-decoration: none; }
.card--third { flex-basis: calc(33.333% - 2.5rem); }
.card--wide { flex-basis: 100%; }
.card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
  background: #FFE8DE; color: #B23A0E;
}
.card h3 { transition: color 0.3s; }
a.card:hover h3 { color: var(--orange-text); }
.card p { color: var(--muted); }
.card .media { box-shadow: var(--shadow); }
.placeholder-note {
  position: absolute; left: 1rem; top: 1rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--muted); font-size: 0.75rem; font-weight: 700;
}

/* ---------- Showreel band ---------- */

.reel-band .media { border-radius: clamp(14px, 1vw + 8px, 24px); box-shadow: var(--shadow); }
.reel-band h2 { max-width: 15ch; }

/* ---------- Process (Elementor: Icon Box with number) ---------- */

.steps { display: flex; flex-wrap: wrap; gap: 2.5rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.step { flex: 1 1 220px; display: flex; flex-direction: column; gap: 0.85rem; padding-top: 1.5rem; border-top: 2px solid var(--line); position: relative; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--orange);
}
.step-num { font-weight: 800; font-size: 0.95rem; color: var(--orange-text); font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: 0.975rem; }

/* ---------- Feature / icon boxes ---------- */

.features { display: flex; flex-wrap: wrap; gap: 2.75rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.feature { flex: 1 1 260px; display: flex; flex-direction: column; gap: 0.75rem; }
.feature .icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-size: 1.2rem; margin-bottom: 0.35rem;
}
.feature p { color: var(--muted); font-size: 0.975rem; }

/* Checklist (Elementor: Icon List) */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; }
.checklist i { color: var(--orange-text); margin-top: 0.42em; flex: 0 0 auto; }

/* ---------- Split service rows (Services page) ---------- */

.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(2rem, 1rem + 4vw, 6rem); }
.split > .media { flex: 1 1 480px; box-shadow: var(--shadow); }
.split > .stack { flex: 1 1 400px; }
.split--reverse { flex-direction: row-reverse; }
.split + .split { margin-top: clamp(4rem, 3rem + 5vw, 8rem); }

/* ---------- Principles ---------- */

.principles { display: flex; flex-direction: column; }
.principle {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle h3 { flex: 1 1 360px; }
.principle p { flex: 1 1 420px; color: var(--muted); }

/* ---------- Accordion (Elementor: Accordion) ---------- */

.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.5rem; font-weight: 700; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); letter-spacing: -0.015em; color: var(--navy);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--navy);
  font-size: 1.4rem; font-weight: 500;
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.section--raised .accordion summary::after { background: #fff; }
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: var(--ink); box-shadow: none; }
.accordion summary:hover { color: var(--orange-text); }
.accordion .answer { padding-bottom: 1.75rem; color: var(--muted); max-width: 70ch; }
.accordion .answer a { color: var(--orange-text); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--orange); color: var(--ink); }
.cta-band h2 { color: var(--ink); }
.cta-band .container { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2.5rem; }
.cta-band h2 { font-size: var(--fs-display); max-width: 12ch; }
.cta-band .stack { flex: 0 1 420px; }
.cta-band p { font-size: var(--fs-lead); line-height: 1.55; font-weight: 600; }

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

.contact-options { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.contact-option {
  flex: 1 1 240px; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.75rem; border-radius: var(--radius); background: var(--surface);
  text-decoration: none; border: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.contact-option .icon { font-size: 1.35rem; color: var(--orange-text); margin-bottom: 0.5rem; }
.contact-option strong { font-size: 1.15rem; letter-spacing: -0.015em; color: var(--navy); }
.contact-option span { color: var(--muted); word-break: break-word; }
a.contact-option:hover { background: #fff; border-color: rgba(255, 106, 53, 0.55); transform: translateY(-3px); box-shadow: var(--shadow); }

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 0.5rem; }
.form > .field { flex: 0 0 auto; }
.field label { font-weight: 700; font-size: var(--fs-small); color: var(--navy); }
.field label .req { color: var(--orange-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 0.85rem 1rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 500 1rem var(--font);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange-text) 50%), linear-gradient(135deg, var(--orange-text) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.75rem;
}
.field input::placeholder, .field textarea::placeholder { color: #767A94; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(10, 15, 46, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background-color: #fff; box-shadow: 0 0 0 3px rgba(2, 23, 127, 0.12); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C42B2B; }
.field-error { color: #B42318; font-size: 0.875rem; font-weight: 600; }
.form-note { color: var(--muted); font-size: var(--fs-small); }
.form-note a { color: var(--orange-text); font-weight: 600; }
.form-status { font-weight: 600; color: var(--navy); }
.form-status:empty { display: none; }

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

.site-footer { background: var(--surface); padding-top: clamp(4rem, 3rem + 4vw, 7rem); padding-bottom: 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.footer-cta { flex: 1 1 480px; display: flex; flex-direction: column; gap: 1.5rem; }
.footer-cta h2 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem); max-width: 12ch; }
.footer-cols { flex: 1 1 480px; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: flex-end; }
.footer-col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { text-decoration: none; font-weight: 600; color: var(--navy); }
.footer-col a:hover { color: var(--orange-text); }
.footer-col .socials { flex-direction: row; gap: 0.6rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); text-decoration: none; font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s var(--ease-out), color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.section--raised .socials a, .site-footer .socials a { background: #fff; }
.socials a:hover { background: var(--orange); color: var(--ink); box-shadow: none; transform: translateY(-2px); }
.footer-bottom {
  margin-top: clamp(3.5rem, 3rem + 3vw, 6rem); padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: var(--fs-small);
}
.footer-bottom img { width: 132px; }

.title-sm { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; }

/* ---------- Motion: one authored moment, the hero reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 1.1s var(--ease-out) both; }
  .reveal-2 { animation-delay: 0.12s; }
  .reveal-3 { animation-delay: 0.24s; }
  .reveal-4 { animation-delay: 0.36s; }
  @keyframes rise {
    from { opacity: 0.35; transform: translateY(22px); filter: blur(5px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Tablet (Elementor tablet breakpoint) ---------- */

@media (max-width: 1024px) {
  /* No backdrop-filter here: it would trap the fixed menu panel inside the header */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 78px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: 2rem var(--gutter) 3rem; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    display: flex; padding: 1.1rem 0; border-radius: 0;
    font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.125rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy);
  }
  .nav-list a:hover { background: none; color: var(--orange-text); }
  .nav .btn { align-self: flex-start; min-height: 54px; }
  .nav-social { display: flex; }

  .col--40, .col--60, .col--45, .col--55 { flex-basis: 100%; }
  .card--third { flex-basis: calc(50% - 2.5rem); }
}

/* ---------- Mobile (Elementor mobile breakpoint) ---------- */

@media (max-width: 767px) {
  .brand img { width: 128px; }
  .site-header .container { min-height: 68px; }
  .nav { inset: 68px 0 0 0; }
  .card, .card--third { flex-basis: 100%; min-width: 0; }
  .media--wide { aspect-ratio: 4 / 3; }
  .btn-row .btn { flex: 1 1 100%; }
  .service-item { gap: 1rem; }
  .service-item .arrow { display: none; }
  .logos-list { justify-content: flex-start; }
  .logos-list img { height: 42px; }
  .logos-list img.logo-tall { height: 50px; }
  .play { padding-right: 1rem; }
  .play small { display: none; }
  .cta-band .container { align-items: flex-start; }
  .footer-cols { justify-content: flex-start; }
  .footer-col { flex: 1 1 140px; }
}

/* ==========================================================================
   Video header (matches therillastudio.com)
   Header sits transparent over a hero with a looping background video and a
   navy overlay, then turns white once the page scrolls.
   Elementor: Header with "Sticky" + "Change on scroll" effects; hero is a
   Container with Background type Video (https://youtu.be/GrdM6YvQHsk),
   Background Overlay #000F64 at 78% opacity.
   ========================================================================== */

.brand .logo-on-video { display: none; }

.has-video-hero .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.has-video-hero .site-header.is-scrolled,
.menu-open .has-video-hero .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(10, 15, 46, 0.5);
}

/* Header colours while it sits on the video */
html:not(.menu-open) .has-video-hero .site-header:not(.is-scrolled) .logo-on-video { display: block; }
html:not(.menu-open) .has-video-hero .site-header:not(.is-scrolled) .logo-on-white { display: none; }
html:not(.menu-open) .has-video-hero .site-header:not(.is-scrolled) .nav-list a { color: rgba(255, 255, 255, 0.82); }
html:not(.menu-open) .has-video-hero .site-header:not(.is-scrolled) .nav-list a:hover,
html:not(.menu-open) .has-video-hero .site-header:not(.is-scrolled) .nav-list a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
html:not(.menu-open) .has-video-hero .site-header:not(.is-scrolled) .menu-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

.menu-toggle { padding: 0; width: 46px; }

/* Hero with background video */
.video-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #000F64; color: #fff;
  display: flex; align-items: flex-end;
}
.hero.video-hero { min-height: clamp(620px, 92vh, 980px); padding-top: calc(78px + clamp(3rem, 2rem + 5vw, 6rem)); align-items: center; }
.page-hero.video-hero { min-height: clamp(440px, 64vh, 700px); padding-top: calc(78px + clamp(3rem, 2rem + 4vw, 5rem)); }

.video-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-bg iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%); border: 0; pointer-events: none; max-width: none;
}
.video-overlay { position: absolute; inset: 0; z-index: -1; background: rgba(0, 15, 100, 0.78); }

.video-hero h1, .video-hero h2, .video-hero h3 { color: #fff; }
.video-hero .accent { color: var(--orange); }
.video-hero .lead, .video-hero .muted { color: rgba(255, 255, 255, 0.86); }
.video-hero .btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.video-hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.video-hero .btn--primary:hover { background: #fff; color: var(--navy); }
.video-hero .media { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }

/* Quick showreel band, black as on the live site */
.showreel-band { background: #000; color: #fff; }
.showreel-band h2 { color: #fff; }
.showreel-band .lead { color: rgba(255, 255, 255, 0.78); }
.showreel-band .lead a { color: var(--orange); font-weight: 600; }
.showreel-band .video-embed { background: #111; border-radius: clamp(10px, 1vw + 6px, 20px); }

@media (prefers-reduced-motion: reduce) {
  .video-bg iframe { display: none; }
}

@media (max-width: 1024px) {
  .has-video-hero .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .has-video-hero .site-header { background: #fff; }
}

@media (max-width: 767px) {
  .hero.video-hero { min-height: 0; padding-top: calc(68px + 3.5rem); padding-bottom: 4rem; }
  .page-hero.video-hero { min-height: 0; padding-top: calc(68px + 3rem); padding-bottom: 3.5rem; }
}

/* Navy band: the "Four crafts. One story." section on the home page */
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3, .section--navy .lead, .section--navy p, .section--navy .service-item .arrow { color: #fff; }
.section--navy .service-list, .section--navy .service-item { border-color: rgba(255, 255, 255, 0.22); }

/* ---------- Scroll reveal ----------
   Only active once main.js adds .reveal-ready, so content is never hidden without JS.
   Blocks rise into place; text rises and sharpens out of a soft blur. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  .reveal-ready [data-reveal="text"] { transform: translateY(24px); filter: blur(10px); }
  .reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Clientele marquee ----------
   Two identical lists side by side; the track slides right by exactly one list's width,
   then restarts, so the loop is seamless. Edges fade out. Pauses on hover. */
.clients .container { margin-bottom: 1.75rem; }
.logo-marquee {
  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);
}
.logo-track { display: flex; width: max-content; animation: logo-scroll 60s linear infinite; }
.logo-marquee .logos-list {
  flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-start;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-right: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  /* No movement: show one wrapped set instead */
  .logo-marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
  .logo-track { animation: none; width: auto; }
  .logo-marquee .logos-list { flex-wrap: wrap; padding-right: 0; }
  .logo-marquee .logos-list[aria-hidden="true"] { display: none; }
}

/* ---------- Video pop-up ---------- */
.video-modal {
  width: min(1100px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible; color: #fff;
}
.video-modal::backdrop { background: rgba(5, 8, 30, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-modal-inner { position: relative; display: flex; flex-direction: column; gap: 0.85rem; }
.video-modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: clamp(8px, 1vw, 16px); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-title { font-weight: 700; font-size: 1rem; color: rgba(255, 255, 255, 0.9); margin: 0; }
.video-modal-close {
  position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); font-size: 1.1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.2s;
}
.video-modal-close:hover { background: var(--orange); color: var(--ink); transform: rotate(90deg); }
html.video-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .video-modal[open] .video-modal-inner { animation: video-in 0.45s var(--ease-out) both; }
  .video-modal[open]::backdrop { animation: fade-in 0.3s ease both; }
  @keyframes video-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-height: 560px) {
  .video-modal { width: min(1100px, calc((100vh - 120px) * 16 / 9)); }
}

/* ---------- Projects filter ---------- */
[hidden] { display: none !important; }
.projects-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.projects-heading { display: flex; flex-direction: column; gap: 0.35rem; }
.projects-heading h2 { font-size: var(--fs-h2); }

.filters { position: relative; }
.filters-toggle { list-style: none; gap: 0.6rem; user-select: none; }
.filters-toggle::-webkit-details-marker { display: none; }
.filters[open] .filters-toggle { background: var(--orange); color: var(--ink); }
.filters-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.filters[open] .filters-badge { background: var(--ink); color: #fff; }
.filters-panel {
  position: absolute; right: 0; top: calc(100% + 0.75rem); z-index: 30; width: min(560px, calc(100vw - 2 * var(--gutter)));
  background: #fff; border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem;
  box-shadow: 0 30px 60px -25px rgba(10, 15, 46, 0.45), 0 0 0 1px var(--line);
}
.filters-panel-head { display: flex; align-items: center; justify-content: space-between; }
.filters-panel-head h3 { font-size: 1.375rem; }
.filters-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--navy); cursor: pointer; font-size: 1rem; }
.filters-close:hover { background: var(--orange); color: var(--ink); }
.filter-group { display: flex; flex-direction: column; gap: 0.75rem; }
.filter-group h4 { font-size: 0.95rem; color: var(--muted); font-weight: 700; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 1rem; border-radius: 999px;
  background: var(--surface); color: var(--navy); font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.filter-chip:hover { background: var(--surface-2); }
.filter-chip[aria-current="true"] { background: var(--navy); color: #fff; }
.filters-reset { font-size: 0.9rem; }

/* Horizontal "type of work" bar under the heading. Scrolls sideways on narrow screens. */
.projects-toolbar { margin-bottom: 1.5rem; }
.type-bar { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--line); }
.type-bar-list {
  flex-wrap: nowrap; overflow-x: auto; gap: 0.5rem; padding-bottom: 1.25rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.type-bar-list::-webkit-scrollbar { display: none; }
.type-bar-list .filter-chip { flex: none; white-space: nowrap; scroll-snap-align: start; min-height: 44px; padding: 0.5rem 1.2rem; }
@media (max-width: 767px) {
  .type-bar { margin-inline: calc(-1 * var(--gutter)); }
  .type-bar-list { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

.media-badge {
  position: absolute; right: 0.85rem; top: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(10, 15, 46, 0.72); color: #fff;
  font-size: 0.78rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.media-badge i { font-size: 0.65rem; }
a.project-card:hover .media-badge { background: var(--orange); color: var(--ink); }
.tag--quiet { background: var(--surface); color: var(--muted); }
.project-card p { font-size: 0.95rem; }
.projects-more { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .project-card.is-filtered-in { animation: card-in 0.5s var(--ease-out) both; }
  @keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Phones: the panel becomes a bottom sheet, like the reference */
@media (max-width: 767px) {
  .filters[open]::before { content: ""; position: fixed; inset: 0; background: rgba(10, 15, 46, 0.45); z-index: 60; }
  .filters-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; z-index: 61;
    border-radius: 22px 22px 0 0; max-height: 85vh; overflow-y: auto; padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  }
  @media (prefers-reduced-motion: no-preference) {
    .filters[open] .filters-panel { animation: sheet-up 0.35s var(--ease-out) both; }
    @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  }
}

/* ---------- Gallery pop-up (project images shown on this page) ---------- */
.gallery-modal {
  width: min(960px, calc(100vw - 2 * var(--gutter))); height: calc(100dvh - 2 * var(--gutter)); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: clamp(10px, 1vw, 18px); overflow: hidden;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.gallery-modal[open] { display: flex; flex-direction: column; }
.gallery-modal::backdrop { background: rgba(5, 8, 30, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gallery-modal-bar {
  display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0.85rem 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line); flex: none;
}
.gallery-modal-heading { flex: 1; min-width: 0; }
.gallery-modal-title { font-size: 1.15rem; color: var(--navy); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-modal-meta { font-size: 0.85rem; color: var(--muted); margin: 0; }
.gallery-modal-source { font-size: 0.9rem; white-space: nowrap; }
.gallery-modal-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--navy);
  font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}
.gallery-modal-close:hover { background: var(--orange); color: var(--ink); transform: rotate(90deg); }
.gallery-modal-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #fff; outline: none; display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.gallery-row { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 4px; }
.gallery-row img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
  .gallery-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .gallery-modal-source { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-modal[open] { animation: video-in 0.4s var(--ease-out) both; }
  .gallery-modal[open]::backdrop { animation: fade-in 0.3s ease both; }
}
