/* ============================================================
   CLAYLAB - design system v2 "viewfinder"
   Palette: ink #0b0e0d - glass whites - orange #F07A2B (deep #B4561C) - bone #eef4f2
   Type: Arcon / Space Grotesk (display) - JetBrains Mono (labels)
   Signature: crop-mark corner frames + hairline grid
   ============================================================ */

@font-face {
  font-family: 'Arcon';
  src: url('../fonts/Arcon.otf');
  font-display: swap;
}

:root {
  --ink: #0b0e0d;
  --ink-2: #b4561c0d;
  --accent: #F07A2B;
  --accent-deep: #B4561C;
  --accent-soft: rgba(240, 122, 43, 0.14);
  --accent-glow: rgba(240, 122, 43, 0.45);
  --bone: #eef4f2;
  --muted: #93a8a3;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --tick: rgba(238, 244, 242, 0.75);
  --display: 'Space Grotesk', 'Arcon', sans-serif;
  --body: 'Arcon', 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(180, 86, 28, 0.14), transparent 60%),
    radial-gradient(800px 700px at -10% 45%, rgba(180, 86, 28, 0.08), transparent 55%);
  background-attachment: fixed;
}

::selection { background: var(--accent); color: var(--ink); }

.container-x {
  width: min(1240px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Register tick color so hover changes animate smoothly */
@property --tick {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(238, 244, 242, 0.75);
}

/* ---------- Signature: crop-mark corner frame ----------
   Draws 4 viewfinder corners with background gradients -
   no extra markup needed, just add class="frame". */
.frame {
  --tick-size: 16px;
  --tick-w: 1.5px;
  background-image:
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick));
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-size:
    var(--tick-size) var(--tick-w), var(--tick-w) var(--tick-size),
    var(--tick-size) var(--tick-w), var(--tick-w) var(--tick-size),
    var(--tick-size) var(--tick-w), var(--tick-w) var(--tick-size),
    var(--tick-size) var(--tick-w), var(--tick-w) var(--tick-size);
  background-repeat: no-repeat;
}

