/*
 * Nujai Creative website — UI-kit section layouts.
 * Page-section scaffolding (hero, manifesto, services, work, about, cta)
 * ported from the built source of truth (hero-demo.html). Primitives
 * (nav, footer, cards, buttons, forms) come from the bundle + styles.css.
 */

/* Registered custom props so the hero sheen interpolates smoothly */
@property --hx { syntax: '<percentage>'; inherits: false; initial-value: 66%; }
@property --hy { syntax: '<percentage>'; inherits: false; initial-value: 32%; }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(16, 12, 8, 0.82) 0%, rgba(16, 12, 8, 0.5) 46%, rgba(16, 12, 8, 0.08) 100%),
    url('../img/header-image.webp') right center / cover no-repeat,
    var(--dark-deep);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  filter: contrast(130%) brightness(180%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 1280px; }
.hero-eyebrow {
  color: var(--on-dark-muted);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), translate 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-eyebrow::before { background: var(--accent); }
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  margin: 1.2rem 0 1.5rem;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), translate 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-typed-word { display: block; white-space: nowrap; }
.hero-sub {
  max-width: 32rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--on-dark) 82%, transparent);
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hero-see-work {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.hero-see-work:hover { color: var(--on-dark); }

/* Hero entrance: quiet rise + fade, staggered. The visible state is the base
   style; JS adds .hero-pre before first paint and removes it a frame later, so
   the content transitions in — and simply stays visible if motion is disabled. */
.hero-sub, .hero-actions {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), translate 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-eyebrow { transition-delay: 0s; }
.hero-headline { transition-delay: 0.09s; }
.hero-sub { transition-delay: 0.18s; }
.hero-actions { transition-delay: 0.27s; }
.hero.hero-pre .hero-eyebrow,
.hero.hero-pre .hero-headline,
.hero.hero-pre .hero-sub,
.hero.hero-pre .hero-actions { opacity: 0; translate: 0 26px; }

/* ── PAGE HEADER (Work / Offers / Contact tops) ── */
.page-header {
  position: relative;
  padding: 11rem var(--section-inset) 4rem;
  background: var(--bg);
}
.page-header .display {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.page-header .sub { max-width: 40rem; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }

/* ── MANIFESTO (closed card) ── */
.manifesto { padding-block: var(--space-16); padding-inline: var(--section-inset); }
.manifesto-card {
  position: relative;
  max-width: 940px;
  margin-inline: auto;
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
}
.manifesto-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--contrast) 47%, var(--bg)) 0%, var(--contrast) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
}
.manifesto-inner { max-width: 720px; margin: 0 auto; }
.manifesto h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.manifesto p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.75; color: var(--muted); }
/* Scroll-linked word reveal: JS drives span opacity directly from scroll
   position (no animation clock involved); without JS everything stays visible. */
.manifesto-inner h2 span, .manifesto-inner p span { will-change: opacity; }

/* ── SERVICES ── */
.services { background: var(--bg); padding: 7rem var(--section-inset) 6rem; }
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-head { max-width: 620px; margin-bottom: 3.5rem; }
.services-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.services-head p { color: var(--muted); line-height: 1.7; font-size: 1.0625rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* Pricing-style service cards: 3 vertical boxes, center dark + iridescent */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.5rem 2.25rem 2.25rem;
  box-shadow: var(--shadow-card);
  transition: translate 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.price-card:hover {
  translate: 0 -6px;
  box-shadow: var(--shadow-shelf);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}
.price-tag {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
}
.price-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.price-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
.price-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card--dark {
  background: var(--gradient-dark);
  border-color: color-mix(in srgb, var(--on-dark) 14%, transparent);
  box-shadow: var(--shadow-plate);
}
.price-card--dark:hover {
  translate: 0 -6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.14), 0 22px 60px rgba(0,0,0,0.26);
  border-color: color-mix(in srgb, var(--foil-1) 40%, transparent);
}
.price-card--dark .price-tag { color: var(--on-dark-muted); }
.price-card--dark h3 { color: var(--on-dark); }
.price-card--dark p { color: var(--on-dark-muted); }
.price-card--dark .price-features li { color: color-mix(in srgb, var(--on-dark) 88%, transparent); }
.price-product-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
/* Iridescent tag — flagship product name standing in for the "Product" label.
   Text uses .nx-foil; the pill outline gets the same foil ring via ::before
   (gradient border trick: padding + mask-composite exclude). */
