/* =========================================================
   SHARED STYLESHEET
   Loaded on every page. Brand tokens, background treatment,
   header, footer, buttons, typography, shared sections.
   ========================================================= */

/* Fallback for browsers without color-mix (overridden below where supported) */
:root {
  --surface: #0A0F1E;
  --surface-alt: #0A0F1E;
}

:root {
  /* Brand palette */
  --primary-dark: #0A0F1E;
  --deep-blue: #021C4F;
  --accent-red: #C50337;
  --accent-pink: #FF2E63;
  --white: #FFFFFF;

  /* Surfaces — Primary Dark lifted with Deep Blue, no new hues introduced */
  --surface: color-mix(in srgb, var(--primary-dark) 88%, var(--deep-blue));
  --surface-alt: color-mix(in srgb, var(--primary-dark) 78%, var(--deep-blue));
  --panel: rgba(255, 255, 255, 0.03);

  /* Text — Pure White at reduced opacity, so no off-palette greys */
  --text: var(--white);
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.45);

  /* Lines */
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.20);

  /* Signature gradient — deep blue → magenta red */
  --gradient: linear-gradient(120deg, var(--deep-blue) 0%, var(--accent-red) 55%, var(--accent-pink) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(2, 28, 79, 0.55), rgba(197, 3, 55, 0.45));

  /* Type */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 26px;

  --container: 1200px;
}

/* ================= RESET / BASE ================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--primary-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient glows on the dark base — the brand-kit background look.
   Fixed so they sit behind content and don't scroll away. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  /* Viewport-anchored so every page — long or short — shows the same
     glow arrangement, top to bottom, with no seams or repeats. */
  background:
    radial-gradient(70rem 50rem at 8% -10%, rgba(2, 28, 79, 0.95), transparent 60%),
    radial-gradient(55rem 42rem at 100% 2%, rgba(197, 3, 55, 0.40), transparent 58%),
    radial-gradient(60rem 45rem at 50% 110%, rgba(255, 46, 99, 0.18), transparent 62%),
    var(--primary-dark);
  pointer-events: none;
}

img, svg, video { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-pink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-size: 0.85rem;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ================= SHARED TEXT ELEMENTS ================= */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin: 0 0 1rem;
}

.section-heading {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 22ch;
}

.section-subheading {
  color: var(--text-muted);
  max-width: 54ch;
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent-pink), var(--accent-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Italic only on the collage-banner headline and the Portfolio page's
   hero, matching the reference style — not applied to every gradient-text
   heading site-wide. */
.collage-inner h2 .gradient-text,
.work-hero h1 .gradient-text {
  font-style: italic;
}

.section { padding-block: 6rem; }

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--gradient);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 0;
  color: var(--white);
  box-shadow: 0 8px 26px rgba(197, 3, 55, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 12px 34px rgba(255, 46, 99, 0.42);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  transform: translateY(-2px);
}

/* ================= HEADER / NAV ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Transparent by default — the page background shows straight through,
     so there is no seam where the header ends. */
  background: transparent;
}

/* Once scrolled, fade in a blurred backdrop that dissolves at the bottom
   instead of ending on a hard line. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.92) 55%, rgba(10, 15, 30, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Three equal-weight columns: the middle one centres regardless of how
   wide the brand or the button is, so the links sit dead centre. */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 0.9rem;
}

.header-inner .logo { justify-self: start; }
.primary-nav { justify-self: center; }
.header-inner .nav-hire { justify-self: end; }

/* ---- Brand: avatar + name ---- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.logo-name span { color: var(--accent-pink); }
.logo-name { line-height: 1; }

.logo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: transparent;
  border: 0;
  display: block;
}

/* ---- Nav ---- */

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.primary-nav a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.62);
  position: relative;
  transition: color 0.18s ease;
}
.primary-nav a:hover { color: var(--white); }

.primary-nav a[aria-current="page"] { color: var(--white); }
.primary-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--white) !important;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(197, 3, 55, 0.30);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); }

/* Button element needs these resets to match the anchor version */
button.nav-cta {
  font-family: var(--font-display);
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
button.nav-cta[aria-expanded="true"] {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197, 3, 55, 0.45);
}

/* ---- Hire Me dropdown ---- */

.nav-hire { position: relative; display: inline-block; }

