/* ---------------------------------------------------------------------------
 * Hand-written site CSS.
 *
 * This file exists because `style.css` is GENERATED from the Portfolify SCSS
 * in `original_HTML_Source_Code/Portfolify-html/assets/scss` — a hand-edit
 * there is silently overwritten by anyone who rebuilds it. Anything we author
 * ourselves lives here instead, and is loaded after the template stylesheets.
 *
 * Tokens come from the template's `:root` (--p1 is the brand gold,
 * 253 187 46), so a theme change there carries through here.
 * ------------------------------------------------------------------------- */

/* Section rhythm -------------------------------------------------------------
 * The template's pt-120/pb-120 put 240px between every two sections, which
 * read as gaps rather than breathing room. One place sets the rhythm for the
 * whole site, so the spacing cannot drift section by section.
 * ------------------------------------------------------------------------ */

.pt-120 {
  padding-top: 84px;
}

.pb-120 {
  padding-bottom: 84px;
}

.pt-60 {
  padding-top: 44px;
}

.pb-60 {
  padding-bottom: 44px;
}

@media (max-width: 767.98px) {
  .pt-120 {
    padding-top: 52px;
  }

  .pb-120 {
    padding-bottom: 52px;
  }

  .pt-60 {
    padding-top: 30px;
  }

  .pb-60 {
    padding-bottom: 30px;
  }
}

/* The gold bar beside a heading was a fixed 67px — about one line. Next to a
 * heading that wraps to two it covered half of it, which is why "Here for the
 * security teaching?" looked wrong beside "Latest from the blog".
 * `align-self` overrides the parent's `align-items: center`, so it matches the
 * heading at any length without touching the markup. */
.title-line {
  align-self: stretch;
  height: auto;
  min-height: 44px;
}

/* One word swapping for the next, on a 6.6s loop. Pure CSS: the words are
 * stacked in a single grid cell, so the box is as wide as the longest one and
 * nothing reflows as they change. */
.ysr-rotate {
  display: inline-grid;
  vertical-align: bottom;
}

.ysr-rotate > span {
  grid-area: 1 / 1;
  opacity: 0;
  color: rgb(var(--p1));
  animation: ysr-rotate-word 6.6s linear infinite;
}

.ysr-rotate > span:nth-child(2) {
  animation-delay: 2.2s;
}

.ysr-rotate > span:nth-child(3) {
  animation-delay: 4.4s;
}

@keyframes ysr-rotate-word {
  0%,
  2% {
    opacity: 0;
    transform: translateY(0.22em);
  }
  7%,
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  35%,
  100% {
    opacity: 0;
    transform: translateY(-0.22em);
  }
}

/* Motion off: show the first word and stop. */
@media (prefers-reduced-motion: reduce) {
  .ysr-rotate > span {
    animation: none;
    opacity: 0;
  }

  .ysr-rotate > span:first-child {
    opacity: 1;
  }
}

/* Typography ---------------------------------------------------------------
 * The families come from next/font (see src/app/layout.tsx) as CSS variables,
 * so there is no third-party font request. Loaded after style.css, so these
 * win over the template's `body { font-family: "Jost" }` at equal specificity.
 * ------------------------------------------------------------------------- */

body {
  font-family: var(--ysr-font-body), system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}

/* Forms and buttons don't inherit the family on their own. */
button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-one,
.display-two,
.display-three,
.display-four,
.ysr-feature-label {
  font-family: var(--ysr-font-display), var(--ysr-font-body), system-ui, sans-serif;
  letter-spacing: -0.015em;
}

/* The template sets line-height on its text-size classes themselves
 * (.fs-six 120%, .fs-seven/.fs-eight 130%), which at (0,1,0) outranks a bare
 * `p` rule — so leading has to be corrected on the same classes, not on `p`.
 * ysr.css loads after style.css, so equal specificity resolves here. */
.fs-six {
  line-height: 1.55;
}

.fs-seven,
.fs-eight {
  line-height: 1.6;
}

/* Body copy read as cramped: Jost's low x-height against the template's 150%
 * line-height left too little room between lines at paragraph sizes. Inter has
 * a taller x-height, so it needs the extra leading even more, not less. */
p {
  line-height: 1.72;
}

/* Figures are Inter, not the display face — it has the better numerals, and
 * tabular keeps multi-digit stats from shifting width as they count up. */
.ysr-feature-num,
.ysr-stat-num {
  font-family: var(--ysr-font-body), system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Hero layout -------------------------------------------------------------
 * The template hard-codes `.banner-content { width: 478px }` and a 325x407
 * photo. On a 1320px container that left 493px of dead space dumped into the
 * middle by `justify-content: space-between` — a gap wider than the photo.
 * Both columns are given a share of the width instead, and the photo scales
 * with the viewport while keeping its 325:407 ratio.
 * ------------------------------------------------------------------------ */

@media (min-width: 992px) {
  .banner-content {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 700px;
  }

  .profile-img {
    --ysr-photo-w: clamp(325px, 27vw, 460px);
    flex: 0 0 auto;
  }

  /* The gold square and the photo are separate elements stacked on each other,
   * so both have to be resized or the backdrop detaches from the picture. */
  .profile-img .user-bg,
  .profile-img .user-img {
    width: var(--ysr-photo-w);
    height: calc(var(--ysr-photo-w) * 407 / 325);
  }
}

/* Measure is capped here rather than by the column, so the heading can use the
 * full width while paragraphs stay inside a readable line length.
 *
 * `em`, not `ch`: the lead paragraph is 20px and the rest 16px, and `ch` is the
 * width of "0" — which is wider than average lowercase, so 64ch computed to
 * 807px on the lead and overshot the 700px column entirely. `em` holds the
 * character count steady across both sizes. */
.banner-content p {
  max-width: 34em;
}

/* Hero headline and ghost wordmarks ----------------------------------------
 * The whole h1 used to be gold, which flattened it into one block of colour.
 * Splitting it neutral + accent gives the line a read order.
 * ------------------------------------------------------------------------ */

/* Colour comes from the template's `n5-color` class on the h1, not a token
 * hard-coded here: under `.dark` the template flips --n1 to 41,41,41 (the page
 * background) and --n5 to white, so `rgb(var(--n1))` rendered the lead phrase
 * invisible against the body. */

/* Not a decorative greeting — the company name is a key point, so the eyebrow
 * is sized to be read rather than skimmed past, with the company in the brand
 * gold to carry it. */
.ysr-eyebrow {
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  color: rgb(var(--n5));
}

/* Same trap as the stat numbers: `span, label, li { font-size: 16px }`
 * (style.css:154) matches the inner <span> DIRECTLY, and a direct match beats
 * an inherited 23px — so the company name rendered smaller than the word
 * "FOUNDER," next to it. */
.ysr-eyebrow span {
  font: inherit;
  letter-spacing: inherit;
}

.ysr-headline-accent {
  color: rgb(var(--p1));
}

/* The typed role gets its own line with a reserved height. type-word.js empties
 * the element between words; without this the line would collapse to zero and
 * the <h1> would jump on every keystroke. Only the width changes now. */
.ysr-typing {
  display: block;
  min-height: 1.2em;
}

/* The template sets `span { display: inline-block }`, which would stop each
 * phrase wrapping internally and overflow narrow screens. */
/* `:not(.ysr-typing)` matters: at (0,1,1) this rule outranks `.ysr-typing`
 * (0,1,0) and was silently forcing the typed role back inline, so it ran on
 * into the sentence and the heading re-wrapped on every keystroke. */
.ysr-headline span:not(.ysr-typing) {
  display: inline;
}

/* Oversized outlined words echoing the headline. The top one is painted before
 * the portrait and the bottom one after, so the photo appears to sit between
 * them. Note this is as far as a rectangular JPEG goes — text can only pass
 * behind a genuinely cut-out subject, which needs a transparent PNG. */
/* BUILD / BREAK, outlined behind the portrait.
 *
 * Both are stroked in the brand gold and blended with mix-blend-mode:
 * difference, which is what makes them survive the rotating gold card:
 *
 *   gold stroke over the dark section  -> |250-41, 182-41, 55-41| = deep gold
 *   gold stroke over the gold card     -> |250-250, …|            = black
 *
 * So the letters invert to black exactly where the card is behind them, and
 * because the card rotates (rotatedBg, 10s), the black region tracks it for
 * free — no second copy of the text, no mask that has to be kept in sync with
 * the animation.
 *
 * BUILD previously used a 16%-white stroke, which is invisible on a #292929
 * section, and BREAK a 42% gold, which vanished wherever the card passed
 * behind it. Both are now the same solid gold.
 *
 * z-index matters here: each ghost must paint ABOVE the card (so the card is
 * part of its backdrop) and BELOW the portrait (so the blend never lands on
 * the white cut-out, where difference against gold reads blue). .user-bg and
 * .bg-white are unpositioned, and .user-img is positioned, so
 * z-index 1 sits above the card, and z-index 0 below the portrait. */
.ysr-ghost {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ysr-font-display), sans-serif;
  font-size: clamp(44px, 5.4vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(var(--p1));
  mix-blend-mode: difference;
  pointer-events: none;
  user-select: none;
}

/* Layering, bottom to top:
 *
 *   .user-bg          the rotating gold card      (unpositioned, so lowest)
 *   .ysr-ghost        z-index 1, difference       blended against the card
 *   .user-img         z-index 2                   the portrait, opaque
 *   .ysr-ghost-over   z-index 3, no blend         the same words, clipped to
 *                                                 the portrait
 *
 * The second copy exists because difference cannot serve both backdrops: gold
 * against the white cut-out resolves to rgb(5,73,200) — a hard blue. So the
 * blended copy is allowed to meet only the section and the card, and the
 * portrait gets a plain gold copy instead. .ysr-ghost-over is inset:0 on the
 * container, whose box is exactly the portrait's, so overflow:hidden does the
 * clipping without either box being restated in CSS. */
.ysr-ghost--top {
  top: -0.52em;
  z-index: 1;
}

.ysr-ghost--bottom {
  bottom: -0.46em;
  z-index: 1;
}

/* .bg-white carries no styles of its own — the white frame is part of the jpg —
 * so the portrait is raised by its own image, which is already absolute.
 * Making .bg-white position:relative instead would re-anchor .user-img to a
 * zero-height wrapper and drop the photo 407px down the page. */
.ysr-hero-photo .user-img {
  z-index: 2;
}

.ysr-ghost-over {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.ysr-ghost-over .ysr-ghost {
  mix-blend-mode: normal;
}

/* Purely decorative, so it simply goes away where the stroke is unsupported
 * rather than leaving invisible transparent text occupying layout. */
@supports not (-webkit-text-stroke: 1px red) {
  .ysr-ghost {
    display: none;
  }
}

/* Buttons ------------------------------------------------------------------
 * The glossy pill from ruchitdesigns.framer.website. Read off the live element
 * rather than eyeballed: it is not a gradient, it is seven box-shadow layers —
 * three soft drops in the button own colour, then four white INSET highlights
 * that produce the bevel. Ported to the brand gold via --p1, and the offsets
 * kept proportional to the original so the bevel reads the same.
 * ------------------------------------------------------------------------ */

.primary-btn {
  box-shadow:
    rgba(var(--p1), 0.68) 0 0.48px 0.87px -1.17px,
    rgba(var(--p1), 0.61) 0 1.83px 3.3px -2.33px,
    rgba(var(--p1), 0.3) 0 8px 14.4px -3.5px,
    rgba(255, 255, 255, 0.91) 0.32px 0.44px 0.32px -1.19px inset,
    rgba(255, 255, 255, 0.84) 0.97px 1.33px 0.99px -2.38px inset,
    rgba(255, 255, 255, 0.66) 2.55px 3.51px 2.6px -3.56px inset,
    rgba(255, 255, 255, 0.05) 8px 11px 8.16px -4.75px inset;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    rgba(var(--p1), 0.7) 0 1px 2px -1px,
    rgba(var(--p1), 0.5) 0 4px 10px -3px,
    rgba(var(--p1), 0.38) 0 14px 26px -5px,
    rgba(255, 255, 255, 0.91) 0.32px 0.44px 0.32px -1.19px inset,
    rgba(255, 255, 255, 0.84) 0.97px 1.33px 0.99px -2.38px inset,
    rgba(255, 255, 255, 0.66) 2.55px 3.51px 2.6px -3.56px inset,
    rgba(255, 255, 255, 0.05) 8px 11px 8.16px -4.75px inset;
}

/* The "you + me" pair from the reference. aria-hidden and alt="": it is a
 * visual device, and a screen reader announcing a photo and the word "You"
 * before the label adds nothing to "Book 1:1 Meeting". */
/* Collapsed at rest, revealed on hover — the reference does not show the
 * avatars until you point at the button. `grid-template-columns: 0fr -> 1fr`
 * animates to the content's own width; a max-width would be a guessed pixel
 * value that needs re-guessing whenever the contents change.
 *
 * The negative margin cancels the button's own `gap-2` while collapsed, so
 * there is no 8px of dead space before the label at rest. */
.ysr-avatars {
  display: grid;
  grid-template-columns: 0fr;
  opacity: 0;
  margin-right: -8px;
  transition:
    grid-template-columns 0.42s ease,
    opacity 0.3s ease,
    margin-right 0.42s ease;
}

.ysr-avatars-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

/* :focus-visible too — a keyboard user reaches this button. On touch there is
 * no hover at all, which is fine: the label carries the meaning, this is
 * decoration. */
.primary-btn2:hover .ysr-avatars,
.primary-btn2:focus-visible .ysr-avatars,
.ysr-cta-primary:hover .ysr-avatars,
.ysr-cta-primary:focus-visible .ysr-avatars,
.ysr-faq-cta-btn:hover .ysr-avatars,
.ysr-faq-cta-btn:focus-visible .ysr-avatars,
.ysr-contact-btn:hover .ysr-avatars,
.ysr-contact-btn:focus-visible .ysr-avatars,
.ysr-wk-cta-book:hover .ysr-avatars,
.ysr-wk-cta-book:focus-visible .ysr-avatars {
  grid-template-columns: 1fr;
  opacity: 1;
  margin-right: 0;
}

.ysr-plus {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: rgb(var(--n5));
  transition: color 0.35s ease;
}

/* The gold wave -------------------------------------------------------------
 * Rises from below the button with a curved crest. Only on the secondary
 * button: a gold wave across an already-gold .primary-btn would be invisible,
 * so those keep the glossy bevel and lift instead.
 *
 * The crest is the second half of the border-radius shorthand — 18% vertical
 * against 50% horizontal — which flattens the circle into a wave rather than a
 * dome. It is a transform, so it composites on the GPU. */
.primary-btn2 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease;
}

.primary-btn2::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  top: 100%;
  height: 300%;
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  background: rgb(var(--p1));
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-btn2:hover::before,
.primary-btn2:focus-visible::before {
  transform: translateY(-100%);
}

/* Near-black on the gold is ~10:1; leaving the label white would drop it to
 * about 1.8:1 once the wave lands. */
.primary-btn2:hover,
.primary-btn2:focus-visible,
.primary-btn2:hover .ysr-plus,
.primary-btn2:focus-visible .ysr-plus {
  color: #17140a;
}

.ysr-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  background: #fff;
}

