/* ==========================================================================
   SPRYQ — components.css
   Capsule navigation, mobile menu, hero stage, portfolio cards, filters,
   services, industries, process, pricing, FAQ, form, project page, modals.
   ========================================================================== */

/* ------------------------------------------------------- glass surfaces */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-glass);
}

/* ------------------------------------------------------ floating capsule */
.capsule {
  position: fixed; left: 50%; bottom: clamp(12px, 2.2vh, 24px); z-index: 80;
  display: flex; align-items: stretch; gap: 6px; padding: 6px;
  border-radius: 18px; background: var(--glass-dark);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate(-50%, 0); transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
  color: #D9D9D6;
}
.capsule.is-hidden { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }
.capsule__logo {
  width: 54px; border-radius: 12px; background: #0B0B0B; display: grid; place-items: center; color: #fff;
  font-weight: 780; font-size: 1.05rem; letter-spacing: -0.06em; position: relative; flex: none;
  transition: background 0.3s;
}
.capsule__logo img { width: 28px; height: 28px; object-fit: contain; display: block; }
.capsule__logo:hover { background: #000; }
.capsule__group { position: relative; display: flex; gap: 6px; padding: 0; }
.capsule__item {
  position: relative; z-index: 1; display: inline-flex; align-items: center; height: 48px; padding: 0 17px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.95rem; font-weight: 480; letter-spacing: -0.01em; white-space: nowrap;
  color: #CFCFCB; transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.capsule__item:hover { color: #fff; border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.04); }
.capsule__item.is-active { color: var(--accent); border-color: transparent; }
.capsule__indicator {
  position: absolute; top: 0; left: 0; height: 48px; width: 0; border-radius: 11px; border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(253, 77, 18, 0.08), inset 0 0 18px rgba(253, 77, 18, 0.06);
  transition: transform 0.6s var(--ease), width 0.6s var(--ease), opacity 0.3s; opacity: 0; pointer-events: none;
}
.capsule__indicator.is-on { opacity: 1; }
.capsule__cta {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px; flex: none;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.97rem; letter-spacing: -0.015em;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.capsule__cta:hover { background: #FF7A45; }
.capsule__cta:active { transform: scale(0.97); }
.capsule__label, .capsule__menu { display: none; }

/* ------------------------------------------------------------ mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 20px) var(--gutter) calc(env(safe-area-inset-bottom) + 28px);
  background: rgba(17, 17, 17, 0.82); color: #F2F2F0;
  backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__close { width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.18); display: grid; place-items: center; }
.mobile-menu__close .icon { width: 22px; height: 22px; }
.mobile-menu__nav { display: grid; gap: 2px; margin-block: 32px; }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 14px; font-size: clamp(2.4rem, 11vw, 4.6rem); font-weight: 680; line-height: 1.02; letter-spacing: -0.05em; text-transform: uppercase;
  transform: translateY(24px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), color 0.3s;
}
.mobile-menu__nav a small { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; color: #8F8F8C; transform: translateY(-1.4em); }
.mobile-menu__nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu.is-open .mobile-menu__nav a { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu__foot { display: grid; gap: 18px; }
.mobile-menu__foot .socials { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #A9A9A5; font-size: 0.95rem; }

/* ------------------------------------------------------------------ hero */
/* Editorial title in two lines on wide screens, balanced wrapping on phones.
   Letters are split by js/animations.js for the 3D flip-in, cursor tilt and
   hover flips; floating CSS-3D objects sit behind the text. */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(8px, 1.5vw, 24px);
  overflow: clip;
  overflow-clip-margin: 24px;
}
.hero__meta {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px 20px;
  font-size: clamp(0.85rem, 0.6vw + 0.6rem, 1.1rem);
  margin-bottom: clamp(20px, 3vw, 44px);
  text-align: center;
}
.hero__meta .tag { height: 36px; font-size: 0.95em; padding: 0 14px; }

.hero .hero__title {
  position: relative; z-index: 1;
  margin: 0 auto;
  max-width: none;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.hero__tilt {
  display: block;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__title .line { display: block; white-space: nowrap; transform-style: preserve-3d; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero__title .line:first-child { transform: translateZ(36px); }
.hero__title .line > span { display: inline-block; white-space: nowrap; transform-style: preserve-3d; }
.hero__title .wd { display: inline-block; white-space: nowrap; transform-style: preserve-3d; }
.hero__title .ch { display: inline-block; transform-origin: 50% 100% -0.25em; backface-visibility: hidden; will-change: transform; }
.hero__title .ch--accent { color: var(--accent); margin-left: -0.04em; }

.hero__foot {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  margin-top: clamp(28px, 3.4vw, 52px);
  text-align: center;
}
.hero__foot .lead { max-width: 46ch; color: #4a4a4a; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------------------------------------------- floating CSS-3D objects */
.hero__objects { position: absolute; inset: 0; z-index: 0; pointer-events: none; perspective: 900px; }
.h3d {
  position: absolute; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 34px), calc(var(--my, 0) * var(--d) * 26px), 0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.h3d__bob { width: 100%; height: 100%; transform-style: preserve-3d; animation: h3dBob 7s ease-in-out infinite; }
.h3d__spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
@keyframes h3dBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* cube */
.h3d--cube { --s: clamp(58px, 6.4vw, 112px); left: 7%; top: 60%; }
.h3d--cube .h3d__spin { animation: h3dCube 16s linear infinite; }
.h3d--cube i {
  position: absolute; inset: 0; border-radius: 14%;
  background: linear-gradient(145deg, #FF8A5B, #FD4D12 55%, #C93500);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 -10px 24px rgba(120, 30, 0, 0.35);
}
.h3d--cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.h3d--cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.72); }
.h3d--cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.86); }
.h3d--cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.8); }
.h3d--cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.12); }
.h3d--cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.62); }
@keyframes h3dCube { from { transform: rotateX(-24deg) rotateY(0deg) rotateZ(8deg); } to { transform: rotateX(-24deg) rotateY(360deg) rotateZ(8deg); } }

