/* Old-school web: square corners, hard rules, browser-blue buttons. */

:root {
  --bg: #ffffff;
  --panel: #f4f4f4;
  --ink: #111111;
  --ink-soft: #5f5f5f;
  --line: #111111;
  --line-soft: #cccccc;
  --accent: #111111;
  --star: #f5b301;
  /* the classic browser hyperlink blue */
  --ie-blue: #0000ee;
  --ie-blue-dark: #0000aa;
  /* the three filter-chip pastels, in the order app.js assigns them:
     Product, App, Service (PASTELS[0..2]) */
  --pastel-product: #ffe8cc;
  --pastel-app: #d6eaf8;
  --pastel-service: #e8daef;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over the whole page. One fixed layer, no image files — the
   noise is an inline SVG feTurbulence, desaturated to grey. Sits above the
   content (9) so panels and the blue CTA get it too, below the modal (10).
   pointer-events:none so it never intercepts a click. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.3;
  /* multiply so the grain darkens into the page instead of hazing it grey */
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

a { color: var(--ie-blue); }
a:hover { color: var(--ie-blue-dark); }

/* ---------- motion ---------- */
/* Three quiet moves: the hero settles in on load, sections rise as you
   reach them, and the modal fades up instead of popping. Nothing loops. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(0.9rem); }
  to   { opacity: 1; transform: none; }
}

.hero-mark,
.tagline,
.subheading {
  animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tagline { animation-delay: 0.08s; }
.subheading { animation-delay: 0.16s; }

/* Scroll reveal is opt-in from JS — the hidden state only applies once
   .reveal-ready is set, so a JS failure leaves the page fully visible. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* staggered so a row of cards arrives as a sequence, not a block */
.reveal-ready .pricing-card:nth-child(2).reveal { transition-delay: 90ms; }
.reveal-ready .pricing-card:nth-child(3).reveal { transition-delay: 180ms; }
.reveal-ready .how-step:nth-child(2).reveal { transition-delay: 70ms; }
.reveal-ready .how-step:nth-child(3).reveal { transition-delay: 140ms; }
.reveal-ready .how-step:nth-child(4).reveal { transition-delay: 210ms; }
.reveal-ready .how-step:nth-child(5).reveal { transition-delay: 280ms; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.modal:not([hidden]) .modal-card {
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark,
  .tagline,
  .subheading,
  .modal:not([hidden]) .modal-card { animation: none; }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 1.4rem;
}

/* ---------- first screen ---------- */
/* Intro + project grid share exactly one viewport, so the grid is the last
   thing visible before the fold. Below 34rem it falls back to natural height —
   five grid rows in a phone viewport is not worth the squeeze. */

.viewport {
  display: flex;
  flex-direction: column;
}

/* Intro + filters + grid stay one tight block, centred as a unit in the
   viewport. Growing the hero instead would open a void under the rating line. */
@media (min-width: 34rem) {
  .viewport {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    /* top-aligned, not centred — centring parked dead space above the star */
    justify-content: flex-start;
    padding-bottom: 1.75rem;
  }


  /* Each of these gets its own screen and centres inside it, so the page
     reads as a deck. Reviews, trust and the CTA stay natural height —
     they're connective tissue between the big beats, not beats themselves. */
  .about,
  .services,
  .how {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ---------- 1: intro ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3.75rem 1.5rem 0.9rem;
}

/* transparent PNG — sits straight on the page texture, no blend needed */
.hero-mark {
  display: block;
  width: auto;
  height: clamp(5rem, 12vh, 9rem);
  margin-bottom: 1.1rem;
}

.tagline {
  font-weight: 800;
  max-width: 52rem;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subheading {
  margin-top: 0.85rem;
  font-size: clamp(0.85rem, 1.9vw, 1.35rem);
  color: var(--ink-soft);
  white-space: nowrap;
}

/* second half of the .work-foot block, tight under the filters */
.rating-line {
  margin-top: 0.85rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.rating-line a { color: var(--ie-blue); }

.stars { color: var(--star); letter-spacing: 0.06em; }

/* ---------- 2: filters ---------- */

.work { padding: 2rem 0; }

.filters {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  /* sits under the grid now, so the breathing room moves to the top.
     This top padding is the guaranteed minimum gap to the grid on a short
     viewport, where .work-foot's auto margin collapses to nothing. */
  padding: 2rem 1.5rem 0;
}

.filter-group {
  display: flex;
  /* centred against the chips — baseline alignment sat it ~8px low */
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.filter-label {
  flex: 0 0 6.5rem;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  /* NOT `flex: 1`. That sets flex-basis:0 on an element that is itself a
     wrapping flex container, and Safari resolves the free space from that
     zero basis — the row ends up too narrow and drops a chip onto a second
     line. The parent is shrink-to-fit anyway, so there's nothing to grow
     into and auto sizing gives the same result in Chrome. */
  flex: 0 1 auto;
  min-width: 0;
}

.filter-row button {
  background: #fff;
  border: 1px solid var(--line-soft);
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0.28rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-row .dot {
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--line);
  flex: none;
}

.filter-row button:hover {
  border-color: var(--ie-blue);
  color: var(--ie-blue);
}

.filter-row button.active {
  background: var(--ie-blue);
  border-color: var(--ie-blue);
  color: #fff;
  font-weight: 500;
}

/* "Any type" is the default state, so it shouldn't shout when it's on */
.filter-row button[data-value="all"].active {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

/* ---------- 2: the grid ---------- */
/* Interior rules only — nothing on the outer edges. */

.grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* base: no border anywhere (also kills the UA default on <button>) */
.grid > * { border: 0 solid var(--line); }

/* row rules: every cell except the first row */
.grid > *:not(:nth-child(-n + 3)) { border-top-width: 1px; }

/* column rules: every cell except the first in its row */
.grid > *:not(:nth-child(3n + 1)) { border-left-width: 1px; }

/* trailing empty cells carry the row rule but no column rule —
   no lines drawn around empty space */
.grid > .filler { border-left-width: 0; }

.grid button {
  position: relative; /* anchors the spotlight badge */
  background: none;
  /* borders come from `.grid > *` — don't reset them here */
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  padding: 2.5rem 1rem;
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background-color 0.15s;
}

/* !important: filter matches set background-color inline (JS-driven tint),
   which otherwise outranks this rule and blocks the hover state */
.grid button:hover { background-color: var(--ie-blue) !important; color: #fff; }
.grid button:hover .meta { color: rgba(255, 255, 255, 0.75); }

.grid .name {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: center;
}

/* A nudge to open a project, bouncing around the cell like the old DVD
   screensaver. `left` and `top` animate independently on mismatched
   durations, so the path reflects off the edges and never quite repeats.
   Fixed width so the travel distances below stay exact. */
.spotlight-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 4.5rem;
  padding: 0.15rem 0;
  background: var(--ie-blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  animation:
    dvd-x 7.3s linear infinite alternate,
    dvd-y 4.1s linear infinite alternate;
}

@keyframes dvd-x {
  from { left: 0.4rem; }
  to   { left: calc(100% - 4.9rem); }
}

@keyframes dvd-y {
  from { top: 0.4rem; }
  to   { top: calc(100% - 1.75rem); }
}

/* narrow-cell variant — shorter travel to match the smaller badge below */
@keyframes dvd-x-sm {
  from { left: 0.3rem; }
  to   { left: calc(100% - 3.9rem); }
}

@keyframes dvd-y-sm {
  from { top: 0.3rem; }
  to   { top: calc(100% - 1.45rem); }
}

/* job done once you're on the cell */
.grid button:hover .spotlight-badge {
  animation-play-state: paused, paused;
  background: #fff;
  color: var(--ie-blue);
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-badge { animation: none; top: 0.7rem; left: auto; right: 0.7rem; }
}

.grid .meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* the kind of video it was — accent-coloured so it reads apart from the meta */
.grid .format {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ie-blue);
  text-align: center;
}

.grid button:hover .format { color: rgba(255, 255, 255, 0.9); }

/* ---------- 3: who we are ---------- */

.about {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  /* above the grain (9), same as the pricing cards */
  position: relative;
  z-index: 10;
}

.about-photo { margin: 0; }

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  /* the photo is dim and warm; nudge it back toward neutral */
  filter: saturate(0.95) contrast(1.04);
}

.about-text {
  padding: 2.75rem 2.5rem;
  border-left: 1px solid var(--line);
  align-self: center;
}

.about-text p {
  /* a shorter measure reads far better than the full column width */
  max-width: 34rem;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-text p + p { margin-top: 1.35rem; }

/* pastel highlighter on the phrase that carries each benefit */
.about-text mark {
  background: var(--pastel-app);
  color: var(--ink);
  padding: 0.08em 0.25em;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about-text p:nth-child(2) {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.first-video {
  width: 100%;
  margin-top: 1rem;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
  /* above the grain (9), same as the pricing cards */
  position: relative;
  z-index: 10;
}

.first-video:hover { background: var(--ie-blue); color: #fff; }
.first-video:hover .first-video-text span:last-child { color: rgba(255, 255, 255, 0.75); }
.first-video:hover .first-video-play { background: #fff; color: var(--ie-blue); }

.first-video-play {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ie-blue);
  color: #fff;
  font-size: 0.8rem;
  transition: background-color 0.15s, color 0.15s;
}

.first-video-text { display: flex; flex-direction: column; gap: 0.15rem; }
.first-video-text strong { font-size: 0.95rem; font-weight: 600; }
.first-video-text span:last-child { font-size: 0.83rem; color: var(--ink-soft); }

/* ---------- 4: scrolling reviews ---------- */

.reviews {
  padding: 2.75rem 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  /* full bleed over the rails, same as .trust and the CTA */
  position: relative;
  z-index: 6;
}

.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);
}

/* The scroll itself is driven from app.js via the Web Animations API.
   It used to be a CSS keyframe translating -50% of the track, but that
   percentage resolves against `width: max-content`, which Safari and Chrome
   size differently — same duration, different distance, so Safari raced.
   JS measures one card set and animates at a fixed px/second instead. */
.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}

.review-card {
  flex: 0 0 20rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.review-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}

.review-name { font-size: 0.86rem; font-weight: 700; }

.review-repeat {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  padding: 0.05rem 0.35rem;
}

.review-country {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-left: auto;
}

.review-card .card-stars {
  margin-top: 0.6rem;
  color: var(--star);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* the numeric score and the timestamp ride along in body ink, not star gold */
.review-card .card-stars em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.review-card blockquote {
  margin-top: 0.45rem;
  font-size: 0.83rem;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* pinned to the card bottom so meta rows line up across uneven blurbs */
.review-meta {
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  gap: 1.2rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.review-meta span { display: flex; flex-direction: column; }
.review-meta strong { font-size: 0.82rem; color: var(--ink); }

/* ---------- trust: the featured review ---------- */
/* Sits alone between the timeline and the CTA. No card, no border —
   quiet panel, big quote, so it reads as a voice rather than a tile. */

.trust {
  margin-top: 4rem;
  padding: 3.5rem 1.5rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* same as the CTA — full bleed over the rails, under the modal */
  position: relative;
  z-index: 6;
}

.trust-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.trust-stars {
  display: block;
  color: var(--star);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.trust-quote {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

/* typographic quotes hung outside the measure so the text edge stays flush */
.trust-quote::before { content: "“"; }
.trust-quote::after { content: "”"; }

.trust-by {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.trust-by strong { font-weight: 600; }
.trust-by span { color: var(--ink-soft); font-size: 0.8rem; }

/* ---------- 4: services ---------- */

.services {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.manifesto {
  max-width: 30rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1rem; /* room for the highlighted card's lift */
}

.pricing-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: #fff;
  /* above the grain (9) so the card interiors stay true white —
     clean paper cards sitting on the textured page */
  z-index: 10;
}

/* the $1000 tier — obvious winner via accent border, lift and a badge */
.pricing-card.highlight {
  border: 2px solid var(--ie-blue);
  transform: translateY(-0.6rem);
  box-shadow: 0 0.6rem 0 -0.1rem rgba(0, 0, 238, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ie-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pricing-price {
  margin-top: 0.5rem;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pricing-per-video {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.55rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pricing-features {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* star per benefit on every tier — blue on the €1,000 tier (the loaded
   one), black everywhere else */
.pricing-features li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pricing-features li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.6;
}

.pricing-card.highlight .pricing-features li::before {
  color: var(--ie-blue);
}

.pricing-features strong { color: var(--ink); }

/* per-tier CTA — mobile only, where the closing CTA is a long scroll away */
.pricing-cta {
  display: none;
  margin-top: 1.25rem;
  padding: 0.7rem 1rem;
  background: var(--ie-blue);
  border: 1px solid var(--ie-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.pricing-cta:hover { background: var(--ie-blue-dark); color: #fff; }

/* ---------- 5: how it works ---------- */

.how {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

/* Vertical timeline. Five steps across one row squeezed each to ~210px,
   which was unreadable; the section owns a full screen, so spend the
   height instead. Also fixes mobile, where the row never wrapped. */
.how-grid {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.how-step {
  position: relative;
  padding: 0 0 2.1rem 2.75rem;
  border-left: 2px solid var(--line-soft);
}

/* the spine shouldn't trail past the final step */
.how-step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.how-num {
  position: absolute;
  top: 0;
  left: -0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ie-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.how-time {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.how-step h3 {
  margin-top: 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.how-step p {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.how-ctas {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.how-ctas a {
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- 6: CTA ---------- */

/* Full bleed and white, closing the page the same way the hero opens it:
   one big centred line, then the actions. The trust panel's bottom rule
   above is the only divider it needs. */
.outcomes {
  max-width: none;
  margin: 0;
  padding: 0;
  /* rides over the decorative rails (5) but still under the modal (10),
     so the blue runs edge to edge with no pastel dashes crossing it */
  position: relative;
  z-index: 6;
}

.cta {
  padding: 4.5rem 1.5rem 4rem;
  background: var(--ie-blue);
  text-align: center;
}

/* same voice as .tagline, a size down — bookends the page */
.cta-line {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.cta-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.1s, color 0.1s;
}

/* the CTA panel is blue, so the primary inverts to white to stay the loudest */
.btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--ie-blue);
}

.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* no booking link yet — reads as pending, not broken */
.btn-soon {
  background: rgba(255, 255, 255, 0.15);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: default;
}

.btn-soon:hover { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.6); }

.btn-soon em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.cta-alt {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta-alt a { color: #fff; }
.cta-alt a:hover { color: #fff; }

/* ---------- modal ---------- */

/* stage fills the space above the filmstrip and centres the card in it */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20; /* clear of the grain (9) and the lifted pricing cards (10) */
  display: grid;
  grid-template-rows: 1fr auto;
}

/* `display` here outranks the hidden attribute's UA `display: none`,
   so it has to be restored explicitly or the modal never closes */
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
}

.modal-stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 50rem;
  max-height: 100%;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
}

/* ---------- modal: arrows + filmstrip ---------- */

.modal-nav {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  background: #fff;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.modal-nav:hover { background: var(--ie-blue); color: #fff; }

.modal-strip {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem;
  background: #fff;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.modal-strip button {
  flex: none;
  padding: 0.4rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  font: inherit;
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.modal-strip button:hover { border-color: var(--ie-blue); color: var(--ie-blue); }

.modal-strip button.active {
  background: var(--ie-blue);
  border-color: var(--ie-blue);
  color: #fff;
  font-weight: 500;
}

/* standalone video (the About throwback) has nothing to page through */
.modal.no-nav .modal-nav,
.modal.no-nav .modal-strip { display: none; }

.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-close:hover { color: var(--ie-blue); }

.modal-video {
  flex: 0 0 44%;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
  align-self: flex-start;
}

.modal-video iframe,
.modal-video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.55;
  padding: 1rem;
  text-align: center;
}

.modal-info {
  flex: 1;
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal-tags {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.modal-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* matching the grid cell's format label, as a chip */
.modal-format {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--ie-blue);
  color: var(--ie-blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.modal-format[hidden] { display: none; }

.modal-blurb { color: var(--ink-soft); font-size: 0.95rem; }

.modal-shot-in {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.modal-link { font-size: 0.9rem; font-weight: 500; }

/* ---------- edge rails ---------- */
/* Fills the dead margin either side of the 72rem column: a hairline, a
   ruler of ticks, and one line of rotated small caps. Transparent, so the
   full-bleed panels keep running underneath. Purely decorative. */

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 3.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* never steal a click from the page */
  z-index: 5;           /* under the full-bleed bands (6) and the grain (9) */
}

.rail-left { left: 0; border-right: 1px solid var(--line-soft); }
.rail-right { right: 0; border-left: 1px solid var(--line-soft); }

/* A ticker of colour dashes drifting slowly up the page. One gradient, one
   transform — the whole thing is two pseudo-elements. Overscanned top and
   bottom so the wrap point never enters the viewport. */
.rail::before {
  content: "";
  position: absolute;
  top: -12rem;
  bottom: -12rem;
  width: 0.5rem;
  background: repeating-linear-gradient(
    to bottom,
    var(--pastel-product) 0 0.75rem,
    transparent 0.75rem 1.5rem,
    var(--pastel-app) 1.5rem 2.25rem,
    transparent 2.25rem 3rem,
    var(--pastel-service) 3rem 3.75rem,
    transparent 3.75rem 4.5rem
  );
  /* travel === one full pattern period, so the loop is seamless */
  animation: rail-drift 12s linear infinite;
}

.rail-left::before { right: 0; }

/* mirrored: right rail runs the other way so the two edges never sync up */
.rail-right::before { left: 0; animation-direction: reverse; }

@keyframes rail-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .rail::before { animation: none; }
}

/* only once the 72rem column plus both rails actually fit */
@media (min-width: 80rem) {
  .rail { display: flex; }
}

/* ---------- responsive ---------- */

@media (max-width: 52rem) {
  /* one line only holds on desktop — below that it must wrap or it forces
     the whole page to scroll sideways */
  .subheading { white-space: normal; text-wrap: balance; }

  /* keeps bouncing — just smaller, on the shorter -sm travel, so it still
     clears the label on a narrow cell */
  .spotlight-badge {
    width: 3.6rem;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    animation:
      dvd-x-sm 7.3s linear infinite alternate,
      dvd-y-sm 4.1s linear infinite alternate;
  }

  .grid { grid-template-columns: repeat(2, 1fr); }

  /* re-point both rule sets at 2 columns */
  .grid > *:not(:nth-child(-n + 3)) { border-top-width: 0; }
  .grid > *:not(:nth-child(3n + 1)) { border-left-width: 0; }
  .grid > *:not(:nth-child(-n + 2)) { border-top-width: 1px; }
  .grid > *:not(:nth-child(2n + 1)) { border-left-width: 1px; }
  .grid > .filler { border-left-width: 0; }

  .pricing-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 0; }
  /* no `order: -1` — stacked, the tiers should read cheapest to dearest
     rather than jumping €1,000 → €500 → €300 */
  .pricing-card.highlight { transform: none; }

  /* the closing CTA is a long scroll from here once the cards stack */
  .pricing-cta { display: block; }

  .about-inner { grid-template-columns: 1fr; }
  .about-photo img { min-height: 0; aspect-ratio: 3 / 2; }
  .about-text { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 34rem) {
  /* keep the hero tight so the work starts near the fold */
  .hero {
    max-height: none;
    min-height: 0;
    padding: 1.75rem 1.1rem 1.4rem;
  }

  .tagline { margin-top: 0.5rem; }
  .rating-line { margin-top: 0.7rem; }

  .reviews { padding: 2rem 0; }

  /* show reviews in full — clamping to two lines cut every one of them
     mid-sentence. Wider cards so the untruncated text still reads. */
  .review-card { flex: 0 0 17rem; padding: 0.85rem 0.9rem; }
  .review-card blockquote {
    font-size: 0.8rem;
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
  }

  .work { padding: 0 0 2.5rem; }
  .filters { padding: 0 1.1rem 1.1rem; gap: 0.75rem; }

  /* stack the label above its chips so both rows read as one question */
  .filter-group { flex-direction: column; align-items: stretch; gap: 0.35rem; }
  .filter-label { flex: none; text-align: left; }
  .filter-row button { font-size: 0.8rem; padding: 0.25rem 0.6rem; }

  .grid { padding: 0 1.1rem; }
  .grid button { min-height: 6rem; padding: 1.5rem 0.6rem; }
  .grid .name { font-size: 0.98rem; }
  .grid .meta { font-size: 0.63rem; letter-spacing: 0.04em; }

  .about { padding: 2.5rem 1.1rem 2rem; }
  .about-text { padding: 1.25rem; }
  .services { padding: 2.5rem 1.1rem 0; }
  .manifesto { margin-bottom: 2rem; }
  /* the blue block is full bleed — this padding was ringing it in white */
  .outcomes { padding: 0; }
  .cta { margin-top: 0; padding: 3rem 1.1rem; }

  .modal-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem;
  }

  .modal-video { flex: none; width: 68%; margin: 0 auto; }
  .modal-info { padding-top: 0; }

  /* not enough width for arrows beside the card — float them over its edges */
  .modal-stage { padding: 0.8rem; }

  .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.2rem;
    opacity: 0.92;
    /* prev comes before the card in the DOM, so without this it paints
       underneath it and only the next arrow is visible */
    z-index: 1;
  }

  #modal-prev { left: 0.15rem; }
  #modal-next { right: 0.15rem; }
}

/* short desktop screens: let the hero shrink further */
@media (min-height: 0px) and (max-height: 36rem) and (min-width: 34rem) {
  .hero { padding: 1.2rem 1.5rem 1rem; }
}
