/*
Theme Name: Talisman Interactive
Theme URI: https://talismanworks.com
Author: Talisman Interactive
Description: The Talisman Interactive agency site as a fully editable WordPress block theme — dark corporate design with brand coral/blue gradients, scroll reveals, marquees and pinned horizontal showcases. Edit every section, text and image in the Site Editor / page editor, no code needed.
Version: 2.5.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: talisman
*/

/* ============================================================
   Design tokens (mirrors the original Lovable build)
   ============================================================ */
:root {
  --ti-bg: #12141f;
  --ti-card: #191c2b;
  --ti-fg: #f7f8fc;
  --ti-muted: #a4aabd;
  --ti-coral: #f08458;
  --ti-coral-light: #f4a06a;
  --ti-blue: #4f6be0;
  --ti-border: rgba(122, 132, 168, 0.28);
  --ti-radius: 0.75rem;
  --ti-gradient: linear-gradient(135deg, #F4A06A 0%, #EE6F8E 45%, #4F6BE0 100%);
  --ti-gradient-soft: linear-gradient(135deg, rgba(240,132,88,0.18), rgba(79,107,224,0.08));
  --ti-shadow-brand: 0 10px 40px -10px rgba(79, 107, 224, 0.45);
  --ti-shadow-brand-strong: 0 0 60px rgba(240, 132, 88, 0.45);
  --ti-font-display: "Sora", "Inter", system-ui, sans-serif;
  --ti-font-sans: "Manrope", "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ti-bg);
  color: var(--ti-fg);
  font-family: var(--ti-font-sans);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(79,107,224,0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(240,132,88,0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: clip;
}

::selection { background: rgba(240,132,88,0.35); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--ti-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Site frame */
.wp-site-blocks { padding: 0; }
main.wp-block-group { margin-top: 0; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes ti-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ti-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ti-pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes ti-aurora {
  0%   { transform: translate3d(-8%, -4%, 0) rotate(0deg)  scale(1); }
  33%  { transform: translate3d(6%, 3%, 0)  rotate(40deg)  scale(1.1); }
  66%  { transform: translate3d(-4%, 6%, 0) rotate(-30deg) scale(1.05); }
  100% { transform: translate3d(-8%, -4%, 0) rotate(0deg)  scale(1); }
}
@keyframes ti-aurora-2 {
  0%   { transform: translate3d(6%, 4%, 0)  rotate(0deg)  scale(1.1); }
  50%  { transform: translate3d(-6%, -6%, 0) rotate(60deg) scale(1); }
  100% { transform: translate3d(6%, 4%, 0)  rotate(0deg)  scale(1.1); }
}
@keyframes ti-intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ti-intro-fade { from { opacity: 0; transform: translateY(10px); letter-spacing: .6em; } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Typography helpers
   ============================================================ */
.ti-eyebrow {
  font-family: var(--ti-font-sans);
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--ti-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  margin: 0;
}

.ti-gradient-text,
h1 em, h2 em, h3 em,
.ti-h em {
  background: var(--ti-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.ti-serif { font-family: var(--ti-font-display); }
.ti-muted { color: var(--ti-muted) !important; }
.ti-kicker {
  font-size: 0.66rem !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ti-coral) !important;
  margin: 0;
}
.ti-center { text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */
.ti-btn .wp-block-button__link,
.wp-block-button.ti-btn > a {
  background: var(--ti-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.95rem 1.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(238, 111, 142, 0.55);
  transition: box-shadow .3s ease, transform .3s ease;
}
.ti-btn .wp-block-button__link:hover { box-shadow: 0 14px 40px -10px rgba(238, 111, 142, 0.85); transform: translateY(-1px); color:#fff; }

.ti-btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--ti-coral);
  border: 1px solid rgba(240,132,88,0.4);
  border-radius: 6px;
  padding: 0.95rem 1.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .3s ease;
}
.ti-btn-outline .wp-block-button__link:hover { border-color: var(--ti-coral); background: rgba(240,132,88,0.06); color: var(--ti-coral); }

/* text-style arrow links */
.ti-link a, a.ti-link {
  color: var(--ti-coral) !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.ti-link a:hover, a.ti-link:hover { color: var(--ti-coral-light) !important; }

/* ============================================================
   Cards
   ============================================================ */
.ti-card {
  background: var(--ti-card);
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.ti-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,132,88,0.6);
  box-shadow: 0 20px 50px -20px rgba(238,111,142,0.45);
}
.ti-card-static:hover { transform: none; box-shadow: none; }

.ti-chip,
.ti-chips li {
  display: inline-block;
  border: 1px solid var(--ti-border);
  background: var(--ti-card);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
  color: rgba(247,248,252,0.8);
}
.ti-chip-gold {
  border-color: rgba(240,132,88,0.3);
  background: rgba(240,132,88,0.05);
  color: var(--ti-coral);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
ul.ti-chips { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
ul.ti-chips li { margin: 0; }

/* Icon bubble (image block) */
.ti-icon { width: 48px !important; height: 48px; border-radius: 12px; background: rgba(240,132,88,0.1); box-shadow: inset 0 0 0 1px rgba(240,132,88,0.3); padding: 12px; box-sizing: border-box; }
.ti-icon img { width: 100%; height: 100%; object-fit: contain; }
.ti-icon-round { border-radius: 999px; }

/* checklist */
ul.ti-checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; }
ul.ti-checklist li { font-size: 0.78rem; color: rgba(247,248,252,0.8); padding-left: 1.35rem; position: relative; }
ul.ti-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ti-coral); font-weight: 700; }

/* bullet list gold dots */
ul.ti-dots { list-style: none; padding: 0; margin: 1rem 0 0; }
ul.ti-dots li { position: relative; padding-left: 1.1rem; font-size: 0.78rem; color: var(--ti-muted); margin-bottom: 0.45rem; line-height: 1.55; }
ul.ti-dots li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 999px; background: var(--ti-coral); }

/* ============================================================
   Header
   ============================================================ */
.ti-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.25rem 1.5rem;
  transition: all .5s ease;
  background: transparent;
}
/* keep the fixed header below the WP admin bar when logged in */
body.admin-bar .ti-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ti-header { top: 46px; } }
body.ti-scrolled .ti-header {
  padding: 0.75rem 1.5rem;
  background: rgba(18, 20, 31, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(122,132,168,0.1);
}
.ti-header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ti-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.ti-progress > span { display: block; height: 100%; background: var(--ti-gradient); transform-origin: left; transform: scaleX(0); transition: transform .15s linear; }

.ti-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.ti-logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; box-shadow: 0 6px 20px -6px rgba(79,107,224,0.55); }
.ti-logo-name { font-family: var(--ti-font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.14em; color: var(--ti-fg); line-height: 1; }
.ti-logo-sub { font-size: 8px; font-weight: 600; letter-spacing: 0.42em; color: var(--ti-coral); margin-top: 4px; line-height: 1; }

/* Navigation block styling */
.ti-header .wp-block-navigation a {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,248,252,0.8);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}
.ti-header .wp-block-navigation a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ti-gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.ti-header .wp-block-navigation a:hover { color: var(--ti-coral); }
.ti-header .wp-block-navigation a:hover::after,
.ti-header .wp-block-navigation .current-menu-item a::after { transform: scaleX(1); }
.ti-header .wp-block-navigation .current-menu-item a { color: var(--ti-coral); }
.ti-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--ti-card);
  padding: 2rem;
}
.ti-header .wp-block-navigation__responsive-container-open,
.ti-header .wp-block-navigation__responsive-container-close { color: var(--ti-coral); }

/* ============================================================
   Footer
   ============================================================ */
.ti-footer { border-top: 1px solid rgba(122,132,168,0.18); padding: 2.5rem 1.5rem; }
.ti-footer-inner { max-width: 1280px; margin: 0 auto; }
.ti-footer .wp-block-navigation a { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti-muted); text-decoration: none; }
.ti-footer .wp-block-navigation a:hover { color: var(--ti-coral); }
.ti-footer .wp-block-social-links .wp-social-link { background: transparent !important; }
.ti-footer .wp-block-social-links .wp-social-link svg { fill: var(--ti-muted); width: 18px; height: 18px; }
.ti-footer .wp-block-social-links .wp-social-link:hover svg { fill: var(--ti-coral); }
.ti-footer-legal { font-size: 0.7rem; color: rgba(164,170,189,0.7); }
.ti-footer-legal a { color: rgba(164,170,189,0.7); text-decoration: none; }
.ti-footer-legal a:hover { color: var(--ti-coral); }

/* ============================================================
   Sections & heroes
   ============================================================ */
.ti-section { padding: 6rem 1.5rem; }
.ti-section-sm { padding: 4rem 1.5rem; }
.ti-section > .ti-inner, .ti-section-sm > .ti-inner { max-width: 1280px; margin: 0 auto; }

.ti-band {
  border-top: 1px solid rgba(122,132,168,0.18);
  border-bottom: 1px solid rgba(122,132,168,0.18);
  background: linear-gradient(180deg, rgba(240,132,88,0.05), transparent);
}

/* Page hero (interior pages) */
.ti-page-hero { position: relative; padding: 11rem 1.5rem 4rem; text-align: center; }
.ti-page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 70% 20%, rgba(240,132,88,0.12), transparent 55%);
}
.ti-page-hero h1 { margin: 1.1rem 0 0; }
.ti-page-hero .ti-desc { max-width: 42rem; margin: 1.5rem auto 0; color: var(--ti-muted); line-height: 1.7; }

