/* ============================================================
   karrangupta.com — homepage stylesheet (2026 redesign, v3)
   Self-contained: this page does not load the legacy css bundle.
   ============================================================ */

:root {
  --bg: #0b0a08;
  --surface: #14120e;
  --surface-2: #1c1913;
  --text: #f2efe7;
  --muted: #a49c8d;
  --line: rgba(242, 239, 231, 0.13);
  --accent: #e3a94e;
  --accent-strong: #f0bc66;
  --on-accent: #171204;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.kg-no-scroll { overflow: hidden; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

a { color: inherit; }

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

/* ---------- atmosphere: fixed scene behind hero + first sections ---------- */

/* Sits behind ALL content (negative z-index) and fades out on scroll via JS.
   Faint ledger ruling: financial-paper texture, not decoration. */
.atmo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(242, 239, 231, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(242, 239, 231, 0.022) 1px, transparent 1px);
  background-size: 130px 100%, 100% 104px;
}

.atmo::after {
  /* soft edge vignette so the ruling breathes */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 100% at 50% 40%, transparent 40%, var(--bg) 100%);
}

.grain {
  position: fixed;
  inset: -60px;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 78, 0.075), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.has-spotlight .spotlight { opacity: 1; }

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin-right: 14px;
  vertical-align: middle;
  opacity: 0.8;
}

.section { padding: 110px 0; position: relative; }

.section-head { max-width: 680px; margin-bottom: 64px; }

.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }

.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 rgba(227, 169, 78, 0);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 40px rgba(227, 169, 78, 0.35);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: rgba(242, 239, 231, 0.45); }

.link-arrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.link-arrow:hover { color: var(--accent-strong); }

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Children reveal via a `backwards`-fill animation (not a transition) so that,
   once revealed, hover/tilt transforms are free to move the elements again. */
.stagger > * { opacity: 0; }

.stagger.in > * {
  opacity: 1;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.stagger.in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger.in > *:nth-child(2) { animation-delay: 0.16s; }
.stagger.in > *:nth-child(3) { animation-delay: 0.27s; }
.stagger.in > *:nth-child(4) { animation-delay: 0.38s; }

/* ---------- nav ---------- */

.kg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.kg-nav.scrolled {
  background: rgba(11, 10, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.kg-nav.hidden-nav { transform: translateY(-100%); }

.kg-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

.kg-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.kg-nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.kg-nav-links a:not(.btn):hover { color: var(--text); }

.kg-nav .btn { padding: 11px 22px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  overflow: visible;
}

.hero-orb {
  position: absolute;
  top: 2%;
  right: -8%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 78, 0.15), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  animation: orb-breathe 9s ease-in-out infinite;
  will-change: transform;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-grid {
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 130px 0 70px;
}

.hero-copy .eyebrow {
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-title {
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-title .w {
  display: inline-block;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .w:nth-child(1) { animation-delay: 0.18s; }
.hero-title .w:nth-child(2) { animation-delay: 0.26s; }
.hero-title .w:nth-child(3) { animation-delay: 0.34s; }
.hero-title .w:nth-child(4) { animation-delay: 0.42s; }
.hero-title .w:nth-child(5) { animation-delay: 0.50s; }
.hero-title .w:nth-child(6) { animation-delay: 0.58s; }
.hero-title .w:nth-child(7) { animation-delay: 0.66s; }

.hero-title em {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 44px rgba(227, 169, 78, 0.35);
}

.hero-sub {
  max-width: 480px;
  margin-top: 26px;
  font-size: 17px;
  color: var(--muted);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.94s both;
}

.hero-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.06s both;
}

.hero-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57c97b;
  flex: none;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(87, 201, 123, 0.45); }
  55% { box-shadow: 0 0 0 7px rgba(87, 201, 123, 0); }
}

/* from-only keyframes: elements animate to their NATURAL styles, so media
   queries and hover/JS transforms keep working after the animation ends */
@keyframes rise {
  from { opacity: 0; transform: translateY(38px); }
}

/* hero photo */

.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(320px, 32vw, 500px);
  pointer-events: none;
  animation: photo-in 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

@keyframes photo-in {
  from { opacity: 0; transform: translateX(60px); }
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: auto -12% -18% -12%;
  height: 115%;
  background: radial-gradient(55% 55% at 50% 58%, rgba(227, 169, 78, 0.2), transparent 70%);
  filter: blur(14px);
}

.hero-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.1) brightness(0.96);
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
  will-change: transform;
}

/* ---------- career P&L card (the hero artifact) ---------- */

.pnl-card {
  position: absolute;
  left: calc(100% + 48px);
  bottom: 64px;
  width: 320px;
  z-index: 4;
  padding: 22px 24px 20px;
  border-radius: 18px;
  background: rgba(18, 16, 12, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(242, 239, 231, 0.06);
  animation:
    rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both,
    pnl-float 7s ease-in-out 2.4s infinite;
}

@keyframes pnl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.pnl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pnl-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pnl-spark { width: 84px; height: 24px; flex: none; }

.pnl-spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: spark-draw 1.4s ease-out 2s forwards;
}

@keyframes spark-draw {
  to { stroke-dashoffset: 0; }
}

.pnl-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 2px;
}

