:root {
  --bg: #f9fbfc;
  --bg-soft: #f3f7f8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-tint: #f7fafb;
  --text: #16576b;
  --text-soft: #4f6f7b;
  --text-dim: #87959d;
  --line: rgba(22, 87, 107, 0.1);
  --line-strong: rgba(246, 139, 31, 0.18);
  --accent: #f68b1f;
  --accent-soft: #ffb35f;
  --accent-mute: rgba(246, 139, 31, 0.08);
  --shadow-sm: 0 14px 36px rgba(22, 87, 107, 0.08);
  --shadow-lg: 0 28px 74px rgba(22, 87, 107, 0.11);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1360px;
  --font-main: "Alexandria", sans-serif;
  --font-accent: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(246, 139, 31, 0.06), transparent 22%),
    radial-gradient(circle at left 18%, rgba(22, 87, 107, 0.06), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfc 60%, #f3f7f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 87, 107, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 139, 31, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 85%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(246, 139, 31, 0.28);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  right: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(17, 35, 63, 0.07);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}

.brand img {
  width: 148px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  right: 14px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.28s ease, opacity 0.28s ease, top 0.28s ease;
}

.menu-toggle span:nth-child(1) {
  top: 17px;
}

.menu-toggle span:nth-child(2) {
  top: 24px;
}

.menu-toggle span:nth-child(3) {
  top: 31px;
}

body.menu-open .menu-toggle span:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(9, 20, 40, 0.42);
  backdrop-filter: blur(10px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(88vw, 380px);
  height: 100vh;
  padding: 24px 20px 28px;
  border-left: 1px solid rgba(17, 35, 63, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 249, 0.98)),
    radial-gradient(circle at top right, rgba(246, 139, 31, 0.11), transparent 32%);
  box-shadow: -24px 0 64px rgba(17, 35, 63, 0.16);
  transform: translateX(104%);
  transition: transform 0.36s ease;
  pointer-events: none;
}

body.menu-open .mobile-drawer {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-drawer-copy {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.mobile-drawer-copy .section-kicker {
  margin-bottom: 10px;
}

.mobile-drawer-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.mobile-drawer-nav {
  display: grid;
  gap: 10px;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(17, 35, 63, 0.05);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.mobile-drawer-nav a::after {
  content: "↗";
  color: var(--accent);
  font-family: var(--font-accent);
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a:focus-visible {
  transform: translateX(-4px);
  border-color: var(--line-strong);
  background: rgba(246, 139, 31, 0.04);
  box-shadow: 0 16px 28px rgba(17, 35, 63, 0.08);
}

.mobile-drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

body.menu-open {
  overflow: hidden;
}

.site-nav a,
.header-cta,
.primary-btn,
.secondary-btn,
.filter-chip,
.hero-primary-card,
.hero-mini-card,
.work-card,
.footer-column a,
.footer-bottom-links a {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--accent-mute);
  transform: translateY(-1px);
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid transparent;
}

.header-cta,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  box-shadow: 0 18px 42px rgba(246, 139, 31, 0.22);
}

.secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
}

.header-cta:hover,
.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(246, 139, 31, 0.28);
}

.secondary-btn:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(246, 139, 31, 0.04);
}

.hero-section {
  position: relative;
  overflow: clip;
  padding: 56px 0 30px;
}

.hero-canvas,
.hero-orb {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-orb {
  z-index: 0;
  filter: blur(18px);
}

.hero-orb-a {
  inset: 4% auto auto 60%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 139, 31, 0.12), rgba(246, 139, 31, 0));
}

.hero-orb-b {
  inset: 42% auto auto 4%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 87, 107, 0.12), rgba(22, 87, 107, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  align-items: stretch;
  --bs-gutter-x: 22px;
  --bs-gutter-y: 22px;
}

.hero-grid > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

.hero-grid > [class*="col-"] > .hero-panel {
  width: 100%;
  height: 100%;
}

