:root {
  --bg: #0a0908;
  --bg-2: #100e0c;
  --bg-3: #1a1714;
  --text: #f3eee4;
  --text-dim: #8a847a;
  --text-muted: #595449;
  --accent: #c4ff3d;
  --accent-warm: #ff6b35;
  --line: rgba(243, 238, 228, 0.08);
  --line-2: rgba(243, 238, 228, 0.16);
  --glass: rgba(243, 238, 228, 0.04);
  --glass-border: rgba(243, 238, 228, 0.10);

  /* Apple system sans stack. SF Pro is not webfont-licensed, so this resolves
     to real SF Pro on Apple devices and degrades to Helvetica/Arial elsewhere. */
  --font-sans: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Logo mark palette — graphite chassis, single lime accent.
     Tuned for legibility on --bg (#0a0908). Ratios noted vs --bg. */
  --logo-chassis:   #232622;  /* 1.30:1 */
  --logo-chassis-2: #2f342e;  /* 1.50:1 */
  --logo-chassis-3: #3a4139;  /* 1.79:1 */
  --logo-edge:      #4d534b;  /* 2.51:1 — silhouette definition */
  --logo-screen:    #e9e7de;  /* 16.06:1 */
  --logo-ink:       #14170f;  /* 14.62:1 on --logo-screen */
  --logo-green:     #4f6b12;  /*  4.92:1 on --logo-screen */
  --logo-muted:     #9aa096;  /*  2.30:1 on --logo-screen */
  --logo-grey:      #6f766d;
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

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

/* Background atmosphere */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--text);
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, mix-blend-mode 0.3s ease;
  mix-blend-mode: difference;
}
.cursor-ring.hover {
  width: 70px; height: 70px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: difference;
}
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

/* Split-panel exit columns */
.loader-panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 1;
  pointer-events: auto;
}
.loader-panel {
  background: var(--bg);
  position: relative;
  will-change: transform;
}
.loader-panel:not(:last-child) {
  border-right: 1px solid rgba(243, 238, 228, 0.04);
}

.loader-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px 40px;
  pointer-events: none;
}
@media (max-width: 720px) { .loader-content { padding: 24px 20px; } }

/* Top row */
.loader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.loader-mark {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.18em;
}
.loader-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.loader-status .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* Center brand */
.loader-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}



/* Lockup: huge PNG + supporting Webtech Solutions */
.loader-lockup {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
}
@media (max-width: 720px) {
  .loader-lockup { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.loader-png {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(120px, 26vw, 320px);
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: var(--text);
  display: flex;
  flex-shrink: 1;
}
.loader-png .ltr {
  display: inline-block;
  transform: translateY(-110vh);
  will-change: transform;
}
.loader-png .ltr.accent {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.loader-side {
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(6px, 1vw, 18px);
  flex-shrink: 0;
  gap: 2px;
}
.loader-side-line {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
  display: inline-flex;
}
.loader-side-line.italic {
  font-style: italic;
  color: var(--accent);
}
.loader-side-line .ltr {
  display: inline-block;
  transform: translateY(-110vh);
  will-change: transform;
}

/* Cycling word stack */
.loader-cycle {
  height: 1.2em;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 16px;
}
.cycle-track {
  display: flex;
  flex-direction: column;
  animation: cycle 6s steps(4) infinite;
}
.cycle-track span {
  height: 1.2em;
  line-height: 1.2;
  display: block;
}
.cycle-track span::before {
  content: "→ ";
  color: var(--accent);
  font-style: normal;
}
@keyframes cycle {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-1.2em); }
  50% { transform: translateY(-2.4em); }
  75% { transform: translateY(-3.6em); }
}

/* Bottom row */
.loader-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.loader-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loader-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.loader-bar-label span:last-child { color: var(--accent); }
.loader-bar {
  width: 100%;
  height: 1px;
  background: rgba(243, 238, 228, 0.1);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--p, 0%);
  background: var(--accent);
  transition: width 0.2s ease;
}
.loader-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.08em;
}
.loader-num span:last-child { color: var(--text-muted); }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* The blend now sits on the type only. At 32px the inverted mark was
   unnoticeable; at 72px it visibly fights the palette. */
nav .logo em,
nav .logo-mark,
.nav-links { mix-blend-mode: difference; }
nav .logo {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
nav .logo-mark {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  border: 1px solid var(--text);
  padding: 3px 7px;
  border-radius: 3px;
}

/* =========================================================
   LOGO SVG — inline laptop/browser logo, animated by JS.
   Variants: --nav (small), --hero (medium), --footer (small), --loader (large)
========================================================= */
.logo-svg-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}
.logo-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* Nav variant — the primary mark. Sized to hold its own beside the
   wordmark; aspect ratio 260:220 kept exactly (h = w x 0.846). */