.pnl-row .lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.pnl-row .lead,
.pnl-total .lead {
  flex: 1;
  border-bottom: 1px dotted rgba(242, 239, 231, 0.2);
  transform: translateY(-4px);
}

.pnl-row b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pnl-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(227, 169, 78, 0.35);
}

.pnl-total .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.pnl-total b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(227, 169, 78, 0.3);
  white-space: nowrap;
}

.pnl-total b .up {
  font-size: 11px;
  vertical-align: 2px;
  margin-left: 1px;
}

.pnl-total b .unl {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 5px;
  opacity: 0.9;
}

/* ---------- logo ticker ---------- */

.brands { padding: 58px 0 30px; }

.brands-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}

.ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: kg-tick 40s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.logo-set {
  display: flex;
  align-items: center;
  gap: 84px;
  padding-right: 84px;
}

.logo-set img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.logo-set img:hover { opacity: 1; }

@keyframes kg-tick {
  to { transform: translateX(-50%); }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin-top: 60px;
}

/* no flex gap here — spacing lives inside each span (padding-right) so the
   -50% translate loops seamlessly */
.marquee-track {
  display: flex;
  width: max-content;
  animation: kg-tick 30s linear infinite;
}

.marquee span {
  padding-right: 0.3em; /* matches the internal "word · word" rhythm at the loop seam */
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 231, 0.22);
}

.marquee span em {
  font-style: normal;
  -webkit-text-stroke: 1px rgba(227, 169, 78, 0.55);
}

.marquee-cta {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
}

.marquee-cta .marquee-track { animation-duration: 22s; }

.marquee-cta span {
  padding-right: 0.3em;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 169, 78, 0.6);
  transition: color 0.3s ease;
}

.marquee-cta:hover span { color: rgba(227, 169, 78, 0.92); -webkit-text-stroke-color: transparent; }

/* ---------- why me ---------- */

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.prop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.prop::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 78, 0.09), transparent 70%);
}

.prop .idx {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 19px;
}

.prop h3 { font-size: 24px; margin: 16px 0 12px; }

.prop p { color: var(--muted); font-size: 15.5px; }

/* ---------- services ---------- */

.services {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.svc:hover {
  border-color: rgba(227, 169, 78, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.svc .tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(227, 169, 78, 0.35);
  border-radius: 100px;
  padding: 5px 13px;
  margin-bottom: 22px;
}

.svc h3 { font-size: 26px; margin-bottom: 12px; }

.svc > p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }

.svc ul {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.svc li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 14.5px;
}

.svc li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- case studies ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}

.case-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.case-card:hover {
  border-color: rgba(227, 169, 78, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.case-card .thumb {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.case-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .thumb img { filter: none; transform: scale(1.05); }

/* FX Replay thumb: no image asset yet, drawn with CSS/SVG */
.thumb-fxr {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 160% at 20% 0%, #14203a 0%, #0a0f1e 60%);
}

.thumb-fxr svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 72%;
  opacity: 0.85;
}

.thumb-fxr .fxr-mark {
  position: relative;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.18em;
  color: #fff;
}

.case-body { padding: 24px 26px 28px; }

.case-body .brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-body h3 { font-size: 22px; margin: 12px 0 8px; }

.case-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

.case-body .link-arrow { display: inline-block; font-size: 14.5px; transition: transform 0.2s ease; }

.case-card:hover .link-arrow { transform: translateX(5px); }

/* ---------- about ---------- */

.about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}

.portrait {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(227, 169, 78, 0.28);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(227, 169, 78, 0.14), transparent 60%);
  pointer-events: none;
}

.portrait img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: grayscale(1) contrast(1.08);
}

.about-copy h2 { font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 24px; }

.about-copy p { color: var(--muted); margin-bottom: 16px; }

.about-copy p strong { color: var(--text); font-weight: 600; }

.about-facts {
  list-style: none;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.about-facts li { font-size: 14.5px; color: var(--muted); }

.about-facts li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}

.about-facts a { color: var(--accent); text-decoration: none; }

/* ---------- real estate ---------- */

