/* ============================================
   SINGHAL ENTERPRISES — Home
   Concept: "The Descending Line"
   Editorial layout built around the rope-access
   diagonal from the logo. Serif authority, mono
   engineering labels, one live before/after wipe.
   ============================================ */

/* ========================================================
   HERO — "Living Glass" (full-bleed)
   The whole hero IS the facade glass: hazed on the left,
   crystal-clear on the right. A glowing squeegee auto-sweeps
   to clean it; drag anywhere to wipe it yourself.
   ======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

/* ---- full-bleed before/after glass ---- */
.hero-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: ew-resize;
  user-select: none;
  will-change: transform;
}
.hg-layer { position: absolute; inset: 0; overflow: hidden; }
.hg-layer img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  /* identical slow zoom on BOTH layers keeps the seam perfectly aligned.
     Starts at native scale (1.0) and barely moves, so the photo stays sharp. */
  animation: heroKen 28s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1.0)  translate(0, 0); }
  to   { transform: scale(1.045) translate(-0.8%, -1.2%); }
}
/* AFTER = clean, vivid, sunlit */
.hg-after img { filter: saturate(1.1) brightness(1.05) contrast(1.03); }
/* BEFORE = hazed, hard-water-grey — clipped to the LEFT of the squeegee */
.hg-before { clip-path: inset(0 calc(100% - var(--pos, 58%)) 0 0); }
.hg-before img { filter: grayscale(0.62) brightness(0.5) contrast(1.05) sepia(0.22); }
.hg-before::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(76deg, rgba(120,112,92,0.16) 0 3px, transparent 3px 12px),
    radial-gradient(70% 55% at 32% 22%, rgba(88,80,58,0.4), transparent 72%);
  mix-blend-mode: multiply;
}

/* the glowing squeegee divider */
.hg-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 58%);
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(180deg,
    transparent 0%, rgba(255,255,255,0.5) 12%,
    var(--orange) 50%, rgba(255,255,255,0.5) 88%, transparent 100%);
  box-shadow: 0 0 26px 2px rgba(242,106,27,0.55);
  z-index: 4;
  pointer-events: none;
}
.hg-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(242,106,27,0.55);
  animation: gripPulse 2.6s ease-in-out infinite;
}
@keyframes gripPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(242,106,27,0.5); }
  50%      { box-shadow: 0 8px 26px rgba(242,106,27,0.5), 0 0 0 12px rgba(242,106,27,0.12); }
}
.hero-glass:hover .hg-grip { animation-play-state: paused; }
.hg-grip svg { width: 26px; height: 26px; stroke: #fff; }

.hg-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5,9,26,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6px 11px;
  border-radius: 3px;
  z-index: 4;
  pointer-events: none;
}
.hg-tag--before { left: 22px; opacity: 0.85; }
.hg-tag--after  { right: 22px; color: var(--orange-light); }

/* ---- legibility scrim (left dark → clear right) + top nav shade ---- */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(5,9,26,0.96) 0%, rgba(5,9,26,0.88) 26%,
      rgba(5,9,26,0.55) 46%, rgba(5,9,26,0.12) 64%, rgba(5,9,26,0) 78%),
    linear-gradient(180deg, rgba(5,9,26,0.6) 0%, transparent 16%, transparent 82%, rgba(5,9,26,0.5) 100%);
}