/* Sized on the class, not left to inherit: the template's
 * `span, label, li { font-size: 16px }` matches this element directly and
 * would otherwise win. */
.ysr-avatar--you {
  display: grid;
  place-items: center;
  background: #fff;
  color: #1b1b1b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ysr-avatars,
  .primary-btn2,
  .primary-btn2::before {
    transition: none;
  }

  .primary-btn {
    transition: none;
  }

  .primary-btn:hover {
    transform: none;
  }
}

/* "I'm here" on the Hire Me CTA ---------------------------------------------
 * Two effects, and neither can be clipped away.
 *
 * The first attempt was a ring expanding out of the button. It did not show,
 * for two reasons found by measuring: .primary-btn already carries a permanent
 * gold glow from the glossy bevel, which swallowed a thin gold ring; and
 * `side-menu-right` is `overflow-y: auto`, with this button at its bottom edge,
 * so anything drawn outside the button is clipped and could even raise a
 * scrollbar.
 *
 * So both effects now stay inside the button's own box: it breathes, and a
 * highlight sweeps across it. transform and opacity only — this runs forever on
 * every page, so it has to stay on the compositor.
 * ------------------------------------------------------------------------ */

.ysr-hire {
  position: relative;
  overflow: hidden;
}

/* Reuses ysr-ring-spin from the stats card rather than defining a second
 * rotation — same gradient, same keyframes. The square is 190% of the wrapper
 * so its inscribed circle still covers the corners of a wide, short pill. */
.ysr-hire-ring {
  position: relative;
  width: max-content;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  /* The sidebar column is an over-constrained flex container, so without this
   * the wrapper shrank to 4px — its padding alone — and clipped the button to
   * a sliver. Measured, not guessed: ring box 149x4 against a 63px inner. */
  flex-shrink: 0;

}

/* The button sat flush against the end of the sidebar. The column already has
 * padding-bottom: 40px and a 28px margin was tried here — both are dropped
 * from the scrollable overflow area once the content is taller than the
 * scroller, which it is by 179px. Only a real element reliably occupies that
 * space, so the breathing room is an empty block rather than spacing. */
.ysr-hire-tail {
  flex-shrink: 0;
  height: 28px;
}

.ysr-hire-ring::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 190%;
  aspect-ratio: 1 / 1;
  background: conic-gradient(
    from 0deg,
    rgba(var(--p1), 0) 0deg,
    rgba(var(--p1), 0) 190deg,
    rgba(var(--p1), 0.15) 245deg,
    rgba(var(--p1), 0.95) 300deg,
    #fff4d2 320deg,
    rgba(var(--p1), 0.95) 340deg,
    rgba(var(--p1), 0) 360deg
  );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: ysr-ring-spin 3s linear infinite;
  will-change: transform;
}

/* The gap itself, painted in the sidebar's own colour so the ring reads as a
 * separate outer layer rather than a thick border on the button. */
.ysr-hire-ring-inner {
  position: relative;
  z-index: 1;
  padding: 5px;
  border-radius: 999px;
  /* --n2, not --n1: the sidebar paints rgb(79,79,79) while --n1 is the page's
   * 41,41,41, which would have drawn the gap as a dark band rather than
   * letting the sidebar show through. */
  background: rgb(var(--n2));
}

.ysr-hire::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-170%) skewX(-18deg);
  animation: ysr-hire-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

/* Holds still for the first half of the cycle, then sweeps — a continuous
 * sweep reads as a loading bar rather than an invitation. */
@keyframes ysr-hire-shine {
  0%,
  45% {
    transform: translateX(-170%) skewX(-18deg);
  }
  100% {
    transform: translateX(330%) skewX(-18deg);
  }
}

/* Once the pointer is on it the button has done its job. The breathing has to
 * stop too, or its transform animation overrides the hover lift. */
.ysr-hire:hover,
.ysr-hire:focus-visible {
  animation: none;
}

.ysr-hire:hover::after,
.ysr-hire:focus-visible::after {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ysr-hire,
  .ysr-hire::after,
  .ysr-hire-ring::before {
    animation: none;
  }

  /* A frozen arc would sit lopsided, so show an even ring instead. */
  .ysr-hire-ring::before {
    background: rgba(var(--p1), 0.55);
  }

  .ysr-hire::after {
    display: none;
  }
}

/* Booking page -------------------------------------------------------------
 * Calendly ships ~8.5MB and runs an eight-call API waterfall before the
 * calendar paints, none of which we control. What we can control is that the
 * space does not read as broken while that happens.
 * ------------------------------------------------------------------------ */

.ysr-calendly-frame {
  position: relative;
  min-height: 700px;
  border-radius: 14px;
  overflow: hidden;
}

.ysr-calendly-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.03) 30%,
      rgba(255, 255, 255, 0.07) 50%,
      rgba(255, 255, 255, 0.03) 70%
    )
    rgb(var(--n2));
  background-size: 220% 100%;
  animation: ysr-skeleton 1.4s linear infinite;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

/* Above the skeleton; the opaque iframe covers it once Calendly paints. */
.ysr-calendly {
  position: relative;
  z-index: 1;
}

@keyframes ysr-skeleton {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -20% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ysr-calendly-skeleton {
    animation: none;
  }
}

/* Services section backdrop ------------------------------------------------
 * The heading band sat on flat #292929 and read as empty next to sections that
 * carry one. Reuses the template's own bg.png — the same asset .next-project
 * uses — rather than inventing a second visual language for the same site.
 *
 * Two departures from how .next-project applies it:
 *  - no `background-attachment: fixed`; it janks or is ignored outright on iOS
 *    Safari, and the section is tall enough that the parallax adds nothing.
 *  - `100% auto`, NOT `cover`. bg.png is 1620x404 (aspect 4.01) and this
 *    section is 1294x1567 (aspect 0.83), so cover scaled it 3.88x and rendered
 *    it at 6284x1567 — five times wider than the section. All you saw was one
 *    sliver of a hugely enlarged image, which is why it read as a single faint
 *    diagonal. At natural proportions the pattern is legible again.
 *  - anchored to the top, where the empty heading band actually is, and masked
 *    to fade out before the cards so it never competes with them.
 * ------------------------------------------------------------------------ */

#services {
  position: relative;
  isolation: isolate;
}

#services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  pointer-events: none;
}

/* Make position:sticky possible at all ---------------------------------------
 * `.main-content` and `body` both carry `overflow-x: hidden`, which makes each
 * of them a scroll container. A sticky element then resolves against the
 * nearest one instead of the viewport — and .main-content's height equals its
 * content (6395px), so it never scrolls and sticky silently does nothing.
 *
 * `clip` still clips horizontally but does NOT create a scroll container, and
 * it is the one value that lets the other axis stay `visible` rather than being
 * forced to `auto`. That is the whole fix.
 * ------------------------------------------------------------------------ */

.main-content {
  overflow-x: clip;
  overflow-y: visible;
}

/* ...but `clip` costs the flex item its shrink. `.main-content` is the only
 * in-flow child of `.d-flex` (the side menu is fixed) and carries `w-100` plus
 * the template's `margin-left: 300px`. With `overflow-x: hidden` a flex item's
 * automatic minimum width is 0, so it shrank to 100% - 300px. `clip` is not a
 * scroll container, so the minimum reverts to its min-content width (the
 * 1320px `.container` at >=1400px) and the box ran 300px past the viewport:
 * scrollWidth 1620 at a 1400 window. `min-width: 0` restores the shrink
 * without giving back the scroll container sticky needs. */
.main-content {
  min-width: 0;
}

/* body is deliberately NOT overridden. Its overflow propagates to the viewport,
 * and clipping there left view() timelines with no scroll container at all —
 * every animation sat inactive with a null currentTime. Fixing .main-content
 * alone is enough for sticky. */

/* Case-study closing CTA and proof strip -------------------------------------
 * The reference this follows puts a bright panel at the foot of every project.
 * Ours is the brand gold rather than a second accent colour, and it carries no
 * invented "99+ clients" figure — the cap is the selling point here, not the
 * volume.
 * ------------------------------------------------------------------------ */





.ysr-cta {
  padding: clamp(34px, 5vw, 64px) clamp(22px, 4vw, 56px);
  border-radius: 26px;
  background:
    radial-gradient(
      120% 150% at 100% 0%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 55%
    ),
    rgb(var(--p1));
  text-align: center;
  color: #17140a;
}

/* "Here for the security teaching?" ------------------------------------------
 * Was a wall of copy with the entire right half of the section empty, and the
 * three links reading as plain text under it. Two columns now, with the links
 * promoted into a panel — they are the point of the block.
 * ------------------------------------------------------------------------ */

.ysr-router {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .ysr-router {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
  }
}

/* Core Hacking card --------------------------------------------------------
 * A slowly turning gold border, a drifting glow, a live dot, AI tracks that
 * rise in one after another and answer the pointer, a shine across the CTA,
 * and brand-coloured social buttons. Everything that moves stops under
 * prefers-reduced-motion.
 * ------------------------------------------------------------------------ */

@property --ysr-ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.ysr-router-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 28px;
  border-radius: 22px;
  background: rgb(var(--n2));
  border: 1px solid rgba(var(--p1), 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  transition:
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

/* The turning border: a conic gradient masked down to a 1.5px ring. Where
 * @property is unsupported the angle never animates and the static border
 * above still shows. */
.ysr-router-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--ysr-ang),
    transparent 0deg,
    rgba(var(--p1), 0.9) 60deg,
    transparent 140deg,
    transparent 220deg,
    rgba(var(--p1), 0.55) 290deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0.55;
  animation: ysr-router-spin 7s linear infinite;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ysr-router-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--p1), 0.18);
}

.ysr-router-card:hover::before {
  opacity: 1;
}

@keyframes ysr-router-spin {
  to {
    --ysr-ang: 360deg;
  }
}

.ysr-router-glow {
  position: absolute;
  top: -120px;
  right: -110px;
  z-index: -2;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--p1), 0.22), transparent 68%);
  animation: ysr-router-drift 11s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ysr-router-drift {
  to {
    transform: translate(-70px, 60px) scale(1.15);
  }
}

.ysr-router-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ysr-router-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(var(--p1), 0.15);
  color: rgb(var(--p1));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The format tag sits a step below the brand tag: an outline instead of a
 * gold fill, so the eye still lands on "Core Hacking" first. */
.ysr-router-tag--alt {
  background: transparent;
  border: 1px solid rgba(var(--p1), 0.32);
  color: rgba(var(--n5), 0.82);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 7px 12px;
}

/* A live dot with an expanding ring, so "Live" reads as happening. */
.ysr-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  flex: 0 0 auto;
}

.ysr-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff4d4f;
  animation: ysr-live-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ysr-live-ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.ysr-router-note {
  margin: 18px 0 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgb(var(--n5));
}