/* Home hero */
.ti-home-hero { position: relative; isolation: isolate; overflow: hidden; padding: 9rem 1.5rem 0; text-align: center; }
.ti-home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 35% 20%, rgba(240,132,88,0.16), transparent 34%),
    radial-gradient(circle at 70% 15%, rgba(79,107,224,0.14), transparent 36%),
    linear-gradient(135deg, rgb(8,11,28), rgb(10,15,38) 45%, rgb(28,16,36));
}
.ti-home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, var(--ti-bg) 100%);
}
.ti-aurora { position: absolute; inset: -20%; z-index: -1; opacity: .5; pointer-events: none; filter: blur(60px); }
.ti-aurora::before, .ti-aurora::after { content: ""; position: absolute; inset: 15%; border-radius: 50%; }
.ti-aurora::before { background: radial-gradient(circle, rgba(79,107,224,0.35), transparent 65%); animation: ti-aurora 22s ease-in-out infinite; }
.ti-aurora::after { background: radial-gradient(circle, rgba(240,132,88,0.28), transparent 60%); animation: ti-aurora-2 28s ease-in-out infinite; }

.ti-hero-logo { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.ti-hero-logo img { width: 96px; height: 96px; border-radius: 16px; object-fit: contain; box-shadow: 0 18px 60px -12px rgba(79,107,224,0.55); }
.ti-hero-logo .ti-logo-name { font-size: 1.4rem; letter-spacing: 0.18em; }
.ti-hero-logo .ti-logo-sub { font-size: 0.7rem; letter-spacing: 0.5em; margin-top: 8px; }

.ti-home-hero h1 { margin: 1.25rem 0 0; font-size: clamp(3rem, 7vw, 4.75rem); line-height: 1.02; }
.ti-home-hero .ti-desc { max-width: 32rem; margin: 1.5rem auto 0; color: var(--ti-muted); line-height: 1.7; }
.ti-hero-cta { justify-content: center; margin-top: 2.25rem; }
.ti-hero-trust { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.ti-hero-trust .ti-avatars { display: flex; }
.ti-hero-trust .ti-avatars img { width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--ti-bg); object-fit: cover; margin-left: -12px; }
.ti-hero-trust .ti-avatars img:first-child { margin-left: 0; }
.ti-hero-trust p { margin: 0; text-align: left; font-size: 0.75rem; color: var(--ti-muted); line-height: 1.45; }

/* Rotating headline phrases (per-word pull-up) */
.ti-rotate { position: relative; display: block; min-height: 1.15em; }
.ti-rotate .ti-phrase { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.ti-rotate .ti-phrase.is-active { opacity: 1; position: relative; }
.ti-rotate .ti-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(8px);
  transition: opacity .7s ease-out, transform .7s ease-out, filter .7s ease-out;
}
.ti-rotate .ti-phrase.is-active .ti-w { opacity: 1; transform: translateY(0); filter: blur(0); }
body:not(.ti-js) .ti-rotate .ti-phrase:first-child { opacity: 1; position: relative; transform: none; }

/* Hero WebGL canvas + overlays (JS injected; CSS aurora is the no-JS fallback) */
.ti-home-hero { position: relative; isolation: isolate; }
.ti-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.3; pointer-events: none; }
.ti-hero-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 12%, rgba(0,0,0,0.74) 85%); }
.ti-hero-noise {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ============================================================
   Marquees
   ============================================================ */
.ti-marquee { overflow: hidden; padding: 0.25rem 0; }
.ti-marquee-track { display: flex; white-space: nowrap; width: max-content; gap: 1.5rem; align-items: center; }
body.ti-js .ti-marquee-track { animation: ti-marquee 30s linear infinite; }
body.ti-js .ti-marquee--slow .ti-marquee-track { animation-duration: 60s; }
body.ti-js .ti-marquee--reverse .ti-marquee-track { animation-direction: reverse; animation-duration: 50s; }
.ti-marquee p { margin: 0; display: inline-flex; gap: 1.5rem; align-items: center; white-space: nowrap; }
.ti-marquee-band { border-top: 1px solid rgba(122,132,168,0.15); border-bottom: 1px solid rgba(122,132,168,0.15); background: linear-gradient(180deg, rgba(240,132,88,0.04), transparent); padding: 1.5rem 0; display: grid; gap: 0.5rem; }
.ti-marquee--serif p { font-family: var(--ti-font-display); font-style: italic; font-size: 1.75rem; letter-spacing: 0.02em; color: rgba(164,170,189,0.6); }
.ti-marquee--big p { font-family: var(--ti-font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; color: rgba(247,248,252,0.8); }
.ti-marquee--big em { font-style: italic; }
.ti-marquee--logos p { font-family: var(--ti-font-display); font-size: 1.5rem; letter-spacing: 0.18em; color: rgba(164,170,189,0.6); gap: 4rem; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
body.ti-js .ti-reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
body.ti-js .ti-reveal.is-shown { opacity: 1; transform: translateY(0); }

/* ============================================================
   Pinned horizontal scroll
   ============================================================ */
@media (min-width: 1280px) {
  body.ti-js .ti-hscroll { height: var(--ti-hscroll-h, 220vh); }
  body.ti-js .ti-hscroll--tall { --ti-hscroll-h: 260vh; }
  body.ti-js .ti-hscroll .ti-hscroll-sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; overflow: hidden; }
  body.ti-js .ti-hscroll .ti-hscroll-track { display: flex; gap: 1.25rem; padding: 0 1.5rem; will-change: transform; flex-wrap: nowrap !important; }
}
@media (max-width: 1279.98px) {
  .ti-hscroll .ti-hscroll-track {
    display: flex !important; gap: 1.25rem; overflow-x: auto; padding: 0.5rem 1.5rem 1.5rem;
    scroll-snap-type: x mandatory; scrollbar-width: none; flex-wrap: nowrap !important;
  }
  .ti-hscroll .ti-hscroll-track > * { scroll-snap-align: center; }
  .ti-hscroll .ti-hscroll-track::-webkit-scrollbar { display: none; }
}

/* ============================================================
   Section headings row
   ============================================================ */
.ti-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; }
.ti-sec-head h2 { margin: 0.9rem 0 0; }
.ti-sec-head .ti-muted { max-width: 34rem; }

/* ============================================================
   Work / service / reel cards (cover blocks)
   ============================================================ */
.ti-work-card.wp-block-cover {
  border-radius: var(--ti-radius); overflow: hidden; border: 1px solid var(--ti-border);
  min-height: 420px; width: 300px; flex: none;
  display: flex; align-items: flex-end;
  transition: border-color .35s ease;
}
.ti-work-card.wp-block-cover:hover { border-color: rgba(240,132,88,0.5); }
.ti-work-card img.wp-block-cover__image-background { transition: transform .7s ease; }
.ti-work-card:hover img.wp-block-cover__image-background { transform: scale(1.08); }
.ti-work-card .wp-block-cover__inner-container { align-self: flex-end; padding: 1rem; }

/* grid variant (work page & mobile) */
.ti-grid .ti-work-card { width: auto; min-height: 0; aspect-ratio: 4 / 5; }
.ti-grid-landscape .ti-work-card { aspect-ratio: 4 / 3; min-height: 0; width: auto; }

.ti-card-year {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  border: 1px solid rgba(240,132,88,0.4); background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  border-radius: 999px; padding: 0.1rem 0.65rem;
  font-size: 0.62rem !important; font-weight: 700; letter-spacing: 0.18em; color: var(--ti-coral) !important;
  margin: 0 !important;
}
.ti-card-title { font-family: var(--ti-font-display); font-size: 1.05rem !important; line-height: 1.25; margin: 0 !important; color: var(--ti-fg) !important; }
.ti-card-tag { font-size: 0.62rem !important; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti-coral) !important; margin: 0.3rem 0 0 !important; }