/* ---- copy ---- */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;           /* allow the flex item to shrink below content size */
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-12) var(--space-8);
  pointer-events: none;   /* let drags pass through to the glass… */
}
.hero-copy { max-width: 620px; }
.hero-copy a, .hero-copy .hero-actions { pointer-events: auto; }  /* …but keep buttons clickable */

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}
.hero-eyebrow b { color: var(--orange-light); font-weight: 500; }
.hero-eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 6.6vw + 1rem, 7rem);
  line-height: 0.94;
  letter-spacing: -0.032em;
  color: #fff;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 40px rgba(5,9,26,0.55);
}
.hero-title .hl { display: block; }
.hero-title .em {
  display: block;
  padding-bottom: 0.18em;
  line-height: 1.02;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(105deg,
    var(--orange) 0%, var(--orange-light) 26%, #ffe7c7 44%,
    var(--orange-light) 62%, var(--orange) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: clearIn 1.1s var(--ease-out) 0.34s both, glassSheen 7s ease-in-out 1.6s infinite;
}
@keyframes glassSheen {
  0%, 100% { background-position: 128% 50%; }
  50%      { background-position: -28% 50%; }
}

.hero-lede {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 40ch;
  margin-bottom: var(--space-9);
}
.hero-lede strong { color: #fff; font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-9);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.hero-proof span { display: flex; align-items: center; gap: var(--space-2); }
.hero-proof b { color: #fff; font-weight: 600; }
.hero-proof .sep { width: 1px; height: 26px; background: rgba(255,255,255,0.18); }

/* staged "defog" entrance — text sharpens from fogged glass into focus */
@keyframes clearIn {
  0%   { opacity: 0; filter: blur(14px); transform: translateY(24px); }
  60%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0);    transform: translateY(0); }
}
.hero-eyebrow,
.hero-title .hl,
.hero-lede,
.hero-actions,
.hero-proof { animation: clearIn 1.1s var(--ease-out) both; }
.hero-eyebrow    { animation-delay: 0.05s; }
.hero-title .hl  { animation-delay: 0.16s; }
.hero-lede       { animation-delay: 0.5s;  }
.hero-actions    { animation-delay: 0.62s; }
.hero-proof      { animation-delay: 0.74s; }

/* mono corner detail */
.hero-coord {
  position: absolute;
  left: var(--space-8);
  bottom: 26px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  animation: fadeIn 1s var(--ease-out) 1.1s both;
}

/* drag hint (bottom-centre, over the glass) */
.hero-drag-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.hero-drag-hint svg { width: 22px; height: 22px; color: var(--orange-light); animation: nudge 2s ease-in-out infinite; }
.hero-drag-hint.hide { opacity: 0; }
@keyframes nudge { 0%,100%{transform:translateX(-3px)} 50%{transform:translateX(3px)} }

.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: fadeIn 1s var(--ease-out) 1.2s both;
}
.hero-scroll-hint::before {
  content: '';
  width: 34px; height: 1px;
  background: rgba(255,255,255,0.4);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleX(0.4);transform-origin:left;opacity:.4} 50%{transform:scaleX(1);opacity:1} }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero { min-height: 92vh; }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5,9,26,0.95) 0%, rgba(5,9,26,0.82) 50%, rgba(5,9,26,0.55) 100%),
      linear-gradient(180deg, rgba(5,9,26,0.6) 0%, transparent 20%, transparent 78%, rgba(5,9,26,0.6) 100%);
  }
  .hero-lede { max-width: none; }
  .hg-tag--before { display: none; }
  .hero-coord { display: none; }
}
@media (max-width: 620px) {
  .hero-inner { padding-left: 20px; padding-right: 20px; max-width: 100vw; }
  .hero-copy { width: 100%; max-width: calc(100vw - 40px); }
  .hero-title, .hero-lede, .hero-eyebrow, .hero-proof { max-width: 100%; overflow-wrap: break-word; }
  .hero-drag-hint { left: 50%; right: auto; transform: translateX(-50%); bottom: 20px; }
  .hg-tag--after { top: auto; bottom: 20px; transform: none; }
  .hero-title { font-size: clamp(2.9rem, 12vw, 4.2rem); }
  .hero-lede { font-size: var(--text-lg); max-width: 100%; }
  .hero-proof { gap: var(--space-4); font-size: 0.6rem; }
  .hero-proof .sep { height: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* ========================================================
   TRUST MARQUEE — real clients, mono, understated
   ======================================================== */
.trust {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-6) 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.trust-label {
  flex-shrink: 0;
  padding-left: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  max-width: 190px;
  line-height: 1.5;
}
.trust-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  width: max-content;
  animation: logoSlide 32s linear infinite;
}
.trust-track:hover { animation-play-state: paused; }
.trust-item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.trust-item .m {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--orange);
  margin-right: 10px;
  vertical-align: middle;
}
@media (max-width: 700px){ .trust-label{ display:none } }

/* ========================================================
   METRICS
   ======================================================== */
.metrics {
  background: var(--navy);
  color: #fff;
  padding: var(--space-20) 0;
  position: relative;
}
.metrics::before { /* thin descending rope accent */
  content: '';
  position: absolute; left: 8%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(242,106,27,0.4), transparent);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: var(--space-4) var(--space-8);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.metric:first-child { border-left: 0; }
.metric-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 3.4vw, 3.8rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}
.metric-num .suffix { color: var(--orange); }
.metric-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-4);
  line-height: 1.5;
}
@media (max-width: 800px){
  .metrics-grid{ grid-template-columns: repeat(2,1fr); gap: var(--space-8) 0; }
  .metric:nth-child(3){ border-left: 0; }
}
@media (max-width: 460px){
  .metrics-grid{ grid-template-columns: 1fr; }
  .metric{ border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-6) 0; }
  .metric:first-child{ border-top: 0; }
  .metrics::before{ display:none; }
}

/* ========================================================
   SERVICES — editorial index with live hover preview
   ======================================================== */