/* ---------- Bracket button (viewfinder CTA) ---------- */
.btn-bracket {
  --tick: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--bone);
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 0;
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
  /* corner ticks */
  background-image:
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick));
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right;
  background-size:
    12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px,
    12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px;
  background-repeat: no-repeat;
}
.btn-bracket:hover {
  --tick: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
/* fill sits inside the corner marks */
.btn-bracket {
  position: relative;
  isolation: isolate;
  background-color: transparent;
  backdrop-filter: none;
  padding: 0.95rem 1.9rem;
}
.btn-bracket::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: inset 0.3s var(--ease), background-color 0.3s var(--ease);
}
.btn-bracket:hover::before { inset: 3px; background-color: rgba(240, 122, 43, 0.14); }
.btn-bracket:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-bracket-lg {
  font-size: 0.92rem;
  padding: 1.2rem 2.6rem;
}
.btn-wide { width: 100%; margin-top: 0.6rem; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { display: none; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
body.has-cursor .cursor-dot {
  display: block;
  position: fixed;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 4000;
  pointer-events: none;
}
body.has-cursor .cursor-ring {
  display: block;
  position: fixed;
  top: -20px; left: -20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-glow);
  z-index: 3999;
  pointer-events: none;
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              top 0.25s var(--ease), left 0.25s var(--ease),
              background 0.25s var(--ease);
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  top: -28px; left: -28px;
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ---------- Reveal system ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.head {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px min(4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.head.is-scrolled {
  background: rgba(11, 14, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.head .logo img { display: block; height: 30px; width: auto; }

.head-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.head-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.head-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.head-links a:hover { color: #fff; text-decoration: none; }
.head-links a:hover::after,
.head-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Menu button (bracket style) */
.menu { min-width: 96px; }

/* ============================================================
   FULLSCREEN MENU
   ============================================================ */
.menu-container {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 88vw);
  height: 100%;
  z-index: 400;
  transform: translateX(105%);
  transition: transform 0.55s var(--ease);
  background: rgba(9, 12, 11, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--stroke);
  overflow-y: auto;
  display: flex;
}
body.menu-open .menu-container { transform: translateX(0); }

.menu-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 5rem 2.4rem 3rem;
}
.menu-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.menu-nav ul { list-style: none; margin: 0; padding: 0; }
.menu-nav ul li { overflow: hidden; border-bottom: 1px solid var(--stroke); }
.menu-nav ul li:first-child { border-top: 1px solid var(--stroke); }
.menu-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0.2rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--bone);
  text-decoration: none;
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}
.menu-link::before {
  content: "[ " attr(data-index) " ]";
  white-space: nowrap;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.25s;
}
.menu-link:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(12px);
}
.menu-link:hover::before { color: var(--accent); }

.menu-foot {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-foot a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
.menu-foot a:hover { color: var(--accent); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(5, 8, 7, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
body.menu-open .overlay { opacity: 1; pointer-events: auto; }

/* ============================================================
   HERO - calm, one statement, one CTA
   ============================================================ */
.cover {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(11, 14, 13, 0.42) 0%,
    rgba(11, 14, 13, 0.32) 45%,
    rgba(11, 14, 13, 0.80) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6vw;
  max-width: 900px;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.9s var(--ease) 0.2s forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner { opacity: 1; transform: none; animation: none; }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.3vw, 0.82rem);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.6rem;
}


.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 1.3rem;
  color: #fff;
}

.dot { color: var(--accent); }

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  letter-spacing: 0.08em;
  color: rgba(238, 244, 242, 0.65);
  margin: 0 0 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section.container-x { padding: clamp(3rem, 6vw, 5rem) 0 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1rem;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.work-counter {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--bone);
  white-space: nowrap;
  padding-bottom: 0.4rem;
}

/* ============================================================
   CLIENTS - moving banner, low-opacity logos, full on hover
   ============================================================ */
.logo-banner {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 1.5rem 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: inline-flex;
  align-items: center;
  animation: logo-marquee 40s linear infinite;
  will-change: transform;
}
.logo-banner:hover .logo-track { animation-play-state: paused; }
.logo-track a {
  flex: 0 0 auto;
  margin: 0 2.2rem;
  display: flex;
  align-items: center;
}
.logo-track img {
  max-height: 68px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.logo-track a:hover img {
  opacity: 1;
  transform: scale(1.06);
}
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (hover: none) {
  .logo-track img { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; }
}

/* ============================================================
   SERVICES - three cards on a hairline grid, new theme
   ============================================================ */
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  padding: 2.4rem 2rem 2.2rem;
  transition: background 0.35s var(--ease);
}
.service-card:hover { background: #1d1710; }

.service-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  transition: color 0.3s var(--ease);
}
.service-card:hover .service-num { color: var(--accent); }

.service-icon {
  display: block;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1.3rem;
}
.service-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.9rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.service-tags {
  margin-top: auto;                /* pin tags to the card bottom so all three line up */
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   PORTFOLIO - framed slider with counter + bracket arrows
   ============================================================ */
.work-carousel { position: relative; }
.work-track {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 0.2rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track .work-card {
  flex: 0 0 clamp(280px, 32%, 440px);
  scroll-snap-align: start;
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 12px;
  --tick-size: 18px;
  background-color: transparent;
  cursor: default;
  transition: --tick 0.3s;
}
.work-card:hover { --tick: var(--accent); }
.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.work-card .work-overlay em { transition: color 0.3s var(--ease); }
.work-card:hover .work-overlay em { color: var(--accent); }
.work-card .work-overlay strong { transition: transform 0.45s var(--ease); }
.work-card:hover .work-overlay strong { transform: translateX(6px); }
.work-overlay {
  position: absolute;
  inset: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 11, 10, 0.85));
  pointer-events: none;
}
.work-overlay em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(238, 244, 242, 0.7);
  margin-bottom: 0.35rem;
}
.work-overlay strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: #fff;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.1rem;
  margin-top: 1.8rem;
}

/* Bracket-style square arrows */
.carousel-arrow {
  --tick: var(--bone);
  width: 52px;
  height: 52px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bone);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s, opacity 0.25s;
  background-image:
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick));
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right;
  background-size:
    12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px,
    12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px;
  background-repeat: no-repeat;
}
.carousel-arrow:hover {
  --tick: var(--accent);
  color: var(--accent);
  background-color: rgba(240, 122, 43, 0.1);
}
.carousel-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.carousel-arrow.is-disabled {
  opacity: 0.18;
  pointer-events: none;
}

