/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: auto; }

/* ===== TOKENS ===== */
:root {
  --bg:           #000000;
  --surface:      #0a0a0a;
  --surface-2:    #121212;
  --line:         #1a1a1a;
  --line-soft:    #111111;
  --text:         #ffffff;
  --text-soft:    #aaaaaa;
  --muted:        #666666;
  --accent:       #FF6A1F;
  --accent-soft:  #FFA572;
  --accent-glow:  rgba(255, 106, 31, 0.4);
  --green:        #4ED36F;

  --font-display: 'Big Shoulders Display', 'Archivo', sans-serif;
  --font-sans:    'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --max-w:        1600px;
  --pad-x:        clamp(1.25rem, 4vw, 3.5rem);
  --hud-h:        38px;

  --ease-snap:    cubic-bezier(0.2, 0.85, 0.3, 1);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-power:   cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== BASE ===== */
html, body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

@media (hover: none) { body { cursor: auto; } }

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}

a { color: inherit; text-decoration: none; }

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

/* ===== CANVAS BACKGROUND ===== */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ===== GRAIN ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.32s var(--ease-snap), height 0.32s var(--ease-snap), opacity 0.25s ease;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--text);
  mix-blend-mode: difference;
  transition: background 0.3s var(--ease-snap), transform 0.3s var(--ease-snap);
  position: absolute;
  inset: 0;
}

.cursor.is-hover { width: 36px; height: 36px; }
.cursor.is-hover .cursor-inner { background: transparent; border: 1px solid var(--text); }

.cursor.is-tile { width: 110px; height: 110px; }
.cursor.is-tile .cursor-inner {
  background: var(--accent);
  border: none;
  box-shadow: 0 0 40px var(--accent-glow);
}

.cursor-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.25s var(--ease-snap);
}

.cursor.is-tile .cursor-label { opacity: 1; transform: scale(1); }

@media (hover: none), (max-width: 768px) { .cursor { display: none; } }

/* ===== HUD STATUS BAR ===== */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--hud-h);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hud-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.hud-cell { display: inline-flex; align-items: center; gap: 0.6rem; }
.hud-cell-c { justify-self: center; }
.hud-cell-r { justify-self: end; }

.hud-key { color: var(--muted); font-weight: 500; }
.hud-val { color: var(--text); }

/* ===== STATUS DOT ===== */
.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(78, 211, 111, 0.6);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78, 211, 111, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(78, 211, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 211, 111, 0); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--hud-h) + 4rem) var(--pad-x) 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 24vw, 25rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: auto 0;
}

.hero-line-wrap { 
  display: block; 
  overflow: hidden; 
  padding-top: 0.2em;
  margin-top: -0.2em;
  padding-bottom: 0.1em; 
}
.hero-line { display: inline-block; will-change: transform; cursor: default; }
.hero-line--accent { color: var(--accent); position: relative; }
.hero-line--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

.hero-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-start infinite;
  margin-left: 0.05em;
  vertical-align: top;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-top: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.role-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.85rem;
}