/* Service cards */
.ti-service-card.wp-block-cover {
  border-radius: var(--ti-radius); overflow: hidden; border: 1px solid var(--ti-border);
  min-height: 500px; width: 340px; flex: none;
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.ti-service-card.wp-block-cover:hover { border-color: rgba(240,132,88,0.6); box-shadow: 0 30px 80px -20px rgba(238,111,142,0.45); }
.ti-service-card .wp-block-cover__background { background: linear-gradient(0deg, var(--ti-card) 20%, rgba(25,28,43,0.85) 55%, rgba(25,28,43,0.4) 100%) !important; opacity: 1 !important; }
.ti-service-card .wp-block-cover__inner-container { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 1.75rem; }
.ti-grid .ti-service-card { width: auto; min-height: 420px; }
.ti-service-num { font-family: var(--ti-font-display); font-size: 2.75rem !important; color: rgba(240,132,88,0.3) !important; margin: 0 !important; text-align: right; }
.ti-service-title { font-family: var(--ti-font-display); font-size: 1.5rem !important; line-height: 1.2; margin: auto 0 0 !important; }
.ti-service-desc { font-size: 0.82rem !important; color: var(--ti-muted) !important; line-height: 1.6; margin: 0.9rem 0 0 !important; }

/* generic grids */
.ti-grid, .ti-grid-2, .ti-grid-3, .ti-grid-4 { display: grid; gap: 1.25rem; max-width: 1280px; margin: 3rem auto 0; }
.ti-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ti-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ti-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ti-grid-5 { display: grid; gap: 1rem; grid-template-columns: repeat(5, 1fr); max-width: 1280px; margin: 3rem auto 0; }
@media (max-width: 1024px) {
  .ti-grid-3, .ti-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ti-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ti-grid-2, .ti-grid-3, .ti-grid-4 { grid-template-columns: 1fr; }
  .ti-grid-5 { grid-template-columns: repeat(2, 1fr); }
  ul.ti-checklist { grid-template-columns: 1fr; }
}

/* WP columns gap harmonisation */
.ti-cols { gap: 1.25rem; }

/* ============================================================
   Stats band
   ============================================================ */
.ti-stat { display: flex; align-items: center; gap: 1rem; }
.ti-stat .ti-stat-icon { width: 48px; height: 48px; flex: none; border-radius: 999px; background: rgba(240,132,88,0.1); box-shadow: inset 0 0 0 1px rgba(240,132,88,0.3); display: grid; place-items: center; padding: 12px; box-sizing: border-box; }
.ti-stat-value { font-family: var(--ti-font-display); font-size: 1.9rem !important; margin: 0 !important; line-height: 1.1; }
.ti-stat-label { font-size: 0.62rem !important; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti-muted) !important; margin: 0.2rem 0 0 !important; }
.ti-stat-center { text-align: center; }
.ti-stat-center .ti-stat-value { background: var(--ti-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-size: 2.4rem !important; }

/* ============================================================
   Process cards / timeline
   ============================================================ */
.ti-num { font-family: var(--ti-font-display); font-size: 3rem !important; margin: 0 !important; background: var(--ti-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; line-height: 1; }
.ti-process-card { padding: 2rem; }
.ti-process-card h3 { margin: 1rem 0 0; }
.ti-process-card p { font-size: 0.85rem; color: var(--ti-muted); line-height: 1.65; }
.ti-process-card .ti-rule { height: 1px; background: linear-gradient(90deg, rgba(240,132,88,0.4), transparent); margin-top: 1.5rem; }

.ti-timeline { position: relative; max-width: 1100px; margin: 0 auto; }
.ti-timeline-item { padding: 2.25rem; margin-bottom: 2.5rem; }
.ti-timeline-item h2 { margin: 0; font-size: 2rem; }
.ti-timeline-item .ti-detail { color: rgba(247,248,252,0.7); font-size: 0.85rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.ti-quote-card { position: relative; padding: 3rem; overflow: hidden; }
.ti-quote-card::before {
  content: "\201C"; position: absolute; right: 2rem; top: 0.5rem;
  font-family: Georgia, serif; font-size: 9rem; line-height: 1; color: rgba(240,132,88,0.1);
}
.ti-quote-mark { font-family: Georgia, serif; font-size: 3.5rem; line-height: 1; color: var(--ti-coral); margin: 0 !important; }
.ti-quote-text { font-family: var(--ti-font-display); font-size: 1.5rem !important; line-height: 1.55; margin: 1rem 0 0 !important; }
.ti-quote-person { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.ti-quote-person img { width: 56px; height: 56px; border-radius: 999px; border: 1px solid rgba(240,132,88,0.4); object-fit: cover; }
.ti-quote-name { font-size: 0.85rem !important; font-weight: 700; margin: 0 !important; }
.ti-quote-role { font-size: 0.75rem !important; color: var(--ti-muted) !important; margin: 0.1rem 0 0 !important; }

body.ti-js .ti-testimonials .ti-quote-card { display: none; }
body.ti-js .ti-testimonials .ti-quote-card.is-active { display: block; }
.ti-testimonial-dots { display: flex; gap: 0.5rem; justify-content: flex-end; max-width: 1100px; margin: 1rem auto 0; }
.ti-testimonial-dots button { height: 8px; width: 8px; border-radius: 999px; border: none; background: rgba(164,170,189,0.4); cursor: pointer; padding: 0; transition: all .3s ease; }
.ti-testimonial-dots button.is-active { width: 32px; background: var(--ti-gradient); }

/* ============================================================
   CTA banner
   ============================================================ */
.ti-cta { position: relative; padding: 5rem 1.5rem; }
.ti-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(240,132,88,0.14), transparent 60%); }
.ti-cta-box {
  max-width: 1280px; margin: 0 auto; border-radius: 1rem;
  border: 1px solid rgba(240,132,88,0.3);
  background: linear-gradient(135deg, #221a2e, #141221 50%, #101322);
  padding: 3rem;
}
.ti-cta-box h2 { margin: 0; }
.ti-cta-quote { font-family: var(--ti-font-display); font-style: italic; font-size: 1.5rem !important; line-height: 1.6; color: var(--ti-muted) !important; }

/* ============================================================
   Forms (contact / subscribe)
   ============================================================ */
.ti-form-card { border-radius: 1rem; border: 1px solid rgba(240,132,88,0.3); background: linear-gradient(135deg, #201a2b, #141221 55%, #101322); padding: 2.5rem; position: relative; }
.ti-form-card::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,132,88,0.6), transparent); }
.ti-form label, .ti-form .ti-label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti-coral); margin-bottom: 0.7rem; }
.ti-form input[type="text"], .ti-form input[type="email"], .ti-form input[type="tel"], .ti-form textarea {
  width: 100%; box-sizing: border-box; border-radius: 6px; border: 1px solid var(--ti-border);
  background: rgba(18,20,31,0.5); color: var(--ti-fg); padding: 0.8rem 1rem; font-size: 0.875rem; font-family: inherit;
}
.ti-form input:focus, .ti-form textarea:focus { outline: none; border-color: rgba(240,132,88,0.6); box-shadow: 0 0 0 1px rgba(240,132,88,0.4); }
.ti-form ::placeholder { color: rgba(164,170,189,0.55); }
.ti-form .ti-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }
@media (max-width: 640px) { .ti-form .ti-row { grid-template-columns: 1fr; } }
.ti-form .ti-group { margin-bottom: 1.75rem; }