/* What every live cohort includes: Fundamentals + AI + Practical + Real-World
 * Project with Internship. These are the cohort USPs, so they sit together
 * under one label beside the cohort cap. Chips pop in one after another,
 * joined by a plus, and the internship, the strongest promise, is filled gold. */
.ysr-router-usp-label {
  margin: 18px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ysr-router-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ysr-router-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--p1), 0.3);
  background: rgba(var(--p1), 0.06);
  color: rgb(var(--n5));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  /* No opacity:0 in the base style. fill-mode "both" hides a chip only while
   * its entrance is pending or running; if the animation never runs at all,
   * the chips are simply visible. A failed effect must mean no effect, never
   * unreadable content. */
  animation: ysr-step-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--s, 0) * 120ms + 150ms);
}

.ysr-router-step i {
  color: rgb(var(--p1));
  font-size: 15px;
}

/* The plus sits in the gap between chips, outside the pills, so it reads as
 * "and" rather than as part of a label, and stays gold against the card even
 * beside the gold internship chip. */
.ysr-router-step + .ysr-router-step::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  color: rgb(var(--p1));
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.ysr-router-step--goal {
  background: rgb(var(--p1));
  border-color: rgb(var(--p1));
  color: #17140a;
  box-shadow: 0 8px 20px rgba(var(--p1), 0.25);
}

.ysr-router-step--goal i {
  color: #17140a;
}

@keyframes ysr-step-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ysr-router-step {
    animation: none;
  }
}

.ysr-router-tracks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ysr-router-tracks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.ysr-router-tracks li:hover {
  transform: translateX(6px);
  border-color: rgba(var(--p1), 0.4);
  background: rgba(var(--p1), 0.07);
}

.ysr-router-track-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--p1), 0.14);
  color: rgb(var(--p1));
  font-size: 20px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.ysr-router-tracks li:hover .ysr-router-track-icon {
  background: rgb(var(--p1));
  color: #17140a;
  transform: rotate(-8deg) scale(1.06);
}

.ysr-router-track-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ysr-router-track-text strong {
  font-size: 15px;
  font-weight: 600;
  color: rgb(var(--n5));
}

.ysr-router-track-text small {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.ysr-router-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ysr-router-cap i {
  color: rgb(var(--p1));
  font-size: 16px;
}

/* CTA: a shine sweeps across on hover and the arrow nudges out. */
.ysr-router-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgb(var(--p1));
  color: #17140a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(var(--p1), 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ysr-router-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.ysr-router-btn i {
  transition: transform 0.25s ease;
}

.ysr-router-btn:hover,
.ysr-router-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(var(--p1), 0.35);
  color: #17140a;
}

.ysr-router-btn:hover::after,
.ysr-router-btn:focus-visible::after {
  left: 120%;
}

.ysr-router-btn:hover i,
.ysr-router-btn:focus-visible i {
  transform: translate(3px, -3px);
}

/* Social buttons — each carries its platform's own colour, so they read as
 * YouTube and Instagram at a glance instead of two grey words. */
.ysr-router-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ysr-social {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgb(var(--n5));
  text-decoration: none;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.ysr-social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  font-size: 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ysr-social--yt .ysr-social-icon {
  background: #ff0033;
}

.ysr-social--ig .ysr-social-icon {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.ysr-social-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.ysr-social-text strong {
  font-size: 14px;
  font-weight: 600;
}

.ysr-social-text small {
  overflow: hidden;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ysr-social-go {
  margin-left: auto;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.ysr-social:hover,
.ysr-social:focus-visible {
  transform: translateY(-3px);
  color: rgb(var(--n5));
}

.ysr-social:hover .ysr-social-icon,
.ysr-social:focus-visible .ysr-social-icon {
  transform: scale(1.12) rotate(-6deg);
}

.ysr-social:hover .ysr-social-go,
.ysr-social:focus-visible .ysr-social-go {
  transform: translate(2px, -2px);
  color: rgb(var(--n5));
}

.ysr-social--yt:hover,
.ysr-social--yt:focus-visible {
  border-color: rgba(255, 0, 51, 0.55);
  background: rgba(255, 0, 51, 0.08);
  box-shadow: 0 12px 26px rgba(255, 0, 51, 0.18);
}

.ysr-social--ig:hover,
.ysr-social--ig:focus-visible {
  border-color: rgba(214, 36, 159, 0.55);
  background: rgba(214, 36, 159, 0.08);
  box-shadow: 0 12px 26px rgba(214, 36, 159, 0.18);
}

@media (max-width: 380px) {
  .ysr-router-social {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ysr-router-card,
  .ysr-router-card::before,
  .ysr-router-glow,
  .ysr-live-dot::after,
  .ysr-router-tracks li,
  .ysr-router-track-icon,
  .ysr-router-btn,
  .ysr-router-btn::after,
  .ysr-router-btn i,
  .ysr-social,
  .ysr-social-icon,
  .ysr-social-go {
    animation: none;
    transition: none;
  }

  .ysr-router-card:hover,
  .ysr-router-tracks li:hover,
  .ysr-router-tracks li:hover .ysr-router-track-icon,
  .ysr-router-btn:hover,
  .ysr-router-btn:hover i,
  .ysr-social:hover,
  .ysr-social:hover .ysr-social-icon,
  .ysr-social:hover .ysr-social-go {
    transform: none;
  }
}

/* Client reviews -------------------------------------------------------------
 * Same duplicated-track loop as the credibility ticker, but only engaged once
 * there are four or more cards — duplicating one or two would read as a bug
 * rather than a loop.
 * ------------------------------------------------------------------------ */

.ysr-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 34px;
}

.ysr-reviews-head h2 {
  max-width: 16ch;
  margin: 0;
}

.ysr-reviews-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 70px,
    #000 calc(100% - 70px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 70px,
    #000 calc(100% - 70px),
    transparent 100%
  );
}

.ysr-reviews-track {
  display: flex;
  width: max-content;
}

.ysr-reviews-viewport.is-scrolling .ysr-reviews-track {
  animation: ysr-reviews-scroll 64s linear infinite;
  will-change: transform;
}

.ysr-reviews-viewport.is-scrolling:hover .ysr-reviews-track {
  animation-play-state: paused;
}

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

.ysr-reviews-group {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

.ysr-review {
  display: flex;
  flex-direction: column;
  width: 330px;
  padding: 24px;
  border-radius: 18px;
  background: rgb(var(--n2));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ysr-review-mark {
  font-size: 22px;
  color: rgba(var(--p1), 0.6);
}

.ysr-review-quote {
  flex: 1 1 auto;
  margin: 12px 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.ysr-review-stars {
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgb(var(--p1));
}

.ysr-review-who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgb(var(--n5));
}

.ysr-review-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* An initial, not a stock face, when the reviewer supplied no photo. */
.ysr-review-initial {
  display: grid;
  place-items: center;
  background: rgba(var(--p1), 0.18);
  border: 1px solid rgba(var(--p1), 0.4);
  color: rgb(var(--p1));
  font-weight: 700;
}

.ysr-review-who strong {
  display: block;
  font-weight: 600;
}

.ysr-review-role {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .ysr-reviews-viewport.is-scrolling .ysr-reviews-track {
    animation: none;
  }

  .ysr-reviews-viewport {
    overflow-x: auto;
  }
}

/* Two actions side by side in the booking panel. */
.ysr-faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ysr-faq-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(23, 20, 10, 0.1);
  border: 1px solid rgba(23, 20, 10, 0.45);
  color: #17140a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.ysr-faq-cta-wa:hover,
.ysr-faq-cta-wa:focus-visible {
  background: rgba(23, 20, 10, 0.2);
  color: #17140a;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .ysr-faq-cta-wa {
    transition: none;
  }

  .ysr-faq-cta-wa:hover {
    transform: none;
  }
}

/* Home FAQs + "still not sure" panel -----------------------------------------
 * Native <details>/<summary>, so it opens with no JavaScript and is keyboard
 * accessible for free. The template's own accordion needs main.js.
 * ------------------------------------------------------------------------ */

.ysr-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

@media (min-width: 992px) {
  .ysr-faq {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
  }
}

.ysr-faq-item {
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgb(var(--n2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease;
}

.ysr-faq-item[open],
.ysr-faq-item:hover {
  border-color: rgba(var(--p1), 0.45);
}

.ysr-faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: rgb(var(--n5));
}

/* Safari draws its own marker unless this is removed. */
.ysr-faq-item summary::-webkit-details-marker {
  display: none;
}

.ysr-faq-num {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: rgba(var(--p1), 0.85);
}

.ysr-faq-q {
  flex: 1 1 auto;
}

.ysr-faq-item summary i {
  flex: 0 0 auto;
  font-size: 18px;
  color: rgb(var(--p1));
  transition: transform 0.25s ease;
}

.ysr-faq-item[open] summary i {
  transform: rotate(45deg);
}

.ysr-faq-a {
  margin: 0;
  padding: 0 20px 18px 52px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.ysr-faq-cta {
  padding: 30px 28px;
  border-radius: 24px;
  background:
    radial-gradient(
      120% 150% at 100% 0%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 55%
    ),
    rgb(var(--p1));
  color: #17140a;
}

@media (min-width: 992px) {
  .ysr-faq-cta {
    position: sticky;
    top: 120px;
  }
}

.ysr-faq-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #17140a;
  margin-bottom: 18px;
}

.ysr-faq-cta-title {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #17140a;
}

.ysr-faq-cta-title span {
  color: #fff;
}

.ysr-faq-cta-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(23, 20, 10, 0.78);
}

/* Gold on the dark button, matching the label. */
.ysr-faq-cta-btn .ysr-plus {
  color: rgb(var(--p1));
}

.ysr-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #17140a;
  color: rgb(var(--p1));
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.ysr-faq-cta-btn:hover,
.ysr-faq-cta-btn:focus-visible {
  transform: translateY(-2px);
  color: rgb(var(--p1));
}

.ysr-faq-cta-mail {
  display: inline-block;
  margin-left: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(23, 20, 10, 0.7);
  text-decoration: underline;
}

.ysr-faq-cta-mail:hover,
.ysr-faq-cta-mail:focus-visible {
  color: #17140a;
}

@media (prefers-reduced-motion: reduce) {
  .ysr-faq-item,
  .ysr-faq-item summary i,
  .ysr-faq-cta-btn {
    transition: none;
  }

  .ysr-faq-cta-btn:hover {
    transform: none;
  }
}

/* Credibility ticker ---------------------------------------------------------
 * Rating and count held still on the left; capability stream moving
 * right-to-left beside it.
 *
 * The loop is seamless because the track contains the SAME group twice and
 * animates to exactly -50% — one group's width — so copy two is already
 * occupying copy one's position when it leaves. Translating a single group to
 * -100% is what produces the snap-back this avoids.
 * ------------------------------------------------------------------------ */

.ysr-ticker {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.ysr-ticker-head {
  flex: 0 0 auto;
  padding-right: 26px;
  /* The gold divider between the fixed half and the moving half. */
  border-right: 1px solid rgba(var(--p1), 0.45);
}

.ysr-ticker-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  /* Items dissolve into both edges instead of being cut off. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 88px,
    #000 calc(100% - 88px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 88px,
    #000 calc(100% - 88px),
    transparent 100%
  );
}

.ysr-ticker-track {
  display: flex;
  /* max-content, or the flex parent shrinks the track and -50% stops being
   * exactly one group. */
  width: max-content;
  animation: ysr-ticker-scroll 46s linear infinite;
  will-change: transform;
}

.ysr-ticker-viewport:hover .ysr-ticker-track {
  animation-play-state: paused;
}

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

.ysr-ticker-group {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ysr-ticker-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 26px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ysr-ticker-item i {
  font-size: 21px;
  color: rgb(var(--p1));
  /* The "very subtle glow". */
  text-shadow: 0 0 14px rgba(var(--p1), 0.45);
}

.ysr-ticker-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ysr-ticker-lead-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgb(var(--p1));
}

.ysr-ticker-caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767.98px) {
  .ysr-ticker {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .ysr-ticker-head {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--p1), 0.35);
  }

  .ysr-ticker-viewport {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 40px,
      #000 calc(100% - 40px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 40px,
      #000 calc(100% - 40px),
      transparent 100%
    );
  }
}

/* Motion off: stop the stream and let the row be scrolled by hand instead, so
 * the content is still reachable rather than frozen mid-sentence. */
@media (prefers-reduced-motion: reduce) {
  .ysr-ticker-track {
    animation: none;
  }

  .ysr-ticker-viewport {
    overflow-x: auto;
  }
}

/* Shared rating + count strip. `band` stands alone on a dark section, `panel`
 * sits inside the gold CTA, so the two only differ in colour. */
.ysr-proofbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ysr-proofbar-stars {
  font-size: 17px;
  letter-spacing: 3px;
}

.ysr-proofbar-count {
  font-size: 15px;
  font-weight: 600;
}

.ysr-proofbar--band .ysr-proofbar-stars {
  color: rgb(var(--p1));
}