.price-tag--foil {
  position: relative;
  border-color: transparent;
  white-space: nowrap;
}
.price-tag--foil::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--foil-1) 70%, var(--on-dark)) 0%,
    color-mix(in srgb, var(--foil-2) 70%, var(--on-dark)) 20%,
    color-mix(in srgb, var(--foil-5) 70%, var(--on-dark)) 42%,
    color-mix(in srgb, var(--foil-3) 70%, var(--on-dark)) 64%,
    color-mix(in srgb, var(--foil-4) 70%, var(--on-dark)) 84%,
    color-mix(in srgb, var(--foil-1) 70%, var(--on-dark)) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--dark { order: -1; }
}

/* ── WORK ── */
.work { background: var(--bg); padding: 6rem var(--section-inset) 7rem; }
.work-inner { max-width: 1200px; margin: 0 auto; }
.work-head { margin-bottom: 3rem; }
.work-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.5rem; }
.work-item { display: block; text-decoration: none; transition: opacity 0.4s ease; }
.work-grid:hover .work-item { opacity: 0.5; }
.work-grid:hover .work-item:hover { opacity: 1; }
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--contrast);
  filter: saturate(0.9) brightness(0.97);
  transition: filter 0.5s ease;
}
.work-item:hover .work-thumb { filter: saturate(1.06) brightness(1.02); }
.work-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 28% 24%, var(--a, #d8c2a8) 0%, transparent 60%),
    radial-gradient(55% 55% at 76% 72%, var(--b, #a8b8c8) 0%, transparent 58%),
    linear-gradient(135deg, #efe9df 0%, #e1d9cc 100%);
}
.work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='nw'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23nw)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}
.work-view {
  position: absolute;
  bottom: 12px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.85rem; border-radius: 100px;
  background: color-mix(in srgb, var(--dark) 82%, transparent);
  backdrop-filter: blur(6px);
  color: var(--bg);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.work-item:hover .work-view { opacity: 1; transform: translateY(0); }
.work-badge {
  position: absolute;
  top: 12px; left: 14px; z-index: 2;
  padding: 0.32rem 0.7rem; border-radius: 100px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  color: var(--dark);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.work-meta { padding: 1rem 0.25rem 0; }
.work-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 0.15rem;
}
.work-meta span { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }

/* ── ABOUT ── */
.about { background: var(--bg); padding: 6rem var(--section-inset); }
.about-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 4rem; align-items: center;
}
.about-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--contrast);
}
.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/thomas-portrait.webp') center / cover no-repeat;
  filter: saturate(0.82) contrast(0.98) brightness(1.02);
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='na'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23na)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 1.5rem;
}
.about-text p { color: var(--muted); line-height: 1.75; font-size: 1.0625rem; max-width: 36rem; margin-bottom: 2rem; }
.about-sign { display: flex; flex-direction: column; gap: 0.1rem; }
.about-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--ink); }
.about-role { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }

/* ── CLOSING CTA ── */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gradient-dark);
  padding: 7rem 2rem; text-align: center;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='nc'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23nc)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: screen;
  opacity: 0.07;
  filter: contrast(150%) brightness(130%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta h2 {
  font-family: var(--font-heading);
  font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05; letter-spacing: -0.025em; color: var(--bg); margin-bottom: 1rem;
}
.cta p { color: var(--on-dark-muted); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* ── NEWSLETTER (on-site plate) ── */
.newsletter {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gradient-dark);
  border-radius: 24px; padding: clamp(2.5rem, 5vw, 4.5rem);
}
.newsletter::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='nn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23nn)'/%3E%3C/svg%3E");
  background-size: 240px 240px; mix-blend-mode: screen; opacity: 0.07;
  filter: contrast(150%) brightness(130%); pointer-events: none;
}
.newsletter-inner { position: relative; z-index: 1; max-width: 540px; }
.newsletter .eyebrow { color: var(--on-dark-muted); }
.newsletter h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08;
  letter-spacing: -0.025em; color: var(--on-dark); margin-bottom: 0.9rem;
}
.newsletter p { color: var(--on-dark-muted); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 2rem; }
.newsletter .fine { margin-top: 1rem; margin-bottom: 0; font-size: 0.8125rem; color: var(--on-dark-muted); }

/* ── Offers ── */
.offers { background: var(--bg); padding: 5rem var(--section-inset) 6rem; }
.offers-inner { max-width: 1080px; margin: 0 auto; }
.offer-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 3.5rem;
}
.offer-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='no'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23no)'/%3E%3C/svg%3E");
  background-size: 240px 240px; mix-blend-mode: screen; opacity: 0.07;
  filter: contrast(150%) brightness(130%); pointer-events: none;
}
.offer-hero-inner { position: relative; z-index: 1; max-width: 640px; }
.offer-hero h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--on-dark); margin: 0.75rem 0 0.5rem;
}
.offer-hero .tagline { color: var(--on-dark-muted); font-size: 1.15rem; margin-bottom: 1.5rem; }
.offer-hero ul { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.5rem 0 2rem; }
.offer-hero li { color: var(--on-dark); font-size: 0.95rem; display: flex; gap: 0.6rem; }
.offer-hero li::before { content: '—'; color: var(--accent); }
.offer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3.5rem; }
.offer-card { padding: 2.25rem; }
.offer-card h3 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.75rem;
}
.offer-card p { color: var(--muted); line-height: 1.7; font-size: 0.95rem; margin-bottom: 1.25rem; }
.offer-price { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.04em; color: var(--ink); margin-bottom: 1.25rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 2.5rem;
  color: var(--accent); line-height: 1; margin-bottom: 0.75rem;
}
.step h4 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem; }
.step p { color: var(--muted); line-height: 1.65; font-size: 0.95rem; }

/* ── Services: deep service blocks (card w/ header band + features) ── */
.service-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 2rem;
}
.service-detail-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 2.25rem 2.75rem 2.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--contrast) 55%, var(--surface)) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.service-detail-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  width: 100%;
}
.service-detail-topline .price-tag { margin-bottom: 0; display: inline-flex; align-items: center; white-space: nowrap; width: max-content; }
.service-detail-title { max-width: 38rem; }
.service-detail-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
}
.service-pitch { color: var(--muted); line-height: 1.7; font-size: 1.0625rem; margin: 0; max-width: 46rem; }
.service-pitch strong { color: var(--ink); font-weight: 600; }
.service-detail-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  flex-shrink: 0;
}
.service-detail-cta .offer-price { margin-bottom: 0; }
.service-detail-body { padding: 2.25rem 2.75rem 2.5rem; }
.service-detail-body h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}
.service-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.service-features strong { color: var(--ink); font-weight: 600; }
.service-fit {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin: 0;
}
.service-fit-copy { max-width: 40rem; }
.service-fit-copy h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.service-fit-copy p { font-size: 0.95rem; line-height: 1.65; color: var(--muted); margin: 0; }
.service-fit .btn { flex-shrink: 0; }