.ti-form .ti-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ti-form .ti-options label { display: inline-block; margin: 0; cursor: pointer; }
.ti-form .ti-options input { position: absolute; opacity: 0; pointer-events: none; }
.ti-form .ti-options span {
  display: inline-block; border-radius: 999px; border: 1px solid var(--ti-border); padding: 0.4rem 0.9rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; color: var(--ti-muted); transition: all .25s ease;
}
.ti-form .ti-options input:checked + span { border-color: var(--ti-coral); background: rgba(240,132,88,0.1); color: var(--ti-coral); }
.ti-form .ti-options label:hover span { border-color: rgba(240,132,88,0.4); color: var(--ti-fg); }
.ti-form .ti-budget span { border-radius: 6px; padding: 0.65rem 1.1rem; }

.ti-form button[type="submit"] {
  display: inline-flex; align-items: center; gap: 0.5rem; border: none; cursor: pointer;
  background: var(--ti-gradient); color: #fff; border-radius: 6px; padding: 1rem 2rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(238,111,142,0.6); transition: box-shadow .3s ease;
}
.ti-form button[type="submit"]:hover { box-shadow: 0 14px 40px -10px rgba(238,111,142,0.9); }
.ti-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
.ti-form .ti-error { color: #f87171; font-size: 0.85rem; }
.ti-form-success { text-align: center; padding: 4rem 1rem; }
.ti-form-success .ti-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 999px; background: rgba(240,132,88,0.15); box-shadow: inset 0 0 0 1px rgba(240,132,88,0.4); display: grid; place-items: center; color: var(--ti-coral); font-size: 1.75rem; }