.hero-panel,
.controls-shell,
.results-bar,
.reference-shell,
.cta-box,
.footer-shell {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.hero-copy,
.hero-stage,
.controls-shell,
.reference-shell,
.cta-box,
.footer-shell {
  border-radius: var(--radius-xl);
}

.hero-copy {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: start;
  gap: 16px;
  height: 100%;
  padding: 26px 28px 28px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background-color 0.32s ease;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.hero-copy::before {
  inset: 0 auto auto 28px;
  width: calc(100% - 56px);
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 139, 31, 0), rgba(246, 139, 31, 0.62), rgba(22, 87, 107, 0.32), rgba(22, 87, 107, 0));
  transform: translateY(-8px);
}

.hero-copy::after {
  top: -84px;
  left: -64px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 139, 31, 0.14), rgba(246, 139, 31, 0));
  filter: blur(8px);
  transform: scale(0.84);
}

.hero-copy:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 139, 31, 0.2);
  box-shadow: 0 34px 82px rgba(22, 87, 107, 0.15);
}

.hero-copy:hover::before,
.hero-copy:hover::after {
  opacity: 1;
}

.hero-copy:hover::before {
  transform: translateY(0);
}

.hero-copy:hover::after {
  transform: scale(1);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero-copy h1,
.section-heading h2,
.flow-copy h2,
.cta-box h2 {
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-copy h1 {
  max-width: 100%;
  font-size: 36px;
  line-height: 54px;
  font-weight: 800;
}

.hero-copy .eyebrow {
  margin-bottom: 0;
}

.hero-text,
.section-heading p,
.controls-copy p,
.flow-copy p,
.flow-steps p,
.cta-box p,
.work-body p {
  color: var(--text-soft);
  line-height: 1.95;
}

.hero-text {
  max-width: 62ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
  padding-top: 22px;
  align-self: end;
}

.hero-stats article {
  min-height: 106px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.hero-copy:hover .hero-stats article {
  transform: translateY(-2px);
  border-color: rgba(246, 139, 31, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px rgba(22, 87, 107, 0.08);
}

.hero-copy:hover .hero-stats article:nth-child(2) {
  transition-delay: 0.03s;
}

.hero-copy:hover .hero-stats article:nth-child(3) {
  transition-delay: 0.06s;
}

.hero-stats strong,
.flow-steps span {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 144px;
  grid-template-areas:
    "primary side"
    "bottom bottom";
  direction: rtl;
  height: 100%;
  width: 100%;
  padding: 26px;
  gap: 14px;
  align-content: start;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background-color 0.32s ease;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.hero-stage::before {
  inset: 0 26px auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 139, 31, 0), rgba(246, 139, 31, 0.54), rgba(22, 87, 107, 0.24), rgba(22, 87, 107, 0));
  transform: translateY(-8px);
}

.hero-stage::after {
  right: -56px;
  bottom: -64px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 87, 107, 0.12), rgba(22, 87, 107, 0));
  filter: blur(10px);
  transform: scale(0.84);
}

.hero-stage:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 87, 107, 0.14);
  box-shadow: 0 34px 82px rgba(22, 87, 107, 0.14);
}

.hero-stage:hover::before,
.hero-stage:hover::after {
  opacity: 1;
}

.hero-stage:hover::before {
  transform: translateY(0);
}

.hero-stage:hover::after {
  transform: scale(1);
}

.hero-stage > .hero-stage-slot {
  align-self: stretch;
  width: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
}

.interactive-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-primary-card,
.hero-mini-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(16, 35, 63, 0.04), rgba(16, 35, 63, 0.02));
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease,
    background-color 0.34s ease;
}

.hero-primary-card::before,
.hero-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.26) 42%, transparent 68%);
  opacity: 0;
  transform: translateX(-34%);
  transition: opacity 0.38s ease, transform 0.48s ease;
}

.hero-stage > *,
.hero-stack-side > *,
.hero-stack-bottom > *,
.hero-stage-slot,
.hero-mini-slot,
.portfolio-item {
  min-width: 0;
}

.hero-stage-slot,
.hero-mini-slot,
.portfolio-item {
  display: flex;
}

.hero-stage-slot > *,
.hero-mini-slot > *,
.portfolio-item > * {
  flex: 1;
}

.hero-primary-slot .hero-primary-card,
.hero-stack-side {
  height: 100%;
}

.hero-primary-slot {
  grid-area: primary;
}

.hero-stage > .hero-stage-slot:nth-child(2) {
  grid-area: side;
}

.hero-stage > .hero-stage-slot:nth-child(3) {
  grid-area: bottom;
}