.svc { background: var(--paper); padding: var(--space-32) 0; }
.svc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
.svc-head p { max-width: 40ch; margin: 0; }

.svc-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-16);
  align-items: start;
}
.svc-list { border-top: 1px solid var(--gray-200); }
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-2);
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  position: relative;
  transition: padding-left var(--duration-base) var(--ease-out);
}
.svc-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--duration-base) var(--ease-out);
}
.svc-row:hover, .svc-row.is-active {
  padding-left: var(--space-6);
}
.svc-row:hover::before, .svc-row.is-active::before { transform: scaleY(1); }

.svc-idx {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gray-400);
  letter-spacing: 0.1em;
}
.svc-main { display: flex; align-items: center; gap: var(--space-5); }
.svc-ic {
  width: 42px; height: 42px; flex-shrink: 0;
  color: var(--navy);
  transition: color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-spring);
}
.svc-row:hover .svc-ic, .svc-row.is-active .svc-ic { color: var(--orange); transform: translateY(-2px); }
.svc-ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.svc-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.svc-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 4px 0 0;
}
.svc-arrow {
  font-family: var(--font-mono);
  color: var(--gray-300);
  font-size: 1.2rem;
  transition: color var(--duration-base), transform var(--duration-base) var(--ease-out);
}
.svc-row:hover .svc-arrow, .svc-row.is-active .svc-arrow { color: var(--orange); transform: translateX(6px); }

/* sticky preview */
.svc-preview {
  position: sticky;
  top: 120px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lift);
}
.svc-preview img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}
.svc-preview img.is-active { opacity: 1; transform: scale(1); }
.svc-preview::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,9,26,0.55), transparent 55%);
  z-index: 2;
}
.svc-preview-cap {
  position: absolute; left: 20px; bottom: 20px; z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.svc-preview-cap b { display:block; color: var(--orange-light); margin-bottom: 4px; }

@media (max-width: 900px){
  .svc-body{ grid-template-columns: 1fr; }
  .svc-preview{ display: none; }
  .svc-name{ font-size: var(--text-xl); }
}
@media (max-width: 760px){
  .svc-head{ flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .svc-head p{ max-width: none; }
}
@media (max-width: 520px){
  .svc-desc{ display:none; }
  .svc-main{ gap: var(--space-4); }
}

/* ========================================================
   METHOD — the descending line, literalized
   ======================================================== */
.method {
  background: var(--ink);
  color: #fff;
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}
.method::before {
  content: '';
  position: absolute; top: -10%; left: -10%;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(47,87,214,0.18), transparent 65%);
  pointer-events: none;
}
.method-head { text-align: center; max-width: 620px; margin: 0 auto var(--space-20); position: relative; z-index: 2; }
.method-head p { margin: 0 auto; }

.method-steps {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  z-index: 2;
}
.method-line { /* the rope connecting the steps */
  position: absolute;
  left: 39px; top: 12px; bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), rgba(242,106,27,0.15));
}
.method-line-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0;
  background: var(--orange-light);
  box-shadow: 0 0 14px var(--orange);
  transition: height 0.1s linear;
}
.mstep {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-16);
}
.mstep:last-child { padding-bottom: 0; }
.mstep-node {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--orange);
  z-index: 2;
  transition: border-color var(--duration-slow), box-shadow var(--duration-slow), background var(--duration-slow);
}
.mstep.is-lit .mstep-node {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 30px rgba(242,106,27,0.5);
}
.mstep-body { padding-top: var(--space-3); }
.mstep-k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-3);
}
.mstep-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.mstep-title em { font-style: italic; color: var(--orange-light); font-weight: 400; }
.mstep-desc { color: rgba(255,255,255,0.6); max-width: 46ch; margin: 0; line-height: 1.7; }

@media (max-width: 560px){
  .mstep{ grid-template-columns: 56px 1fr; gap: var(--space-5); }
  .mstep-node{ width: 56px; height: 56px; font-size: 0.9rem; }
  .method-line{ left: 27px; }
  .mstep-title{ font-size: var(--text-2xl); }
}

/* ========================================================
   WORK — offset project showcase
   ======================================================== */