/* ============================================================
   FEEDBACK
   ============================================================ */
.quotes-carousel {
  position: relative;
  margin-top: 2rem;
}
.quotes-track {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--stroke);
  border: 1px solid var(--stroke);
}
.quotes-track::-webkit-scrollbar { display: none; }
.quotes-track .quote-card {
  flex: 0 0 clamp(290px, 33.34%, 440px);
  scroll-snap-align: start;
}
.quote-card {
  position: relative;
  margin: 0;
  background: var(--ink);
  padding: 2.2rem 1.9rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease);
}
.quote-card:hover { background: #1d1710; }
.quote-mark {
  display: block;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 0.75;
  margin-bottom: 1rem;
  pointer-events: none;
}
.quote-card blockquote {
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0;
  color: rgba(238, 244, 242, 0.88);
  font-size: 1rem;
  line-height: 1.7;
  flex: 1;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
.quote-card figcaption strong {
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.quote-card figcaption span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.quote-card figcaption a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quote-card figcaption a:hover { color: #ffa463; }



/* ============================================================
   FAQ - hairline accordion, centered
   ============================================================ */
.faq-section.container-x { padding-bottom: clamp(6rem, 10vw, 9rem); }
.faq-section { text-align: center; }
.faq-section .eyebrow,
.faq-section .section-title { text-align: center; }
.faq-list {
  margin: 2.2rem auto 0;
  max-width: 860px;
  text-align: left;
  border-top: 1px solid var(--stroke);
}
.faq-item {
  border-bottom: 1px solid var(--stroke);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.3rem 0.2rem;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--bone);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "[ + ]";
  white-space: pre;
  width: 2.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  flex: 0 0 auto;
  transition: color 0.25s var(--ease);
}
.faq-item[open] summary,
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary::before {
  content: "[ \2013\0020]";
  color: var(--accent);
}
.faq-item p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-item p {
  margin: 0;
  padding: 0 0.2rem 1.4rem 3.2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 64ch;
}

/* ============================================================
   FOOTER - sitemap left / big CTA right, hairline split
   ============================================================ */
.footer {
  border-top: 1px solid var(--stroke);
  background: rgba(6, 9, 8, 0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.footer-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--stroke);
}
.footer-sitemap nav { display: flex; flex-direction: column; }
.footer-sitemap nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.55;
  color: var(--bone);
  text-decoration: none;
  width: fit-content;
  transition: color 0.25s var(--ease), transform 0.3s var(--ease);
}
.footer-sitemap nav a:hover {
  color: var(--accent);
  transform: translateX(8px);
  text-decoration: none;
}

.footer-cta { text-align: right; }
.footer-cta .footer-label { margin-bottom: 1.8rem; }
.footer-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 2rem;
}
.footer-heading em { font-style: normal; color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-top: 2.2rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 0;
}
.footer-bottom a { color: var(--bone); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); text-decoration: none; }
.footer-social { text-align: right; }
.footer-social a { margin-left: 1.4rem; }
.footer-social a:first-child { margin-left: 0; }