/* subscribe inline form */
.ti-subscribe-form { display: flex; gap: 0.75rem; max-width: 32rem; margin: 2rem auto 0; }
.ti-subscribe-form input { flex: 1; height: 48px; border-radius: 6px; border: 1px solid var(--ti-border); background: var(--ti-card); color: var(--ti-fg); padding: 0 1rem; font-size: 0.875rem; }
.ti-subscribe-form input:focus { outline: none; border-color: rgba(240,132,88,0.6); }
.ti-subscribe-form button { white-space: nowrap; }
@media (max-width: 560px) { .ti-subscribe-form { flex-direction: column; } }

/* contact info cards */
.ti-contact-info { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; text-decoration: none; }
.ti-contact-info .ti-ci-label { font-size: 0.62rem !important; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti-coral) !important; margin: 0 !important; }
.ti-contact-info .ti-ci-value { font-size: 0.875rem !important; margin: 0.3rem 0 0 !important; color: var(--ti-fg) !important; word-break: break-word; }

/* ============================================================
   Team
   ============================================================ */
.ti-team-card.wp-block-cover { border-radius: var(--ti-radius); overflow: hidden; border: 1px solid var(--ti-border); aspect-ratio: 4/5; min-height: 0; transition: border-color .35s; }
.ti-team-card.wp-block-cover:hover { border-color: rgba(240,132,88,0.55); }
.ti-team-card .wp-block-cover__inner-container { align-self: flex-end; padding: 1.1rem; }
.ti-member-name { font-family: var(--ti-font-display); font-size: 1rem !important; margin: 0 !important; letter-spacing: 0.06em; }
.ti-member-role { font-size: 0.6rem !important; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti-coral) !important; margin: 0.25rem 0 0 !important; }