.role-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--text-soft);
  max-width: 460px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
  will-change: transform;
  transition: background 0.3s var(--ease-snap),
              color 0.3s var(--ease-snap),
              border-color 0.3s var(--ease-snap),
              box-shadow 0.3s var(--ease-snap);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--text);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-arrow { display: inline-block; transition: transform 0.4s var(--ease-snap); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bar-cell:nth-child(3) { color: var(--accent); }

/* ===== SECTION HEAD ===== */
.section-head { margin-bottom: 4rem; }

.head-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.head-tag span:first-child { color: var(--accent); font-weight: 500; }

.head-line { flex: 1; height: 1px; background: var(--line); max-width: 200px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.section-title .ital { font-style: italic; font-weight: 800; }
.section-title .dot { color: var(--accent); }

.section-sub {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== SERVICES (expandable accordion) ===== */
.services {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
}

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.services-mono {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

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

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

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: start;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  cursor: none;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding-left 0.45s var(--ease-snap);
}

.service-row:hover {
  padding-left: 1.5rem;
}

.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(1.5rem + 0.4em);
  width: 0;
  height: 8px;
  background: var(--accent);
  border-radius: 6px;
  transition: width 0.4s var(--ease-snap);
}

.service-row:hover::before { width: 6px; }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  padding-top: 0.85rem;
}

.service-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-line {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-block;
  transition: color 0.4s var(--ease-snap), transform 0.5s var(--ease-snap);
  align-self: flex-start;
}

.service-row:hover .service-line {
  color: var(--accent);
}

/* expandable description */
.service-desc {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 760px;
  transition: max-height 0.7s var(--ease-snap),
              opacity 0.4s ease,
              margin-top 0.55s var(--ease-snap);
}

.service-row:hover .service-desc {
  max-height: 280px;
  opacity: 1;
  margin-top: 1.1rem;
}

/* word-by-word reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.05em 0;
}

.w-i {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.022s + 0.18s);
}

.service-row:hover .w-i {
  transform: translateY(0);
}

.service-arrow {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--muted);
  justify-self: end;
  transition: color 0.3s, transform 0.4s var(--ease-snap);
  padding-top: 0.5rem;
}

.service-row:hover .service-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 50px 1fr 30px;
    gap: 1rem;
    padding: 1.1rem 0;
  }
  .service-row:hover { padding-left: 0.5rem; }
  .service-num { padding-top: 0.5rem; }
  .service-arrow { padding-top: 0.4rem; font-size: 1.2rem; }
}

/* ===== WORK SECTION ===== */
.work {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
  border-top: 1px solid var(--line);
}

.tiles {
  display: grid;
  gap: 5rem;
}

/* ===== TILE ===== */
.tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: stretch;
  cursor: none;
  text-decoration: none;
  color: inherit;
}

.tile-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
  transition: transform 0.6s var(--ease-out);
}

.tile-img,
.tile-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s var(--ease-out), filter 0.5s var(--ease-out);
  z-index: 1;
}

