/* =========================================================
   SPC STUDIOS - Marketing site
   Base defaults + design-system components + page + responsive.
   ========================================================= */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--studio-neutral-50);
  color: var(--studio-neutral-800);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  margin: 0;
}

img { max-width: 100%; display: block; }

a { color: var(--studio-coral-600); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
a:hover { color: var(--studio-coral-700); }

button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.container { max-width: var(--container-max); margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* =========================================================
   DESIGN SYSTEM - Button (.spcs-btn)
   ========================================================= */
.spcs-btn {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.spcs-btn--sm { font-size: 13px; padding: 9px 16px; }
.spcs-btn--md { font-size: 14px; padding: 12px 22px; }
.spcs-btn--lg { font-size: 15px; padding: 15px 28px; }

.spcs-btn--primary { background: var(--studio-cta); color: #fff; box-shadow: var(--shadow-cta); }
.spcs-btn--primary:hover { background: var(--studio-cta-hover); color: #fff; box-shadow: var(--shadow-lg); }
.spcs-btn--primary:active { background: var(--studio-cta-pressed); transform: translateY(1px); box-shadow: var(--shadow-sm); }

.spcs-btn--secondary { background: var(--studio-violet-500); color: #fff; }
.spcs-btn--secondary:hover { background: var(--studio-violet-600); color: #fff; }
.spcs-btn--secondary:active { background: var(--studio-violet-700); transform: translateY(1px); }

.spcs-btn--outline { background: var(--surface); color: var(--studio-neutral-800); border: 1px solid var(--border-strong); }
.spcs-btn--outline:hover { background: var(--bg-muted); color: var(--studio-neutral-800); border-color: var(--studio-neutral-400); }

.spcs-btn--ghost { background: transparent; color: var(--studio-coral-600); }
.spcs-btn--ghost:hover { background: var(--studio-coral-50); }

/* outline on dark surfaces */
.spcs-btn--outline.on-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.35);
}
.spcs-btn--outline.on-dark:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.6); }

.spcs-btn:disabled, .spcs-btn[aria-disabled="true"] {
  opacity: 0.4; cursor: not-allowed; box-shadow: none; pointer-events: none;
}

/* =========================================================
   DESIGN SYSTEM - Badge (.spcs-badge)
   ========================================================= */
.spcs-badge {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}
.spcs-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.spcs-badge--coral   { background: var(--studio-coral-50);  color: var(--studio-coral-700); }
.spcs-badge--violet  { background: var(--studio-violet-50); color: var(--studio-violet-700); }
.spcs-badge--blue    { background: var(--studio-blue-50);   color: var(--studio-blue-700); }
.spcs-badge--solid   { background: var(--studio-coral-500); color: #fff; }
.spcs-badge--success { background: #e6f4ec; color: #15734a; }
.spcs-badge--neutral { background: var(--bg-sunken); color: var(--fg); }

/* =========================================================
   DESIGN SYSTEM - Card (.spcs-card)
   ========================================================= */
.spcs-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--surface);
  transition: all var(--dur-base) var(--ease-out);
  display: block;
  text-decoration: none;
  color: inherit;
}
.spcs-card--interactive { cursor: pointer; }
.spcs-card--interactive:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.spcs-card__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--studio-violet-600); background: var(--studio-violet-50);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.spcs-card__title { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--fg); font-weight: 700; }
.spcs-card__body { font-size: 13px; color: var(--fg-muted); margin: 0 0 16px; line-height: 1.55; }
.spcs-card__link { font-size: 13px; font-weight: 600; color: var(--studio-coral-600); }
.spcs-card--interactive:hover .spcs-card__link { color: var(--studio-coral-700); }

/* =========================================================
   DESIGN SYSTEM - Field / Input (.spcs-field)
   ========================================================= */
.spcs-field { display: flex; flex-direction: column; }
.spcs-field__label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.spcs-field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px; color: var(--fg);
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: all var(--dur-base) var(--ease-out);
}
.spcs-field__input::placeholder { color: var(--fg-subtle); }
.spcs-field__input:focus {
  outline: none;
  border-color: var(--studio-coral-500);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.spcs-field--invalid .spcs-field__input { border-color: var(--danger); }
.spcs-field--invalid .spcs-field__input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 30%, transparent); }
.spcs-field__err { font-size: 11px; color: var(--danger); margin-top: 5px; }
.spcs-field__hint { font-size: 11px; color: var(--fg-muted); margin-top: 5px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 44px;
  background: rgba(250, 248, 246, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ece6df;
}
.site-nav__brand { display: flex; align-items: flex-end; gap: 6px; }
.site-nav__brand img { height: 32px; width: auto; }
.site-nav__brand span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  line-height: 1; letter-spacing: -0.01em; color: var(--studio-coral-600);
}
.site-nav__menu { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: #6b6560;
  transition: color var(--dur-base) var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--studio-coral-600); }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); cursor: pointer; color: var(--studio-neutral-800);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