.hero-primary-card::after,
.hero-mini-card::after,
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 139, 31, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-primary-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
  height: 100%;
  direction: rtl;
}

.hero-primary-media {
  display: grid;
  place-items: center;
  height: 198px;
  padding: 18px 20px 8px;
  overflow: hidden;
}

.hero-primary-media img,
.hero-mini-card img,
.work-media img {
  display: block;
  width: 100%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.55s ease;
}

.work-media img {
  margin: auto;
  height: 72%;
  padding: 24px;
}

.hero-primary-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 20px 24px;
}

.hero-primary-content span,
.hero-primary-content strong,
.hero-primary-content p,
.hero-mini-overlay span,
.hero-mini-overlay small {
  transition:
    transform 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease;
}

.hero-primary-content span,
.hero-mini-overlay small,
.work-topline small {
  display: inline-flex;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.hero-primary-content strong {
  display: block;
  margin-top: 10px;
  font-size: 1.14rem;
  line-height: 1.5;
}

.hero-primary-content p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.hero-stack-side,
.hero-stack-bottom {
  display: grid;
  min-width: 0;
  width: 100%;
  margin: 0;
  gap: 12px;
}

.hero-mini-card {
  display: flex;
  flex-direction: column;
  min-height: 144px;
  height: 144px;
  width: 100%;
  direction: rtl;
}

.hero-stack-side {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 100%;
}

.hero-stack-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}

.hero-stack-side > *,
.hero-stack-bottom > * {
  width: auto;
  margin: 0;
  padding: 0;
}

.hero-stack-side .hero-mini-card {
  min-height: 0;
  height: 100%;
}

.hero-stack-bottom .hero-mini-card {
  min-height: 0;
  height: 100%;
}

.hero-stack-side .hero-mini-card img {
  height: 100%;
}

.hero-mini-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(10, 20, 40, 0.88));
}

.hero-mini-overlay span {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.hero-mini-overlay small {
  font-size: 0.76rem;
  line-height: 1;
}

.hero-primary-card:hover,
.hero-mini-card:hover,
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(22, 87, 107, 0.16);
}

.hero-primary-card:hover,
.hero-mini-card:hover {
  border-color: rgba(246, 139, 31, 0.22);
  background: linear-gradient(180deg, rgba(246, 139, 31, 0.05), rgba(22, 87, 107, 0.03));
}

.hero-primary-card:hover::before,
.hero-mini-card:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.hero-primary-card:hover::after,
.hero-mini-card:hover::after,
.work-card:hover::after {
  opacity: 1;
}

.hero-primary-card:hover img,
.hero-mini-card:hover img,
.work-card:hover img {
  transform: scale(1.06);
}

.hero-primary-card:hover .hero-primary-content span,
.hero-mini-card:hover .hero-mini-overlay small {
  color: var(--accent);
}

.hero-primary-card:hover .hero-primary-content strong,
.hero-primary-card:hover .hero-primary-content p,
.hero-mini-card:hover .hero-mini-overlay span,
.hero-mini-card:hover .hero-mini-overlay small {
  transform: translateY(-3px);
}

.portfolio-section,
.reference-flow,
.cta-section {
  padding: 56px 0 34px;
}

.section-heading {
  align-items: end;
  margin-bottom: 24px;
  --bs-gutter-x: 24px;
  --bs-gutter-y: 16px;
}

.section-heading h2,
.flow-copy h2,
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  line-height: 1.34;
  font-weight: 800;
}

.controls-shell {
  padding: 26px;
}

.controls-top {
  align-items: end;
  --bs-gutter-x: 22px;
  --bs-gutter-y: 18px;
}

.controls-copy h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.6;
}

.controls-copy p {
  margin: 8px 0 0;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.search-box input {
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.search-box input:focus {
  border-color: rgba(246, 139, 31, 0.3);
  box-shadow: 0 0 0 4px rgba(246, 139, 31, 0.08);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 139, 31, 0.05), rgba(22, 87, 107, 0.02));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.filter-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(17, 35, 63, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 35, 63, 0.04);
  scroll-snap-align: start;
}

.filter-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: rgba(246, 139, 31, 0.22);
  transform: scale(0.8);
  transition: transform 0.28s ease, background-color 0.28s ease, opacity 0.28s ease;
}