/* gyroscope ring */
.h3d--ring { --s: clamp(84px, 9.6vw, 170px); right: 6%; top: 52%; }
.h3d--ring .h3d__spin { animation: h3dRing 18s linear infinite; }
.h3d--ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(20, 20, 20, 0.78); }
.h3d--ring i:nth-child(2) { transform: rotateY(60deg); }
.h3d--ring i:nth-child(3) { transform: rotateY(120deg); border-color: var(--accent); border-width: 2.5px; }
.h3d--ring b { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; margin: -11% 0 0 -11%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #FF8A5B 22%, #FD4D12 52%, #8A2500 100%); }
@keyframes h3dRing { from { transform: rotateX(68deg) rotateZ(0deg); } to { transform: rotateX(68deg) rotateZ(360deg); } }

/* spinning SPRYQ coin: stacked layers give it thickness */
.h3d--coin { --s: clamp(48px, 4.6vw, 80px); right: 13%; top: 3%; }
.h3d--coin .h3d__spin { animation: h3dCoin 6.5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.h3d--coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.h3d--coin img:nth-child(1) { transform: translateZ(4px); }
.h3d--coin img:nth-child(2) { transform: translateZ(2px); filter: brightness(0.7); }
.h3d--coin img:nth-child(3) { transform: translateZ(0); filter: brightness(0.55); }
.h3d--coin img:nth-child(4) { transform: translateZ(-2px); filter: brightness(0.7); }
.h3d--coin img:nth-child(5) { transform: translateZ(-4px) rotateY(180deg); }
@keyframes h3dCoin { from { transform: rotateY(0deg) rotateZ(-8deg); } to { transform: rotateY(360deg) rotateZ(-8deg); } }

/* glossy orb */
.h3d--orb { --s: clamp(30px, 3vw, 54px); left: 13%; top: 6%; }
.h3d--orb span { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 6%, #3a3a3a 24%, #141414 62%, #000 100%); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.45); }
.h3d--orb .h3d__bob { animation-duration: 5.5s; animation-delay: -2s; }
.h3d--ring .h3d__bob { animation-delay: -3.5s; }
.h3d--coin .h3d__bob { animation-delay: -1s; animation-duration: 6s; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .hero .hero__title { font-size: 5.6vw; letter-spacing: -0.055em; }
  .h3d--cube { top: 64%; left: 4%; }
  .h3d--ring { top: 60%; right: 3%; }
}
@media (max-width: 760px) {
  .hero { padding-top: 24px; overflow-clip-margin: 0px; }
  .hero__meta { gap: 8px 10px; margin-bottom: 22px; }
  .hero__meta .tag { height: 32px; padding-inline: 10px; font-size: 0.85rem; }
  .hero .hero__title { font-size: clamp(2.3rem, 11.6vw, 3.9rem); line-height: 0.93; letter-spacing: -0.05em; text-wrap: balance; }
  .hero__title .line, .hero__title .line > span { white-space: normal; display: block; }
  .hero__title .line:first-child, .hero__tilt { transform: none; }
  .hero__foot { margin-top: 24px; gap: 20px; }
  .hero__foot .lead { max-width: 36ch; font-size: 1rem; }
  /* objects tuck into the corners, peeking in from the edges */
  /* objects sit in the gaps: beside the meta line and either side of "ORDINARY." */
  .h3d--ring { --s: 48px; right: 4%; top: 8px; }
  .h3d--orb { --s: 22px; left: 8%; top: 22px; }
  .h3d--cube { --s: 36px; left: 3.5%; top: calc(24px + 66vw); }
  .h3d--coin { --s: 36px; right: 4%; top: calc(20px + 66vw); }
}
@media (max-width: 380px) {
  .hero .hero__title { font-size: 11.2vw; }
}
@media (prefers-reduced-motion: reduce) {
  .h3d__bob, .h3d__spin { animation: none !important; }
  .hero__tilt, .h3d { transition: none; transform: none; }
}

/* -------------------------------------------------------- 3D stage frame */
.stage-wrap { margin-top: clamp(48px, 6vw, 96px); }
.stage-shell { border-radius: var(--r-xl); background: linear-gradient(180deg, #ECEBE6, #E1E0DA); padding: clamp(10px, 4.2vw, 88px) clamp(10px, 4vw, 84px) 0; overflow: hidden; }
.stage {
  position: relative; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #0D0D0E;
  aspect-ratio: 16 / 8.4; min-height: 380px; max-height: 920px; width: 100%; isolation: isolate;
}
.stage__poster, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.is-ready .stage-canvas { opacity: 1; }
.stage.is-fallback .stage-canvas { display: none; }
.stage__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #EDEDEA; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stage__ui > * { position: absolute; display: flex; align-items: center; gap: 10px; }
.stage__tl { left: clamp(16px, 2.2vw, 32px); top: clamp(16px, 2.2vw, 30px); }
.stage__tr { right: clamp(16px, 2.2vw, 32px); top: clamp(14px, 2vw, 26px); }
.stage__bl { left: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.2vw, 30px); }
.stage__br { right: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.2vw, 30px); }
.stage__tl strong { font-weight: 700; letter-spacing: -0.04em; font-size: 1.15rem; text-transform: none; }
.stage__pill { pointer-events: auto; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; text-transform: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.stage__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(253, 77, 18, 0.18); animation: pulse 2.4s infinite; }

/* ------------------------------------------------------------ work grid */
.work-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: clamp(28px, 3.4vw, 56px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters--sticky { position: sticky; top: 12px; z-index: 30; padding: 8px; margin: -8px; border-radius: 20px; transition: background 0.4s, box-shadow 0.4s; }
.filters--sticky.is-stuck { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-glass); }
.filter-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(23, 23, 23, 0.12); background: var(--paper); color: var(--ink); white-space: nowrap;
  font-size: 0.9rem; font-weight: 560; letter-spacing: -0.01em; line-height: 1;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.2s var(--ease);
}
.filter-pill:has(sup) { padding: 0 6px 0 16px; }
/* project count: a round badge, vertically centred (was a tiny raised superscript) */
.filter-pill sup {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px;
  background: #F0EFEB; color: var(--muted); font-size: 0.74rem; font-weight: 620; line-height: 1; letter-spacing: 0;
  font-variant-numeric: tabular-nums; vertical-align: middle; position: static; top: auto;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.filter-pill:hover { border-color: rgba(23, 23, 23, 0.4); }
.filter-pill:active { transform: scale(0.97); }
.filter-pill:focus-visible { outline-offset: 2px; border-radius: 999px; }
.filter-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 8px 20px -10px rgba(17, 17, 17, 0.5); }
.filter-pill.is-active sup { background: var(--accent); color: #fff; }
/* empty categories stay readable — just quieter */
.filter-pill[data-empty] { color: #8A8A86; background: transparent; border-color: rgba(23, 23, 23, 0.1); box-shadow: none; }
.filter-pill[data-empty] sup { background: transparent; border: 1px solid rgba(23, 23, 23, 0.1); color: #A5A5A1; }
.filter-pill[data-empty].is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.eyebrow .section-index { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); }
.view-toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.view-toggle button { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.view-toggle .icon { width: 16px; height: 16px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5.5vw, 96px) var(--gap); }
.work-card { position: relative; }
.work-card.is-hidden { display: none; }
.work-card__link { display: block; }
.work-card__media {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--tint);
  transform: translateZ(0); isolation: isolate;
}
.work-card__media > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease), filter 0.8s var(--ease); }
.work-card__overlay {
  position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-content: end; gap: 4px 20px;
  padding: clamp(18px, 2.4vw, 40px); color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.62));
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.work-card__label { grid-column: 1; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; transform: translateY(14px); transition: transform 0.7s var(--ease); }
.work-card__name { grid-column: 1; font-size: clamp(1.4rem, 2.1vw, 2.2rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.05; transform: translateY(14px); transition: transform 0.7s 0.04s var(--ease); }
.work-card__desc { grid-column: 1; max-width: 46ch; font-size: 0.95rem; line-height: 1.45; opacity: 0.82; margin-top: 4px; transform: translateY(14px); transition: transform 0.7s 0.08s var(--ease); }
.work-card__arrow {
  grid-column: 2; grid-row: 1 / span 3; align-self: end; width: clamp(48px, 4vw, 64px); height: clamp(48px, 4vw, 64px); border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.work-card__arrow .icon { width: 42%; height: 42%; transition: transform 0.6s var(--ease); }
.work-card__visit {
  position: absolute; top: clamp(12px, 1.4vw, 22px); right: clamp(12px, 1.4vw, 22px); z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 560; color: var(--ink);
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), background 0.3s;
}
.work-card__visit:hover { background: #fff; }
.work-card__visit .icon { width: 15px; height: 15px; }
@media (hover: hover) {
  .work-card:hover .work-card__media > img { transform: scale(1.045); }
  .work-card:hover .work-card__overlay { opacity: 1; }
  .work-card:hover .work-card__label, .work-card:hover .work-card__name, .work-card:hover .work-card__desc { transform: none; }
  .work-card:hover .work-card__arrow { background: #fff; color: var(--ink); }
  .work-card:hover .work-card__arrow .icon { transform: rotate(45deg); }
  .work-card:hover .work-card__visit, .work-card__visit:focus-visible { opacity: 1; transform: none; }
}
@media (hover: none) { .work-card__visit { opacity: 1; transform: none; } }
.work-card__link:focus-visible .work-card__overlay { opacity: 1; }
.work-card__link:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }
.work-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding-top: clamp(16px, 1.6vw, 24px); }
.work-card__title { font-size: clamp(1.3rem, 2.05vw, 2.25rem); font-weight: 720; letter-spacing: -0.04em; line-height: 1; text-transform: uppercase; }
.work-card__info { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9rem; color: var(--muted); }
.work-card__info span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; margin-right: 14px; transform: translateY(-3px); }