/* ── Product page ── */
.product-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gradient-dark);
  padding: 11rem var(--section-inset) 6rem;
}
.product-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='np'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23np)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: screen;
  opacity: 0.07;
  filter: contrast(150%) brightness(130%);
  pointer-events: none;
}
.product-hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.product-hero .eyebrow { color: var(--on-dark-muted); }
.product-name {
  display: block;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 1.2rem 0 0.75rem;
}
.product-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--on-dark);
  margin-bottom: 1.25rem;
}
.product-lede { max-width: 36rem; font-size: 1.0625rem; line-height: 1.7; color: var(--on-dark-muted); margin-bottom: 2.5rem; }
.product-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.product-secondary {
  font-size: 0.9rem; font-weight: 500;
  color: var(--on-dark-muted); text-decoration: none;
  transition: color var(--transition-fast);
}
.product-secondary:hover { color: var(--on-dark); }
.product-how, .product-included, .product-why { background: var(--bg); padding: 5.5rem var(--section-inset); }
.product-included { padding-top: 0; padding-bottom: 6.5rem; }
.product-pricing { background: var(--contrast); padding: 6rem var(--section-inset) 7rem; }
.product-pricing-inner { max-width: 1200px; margin: 0 auto; }
.price-amount {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700;
  color: var(--ink); line-height: 1; margin: 0.1rem 0 1.3rem;
}
.price-amount small {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted);
}
.price-amount--quote { font-size: 1.65rem; }
.price-card--dark .price-amount { color: var(--on-dark); }
.price-card--dark .price-amount small { color: var(--on-dark-muted); }
.product-section-inner { max-width: 1080px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.feature h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.feature p { font-size: 0.9rem; line-height: 1.65; color: var(--muted); }
/* Before → After transformation ledger: each pain pairs with its fix on one
   row; hovering a row strikes the old way through and nudges the arrow. */
.swap { margin-top: 3rem; }
.swap-head, .swap-row {
  display: grid;
  grid-template-columns: 1fr 4.5rem 1fr;
  gap: 0 1rem;
  align-items: baseline;
}
.swap-head { padding-bottom: 0.9rem; }
.swap-label {
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--muted);
}
.swap-label--after { color: var(--kairos); }
.swap-row { padding: 1.15rem 0; border-top: 1px solid var(--border); }
.swap-row:last-child { border-bottom: 1px solid var(--border); }
.swap-before {
  font-size: 1rem; line-height: 1.55; color: var(--muted); margin: 0;
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.35s ease, opacity 0.35s ease;
}
.swap-arrow {
  justify-self: center;
  color: var(--kairos); font-weight: 700; font-size: 1rem;
  transition: translate 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.swap-after { font-size: 1rem; line-height: 1.55; color: var(--ink); font-weight: 500; margin: 0; }
.swap-row:hover .swap-before { text-decoration-color: var(--muted); opacity: 0.75; }
.swap-row:hover .swap-arrow { translate: 0.35rem 0; }
@media (max-width: 900px) {
  .service-detail-head { padding: 1.75rem 1.5rem 1.9rem; }
  .service-detail-body { padding: 1.75rem 1.5rem; }
  .service-fit { flex-direction: column; align-items: stretch; }
  .service-fit .btn { align-self: flex-start; }
  .service-features { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .swap-head { display: none; }
  .swap-head, .swap-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .swap-arrow { justify-self: start; rotate: 90deg; }
}

/* ── Contact ── */
.contact { background: var(--bg); padding: 4rem var(--section-inset) 6rem; }
.contact-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-block h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--ink); margin-bottom: 0.75rem; }
.contact-block p { color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
.contact-mail { font-family: var(--font-heading); font-size: 1.5rem; color: var(--ink); }

@media (max-width: 860px) {
  .services-grid, .offer-row, .contact-inner { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 280px; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* Add to ui_kits/website/kit.css — mobile behavior for .work-case-card:
   image stacks on top, tags stay a single non-wrapping row (scrolls if tight)
   instead of breaking into a vertical list. */
@media (max-width: 640px) {
  .work-card-row { grid-template-columns: 1fr !important; }
  .work-card-thumb { width: 100% !important; max-width: 220px; }
  .work-tags-row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .work-tags-row::-webkit-scrollbar { display: none; }
  .work-tags-row .card-tag { flex: 0 0 auto; }
}