.ti-profile { display: grid; grid-template-columns: 420px 1fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; max-width: 1280px; margin-left: auto; margin-right: auto; }
.ti-profile.ti-profile-flip { grid-template-columns: 1fr 420px; }
.ti-profile.ti-profile-flip > .ti-profile-img { order: 2; }
@media (max-width: 1024px) { .ti-profile, .ti-profile.ti-profile-flip { grid-template-columns: 1fr; } .ti-profile.ti-profile-flip > .ti-profile-img { order: 0; } }
.ti-profile-img img { border-radius: 1rem; border: 1px solid rgba(240,132,88,0.2); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.ti-profile h3 { font-size: 2rem; margin: 0.75rem 0 0; }
.ti-profile .ti-bio { color: var(--ti-muted); line-height: 1.7; }
.ti-mini-btn a {
  display: inline-flex; border: 1px solid var(--ti-border); border-radius: 6px; padding: 0.5rem 1rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; color: rgba(247,248,252,0.8) !important; text-decoration: none; transition: all .3s;
}
.ti-mini-btn a:hover { border-color: rgba(240,132,88,0.6); color: var(--ti-coral) !important; }

/* ============================================================
   Insights
   ============================================================ */
.ti-insight-card { padding: 2rem; height: 100%; box-sizing: border-box; }
.ti-insight-tag { font-size: 0.62rem !important; font-weight: 700; letter-spacing: 0.22em; color: var(--ti-coral) !important; margin: 0 !important; text-transform: uppercase; }
.ti-insight-card h3 { margin: 1rem 0 0; font-size: 1.25rem; line-height: 1.4; }
.ti-insight-card .ti-meta { display: flex; justify-content: space-between; font-size: 0.62rem; letter-spacing: 0.18em; color: rgba(164,170,189,0.8); text-transform: uppercase; margin-top: 1.5rem; }
.ti-featured { border-radius: 1rem; border: 1px solid rgba(240,132,88,0.3); background: linear-gradient(135deg, #221a2e, #141221 50%, #101322); overflow: hidden; }
.ti-featured-letter { font-family: var(--ti-font-display); font-size: 9rem !important; margin: 0 !important; background: var(--ti-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; opacity: 0.3; text-align: center; }

/* ============================================================
   Clients & Instagram cards
   ============================================================ */
.ti-client-card { position: relative; padding: 1.75rem; display: block; text-decoration: none; overflow: hidden; }
.ti-client-name { font-family: var(--ti-font-display); font-size: 1.5rem !important; margin: 0 !important; }
.ti-client-meta { font-size: 0.62rem !important; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ti-coral) !important; margin: 0.3rem 0 0 !important; }
.ti-client-summary { font-size: 0.82rem !important; color: var(--ti-muted) !important; line-height: 1.65; margin: 1.25rem 0 0 !important; }
.ti-client-url { font-size: 0.7rem !important; color: rgba(164,170,189,0.7) !important; margin: 1.25rem 0 0 !important; }
.ti-client-preview { margin: 1.25rem -1.75rem -1.75rem !important; }
.ti-client-preview img { width: 100%; aspect-ratio: 16/8; object-fit: cover; object-position: top; display: block; transition: transform .7s ease; }
.ti-client-card:hover .ti-client-preview img { transform: scale(1.04); }

.ti-ig-head { display: flex; align-items: center; gap: 0.75rem; }
.ti-ig-badge { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--ti-gradient); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(238,111,142,0.55); padding: 10px; box-sizing: border-box; }
.ti-ig-stats { display: flex; gap: 1rem; align-items: center; border-top: 1px solid rgba(122,132,168,0.2); border-bottom: 1px solid rgba(122,132,168,0.2); padding: 0.7rem 0; margin-top: 1.25rem; }
.ti-ig-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 1rem; }
.ti-ig-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid rgba(240,132,88,0.2); width: 100%; }

/* AI reels */
.ti-reel-card.wp-block-cover { border-radius: 1rem; overflow: hidden; border: 1px solid var(--ti-border); aspect-ratio: 9/16; min-height: 0; }
.ti-reel-card .wp-block-cover__inner-container { align-self: flex-end; padding: 1rem; }
.ti-reel-card img.wp-block-cover__image-background { transition: transform .7s ease; }
.ti-reel-card:hover img.wp-block-cover__image-background { transform: scale(1.08); }

/* Showreel video cards */
.ti-video-card.wp-block-cover { border-radius: var(--ti-radius); overflow: hidden; border: 1px solid var(--ti-border); aspect-ratio: 16/9; min-height: 0; transition: border-color .3s; }
.ti-video-card:hover { border-color: rgba(240,132,88,0.5); }
.ti-video-card .wp-block-cover__inner-container { align-self: flex-end; padding: 1rem; }
.ti-video-duration { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; border: 1px solid rgba(240,132,88,0.3); background: rgba(0,0,0,0.6); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.62rem !important; font-weight: 700; letter-spacing: 0.15em; color: var(--ti-coral) !important; margin: 0 !important; }
.ti-video-card a { position: absolute; inset: 0; z-index: 3; }

/* Filters */
.ti-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.ti-filters .wp-block-button__link {
  background: transparent; border: 1px solid var(--ti-border); border-radius: 999px; color: var(--ti-muted);
  padding: 0.55rem 1.1rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; transition: all .25s;
}
.ti-filters .wp-block-button__link:hover { border-color: rgba(240,132,88,0.4); color: var(--ti-fg); }
.ti-filters .is-active .wp-block-button__link { border-color: var(--ti-coral); background: rgba(240,132,88,0.1); color: var(--ti-coral); }
body.ti-js .ti-filterable [data-ti-hidden] { display: none !important; }

/* ============================================================
   Intro curtain / spotlight / modal (JS injected)
   ============================================================ */
.ti-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #070811; transition: transform .9s cubic-bezier(.7,0,.2,1), opacity .9s; }
.ti-intro.is-out { transform: translateY(-100%); opacity: 0; }
.ti-intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(238,111,142,0.16), transparent 60%); }
.ti-intro-line { height: 1px; width: 96px; background: var(--ti-gradient); transform-origin: left; animation: ti-intro-line 1.2s cubic-bezier(.7,0,.2,1) forwards; }
.ti-intro-name { margin-top: 1.5rem; font-family: var(--ti-font-display); font-size: 2.75rem; letter-spacing: 0.3em; color: var(--ti-fg); animation: ti-intro-fade 1s ease-out .25s both; }
.ti-intro-sub { margin-top: 0.5rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; color: var(--ti-coral); animation: ti-intro-fade 1s ease-out .55s both; }

.ti-spotlight { pointer-events: none; position: fixed; inset: 0; z-index: 40; transition: opacity .3s; }