.logo-svg-wrap--nav {
  width: clamp(52px, 5.2vw, 72px);
  height: clamp(44px, 4.4vw, 61px);
  margin-right: 10px;
  filter: drop-shadow(0 6px 18px rgba(196, 255, 61, 0.14));
}
nav .logo {
  gap: 12px;
  font-size: 24px;
}
/* Hero variant — larger and more dominant; the logo is a recognisable
   visual anchor near the headline, not a small stamp. */
.hero-logo-wrap {
  width: clamp(240px, 26vw, 360px);
  height: clamp(200px, 22vw, 300px);
  margin-bottom: 36px;
  cursor: default;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
  filter: drop-shadow(0 16px 40px rgba(196, 255, 61, 0.18));
}
.hero-logo-wrap .logo-svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero logo recognisability boost — stronger frame, brighter screen,
   more vivid keyboard so the laptop reads clearly on the dark page. */
.hero-logo-wrap .logo-frame,
.logo-svg-wrap--nav .logo-frame {
  stroke: var(--logo-edge);
  stroke-width: 2;
}
.hero-logo-wrap .logo-screen,
.logo-svg-wrap--nav .logo-screen {
  fill: #f2f0e9;
}
.hero-logo-wrap .logo-www,
.logo-svg-wrap--nav .logo-www {
  fill: var(--logo-ink);
  font-weight: 800;
}
.hero-logo-wrap .logo-keyboard-base,
.logo-svg-wrap--nav .logo-keyboard-base {
  fill: var(--logo-chassis);
  stroke: var(--logo-edge);
  stroke-width: 1.5;
}
.hero-logo-wrap .logo-keyboard-top,
.logo-svg-wrap--nav .logo-keyboard-top {
  fill: #333833;
}
.hero-logo-wrap .logo-ambient,
.logo-svg-wrap--nav .logo-ambient {
  opacity: 0.16 !important;
}
/* Stroke widths are in viewBox units, so they scale down with the mark.
   The smaller instances need thicker values to land at the same optical
   weight as the hero (~1px rendered). */
.logo-svg-wrap--nav .logo-frame         { stroke-width: 4; }
.logo-svg-wrap--nav .logo-keyboard-base { stroke-width: 3; }
.logo-svg-wrap--footer .logo-frame,
.logo-svg-wrap--footer .logo-keyboard-base { stroke-width: 5; }
/* Footer variant — small, sits in the sig-meta-top row */
.logo-svg-wrap--footer {
  width: 44px;
  height: 36px;
  margin: 0 12px;
  vertical-align: middle;
}
/* Loader variant — large, dominant in loader-center */
.loader-logo-wrap {
  width: clamp(180px, 22vw, 280px);
  height: clamp(150px, 18vw, 235px);
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .logo-svg-wrap--nav { width: 48px; height: 41px; }
  nav { padding: 14px 20px; }
  nav .logo { gap: 9px; font-size: 20px; }
  .hero-logo-wrap { margin-bottom: 20px; }
  .loader-logo-wrap { margin-bottom: 20px; }
  .logo-svg-wrap--footer { display: none; }
}

/* ---------- LOGO PALETTE (direction A: graphite + one accent) ----------
   Single source of truth for all 7 logo instances. CSS overrides SVG
   presentation attributes, so the inline fills in the markup are fallbacks. */
.logo-svg stop:nth-of-type(1) { stop-color: var(--logo-chassis); }
.logo-svg stop:nth-of-type(2) { stop-color: var(--logo-chassis-2); }
.logo-svg stop:nth-of-type(3) { stop-color: var(--logo-chassis-3); }

.logo-svg .logo-frame {
  stroke: var(--logo-edge);
  stroke-width: 1.5;
}
.logo-svg .logo-screen,
.logo-svg .logo-camera,
.logo-svg .logo-address-bar { fill: var(--logo-screen); }
.logo-svg .logo-browser-bar { fill: var(--logo-chassis); }
.logo-svg .logo-www         { fill: var(--logo-ink); }

/* The accent appears exactly three times: one dot, one code line, the touchpad. */
.logo-svg .logo-browser-dot--1 { fill: var(--accent); }
.logo-svg .logo-browser-dot--2,
.logo-svg .logo-browser-dot--3 { fill: var(--logo-grey); }
.logo-svg .logo-code-line      { stroke: var(--logo-green); }
.logo-svg .logo-block--2       { fill: var(--logo-green); }
.logo-svg .logo-block--1,
.logo-svg .logo-block--3       { fill: var(--logo-muted); }