.re-panel {
  background:
    linear-gradient(rgba(242, 239, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 231, 0.035) 1px, transparent 1px),
    linear-gradient(140deg, var(--surface-2), var(--surface));
  background-size: 46px 46px, 46px 46px, cover;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 70px 64px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.re-panel::after {
  content: "";
  position: absolute;
  bottom: -140px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 78, 0.1), transparent 70%);
  pointer-events: none;
}

.re-panel h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 20px; }

.re-panel h2 em { font-style: italic; color: var(--accent); }

.re-panel p { color: var(--muted); margin-bottom: 14px; }

.re-panel p strong { color: var(--text); font-weight: 600; }

.re-points { list-style: none; }

.re-points li {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 22px;
  margin-bottom: 20px;
}

.re-points li strong { display: block; font-size: 16px; }

.re-points li span { color: var(--muted); font-size: 14.5px; }

/* ---------- final cta ---------- */

.cta-final {
  padding: 130px 0 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  bottom: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(227, 169, 78, 0.14), transparent 65%);
  pointer-events: none;
}

.cta-final h2 { font-size: clamp(38px, 5.6vw, 64px); max-width: 780px; margin: 0 auto; }

.cta-final h2 em { font-style: italic; color: var(--accent); text-shadow: 0 0 44px rgba(227, 169, 78, 0.35); }

.cta-final p {
  color: var(--muted);
  max-width: 540px;
  margin: 22px auto 40px;
  font-size: 18px;
}

.cta-final .alt {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
}

.cta-final .alt a { color: var(--accent); text-decoration: none; }

/* ---------- footer ---------- */

.kg-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  position: relative;
  z-index: 2;
}

.kg-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.kg-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.kg-footer a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.kg-footer a:hover { color: var(--text); }

.kg-footer .legal {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.kg-footer .legal a { text-decoration: underline; }

/* ---------- contact modal ---------- */

.kg-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 5, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kg-modal.open { display: flex; }

.kg-modal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.kg-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.kg-modal-close:hover { color: var(--text); border-color: rgba(242, 239, 231, 0.4); }

.kg-modal-panel h3 { font-size: 27px; }

.kg-modal-panel .modal-sub { color: var(--muted); font-size: 15px; margin: 8px 0 24px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227, 169, 78, 0.15);
}

.kg-modal .btn { width: 100%; text-align: center; margin-top: 6px; }

.kg-modal .btn[disabled], .kg-modal .btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.form-error {
  color: #e8806c;
  font-size: 14px;
  margin-top: 12px;
  min-height: 1em;
}

.consent {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(164, 156, 141, 0.75);
}

.consent a { color: var(--muted); }

.form-success { text-align: center; padding: 28px 0 14px; }

.form-success .check {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(87, 201, 123, 0.14);
  color: #57c97b;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success h4 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }

.form-success p { color: var(--muted); font-size: 15px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-photo { width: clamp(300px, 36vw, 440px); }
}

@media (max-width: 960px) {
  .props-grid, .svc-grid, .cases-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 440px; margin: 0 auto; }
  .re-panel { grid-template-columns: 1fr; padding: 48px 34px; gap: 38px; }
  .case-body h3 { font-size: 24px; }

  .hero { min-height: auto; }

  .hero-photo {
    right: -16vw;
    width: 62vw;
    max-width: 420px;
    opacity: 0.42;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  }

  .hero-copy { padding: 128px 0 64px; }

  .hero-sub { margin-top: 30px; }
  .hero-ctas { margin-top: 38px; }

  .pnl-card {
    position: static;
    width: 100%;
    max-width: 380px;
    margin-top: 52px;
  }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .kg-nav-links a:not(.btn) { display: none; }
  .about-facts { grid-template-columns: 1fr; }
  .kg-modal-panel { padding: 28px 22px; }
  .brands { padding-top: 40px; }
  .marquee, .marquee-cta { padding: 18px 0; }

  /* let the headline shed a line and the photo recede so the copy has air */
  .hero-title { font-size: clamp(44px, 12vw, 60px); }
  .hero-photo { opacity: 0.3; right: -22vw; }
  .hero-copy { padding-top: 120px; }
}

@media (max-width: 560px) {
  /* keep the eyebrow on one line on phones */
  .hero-copy .eyebrow { font-size: 10.5px; letter-spacing: 0.12em; }
  .hero-copy .eyebrow::before { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .marquee-track, .marquee-cta .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reveal, .stagger > *, .stagger.in > * { opacity: 1; transform: none; transition: none; animation: none; }
  .hero-copy .eyebrow, .hero-title .w, .hero-sub, .hero-ctas, .hero-note,
  .hero-photo, .hero-orb, .hero-note .dot, .pnl-card { animation: none; }
  .pnl-spark polyline { animation: none; stroke-dashoffset: 0; }
  .btn, .svc, .case-card, .case-card .thumb img { transition: none; }
  .spotlight { display: none; }
}