.ti-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,0.9); backdrop-filter: blur(4px); padding: 1rem; }
.ti-modal-frame { position: relative; width: min(100%, 64rem); aspect-ratio: 16/9; border-radius: var(--ti-radius); overflow: hidden; border: 1px solid rgba(240,132,88,0.3); box-shadow: 0 30px 80px -20px rgba(238,111,142,0.4); }
.ti-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* portrait frame for Instagram reel embeds */
.ti-modal-frame--ig { aspect-ratio: 9 / 16; width: auto; height: min(86vh, 780px); max-width: 92vw; background: #000; }
.ti-modal-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(240,132,88,0.4); background: rgba(0,0,0,0.6); color: var(--ti-coral); font-size: 1rem; cursor: pointer; }

/* ============================================================
   404
   ============================================================ */
.ti-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 8rem 1.5rem 4rem; }
.ti-404 h1 { font-size: 5rem; background: var(--ti-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* ============================================================
   Fixes
   ============================================================ */
/* badges anchor to the card, not the bottom inner container */
.ti-work-card .wp-block-cover__inner-container,
.ti-video-card .wp-block-cover__inner-container,
.ti-reel-card .wp-block-cover__inner-container { position: static; }
.ti-work-card.wp-block-cover, .ti-video-card.wp-block-cover, .ti-reel-card.wp-block-cover { position: relative; }

/* keep button labels on one line */
.wp-block-button__link { white-space: nowrap; }

/* header: never wrap; hamburger below 1024px; hide CTA on phones */
.ti-header-inner { flex-wrap: nowrap !important; }

/* WooCommerce auto-injects account/cart into the navigation — not in this design */
.ti-header .wp-block-woocommerce-mini-cart,
.ti-header .wc-block-mini-cart,
.ti-header .wp-block-woocommerce-customer-account,
.ti-header .wp-block-customer-account { display: none !important; }
@media (max-width: 1023.98px) {
  .ti-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .ti-header .wp-block-navigation__responsive-container-open { display: flex !important; }
}
/* tighter nav so all items fit on one line on smaller desktops */
@media (max-width: 1366px) {
  .ti-header .wp-block-navigation .wp-block-navigation__container { gap: 1.1rem; }
  .ti-header .wp-block-navigation a { font-size: 0.64rem; letter-spacing: 0.14em; }
}
@media (max-width: 640px) {
  .ti-header .wp-block-buttons { display: none; }
}

/* ============================================================
   Extras
   ============================================================ */
.ti-rotate-line {
  font-family: var(--ti-font-display);
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0.25rem 0 0;
}
.ti-rotate-line .ti-phrase {
  background: var(--ti-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.ti-star { color: rgba(240,132,88,0.7); font-style: normal !important; -webkit-text-fill-color: rgba(240,132,88,0.7); }
.ti-story-img img { border-radius: 1rem; border: 1px solid rgba(240,132,88,0.2); }
.ti-marquee--logos-static { font-family: var(--ti-font-display); font-size: 1.25rem; letter-spacing: 0.18em; color: rgba(164,170,189,0.7); }
ul.ti-chips.ti-chips-gold li { border-color: rgba(240,132,88,0.3); background: rgba(240,132,88,0.05); color: var(--ti-coral); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.ti-reel-card a { position: absolute; inset: 0; z-index: 3; }
/* play badge on reel cards that open the on-site player */
.ti-reel-video-card::after {
  content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center; padding-left: 4px; box-sizing: border-box;
  border-radius: 999px; background: rgba(240,132,88,0.14); color: var(--ti-coral);
  box-shadow: inset 0 0 0 1px rgba(240,132,88,0.4); backdrop-filter: blur(6px);
  font-size: 1.1rem; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  text-shadow: 0 4px 20px rgba(238,111,142,0.6);
}
.ti-reel-video-card:hover::after { opacity: 1; }
.ti-cover-link { position: absolute; inset: 0; z-index: 3; display: block; }
.ti-featured .wp-block-column:first-child { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(240,132,88,0.25), transparent 60%); }
.ti-hours { font-size: 0.875rem; }
main { min-height: 60vh; }

/* Sub-1280 fallbacks for hero paddings */
@media (max-width: 782px) {
  .ti-page-hero { padding-top: 8rem; }
  .ti-home-hero { padding-top: 7rem; }
  .ti-profile-img img { max-width: 420px; margin: 0 auto; display: block; }
}

/* ============================================================
   Fidelity pass — match the original Lovable design
   ============================================================ */

/* Team showcase: staggered photo grid + hover-linked list */
.ti-team-showcase { padding: 2rem 1.5rem 0; }
.ti-ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ti-ts-col { display: flex; flex-direction: column; gap: 1rem; }
.ti-ts-col-a { padding-top: 2rem; }
.ti-ts-col-c { padding-top: 3rem; }
.ti-ts-card.wp-block-cover {
  aspect-ratio: 3 / 4; min-height: 0; border-radius: var(--ti-radius); overflow: hidden;
  border: 1px solid var(--ti-border);
  transition: transform .5s ease, opacity .5s ease, filter .5s ease, border-color .5s ease;
}
.ti-ts-card .wp-block-cover__inner-container { align-self: flex-end; padding: 0.75rem; position: relative; z-index: 2; }
.ti-ts-card img.wp-block-cover__image-background { transition: transform .7s ease; }
.ti-ts-card:hover img.wp-block-cover__image-background { transform: scale(1.1); }
.ti-ts-name { font-size: 0.66rem !important; font-weight: 600; letter-spacing: 0.18em; color: rgba(255,255,255,0.9) !important; margin: 0 !important; text-transform: uppercase; }
.ti-team-showcase.is-hovering .ti-ts-card:not(.is-active) { opacity: 0.4; filter: grayscale(1); }
.ti-team-showcase .ti-ts-card.is-active { transform: scale(1.02); border-color: rgba(247,248,252,0.4); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6); }
.ti-ts-head { border-bottom: 1px solid var(--ti-border); padding-bottom: 1rem; }
.ti-ts-kicker { font-size: 0.62rem !important; font-weight: 600; letter-spacing: 0.24em; color: var(--ti-muted) !important; margin: 0 !important; }
.ti-ts-title { margin: 0.75rem 0 0 !important; font-size: 1.9rem !important; }
.ti-ts-row { border-bottom: 1px solid rgba(122,132,168,0.18); padding: 1.1rem 0; transition: padding .3s ease, opacity .3s ease; cursor: default; }
.ti-ts-row-name { font-size: 1.15rem !important; margin: 0 !important; font-weight: 500; }
.ti-ts-row-role { font-size: 0.6rem !important; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ti-muted) !important; margin: 0 !important; flex: none; }
.ti-team-showcase.is-hovering .ti-ts-row:not(.is-active) { opacity: 0.4; }
.ti-team-showcase .ti-ts-row.is-active { padding-left: 0.5rem; }
@media (max-width: 781px) { .ti-ts-grid { gap: 0.6rem; } .ti-ts-col { gap: 0.6rem; } }

/* Client cards: hover reveals full-bleed website preview (like the original) */
.ti-client-card { min-height: 420px; }
.ti-client-preview { position: absolute; inset: 0; margin: 0 !important; z-index: 3; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.ti-client-card:hover .ti-client-preview { opacity: 1; pointer-events: auto; }
.ti-client-preview a { display: block; height: 100%; }
.ti-client-preview img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; }
.ti-client-preview::after {
  content: "VISIT SITE ↗"; position: absolute; right: 1.25rem; bottom: 1.25rem;
  background: var(--ti-gradient); color: #fff; border-radius: 6px; padding: 0.6rem 1rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  box-shadow: 0 10px 30px -10px rgba(238,111,142,0.55); pointer-events: none;
}
.ti-client-preview::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.1) 100%); pointer-events: none;
}