.logo-svg .logo-keyboard-base {
  fill: var(--logo-chassis);
  stroke: var(--logo-edge);
  stroke-width: 1.5;
}
.logo-svg .logo-keyboard-top { fill: #2a2e29; }
.logo-svg .logo-keyboard-details line { stroke: var(--logo-grey); }

/* Initial cinematic state — all parts start invisible until JS animates them in.
   The .logo-svg-wrap[data-logo-trigger] attribute marks targets for the build. */
.logo-svg-wrap[data-logo-trigger] .logo-laptop > *,
.loader-logo-wrap .logo-laptop > *,
.hero-logo-wrap .logo-laptop > * {
  opacity: 0;
}
/* Once JS marks the wrap as built, restore opacity baseline for any new elements */
.logo-svg-wrap[data-logo-built] .logo-laptop > *,
.loader-logo-wrap[data-logo-built] .logo-laptop > *,
.hero-logo-wrap[data-logo-built] .logo-laptop > * {
  opacity: 1;
}

/* HOVER INTERACTION — applies to the nav-link anchor, hero-logo-wrap, and footer wrap.
   On hover, the screen "lights up" with a green glow and the WWW pulses. */
.logo[data-logo-trigger]:hover .logo-screen,
.hero-logo-wrap:hover .logo-screen,
.logo-svg-wrap--footer:hover .logo-screen {
  fill: #f7f5ee;
  transition: fill 0.3s ease;
}
.logo[data-logo-trigger]:hover .logo-frame,
.hero-logo-wrap:hover .logo-frame,
.logo-svg-wrap--footer:hover .logo-frame {
  filter: brightness(1.2);
  transition: filter 0.3s ease;
}
.logo[data-logo-trigger]:hover .logo-www,
.hero-logo-wrap:hover .logo-www,
.logo-svg-wrap--footer:hover .logo-www {
  animation: logoWwwPulse 0.6s ease-out;
}
.logo[data-logo-trigger]:hover .logo-code-line,
.hero-logo-wrap:hover .logo-code-line,
.logo-svg-wrap--footer:hover .logo-code-line {
  animation: logoCodePulse 0.8s ease-out;
}
.logo[data-logo-trigger]:hover .logo-block--1,
.hero-logo-wrap:hover .logo-block--1,
.logo-svg-wrap--footer:hover .logo-block--1 {
  animation: logoBlockShimmer 0.6s 0s ease-out;
}
.logo[data-logo-trigger]:hover .logo-block--2,
.hero-logo-wrap:hover .logo-block--2,
.logo-svg-wrap--footer:hover .logo-block--2 {
  animation: logoBlockShimmer 0.6s 0.1s ease-out;
}
.logo[data-logo-trigger]:hover .logo-block--3,
.hero-logo-wrap:hover .logo-block--3,
.logo-svg-wrap--footer:hover .logo-block--3 {
  animation: logoBlockShimmer 0.6s 0.2s ease-out;
}
.logo[data-logo-trigger]:hover .logo-browser-dot--1,
.hero-logo-wrap:hover .logo-browser-dot--1 {
  animation: logoDotBounce 0.4s 0s ease-out;
}
.logo[data-logo-trigger]:hover .logo-browser-dot--2,
.hero-logo-wrap:hover .logo-browser-dot--2 {
  animation: logoDotBounce 0.4s 0.08s ease-out;
}
.logo[data-logo-trigger]:hover .logo-browser-dot--3,
.hero-logo-wrap:hover .logo-browser-dot--3 {
  animation: logoDotBounce 0.4s 0.16s ease-out;
}

@keyframes logoWwwPulse {
  0%   { transform: scale(1); fill: #14170f; }
  40%  { transform: scale(1.15); fill: #4f6b12; }
  100% { transform: scale(1); fill: #14170f; }
}
@keyframes logoCodePulse {
  0%   { stroke: #4f6b12; stroke-width: 4; }
  50%  { stroke: #6b8f14; stroke-width: 5; }
  100% { stroke: #4f6b12; stroke-width: 4; }
}
@keyframes logoBlockShimmer {
  0%   { opacity: 0.85; transform: translateY(0); }
  50%  { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0.85; transform: translateY(0); }
}
@keyframes logoDotBounce {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-3px) scale(1.3); }
  100% { transform: translateY(0) scale(1); }
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1.hero-title {
  font-family: "Fraunces", serif;
  font-size: clamp(54px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin-bottom: 40px;
}
h1.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.line-mask { display: block; overflow: hidden; padding: 0.05em 0; }
.line-mask > span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.5;
}
.scroll-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint .arrow {
  display: inline-block;
  width: 1px; height: 24px;
  background: var(--accent);
  position: relative;
  animation: scroll-arrow 1.8s ease-in-out infinite;
}
@keyframes scroll-arrow {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- BIG MARQUEE ---------- */
.marquee-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-item {
  font-family: "Fraunces", serif;
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  padding: 0 30px;
  color: var(--text);
}
.marquee-item.italic { font-style: italic; color: var(--accent); }
.marquee-dot {
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  align-self: center;
  flex-shrink: 0;
}

/* ---------- SECTIONS ---------- */
section { padding: 140px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: end;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

h2.section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 400;
}
h2.section-title em { font-style: italic; color: var(--accent); font-weight: 300; }

/* ---------- GLASS SERVICE CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  perspective: 1500px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.glass-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 40px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s ease;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(196, 255, 61,0.10), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glass-card:hover { border-color: var(--line-2); }
.glass-card:hover::before { opacity: 1; }

.card-inner { position: relative; z-index: 1; transform: translateZ(40px); transform-style: preserve-3d; }
.card-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 60px;
  display: flex; justify-content: space-between;
}
.card-num span:last-child { color: var(--accent); }
.glass-card h3 {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  transform: translateZ(60px);
}
.glass-card h3 em { font-style: italic; color: var(--accent); font-weight: 300; }
.glass-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 32px;
  transform: translateZ(20px);
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transform: translateZ(30px);
}
.card-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.card-glyph {
  position: absolute;
  top: 40px; right: 40px;
  width: 60px; height: 60px;
  font-family: "Fraunces", serif;
  font-size: 56px;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
  transform: translateZ(80px);
}

/* ---------- PROCESS ---------- */
.process-section { background: var(--bg-2); }
.process-list { border-top: 1px solid var(--line); }
.process-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  position: relative;
  cursor: none;
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.process-row:hover { padding-left: 24px; }
.process-row::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.process-row:hover::after { width: 100%; }

@media (max-width: 900px) {
  .process-row { grid-template-columns: 60px 1fr; gap: 16px; padding: 32px 0; }
  .process-row p { grid-column: 2; }
}

.process-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.process-title {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.process-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.process-row p { color: var(--text-dim); font-size: 15px; line-height: 1.6; max-width: 460px; }

/* ---------- WORK GRID ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  perspective: 1500px;
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

.work-tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: none;
  transform-style: preserve-3d;
  will-change: transform;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.work-tile-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.work-tile:nth-child(1) .work-tile-bg { background: linear-gradient(135deg, #1a3d2e 0%, #0f1f17 100%); }
.work-tile:nth-child(2) .work-tile-bg { background: linear-gradient(135deg, #3d2a1a 0%, #1f140f 100%); }
.work-tile:nth-child(3) .work-tile-bg { background: linear-gradient(135deg, #2a1a3d 0%, #140f1f 100%); }
.work-tile:nth-child(4) .work-tile-bg { background: linear-gradient(135deg, #3d1a2a 0%, #1f0f14 100%); }

.work-tile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 255, 61,0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 107, 53,0.10), transparent 50%);
}
.work-tile:hover .work-tile-bg { transform: scale(1.05); }

.work-tile-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  transform-style: preserve-3d;
}
.work-tile-meta {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transform: translateZ(40px);
}
.work-tile-title {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  transform: translateZ(60px);
}
.work-tile-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.work-tile-cta {
  display: flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(12px) translateZ(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.work-tile:hover .work-tile-cta { opacity: 1; transform: translateY(0) translateZ(40px); }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1500px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s ease;
}
.testimonial-card:hover { border-color: var(--line-2); }

.quote-mark {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 80px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 16px;
  display: block;
  transform: translateZ(40px);
}
.testimonial-quote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  transform: translateZ(20px);
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  transform: translateZ(30px);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  color: var(--bg);
  font-size: 13px;
}
.author-name { font-size: 14px; font-weight: 500; }
.author-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 200px 0;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(196, 255, 61,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(48px, 9vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin-bottom: 56px;
  position: relative;
}
.cta h2 em { font-style: italic; color: var(--accent); font-weight: 300; }

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 24px 40px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: none;
  text-decoration: none;
  position: relative;
  will-change: transform;
  transition: background 0.3s ease;
}
.magnetic-btn:hover { background: #d4ff5d; }
.magnetic-btn .label { display: inline-block; will-change: transform; }
.magnetic-btn .arrow { display: inline-block; will-change: transform; transition: transform 0.4s ease; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 100px 0 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 120px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; } }

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
  margin: 16px 0 24px;
}
.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-eyebrow .eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.footer-email {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: none;
}
.footer-email:hover { color: var(--accent); border-color: var(--accent); }
.footer-email span { transition: transform 0.3s ease; }
.footer-email:hover span { transform: translate(4px, -4px); }

.footer-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  cursor: none;
}
.footer-col a:hover { color: var(--accent); }

/* GIANT LIVING SIGNATURE */
.footer-signature {
  position: relative;
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-signature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 80px;
  height: 1px;
  background: var(--accent);
}

.sig-meta-top {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
/* Coordinates stack with the locality beneath them, right-aligned so the
   block still reads as one unit against the badge on the left. */
.sig-place {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
}
.sig-locality {
  color: var(--text-dim);
  letter-spacing: 0.14em;
}
@media (max-width: 560px) {
  .sig-place { align-items: flex-end; }
  .sig-locality { font-size: 10px; }
}
.sig-badge {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 3px;
}

.sig-lockup {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: 32px;
  flex-wrap: nowrap;
}
@media (max-width: 760px) {
  .sig-lockup { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Dominant PNG mark */
.sig-png {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(140px, 32vw, 480px);
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: var(--text);
  display: flex;
  flex-shrink: 1;
  position: relative;
}
.sig-png .sig-char {
  display: inline-block;
  position: relative;
  cursor: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  will-change: transform;
}
.sig-png .sig-char.accent {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.sig-png .sig-char:hover {
  transform: translateY(-20px) rotate(-3deg);
  color: var(--accent);
}
.sig-png .sig-char.accent:hover {
  color: var(--accent-warm);
  transform: translateY(-20px) rotate(3deg);
}

/* Supporting Webtech Solutions text — sits beside PNG */
.sig-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: clamp(8px, 1.5vw, 24px);
  flex-shrink: 0;
  gap: 4px;
}
.sig-side-line {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
  display: inline-flex;
}
.sig-side-line.italic {
  font-style: italic;
  color: var(--accent);
}
.sig-side-line .sig-char {
  display: inline-block;
  position: relative;
  cursor: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  will-change: transform;
}
.sig-side-line .sig-char:hover {
  transform: translateY(-8px) rotate(-2deg);
  color: var(--accent);
}
.sig-side-line.italic .sig-char:hover {
  color: var(--text);
  transform: translateY(-8px) rotate(2deg);
}
.sig-side-meta {
  margin-top: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sig-meta-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.sig-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}
.dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- REVEAL UTILITIES ---------- */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-3d { opacity: 0; transform: perspective(1500px) rotateX(35deg) translateY(80px); transform-origin: top; }
.reveal-fade { opacity: 0; }

/* ---------- PROGRESS BAR ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 99;
  width: 0%;
  transition: width 0.1s linear;
}
/* =========================================================
   INNER PAGES — page hero, content sections
========================================================= */

/* Active nav state */
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  width: 100%;
  background: var(--accent);
}

/* Page hero / banner (smaller than landing hero) */
.page-hero {
  padding: 200px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196, 255, 61, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: end;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 140px 0 60px; }
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.page-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1.page-title {
  font-family: "Fraunces", serif;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}
h1.page-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.page-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.5;
}

.breadcrumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { padding: 0 8px; color: var(--accent); }

/* Detailed service block (services page) */
.detail-section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.detail-section:last-of-type { border-bottom: none; }

.detail-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .detail-row { grid-template-columns: 1fr; gap: 24px; }
}

.detail-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.detail-title {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.detail-title em { font-style: italic; color: var(--accent); font-weight: 300; }

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.detail-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.detail-body { color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.detail-body p { margin-bottom: 16px; }

.detail-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.detail-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
}
.detail-list li::before {
  content: "✦";
  color: var(--accent);
  font-size: 14px;
}
.detail-list li:last-child { border-bottom: 1px solid var(--line); }
.detail-list strong {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.detail-list span { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* Engagement / pricing tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }

.tier {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}
.tier.featured { border-color: var(--accent); }
.tier-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.tier.featured .tier-label { color: var(--accent); }
.tier h3 {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.tier h3 em { font-style: italic; color: var(--accent); font-weight: 300; }
.tier-price {
  font-family: "Fraunces", serif;
  font-size: 22px;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-style: italic;
}
.tier ul { list-style: none; padding: 0; margin-bottom: 32px; }
.tier li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: start;
  gap: 10px;
}
.tier li::before { content: "+"; color: var(--accent); flex-shrink: 0; }

/* Process page — phase blocks */
.phase-grid { margin-top: 60px; }

.phase {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.phase:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .phase { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
}

.phase-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.phase-num strong {
  display: block;
  color: var(--accent);
  font-size: 32px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.phase-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.phase-meta span strong {
  color: var(--accent);
  margin-right: 6px;
}

/* Work page — case study cards */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0 60px;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  width: max-content;
  max-width: 100%;
}
.filter-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 100px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.active {
  background: var(--accent);
  color: var(--bg);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/11;
  cursor: none;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: block;
}
.case-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-card:nth-child(6n+1) .case-bg { background: linear-gradient(135deg, #1a3d2e 0%, #0f1f17 100%); }
.case-card:nth-child(6n+2) .case-bg { background: linear-gradient(135deg, #3d2a1a 0%, #1f140f 100%); }
.case-card:nth-child(6n+3) .case-bg { background: linear-gradient(135deg, #2a1a3d 0%, #140f1f 100%); }
.case-card:nth-child(6n+4) .case-bg { background: linear-gradient(135deg, #3d1a2a 0%, #1f0f14 100%); }
.case-card:nth-child(6n+5) .case-bg { background: linear-gradient(135deg, #1a2a3d 0%, #0f141f 100%); }
.case-card:nth-child(6n) .case-bg { background: linear-gradient(135deg, #3d3d1a 0%, #1f1f0f 100%); }

.case-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 255, 61,0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 107, 53,0.10), transparent 50%);
}
.case-card:hover .case-bg { transform: scale(1.05); }

.case-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.case-title {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
.case-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.case-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.case-card:hover .case-link { opacity: 1; transform: translateY(0); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  margin-top: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(196, 255, 61, 0.04);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-sans);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7' fill='%238a847a'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 44px;
}
/* ---------- FLOATING-LABEL INPUTS (Uiverse · Maximinodotpy, adapted) ---------- */
.form-field.ig { position: relative; }
.form-field.ig input,
.form-field.ig textarea { width: 100%; }
.form-field.ig label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 16px 18px;
  margin: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
}
.form-field.ig--area label { line-height: 1; }
.form-field.ig :is(input:focus, input:not(:placeholder-shown),
                    textarea:focus, textarea:not(:placeholder-shown)) ~ label {
  transform: translateY(-50%) scale(0.86);
  top: 0;
  left: 10px;
  padding: 2px 8px;
  background: var(--bg);
  color: var(--accent);
  border-radius: 6px;
}
.field-help {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

/* ---------- CUSTOM DROPDOWN (closed box → radio-card panel) ---------- */
.dropdown { position: relative; }
.dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  text-align: left;
  cursor: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.dropdown__trigger:hover:not(:disabled) { border-color: rgba(243, 238, 228, 0.22); }
.dropdown.open .dropdown__trigger {
  border-color: var(--accent);
  background: rgba(196, 255, 61, 0.04);
}
.dropdown__trigger:disabled { opacity: 0.45; }
.dropdown__value[data-empty="true"] { color: var(--text-dim); }
.dropdown__chev {
  width: 13px;
  height: 8px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}
.dropdown.open .dropdown__chev { transform: rotate(180deg); color: var(--accent); }

.dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.65);
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.28s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.28s ease;
}
.dropdown.open .dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Cards stagger in when the panel opens — this is the reveal "effect". */
.dropdown__panel .label { opacity: 0; }
.dropdown.open .dropdown__panel .label {
  animation: cardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.dropdown.open .dropdown__panel .label:nth-child(1) { animation-delay: 0.04s; }
.dropdown.open .dropdown__panel .label:nth-child(2) { animation-delay: 0.09s; }
.dropdown.open .dropdown__panel .label:nth-child(3) { animation-delay: 0.14s; }
.dropdown.open .dropdown__panel .label:nth-child(4) { animation-delay: 0.19s; }
.dropdown.open .dropdown__panel .label:nth-child(5) { animation-delay: 0.24s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Nudge the whole dropdown if the user tries to send without choosing */
.dropdown.nudge { animation: budgetNudge 0.4s ease; }

/* ---------- RADIO-CARD GROUPS (Uiverse · Na3ar-17, adapted) ---------- */
.field-legend {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.radio-input { display: flex; flex-direction: column; gap: 10px; }
.radio-input * { box-sizing: border-box; }
.radio-input .label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  width: 100%;
  height: 50px;
  cursor: none;
  position: relative;
}
.radio-input .label::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 45px;
  z-index: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 10px;
  border: 2px solid transparent;
  background: var(--glass);
}
.radio-input .label:hover::before {
  transition: all 0.2s ease;
  background: #1c1a17;
}
.radio-input .label:has(input:checked)::before {
  background: rgba(196, 255, 61, 0.10);
  border-color: var(--accent);
  height: 50px;
}
.radio-input .label .text {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
}
.radio-input .label input[type="radio"] {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #202030;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none;
}
.radio-input .label input[type="radio"]:checked {
  background: var(--accent);
  animation: radioPulse 0.7s forwards;
}
.radio-input .label input[type="radio"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  transform: scale(0);
  transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.radio-input .label input[type="radio"]:checked::before { transform: scale(1); }
@keyframes radioPulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 255, 61, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(196, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 255, 61, 0); }
}
.budget-hint {
  color: var(--text-dim);
  font-size: 14px;
  padding: 14px 2px;
  font-family: var(--font-sans);
}
/* Nudge shown when send is pressed without a required budget choice */
#budgetGroup.nudge { animation: budgetNudge 0.4s ease; }
@keyframes budgetNudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ---------- CONTACT ACTIONS · zinc + skew fill ---------- */
#contactForm { position: relative; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.action-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 12px;                 /* rounded-xl */
  border: 1.58px solid #52525b;        /* zinc-600 */
  background-color: #09090b;           /* zinc-950 */
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  cursor: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35);   /* shadow-md */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    color 0.4s ease;
}
.action-btn > * { position: relative; z-index: 2; }
.action-icon { width: 20px; height: 20px; }

/* Skew-wipe fill — two halves slide in from opposite corners on hover.
   Adapted from the Uiverse pattern, sitting above the dark bg (z-index 1)
   and below the label (z-index 2). */
.action-btn::before,
.action-btn::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 50%;
  left: 25%;
  z-index: 1;
  transform: skew(90deg) translate(-50%, -50%);
  transition: 0.5s ease-out;
  background-color: var(--fill);
}
.action-btn::before {
  top: -50%;
  left: -25%;
  transform: skew(90deg) rotate(180deg) translate(-50%, -50%);
}
.action-btn:hover::before {
  transform: skew(45deg) rotate(180deg) translate(-50%, -50%);
}
.action-btn:hover::after {
  transform: skew(45deg) translate(-50%, -50%);
}

.action-btn:hover {
  transform: translateY(-0.335rem);                       /* lift */
  border-color: var(--fill);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.45),       /* shadow-xl */
              0 8px 10px -6px rgba(0, 0, 0, 0.4);
}
.action-btn:active {
  filter: brightness(0.75);
  transform: scale(0.98);
  transition: transform 0.15s ease, filter 0.15s ease;
}

/* WhatsApp — green fill; Email — blue fill.
   Label sits light at rest, flips to read against the fill on hover. */
.action-btn--whatsapp { --fill: #25d366; color: #cde9d7; }
.action-btn--whatsapp:hover { color: #04331a; }

.action-btn--email { --fill: #2f6bff; color: #d3dbe8; }
.action-btn--email:hover { color: #ffffff; }

/* ----- Sent overlay · glass panel ----- */
.form-sent {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  -webkit-backdrop-filter: blur(2px) saturate(120%);
  backdrop-filter: blur(2px) saturate(120%);
  transition: opacity 0.5s ease, visibility 0.5s ease,
              backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease;
}
.form-sent.is-active {
  opacity: 1;
  visibility: visible;
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.form-sent--whatsapp { background: rgba(37, 211, 102, 0.10); }
.form-sent--email    { background: rgba(47, 107, 255, 0.10); }

.form-sent__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 34px 44px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.5),
    0 20px 50px -12px rgba(0, 0, 0, 0.55);
  transform: translateY(14px) scale(0.9);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.45s ease;
}
.form-sent.is-active .form-sent__inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.form-sent__check { width: 72px; height: 72px; }
.form-sent__circle,
.form-sent__tick { stroke-dasharray: 1; stroke-dashoffset: 1; }
.form-sent--whatsapp .form-sent__circle,
.form-sent--whatsapp .form-sent__tick { stroke: #34e07a; }
.form-sent--email .form-sent__circle,
.form-sent--email .form-sent__tick { stroke: #5b8bff; }
.form-sent__check { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25)); }

.form-sent.is-done .form-sent__circle {
  animation: sentCircle 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}
.form-sent.is-done .form-sent__tick {
  animation: sentTick 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
}
@keyframes sentCircle { to { stroke-dashoffset: 0; } }
@keyframes sentTick   { to { stroke-dashoffset: 0; } }

.form-sent__msg {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Sending spinner */
.form-sent__spinner {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  animation: sentSpin 0.8s linear infinite;
}
@keyframes sentSpin { to { transform: rotate(360deg); } }

/* State visibility: spinner while sending, check when done, message on error */
.form-sent.is-sending .form-sent__spinner { display: block; }
.form-sent.is-sending .form-sent__check   { display: none; }
.form-sent.is-error   .form-sent__check,
.form-sent.is-error   .form-sent__spinner { display: none; }
.form-sent.is-error { cursor: pointer; }
.form-sent.is-error .form-sent__msg { color: #ff6b6b; text-transform: none; letter-spacing: 0.02em; }
.form-sent.is-error { background: rgba(255, 107, 107, 0.10); }


@media (max-width: 560px) {
  .form-actions { flex-direction: column; }
  .action-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .action-btn, .action-btn::before, .action-btn::after,
  .form-sent__inner { transition-duration: 0.001s; }
  .action-btn:hover::before { transform: translateY(0); }
  .form-sent__circle, .form-sent__tick { animation: none; stroke-dashoffset: 0; }
}



/* Contact info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.info-block h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.info-block .value {
  font-family: "Fraunces", serif;
  font-size: 22px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.info-block .value em { font-style: italic; color: var(--accent); }
.info-block a.value { text-decoration: none; cursor: none; transition: color 0.3s ease; }
.info-block a.value:hover { color: var(--accent); }

/* FAQ accordion */
.faq-list { margin-top: 40px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: none;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Fraunces", serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.faq-q em { font-style: italic; color: var(--accent); font-weight: 300; }
.faq-toggle {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 16px;
}

/* CTA strip (used on inner pages) */
.cta-strip {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196, 255, 61,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin-bottom: 32px;
  position: relative;
}
.cta-strip h2 em { font-style: italic; color: var(--accent); font-weight: 300; }

/* =========================================================
   PAGE TRANSITION — diagonal split with mountain-range edge
   Two panels split the screen along a diagonal (top-right to bottom-left).
   The seam between them is a varied mountain-range silhouette, not a
   uniform zigzag. Upper-left panel slides in from the top-left direction,
   lower-right panel slides in from the bottom-right.

   IMPORTANT: panels have NO `transform` rule here. JS is the only
   thing that sets transforms — this avoids CSS ↔ JS conflicts.
========================================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}
.page-transition.active {
  pointer-events: auto;
  visibility: visible;
}

/* Hide UI chrome during transition */
body.pt-active .cursor-dot,
body.pt-active .cursor-ring,
body.pt-active .progress {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Both panels are full-screen sized — clip-paths cut each into a
   diagonal triangle plus a mountain-range edge along the diagonal seam. */
.pt-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #c4ff3d;
  will-change: transform;
}

/* UPPER-LEFT PANEL
   Covers the top-left half of the screen, diagonal cuts from top-right
   corner down to bottom-left corner. The diagonal line has a mountain
   range silhouette with varying peak heights for an organic feel.
   Off-screen position: translate(-100%, -100%) — fully above-left. */
.pt-panel-top {
  background: #c4ff3d;
  -webkit-clip-path: polygon(
    0% 0%,                /* top-left corner */
    100% 0%,              /* top-right corner */
    /* Mountain range from top-right to bottom-left, descending */
    92% 12%,   88% 4%,    /* small peak near top */
    82% 18%,   75% 8%,    /* taller peak */
    68% 28%,   60% 18%,   /* medium peak */
    52% 40%,   45% 26%,   /* big peak — the tallest */
    38% 52%,   30% 42%,   /* peak */
    23% 64%,   16% 56%,   /* small peak */
    10% 78%,   5% 72%,    /* small peak */
    0% 90%                /* end of mountain range near bottom-left */
  );
  clip-path: polygon(
    0% 0%,
    100% 0%,
    92% 12%,   88% 4%,
    82% 18%,   75% 8%,
    68% 28%,   60% 18%,
    52% 40%,   45% 26%,
    38% 52%,   30% 42%,
    23% 64%,   16% 56%,
    10% 78%,   5% 72%,
    0% 90%
  );
}

/* LOWER-RIGHT PANEL
   Covers the bottom-right half. Its top edge mirrors the upper-left
   panel's bottom edge so they interlock cleanly along the diagonal.
   Off-screen position: translate(100%, 100%) — fully below-right. */
.pt-panel-bot {
  background: #c4ff3d;
  -webkit-clip-path: polygon(
    100% 100%,            /* bottom-right corner */
    0% 100%,              /* bottom-left corner */
    /* Mirror the mountain range — same peaks, going up-right */
    0% 90%,
    5% 72%,    10% 78%,
    16% 56%,   23% 64%,
    30% 42%,   38% 52%,
    45% 26%,   52% 40%,
    60% 18%,   68% 28%,
    75% 8%,    82% 18%,
    88% 4%,    92% 12%,
    100% 0%               /* top-right corner */
  );
  clip-path: polygon(
    100% 100%,
    0% 100%,
    0% 90%,
    5% 72%,    10% 78%,
    16% 56%,   23% 64%,
    30% 42%,   38% 52%,
    45% 26%,   52% 40%,
    60% 18%,   68% 28%,
    75% 8%,    82% 18%,
    88% 4%,    92% 12%,
    100% 0%
  );
}

/* Decorative SVG accent line on the zigzag edge — kept simple */
.pt-edge { display: none; }



/* =========================================================
   PRINCIPLES SECTION (replaces Recent Cases on index)
========================================================= */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; } }

.principle {
  background: var(--bg);
  padding: 56px 48px 48px;
  position: relative;
  transition: background 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 440px;
  cursor: none;
}
.principle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(196, 255, 61, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.principle:hover { background: var(--bg-2); }
.principle:hover::before { opacity: 1; }
.principle:hover .principle-marker { color: var(--accent); transform: rotate(15deg); }

.principle-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  font-weight: 300;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.principle-marker {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 56px;
  height: 56px;
  color: var(--text-muted);
  transition: color 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.principle-marker svg { width: 100%; height: 100%; display: block; }

.principle h3 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: calc(100% - 80px);
  position: relative;
  z-index: 1;
}
.principle h3 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.principle p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.principle-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.principle-meta span {
  position: relative;
  padding-left: 16px;
}
.principle-meta span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
/* Honeypot field — visually gone, off the tab order, ignored by AT. */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: -1px; padding: 0; border: 0;
  pointer-events: none;
}