/* ============================================================
   REFORMAS — Component Styles (Blue Theme)
   Extracted from EficiencIAl Studio's studio.css
   Overrides accent colors to blue for the main web
   ============================================================ */

/* ------------------------------------------------------------
   0. CUSTOM PROPERTIES (Blue overrides)
   ------------------------------------------------------------ */

:root {
  /* Color — blue palette */
  --accent:        #277a8a;
  --accent-hover:  #2d8fa1;
  --accent-light:  #6cd7ec;
  --gold:          #6cd7ec;
  --bg:            #171717;
  --bg-elevated:   #1a1a1a;
  --bg-card:       #1c1c1c;
  --text:          #ffffff;
  --text-muted:    #888888;
  --border:        #2a2a2a;

  /* Typography */
  --font-heading: 'Lexend', sans-serif;
  --font-body:    'Instrument Sans', -apple-system, sans-serif;
  --font-cta:     'Lexend', sans-serif;

  /* Font scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3rem;
  --fs-5xl:  4rem;
  --fs-6xl:  5rem;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}


/* ------------------------------------------------------------
   1. CONTAINER
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container--wide {
  max-width: 1400px;
}

.container--narrow {
  max-width: 800px;
}


/* ------------------------------------------------------------
   2. SECTION
   ------------------------------------------------------------ */

.section {
  padding: var(--space-4xl) 0;
}

.section--no-top {
  padding-top: 0;
}

.section--no-bottom {
  padding-bottom: 0;
}


/* ------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-cta);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
  font-weight: 500;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
}

.btn--sent {
  background-color: #22c55e !important;
  color: #fff !important;
  pointer-events: none;
}

.btn--ghost {
  background-color: transparent;
  color: var(--text);
  padding: 1rem 2.5rem;
  border: 1px solid var(--text);
  font-weight: 500;
}

.btn--ghost:hover {
  background-color: var(--text);
  color: var(--bg);
}

.btn--ghost-accent {
  background-color: transparent;
  color: var(--accent);
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  font-weight: 500;
}

.btn--ghost-accent:hover {
  background-color: var(--accent);
  color: #fff;
}

.btn--sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.7rem;
}

.btn--lg {
  padding: 1.2rem 3rem;
  font-size: var(--fs-sm);
}


/* ------------------------------------------------------------
   4. UTILITY CLASSES
   ------------------------------------------------------------ */

.text-accent  { color: var(--accent); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.section-desc {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.section-label-line {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.section-label-line__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-0  { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }


/* ------------------------------------------------------------
   5. DIVIDER
   ------------------------------------------------------------ */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: var(--space-2xl) 0;
  border: none;
}

.divider--subtle {
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}


/* ------------------------------------------------------------
   6. SERVICE HERO
   ------------------------------------------------------------ */

.service-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--space-4xl);
  padding-top: 80px;
}

.service-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.45);
  animation: kenBurns 28s ease-in-out infinite alternate;
}

.service-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(23,23,23,0.65) 50%, rgba(23,23,23,0.2) 100%),
    linear-gradient(to right, rgba(23,23,23,0.55) 0%, transparent 65%);
}

.service-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.service-hero__label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.service-hero__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.service-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.04;
  letter-spacing: 0.025em;
  margin-bottom: var(--space-xl);
  max-width: 820px;
}

.service-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.service-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: var(--space-2xl);
}

.service-hero__ctas {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.service-hero__stats {
  display: flex;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
}

.service-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.service-hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.service-hero__stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}


/* ------------------------------------------------------------
   7. SERVICE INTRO
   ------------------------------------------------------------ */

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.service-intro__label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: block;
}

.service-intro__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: var(--space-xl);
}

.service-intro__body {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.9;
}

.service-intro__body p + p {
  margin-top: var(--space-lg);
}

.service-problems {
  list-style: none;
  padding: 0;
  margin-top: var(--space-xl);
}

.service-problems li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.service-problems li::before {
  content: '\00D7';
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   8. SERVICE METRICS
   ------------------------------------------------------------ */

.service-metrics {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3xl) 0;
}

.service-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.service-metric {
  padding: var(--space-xl) var(--space-md);
  border-right: 1px solid var(--border);
}

.service-metric:last-child {
  border-right: none;
}

.service-metric__value {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.service-metric__label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 140px;
  margin: 0 auto;
}


/* ------------------------------------------------------------
   9. SERVICE PROCESS
   ------------------------------------------------------------ */

