/* ===============================================================
   GLASSMORPHISM + PHOTO HERO + SHOWREEL
   Additive only. Loaded after the original stylesheets.
   =============================================================== */

/* ---------------------------------------------------------------
   Reusable glass surface
   Applied sparingly (small elements only) so scrolling stays fast —
   backdrop-filter is expensive over large areas.
   --------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(255, 255, 255, 0.045);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
}

.glass-strong {
  background: rgba(12, 12, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-strong {
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
}

/* gentle sheen along the top edge */
.glass::after,
.glass-strong::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0) 42%
  );
}

/* ===============================================================
   HERO — photograph instead of the gradient
   =============================================================== */
.hero-img.hero-photo {
  transform: none;                /* the gradient was rotated; a photo must not be */
  overflow: hidden;
}

.hero-img.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img.hero-photo img { animation: none; }
}

/* Legibility: darken the left where the headline sits, and the base */
.hero-img.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.5) 100%),
    linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 55%);
}

.hero-header h1 {
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}

p#site-intro {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

@media (max-width: 900px) {
  .hero-img.hero-photo::after {
    background:
      linear-gradient(to top, rgba(0,0,0,0.94) 12%, rgba(0,0,0,0.25) 65%),
      linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  }
}

/* ===============================================================
   SHOWREEL — "Leading digital agency specializing in ..."
   =============================================================== */
.showreel {
  position: relative;
  width: 100%;
  padding: 2em 1.5em 8em;
  background: var(--color-bg);
  /* clear the fixed navbar when linked to directly */
  scroll-margin-top: 90px;
}

.showreel-header {
  max-width: 1100px;
  margin: 0 auto 3em;
  text-align: center;
}

.showreel-header .callout {
  margin: 0 auto 2em;
}

.showreel-header h2 {
  font-family: var(--font-secondary);
  text-transform: uppercase;
  font-size: clamp(24px, 3.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

/* the service name gets its own line so long names never crowd.
   global.css sets `span { font-size: 13px }`, so BOTH the wrapper
   and the word itself must be reset or the word inherits 13px. */
.showreel-header h2 span,
.showreel-header .rotating-line,
.showreel-header .rotating-word {
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.showreel-header .rotating-line {
  display: block;
  margin-top: 0.12em;
}

/* the word that cycles through your services */
.rotating-word {
  position: relative;
  display: inline-block;
  /* global.css sets span to 13px — the heading size must win */
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  min-width: 4ch;
  background: linear-gradient(to right, #fc002d, #ff6b00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotating-word.swap {
  opacity: 0;
  transform: translateY(-8px);
}

/* ---------------- media frame ---------------- */
.showreel-media {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75em;
  border-radius: 18px;
  overflow: hidden;
}

.showreel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b0d;
}

.showreel-frame video,
.showreel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* soft gradient glow behind the frame */
.showreel-media::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.22), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------------- fallback montage (until a video is added) ---------------- */
.showreel-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(252, 0, 45, 0.22), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(255, 107, 0, 0.22), transparent 55%),
    #0b0b0d;
}

.showreel-fallback-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  animation: reelScroll 22s linear infinite;
}

.showreel-fallback-track span {
  font-family: var(--font-secondary);
  text-transform: uppercase;
  font-size: clamp(20px, 3.4vw, 46px);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  transition: color 0.3s;
}

.showreel-fallback-track span:nth-child(3n) {
  background: linear-gradient(to right, #fc002d, #ff6b00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes reelScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .showreel-fallback-track { animation: none; }
}

.showreel-note {
  position: absolute;
  left: 50%;
  bottom: 1.4em;
  transform: translateX(-50%);
  padding: 0.55em 1.2em;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------- service chips ---------------- */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em;
  max-width: 1100px;
  margin: 3em auto 0;
}

.service-chip {
  position: relative;
  padding: 0.75em 1.4em;
  border-radius: 100px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s, border-color 0.3s;
}

.service-chip:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.5);
}

@media (max-width: 900px) {
  .showreel { padding: 1em 1.25em 5em; }
  .showreel-media { padding: 0.5em; }
  .service-chip { padding: 0.65em 1.1em; font-size: 11.5px; }
}

/* ===============================================================
   GLASS APPLIED TO EXISTING COMPONENTS
   =============================================================== */

/* nav bar gains a subtle frosted plate as you scroll */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: rgba(10, 10, 12, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  nav::before {
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
}

nav.scrolled::before { opacity: 1; }

nav > * { position: relative; z-index: 1; }

/* work + review cards pick up the glass treatment */
.work-card,
.review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .work-card,
  .review-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.work-card:hover,
.review-card:hover {
  border-color: rgba(255, 107, 0, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

/* offering / process / example cards on the service pages */
.offering-item,
.process-step,
.example-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .offering-item,
  .process-step,
  .example-item {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.offering-item:hover,
.process-step:hover,
.example-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 107, 0, 0.35);
}

/* the callout pill */
.callout {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .callout {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