.ysr-proofbar--band .ysr-proofbar-count {
  color: rgba(255, 255, 255, 0.75);
}

/* The "bar" variant is the same strip painted on a gold brush stroke that
 * starts off the left edge of the page and runs out just past the text.
 *
 * Three things make it read as a brush rather than a rectangle with a fade:
 *
 *  - it is full-bleed LEFT only (-50vw margin, 50vw padding puts the content
 *    back), so the stroke arrives from off-page instead of starting nowhere;
 *  - the tail is measured in px from the right edge, not in %, because the box
 *    is 50vw wider than it looks and a percentage taper would be spread across
 *    the whole bleed and never be seen;
 *  - the height tapers (clip-path) at the same point the alpha starts falling
 *    (mask), which is what a drying brush actually does. Either one alone reads
 *    as a plain gradient.
 *
 * width:max-content keeps the tail glued to the end of the text, so it still
 * runs out "just after" the count when the number or the label changes — this
 * copy is settings-driven and will change.
 *
 * The -50vw bleed cannot cause a horizontal scrollbar: .main-content clips the
 * x axis. */
.ysr-proofbar--bar {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: max-content;
  /* A flex item in .ysr-reviews-head: auto on the left pins it opposite the
   * heading, and the negative right margin takes it off the page. Its own
   * width stays max-content so the taper keeps its distance from the text. */
  margin: 0 -50vw 0 auto;
  padding: 12px 50vw 12px 150px;
  background: rgb(var(--p1));
  clip-path: polygon(
    150px 0,
    100% 0,
    100% 100%,
    150px 100%,
    0 62%,
    0 38%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    #000 0,
    #000 calc(100% - 145px),
    rgba(0, 0, 0, 0.5) calc(100% - 85px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to left,
    #000 0,
    #000 calc(100% - 145px),
    rgba(0, 0, 0, 0.5) calc(100% - 85px),
    transparent 100%
  );
}

/* One line, always: the bar is sized by its content, so a wrap here would
 * stack "100+ / Happy / Customers" and turn the stroke into a block. */
.ysr-proofbar--bar .ysr-proofbar-stars,
.ysr-proofbar--bar .ysr-proofbar-count {
  white-space: nowrap;
}

.ysr-proofbar--bar .ysr-proofbar-stars,
.ysr-proofbar--bar .ysr-proofbar-count {
  color: #17140a;
}

.ysr-proofbar--bar .ysr-proofbar-count {
  font-size: 16px;
  font-weight: 700;
}

/* Below lg the heading wraps to three lines and there is no room beside it, so
 * the row stacks and the bar leads instead. */
@media (max-width: 991.98px) {
  .ysr-reviews-head {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
  }
}

@media (max-width: 575.98px) {
  /* A shorter tail, or the fade would eat the label itself on a narrow screen. */
  .ysr-proofbar--bar {
    padding-left: 84px;
    clip-path: polygon(84px 0, 100% 0, 100% 100%, 84px 100%, 0 62%, 0 38%);
    -webkit-mask-image: linear-gradient(
      to left,
      #000 0,
      #000 calc(100% - 80px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to left,
      #000 0,
      #000 calc(100% - 80px),
      transparent 100%
    );
  }
}

.ysr-proofbar--panel {
  margin-bottom: 22px;
}

.ysr-proofbar--panel .ysr-proofbar-stars {
  color: #17140a;
}

.ysr-proofbar--panel .ysr-proofbar-count {
  color: rgba(23, 20, 10, 0.82);
}




.ysr-cta-title {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #17140a;
}

.ysr-cta-title-accent {
  color: #fff;
}

.ysr-cta-sub {
  max-width: 46ch;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(23, 20, 10, 0.78);
}

.ysr-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.ysr-cta-primary,
.ysr-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

/* Dark on gold, as the reference does — the panel is already the accent, so a
 * gold button on it would vanish. */
.ysr-cta-primary {
  background: #17140a;
  color: rgb(var(--p1));
}

.ysr-cta-secondary {
  background: rgba(23, 20, 10, 0.1);
  border: 1px solid rgba(23, 20, 10, 0.4);
  color: #17140a;
}

/* Stays black. A gold wave was tried here and was wrong: the panel is already
 * gold, so filling the button with the same gold made it disappear into its own
 * background on hover. The button keeps its dark fill and only the avatars and
 * the lift respond. */
.ysr-cta-primary {
  position: relative;
  overflow: hidden;
}

.ysr-cta-primary .ysr-plus {
  color: rgb(var(--p1));
}

/* "Book now" reads as an action rather than a stray link. */
.ysr-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(var(--p1), 0.14);
  border: 1px solid rgba(var(--p1), 0.45);
  color: rgb(var(--p1)) !important;
  font-size: 15px;
  font-weight: 600;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.ysr-contact-btn:hover,
.ysr-contact-btn:focus-visible {
  background: rgb(var(--p1));
  color: #17140a !important;
  transform: translateY(-2px);
}

/* The button turns gold on hover, so the white + of the you + me reveal would
 * vanish into it. */
.ysr-contact-btn:hover .ysr-plus,
.ysr-contact-btn:focus-visible .ysr-plus {
  color: #17140a;
}

/* One button per column: WhatsApp under Call me, Book 1:1 Meeting under Video
 * call. The label never breaks, so the opened booking button (about 186px to
 * 267px) stays one line tall. */
.ysr-contact-calls {
  display: flex;
  align-items: center;
}

.ysr-contact-calls a {
  flex-shrink: 0;
  white-space: nowrap;
}

.ysr-cta-primary:hover,
.ysr-cta-secondary:hover {
  transform: translateY(-2px);
}

.ysr-cta-secondary:hover {
  background: rgba(23, 20, 10, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .ysr-cta-primary,
  .ysr-cta-secondary,
  .ysr-contact-btn {
    transition: none;
  }

  .ysr-cta-primary:hover,
  .ysr-cta-secondary:hover {
    transform: none;
  }
}

/* /work showcase ---------------------------------------------------------------
 * Filters, a featured project, numbered cards and a gold Request a Quote card.
 * Cards show a real cover image when one is set and a drawn browser frame with
 * the category icon until then.
 *
 * Responsive, per the owner mockups: from 768px the numbered cards sit two to a
 * row with copy left and image right, and the featured card is side by side.
 * Below 768px the grid is one card per row but each card KEEPS its image on the
 * right (trimmed to number, title, tags and View project), and the featured
 * card stacks with its image below the copy. Filters wrap onto rows.
 * ------------------------------------------------------------------------ */

.ysr-wk-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgb(var(--p1));
}

.ysr-wk {
  display: grid;
  gap: 24px;
}

.ysr-wk-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ysr-wk-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgb(var(--n5));
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.ysr-wk-filter:hover,
.ysr-wk-filter:focus-visible {
  border-color: rgba(var(--p1), 0.7);
}

.ysr-wk-filter[aria-pressed="true"] {
  background: rgb(var(--p1));
  border-color: rgb(var(--p1));
  color: #17140a;
}

.ysr-wk-count {
  font-size: 12px;
  opacity: 0.7;
}

.ysr-wk-featured {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgb(var(--n2));
  overflow: hidden;
}

.ysr-wk-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgb(var(--p1));
  color: #17140a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ysr-wk-featured-title {
  margin: 18px 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
}

.ysr-wk-featured-title a,
.ysr-wk-card-title a {
  color: rgb(var(--n5));
  text-decoration: none;
}

.ysr-wk-featured-title a:hover,
.ysr-wk-card-title a:hover,
.ysr-wk-featured-title a:focus-visible,
.ysr-wk-card-title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ysr-wk-client {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgb(var(--p1));
}

.ysr-wk-intro {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.ysr-wk-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(var(--p1), 0.3);
  background: rgba(var(--p1), 0.1);
  color: rgb(var(--p1));
  font-size: 14px;
  line-height: 1.5;
}

.ysr-wk-result i {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 16px;
}

.ysr-wk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ysr-wk-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgb(var(--n5));
  font-size: 13px;
}

.ysr-wk-featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 26px;
}

.ysr-wk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgb(var(--p1));
  color: #17140a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(var(--p1), 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ysr-wk-btn:hover,
.ysr-wk-btn:focus-visible {
  color: #17140a;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(var(--p1), 0.35);
}

.ysr-wk-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--n5));
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ysr-wk-featured-media {
  position: relative;
  padding: 6% 0 6% 6%;
}

/* The slanted gold panel behind the featured image. */
.ysr-wk-featured-media::before {
  content: "";
  position: absolute;
  inset: 0 -40px 0 18%;
  border-radius: 18px;
  background: rgb(var(--p1));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.ysr-wk-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
}

.ysr-wk-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ysr-wk-frame {
  display: flex;
  flex-direction: column;
}

.ysr-wk-frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ysr-wk-frame-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ysr-wk-frame-body {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: radial-gradient(120% 120% at 20% 10%, rgba(var(--p1), 0.18), transparent 60%);
}

.ysr-wk-frame-body i {
  font-size: clamp(34px, 5vw, 72px);
  color: rgb(var(--p1));
  transition: transform 0.4s ease;
}