.footer-copy {
  margin: 2.6rem auto 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   MODALS (Bootstrap 4 alpha, restyled)
   ============================================================ */
.portfolio-modal .modal-content {
  padding: 90px 0;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: rgba(10, 13, 12, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: none;
  color: var(--bone);
  font-family: var(--body);
}
.portfolio-modal .modal-content h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
}
.portfolio-modal .modal-content img {
  max-width: 65%;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.portfolio-modal .modal-content p {
  font-size: 1.2rem;
  color: rgba(238, 244, 242, 0.85);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.portfolio-modal .modal-content p a { color: var(--accent); }
.portfolio-modal .item-details {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.portfolio-modal .item-details strong { color: var(--bone); }

.portfolio-modal .close {
  position: absolute;
  top: 25px; right: 25px;
  width: 60px; height: 60px;
  cursor: pointer;
  opacity: 1;
}
.portfolio-modal .close:hover { opacity: 0.5; }
.portfolio-modal .close .lr {
  width: 1.5px; height: 60px;
  background-color: var(--bone);
  transform: rotate(45deg);
  margin: 0 auto;
}
.portfolio-modal .close .lr .rl {
  width: 1.5px; height: 60px;
  background-color: var(--bone);
  transform: rotate(90deg);
}
.portfolio-modal .close-button {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s;
}
.portfolio-modal .close-button:hover {
  background: var(--accent);
  color: var(--ink);
}
.portfolio-modal .close-button:focus { outline: 0; }
.portfolio-modal .modal-backdrop { display: none; opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .head-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .work-track .work-card { flex-basis: clamp(280px, 52%, 460px); }
  .quotes-track .quote-card { flex-basis: clamp(290px, 50%, 420px); }
  .footer-split { grid-template-columns: 1fr; }
  .footer-cta { text-align: left; }
  .footer-cta .footer-label { margin-bottom: 1.2rem; }
}

@media (max-width: 640px) {
  .head { padding: 10px 4vw; }
  .head .logo img { height: 26px; width: auto; }
  .menu, .menu-close { min-width: 82px; padding: 0.8rem 1.4rem; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-actions .btn-bracket { width: 100%; }
  .logo-track img { max-height: 48px; max-width: 140px; }
  .logo-track a { margin: 0 1.3rem; }
  .work-track .work-card { flex-basis: 82%; }
  .quotes-track .quote-card { flex-basis: 86%; }
  .carousel-arrow { width: 46px; height: 46px; }
  .faq-item p { padding-left: 0.2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-social { text-align: left; }
  .footer-social a { margin-left: 0; margin-right: 1.4rem; }
  .portfolio-modal .modal-content img { max-width: 100%; }
  .cover { min-height: 100svh; }
  .cover-video {
    object-fit: cover;
    object-position: 38% center;
  }
  .cover-shade {
    background: linear-gradient(180deg,
      rgba(11, 14, 13, 0.22) 0%,
      rgba(11, 14, 13, 0.14) 40%,
      rgba(11, 14, 13, 0.62) 100%);
  }
  .hero-title, .hero-sub { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
  
  
}

/* ============================================================
   V5 - PAGES, PRIMARY BUTTON, AUDIT, SERVICES STORY,
   PROJECT INDEX, ABOUT TIMELINE
   ============================================================ */

/* ---------- Primary button: orange fill, corners floating outside ---------- */
.btn-bracket.btn-accent {
  --tick: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.btn-bracket.btn-accent::before { background: var(--accent); }
.btn-bracket.btn-accent:hover { --tick: #fff; background-color: transparent; color: var(--ink); }
.btn-bracket.btn-accent:hover::before { inset: 3px; background: #ff9150; }

/* ---------- Small helpers ---------- */
.section-lead { max-width: 44rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0 0 0.5rem; }
.link-arrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.link-arrow:hover { color: #fff; text-decoration: none; }
.section-more { margin-top: 1.6rem; }
.carousel-nav .carousel-more { margin-right: auto; align-self: center; }
.page-end { height: clamp(4rem, 8vw, 7rem); }

/* ---------- Sub-page hero ---------- */
.page-hero.container-x { padding: clamp(8rem, 14vw, 11rem) 0 0; }
.page-hero .hero-title { font-size: clamp(2.2rem, 5.6vw, 4rem); max-width: 22ch; margin-bottom: 1rem; }
.page-hero .hero-title em { font-style: normal; color: var(--accent); }
.page-hero .hero-sub { margin-bottom: 0; }

/* ---------- Home: 4-step flow ---------- */
.services-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1201px) {
  .services-grid.flow .service-card:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 2.2rem;
    right: 2rem;
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--accent);
  }
}

/* ---------- Free audit (straight to WhatsApp) ---------- */
.audit-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem 2.5rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(240, 122, 43, 0.14), rgba(255, 255, 255, 0.02) 60%);
}
.audit-box .section-title { margin-bottom: 0; }
.audit-box .section-lead { margin-bottom: 1.2rem; }
.audit-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.audit-cta { justify-self: end; text-align: right; }
.audit-note {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Before / after ---------- */
.ba {
  --pos: 50%;
  position: relative;
  margin-top: 2rem;
  aspect-ratio: 1200 / 650;
  overflow: hidden;
  border: 1px solid var(--stroke);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.ba-handle::after {
  content: "\2039\2003\203A";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba-label {
  position: absolute;
  top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  background: rgba(11, 14, 13, 0.75);
  color: var(--bone);
  pointer-events: none;
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }
.ba-caption {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Services: stacking story cards ---------- */
.stack { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.stack-card {
  position: sticky;
  top: calc(96px + var(--i, 0) * 22px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 460px;
  padding: clamp(1.8rem, 3.5vw, 3rem);
  background: linear-gradient(160deg, #17120e, var(--ink) 55%);
  border: 1px solid var(--stroke);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.5);
}
.stack-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 122, 43, 0.8);
  margin-bottom: 1.4rem;
}
.stack-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.stack-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff;
  margin: 0 0 0.8rem;
}
.stack-card p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0 0 1.4rem; max-width: 34rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--stroke);
  padding: 0.45rem 0.7rem;
}

/* Mini visuals */
.viz {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0e1110;
}
.viz-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--stroke); }
.viz-bar i { width: 8px; height: 8px; border: 1px solid rgba(238, 244, 242, 0.35); }
.viz-bar span {
  margin-left: 10px;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.viz-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 0; }
.viz-tag {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.wf-nav { display: flex; align-items: center; gap: 10px; }
.wf-nav b { width: 58px; height: 12px; }
.wf-nav span { width: 30px; height: 6px; }
.wf-nav span:first-of-type { margin-left: auto; }
.wf-hero { flex: 1.3; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; }
.wf-line { display: block; height: 9px; }
.wf-line.w60 { width: 60%; }
.wf-line.w40 { width: 40%; }
.wf-btn { display: block; width: 86px; height: 20px; margin-top: 6px; }
.wf-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.viz-wire .wf-nav b, .viz-wire .wf-nav span, .viz-wire .wf-hero, .viz-wire .wf-line,
.viz-wire .wf-btn, .viz-wire .wf-grid div { border: 1px dashed rgba(240, 122, 43, 0.6); }

.viz-built .wf-nav b {
  width: auto;
  height: auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #fff;
}
.viz-built .wf-nav span { background: rgba(238, 244, 242, 0.35); }
.viz-built .wf-nav em { font-style: normal; font-family: var(--mono); font-size: 0.6rem; color: var(--accent); }
.viz-built .wf-hero { background: linear-gradient(120deg, #8f4214, #F07A2B 60%, #f7b07c); }
.viz-built .wf-hero strong { font-family: var(--display); font-size: clamp(1rem, 2vw, 1.5rem); color: #fff; line-height: 1.1; }
.viz-built .wf-hero small { font-family: var(--mono); font-size: 0.6rem; color: rgba(255, 255, 255, 0.85); }
.viz-built .wf-btn {
  width: auto;
  height: auto;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}
.viz-built .wf-grid div { position: relative; background: linear-gradient(180deg, #2b241e, #171412); }
.viz-built .wf-grid div::after {
  content: attr(data-price);
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--bone);
}

.viz-pay {
  align-items: center;
  justify-content: center;
  background: radial-gradient(420px 260px at 50% 40%, rgba(240, 122, 43, 0.16), transparent 70%), #0e1110;
}
.pay-card {
  width: min(320px, 86%);
  padding: 18px;
  background: #f4f1ec;
  color: #161412;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.viz-pay .pay-card p { display: flex; justify-content: space-between; max-width: none; margin: 0 0 8px; font-size: 0.82rem; line-height: 1.4; color: #161412; }
.viz-pay .pay-card .pay-head {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6560;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd6cc;
}
.viz-pay .pay-card .pay-total { font-weight: 700; padding-top: 8px; border-top: 1px solid #ddd6cc; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.pay-methods span {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 5px 8px;
  border: 1px solid #d6d0c8;
  color: #5b554f;
}
.pay-methods span.is-on { border-color: var(--accent); color: var(--accent-deep); }
.pay-btn {
  display: block;
  padding: 10px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.pay-stamp {
  position: absolute;
  top: 14%;
  right: 7%;
  padding: 6px 12px;
  border: 2px solid var(--accent);
  background: rgba(11, 14, 13, 0.88);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  animation: stamp 3.6s var(--ease) infinite;
}
@keyframes stamp {
  0%, 35% { opacity: 0; transform: rotate(-8deg) scale(1.6); }
  45%, 90% { opacity: 1; transform: rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: rotate(-8deg) scale(1); }
}

.flow-log {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 22px 22px 30px 46px;
}
.flow-log::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 38px;
  width: 1px;
  background: var(--stroke);
}
.flow-log li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--bone);
  opacity: 0.3;
  animation: flow-step 7s infinite;
}
.flow-log li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  background: var(--ink);
  animation: flow-dot 7s infinite;
}
.flow-log time { min-width: 3.2rem; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.flow-log li:nth-child(2), .flow-log li:nth-child(2)::before { animation-delay: 0.9s; }
.flow-log li:nth-child(3), .flow-log li:nth-child(3)::before { animation-delay: 1.8s; }
.flow-log li:nth-child(4), .flow-log li:nth-child(4)::before { animation-delay: 2.7s; }
.flow-log li:nth-child(5), .flow-log li:nth-child(5)::before { animation-delay: 3.6s; }
@keyframes flow-step { 0% { opacity: 0.3; } 6%, 80% { opacity: 1; } 100% { opacity: 0.3; } }
@keyframes flow-dot {
  0% { background: var(--ink); border-color: var(--muted); }
  6%, 80% { background: var(--accent); border-color: var(--accent); }
  100% { background: var(--ink); border-color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-log li { opacity: 1; animation: none; }
  .flow-log li::before { animation: none; background: var(--accent); border-color: var(--accent); }
  .pay-stamp { animation: none; opacity: 1; }
}

/* ---------- Projects: index list with hover preview ---------- */
.proj-tabs { display: flex; flex-wrap: wrap; gap: 1.8rem; margin: 2.4rem 0 1.2rem; }
.proj-tab {
  position: relative;
  padding: 0 0 6px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.proj-tab sup { margin-left: 4px; font-size: 0.62rem; color: var(--accent); }
.proj-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.proj-tab:hover, .proj-tab.is-active { color: #fff; }
.proj-tab.is-active::after { transform: scaleX(1); }
.proj-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.proj-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stroke); }
.proj-row[hidden] { display: none; }
.proj-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto 2rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) 0.2rem;
  border-bottom: 1px solid var(--stroke);
  color: var(--bone);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}
.proj-item:hover { text-decoration: none; color: var(--bone); }
.proj-no { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.proj-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.proj-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.proj-go {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.proj-thumb { display: none; }
@media (hover: hover) and (min-width: 992px) {
  .proj-list:hover .proj-item { opacity: 0.35; }
  .proj-list .proj-item:hover { opacity: 1; }
  .proj-item:hover .proj-name { color: var(--accent); transform: translateX(14px); }
  .proj-item:hover .proj-go { opacity: 1; transform: none; }
}
.proj-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  width: 300px;
  padding: 10px;
  background-color: rgba(11, 14, 13, 0.92);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.88);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.proj-preview.is-on { opacity: 1; transform: translateY(-50%) scale(1); }
.proj-preview img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.proj-preview p { margin: 10px 2px 2px; color: var(--bone); font-size: 0.86rem; line-height: 1.5; }

/* ---------- About: scroll timeline ---------- */
.tl { position: relative; margin-top: 3.5rem; }
.tl-track, .tl-fill { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; }
.tl-track { background: var(--stroke); }
.tl-fill {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform-origin: top;
  transform: scaleY(var(--tl, 0));
}
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; width: 50%; padding: 0 3.2rem 4.5rem 0; text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 4.5rem 3.2rem; text-align: left; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  top: 0.3rem;
  right: -7px;
  width: 13px;
  height: 13px;
  background: var(--ink);
  border: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -6px; }
.tl-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.tl-item h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: #fff;
  margin: 0.45rem 0 0.6rem;
}
.tl-item p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; max-width: 30rem; }
.tl-item:nth-child(odd) p { margin-left: auto; }
.tl-media { display: inline-block; width: min(100%, 360px); margin-top: 1.3rem; padding: 10px; }
.tl-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tl-logo { display: inline-block; height: 40px; width: auto; margin-top: 1.3rem; }
.tl-item .btn-bracket { margin-top: 1.4rem; }
.tl.is-ready .tl-item > *:not(.tl-dot) {
  opacity: 0.25;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.tl.is-ready .tl-item.is-active > * { opacity: 1; transform: none; }
.tl-item.is-active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(240, 122, 43, 0.15);
}
.tl-item.is-active .tl-date { color: var(--accent); }

/* ---------- Responsive (v5) ---------- */
@media (max-width: 1200px) {
  .services-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; box-shadow: none; }
  .proj-item { grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem; gap: 0.4rem 1rem; }
  .proj-no { grid-column: 1; grid-row: 1; }
  .proj-name { grid-column: 2; grid-row: 1; }
  .proj-go { grid-column: 3; grid-row: 1; opacity: 1; transform: none; }
  .proj-type { grid-column: 2; grid-row: 2; text-align: left; }
  .proj-thumb {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-top: 0.8rem;
  }
  .proj-preview { display: none; }
  .tl-track, .tl-fill { left: 6px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 3.4rem 2.6rem; text-align: left; }
  .tl-item:last-child, .tl-item:nth-child(even):last-child { padding-bottom: 0; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
  .tl-item:nth-child(odd) p { margin-left: 0; }
}
@media (max-width: 640px) {
  .services-grid.grid-4 { grid-template-columns: 1fr; }
  .ba-handle::after { width: 40px; height: 40px; font-size: 0.95rem; }
  .viz { aspect-ratio: 4 / 3.4; }
}

/* ============================================================
   V6 - SPLIT SECTIONS, PAYMENTS, LAB NUMBERS, TIMELINE NUMBERS
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split .section-title { margin-bottom: 1rem; }
.split .ba { margin-top: 0; }
.split .ba-caption { margin-top: 1.4rem; }

.get-label {
  display: block;
  margin: 1.8rem 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.get-list { list-style: none; margin: 0; padding: 0; }
.get-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stroke);
  color: var(--bone);
  font-size: 1rem;
}
.get-list li::before { content: "+"; font-family: var(--mono); color: var(--accent); }

/* The lab in numbers (Shopify partner) */
.lab-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem;
  margin-top: 2.6rem;
}
.lab-stat { position: relative; padding-top: 1.8rem; border-top: 1px solid rgba(238, 244, 242, 0.3); }
.lab-stat::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
}
.lab-num {
  display: flex;
  align-items: flex-end;
  height: clamp(3rem, 6vw, 4.6rem);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.lab-num img { height: 78%; width: auto; }
.lab-label {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Timeline big numbers */
.tl-big {
  display: block;
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 122, 43, 0.85);
}
.tl-big + h3 { margin-top: 0.2rem; }

@media (max-width: 991px) {
  .split { grid-template-columns: 1fr; }
  .lab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.6rem; }
}
.tl-big .dot { color: transparent; }

/* ============================================================
   V7 - PROJECT GALLERY, TIMELINE LOGO
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}
.gallery .work-card { text-decoration: none; }
.gallery .gallery-feature { grid-column: span 2; min-height: 300px; }
.gallery .gallery-feature img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  aspect-ratio: auto;
}
.proj-row[hidden] { display: none; }
.tl-mark { display: block; height: 56px; width: auto; margin-top: 1.4rem; }
.tl-item:nth-child(odd) .tl-mark { margin-left: auto; }

@media (max-width: 991px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .gallery-feature img { position: static; width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .tl-item:nth-child(odd) .tl-mark { margin-left: 0; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .gallery-feature { grid-column: auto; }
  .gallery .gallery-feature img { aspect-ratio: 1 / 1; }
}

/* ============================================================
   V8 - PAYMENT GATEWAY SOLUTIONS
   ============================================================ */
.pay-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.pay-intro .section-title { margin-bottom: 0.9rem; }

.pay-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-steps li { display: flex; align-items: center; gap: 0.6rem; }
.pay-steps li + li::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  margin: 0 0.9rem;
  background: linear-gradient(90deg, var(--accent), rgba(240, 122, 43, 0.25));
}
.pay-steps i { width: 8px; height: 8px; background: var(--accent); }
.pay-steps li.is-now { color: var(--accent); }
.pay-steps li.is-now i { box-shadow: 0 0 0 4px rgba(240, 122, 43, 0.2); animation: pay-pulse 2.4s ease-in-out infinite; }
@keyframes pay-pulse { 50% { box-shadow: 0 0 0 7px rgba(240, 122, 43, 0.05); } }

.pay-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(380px 260px at 50% 45%, rgba(240, 122, 43, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #0d100f;
}
.pay-stage .pay-card { width: min(330px, 78%); transform: rotate(-2deg); }
.pay-stage .pay-btn { animation: pay-press 6s var(--ease) infinite; }
@keyframes pay-press {
  0%, 36%, 52%, 100% { background: var(--ink); color: #fff; transform: none; }
  40%, 46% { background: var(--accent); color: var(--ink); transform: scale(0.97); }
}
.pay-toast {
  position: absolute;
  right: 6%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: rgba(11, 14, 13, 0.94);
  border: 1px solid var(--stroke);
  border-left: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: pay-toast 6s var(--ease) infinite;
}
.pay-toast .bi { font-size: 1.4rem; color: var(--accent); }
.pay-toast strong { display: block; font-family: var(--display); font-size: 0.92rem; color: #fff; }
.pay-toast small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted); }
@keyframes pay-toast {
  0%, 46% { opacity: 0; transform: translateY(16px); }
  54%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.pay-features { margin-top: 2.4rem; }
.pay-features .service-card { padding: 2rem 1.8rem; }
.pay-features .service-icon { font-size: 2.2rem; margin-bottom: 1.1rem; }
.pay-features .service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.pay-features .service-card p { margin-bottom: 1.2rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .pay-stage .pay-btn, .pay-steps li.is-now i { animation: none; }
  .pay-toast { animation: none; opacity: 1; }
}
@media (max-width: 991px) {
  .pay-panel { grid-template-columns: 1fr; }
  .pay-stage { min-height: 360px; }
}
@media (max-width: 640px) {
  .pay-toast { right: 4%; bottom: 5%; }
}