.service-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.service-process__grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(39,122,138,0.12));
  z-index: 0;
  pointer-events: none;
}

.service-process__step {
  position: relative;
  z-index: 1;
}

.service-process__num {
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  margin-bottom: var(--space-xl);
  transition: background-color 0.3s var(--ease-out);
}

.service-process__step:hover .service-process__num {
  background-color: rgba(39,122,138,0.1);
}

.service-process__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.service-process__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.75;
}


/* ------------------------------------------------------------
   10. BEFORE/AFTER SLIDER
   ------------------------------------------------------------ */

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider__img--after {
  clip-path: inset(0 0 0 50%);
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.ba-slider__handle::before {
  content: '\2039\203A';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -2px;
  pointer-events: none;
}

.ba-slider__label {
  position: absolute;
  bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  z-index: 1;
  pointer-events: none;
}

.ba-slider__label--before { left: var(--space-md); }
.ba-slider__label--after  { right: var(--space-md); }

.ba-slider--portrait { aspect-ratio: 9 / 16; max-width: 500px; margin-inline: auto; }

.ba-slider__hint {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
}


/* ------------------------------------------------------------
   11. STILLS GRID
   ------------------------------------------------------------ */

.stills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stills-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.stills-grid img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.stills-grid img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}


/* ------------------------------------------------------------
   12. ROOM CARDS
   ------------------------------------------------------------ */

.room-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.room-card__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.room-card__num {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent);
}

.room-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
}

.room-card__area {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.room-card__note {
  font-size: var(--fs-sm);
  color: var(--gold);
  margin-left: auto;
}

.room-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.room-card__phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.room-card__phase {
  text-align: center;
}

.room-card__phase img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.room-card--portrait .room-card__phase img {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-sm);
}

.room-card__phase-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}


/* ------------------------------------------------------------
   13. NODE DIAGRAM
   ------------------------------------------------------------ */

.node-diagram {
  position: relative;
}

.node-diagram__flow {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  min-height: 380px;
}

.node-diagram__objects {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 0 0 200px;
  z-index: 2;
}

.node-diagram__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.node-diagram__arrow {
  color: var(--accent);
  font-size: var(--fs-2xl);
  flex-shrink: 0;
  z-index: 2;
}

.node-diagram__result {
  flex: 0 0 240px;
  z-index: 2;
}

.node-diagram__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.node-diagram__svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: opacity 0.3s var(--ease-out);
}

.node-diagram--animated .node-diagram__svg path {
  animation: drawLine 1.5s var(--ease-out) forwards;
}

.node-diagram--animated .node-diagram__svg path:nth-child(2) { animation-delay: 0.2s; }
.node-diagram--animated .node-diagram__svg path:nth-child(3) { animation-delay: 0.4s; }
.node-diagram--animated .node-diagram__svg path:nth-child(4) { animation-delay: 0.6s; }
.node-diagram--animated .node-diagram__svg path:nth-child(5) { animation-delay: 0.8s; }

.node-diagram__result:hover ~ .node-diagram__svg path,
.node-diagram__flow:hover .node-diagram__svg path {
  opacity: 0.7;
}

.node-diagram__mobile-arrow {
  display: none;
  text-align: center;
  color: var(--accent);
  font-size: var(--fs-2xl);
  padding: var(--space-sm) 0;
}


/* --- Node Cards --- */

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
}

.node-card--object {
  border-color: rgba(39, 122, 138, 0.3);
  cursor: default;
}

.node-card--object:hover {
  transform: scale(1.06);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(39, 122, 138, 0.15);
}

.node-card--room {
  width: 280px;
}

.node-card--result {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(39, 122, 138, 0.08) 0%, var(--bg-card) 100%);
}

.node-card--result:hover {
  box-shadow: 0 0 40px rgba(39, 122, 138, 0.2);
}

.node-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.node-card--object .node-card__img-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(39,122,138,0.04) 100%);
  padding: var(--space-sm);
}

.node-card--room .node-card__img-wrap,
.node-card--result .node-card__img-wrap {
  aspect-ratio: 4 / 3;
}

.node-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node-card--object .node-card__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.node-card--object-lg .node-card__img-wrap {
  height: 100px;
}

.node-card--object-lg .node-card__img {
  width: 88px;
  height: 88px;
}

.node-card__emoji {
  font-size: 2rem;
}

.node-card__info {
  padding: var(--space-sm) var(--space-md);
}

.node-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.node-card__price {
  color: var(--gold);
}