.ysr-wk-frame-line {
  width: 40%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.ysr-wk-frame-line.is-short {
  width: 26%;
}

.ysr-wk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ysr-wk-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 22px;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgb(var(--n2));
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.ysr-wk-card:hover {
  border-color: rgba(var(--p1), 0.45);
  transform: translateY(-3px);
}

.ysr-wk-card:hover .ysr-wk-media img,
.ysr-wk-card:hover .ysr-wk-frame-body i {
  transform: scale(1.06);
}

.ysr-wk-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ysr-wk-num {
  color: rgb(var(--n5));
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.ysr-wk-eyebrow {
  flex-wrap: wrap;
}

/* A category label never breaks inside a word; at phone width E-commerce was
 * splitting at its hyphen. */
.ysr-wk-cat {
  white-space: nowrap;
}

.ysr-wk-rule {
  flex: 0 0 auto;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.ysr-wk-card-title {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.ysr-wk-card .ysr-wk-tags li {
  padding: 5px 11px;
  font-size: 12px;
}

.ysr-wk-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgb(var(--p1));
  font-weight: 600;
  text-decoration: none;
}

.ysr-wk-more i {
  transition: transform 0.25s ease;
}

.ysr-wk-more:hover,
.ysr-wk-more:focus-visible {
  color: rgb(var(--p1));
}

.ysr-wk-more:hover i,
.ysr-wk-more:focus-visible i {
  transform: translate(2px, -2px);
}

.ysr-wk-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 28px;
  border-radius: 20px;
  background: rgb(var(--p1));
  color: #17140a;
  text-align: center;
}

.ysr-wk-cta-icon {
  font-size: 44px;
}

.ysr-wk-cta h3 {
  margin: 4px 0 0;
  color: #17140a;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
}

.ysr-wk-cta p {
  margin: 0;
  color: rgba(23, 20, 10, 0.8);
}

.ysr-wk-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 26px;
  border-radius: 999px;
  background: #17140a;
  color: rgb(var(--p1));
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.ysr-wk-cta a:hover,
.ysr-wk-cta a:focus-visible {
  color: rgb(var(--p1));
  transform: translateY(-2px);
}

/* Pagination: Previous, page numbers, Next. The current page is filled gold;
 * Previous and Next dim at either end. */
.ysr-wk-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.ysr-wk-pager-pages {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ysr-wk-pager-step,
.ysr-wk-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgb(var(--n5));
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.ysr-wk-pager-step {
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
}

.ysr-wk-pager-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 15px;
}

.ysr-wk-pager-step:hover:not(:disabled),
.ysr-wk-pager-step:focus-visible,
.ysr-wk-pager-num:hover,
.ysr-wk-pager-num:focus-visible {
  border-color: rgba(var(--p1), 0.7);
  color: rgb(var(--p1));
}

.ysr-wk-pager-num[aria-current="page"] {
  background: rgb(var(--p1));
  border-color: rgb(var(--p1));
  color: #17140a;
}

.ysr-wk-pager-step:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 575.98px) {
  .ysr-wk-pager-step {
    padding: 9px 14px;
    font-size: 14px;
  }

  .ysr-wk-pager-num {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ysr-wk-pager-step,
  .ysr-wk-pager-num {
    transition: none;
  }
}

/* Tablet: two cards per row, but each card is narrow, so the copy trims and the
 * image column shrinks. */
@media (max-width: 1199.98px) {
  .ysr-wk-featured {
    gap: 28px;
    padding: 28px;
  }

  .ysr-wk-grid {
    gap: 16px;
  }

  .ysr-wk-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 14px;
    padding: 18px;
  }

  .ysr-wk-card .ysr-wk-intro {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

  .ysr-wk-card .ysr-wk-client {
    font-size: 12px;
  }

  .ysr-wk-card .ysr-wk-tags {
    margin-top: 12px;
    gap: 6px;
  }

  .ysr-wk-card .ysr-wk-tags li {
    padding: 4px 9px;
    font-size: 11px;
  }

  .ysr-wk-more {
    margin-top: 12px;
    font-size: 14px;
  }

  .ysr-wk-eyebrow {
    gap: 8px;
    font-size: 10px;
  }

  .ysr-wk-num {
    font-size: 18px;
  }

  .ysr-wk-rule {
    width: 24px;
  }
}

/* Phone: one card per row, image still on the right; featured stacks with its
 * image below the copy. */
@media (max-width: 767.98px) {
  .ysr-wk-filter {
    padding: 8px 16px;
    font-size: 14px;
  }

  .ysr-wk-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
  }

  .ysr-wk-featured-media::before {
    right: -22px;
  }

  .ysr-wk-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ysr-wk-card .ysr-wk-client,
  .ysr-wk-card .ysr-wk-intro {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ysr-wk-filter,
  .ysr-wk-btn,
  .ysr-wk-card,
  .ysr-wk-media img,
  .ysr-wk-frame-body i,
  .ysr-wk-more i,
  .ysr-wk-cta a {
    transition: none;
  }

  .ysr-wk-card:hover,
  .ysr-wk-btn:hover,
  .ysr-wk-cta a:hover,
  .ysr-wk-card:hover .ysr-wk-media img,
  .ysr-wk-card:hover .ysr-wk-frame-body i {
    transform: none;
  }
}

/* Large, edge-bleeding images, per the owner mockup ---------------------------
 * The image is not an inset thumbnail: on a project card it takes the whole
 * right half and the full card height, running off the right edge; on the
 * featured card it fills the right side and runs off the right and bottom
 * edges over the gold panel. The copy keeps its own padding instead of the
 * card. Placed after the showcase rules (including their media queries) so
 * these win.
 * ------------------------------------------------------------------------ */

.ysr-wk-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.ysr-wk-card-copy {
  padding: 30px 24px 30px 30px;
}

.ysr-wk-card-media {
  position: relative;
  min-height: 240px;
}

.ysr-wk-card-media .ysr-wk-media {
  position: absolute;
  inset: 26px -1px 26px 0;
  aspect-ratio: auto;
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.ysr-wk-card-media .ysr-wk-frame-body i {
  font-size: clamp(48px, 5vw, 84px);
}

.ysr-wk-featured {
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.ysr-wk-featured-copy {
  padding: 44px 32px 44px 44px;
}

.ysr-wk-featured-media {
  min-height: 380px;
  padding: 0;
}

.ysr-wk-featured-media::before {
  inset: 22px -2px -2px 16%;
  border-radius: 20px 0 0 0;
}

.ysr-wk-featured-media .ysr-wk-media {
  position: absolute;
  inset: 56px -2px -2px 6%;
  aspect-ratio: auto;
  border-right: 0;
  border-bottom: 0;
  border-radius: 16px 0 0 0;
}

.ysr-wk-featured-media .ysr-wk-frame-body i {
  font-size: clamp(64px, 7vw, 120px);
}

@media (max-width: 1199.98px) {
  .ysr-wk-card-copy {
    padding: 22px 16px 22px 22px;
  }

  .ysr-wk-card-media {
    min-height: 200px;
  }

  .ysr-wk-card-media .ysr-wk-media {
    inset: 20px -1px 20px 0;
  }

  .ysr-wk-featured-copy {
    padding: 32px 24px 32px 32px;
  }

  .ysr-wk-featured-media {
    min-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .ysr-wk-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .ysr-wk-card-copy {
    padding: 20px 12px 20px 20px;
  }

  .ysr-wk-card-media {
    min-height: 170px;
  }

  .ysr-wk-card-media .ysr-wk-media {
    inset: 16px -1px 16px 0;
    border-radius: 12px 0 0 12px;
  }

  .ysr-wk-card-media .ysr-wk-frame-body i {
    font-size: 40px;
  }

  .ysr-wk-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .ysr-wk-featured-copy {
    padding: 24px 22px 8px;
  }

  .ysr-wk-featured-media {
    order: 0;
    min-height: 230px;
  }

  .ysr-wk-featured-media::before {
    inset: 10px -2px -2px 20%;
    right: -2px;
  }

  .ysr-wk-featured-media .ysr-wk-media {
    inset: 34px -2px -2px 22px;
  }
}

/* Image shape, not stretch -----------------------------------------------------
 * The edge-bleeding images were absolutely positioned to the full card height,
 * so a narrow card whose text wrapped onto many lines turned its image into a
 * tall strip: 170x551 at 1024px, 158x353 at 375px. They now keep a shape (10:9
 * on project cards, 16:11 on the featured card), stay flush to the right edge,
 * and centre beside the copy. The featured image sits at the bottom-right and
 * its gold panel is sized from the image column, so neither can stretch into a
 * tall slab. Card intros clamp to two lines, as in the mockup.
 * ------------------------------------------------------------------------ */

.ysr-wk-card .ysr-wk-intro {
  -webkit-line-clamp: 2;
}

.ysr-wk-card-media {
  align-self: center;
  min-height: 0;
}

.ysr-wk-card-media .ysr-wk-media {
  position: relative;
  inset: auto;
  margin-right: -1px;
  aspect-ratio: 10 / 9;
}

.ysr-wk-featured-media {
  align-self: end;
  min-height: 0;
  margin: 0 -2px -2px 0;
  padding: 40px 0 0 6%;
}

.ysr-wk-featured-media::before {
  inset: 0 0 0 16%;
}

.ysr-wk-featured-media .ysr-wk-media {
  position: relative;
  inset: auto;
  aspect-ratio: 16 / 11;
}

@media (max-width: 1199.98px) {
  .ysr-wk-card-media {
    min-height: 0;
  }

  .ysr-wk-card-media .ysr-wk-media {
    inset: auto;
  }

  .ysr-wk-featured-media {
    min-height: 0;
    padding-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .ysr-wk-card-media {
    min-height: 0;
  }

  .ysr-wk-card-media .ysr-wk-media {
    inset: auto;
  }

  .ysr-wk-featured-media {
    align-self: stretch;
    min-height: 0;
    padding: 26px 0 0 22px;
  }

  .ysr-wk-featured-media::before {
    inset: 0 0 0 20%;
  }

  .ysr-wk-featured-media .ysr-wk-media {
    inset: auto;
  }
}

/* Book 1:1 Meeting in the /work quote card: a dark outline under the filled
 * Request a Quote, filling dark on hover so the you + me reveal (white plus,
 * white You chip) reads against it. Overrides the generic .ysr-wk-cta a rule. */
.ysr-wk-cta a.ysr-wk-cta-book {
  margin-top: 0;
  padding: 11px 24px;
  border: 1.5px solid #17140a;
  background: transparent;
  color: #17140a;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.ysr-wk-cta a.ysr-wk-cta-book:hover,
.ysr-wk-cta a.ysr-wk-cta-book:focus-visible {
  background: #17140a;
  color: rgb(var(--p1));
  transform: translateY(-2px);
}

.ysr-wk-cta a.ysr-wk-cta-book .ysr-plus {
  color: #17140a;
}

.ysr-wk-cta a.ysr-wk-cta-book:hover .ysr-plus,
.ysr-wk-cta a.ysr-wk-cta-book:focus-visible .ysr-plus {
  color: rgb(var(--p1));
}

@media (prefers-reduced-motion: reduce) {
  .ysr-wk-cta a.ysr-wk-cta-book {
    transition: none;
  }

  .ysr-wk-cta a.ysr-wk-cta-book:hover {
    transform: none;
  }
}

/* Space around the image -------------------------------------------------------
 * The owner wants breathing room beside the image, not an image cut off at the
 * card edge. Project-card images sit inside the card with even space on their
 * right, top and bottom and are rounded on all four corners. The featured image
 * keeps space on its right and bottom too, with the gold panel showing behind
 * it. Shape rules (10:9, 16:11) from the block above still apply.
 * ------------------------------------------------------------------------ */

.ysr-wk-card-media {
  padding: 26px 26px 26px 0;
}

.ysr-wk-card-media .ysr-wk-media {
  margin-right: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.ysr-wk-featured-media {
  margin: 0;
  padding: 44px 40px 40px 6%;
}

.ysr-wk-featured-media::before {
  inset: 22px 20px 20px 16%;
  border-radius: 20px;
}

.ysr-wk-featured-media .ysr-wk-media {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

@media (max-width: 1199.98px) {
  .ysr-wk-card-media {
    padding: 20px 20px 20px 0;
  }

  .ysr-wk-featured-media {
    padding: 34px 28px 28px 6%;
  }

  .ysr-wk-featured-media::before {
    inset: 16px 14px 14px 16%;
  }
}

@media (max-width: 767.98px) {
  .ysr-wk-card-media {
    padding: 16px 16px 16px 0;
  }

  .ysr-wk-card-media .ysr-wk-media {
    border-radius: 12px;
  }

  .ysr-wk-featured-media {
    padding: 26px 22px 22px 22px;
  }

  .ysr-wk-featured-media::before {
    inset: 12px 10px 10px 30%;
  }
}

/* "My Latest Work": the handwritten note from the mockup, above the featured
 * card top-right corner with its arrow pointing down at the card. Decorative.
 * Shown from 1400px only, in its own 56px gap above the card, so it can never
 * sit on the filter pills: at 1400 and 1200 it covered "Mobile apps", and at
 * 1200 the page is still wider than the window (side-menu offset). */
.ysr-wk-featured-wrap {
  position: relative;
}

.ysr-wk-note {
  position: absolute;
  top: -78px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  color: rgb(var(--n5));
  pointer-events: none;
  transform: rotate(-8deg);
  transform-origin: bottom right;
}

.ysr-wk-note-text {
  font-family: var(--ysr-font-hand), "Segoe Print", "Bradley Hand", cursive;
  font-size: 30px;
  font-weight: 600;
  line-height: 0.95;
  text-align: right;
}

.ysr-wk-note-arrow {
  width: 38px;
  height: 46px;
  margin-bottom: -30px;
  color: rgb(var(--p1));
}

@media (max-width: 1399.98px) {
  .ysr-wk-note {
    display: none;
  }
}

@media (min-width: 1400px) {
  .ysr-wk-featured-wrap {
    margin-top: 56px;
  }
}

/* Request a Quote and friends ------------------------------------------------
 * Four placements: the /work hero row, the gold "Like what you see?" panel
 * (actions now wrap, three buttons), the "Still not sure?" panel top row, and
 * the contact heading row.
 * ------------------------------------------------------------------------ */

/* Two lines: View Portfolio and Request a Quote, then Book 1:1 Meeting alone,
 * so its hover reveal can widen it without wrapping it away from the pointer. */
.ysr-fp-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}

/* 20px across: the gold button glow spreads about 14px, so a 12px gap read as
 * the two buttons touching. */
.ysr-fp-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.ysr-start-btn {
  padding: 11px 20px;
  font-size: 15px;
}

.ysr-work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
}

.ysr-cta-actions {
  flex-wrap: wrap;
}

/* Photo left, quote button right, one row. */
.ysr-faq-cta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ysr-faq-cta-top .ysr-faq-avatar {
  margin: 0;
}

/* Dark outline on the gold panel, filling dark on hover. */
.ysr-faq-cta-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 20, 10, 0.4);
  background: rgba(23, 20, 10, 0.08);
  color: #17140a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.ysr-faq-cta-quote:hover,
.ysr-faq-cta-quote:focus-visible {
  background: #17140a;
  color: rgb(var(--p1));
  transform: translateY(-2px);
}

/* Heading left, quote button right; wraps under the heading when narrow. */
.ysr-contact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}

.ysr-contact-quote,
.ysr-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgb(var(--p1));
  color: #17140a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(var(--p1), 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ysr-contact-quote:hover,
.ysr-contact-quote:focus-visible,
.ysr-start-btn:hover,
.ysr-start-btn:focus-visible {
  color: #17140a;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(var(--p1), 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .ysr-faq-cta-quote,
  .ysr-contact-quote,
  .ysr-start-btn {
    transition: none;
  }

  .ysr-faq-cta-quote:hover,
  .ysr-contact-quote:hover,
  .ysr-start-btn:hover {
    transform: none;
  }
}

/* /hire: country code beside the number ---------------------------------------
 * The select takes only the width its longest option needs; the number takes
 * the rest. Stacks on very narrow phones so neither control is cramped.
 * ------------------------------------------------------------------------ */
.hire-phone {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 10px;
}

@media (max-width: 380px) {
  .hire-phone {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ysr-contact {
  margin-top: clamp(48px, 7vw, 96px);
}

.ysr-contact-title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: rgb(var(--n5));
}

.ysr-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 40px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Email | Call me | Video call | Social.
 *
 * Desktop: every column is only as wide as its content and the free space is
 * spread between them, so Social lands on the right edge under Request a
 * Quote. Video call is held at 280px minimum, wider than the opened booking
 * button (267px): a column that grew as the reveal opened would re-spread the
 * columns, move the button under the pointer and flicker.
 *
 * From 1200px only: the four columns need about 964px with their gaps, and at
 * 1100px they ran past the right edge of the grid. Below that, two columns
 * (each wide enough for the opened button), and one on small phones. */
@media (min-width: 1200px) {
  .ysr-contact-grid {
    grid-template-columns: max-content max-content minmax(280px, max-content) max-content;
    justify-content: space-between;
    column-gap: clamp(32px, 4vw, 72px);
  }
}

@media (max-width: 1199.98px) {
  .ysr-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ysr-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ysr-contact-grid dt {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.ysr-contact-grid dd {
  margin: 0;
  font-size: 17px;
  color: rgb(var(--n5));
}

.ysr-contact-grid dd a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.ysr-contact-grid dd a:hover,
.ysr-contact-grid dd a:focus-visible {
  color: rgb(var(--p1));
}

.ysr-contact-social {
  display: flex;
  gap: 10px;
}

.ysr-contact-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--p1), 0.16);
  border: 1px solid rgba(var(--p1), 0.4);
  color: rgb(var(--p1));
  font-size: 17px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.ysr-contact-social a:hover,
.ysr-contact-social a:focus-visible {
  background: rgb(var(--p1));
  color: #17140a;
}

/* Featured projects — sticky heading, stacking cards ------------------------
 * Each card is `position: sticky` at a top offset stepped by its index, so it
 * comes to rest just below the previous one and the next slides over the top.
 * Pure CSS: no scroll listener, nothing on the main thread.
 *
 * Cards need an OPAQUE background for this to read — a translucent one would
 * show the card beneath through it and the stack would look like a mistake.
 * ------------------------------------------------------------------------ */

.ysr-fp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .ysr-fp {
    /* 4:8 rather than 5:7 — the cards now carry an image beside the copy and
     * need the width more than the heading does. */
    grid-template-columns: 4fr 8fr;
    gap: 48px;
    align-items: start;
  }

  /* Holds the heading in view while the cards travel past it. */
  .ysr-fp-aside {
    position: sticky;
    top: 120px;
  }
}

.ysr-fp-stack {
  display: flex;
  flex-direction: column;
  /* The gap only shows while the cards are in normal flow — once they stack,
   * each card's sticky offset decides the spacing instead. So it costs the
   * stack nothing and stops the column reading as one welded slab. */
  gap: 20px;
  /* A sticky element can never be pushed past its container's padding box, and
   * the last card's flow bottom WAS that edge — so the last card could not
   * stick at all. It scrolled up over cards that were still pinned, which is
   * why the end of the section showed two meta rows at once: the front card's
   * own, and 40-50px of the card behind it instead of the 18px step.
   *
   * This tail gives the last card somewhere to stick. Every card now holds its
   * offset while the tail scrolls past, so the section settles into one clean
   * stack — five cards, 18px apart, nothing but padding visible behind each. */
  padding-bottom: 32vh;
}

/* Each card rests 18px lower than the one before it AND is 18px shorter, so
 * every card in the deck ends on the same line.
 *
 * That is not decoration. A sticky element is released the moment its own
 * bottom reaches the container's padding box, so release depends on height —
 * and the cards ran 301px to 387px. They were released 92px of scroll apart,
 * in an order set by nothing but how long each intro happened to be, and
 * crossed over each other on the way out: measured tops of 54/114/132/103/103,
 * one card 29px ABOVE the card that should sit in front of it. Matching the
 * height step to the offset step puts every release at the same scroll
 * position, so the deck leaves as one piece.
 *
 * min-height rather than height: a card whose content outgrows it should get
 * taller, not clip. Content is bounded — the intro is clamped to four lines —
 * so in practice every card takes the stated height. */
.ysr-fp-card {
  position: sticky;
  top: calc(96px + var(--i) * 18px);
  display: grid;
  grid-template-columns: clamp(180px, 32%, 280px) minmax(0, 1fr);
  align-items: stretch;
  gap: 30px;
  /* 33rem: sized from the tallest measured card plus its step (434px + 4 x 18px
   * = 506px), with the Technology / Description / Result labels and the Read more
   * floor included. Re-measure every breakpoint when anything is added to a card. */
  min-height: calc(33rem - var(--i) * 18px);
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgb(var(--n2));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

/* The copy column is its own flex column, so the tag row can sit on the card's
 * floor and the extra height reads as breathing room rather than a gap. */
.ysr-fp-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Left column: the square, and the stack it was built with underneath. */
.ysr-fp-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ysr-fp-card .ysr-fp-side .ysr-fp-tags {
  margin: 0;
  padding-right: 0;
}

.ysr-fp-go i {
  font-size: 15px;
}

/* Section labels — Technology, Description, Result. They name what each block
 * is, so a buyer skimming five cards reads the same three answers in the same
 * place on every one, and the words sit in the page as plain crawlable text. */
.ysr-fp-label {
  margin: 16px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.ysr-fp-side .ysr-fp-label {
  margin: 0 0 -8px;
}

.ysr-fp-card.is-accent .ysr-fp-label {
  color: rgba(23, 20, 10, 0.55);
}

.ysr-fp-card .ysr-fp-body .ysr-fp-outcome {
  margin-top: 0;
}

/* Keep the copy clear of the Read more pill in the bottom-right corner. */
.ysr-fp-body {
  padding-bottom: 46px;
}

/* The rounded square. aspect-ratio holds it square at any column width. */
.ysr-fp-media {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.ysr-fp-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Zoom the picture, never the card: the reveal already animates the card's
 * transform, and a second one would fight it mid-transition. */
.ysr-fp-card:hover .ysr-fp-media img {
  transform: scale(1.05);
}

/* Placeholder until a real cover image is set: the category icon on a quiet
 * gradient, inverted on the gold card so it never disappears into it. */
.ysr-fp-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(var(--p1), 0.28), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

.ysr-fp-tile i {
  font-size: clamp(56px, 6vw, 84px);
  color: rgb(var(--p1));
  transition: transform 0.5s ease;
}

.ysr-fp-card:hover .ysr-fp-tile i {
  transform: scale(1.08);
}

.ysr-fp-card.is-accent .ysr-fp-media {
  background: rgba(23, 20, 10, 0.2);
}

.ysr-fp-card.is-accent .ysr-fp-tile {
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(145deg, rgba(23, 20, 10, 0.12), rgba(23, 20, 10, 0.3));
  border-color: rgba(23, 20, 10, 0.18);
}

.ysr-fp-card.is-accent .ysr-fp-tile i {
  color: #17140a;
}

/* Alternating, like the reference — one card in the brand colour breaks up a
 * column that would otherwise read as one long slab. */
.ysr-fp-card.is-accent {
  background: rgb(var(--p1));
  border-color: rgb(var(--p1));
  color: #17140a;
}

.ysr-fp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* The platform tag, pinned to the top-right corner opposite the arrow — the
 * first thing a new visitor uses to decide whether this project is anything
 * like their problem. */
.ysr-fp-badge {
  /* Pushed to the right edge of the meta row rather than absolutely positioned.
   * Absolute needed a reserved padding-right, and any status longer than the
   * guess ran straight under the tag — "Live in production" already did. In
   * flow, the row simply cannot overlap itself. */
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--p1), 0.16);
  border: 1px solid rgba(var(--p1), 0.4);
  color: rgb(var(--p1));
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ysr-fp-card.is-accent .ysr-fp-badge {
  background: rgba(23, 20, 10, 0.14);
  border-color: rgba(23, 20, 10, 0.35);
  color: #17140a;
}

.ysr-fp-status {
  opacity: 0.85;
}

/* A confirmed outcome is the strongest thing on the card, so it is pulled out
 * of the body copy and given the accent. */
.ysr-fp-outcome {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgb(var(--p1));
}

.ysr-fp-outcome i {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 16px;
}

.ysr-fp-card.is-accent .ysr-fp-outcome {
  color: #17140a;
  font-weight: 500;
}

/* The arrow, bottom-right. Dark at rest, brand gold once the pointer is
 * anywhere on the card — the card is one big link, so the affordance responds
 * to the card rather than to itself. */
.ysr-fp-go {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
}

.ysr-fp-card:hover .ysr-fp-go,
.ysr-fp-card:has(a:focus-visible) .ysr-fp-go {
  background: rgb(var(--p1));
  border-color: rgb(var(--p1));
  color: #17140a;
  transform: translate(2px, -2px);
}

.ysr-fp-card.is-accent .ysr-fp-go {
  background: rgba(23, 20, 10, 0.18);
  border-color: rgba(23, 20, 10, 0.3);
  color: #17140a;
}

/* On the gold card the arrow inverts the other way — dark fill, gold glyph. */
.ysr-fp-card.is-accent:hover .ysr-fp-go,
.ysr-fp-card.is-accent:has(a:focus-visible) .ysr-fp-go {
  background: #17140a;
  border-color: #17140a;
  color: rgb(var(--p1));
}

/* Room for the arrow so it never collides with the tag row. */
.ysr-fp-tags {
  padding-right: 46px;
}

.ysr-fp-card.is-accent .ysr-fp-meta {
  color: rgba(23, 20, 10, 0.7);
}

.ysr-fp-title {
  margin: 10px 0 4px;
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600;
  line-height: 1.2;
}

.ysr-fp-title a {
  color: rgb(var(--n5));
  text-decoration: none;
}

.ysr-fp-card.is-accent .ysr-fp-title a {
  color: #17140a;
}

.ysr-fp-title a:hover,
.ysr-fp-title a:focus-visible {
  text-decoration: underline;
}

/* Whole card clickable, via the stretched-link pattern: the real <a> stays on
 * the title, so the link still has meaningful text for a screen reader and for
 * search, and this overlay simply extends its hit area across the card. The
 * card is `position: sticky`, which is positioned, so `inset: 0` resolves
 * against it. Better than wrapping the card in an <a>, which would swallow the
 * heading and make the link's accessible name the entire card's text. */
.ysr-fp-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.ysr-fp-card {
  cursor: pointer;
}

/* Deliberately no transform on hover: the reveal already animates transform,
 * and a second one would fight it mid-transition. Border and shadow only. */
.ysr-fp-card:hover {
  border-color: rgba(var(--p1), 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.ysr-fp-card.is-accent:hover {
  border-color: rgba(23, 20, 10, 0.45);
}

/* Keyboard users get the same outline the card would show on click. */
.ysr-fp-card:has(a:focus-visible) {
  outline: 2px solid rgb(var(--p1));
  outline-offset: 3px;
}

.ysr-fp-client {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(var(--p1), 1);
}

/* The label sits back so the client itself reads first — it is a prefix, not
 * the content. */
.ysr-fp-client-label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.ysr-fp-card.is-accent .ysr-fp-client-label {
  color: rgba(23, 20, 10, 0.55);
}

.ysr-fp-card.is-accent .ysr-fp-client {
  color: rgba(23, 20, 10, 0.75);
}

.ysr-fp-card .ysr-fp-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  /* The intros run long. Four lines is enough to judge whether to click. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ysr-fp-card.is-accent .ysr-fp-intro {
  color: rgba(23, 20, 10, 0.82);
}

.ysr-fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ysr-fp-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
}

.ysr-fp-card.is-accent .ysr-fp-tags li {
  border-color: rgba(23, 20, 10, 0.35);
  color: #17140a;
}

/* Mobile keeps the stacking — the reference does, and the intro clamp keeps a
 * card short enough to come fully to rest in a phone viewport. Only the offsets
 * tighten: there is far less vertical room to spend on the step. */
@media (max-width: 991.98px) {
  .ysr-fp-card {
    top: calc(72px + var(--i) * 12px);
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    min-height: calc(31rem - var(--i) * 12px);
    padding: 22px 20px;
  }

  .ysr-fp-stack {
    gap: 14px;
    padding-bottom: 22vh;
  }
}

@media (max-width: 767.98px) {
  /* On a phone the stepped height only holds if a card's height is bounded by
   * the CSS rather than by how long its copy happens to be. Stacked above the
   * copy, the square pushed cards to 472-589px against targets of 448-496px,
   * the last card never joined the deck (a 505px step instead of 12px), and
   * the crossing came back.
   *
   * So: the body's children join the card grid (display: contents), the square
   * shrinks to sit beside the status row, and every text block is clamped —
   * title 2 lines, client 1, intro 3, outcome 2, tags one row. With nothing
   * unbounded left, one min-height can cover every card. */
  .ysr-fp-card {
    grid-template-columns: 64px minmax(0, 1fr);
    align-content: start;
    column-gap: 14px;
    row-gap: 0;
    min-height: calc(34rem - var(--i) * 12px);
  }

  .ysr-fp-side,
  .ysr-fp-body {
    display: contents;
  }

  .ysr-fp-media {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    border-radius: 14px;
  }

  .ysr-fp-tile i {
    font-size: 30px;
  }

  .ysr-fp-meta {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }

  .ysr-fp-title,
  .ysr-fp-client,
  .ysr-fp-card .ysr-fp-intro,
  .ysr-fp-outcome,
  .ysr-fp-card .ysr-fp-tags {
    grid-column: 1 / -1;
  }

  .ysr-fp-title {
    margin-top: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ysr-fp-client {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ysr-fp-card .ysr-fp-intro {
    -webkit-line-clamp: 3;
  }

  .ysr-fp-outcome span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* One row of tags; the rest fade out under the arrow instead of wrapping and
   * adding a row to just this card. */
  .ysr-fp-label {
    grid-column: 1 / -1;
    margin: 12px 0 4px;
    font-size: 10px;
  }

  .ysr-fp-side .ysr-fp-label {
    order: 10;
    margin: 14px 0 4px;
  }

  .ysr-fp-body {
    padding-bottom: 0;
  }

  /* On a phone the pill needs its own floor; nothing may run under it. */
  .ysr-fp-card {
    padding-bottom: 72px;
  }

  .ysr-fp-card .ysr-fp-side .ysr-fp-tags {
    order: 11;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-top: 0;
    padding-right: 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
  }

  .ysr-fp-card .ysr-fp-side .ysr-fp-tags li {
    flex: 0 0 auto;
    padding: 5px 11px;
    font-size: 12px;
  }

  /* Type scaled for a phone. At desktop sizes the status row broke onto two
   * lines ("LIVE IN / PRODUCTION", "INTERNAL / TOOL"), so the row is held to
   * one line and everything below steps down with it. */
  .ysr-fp-meta {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .ysr-fp-badge {
    flex: 0 0 auto;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  /* At 360px "LIVE IN PRODUCTION" beside the badge pushed the badge 63px past
   * the card's edge. The status truncates; the badge never moves. */
  .ysr-fp-status {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ysr-fp-title {
    font-size: 20px;
    line-height: 1.25;
  }

  .ysr-fp-client {
    font-size: 13px;
  }

  .ysr-fp-card .ysr-fp-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  .ysr-fp-outcome {
    font-size: 13px;
  }

  .ysr-fp-outcome i {
    font-size: 15px;
  }
}

/* Each card resolves from blurred to sharp as it comes up the stack, so only
 * the one at the top reads as current and the rest recede.
 *
 * The blurred state hangs off `.ysr-reveal-ready`, a class the component adds
 * on mount, so without JavaScript the cards render sharp instead of being
 * stuck blurred. The failure mode has to be "no effect", never "unreadable".
 * ------------------------------------------------------------------------ */

/* Opacity and blur ONLY — never scale, never rotate.
 *
 * The resting state used to be scale(0.94) rotate(-2deg), and that is what
 * broke the end of the stack. Each card rests 18px below the one in front, so
 * only an 18px strip of it should ever show; a 2 degree tilt on a 723px card
 * lifts a corner about 12px and the 6% scale narrows it by 42px, so the cards
 * behind poked out at a slant, at the wrong width, with their meta rows
 * readable. Measured at the bottom of the stack: tops at 96/111/129/159 instead
 * of the intended 96/114/132/150, and widths 689-692 against the card in
 * front's 723.
 *
 * A transform that changes a card's silhouette can always leak out from behind
 * the one in front. Opacity and blur cannot, because the box never moves.
 *
 * The resting state is also deliberately mild. A card that never receives
 * .is-in — the observer is asynchronous, and a background tab can stop
 * delivering entirely — has to look like a card behind glass, not like a
 * rendering fault.
 *
 * Driven by IntersectionObserver (see StackReveal), NOT by
 * 'animation-timeline: view()'. That was tried first and does not work on this
 * page at all: the animation attaches with a real ViewTimeline and a running
 * playState, but currentTime stays null for every element — even a bare probe
 * appended straight to <body>. */
.ysr-reveal-ready .ysr-fp-card {
  opacity: 0.5;
  filter: blur(5px);
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}

.ysr-reveal-ready .ysr-fp-card.is-in {
  opacity: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .ysr-reveal-ready .ysr-fp-card {
    opacity: 1;
    filter: none;
    transition: none;
  }
}

/* A card taller than the viewport can never fully stick — it would scroll under
 * the one above with its bottom still cut off. Dropping to static is correct
 * there rather than stacking something that cannot rest. */
@media (max-width: 991.98px) and (max-height: 560px) {
  .ysr-fp-card {
    position: static;
    /* Nothing stacks, so the stepped height would only make card 0 tallest for
     * no reason. */
    min-height: 0;
  }

  /* Nothing sticks here, so the tail would only be dead space. */
  .ysr-fp-stack {
    padding-bottom: 0;
  }
}

/* Service cards -----------------------------------------------------------
 * Measured before changing anything: the seven cards ran 407px to 496px, an
 * 89px spread, and three of the seven dropped their logos straight into the
 * card with no flex wrapper, so those had no gap between them. The logos
 * themselves are already a uniform 28x28 — only the spacing was wrong.
 * ------------------------------------------------------------------------ */

/* The column is already a stretched flex item, so 100% here is enough to level
 * every card in a row. Deliberately NOT `display: flex` on the card: three of
 * them have bare <img> children that would become column flex items and stack
 * vertically.
 *
 * The gold flood is the Uiverse "ag-courses" effect, adapted:
 *  - `rgb(var(--p1))` rather than a hard-coded #f9b234, so it tracks the brand
 *    token like everything else here.
 *  - 20px radius, not the reference's 28px, so it sits with the 18px stat cards
 *    instead of reading as a different design language on the same page.
 *  - transitions name `transform` and `color`, not `all` — `all` animates
 *    every property that happens to change, including layout ones.
 *  - `isolation: isolate` so the negative-z circle is contained. A z-index:-1
 *    child paints above its parent's background but below its text, which is
 *    exactly what this needs — without the stacking context it can escape
 *    behind the section instead. */
.service-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  /* The template's own card grey (--n2 resolves to 79,79,79 under .dark), not
   * the reference's #121212: that is darker than the page's own #292929, so the
   * cards read as holes punched in the section rather than panels sitting on
   * it. Using the token also keeps them in step with the rest of the theme. */
  background-color: rgb(var(--n2));
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition:
    border-color 0.4s ease,
    transform 0.4s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -75px;
  right: -75px;
  width: 100px;
  height: 130px;
  border-radius: 50%;
  background: rgb(var(--p1));
  transform: scale(1);
  transition: transform 0.5s ease;
}

.service-card:hover {
  background-color: rgb(var(--n2));
  border-color: rgb(var(--p1));
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.service-card:hover::after {
  transform: scale(10);
}

/* Text inverts once the gold has flooded. Near-black on the brand gold is a
 * ~10:1 contrast ratio, comfortably past AA. */
.service-card h4,
.service-card p {
  position: relative;
  transition: color 0.4s ease;
}

.service-card:hover h4,
.service-card:hover p {
  color: #17140a;
}

/* Each logo gets its own dark tile. Without this the flood puts white and
 * yellow marks — Apple, Next.js, the JS badge — onto gold, where they
 * effectively disappear. The tile also gives the row a deliberate rhythm. */
/* Tinted down from the card rather than a flat near-black, so the tiles read
   * as part of the panel at rest and still hold the logos once gold floods. */
.service-icon {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: 9px;
  box-sizing: content-box;
}

/* A circle growing to ten times its size is a lot of motion; the colour change
 * carries the same meaning without it. */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::after,
  .service-card h4,
  .service-card p {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}

/* Matches the `gap-3` wrapper the other four cards use, so both markup shapes
 * space identically. 12px, not 16px: this Bootstrap build sets `.gap-3` to
 * 0.75rem rather than the stock 1rem — measured, not assumed. */
.service-card > .service-icon + .service-icon {
  margin-left: 12px;
}

/* Guards against a logo with a different intrinsic size being dropped in
 * later — the row keeps its rhythm instead of one card growing a taller icon
 * strip than its neighbours. */
.service-icon {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Hero stats band ---------------------------------------------------------
 * Replaces the old inline `.banner-counter` row: one feature card carrying the
 * headline number, and a 2x2 grid of supporting stats. Every figure here is
 * evidenceable — see the credentials line in the hero and the JSON-LD graph.
 * ------------------------------------------------------------------------ */

/* The travelling golden ring.
 * A conic gradient on an oversized square pseudo-element, rotated by transform
 * and clipped to the card by `overflow: hidden`. The 2px of padding on the
 * wrapper is what the ring shows through, so it reads as a moving border.
 * Deliberately NOT the `@property --angle` technique: that degrades to a dead
 * static ring wherever @property is unsupported, whereas a transform rotation
 * animates everywhere. */
.ysr-ring {
  position: relative;
  padding: 2px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}

.ysr-ring::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  /* Square, and wide enough that its inscribed circle still covers the card's
   * corners at every breakpoint — portrait on mobile, landscape on desktop. */
  width: 180%;
  aspect-ratio: 1 / 1;
  background: conic-gradient(
    from 0deg,
    rgba(var(--p1), 0) 0deg,
    rgba(var(--p1), 0) 200deg,
    rgba(var(--p1), 0.14) 252deg,
    rgba(var(--p1), 0.9) 300deg,
    #fff4d2 318deg,
    rgba(var(--p1), 0.9) 336deg,
    rgba(var(--p1), 0) 360deg
  );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: ysr-ring-spin 4.5s linear infinite;
  will-change: transform;
}

@keyframes ysr-ring-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Sits above the ring and masks all but the 2px edge. */
.ysr-ring-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 20px;
}

.ysr-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 34px 32px;
  background:
    radial-gradient(
      118% 140% at 0% 0%,
      rgba(var(--p1), 0.2) 0%,
      rgba(var(--p1), 0.05) 40%,
      rgba(var(--p1), 0) 72%
    ),
    #2f2f2f;
}

.ysr-feature-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ysr-feature-num {
  font-size: clamp(64px, 8.5vw, 108px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: rgb(var(--p1));
}

.ysr-feature-label {
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.14;
  color: #fff;
}

.ysr-feature-text {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.ysr-stat {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.ysr-stat:hover {
  border-color: rgba(var(--p1), 0.45);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.ysr-stat-num {
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

/* The template's `span, label, li { font-size: 16px }` (style.css:154) matches
 * the inner `.counter` span DIRECTLY, and a directly-matching element rule always
 * beats an inherited value — so a number sat at 16px inside a 104px parent. The
 * count-up markup puts the digits in that nested span, so inheritance has to be
 * restored explicitly rather than relying on it. */
.ysr-feature-num .counter,
.ysr-stat-num .counter {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.ysr-stat-label {
  max-width: 24ch;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 575.98px) {
  .ysr-feature {
    padding: 26px 22px;
  }

  .ysr-stat {
    padding: 20px 14px;
  }
}

/* A ring orbiting forever is exactly the motion this opts out of. Falls back to
 * a flat gold border rather than a frozen, lopsided arc. */
@media (prefers-reduced-motion: reduce) {
  .ysr-ring::before {
    animation: none;
    background: rgba(var(--p1), 0.5);
  }

  .ysr-stat {
    transition: none;
  }

  .ysr-stat:hover {
    transform: none;
  }
}

/* Pricing cards: equal height, and the home service-card hover -----------------
 * The three packages on /services have different amounts of copy, so the cards
 * ended at different heights and their buttons sat at three different levels.
 * Each card now fills its row and the button is pushed to the bottom, so all
 * three buttons line up. The hover is the same gold flood as the home service
 * cards: a gold circle grows from the top-right corner and the text turns
 * near-black. The template's scale(1.05) is replaced by the same small lift,
 * because scaling pushed a card over its neighbours.
 * ------------------------------------------------------------------------ */

.pricing-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition:
    border-color 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.pricing-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -75px;
  right: -75px;
  width: 100px;
  height: 130px;
  border-radius: 50%;
  background: rgb(var(--p1));
  transform: scale(1);
  transition: transform 0.5s ease;
}

.pricing-card:hover {
  border-color: rgb(var(--p1));
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pricing-card:hover::after {
  transform: scale(14);
}

/* Button to the bottom of the card, keeping the same space above it. */
.pricing-card > .primary-btn {
  margin-top: auto !important;
}

.pricing-card > :nth-last-child(2) {
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  .pricing-card > :nth-last-child(2) {
    padding-bottom: 40px;
  }
}

/* Text inverts once the gold has flooded. */
.pricing-card .n5-color,
.pricing-card .n4-color,
.pricing-card .p1-color {
  transition: color 0.4s ease;
}

.pricing-card:hover .n5-color,
.pricing-card:hover .n4-color,
.pricing-card:hover .p1-color {
  color: #17140a;
}

.pricing-card .line-divider {
  transition: background-color 0.4s ease;
}

.pricing-card:hover .line-divider {
  background-color: rgba(23, 20, 10, 0.2);
}

/* A gold badge and a gold button would vanish on gold: both go dark. */
.pricing-card .popular-price {
  transition: background-color 0.4s ease;
}

.pricing-card .popular-price span {
  transition: color 0.4s ease;
}

.pricing-card:hover .popular-price {
  background-color: #17140a;
}

.pricing-card:hover .popular-price span {
  color: rgb(var(--p1));
}

.pricing-card:hover .primary-btn {
  background: #17140a;
  color: rgb(var(--p1));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .pricing-card::after,
  .pricing-card .n5-color,
  .pricing-card .n4-color,
  .pricing-card .p1-color,
  .pricing-card .line-divider,
  .pricing-card .popular-price,
  .pricing-card .popular-price span {
    transition: none;
  }

  .pricing-card:hover {
    transform: none;
  }
}

/* Blog listing (/blog) -----------------------------------------------------------
 * The owner's mockup: heading with a handwritten note, topic pills beside the
 * search box, a featured post, article cards and a sidebar. Pills, the Featured
 * badge and the gold button reuse the /work classes so both pages match.
 *
 * Breakpoints are container queries on the page's own width, not the viewport:
 * the fixed side menu takes a different share of the screen at each size, so a
 * viewport query would switch to two columns while the content area was still
 * too narrow for them.
 * ------------------------------------------------------------------------ */

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

/* The template sizes a, span, li and `h2 > a` / `h3 > a` directly (16px, and
 * 32-40px on heading links), so text inside these elements ignored the sizes
 * set on them: card titles rendered at 32px instead of 18px and the meta line
 * at 16px. Everything inside the blog layout takes its size from its parent. */
.ysr-bl-card-title a,
.ysr-bl-featured-title a {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.ysr-bl-meta span,
.ysr-bl-meta time,
.ysr-bl-featured-meta li,
.ysr-bl-topic-label,
.ysr-bl-textbtn,
.ysr-bl-empty p {
  font-size: inherit;
}

/* Heading ------------------------------------------------------------------ */

.ysr-bl-headwrap {
  container: blhead / inline-size;
  margin-bottom: 36px;
}

.ysr-bl-head {
  position: relative;
  display: grid;
  gap: 16px;
}

.ysr-bl-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  color: rgb(var(--n5));
}

.ysr-bl-lead {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.ysr-bl-note {
  display: none;
}

/* The note is one SVG: each word tilted on its own and stepped down to the
 * right, Share in gold, and a long thin arrow curving back to the left, as in
 * the mockup. Sized from the header's own width (cqi), so it stays in
 * proportion to the heading beside it. Overflow is visible because the tilted
 * words rise a little past the top of the drawing. */
@container blhead (min-width: 860px) {
  .ysr-bl-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .ysr-bl-note {
    display: block;
    width: clamp(200px, 17cqi, 270px);
    height: auto;
    margin: 12px 3% 0 0;
    overflow: visible;
    color: rgb(var(--n5));
    pointer-events: none;
    user-select: none;
  }

  .ysr-bl-note-words {
    font-family: var(--ysr-font-hand), cursive;
    font-size: 46px;
    font-weight: 500;
    letter-spacing: 0.5px;
    fill: currentColor;
  }

  .ysr-bl-note-gold {
    fill: rgb(var(--p1));
  }

  .ysr-bl-note-arrow {
    fill: none;
    stroke: rgb(var(--p1));
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* Layout ------------------------------------------------------------------- */

.ysr-bl-wrap {
  container: bl / inline-size;
}

.ysr-bl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "search"
    "filters"
    "main"
    "rest"
    "pager"
    "side";
  gap: 24px;
}

.ysr-bl-filters {
  grid-area: filters;
}

.ysr-bl-search {
  grid-area: search;
}

.ysr-bl-main {
  grid-area: main;
  container: blmain / inline-size;
  min-width: 0;
}

.ysr-bl-side {
  grid-area: side;
  display: grid;
  gap: 20px;
  align-content: start;
}

@container bl (min-width: 1000px) {
  .ysr-bl {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
      "filters search"
      "main side"
      "rest rest"
      "pager pager";
    column-gap: 28px;
    align-items: start;
  }

  .ysr-bl-filters {
    align-self: center;
  }
}

/* Topic pills: wrap where there is room, one scrolling row on a phone. */
.ysr-bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@container bl (max-width: 599px) {
  .ysr-bl-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .ysr-bl-filters .ysr-wk-filter {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Panels ------------------------------------------------------------------- */

.ysr-bl-panel {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgb(var(--n2));
}

.ysr-bl-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(var(--n5));
}

.ysr-bl-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ysr-bl-textbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(var(--p1));
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ysr-bl-textbtn i {
  transition: transform 0.25s ease;
}

.ysr-bl-textbtn:hover i,
.ysr-bl-textbtn:focus-visible i {
  transform: translateX(3px);
}

/* Search ------------------------------------------------------------------- */

.ysr-bl-search {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.ysr-bl-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.6);
  transition: border-color 0.25s ease;
}

.ysr-bl-field:focus-within {
  border-color: rgb(var(--p1));
}

.ysr-bl-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: rgb(var(--n5));
  font-size: 15px;
}

.ysr-bl-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ysr-bl-search-btn {
  flex: 0 0 auto;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: rgb(var(--p1));
  color: #17140a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.25s ease;
}

.ysr-bl-search-btn:hover,
.ysr-bl-search-btn:focus-visible {
  filter: brightness(1.06);
}

/* Featured post ------------------------------------------------------------ */

.ysr-bl-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgb(var(--n2));
  transition: border-color 0.3s ease;
}

.ysr-bl-featured:hover {
  border-color: rgba(var(--p1), 0.45);
}

.ysr-bl-featured-copy {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.ysr-bl-featured-title {
  margin: 14px 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
}

.ysr-bl-featured-title a,
.ysr-bl-card-title a {
  color: rgb(var(--n5));
  text-decoration: none;
}

.ysr-bl-featured-title a:hover,
.ysr-bl-featured-title a:focus-visible,
.ysr-bl-card-title a:hover,
.ysr-bl-card-title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ysr-bl-featured-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.ysr-bl-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.ysr-bl-featured-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ysr-bl-featured-meta i {
  font-size: 17px;
  color: rgb(var(--p1));
}

.ysr-bl-featured-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1c1c;
}

.ysr-bl-featured-media img,
.ysr-bl-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ysr-bl-featured:hover .ysr-bl-featured-media img,
.ysr-bl-card:hover .ysr-bl-card-media img {
  transform: scale(1.05);
}

@container blmain (max-width: 699px) {
  .ysr-bl-featured-media {
    order: -1;
  }
}

@container blmain (min-width: 700px) {
  .ysr-bl-featured {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 330px;
  }

  .ysr-bl-featured-copy {
    padding: 32px 8px 32px 32px;
    align-self: center;
  }

  .ysr-bl-featured-media {
    aspect-ratio: auto;
  }

  .ysr-bl-featured-media img {
    position: absolute;
    inset: 0;
  }

  /* The image fades into the card on its left edge, as in the mockup. */
  .ysr-bl-featured-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      rgb(var(--n2)) 0%,
      rgba(var(--n2), 0.55) 22%,
      rgba(var(--n2), 0) 55%
    );
    pointer-events: none;
  }
}

.ysr-bl-cover-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--p1), 0.6);
  font-size: 48px;
}

/* Latest articles ---------------------------------------------------------- */

.ysr-bl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 32px 0 16px;
}

.ysr-bl-featured + .ysr-bl-section-head {
  margin-top: 36px;
}

.ysr-bl-main > .ysr-bl-section-head:first-child {
  margin-top: 0;
}

.ysr-bl-section-head h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: rgb(var(--n5));
}

.ysr-bl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@container blmain (min-width: 520px) {
  .ysr-bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container blmain (min-width: 860px) {
  .ysr-bl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ysr-bl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgb(var(--n2));
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.ysr-bl-card:hover {
  border-color: rgba(var(--p1), 0.45);
  transform: translateY(-3px);
}

.ysr-bl-card-media-link {
  display: block;
}

.ysr-bl-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1c1c;
}

.ysr-bl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.ysr-bl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ysr-bl-chips li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgb(var(--n5));
  font-size: 12px;
}

.ysr-bl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 12px 0 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.ysr-bl-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ysr-bl-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.ysr-bl-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: auto;
  color: rgb(var(--p1));
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ysr-bl-readmore i {
  transition: transform 0.25s ease;
}

.ysr-bl-readmore:hover,
.ysr-bl-readmore:focus-visible {
  color: rgb(var(--p1));
}

.ysr-bl-readmore:hover i,
.ysr-bl-readmore:focus-visible i {
  transform: translateX(3px);
}

/* Pagination: the /work pager, in its own full-width row. */
.ysr-bl-pager {
  grid-area: pager;
  margin-top: 8px;
}

/* The last eight articles of a page run full width below the sidebar, in
 * rows of four where there is room. Their own container, so the column
 * count follows the width they actually get. */
.ysr-bl-rest {
  grid-area: rest;
  container: blrest / inline-size;
  min-width: 0;
}

@container blrest (min-width: 520px) {
  .ysr-bl-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container blrest (min-width: 860px) {
  .ysr-bl-grid--four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container blrest (min-width: 1100px) {
  .ysr-bl-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* In a filtered view the heading comes first, so the large card and the
 * row of three need their own space between them. */
.ysr-bl-featured + .ysr-bl-grid {
  margin-top: 20px;
}

.ysr-bl-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 22px;
  text-align: center;
}

.ysr-bl-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

/* Sidebar: topics ---------------------------------------------------------- */

.ysr-bl-topics {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ysr-bl-topics li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ysr-bl-topics button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  background: transparent;
  color: rgb(var(--n5));
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.ysr-bl-topic-icon {
  font-size: 21px;
  color: rgb(var(--p1));
}

.ysr-bl-topic-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.ysr-bl-topic-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ysr-bl-topic-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.ysr-bl-topics button:hover .ysr-bl-topic-label,
.ysr-bl-topics button:focus-visible .ysr-bl-topic-label,
.ysr-bl-topics button[aria-pressed="true"] .ysr-bl-topic-label {
  color: rgb(var(--p1));
}

.ysr-bl-topics button[aria-pressed="true"] .ysr-bl-topic-label {
  font-weight: 600;
}

.ysr-bl-topics button:hover .ysr-bl-topic-arrow,
.ysr-bl-topics button:focus-visible .ysr-bl-topic-arrow {
  color: rgb(var(--p1));
  transform: translateX(3px);
}

/* Sidebar: call to action -------------------------------------------------- */

.ysr-bl-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(var(--p1));
  color: #17140a;
  font-size: 22px;
}

.ysr-bl-cta h2 {
  margin: 14px 0 6px;
}

.ysr-bl-cta p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* One button per line, left-aligned: the booking button widens rightward when
 * its you + me reveal opens, so it never wraps or slides from under the
 * pointer. */
.ysr-bl-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* The template grey pill matches the panel grey, so on this card the booking
 * button read as bare text. A darker fill and an outline give it its shape. */
.ysr-bl-cta-actions .primary-btn2 {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Sidebar: quote ----------------------------------------------------------- */

.ysr-bl-quote {
  margin: 0;
}

.ysr-bl-quote-mark {
  font-size: 36px;
  color: rgb(var(--p1));
}

.ysr-bl-quote blockquote {
  margin: 8px 0 14px;
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
  color: rgb(var(--n5));
}

.ysr-bl-quote figcaption {
  color: rgb(var(--p1));
  font-size: 15px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .ysr-bl-card,
  .ysr-bl-featured,
  .ysr-bl-featured-media img,
  .ysr-bl-card-media img,
  .ysr-bl-readmore i,
  .ysr-bl-textbtn i,
  .ysr-bl-topic-arrow {
    transition: none;
  }

  .ysr-bl-card:hover,
  .ysr-bl-featured:hover .ysr-bl-featured-media img,
  .ysr-bl-card:hover .ysr-bl-card-media img {
    transform: none;
  }
}

/* /hire enquiry form — breathing room (owner, 17 Sep: "this form looks
 * congested"). Spacing and grouping only: same fields, same words, same
 * validation. The page's own inline <style> (generated by the porter from the
 * Laravel page) loads after this file, so each rule here is one class more
 * specific than the rule it adjusts rather than edited at its source.
 *
 *  - the hint after a question sits on its own line, lighter and smaller, so a
 *    label reads as the question and the hint as help (the phone label was one
 *    three-line run);
 *  - more space between fields than between a label and its field, so each
 *    question and its box read as one group;
 *  - the panel has more padding; consent and submit are set apart as the end.
 * ------------------------------------------------------------------------ */
.hire-panel.hire-panel { padding: 32px; }
.hire-panel .hire-field { margin-bottom: 24px; }
.hire-panel .hire-two { gap: 0 20px; }
.hire-panel .hire-field > label { margin-bottom: 9px; line-height: 1.35; }
.hire-panel .hire-field > label .hint {
  display: block; margin-top: 3px;
  font-size: .82rem; font-weight: 400; line-height: 1.45; opacity: .62;
}
.hire-panel .hire-phone { gap: 12px; }
.hire-panel textarea { min-height: 120px; }
.hire-panel #file_links { min-height: 96px; }
.hire-panel .hire-consent {
  margin: 8px 0 22px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  line-height: 1.5;
}
@media (max-width: 575px) {
  .hire-panel.hire-panel { padding: 20px; }
  .hire-panel .hire-field { margin-bottom: 20px; }
}