.section { max-width: var(--container-max); margin: 0 auto; padding: 104px 40px 0; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--studio-coral-600); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--studio-coral-500); display: inline-block; }
.eyebrow--light { color: #fb6f4a; }

.section-head { max-width: 620px; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 12px; font-weight: 700;
}
.section-sub { font-size: 18px; color: #6b6560; margin: 0; line-height: 1.55; max-width: 52ch; }

.section-topline {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.section-topline--end { align-items: flex-end; margin-bottom: 40px; }
.section-glyph { overflow: visible; flex-shrink: 0; }

/* =========================================================
   HERO  (kinetic: the key word cycles; a category scene draws in on the right)
   ========================================================= */
@property --ha { syntax: '<color>'; inherits: true; initial-value: #ef4d23; }
.hero {
  --ha: #ef4d23; --ease: cubic-bezier(.16, 1, .3, 1); --cycle: 3.8s;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 82vh; display: grid; align-content: center; align-items: center;
  padding: 56px 40px 64px;
}
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 74vmin; height: 74vmin; right: -10vmin; top: 50%; transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ha) 20%, transparent) 0%, color-mix(in srgb, var(--ha) 8%, transparent) 42%, transparent 70%);
  transition: --ha .7s var(--ease);
}
.hero__grid {
  position: relative; z-index: 1; width: 100%; max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700; color: var(--studio-neutral-800);
  font-size: clamp(36px, 5.3vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px;
  white-space: nowrap; /* two lines on desktop: "We make <word>" / "move." */
}
.hero__b1 { display: none; }
.kw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .02em; margin: 0 -.04em; }
.kw__word { display: inline-block; white-space: nowrap; color: var(--ha); will-change: transform; }
.kw__word--end { color: var(--studio-neutral-800); }
.hero__desc {
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: #59544e;
  max-width: 44ch; min-height: 3.1em; margin: 0; transition: opacity .3s ease;
}
/* one badge at a time, centred under the design; out goes up, in comes from below */
.hero__badges { position: relative; width: 100%; height: 44px; }
.hero__badges .hero-a-pill {
  position: absolute; left: 50%; top: 0; cursor: default; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .34s var(--ease), transform .34s var(--ease), visibility 0s linear .34s;
}
.hero__badges .hero-a-pill.is-off { transform: translate(-50%, -10px); }
.hero__badges .hero-a-pill.is-on {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .42s var(--ease) .14s, transform .42s var(--ease) .14s, visibility 0s;
}
.hero-a-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid #d8cfc6; background: #fff; color: #6b6560;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: all 250ms ease;
}
.hero-a-pill:hover { border-color: #b5aa9e; color: #2e2b27; }
.hero-a-pill__ico { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 0; }
.hero__note { margin: 22px 0 0; font-size: 13px; font-weight: 500; color: var(--fg-muted); }

/* right-hand stage: one pool of nodes + links that morphs between the four designs */
.hero__side { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 480px; justify-self: end; }
.hero__stage { position: relative; width: 100%; aspect-ratio: 520 / 440; }
.morph { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: #ef4d23; transition: color .8s var(--ease); }
.ml { stroke: currentColor; stroke-linecap: round; fill: none; }
.mn { fill: currentColor; }
.mring { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .4; transform-origin: center; transform-box: fill-box; animation: ring-pulse 2.8s ease-in-out infinite; }
@keyframes ring-pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .85; transform: scale(1.3); } }