.node-card__sublabel {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding: 0 var(--space-md) var(--space-sm);
}

.node-card__label {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  padding: var(--space-sm) var(--space-md) 0;
}

/* Tooltip */
.node-card__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.node-card--object:hover .node-card__tooltip {
  opacity: 1;
}

.node-card__tooltip-tag {
  font-size: 0.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.node-card__tooltip-verified {
  font-size: 0.6rem;
  color: #4ade80;
  margin-top: 2px;
}

/* Highlight on linked hover */
.node-card--highlight {
  transform: scale(1.06);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(39, 122, 138, 0.15);
}


/* --- Node Overlay (dots on renders) --- */

.node-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: pointer;
}

.node-overlay__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--ease-out);
}

.node-overlay__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: overlayPulse 2s var(--ease-out) infinite;
}

.node-overlay__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
  font-size: 0.6rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.node-overlay:hover .node-overlay__label,
.node-overlay--active .node-overlay__label {
  opacity: 1;
}

.node-overlay--right .node-overlay__label {
  left: auto;
  right: 0;
  transform: none;
}

.node-overlay--left .node-overlay__label {
  left: 0;
  transform: none;
}

.node-overlay:hover .node-overlay__dot,
.node-overlay--active .node-overlay__dot {
  transform: scale(1.5);
}

.node-overlay--active .node-overlay__pulse {
  border-color: #4ade80;
}


/* --- Node Badges --- */

.node-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-2xl);
}

.node-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.node-badge__icon {
  font-size: 0.9rem;
}


/* --- Node Flow --- */

.node-flow {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  min-height: 380px;
}

.node-flow__objects {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 0 0 200px;
  z-index: 2;
}

.node-flow__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.node-flow__arrow {
  color: var(--accent);
  font-size: var(--fs-xl);
  flex-shrink: 0;
  z-index: 2;
  opacity: 0.5;
  letter-spacing: 0.2em;
  text-shadow: 0 0 20px rgba(39, 122, 138, 0.5);
}

.node-flow__result {
  flex: 0 0 340px;
  z-index: 2;
}

.node-flow__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.node-flow__svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: opacity 0.3s var(--ease-out);
}

.node-diagram--animated .node-flow__svg path {
  animation: drawLine 1.5s var(--ease-out) forwards;
}

.node-diagram--animated .node-flow__svg path:nth-child(2) { animation-delay: 0.2s; }
.node-diagram--animated .node-flow__svg path:nth-child(3) { animation-delay: 0.4s; }
.node-diagram--animated .node-flow__svg path:nth-child(4) { animation-delay: 0.6s; }
.node-diagram--animated .node-flow__svg path:nth-child(5) { animation-delay: 0.8s; }

.node-flow:hover .node-flow__svg path { opacity: 0.7; }


/* --- Node Plano 2 --- */

.node-plano2__grid {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  justify-content: center;
}

.node-plano2__card {
  flex: 0 0 45%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.node-plano2__img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

.node-plano2__label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: rgba(0,0,0,0.7);
  color: var(--text);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.node-plano2__arrow {
  color: var(--accent);
  font-size: var(--fs-2xl);
  flex-shrink: 0;
}


/* --- Node Video --- */

.node-video__player {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}


/* ------------------------------------------------------------
   14. DIFF CARDS
   ------------------------------------------------------------ */

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.diff-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.diff-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}


/* ------------------------------------------------------------
   15. CTA BANNER
   ------------------------------------------------------------ */

.cta-banner {
  background: linear-gradient(135deg, rgba(39, 122, 138, 0.12) 0%, var(--bg-elevated) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.cta-banner__desc {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}


/* ------------------------------------------------------------
   16. PROJECT HERO
   ------------------------------------------------------------ */

.project-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--space-3xl);
}

.project-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.project-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.6) brightness(0.7);
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(23, 23, 23, 0.9) 0%,
    rgba(23, 23, 23, 0.35) 50%,
    rgba(23, 23, 23, 0.2) 100%
  );
}

.project-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.project-hero__genre {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background-color: rgba(39, 122, 138, 0.12);
  padding: 0.3rem 0.8rem;
  margin-bottom: var(--space-md);
}

.project-hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.project-hero__meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}


/* ------------------------------------------------------------
   17. PROJECT BODY
   ------------------------------------------------------------ */

.project-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.project-body__text {
  font-size: var(--fs-md);
  color: var(--text);
  line-height: 1.8;
}

.project-body__text p + p {
  margin-top: var(--space-lg);
}