.hire-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(10, 15, 30, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 120;

  /* Slide-and-fade in */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hire-menu.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hire-menu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--white) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.16s ease;
}
.hire-menu a:hover,
.hire-menu a:focus-visible { background: var(--accent-red); }
.hire-menu a::after { display: none !important; }

.hire-menu svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

/* ---- Mobile toggle ---- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= PAGE HEADER (inner pages) ================= */

.page-hero {
  padding-block: 5rem 3.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-inline: auto;
  max-width: 18ch;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 54ch;
  margin-inline: auto;
  font-size: 1.08rem;
}

/* ================= CTA BAND (shared, above footer) ================= */

.cta-band {
  padding-block: 5rem;
  text-align: center;
  position: relative;
}
.cta-band .inner {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-band p {
  color: var(--text-muted);
  max-width: 46ch;
  margin-inline: auto 1.5rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* ================= FOOTER ================= */

.site-footer {
  background: transparent;
  padding-block: 2.5rem;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.footer-nav a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.footer-socials a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--white);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-socials a:hover { color: var(--accent-pink); transform: translateY(-2px); }
.footer-socials svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .footer-bar { flex-direction: column; text-align: center; gap: 1.75rem; }
  .footer-nav ul { flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
}

/* ================= SCROLL REVEAL (JS adds .is-visible) ================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* Long, gentle ease-out — the curve that makes reveals feel smooth
     rather than snappy. Matches the deck and rail timing. */
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { will-change: auto; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */

@media (max-width: 880px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .nav-toggle { justify-self: end; }

  /* Button sits inside the open menu rather than crowding the bar */
  .header-inner .nav-hire {
    position: fixed;
    top: 232px;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .primary-nav.is-open ~ .nav-hire { opacity: 1; pointer-events: auto; }
  .nav-hire .nav-cta { width: 100%; }

  .primary-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .primary-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 1.35rem; }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: flex; }

  /* Dropdown sits inline in the mobile menu rather than floating */
  .nav-hire { width: 100%; }
  button.nav-cta { width: 100%; justify-content: center; }
  .hire-menu {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    display: none;
  }
  .hire-menu.is-open { display: flex; opacity: 1; transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .section { padding-block: 4rem; }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================= HEADER SCROLL STATE (added by animations.js) ================= */

.site-header.is-scrolled::before { opacity: 1; }

/* Hero parallax needs its own transform context, and must not fight
   the .reveal transform — so the parallax target is the wrapper, not
   the revealing children. */
.hero-inner { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-inner { transform: none !important; opacity: 1 !important; }
}


/* =========================================================
   GRADIENT CARDS
   The brand-kit card treatment: deep blue -> magenta red fill,
   white text. Use .card-gradient for the full-bleed version and
   .card-tinted for the subtler version used on repeating grids.
   ========================================================= */

.card-gradient {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--accent-red) 62%, var(--accent-pink) 100%);
  border-color: transparent !important;
  color: var(--white);
  box-shadow: 0 18px 46px rgba(197, 3, 55, 0.30);
}
.card-gradient p,
.card-gradient .step-desc,
.card-gradient .service-desc,
.card-gradient .stat-label { color: rgba(255, 255, 255, 0.86) !important; }

.card-gradient .step-marker,
.card-gradient .eyebrow { color: rgba(255, 255, 255, 0.92) !important; }

.card-gradient .stat-number {
  background: none !important;
  -webkit-text-fill-color: var(--white);
  color: var(--white) !important;
}

/* Subtler red-tinted card for repeating grids */
.card-tinted {
  background:
    linear-gradient(150deg, rgba(2, 28, 79, 0.55) 0%, rgba(197, 3, 55, 0.28) 68%, rgba(255, 46, 99, 0.22) 100%),
    var(--surface);
  border-color: rgba(255, 46, 99, 0.20);
}

/* ================= COLLAGE CTA BANNER (shared: home + portfolio) ================= */

/* ---------- COLLAGE CTA BANNER ---------- */

.collage-cta {
  position: relative;
  padding-block: 8rem;
  margin-block: 2rem;
  overflow: hidden;
}

.collage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Fade the tile grid out at the top and bottom so the banner has no
     hard rectangular edge against the page background. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.collage-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.15rem;
  height: 100%;
  width: max-content;
  padding: 0;
  animation: collageDrift 50s linear infinite;
}

@keyframes collageDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.collage-tile {
  width: 300px;
  border-radius: 0;
  background: var(--accent-red);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  opacity: 0.9;
}
.collage-tile img,
.collage-tile video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; pointer-events: none; }