/* slideshow indicator: the active dot stretches into a track whose fill runs for one cycle */
.hero__dots { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: width .35s var(--ease); }
.hero__dot.is-on { width: 40px; cursor: default; }
.hero__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%);
  border-radius: 999px; background: var(--studio-neutral-300);
  transition: width .35s var(--ease), background .3s var(--ease);
}
.hero__dot:hover::before { background: var(--studio-neutral-400); }
.hero__dot.is-on::before { width: 28px; background: color-mix(in srgb, var(--ha) 22%, var(--studio-neutral-200)); }
.hero__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 999px; background: var(--ha); opacity: 0;
  clip-path: inset(0 100% 0 0 round 999px);
}
.hero__dot.is-on::after { opacity: 1; animation: dot-progress calc(var(--cycle, 3.8s) - .26s) linear forwards; } /* starts at the word swap, ends on the next change */
.hero__dot:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 999px; }
@keyframes dot-progress { from { clip-path: inset(0 100% 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes cn-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(0, -5px) scale(1); } }
@keyframes ring-pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .85; transform: scale(1.3); } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 40px 24px 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__side { max-width: 440px; justify-self: center; }
  .hero__glow { width: 100vmin; height: 100vmin; right: -40vmin; top: 62%; }
}

/* shared with the section glyphs */
@keyframes ha-pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.32); opacity: 1; } }
.hero-a-hub { animation: ha-pulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.dot-morph {
  transition: cx 900ms cubic-bezier(.22,1,.36,1), cy 900ms cubic-bezier(.22,1,.36,1), opacity 700ms ease;
  transform-origin: center; transform-box: fill-box;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px;
}
/* Service card: 4 distinct category colours + a tidy flex layout */
.svc-card { display: flex; flex-direction: column; --cat: var(--studio-coral-500); --cat-text: var(--studio-coral-600); --cat-soft: var(--studio-coral-50); }
.svc-card--brand     { --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; } /* coral */
.svc-card--campaigns { --cat: #6d47e6; --cat-text: #5a32d6; --cat-soft: #f2effe; } /* violet */
.svc-card--content   { --cat: #16a34a; --cat-text: #15803d; --cat-soft: #e6f4ea; } /* green */
.svc-card--digital   { --cat: #0f70b8; --cat-text: #005bad; --cat-soft: #eef5fb; } /* heritage blue */

/* Header: icon chip + title on one row */
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.svc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--cat-soft); color: var(--cat);
}
.svc-ico svg { width: 24px; height: 24px; }
.svc-card .spcs-card__title { margin: 0; font-size: 18px; white-space: nowrap; }
.svc-card .spcs-card__body { margin: 0 0 16px; }
.svc-card .spcs-card__link { margin-top: auto; color: var(--cat-text); } /* pin to card bottom */
.svc-card.spcs-card--interactive:hover .spcs-card__link { color: var(--cat-text); }
.services-cta { margin-top: 40px; text-align: center; }

/* =========================================================
   WORK
   Real showcase pieces: poster covers, muted hover previews,
   click opens the lightbox. Category colours via --cat like .svc-card.
   ========================================================= */
/* 12-column base: regular card = 4, featured = 8, compact = 3 */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work-card { grid-column: span 4; display: flex; flex-direction: column; --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; }
.work-card--brand     { --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; } /* coral */
.work-card--campaigns { --cat: #6d47e6; --cat-text: #5a32d6; --cat-soft: #f2effe; } /* violet */
.work-card--content   { --cat: #16a34a; --cat-text: #15803d; --cat-soft: #e6f4ea; } /* green */
.work-card--digital   { --cat: #0f70b8; --cat-text: #005bad; --cat-soft: #eef5fb; } /* heritage blue */

.work-cover {
  position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 16px;
  aspect-ratio: 16 / 10; background: var(--studio-neutral-100, #f1ece7);
  isolation: isolate;
}
.work-cover__poster, .work-cover__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.work-cover__poster--top { object-position: top center; }
.work-cover__preview { opacity: 0; transition: opacity .45s var(--ease-out); pointer-events: none; }
.work-card.is-previewing .work-cover__preview { opacity: 1; }
.work-cover__play {
  position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--cat); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.work-cover__play svg { width: 20px; height: 20px; margin-left: 2px; }
.work-card:hover .work-cover__play { background: var(--cat); color: #fff; transform: scale(1.06); }
.work-cover__len {
  position: absolute; right: 12px; bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: var(--radius-pill); background: rgba(31,29,26,0.72); color: #fff;
  font-variant-numeric: tabular-nums;
}
.work-card__text { display: flex; flex-direction: column; flex: 1; }
.work-card__tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--cat-text); background: var(--cat-soft);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.work-card__tag-ico { width: 12px; height: 12px; flex-shrink: 0; color: var(--cat); }
.work-card__title {
  font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em;
  margin: 0 0 8px; color: var(--studio-neutral-800); font-weight: 700;
}
.work-card__body { font-size: 13px; color: #6b6560; margin: 0 0 16px; line-height: 1.55; }
.work-card__link { font-size: 13px; font-weight: 600; color: var(--cat-text); margin-top: auto; }
.spcs-card--interactive:hover .work-card__link { color: var(--cat-text); }

/* Featured cards: two thirds wide, cover left (or right with --flip), text beside it */
.work-card--wide { grid-column: span 8; flex-direction: row; align-items: stretch; gap: 28px; }
.work-card--flip { flex-direction: row-reverse; }
/* the cover fills the row height (object-fit crops a little) instead of leaving air above and below */
.work-card--wide .work-cover { flex: 0 0 60%; margin-bottom: 0; aspect-ratio: auto; min-height: 240px; }
.work-card--wide .work-card__text { flex: 1; justify-content: center; }
.work-card--wide .work-card__title { font-size: 26px; margin-bottom: 10px; }
.work-card--wide .work-card__body { font-size: 15px; margin-bottom: 20px; }
.work-card--wide .work-card__link { margin-top: 0; }

/* Divider before the compact strip */
.work-grid__more {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 8px;
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: #8a837c;
}
.work-grid__more::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Compact cards: cover, tag and title only, three to a row */
.work-card--compact { grid-column: span 4; padding: 14px; }
.work-card--compact .work-cover { margin-bottom: 12px; border-radius: 8px; }
.work-card--compact .work-cover__play { width: 32px; height: 32px; left: 10px; bottom: 10px; }
.work-card--compact .work-cover__play svg { width: 16px; height: 16px; }
.work-card--compact .work-cover__len { right: 10px; bottom: 11px; font-size: 10px; padding: 3px 7px; }
.work-card--compact .work-card__tag { margin-bottom: 8px; }
.work-card--compact .work-card__title { font-size: 15px; margin-bottom: 8px; }
.work-card--compact .work-card__link { font-size: 12px; }

/* =========================================================
   WORK LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(20, 14, 10, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .34s var(--ease-out);
}
.lightbox__panel {
  position: relative; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(22px) scale(.955);
  transition: opacity .38s var(--ease-out), transform .46s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
/* in: backdrop fades, panel rises and settles; the bar arrives a beat later */
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox.is-open .lightbox__panel { opacity: 1; transform: none; }
.lightbox__bar { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease-out) .12s, transform .3s var(--ease-out) .12s; }
.lightbox.is-open .lightbox__bar { opacity: 1; transform: none; }
/* out: quicker, panel drops back and shrinks slightly while the backdrop clears */
.lightbox.is-closing .lightbox__backdrop { opacity: 0; transition-duration: .26s; }
.lightbox.is-closing .lightbox__panel { opacity: 0; transform: translateY(12px) scale(.975); transition-duration: .22s, .24s; }
.lightbox.is-closing .lightbox__bar { opacity: 0; transform: translateY(4px); transition-delay: 0s, 0s; transition-duration: .16s, .16s; }
@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop, .lightbox__panel, .lightbox__bar { transition: none !important; }
}
.lightbox__stage {
  position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: var(--shadow-xl); display: flex; align-items: center; justify-content: center;
  max-height: calc(100vh - 140px);
}
.lightbox__stage video, .lightbox__stage img {
  display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; margin: 0 auto;
}
.lightbox__stage video { width: 100%; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none;
  background: #fff; color: var(--studio-neutral-800); cursor: pointer; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close:hover { background: var(--studio-coral-500); color: #fff; transform: scale(1.06); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 0; color: #fff; }
.lightbox__caption { margin: 0; font-size: 14px; color: rgba(255,255,255,0.78); }
.lightbox__link { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); }
.lightbox__link:hover { color: #fff; background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.lightbox__link[hidden] { display: none; }
.lightbox__nav { display: inline-flex; align-items: center; gap: 8px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { font-size: 13px; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; min-width: 3.5ch; text-align: center; }
.lightbox__arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.lightbox__arrow svg { width: 18px; height: 18px; }
.lightbox__arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
body.lightbox-open { overflow: hidden; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.about-copy p { font-size: 17px; color: #59544e; margin: 0 0 16px; line-height: 1.7; }
.about-pull {
  font-size: 19px; font-weight: 600; color: var(--studio-neutral-800); line-height: 1.5;
  border-left: 3px solid var(--studio-coral-500); padding-left: 18px; margin: 8px 0 0;
}
.about-visual {
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(150deg, #fff, #f3ede6);
  border: 1px solid #ece6df; border-radius: 20px; padding: 40px; min-height: 300px;
}

/* =========================================================
   SPC FAMILY (dark band)
   ========================================================= */
.family { max-width: var(--container-max); margin: 104px auto 0; padding: 0 40px; }
.family__inner {
  background: #201d1a; border-radius: 20px; padding: 56px 48px; color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.family__copy { max-width: 620px; }
.family__title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 14px; color: #fff; font-weight: 700;
}
.family__desc { font-size: 17px; color: rgba(255,255,255,0.72); margin: 0 0 26px; line-height: 1.6; }
.family__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid #ece6df; border-radius: 20px; padding: 32px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form__single { margin-bottom: 16px; }
.contact-form__single--last { margin-bottom: 24px; }

.contact-thanks {
  display: none; background: #fff; border: 1px solid #ece6df; border-radius: 20px;
  padding: 48px 32px; text-align: center;
}
.contact-thanks__title {
  font-family: 'Space Grotesk', sans-serif; font-size: 34px; letter-spacing: -0.03em;
  margin: 18px 0 8px; font-weight: 700;
}
.contact-thanks__sub { font-size: 17px; color: #6b6560; margin: 0; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-info { background: #fff; border: 1px solid #ece6df; border-radius: 20px; padding: 26px; }
.contact-info__label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: #8a8177; margin-bottom: 12px;
}
.contact-info__mail {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--studio-coral-600); word-break: break-word;
}
.contact-info__note { font-size: 14px; color: #6b6560; margin: 10px 0 0; line-height: 1.55; }
.contact-info__note a { font-weight: 600; }
.contact-promo {
  background: linear-gradient(150deg, #ef4d23, #d63d16); border-radius: 20px;
  padding: 26px; color: #fff;
}
.contact-promo__label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.8); margin-bottom: 10px;
}
.contact-promo p { font-size: 15px; line-height: 1.55; margin: 0; color: rgba(255,255,255,0.95); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--studio-neutral-900); color: #fff; margin-top: 112px; }
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 64px 40px 40px; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer__brand { display: inline-flex; align-items: flex-end; gap: 6px; margin-bottom: 18px; }
.site-footer__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.site-footer__brand span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px;
  line-height: 1; color: var(--studio-coral-400);
}
.site-footer__blurb { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 34ch; margin: 0; }
.site-footer__col h3 {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: 700; margin: 0 0 16px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer__col a { font-size: 14px; color: rgba(255,255,255,0.8); transition: color var(--dur-base) var(--ease-out); }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
}
.site-footer__legal { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }
.site-footer__meta { display: flex; gap: 20px; align-items: center; }
.site-footer__meta a, .site-footer__meta span { font-size: 12px; color: rgba(255,255,255,0.5); }
.site-footer__meta a:hover { color: #fff; }
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__inner { padding: 48px 24px 32px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* tablet: regular = half, featured = full row, compact = half */
  .work-card { grid-column: span 6; }
  .work-card--wide, .work-card--tab-wide { grid-column: span 12; }
  .work-card--tab-wide { flex-direction: row; align-items: stretch; gap: 28px; }
  .work-card--tab-wide .work-cover { flex: 0 0 52%; margin-bottom: 0; }
  .work-card--tab-wide .work-card__text { justify-content: center; }
  .work-card--wide .work-cover { flex-basis: 52%; aspect-ratio: 16 / 10; }
  .work-card--compact { grid-column: span 4; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { min-height: 240px; order: -1; }
  .family__inner { grid-template-columns: 1fr; gap: 28px; }
  .family__glyph { justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  /* Collapse nav into a mobile sheet */
  .site-nav { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; }
  .site-nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px;
    background: rgba(250, 248, 246, 0.98);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #ece6df;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .site-nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav__menu .nav-link { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid #ece6df; }
  .site-nav__menu .spcs-btn { margin-top: 10px; width: 100%; }
}

@media (max-width: 720px) {
  .section { padding: 72px 24px 0; }
  .family { padding: 0 24px; margin-top: 72px; }
  .family__inner { padding: 40px 28px; }
  .services-grid { grid-template-columns: 1fr; }
  /* phone: everything full width, compact cards two per row */
  .work-card, .work-card--wide, .work-card--tab-wide { grid-column: span 12; flex-direction: column; align-items: stretch; gap: 0; }
  .work-card--wide .work-cover, .work-card--tab-wide .work-cover { flex: none; margin-bottom: 16px; aspect-ratio: 16 / 10; min-height: 0; }
  .work-card--compact { grid-column: span 12; flex-direction: row; align-items: center; gap: 14px; }
  .work-card--compact .work-cover { flex: 0 0 44%; margin-bottom: 0; }
  .work-card--compact .work-card__text { flex: 1; }
  .work-grid { gap: 16px; }
  .work-card--wide .work-card__title { font-size: 19px; }
  .work-card--wide .work-card__body { font-size: 13px; }
  .lightbox { padding: 12px; }
  .lightbox__close { top: -10px; right: -6px; width: 40px; height: 40px; }
  .lightbox__bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lightbox__link { padding: 6px 12px; }
  .contact-form__row { grid-template-columns: 1fr; }
  /* Let the hero size to its content on mobile so the CTAs never collapse
     onto the pills (the desktop 82vh + auto-margin pins them to the bottom). */
  .hero { min-height: auto; }
  .contact-topline .section-glyph, .work-topline .section-glyph, .services-topline .section-glyph { display: none; }
}

@media (max-width: 560px) {
  /* One content-sized pill per row, centered; CTAs full-width for easy tapping. */
  .hero__b1 { display: inline; } /* phones: back to the 3-line stack */
  .hero__ctas { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .hero__ctas .spcs-btn { width: 100%; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(36px, 11vw, 46px); }
}

/* =========================================================
   PACKAGES PAGE
   ========================================================= */
.pkg-hero { padding-top: 84px; padding-bottom: 0; }
.pkg-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.035em; line-height: 1.02;
  margin: 10px 0 18px; font-weight: 700; max-width: 15ch;
}
.pkg-hero__sub { font-size: 19px; color: var(--fg-muted); line-height: 1.55; max-width: 58ch; margin: 0; }

.back-link {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--fg-muted); margin-bottom: 12px;
  transition: color var(--dur-base) var(--ease-out);
}
.back-link:hover { color: var(--studio-coral-600); }

.pkg-section { padding-top: 48px; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.pkg-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.pkg-card:hover { box-shadow: var(--shadow-md); }
.pkg-card--featured { border-color: var(--studio-coral-500); box-shadow: var(--shadow-lg); position: relative; }
.pkg-card--featured:hover { box-shadow: var(--shadow-xl); }

.pkg-card__badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--studio-coral-500); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--radius-pill); box-shadow: var(--shadow-cta);
}
.pkg-card__name {
  font-family: 'Space Grotesk', sans-serif; font-size: 25px; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 6px; color: var(--fg);
}
.pkg-card__tagline { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 0 0 22px; min-height: 42px; }

.pkg-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.pkg-price__from { font-size: 12px; font-weight: 700; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.1em; }
.pkg-price__amount { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); line-height: 1; }
.pkg-price__vat { font-size: 13px; color: var(--fg-muted); margin: 0 0 24px; }

.pkg-features { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pkg-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg); line-height: 1.45; }
.pkg-features li.is-muted { color: var(--fg-muted); }
.pkg-features svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--studio-coral-500); margin-top: 1px; }

.pkg-card__cta { margin-top: auto; }
.pkg-card__cta .spcs-btn { width: 100%; }

.pkg-note { font-size: 13px; color: var(--fg-muted); margin: 26px 0 0; line-height: 1.6; }

.pkg-custom {
  margin-top: 24px; background: var(--studio-neutral-900); color: #fff;
  border-radius: var(--radius-xl); padding: 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
}
.pkg-custom__title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; color: #fff; font-weight: 700;
}
.pkg-custom__desc { font-size: 16px; color: rgba(255,255,255,0.72); line-height: 1.6; margin: 0; max-width: 62ch; }
.pkg-custom__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.pkg-custom__actions .spcs-btn { white-space: nowrap; }
.pkg-custom__mail { font-size: 13px; color: var(--studio-coral-300); text-align: center; }
.pkg-custom__mail:hover { color: var(--studio-coral-200); }

/* Scroll reveal - only active when JS is present, so no-JS still shows content */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; max-width: 460px; }
  .pkg-card--featured { order: -1; }
  .pkg-custom { grid-template-columns: 1fr; gap: 24px; padding: 36px 28px; }
}

@media (max-width: 720px) {
  .pkg-hero { padding-top: 56px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-a-particle, .dot-morph { transition: none !important; }
}