.project-body__sidebar {
  position: sticky;
  top: 120px;
}

.project-body__detail {
  margin-bottom: var(--space-lg);
}

.project-body__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.project-body__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--text);
}

.project-body__techniques {
  list-style: none;
  padding: 0;
  margin-top: var(--space-sm);
}

.project-body__techniques li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.project-body__techniques li::before {
  content: '\2192 ';
  color: var(--accent);
  margin-right: var(--space-xs);
}


/* ------------------------------------------------------------
   18. PROJECT NAVIGATION
   ------------------------------------------------------------ */

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
}

.project-nav__link {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-out);
}

.project-nav__link:hover {
  color: var(--accent);
}

.project-nav__label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.project-nav__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--text);
  transition: color 0.3s var(--ease-out);
}

.project-nav__link:hover .project-nav__title {
  color: var(--accent);
}

.project-nav__link--next {
  text-align: right;
}


/* ------------------------------------------------------------
   19. PROJECT CARD & GRID
   ------------------------------------------------------------ */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  border-left: 3px solid transparent;
  transition: border-color 0.5s var(--ease-out);
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.project-card__img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease-out);
  filter: saturate(0.7) brightness(0.8);
  z-index: 0;
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}

.project-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-out);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(23, 23, 23, 0.9) 0%,
    rgba(23, 23, 23, 0.3) 50%,
    rgba(23, 23, 23, 0.1) 100%
  );
  transition: background 0.4s var(--ease-out);
}

.project-card__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
  width: 100%;
}

.project-card__genre {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(39, 122, 138, 0.3);
  padding: 0.2rem 0.6rem;
  margin-bottom: var(--space-sm);
}

.project-card__genre--new {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.project-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__client {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--gold);
  letter-spacing: 0.05em;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-card:hover .project-card__bg {
  transform: scale(1.03);
}

.project-card--hidden {
  display: none;
}


/* ------------------------------------------------------------
   20. SKETCHFAB EMBED
   ------------------------------------------------------------ */

.sketchfab-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sketchfab-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ------------------------------------------------------------
   21. VIDEO PLAYER
   ------------------------------------------------------------ */

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border-radius: var(--radius-lg);
}

.video-player__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s var(--ease-out);
  filter: brightness(0.75);
}

.video-player:hover .video-player__poster {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.video-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 50px;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 2;
  padding: 0;
}

.video-player__play svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.video-player:hover .video-player__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-player--playing {
  cursor: default;
}

.video-player--playing .video-player__poster,
.video-player--playing .video-player__play {
  display: none;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ------------------------------------------------------------
   22. CONTACT FORM
   ------------------------------------------------------------ */

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-muted);
  border-radius: 0;
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--accent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
  cursor: pointer;
}

.form-select option {
  background-color: var(--bg-card);
  color: var(--text);
}

.form-select optgroup {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  padding: 8px 0 4px;
}

.form-error {
  display: none;
  font-size: 0.75rem;
  color: #ff4d4d;
  margin-top: 0.25rem;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-bottom-color: #ff4d4d;
}

.form-success {
  text-align: center;
  padding: var(--space-2xl);
  color: #4ade80;
  font-size: var(--fs-lg);
}


/* ------------------------------------------------------------
   23. FILTER BAR
   ------------------------------------------------------------ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0 0.75rem 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn--active {
  color: var(--text);
  border-bottom-color: var(--accent);
}


/* ------------------------------------------------------------
   24. WIZARD (Questionnaire)
   ------------------------------------------------------------ */

.wizard {
  max-width: 800px;
  margin: 0 auto;
}

.wizard__progress {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-2xl);
}

.wizard__progress-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s var(--ease-out);
}

.wizard__progress-step--active {
  background: var(--accent);
}

.wizard__progress-step--done {
  background: var(--gold);
}

.wizard__step {
  display: none;
  animation: wizardFadeIn 0.4s var(--ease-out);
}

.wizard__step--active {
  display: block;
}

.wizard__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-md);
}

.wizard__subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.wizard__nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}


/* ------------------------------------------------------------
   25. DUEL (Style picker)
   ------------------------------------------------------------ */

.duel { text-align: center; }

.duel__question {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xl);
}

.duel__round-indicator {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.duel__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.duel__option {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}

.duel__option:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 122, 138, 0.4);
}

.duel__option--selected { border-color: var(--accent); }