.filter-chip.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  box-shadow: 0 16px 36px rgba(246, 139, 31, 0.24);
}

.filter-chip.active::before {
  background: rgba(255, 255, 255, 0.96);
  transform: scale(1);
}

.filter-chip:not(.active):hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(246, 139, 31, 0.04);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(22, 87, 107, 0.08);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 24px;
  padding: 18px 22px;
  border-radius: 22px;
}

.results-bar p {
  margin: 0;
  color: var(--text-soft);
}

.portfolio-grid {
  align-items: stretch;
  --bs-gutter-x: 22px;
  --bs-gutter-y: 22px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 139, 31, 0), rgba(246, 139, 31, 0.45), rgba(246, 139, 31, 0));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.work-media {
  height: clamp(180px, 20vw, 256px);
  display: flex;
  place-items: center;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  background: #eef4ff;
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
}

.work-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

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

.work-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-mute);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1;
}

.work-topline small {
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
}

.work-body h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.68;
}

.work-body p {
  margin: 0;
  font-size: 0.94rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.work-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 35, 63, 0.08);
  color: var(--accent);
  font-family: var(--font-accent);
  font-weight: 800;
}

.work-link-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(246, 139, 31, 0.08);
  transition: transform 0.28s ease, background-color 0.28s ease;
}

.work-card:hover::before {
  opacity: 1;
}

.work-card:hover .work-link-icon {
  transform: translateX(-4px) rotate(-8deg);
  background: rgba(246, 139, 31, 0.14);
}

.reference-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  padding: 28px;
}

.flow-copy {
  padding: 8px 6px;
}

.flow-steps {
  display: grid;
  gap: 14px;
}

.flow-steps article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(17, 35, 63, 0.05);
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background-color 0.32s ease;
}

.flow-steps article::before,
.flow-steps article::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.flow-steps article::before {
  inset: -35% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 139, 31, 0.18), rgba(246, 139, 31, 0));
  opacity: 0;
  transform: scale(0.7);
}

.flow-steps article::after {
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(246, 139, 31, 0), rgba(246, 139, 31, 0.88), rgba(246, 139, 31, 0));
  opacity: 0;
  transform: translateX(-32%);
}

.flow-steps article:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  border-color: rgba(246, 139, 31, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 239, 0.92));
  box-shadow: 0 26px 56px rgba(22, 87, 107, 0.14);
}

.flow-steps article:hover::before {
  opacity: 1;
  transform: scale(1);
}