.tile-fallback { z-index: 0; pointer-events: none; }
.tile-fallback--green { background: linear-gradient(135deg, #1f3a1b 0%, #345e2e 50%, #7da668 100%); }
.tile-fallback--bryk  { background: linear-gradient(135deg, #2e2620 0%, #4f4233 50%, #ad8c5e 100%); }
.tile-fallback--b2b   { background: linear-gradient(135deg, #161c2c 0%, #2c4068 50%, #5e7caa 100%); }
.tile-fallback--jminvest { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }

/* hide image entirely when load fails (no broken icon) */
.tile-img.failed {
  display: none;
}

/* ===== STATIC B2B MOCKUP ===== */
.tile-mock {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(20px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 24px);
  pointer-events: none;
  transition: transform 1.2s var(--ease-out);
}

.tile:hover .tile-mock { transform: scale(1.04); }

.mock-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(10px, 1.4vw, 16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  gap: 16px;
}

.mock-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

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

.mock-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.mock-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.mock-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
}

.mock-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: clamp(8px, 1vw, 14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}

.mock-stripe {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  width: 80%;
}

.mock-stripe--short {
  width: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mock-price {
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: auto;
}

.mock-foot {
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  text-transform: uppercase;
}

/* ===== BRYK B2C MOCKUP VARIANT (product grid) ===== */
.mock-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.mock-cart-dot {
  color: var(--accent);
  font-size: 0.8em;
}

.mock-card--product {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.mock-img {
  flex: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 8px,
      rgba(255, 255, 255, 0.025) 8px,
      rgba(255, 255, 255, 0.025) 16px
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 50%;
}

.mock-card--product .mock-stripe {
  margin: clamp(6px, 0.8vw, 10px) clamp(8px, 1vw, 12px) 0;
}

.mock-card--product .mock-price {
  padding: 0 clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px);
  margin-top: 4px;
}

.tile-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.tile:hover .tile-grid { opacity: 1; }
.tile:hover .tile-img { transform: scale(1.04); filter: contrast(1.05) brightness(0.95); }

/* tile corners (HUD overlay) */
.tile-corners {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 12px rgba(0,0,0,0.55);
}

.corner-tl { align-self: start; justify-self: start; color: var(--accent); font-size: 0.95rem; font-weight: 700; }
.corner-tr { align-self: start; justify-self: end; }
.corner-bl { align-self: end; justify-self: start; }
.corner-br { align-self: end; justify-self: end; color: var(--accent); }

/* tile info side */
.tile-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tile-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.tile-name .punct { color: var(--accent); }

.tile-data { display: grid; gap: 0.55rem; }

.data-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-row:first-child { border-top: 1px solid var(--line); padding-top: 0.55rem; }

.data-key { color: var(--muted); font-weight: 500; }
.data-val { color: var(--text); }

/* ===== STATS ===== */
.stats {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
  border-top: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  position: relative;
  transition: background 0.4s var(--ease-snap);
}

.stat-card:hover { background: var(--surface-2); }

.stat-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat-foot {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: auto;
}

/* ===== ABOUT ===== */
.about {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text { display: flex; flex-direction: column; gap: 1.25rem; }

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.quote-mark { color: var(--accent); font-weight: 900; }

.about-text p:not(.about-lead) {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 540px;
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.skill-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left 0.35s var(--ease-snap);
}

.skill-row:hover { padding-left: 0.75rem; }

.skill-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.skill-val {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

/* ===== CONTACT ===== */
.contact {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem var(--pad-x) 6rem;
  border-top: 1px solid var(--line);
}

/* ===== PARTICLE TEXT THREE.JS ===== */
.particle-text-wrap {
  position: relative;
  width: 100%;
  height: clamp(250px, 36vw, 580px);
  margin-bottom: 4rem;
  overflow: hidden;
}

.particle-text-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 22rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  min-height: 250px; /* enough to fall and bounce */
  min-width: 0;
  width: 100%;
}

.contact-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  transition: border-color 0.4s var(--ease-snap);
  position: absolute;
  width: max-content;
  background: var(--bg); /* minimal background so text doesn't overlap messily */
  will-change: transform;
}
.contact-link:active {
  cursor: grabbing;
}

.contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease-snap);
}

.contact-link:hover::after { width: 100%; }

.link-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 1 / -1;
}

.link-val {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--text);
  transition: color 0.3s var(--ease-snap);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-phone .link-val {
  text-transform: none;
}

.link-val .char {
  display: inline-block;
  will-change: transform;
}

.link-arrow {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.4s var(--ease-snap);
}

.contact-link:hover .link-val { color: var(--accent); }
.contact-link:hover .link-arrow { transform: translate(4px, -4px); }

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: right;
}

.meta-row {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1rem;
  align-items: baseline;
  justify-content: end;
}

.meta-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-v {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--pad-x) 2rem;
  border-top: 1px solid var(--line);
}

.footer-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 22rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  background: linear-gradient(180deg, var(--text) 0%, var(--bg) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-line { display: block; }
.footer-acc { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-mid { color: var(--text-soft); }

.footer-top {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  cursor: none;
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tile { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .hero-meta { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-foot { grid-template-columns: 1fr; gap: 2rem; }

  .hud-cell-c { display: none; }
  .hud-inner { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-meta { text-align: left; }
  .meta-row { justify-content: start; grid-template-columns: 100px 1fr; }

  .skill-row { grid-template-columns: 1fr; gap: 0.25rem; }

  .footer-bar { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-foot-bar { flex-wrap: wrap; gap: 0.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   ADVANCED UI LAYER
   ========================================================================= */

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  padding: var(--pad-x);
  cursor: none;
  will-change: transform;
}

.preloader-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.preloader-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  gap: 1rem;
}

.preloader-asset { color: var(--text-soft); }

.preloader-counter {
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 22rem);
  font-weight: 900;
  color: var(--text);
  line-height: 0.82;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  margin-bottom: -0.15em;
}

.preloader-num {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.preloader-pct {
  font-size: 0.15em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 0.6em;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.preloader-bar {
  height: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
  margin-top: 1rem;
}

.preloader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--text);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.preloader-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ===== TOP SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 8000;
  pointer-events: none;
  box-shadow: 0 0 10px var(--accent-glow);
  will-change: width;
}

/* ===== SECTION NAV (vertical dots, right edge) ===== */
.section-nav {
  position: fixed;
  right: clamp(0.5rem, 1.4vw, 1.25rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0.4rem;
}

.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--muted);
  position: relative;
  display: block;
  transition: background 0.3s var(--ease-snap),
              border-color 0.3s var(--ease-snap),
              transform 0.35s var(--ease-snap),
              box-shadow 0.3s var(--ease-snap);
  cursor: none;
}

.section-dot:hover {
  border-color: var(--text);
  transform: scale(1.25);
}

.section-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.section-dot.is-active::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: dot-ring 2s ease-out infinite;
}

@keyframes dot-ring {
  0%   { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.dot-label {
  position: absolute;
  right: calc(100% + 0.8rem);
  top: 50%;
  transform: translate(8px, -50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-snap), transform 0.3s var(--ease-snap);
}

.section-dot:hover .dot-label,
.section-dot.is-active .dot-label {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 860px) { .section-nav { display: none; } }

/* ===== HUD CENTER CELL + CLOCK ===== */
.hud-cell-c {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

[data-clock] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.hud-led {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: hud-blink 1.5s ease-in-out infinite;
}

@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@media (max-width: 700px) {
  .hud-cell-c { display: none; }
}

/* ===== HERO MOUSE-TRACKED GLOW ===== */
.hero { isolation: isolate; }

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle 480px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 106, 31, 0.18),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  mix-blend-mode: screen;
}

.hero.is-mouse-active .hero-glow { opacity: 1; }

/* ===== MARQUEE ===== */
.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(0.8rem, 1.8vw, 1.4rem) 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}

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

.marquee-row {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding-right: clamp(1.5rem, 3.5vw, 3rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.marquee-row--lg {
  font-size: clamp(2rem, 6vw, 5rem);
}

.m-dot {
  color: var(--accent);
  font-size: 0.55em;
  transform: translateY(-0.12em);
}

.m-arrow {
  color: var(--accent);
  font-size: 0.85em;
  transform: translateY(-0.05em);
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ===== STATUS BAND (replaces top marquee — HUD-style readout) ===== */
.status-band {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
  z-index: 2;
}

.status-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1.1rem, 2vw, 1.6rem) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  padding-left: clamp(1rem, 2vw, 1.75rem);
  min-width: 0;
}

.status-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background: var(--line);
}

.status-cell:first-child {
  padding-left: 0;
}

.status-cell:first-child::before { display: none; }

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  letter-spacing: 0.01em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.status-x {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0.1rem;
}

.status-cell--accent .status-val { color: var(--text); }

.status-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(78, 211, 111, 0.6);
  animation: status-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
  margin-right: 0.3rem;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(78, 211, 111, 0.6); opacity: 1; }
  50%      { box-shadow: 0 0 16px rgba(78, 211, 111, 0.9); opacity: 0.7; }
}

@media (max-width: 800px) {
  .status-band-inner {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
  .status-cell { padding-left: 0; }
  .status-cell::before { display: none; }
}

/* ===== FOOTER MARQUEE ===== */
.footer-marquee {
  width: 100%;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  white-space: nowrap;
  position: relative;
}

.footer-marquee .marquee-track {
  animation: marquee-scroll 28s linear infinite;
}

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

/* ===== REDUCED MOTION (preserved) ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none !important; }
  .hero-cursor { animation: none; }
  .marquee-track { animation: none !important; }
}