/* Dark scrim so the headline stays readable over the collage.
   Radial rather than flat, so the centre is darkest where the text sits
   and the edges stay lighter — no visible scrim boundary. */
.collage-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 20, 0.66);
}

.collage-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.collage-inner h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  margin-bottom: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .collage-track { animation: none; }
}


/* ================= FAQ (shared: home + contact) ================= */

/* ---------- FAQ: heading left, accordion right ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.faq-intro { position: sticky; top: 7rem; }
.faq-intro .section-heading {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  max-width: 10ch;
}

.faq-list { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.028);
  padding: 0.4rem 1.75rem;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.faq-item[open] { border-color: rgba(255, 46, 99, 0.4); background: rgba(255, 255, 255, 0.045); }
.faq-item:hover { border-color: var(--border-strong); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

/* Chevron that flips when open */
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.28s ease;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--accent-pink);
}

.faq-answer {
  overflow: hidden;
  animation: faqOpen 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  padding-bottom: 1.5rem;
  margin: 0;
  max-width: 60ch;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer { animation: none; }
}


@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-intro { position: static; }
  .faq-intro .section-heading { max-width: none; }
}

/* ================= HIRE DROPDOWN — CENTRED VARIANT ================= */
/* Used by the collage banner CTA, where the button is centred. */

.hire-wrap {
  position: relative;
  display: inline-block;
}

.hire-menu--center {
  left: 50%;
  right: auto;
  translate: -50% 0;
  min-width: 230px;
}
.hire-menu--center.is-open { translate: -50% 0; }

/* The shared .hire-menu slide-in uses transform, which would fight the
   centring translate — so the centred variant animates opacity only. */
.hire-menu--center {
  transform: none;
  transition: opacity 0.2s ease;
}

button.hire-toggle { cursor: pointer; border: 0; }
button.btn.hire-toggle[aria-expanded="true"] {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 46, 99, 0.45);
}
/* Leave room around italic banner glyphs, including their descenders. */
.collage-inner h2 {
  line-height: 1.3;
  padding: 0.12em 0.2em;
  overflow-wrap: break-word;
}
.collage-inner h2 .gradient-text {
  display: inline;
  padding: 0.12em 0.2em 0.18em 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: inherit;
}

/* Reference styling for the shared Hire Me banner. */
.collage-bg::after { background: rgba(0, 0, 0, 0.73); }
.collage-inner { max-width: 1100px; }
.collage-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  padding: 0.15em 0.2em;
}
.collage-inner h2 .gradient-text {
  font-family: "Caveat", "Segoe Print", cursive;
  font-weight: 700;
  font-style: normal;
  font-size: 1.16em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, var(--accent-pink), var(--accent-red));
  -webkit-background-clip: text;
  background-clip: text;
  padding: 0.12em 0.15em 0.2em 0.04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Handwritten emphasis matching the supplied reference website. */
@font-face {
  font-family: "Huge Salmon Regular";
  src: url("https://framerusercontent.com/assets/etk4Ns0HurkppbAvoAIw7vn2Soc.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { --font-handwritten: "Huge Salmon Regular", "Caveat", "Segoe Print", cursive; }
.eyebrow,
.work-hero h1 .gradient-text,
.collage-inner h2 .gradient-text,
em,
i:not([class]) {
  font-family: var(--font-handwritten);
  font-style: normal;
  font-weight: 400;
}
/* Paint the gradient once, including the rounded edge, with no border seam. */
.btn.btn-primary,
.btn.btn-primary:hover,
button.btn.hire-toggle[aria-expanded="true"] {
  border: 0;
  background-image: var(--gradient);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-origin: border-box;
  background-clip: border-box;
  color: var(--white);
}
.btn { justify-content: center; line-height: 1.4; }

/* Use Story's handwritten lettering for red/pink accent words site-wide. */
.gradient-text,
.eyebrow,
.step-num,
.field-error {
  font-family: var(--font-handwritten);
  font-weight: 400;
  font-style: normal;
}
.gradient-text {
  padding: 0.08em 0.14em 0.14em 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Keep the brand name in its original display font. */
.logo-name > span { font-family: inherit; font-weight: inherit; font-style: normal; }