.work { background: var(--paper); padding: var(--space-32) 0; }
.work-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-8); margin-bottom: var(--space-16);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.work-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--navy);
  cursor: pointer;
}
.work-card:nth-child(2){ margin-top: var(--space-16); }
.work-card:nth-child(3){ margin-top: var(--space-8); }
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.6s;
  opacity: 0.9;
}
.work-card:hover img { transform: scale(1.07); opacity: 1; }
.work-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,9,26,0.85) 0%, transparent 55%);
}
.work-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--space-6);
  transform: translateY(8px);
  transition: transform var(--duration-slow) var(--ease-out);
}
.work-card:hover .work-meta { transform: translateY(0); }
.work-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-light);
  display: block;
  margin-bottom: var(--space-2);
}
.work-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  color: #fff;
  letter-spacing: -0.01em;
}
.work-sub { font-size: var(--text-xs); color: rgba(255,255,255,0.6); font-family: var(--font-mono); letter-spacing: 0.06em; }
@media (max-width: 760px){
  .work-head{ flex-direction: column; align-items: flex-start; gap: var(--space-5); }
}
@media (max-width: 800px){
  .work-grid{ grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(2),.work-card:nth-child(3){ margin-top: 0; }
  .work-card:nth-child(3){ grid-column: span 2; aspect-ratio: 16/9; }
}
@media (max-width: 520px){
  .work-grid{ grid-template-columns: 1fr; }
  .work-card:nth-child(3){ grid-column: span 1; aspect-ratio: 3/4; }
}

/* ========================================================
   VALUES + QUOTE
   ======================================================== */
.values {
  background: var(--navy);
  color: #fff;
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}
.values-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-20);
  align-items: center;
}
.values-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.values-statement em { font-style: italic; color: var(--orange-light); }
.values-statement + .mono-label { color: rgba(255,255,255,0.5); margin-top: var(--space-6); display:block; }

.values-list { display: grid; gap: 0; }
.value-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: baseline;
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.value-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.value-k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--orange);
  letter-spacing: 0.1em;
}
.value-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: 2px;
}
.value-note { font-size: var(--text-sm); color: rgba(255,255,255,0.55); }
@media (max-width: 820px){
  .values-grid{ grid-template-columns: 1fr; gap: var(--space-12); }
}

.quote {
  background: var(--paper);
  padding: var(--space-32) 0;
}
.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.6;
  color: var(--orange);
  opacity: 0.16;
  display: block;
  margin-bottom: var(--space-2);
}
.quote-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw + 0.6rem, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: var(--space-8);
}
.quote-author {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.quote-author b { color: var(--orange-dark); font-weight: 500; }

/* ========================================================
   CTA
   ======================================================== */
.cta {
  background: var(--grad-hero);
  color: #fff;
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}
.cta::before { /* the rope, one last time */
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  width: 2px; height: 120%;
  transform: rotate(19deg);
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  box-shadow: 0 0 20px rgba(242,106,27,0.5);
  opacity: 0.5;
}
.cta::after {
  content: '';
  position: absolute; bottom: -20%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(47,87,214,0.22), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw + 1rem, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: var(--space-6);
}
.cta-title em { font-style: italic; font-weight: 400; color: var(--orange-light); }
.cta-lede {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  max-width: 52ch;
  margin: 0 auto var(--space-10);
}
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-10); }
.cta-flow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cta-flow .step { color: #fff; }
.cta-flow .arw { color: var(--orange); }


/* ========================================================
   CLIENT LOGOS (replaces the text marquee)
   ======================================================== */
.clients {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-16) 0;
  text-align: center;
}
.clients-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-10);
}
.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.clients-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-5);
  width: max-content;
  animation: logoSlide 32s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.clogo {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity var(--duration-base) var(--ease-out),
              filter var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}
.clogo:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-3px);
  border-color: rgba(242,106,27,0.35);
  background: rgba(255,255,255,0.02);
}
.clogo-mark { width: 46px; height: 46px; flex-shrink: 0; color: var(--orange-light); }
.clogo-mark svg { width: 100%; height: 100%; fill: currentColor; }
.clogo-txt { text-align: left; }
.clogo-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.clogo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}
.clients-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: var(--space-10);
}
@media (max-width: 640px){
  .clogo { flex: 0 0 250px; padding: var(--space-5); }
  .clients-track { animation-duration: 24s; }
}


/* Keep these two subtle brand animations running even when the OS
   requests reduced motion (client explicitly wants them visible). */
@media (prefers-reduced-motion: reduce) {
  /* keep the slow facade zoom + client marquee alive (client wants them);
     collapse the one-shot entrance motions to settled. */
  .hg-layer img {
    animation-duration: 26s !important;
    animation-iteration-count: infinite !important;
    animation-direction: alternate !important;
  }
  .clients-track {
    animation-duration: 32s !important;
    animation-iteration-count: infinite !important;
  }
  /* keep only the sheen alive; collapse the defog entrance to settled */
  .hero-title .em {
    animation: clearIn 0.01ms var(--ease-out) 0s both,
               glassSheen 7s ease-in-out 0s infinite !important;
  }
}