.flow-steps article:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.flow-steps span {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-width: 64px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(246, 139, 31, 0.08);
  border: 1px solid rgba(246, 139, 31, 0.14);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.flow-steps article:hover span {
  transform: translateX(-6px);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  border-color: transparent;
  color: #ffffff;
}

.flow-steps h3 {
  margin: 10px 0;
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.flow-steps article:hover h3 {
  transform: translateX(-6px);
  color: var(--accent);
}

.flow-steps p {
  margin: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.flow-steps article:hover p {
  transform: translateX(-6px);
  color: var(--text);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  padding: 26px 0 36px;
}

.footer-shell {
  padding: 30px;
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.footer-brand-block img {
  width: 154px;
  height: auto;
}

.footer-brand-block p {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--text-soft);
  line-height: 1.9;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(246, 139, 31, 0.05);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-column a,
.footer-bottom-links a {
  width: fit-content;
  color: var(--text-soft);
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  color: var(--accent);
  transform: translateX(-4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 8px 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 38px 24px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(246, 139, 31, 0.16);
  background: rgba(246, 139, 31, 0.03);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

body.reveal-ready .reveal[data-revealed="false"] {
  opacity: 0;
  transform: translateY(28px);
}

body.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.55;
  }

  .hero-stage {
    align-items: start;
  }

  .hero-grid,
  .section-heading,
  .controls-top,
  .portfolio-grid,
  .footer-shell {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
  }
}

@media (max-width: 991px) {
  .portfolio-grid {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
  }

  .work-card {
    border-radius: 22px;
  }

  .work-media {
    height: clamp(170px, 28vw, 210px);
  }

  .work-body {
    gap: 12px;
    padding: 16px 14px 18px;
  }

  .work-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .work-tags {
    gap: 6px;
  }

  .work-tags span {
    padding: 7px 10px;
    font-size: 0.73rem;
  }

  .work-topline small {
    font-size: 0.76rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .work-body h3 {
    font-size: 1rem;
    line-height: 1.6;
  }

  .work-body p {
    font-size: 0.88rem;
    line-height: 1.72;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .work-link {
    padding-top: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta {
    display: none;
  }

  .header-row {
    min-height: 78px;
  }

  .hero-section {
    padding: 26px 0 20px;
  }

  .hero-copy {
    padding: 30px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.8rem, 5.4vw, 2.5rem);
    line-height: 1.4;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "primary"
      "side"
      "bottom";
    gap: 14px;
  }

  .hero-stage > .hero-stage-slot,
  .hero-mini-slot {
    display: block;
    min-height: auto;
    height: auto;
  }

  .hero-stack-side > .hero-mini-slot,
  .hero-stack-bottom > .hero-mini-slot {
    display: flex;
  }

  .hero-stage-slot > *,
  .hero-mini-slot > * {
    flex: none;
  }

  .hero-mini-card {
    display: flex;
    width: 100%;
  }

  .hero-stack-side .hero-mini-card,
  .hero-stack-bottom .hero-mini-card {
    height: 100%;
  }

  .hero-primary-card {
    min-height: auto;
    height: auto;
  }

  .hero-primary-media {
    height: auto;
    aspect-ratio: 1 / 0.74;
    padding: 18px 18px 8px;
  }

  .hero-stack-side,
  .hero-stack-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 12px;
    height: auto;
    align-items: start;
    align-content: start;
  }

  .hero-mini-card {
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 0.86;
  }

  .hero-stack-side .hero-mini-card,
  .hero-stack-bottom .hero-mini-card {
    height: auto;
  }

  .hero-primary-content {
    padding: 16px 18px 22px;
  }

  .hero-primary-content strong {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .hero-primary-content p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .hero-mini-overlay {
    gap: 3px;
    padding: 12px 14px;
  }

  .hero-mini-overlay span {
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .hero-mini-overlay small {
    font-size: 0.76rem;
  }

  .filter-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .results-bar,
  .cta-box,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .controls-shell {
    padding: 20px;
  }

  .results-bar {
    padding: 16px 18px;
  }
}

@media (max-width: 720px) {
  .header-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 14px 0;
  }
  
  .work-media img {
      height: 100%;
  }

  .hero-section {
    padding-top: 30px;
  }

  .hero-copy,
  .hero-stage,
  .controls-shell,
  .reference-shell,
  .cta-box,
  .footer-shell {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.5rem, 6.8vw, 1.95rem);
    line-height: 1.52;
  }

  .hero-text {
    font-size: 0.94rem;
    line-height: 1.85;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stack-side,
  .hero-stack-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-stack-side > .hero-mini-slot,
  .hero-stack-bottom > .hero-mini-slot {
    height: 156px;
  }

  .hero-mini-card {
    min-height: 156px;
    height: 156px;
    border-radius: 20px;
    aspect-ratio: auto;
    background: linear-gradient(180deg, rgba(16, 35, 63, 0.04), rgba(16, 35, 63, 0.02));
  }

  .hero-mini-card img {
    width: 100%;
    height: 100%;
    padding: 14px 14px 34px;
    object-fit: contain;
  }

  .hero-primary-card {
    min-height: auto;
    height: auto;
    border-radius: 22px;
  }

  .hero-primary-media {
    height: auto;
    aspect-ratio: 1 / 0.8;
    padding: 16px 16px 6px;
  }

  .hero-primary-content {
    padding: 14px 16px 18px;
  }

  .hero-primary-content span {
    font-size: 0.78rem;
  }

  .hero-primary-content strong {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-primary-content p {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.78;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .hero-mini-overlay {
    position: absolute;
    inset: auto 0 0;
    min-height: 54px;
    justify-content: flex-end;
    gap: 3px;
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, transparent, rgba(10, 20, 40, 0.9));
  }

  .hero-mini-overlay span {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.32;
    text-align: start;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .hero-mini-overlay small {
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    line-height: 1.2;
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: start;
  }

  .section-heading h2,
  .flow-copy h2,
  .cta-box h2 {
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.46;
  }

  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .portfolio-grid {
    --bs-gutter-y: 18px;
  }

  .work-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .work-body {
    padding: 16px 14px 16px;
  }

  .work-body h3 {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .work-body p {
    font-size: 0.88rem;
    line-height: 1.72;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .work-tags {
    gap: 6px;
  }

  .work-tags span {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .work-topline small {
    font-size: 0.74rem;
  }

  .results-bar p:last-child {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .portfolio-grid > .portfolio-item {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.92);
  }

  .brand img {
    width: 128px;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .hero-copy,
  .hero-stage,
  .controls-shell,
  .reference-shell,
  .cta-box,
  .footer-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(1.35rem, 7.2vw, 1.75rem);
    line-height: 1.48;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions a,
  .cta-actions a {
    width: min(100%, 220px);
  }

  .hero-stats article {
    min-height: auto;
  }

  .hero-stage {
    padding: 14px;
    gap: 12px;
  }

  .hero-primary-media {
    height: auto;
    aspect-ratio: 1 / 0.88;
    padding: 14px 14px 4px;
  }

  .hero-primary-content {
    padding: 13px 14px 16px;
  }

  .hero-primary-content strong {
    font-size: 0.96rem;
  }

  .hero-primary-content p {
    font-size: 0.9rem;
  }

  .hero-stack-side,
  .hero-stack-bottom {
    gap: 10px;
  }

  .hero-stack-side > .hero-mini-slot,
  .hero-stack-bottom > .hero-mini-slot {
    height: 144px;
  }

  .hero-mini-card {
    min-height: 144px;
    height: 144px;
    aspect-ratio: auto;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 35, 63, 0.04), rgba(16, 35, 63, 0.02));
  }

  .hero-mini-card img {
    width: 100%;
    height: 100%;
    padding: 12px 12px 30px;
  }

  .hero-mini-overlay {
    position: absolute;
    inset: auto 0 0;
    min-height: 50px;
    justify-content: flex-end;
    gap: 3px;
    padding: 10px 10px 9px;
    background: linear-gradient(180deg, transparent, rgba(10, 20, 40, 0.9));
  }

  .hero-mini-overlay span {
    color: #ffffff;
    font-size: 0.76rem;
    line-height: 1.3;
    text-align: start;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .hero-mini-overlay small {
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    line-height: 1.15;
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: start;
  }

  .controls-top {
    --bs-gutter-y: 16px;
  }

  .search-box input {
    min-height: 52px;
  }

  .filter-toolbar {
    padding: 14px;
    border-radius: 20px;
  }

  .filter-chip {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.88rem;
  }

  .portfolio-grid {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 14px;
  }

  .work-media {
    height: 160px;
  }

  .work-body {
    padding: 14px 12px 14px;
    gap: 10px;
  }

  .work-topline {
    gap: 10px;
  }

  .work-topline small {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
  }

  .work-tags span {
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  .work-body h3 {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .work-body p {
    font-size: 0.82rem;
    line-height: 1.66;
  }

  .work-link {
    padding-top: 14px;
    font-size: 0.86rem;
  }

  .work-link-icon {
    width: 34px;
    height: 34px;
  }

  .mobile-drawer {
    width: min(92vw, 360px);
    padding: 20px 16px 22px;
  }
}

@media (max-width: 420px) {
  .hero-primary-media {
    height: 164px;
  }

  .hero-mini-card {
    min-height: 132px;
    height: 132px;
  }

  .hero-stack-side > .hero-mini-slot,
  .hero-stack-bottom > .hero-mini-slot {
    height: 132px;
  }

  .hero-mini-card img {
    height: 100%;
    padding: 10px 10px 28px;
  }

  .hero-mini-overlay {
    min-height: 46px;
    padding: 9px 9px 8px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .hero-stage:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: var(--shadow-lg);
  }

  .hero-stage:hover::before,
  .hero-stage:hover::after {
    opacity: 0;
  }

  .hero-copy:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: var(--shadow-lg);
  }

  .hero-copy:hover::before,
  .hero-copy:hover::after {
    opacity: 0;
  }

  .hero-copy:hover .hero-stats article {
    transform: none;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
  }

  .hero-stage .interactive-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .hero-stage .interactive-card:hover::after {
    opacity: 0;
  }
}