.duel__swipe-hint {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-lg);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.duel__swipe-hint span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.duel__option--swiping-left {
  animation: swipeLeft 0.4s var(--ease-out) forwards;
}

.duel__option--swiping-right {
  animation: swipeRight 0.4s var(--ease-out) forwards;
}

.duel__option-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.duel__option-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.duel__option-label {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
}

.duel__option-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}


/* ------------------------------------------------------------
   26. CHECKBOX CARDS
   ------------------------------------------------------------ */

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.checkbox-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s var(--ease-out);
}

.checkbox-card:hover { border-color: rgba(39, 122, 138, 0.4); }

.checkbox-card--checked {
  border-color: var(--accent);
  background: rgba(39, 122, 138, 0.08);
}

.checkbox-card__icon { font-size: 1.5rem; margin-bottom: var(--space-sm); }

.checkbox-card__label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}


/* ------------------------------------------------------------
   27. UPLOAD ZONE
   ------------------------------------------------------------ */

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background 0.3s;
}

.upload-zone:hover,
.upload-zone--dragover {
  border-color: var(--accent);
  background: rgba(39, 122, 138, 0.05);
}

.upload-zone__icon { font-size: 2rem; margin-bottom: var(--space-md); }

.upload-zone__text { color: var(--text-muted); font-size: var(--fs-sm); }
.upload-zone__text em { color: var(--accent); font-style: normal; }

.upload-list { margin-top: var(--space-lg); }

.upload-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.upload-item__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.upload-item__info { flex: 1; min-width: 0; }

.upload-item__name {
  font-size: var(--fs-sm);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-item__desc {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  padding: var(--space-xs) 0;
  font-family: var(--font-body);
}

.upload-item__desc:focus { outline: none; border-color: var(--accent); color: var(--text); }

.upload-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--fs-lg);
  padding: var(--space-xs);
}

.upload-item__remove:hover { color: #f87171; }


/* ------------------------------------------------------------
   28. LINK ENTRY
   ------------------------------------------------------------ */

.link-entry {
  display: grid;
  grid-template-columns: 1fr 180px 40px;
  gap: var(--space-sm);
  align-items: end;
  margin-bottom: var(--space-md);
}

.link-entry__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--fs-lg);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-entry__remove:hover { color: #f87171; }


/* ------------------------------------------------------------
   29. SUMMARY SECTION (wizard review)
   ------------------------------------------------------------ */

.summary-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.summary-section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.summary-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.summary-style-item { text-align: center; }

.summary-style-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
}

.summary-style-item span { font-size: var(--fs-xs); color: var(--text-muted); }


/* ------------------------------------------------------------
   30. SCROLL REVEAL
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease,
              transform 0.8s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-left  { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(60px);  transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale { opacity: 0; transform: scale(0.9);        transition: opacity 1s ease, transform 1s ease; }
.reveal-up    { opacity: 0; transform: translateY(50px);   transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.reveal--visible,
.reveal-right.reveal--visible { opacity: 1; transform: translateX(0); }
.reveal-scale.reveal--visible { opacity: 1; transform: scale(1); }
.reveal-up.reveal--visible    { opacity: 1; transform: translateY(0); }


/* ------------------------------------------------------------
   31. STORY BLOCKS
   ------------------------------------------------------------ */

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}
.story-block:last-child { border-bottom: none; }
.story-block--reverse { direction: rtl; }
.story-block--reverse > * { direction: ltr; }
.story-block__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.story-block__text p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: var(--fs-md);
}
.story-block__img {
  border-radius: 12px;
  overflow: hidden;
}
.story-block__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}


/* ------------------------------------------------------------
   32. STAT PILLS
   ------------------------------------------------------------ */

.stat-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-lg); align-items: center; }
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  background: rgba(39,122,138,0.08);
  border: 1px solid rgba(39,122,138,0.2);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* ------------------------------------------------------------
   33. PARALLAX IMAGE
   ------------------------------------------------------------ */

.parallax-img { overflow: hidden; border-radius: 12px; }
.parallax-img img { transition: transform 0.3s ease; will-change: transform; }


/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}

@keyframes swipeLeft {
  to { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
}

@keyframes swipeRight {
  to { transform: translateX(120%) rotate(8deg); opacity: 0; }
}

@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}