/* Instagram cards: gallery hides until hover, then covers the card */
.ti-ig-card .ti-ig-gallery {
  position: absolute; inset: auto 0 0 0; z-index: 3; margin: 0; padding: 1rem;
  background: linear-gradient(180deg, rgba(10,10,16,0) 0%, rgba(10,10,16,0.92) 30%, rgba(10,10,16,0.98) 100%);
  opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
.ti-ig-card { position: relative; overflow: hidden; }
.ti-ig-card:hover .ti-ig-gallery { opacity: 1; transform: translateY(0); }

/* Work page: alternate tall/wide tiles like the original masonry rhythm */
.ti-filter-grid .ti-work-card { aspect-ratio: 4 / 3; }
.ti-filter-grid .ti-work-card:nth-child(5n + 1),
.ti-filter-grid .ti-work-card:nth-child(5n + 4) { aspect-ratio: 4 / 5; }

/* Work cards: hover arrow chip */
.ti-work-card::after {
  content: "↗"; position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px;
  background: rgba(240,132,88,0.12); color: var(--ti-coral); box-shadow: inset 0 0 0 1px rgba(240,132,88,0.35);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; font-size: 1rem;
}
.ti-work-card:hover::after { opacity: 1; }

/* Showreel cards: gold play button on hover */
.ti-video-card::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  color: var(--ti-coral); font-size: 1.4rem; padding-left: 6px; box-sizing: border-box;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
  text-shadow: 0 4px 20px rgba(238,111,142,0.6);
}
.ti-video-card::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 64px; height: 64px; border-radius: 999px; background: rgba(240,132,88,0.12);
  box-shadow: inset 0 0 0 1px rgba(240,132,88,0.4); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.ti-video-card:hover::after, .ti-video-card:hover::before { opacity: 1; }

/* Process page: vertical rail + circled step numbers */
.ti-timeline { position: relative; }
@media (min-width: 1024px) {
  .ti-timeline::before {
    content: ""; position: absolute; left: 32px; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, rgba(240,132,88,0) 0%, rgba(240,132,88,0.4) 50%, rgba(240,132,88,0) 100%);
  }
  .ti-timeline-item { margin-left: 96px; position: relative; }
  .ti-timeline-item .ti-num {
    position: absolute; left: -96px; top: 0; width: 64px; height: 64px;
    display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(240,132,88,0.4);
    background: var(--ti-bg); font-size: 1.5rem !important; line-height: 64px;
  }
}

/* Testimonial dots sit at the card's lower-right like the original */
.ti-testimonial-dots { margin-top: -4.25rem; padding-right: 3rem; position: relative; z-index: 5; margin-bottom: 3rem; }

/* Service card top row (icon bubble + big number) */
.ti-service-card-top { align-items: flex-start; }
.ti-service-card .ti-icon { backdrop-filter: blur(4px); }

/* ============================================================
   AI video reel cards (core/video blocks in the reels grid)
   ============================================================ */
.ti-ai-grid .wp-block-video { margin: 0; }
.ti-ai-grid .wp-block-video video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block;
  border-radius: 1rem; border: 1px solid var(--ti-border); background: #000;
  transition: border-color .3s ease;
}
.ti-ai-grid .wp-block-video:hover video { border-color: rgba(240,132,88,0.5); }
.ti-ai-grid .wp-block-video figcaption {
  font-family: var(--ti-font-display); font-size: 0.8rem; color: var(--ti-fg);
  margin: 0.5rem 0 0; text-align: left;
}
.ti-ai-grid .wp-block-video figcaption em {
  display: block; font-style: normal; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti-coral); margin-top: 0.15rem;
  -webkit-text-fill-color: var(--ti-coral); background: none;
}

/* ============================================================
   Editor niceties
   ============================================================ */
.editor-styles-wrapper .ti-hscroll .ti-hscroll-track { display: flex; gap: 1.25rem; overflow-x: auto; }
.editor-styles-wrapper .ti-marquee-track { animation: none !important; }