/* thumbnail placeholder (used until a project thumbnail is added) */
.thumb-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.6vw, 44px);
  background: radial-gradient(120% 90% at 0% 0%, #fff 0%, transparent 60%), linear-gradient(135deg, var(--tint), #D9D8D2);
  color: var(--ink);
}
.thumb-ph__domain { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--muted); }
.thumb-ph__title { font-size: clamp(2rem, 5.2vw, 5.4rem); font-weight: 760; letter-spacing: -0.055em; line-height: 0.9; text-transform: uppercase; max-width: 9ch; }
.thumb-ph__foot { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.thumb-ph__foot span:last-child { display: inline-flex; gap: 4px; align-items: center; color: var(--ink); }

.work-empty { grid-column: 1 / -1; padding: clamp(48px, 7vw, 120px) clamp(20px, 4vw, 64px); border-radius: var(--r-lg); background: var(--paper); border: 1px dashed #D2D2CF; display: grid; gap: 14px; justify-items: start; }
.work-empty__title { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 650; letter-spacing: -0.04em; }
.work-empty p:not(.work-empty__title) { color: var(--muted); max-width: 46ch; margin-bottom: 8px; }
.work-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* index (list) view */
.work-index { border-top: 1px solid var(--line); }
.work-row { border-bottom: 1px solid var(--line); }
.work-row.is-hidden { display: none; }
.work-row a {
  display: grid; grid-template-columns: 48px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.2fr) 70px 40px; align-items: center; gap: 16px;
  padding: clamp(18px, 2vw, 30px) 0; transition: padding 0.5s var(--ease), color 0.3s;
}
.work-row__n, .work-row__year { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-row__title { font-size: clamp(1.4rem, 3.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; text-transform: uppercase; }
.work-row__cat, .work-row__type { font-size: 0.95rem; color: var(--muted); }
.work-row__arrow .icon { width: 28px; height: 28px; transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .work-index:hover .work-row a { color: #B8B8B4; }
  .work-index .work-row a:hover { color: var(--ink); padding-left: 16px; }
  .work-row a:hover .work-row__arrow .icon { transform: rotate(45deg); }
}
.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 70; width: clamp(240px, 22vw, 380px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.85); transition: opacity 0.35s var(--ease); background: var(--tint);
  box-shadow: var(--shadow-card);
}
.cursor-preview.is-on { opacity: 1; }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ------------------------------------------------------------- services */
.services { display: grid; gap: clamp(32px, 5vw, 96px); }
@media (min-width: 1000px) { .services { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); } }
.services__visual { position: relative; }
.services__frame { position: sticky; top: 12vh; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: #0D0D0E; }
.services__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); }
.services__frame img.is-active { opacity: 1; transform: none; }
.services__caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; padding: 16px 18px; border-radius: 16px; display: grid; gap: 6px;
}
.services__caption strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.services__caption span { font-size: 0.92rem; color: #4a4a4a; }
.service-list { border-top: 1px solid var(--line); counter-reset: svc; }
.service-row { border-bottom: 1px solid var(--line); }
.service-row__head {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; align-items: center; gap: 12px; text-align: left;
  padding: clamp(18px, 1.8vw, 28px) 0; transition: color 0.35s;
}
.service-row__n { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-row__title { font-size: clamp(1.35rem, 2.5vw, 2.6rem); font-weight: 620; letter-spacing: -0.04em; line-height: 1.04; }
.service-row__icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.5s var(--ease), background 0.3s, color 0.3s; }
.service-row__icon .icon { width: 16px; height: 16px; }
.service-row__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.service-row__body > div { overflow: hidden; }
.service-row__body p { color: #4a4a4a; max-width: 56ch; padding-left: 64px; }
.service-row__body ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 26px 64px; }
.service-row.is-active .service-row__body { grid-template-rows: 1fr; }
.service-row.is-active .service-row__icon { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(45deg); }
.service-list:hover .service-row__head { color: #A5A5A1; }
.service-list .service-row__head:hover, .service-row.is-active .service-row__head { color: var(--ink); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tags li { font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: #555; background: rgba(255, 255, 255, 0.6); }

/* ----------------------------------------------------------- industries */
.industries-pin { position: relative; overflow: hidden; }
.industries-track { display: flex; gap: var(--gap); padding-inline: var(--gutter); will-change: transform; }
.industry-card { flex: 0 0 clamp(280px, 30vw, 520px); }
.industry-card__link { display: block; height: 100%; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.4s, transform 0.6s var(--ease); }
.industry-card__link:hover { border-color: #CFCFCB; }
.industry-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.industry-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.industry-card__link:hover .industry-card__media img { transform: scale(1.05); }
.industry-card__body { padding: clamp(18px, 1.8vw, 28px); display: grid; gap: 12px; }
.industry-card__n { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.industry-card__body h3 { font-size: clamp(1.3rem, 1.7vw, 1.75rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; }
.industry-card__body p { color: #555; font-size: 0.97rem; line-height: 1.5; }
.industry-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; font-size: 0.95rem; margin-top: 6px; }
.industry-card__more .icon { transition: transform 0.4s var(--ease); }
.industry-card__link:hover .industry-card__more .icon { transform: translateX(4px); }
.industries-progress { height: 2px; background: var(--line); margin: clamp(28px, 3vw, 48px) var(--gutter) 0; border-radius: 2px; overflow: hidden; }
.industries-progress i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* industries page */
.industry-section { padding-block: clamp(64px, 8vw, 140px); border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.industry-section__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); }
@media (min-width: 1000px) { .industry-section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } .industry-section:nth-of-type(even) .industry-section__media { order: 2; } }
.industry-section__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #ddd; position: sticky; top: 24px; }
.industry-section__media img { width: 100%; height: 100%; object-fit: cover; }
.industry-section__body { display: grid; gap: 22px; }
.industry-section__body h2 { font-size: clamp(2rem, 3.6vw, 3.8rem); font-weight: 680; letter-spacing: -0.045em; line-height: 0.98; }
.industry-section__apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.industry-section__apps li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; display: flex; gap: 10px; align-items: center; }
.industry-section__apps .icon { color: var(--muted); }
.industry-related { display: grid; gap: 14px; }
.industry-related__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.industry-related .work-card__title { font-size: 1.1rem; }
.industry-related .work-card__overlay { display: none; }
.industry-nav { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- approach */
.approach-statement { max-width: 18ch; }
.approach-statement .w { display: inline-block; color: #C9C9C5; transition: color 0.2s; }
.pillars { display: grid; gap: var(--gap); margin-top: clamp(36px, 4.5vw, 72px); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.pillar__n { font-size: 0.8rem; color: var(--muted); }
.pillar h3 { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 640; letter-spacing: -0.035em; }
.pillar p { color: #4f4f4f; max-width: 40ch; }

.timeline { position: relative; margin-top: clamp(44px, 5.5vw, 96px); display: grid; gap: 0; }
.timeline__line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px 4vw; padding: 0 0 clamp(36px, 4vw, 64px) 48px; }
.step::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid #BDBDB9; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.is-active::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(253, 77, 18, 0.9); }
.step__n { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step__title { font-size: clamp(1.6rem, 3.2vw, 3.3rem); font-weight: 660; letter-spacing: -0.045em; line-height: 1; }
.step__text { color: #4f4f4f; max-width: 52ch; }
.step__out { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (min-width: 900px) {
  .timeline__line { left: calc(16.66% + 7px); }
  .step { grid-template-columns: 16.66% minmax(0, 1.2fr) minmax(0, 1fr); padding-left: 0; align-items: start; }
  .step::before { left: 16.66%; }
  .step__n { padding-top: 0.6em; }
  .step__title { padding-left: 48px; }
  .step__body { display: grid; gap: 12px; padding-top: 0.3em; }
}

/* ------------------------------------------------------------- why SPRYQ */
.why-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-item { padding: clamp(24px, 2.6vw, 40px) clamp(0px, 2vw, 32px) clamp(28px, 3vw, 48px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-height: clamp(200px, 18vw, 300px); }
@media (min-width: 700px) { .why-item { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); } .why-item:nth-child(2n+1) { border-left: 0; padding-left: 0; } }
@media (min-width: 1100px) { .why-item:nth-child(2n+1) { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 32px); } .why-item:nth-child(4n+1) { border-left: 0; padding-left: 0; } }
.why-item__n { font-size: 0.8rem; color: var(--muted); }
.why-item h3 { font-size: clamp(1.45rem, 2.1vw, 2.15rem); font-weight: 680; letter-spacing: -0.045em; line-height: 1; margin-top: auto; }
.why-item p { color: #555; font-size: 0.97rem; max-width: 34ch; }

/* --------------------------------------------------------------- pricing */
.pricing-grid { display: grid; gap: var(--gap); }
@media (min-width: 1000px) { .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.price-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.4vw, 40px); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
.price-card__head { display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.price-card__n { font-size: 0.85rem; color: var(--muted); }
.price-card__name { font-size: clamp(1.8rem, 2.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; text-transform: uppercase; }
.price-card__desc { color: #555; }
.price-card__price { display: grid; gap: 4px; padding-block: 18px; border-block: 1px solid var(--line); }
.price-card__price small { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price-card__price span { font-size: clamp(2.4rem, 3.6vw, 3.8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card__list { display: grid; gap: 0; flex: 1; }
.price-card__list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.price-card__list li span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.price-card--featured { background: var(--dark); color: #EDEDEA; border-color: var(--dark); }
.price-card--featured .price-card__desc, .price-card--featured .price-card__n { color: #9A9A96; }
.price-card--featured .price-card__price, .price-card--featured .price-card__list li { border-color: rgba(255, 255, 255, 0.1); }
.price-card--featured .price-card__list li span, .price-card--featured .price-card__price small { color: #8A8A87; }
.pricing-note { margin-top: 24px; font-size: 0.9rem; color: var(--muted); }
.custom-quote { margin-top: var(--gap); display: grid; gap: 20px; align-items: center; padding: clamp(24px, 3vw, 48px); border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(120deg, #fff, #F0F0EC); }
@media (min-width: 900px) { .custom-quote { grid-template-columns: 1fr auto; } }
.custom-quote h3 { font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 660; letter-spacing: -0.04em; }
.custom-quote p { color: #555; max-width: 60ch; margin-top: 8px; }
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.compare { width: 100%; min-width: 760px; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 1.05rem; font-weight: 680; letter-spacing: -0.02em; text-transform: uppercase; background: #FAFAF8; }
.compare tbody th { font-weight: 520; color: var(--muted); width: 22%; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------- testimonials */
.quotes { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { padding: clamp(24px, 3vw, 48px); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 28px; align-content: space-between; }
.quote blockquote { font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 450; }
.quote figcaption { display: grid; gap: 2px; font-size: 0.95rem; }
.quote figcaption span { color: var(--muted); }
.quote__meta { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }
.quote--placeholder { background: repeating-linear-gradient(135deg, #FBFBFA 0 14px, #F5F5F2 14px 28px); border-style: dashed; }
.quote--placeholder blockquote { color: #8a8a87; }
.quote--placeholder .tag { justify-self: start; }

/* ------------------------------------------------------------------- FAQ */
.faq-layout { display: grid; gap: clamp(32px, 5vw, 96px); }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); } .faq-layout__head { position: sticky; top: 12vh; align-self: start; } }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: clamp(20px, 2vw, 30px) 0; text-align: left; }
.faq__n { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq__text { font-size: clamp(1.15rem, 1.6vw, 1.65rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.2; }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.4s, transform 0.5s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.5s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q button[aria-expanded="true"] .faq__icon { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq__q button[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__inner { padding: 0 40px clamp(22px, 2.4vw, 34px) 56px; color: #4a4a4a; max-width: 72ch; }

/* --------------------------------------------------------------- contact */
.contact { position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact__bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; }
.contact__bg i:nth-child(1) { width: 42vw; height: 42vw; left: 46%; top: 6%; background: radial-gradient(circle, #FFC2A8, transparent 65%); }
.contact__bg i:nth-child(2) { width: 36vw; height: 36vw; left: 66%; top: 42%; background: radial-gradient(circle, #C9D4E8, transparent 65%); }
.contact__bg i:nth-child(3) { width: 30vw; height: 30vw; left: 38%; top: 55%; background: radial-gradient(circle, #F1D9C6, transparent 65%); }
.contact-layout { display: grid; gap: clamp(40px, 5vw, 96px); }
@media (min-width: 1100px) { .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.contact__title { max-width: 11ch; }
.contact__aside { display: grid; gap: 28px; margin-top: clamp(28px, 3vw, 44px); }
.contact__details { display: grid; gap: 10px; }
.contact__details a, .contact__details span { display: inline-flex; gap: 10px; align-items: center; font-size: 1.05rem; }
.contact__details .icon { color: var(--muted); }

.form { padding: clamp(22px, 3vw, 44px); border-radius: var(--r-xl); display: grid; gap: 18px; position: relative; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form__grid .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 560; letter-spacing: 0.04em; text-transform: uppercase; color: #555; display: flex; justify-content: space-between; }
.field label em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 450; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(23, 23, 23, 0.14);
  background: rgba(255, 255, 255, 0.78); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(23, 23, 23, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.06); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C2362B; box-shadow: 0 0 0 4px rgba(194, 54, 43, 0.08); }
.field__error { font-size: 0.85rem; color: #B42318; min-height: 0; display: none; }
.field.is-invalid .field__error { display: block; }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__legal { font-size: 0.85rem; color: var(--muted); max-width: 40ch; }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__submit .spinner { display: none; width: 18px; height: 18px; animation: spin 0.9s linear infinite; }
.form.is-loading .form__submit .spinner { display: block; }
.form.is-loading .form__submit .icon-arrow-right { display: none; }
.form.is-loading .form__submit { pointer-events: none; opacity: 0.8; }
.form__status { display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-size: 0.97rem; }
.form__status .icon { width: 22px; height: 22px; margin-top: 1px; }
.form__status.is-success { display: flex; background: #EAF7EE; color: #11603A; border: 1px solid #BFE3CC; }
.form__status.is-error { display: flex; background: #FDECEA; color: #8F1D14; border: 1px solid #F3C3BE; }
.form__done { display: none; text-align: center; padding: clamp(28px, 5vw, 64px) 12px; gap: 14px; justify-items: center; }
.form.is-sent .form__done { display: grid; }
.form.is-sent .form__fields { display: none; }
.form__done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.form__done-icon .icon { width: 28px; height: 28px; }
.form__done h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.04em; font-weight: 680; }
.form__done p { color: #555; max-width: 44ch; }

/* ---------------------------------------------------------- project page */
.project-head { text-align: center; padding-top: clamp(56px, 9vw, 160px); padding-bottom: clamp(40px, 6vw, 96px); display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 32px); }
.project-head__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; font-size: clamp(0.9rem, 0.5vw + 0.7rem, 1.15rem); }
.project-head__title { max-width: 14ch; }
.project-head__by { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1rem, 1vw + 0.6rem, 1.5rem); }
.project-head__by strong { font-weight: 650; border-bottom: 2px solid var(--line); }
.by-mark { width: 1.6em; height: 1.6em; object-fit: contain; flex: none; }
.project-hero__stage { border-radius: var(--r-xl); background: var(--tint); padding: clamp(14px, 5vw, 110px) clamp(10px, 5vw, 110px) 0; overflow: hidden; }
.browser { border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.browser__bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; background: #F3F3F1; border-bottom: 1px solid #E6E6E3; }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #D7D7D3; }
.browser__url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid #E6E6E3; font-size: 0.84rem; color: #555; max-width: 480px; margin-inline: auto; }
.browser__url .icon { width: 13px; height: 13px; }
.browser__visit { display: inline-flex; align-items: center; gap: 4px; font-size: 0.84rem; font-weight: 600; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: #fff; }
.browser__visit .icon { width: 13px; height: 13px; }
.browser__view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-intro { padding-block: clamp(48px, 6vw, 104px); }
.project-intro__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .project-intro__grid { grid-template-columns: 1.15fr 1fr; } }
.project-intro__head .eyebrow { margin-bottom: 18px; }
.project-intro__tagline { font-size: clamp(2.1rem, 4.6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; max-width: 14ch; text-wrap: balance; }
.project-intro__body { display: grid; gap: 26px; justify-items: start; padding-top: clamp(0px, 2.4vw, 40px); }
.project-intro__body p { font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.2rem); line-height: 1.6; color: #4a4a4a; max-width: 52ch; }
.project-intro__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 32px; padding-top: 22px; border-top: 1px solid var(--line, rgba(0, 0, 0, 0.1)); width: 100%; font-size: 0.95rem; font-weight: 550; }
.project-intro__facts li { display: grid; gap: 4px; }
.project-intro__facts span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 550; }
@media (max-width: 560px) { .project-intro__facts { grid-template-columns: 1fr 1fr; } }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .details-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.details-grid > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.details-grid dt { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.details-grid dd { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
.project-elements { padding-top: clamp(80px, 10vw, 180px); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.gallery__item { grid-column: span 12; }
.gallery__item--wide { grid-column: span 12; }
.gallery__item--narrow { grid-column: span 12; }
.gallery__item--half { grid-column: span 12; }
@media (min-width: 800px) {
  .gallery__item--wide { grid-column: span 7; }
  .gallery__item--narrow { grid-column: span 5; }
  .gallery__item--half { grid-column: span 6; }
}
.gallery__btn { display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); cursor: zoom-in; }
.gallery__btn img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.gallery__item--narrow .gallery__btn img { aspect-ratio: 1.14; }
.gallery__item--half .gallery__btn img { aspect-ratio: 4 / 3; }
.gallery__item--full .gallery__btn img { aspect-ratio: 4 / 3; }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 14px; font-size: 0.95rem; font-weight: 520; }
.gallery figcaption span { color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery figcaption em { flex-basis: 100%; font-style: normal; color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.project-tech { padding-block: clamp(80px, 10vw, 180px); text-align: center; display: grid; gap: clamp(28px, 4vw, 56px); justify-items: center; }
.project-tech__lead { font-size: clamp(1.2rem, 1.6vw, 1.7rem); font-weight: 380; letter-spacing: -0.02em; color: #3f3f3f; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1100px; }
.tag-pill { padding: 14px 26px; border-radius: 999px; border: 1px solid #CFCFCB; font-size: clamp(1rem, 1.2vw, 1.3rem); font-weight: 560; letter-spacing: -0.02em; background: rgba(255, 255, 255, 0.5); }
.project-visit { background: var(--dark); color: #F2F2F0; }
.project-visit__link { display: grid; justify-items: center; gap: 22px; padding: clamp(80px, 11vw, 200px) var(--gutter); text-align: center; position: relative; overflow: hidden; }
.project-visit__link .eyebrow { color: #8F8F8C; }
.project-visit__domain { font-size: clamp(2.2rem, 8vw, 9rem); font-weight: 720; letter-spacing: -0.06em; line-height: 0.95; overflow-wrap: anywhere; transition: color 0.4s; }
.project-visit__btn { width: clamp(64px, 6vw, 96px); height: clamp(64px, 6vw, 96px); border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform 0.6s var(--ease); }
.project-visit__btn .icon { width: 40%; height: 40%; }
.project-visit__link:hover .project-visit__btn { transform: rotate(45deg) scale(1.06); }
.project-visit__link:hover .project-visit__domain { color: var(--accent); }
.cta-band { padding-block: clamp(80px, 10vw, 180px); display: grid; justify-items: center; gap: clamp(24px, 3vw, 44px); text-align: center; }
.cta-band h2 { max-width: 16ch; }
.project-next { padding-bottom: clamp(100px, 10vw, 180px); }
.project-next__link { display: grid; gap: 18px; border-top: 1px solid var(--ink); padding-top: 22px; }
.project-next__label { display: flex; justify-content: space-between; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project-next__title { text-transform: uppercase; transition: letter-spacing 0.6s var(--ease); }
.project-next__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 7; background: var(--tint); display: block; }
.project-next__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.project-next__link:hover .project-next__media img { transform: scale(1.04); }
.project-missing { padding-block: clamp(80px, 12vw, 200px); display: grid; gap: 22px; justify-items: start; }

/* --------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: clamp(12px, 4vw, 64px); background: rgba(12, 12, 12, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(1600px, 100%); max-height: 82vh; border-radius: var(--r); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6); }
.lightbox__bar { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.1); color: #eee; align-items: center; }
.lightbox__bar button { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.1); }
.lightbox__bar button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__bar span { padding: 0 14px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lightbox .icon { width: 20px; height: 20px; }

/* ------------------------------------------------------- page transition */
.page-curtain { position: fixed; inset: 0; z-index: 200; background: var(--dark); pointer-events: none; transform: translateY(100%); }
.page-curtain.is-leaving { transition: transform 0.55s var(--ease-in-out); transform: translateY(0); }
.page-curtain.is-entering { transform: translateY(0); }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 28px; padding-block: 80px; }
.notfound__code { font-size: clamp(7rem, 30vw, 26rem); font-weight: 800; letter-spacing: -0.08em; line-height: 0.8; }

/* services: link to the live project that shows the service */
.service-row__proj {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; height: 40px; padding: 0 8px 0 16px;
  border-radius: 999px; border: 1px solid var(--line, rgba(0, 0, 0, 0.12));
  font-size: 0.88rem; color: var(--ink); background: rgba(255, 255, 255, 0.6);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-row__proj span { color: #777; }
.service-row__proj strong { font-weight: 700; letter-spacing: -0.01em; }
.service-row__proj .icon { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--accent); color: #fff; }
.service-row__proj:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.service-row__proj:hover span { color: #bbb; }

/* video projects: muted loop over the poster + "video" badge */
.work-card__media { position: relative; }
.work-card__video, .browser__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  z-index: 1; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; background: transparent;
}
.work-card__video.is-playing, .browser__video.is-playing { opacity: 1; }
.browser__view { position: relative; }
.media-badge {
  position: absolute; z-index: 3; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px;
  border-radius: 9px; border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(10, 10, 12, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: -0.01em; pointer-events: none;
}
.media-badge .icon { width: 11px; height: 11px; fill: currentColor; stroke: none; }
@media (max-width: 760px) { .media-badge { left: 10px; top: 10px; height: 26px; font-size: 0.75rem; } }

/* gallery video items: autoplaying muted loops (see initVideos in js/main.js) */
.gallery__vid { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0d0d0e; }
.gallery__vid video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.gallery__item--wide .gallery__vid video { aspect-ratio: 16 / 10; }
.gallery__item--narrow .gallery__vid video { aspect-ratio: 1.14; }

/* ------------------------------------------- why SPRYQ cards: hover */
.why-item { position: relative; isolation: isolate; overflow: hidden; }
.why-item > * { position: relative; z-index: 2; }
.why-item::before { /* ink fill that sweeps up */
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ink);
  clip-path: inset(100% 0 0 0); transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
.why-item::after { /* orange line across the top */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; z-index: 3; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
.why-item__go {
  position: absolute; top: clamp(18px, 2.2vw, 34px); right: clamp(14px, 1.6vw, 26px); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; transform: scale(0) rotate(-90deg); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.why-item__go .icon { width: 16px; height: 16px; }
.why-item__n, .why-item h3, .why-item p { transition: color 0.45s var(--ease), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
/* big outlined number + cursor glow live in one layer between fill and text */
.why-item { --x: 50%; --y: 50%; }
.why-item h3::after { content: none; }
@media (hover: hover) and (pointer: fine) {
  .why-item { cursor: default; }
  .why-item .why-item__glow {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
    background: radial-gradient(260px circle at var(--x) var(--y), rgba(253, 77, 18, 0.28), transparent 70%);
  }
  .why-item[data-n] .why-item__glow::after {
    content: attr(data-n); position: absolute; right: -0.06em; bottom: -0.28em;
    font-size: clamp(7rem, 11vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
    transform: translateY(40%); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .why-item:hover::before { clip-path: inset(0 0 0 0); }
  .why-item:hover::after { transform: scaleX(1); }
  .why-item:hover .why-item__glow { opacity: 1; }
  .why-item:hover .why-item__glow::after { transform: none; }
  .why-item:hover .why-item__go { transform: scale(1) rotate(0deg); }
  .why-item:hover .why-item__n { color: var(--accent); }
  .why-item:hover h3 { color: #fff; transform: translateY(-6px); }
  .why-item:hover p { color: #B9B9B4; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .why-item::before, .why-item::after, .why-item__go, .why-item__n, .why-item h3, .why-item p { transition: none; }
}