/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {

  :root {
    --fs-6xl: 3.5rem;
    --fs-5xl: 2.75rem;
    --fs-4xl: 2.25rem;
    --fs-3xl: 2rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .stills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-intro {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-process__grid::before {
    display: none;
  }

  .service-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-metric {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-metric:nth-child(2),
  .service-metric:last-child {
    border-bottom: none;
  }

  .project-hero__title {
    font-size: var(--fs-4xl);
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

  :root {
    --fs-6xl:  2.5rem;
    --fs-5xl:  2rem;
    --fs-4xl:  1.75rem;
    --fs-3xl:  1.5rem;
    --fs-2xl:  1.35rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Section title */
  .section-title {
    font-size: var(--fs-3xl);
  }

  /* Buttons */
  .btn--primary,
  .btn--ghost,
  .btn--ghost-accent {
    padding: 0.85rem 2rem;
    width: 100%;
    justify-content: center;
  }

  /* Project grid */
  .project-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .project-card__title {
    font-size: var(--fs-xl);
  }

  /* Filter bar */
  .filter-bar {
    gap: var(--space-lg);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

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

  .filter-btn {
    white-space: nowrap;
  }

  /* Project hero / detail */
  .project-hero {
    min-height: 45vh;
    padding-bottom: var(--space-xl);
  }

  .project-hero__title {
    font-size: var(--fs-3xl);
  }

  /* Stills grid */
  .stills-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Project body */
  .project-body {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .project-body__sidebar {
    position: static;
  }

  /* Project navigation */
  .project-nav {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
  }

  .project-nav__link--next {
    text-align: left;
  }

  /* Contact form */
  .form-group {
    margin-bottom: var(--space-lg);
  }

  /* Service hero */
  .service-hero {
    min-height: 60vh;
    padding-bottom: var(--space-3xl);
  }

  .service-hero__title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .service-hero__stats {
    gap: var(--space-xl);
  }

  .service-hero__stat-value {
    font-size: var(--fs-2xl);
  }

  .service-process__grid {
    grid-template-columns: 1fr;
  }

  .service-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-metric__value {
    font-size: var(--fs-4xl);
  }

  /* Room cards */
  .room-card__phases {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
  }

  .room-card__phase {
    flex: 0 0 65%;
    scroll-snap-align: start;
  }

  .room-card__header {
    flex-wrap: wrap;
  }

  .room-card__note {
    margin-left: 0;
    width: 100%;
  }

  /* Diff grid */
  .diff-grid {
    grid-template-columns: 1fr;
  }

  /* Duel */
  .duel__options {
    grid-template-columns: 1fr;
  }

  /* Checkbox grid */
  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Link entry */
  .link-entry {
    grid-template-columns: 1fr;
  }

  .link-entry__remove {
    justify-self: end;
  }

  /* Summary grid */
  .summary-style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Story blocks */
  .story-block { grid-template-columns: 1fr; gap: var(--space-lg); padding: var(--space-2xl) 0; }
  .story-block--reverse { direction: ltr; }

  /* Node diagram */
  .node-diagram__flow {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }

  .node-diagram__objects {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .node-diagram__objects .node-card {
    flex: 0 0 calc(50% - var(--space-sm));
  }

  .node-diagram__center {
    width: 100%;
  }

  .node-diagram__result {
    flex: none;
    width: 100%;
  }

  .node-diagram__svg {
    display: none;
  }

  .node-diagram__mobile-arrow {
    display: block;
  }

  .node-diagram__arrow {
    display: none;
  }

  .node-card--room,
  .node-card--result {
    width: 100%;
  }

  .node-card__tooltip {
    display: none;
  }

  .node-badges {
    gap: var(--space-xs);
  }

  /* Node flow */
  .node-flow {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }

  .node-flow__objects {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: var(--space-sm);
  }

  .node-flow__objects .node-card {
    flex: 0 0 calc(50% - var(--space-sm));
  }

  .node-flow__center { width: 100%; }
  .node-flow__result { flex: none; width: 100%; }
  .node-flow__svg { display: none; }
  .node-flow__arrow { display: none; }

  .node-plano2__grid {
    flex-direction: column;
  }

  .node-plano2__card {
    flex: none;
    width: 100%;
  }

  .node-plano2__arrow {
    transform: rotate(90deg);
  }

  .node-overlay__label {
    font-size: 0.5rem;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 375px)
   ============================================================ */

@media (max-width: 375px) {
  :root {
    --fs-5xl: 2rem;
    --fs-4xl: 1.8rem;
    --fs-3xl: 1.5rem;
  }

  .service-hero__title {
    font-size: var(--fs-3xl);
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn--lg {
    padding: 1rem 2rem;
    font-size: var(--fs-xs);
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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