/* ==========================================================================
   Oktelo Solutions — AI Interface
   ========================================================================== */

:root {
  /* Brand palette (from logo mark) */
  --brand-purple:   #925FFF;
  --brand-blue:     #00B8FF;
  --brand-cyan:     #00FFF9;
  --brand-magenta:  #FF00C1;
  --brand-violet:   #C82FE0; /* purple x magenta blend */

  /* Homepage (dark) */
  --home-bg:        #080810;
  --home-surface:   #0F0F1A;
  --home-border:    #1E1E32;
  --home-text:      #E8E8F0;
  --home-muted:     #6060A0;
  --home-accent:    var(--brand-purple);
  --home-glow:      rgba(146, 95, 255, 0.18);

  /* Shared (status indicators — kept distinct from brand decoration on purpose) */
  --accent-orange:  #FF6B35;
  --accent-teal:    #00D4AA;
  --accent-gold:    #FFB800;
  --accent-pink:    var(--brand-magenta);

  /* About section palette */
  --about-bg:       #FAFAF8;
  --about-ink:      #111112;
  --about-mid:      #666664;
  --about-accent:   var(--brand-blue);

  /* Projects section palette */
  --proj-bg:        #0A0A14;
  --proj-surface:   #12121E;
  --proj-border:    #1E1E32;
  --proj-text:      #E0E0F0;

  /* What We Do palette */
  --wwd-bg:         #F5F0FF;
  --wwd-ink:        #1A0A3D;
  --wwd-accent:     var(--brand-purple);

  /* Tech palette */
  --tech-bg:        #030308;
  --tech-node:      #1A1A2E;
  --tech-line:      #2A2A4A;
  --tech-glow:      var(--brand-cyan);

  /* Contact palette */
  --contact-bg:     #080810;
  --contact-text:   #E8E8F0;
  --contact-accent: var(--brand-magenta);

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Motion */
  --ease-spring:  cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--home-bg);
  color: var(--home-text);
  overflow: hidden;
}

body.scrollable {
  overflow: auto;
}

img { max-width: 100%; display: block; }

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Page system
   ========================================================================== */

.page {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  overflow-y: auto;
}
.page.active {
  opacity: 1;
  pointer-events: all;
  z-index: 2;
}

/* ==========================================================================
   Back button (shared)
   ========================================================================== */

.back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}
.back-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(-2px);
}
.back-btn.dark-text {
  color: var(--about-ink);
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}
.back-btn.dark-text:hover {
  background: rgba(0,0,0,0.1);
}

/* ==========================================================================
   Homepage
   ========================================================================== */

#homepage {
  background: var(--home-bg);
  position: fixed;
  overflow: hidden;
}

#homeNetwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Custom cursor — shooting star (desktop/fine-pointer only) */
#homepage.custom-cursor-active,
#homepage.custom-cursor-active * {
  cursor: none;
}
.home-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 200;
}
.home-shooting-star {
  --tail-len: 0px;
  --tail-angle: 0deg;
  --star-color: var(--home-accent);
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px #fff, 0 0 14px 4px var(--star-color), 0 0 26px 8px var(--home-glow);
  pointer-events: none;
  opacity: 0;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
    margin 0.25s var(--ease-out), box-shadow 0.25s, opacity 0.2s;
  will-change: transform;
}
.home-shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tail-len);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--star-color) 65%, #fff);
  border-radius: 999px;
  transform-origin: left center;
  transform: translateY(-50%) rotate(var(--tail-angle));
  opacity: 0.8;
}
.home-shooting-star.visible { opacity: 1; }
.home-shooting-star.hover {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  --star-color: var(--brand-magenta);
  box-shadow: 0 0 8px 1px #fff, 0 0 20px 6px var(--brand-magenta), 0 0 34px 10px rgba(255, 0, 193, 0.35);
}

.home-center {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.home-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}
.home-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.home-logo-icon {
  width: 40px;
  height: 40px;
  display: block;
}
.home-logo-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--home-text);
  letter-spacing: -2.5px;
  text-transform: uppercase;
}
.home-logo-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-muted);
}

.home-input-wrapper {
  position: relative;
  width: min(600px, 90vw);
  margin: 32px auto 0;
}
.home-input {
  width: 100%;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 18px 56px 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-accent) !important;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: transparent;
}
.home-input:focus {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 3px var(--home-glow);
}

.home-input::placeholder{
  color: var(--home-text);
  font-size: 12px;
  font-family: var(--font-mono);
}

.home-input-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-accent);
  text-align: center;
  margin-top: 10px;
  height: 14px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}
.home-input-hint.visible {
  opacity: 1;
  transform: translateY(0);
}
.home-input-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--home-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.15s;
}
.home-input-submit:hover { opacity: 0.85; transform: translateY(-50%) scale(1.05); }

.chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  max-width: 600px;
}
@keyframes chips-nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.chips-wrapper.nudge {
  animation: chips-nudge 0.4s ease-in-out;
}
.chips-wrapper.nudge .chip {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 3px var(--home-glow);
}
.chip {
  background: transparent;
  border: 1px solid var(--home-border);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--home-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--home-glow);
  opacity: 0;
  transition: opacity 0.2s;
}
.chip:hover {
  border-color: var(--home-accent);
  color: var(--home-text);
}
.chip:hover::before { opacity: 1; }
.chip .chip-icon {
  margin-right: 6px;
  font-size: 12px;
}

.home-tagline-rule {
  width: min(300px, 90vw);
  height: 1px;
  background: var(--home-border);
  margin: 32px auto 0;
}
.home-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-muted);
  text-align: center;
  margin-top: 16px;
}

/* ==========================================================================
   Prompt overlay
   ========================================================================== */

.prompt-overlay {
  position: fixed;
  inset: 0;
  background: var(--home-bg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s var(--ease-out);
}
.prompt-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.prompt-ui {
  width: min(640px, 90vw);
}
.prompt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-muted);
}
.prompt-sparkle-icon {
  width: 16px;
  height: 16px;
  display: block;
}
.prompt-input-wrapper {
  background: var(--home-surface);
  border: 1px solid var(--home-accent);
  border-radius: 14px;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--home-text);
  line-height: 1.6;
  min-height: 80px;
  box-shadow: 0 0 0 3px var(--home-glow);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
}
.prompt-display { white-space: pre-wrap; }
.prompt-cursor {
  color: var(--home-accent);
  animation: blink 0.7s step-end infinite;
  font-size: 18px;
  line-height: 1.6;
  transition: opacity 0.2s;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.prompt-status {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-muted);
  opacity: 0;
  transition: opacity 0.3s;
}
.prompt-status.visible { opacity: 1; }
.prompt-spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--home-border);
  border-top-color: var(--home-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Section: ABOUT US
   ========================================================================== */

#section-about {
  background: var(--about-bg);
  color: var(--about-ink);
}
.about-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 40px 100px;
}
.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--about-mid);
  margin-bottom: 40px;
}
.about-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E0DFDB;
}
.about-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 110px);
  color: var(--about-ink);
  letter-spacing: -3px;
  line-height: 0.93;
  margin: 0;
}
.about-headline .word {
  display: inline-block;
  position: relative;
}
.about-headline .word.ships {
  position: relative;
}
.about-headline .word.ships::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 6px;
  background: var(--accent-pink);
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
}
.about-headline .word.ships.underlined::after {
  animation: underline-draw 0.8s var(--ease-out) forwards;
}
@keyframes underline-draw {
  to { transform: scaleX(1); }
}

.about-fact-card {
  background: var(--about-ink);
  color: var(--about-bg);
  border-radius: 16px;
  padding: 28px 32px;
  font-family: var(--font-mono);
  margin-top: 8px;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}
.fact-row:last-child { border-bottom: none; }
.fact-key { color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 1px; }
.fact-val { font-weight: 500; color: white; }
.fact-val.accent { color: var(--about-accent); }

.about-subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--about-mid);
  letter-spacing: -1px;
  margin: 80px 0 24px;
}
.about-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--about-mid);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 0 18px;
}

.about-rule {
  width: 100%;
  height: 1px;
  background: #E0DFDB;
  margin: 64px 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 0;
}
.philosophy-card {
  background: var(--about-bg);
  border: 1px solid #E0DFDB;
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s var(--ease-spring), border-color 0.2s;
}
.philosophy-card:hover {
  transform: translateY(-6px);
  border-color: var(--about-ink);
}
.phil-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.phil-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--about-ink);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.phil-text {
  font-size: 13.5px;
  color: var(--about-mid);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Section: OUR PROJECTS
   ========================================================================== */

#section-projects {
  background: var(--proj-bg);
  color: var(--proj-text);
}
.projects-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 40px 100px;
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.projects-left {
  position: sticky;
  top: 120px;
}
.projects-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--home-muted);
  margin-bottom: 24px;
}
.projects-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--proj-border);
}
.projects-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  color: #E0E0F0;
  letter-spacing: -2px;
  margin: 0 0 20px;
}
.projects-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--home-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}
.projects-legend {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
}
.projects-legend span.live { color: #2D8C5A; }
.projects-legend span.beta { color: var(--accent-orange); }
.projects-legend span.dev { color: var(--accent-gold); }
.projects-legend span.pause { color: var(--home-muted); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  perspective: 1000px;
}
.proj-flip-card {
  height: 200px;
  cursor: pointer;
}
.proj-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-smooth);
  will-change: transform;
}
.proj-flip-card.flipped .proj-flip-inner {
  transform: rotateY(180deg);
}
.proj-front, .proj-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid var(--proj-border);
}
.proj-front {
  background: var(--proj-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.proj-back {
  background: var(--proj-surface);
  border-color: var(--home-accent);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.proj-flip-card.flipped .proj-back {
  box-shadow: 0 0 0 1px var(--home-accent), 0 0 20px var(--home-glow);
}

.proj-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proj-number {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--home-muted);
}
.proj-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--proj-text);
  margin: 0;
}
.proj-name-small {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--proj-text);
}
.proj-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.proj-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--home-muted);
  border: 1px solid var(--proj-border);
  border-radius: 100px;
  padding: 4px 10px;
}
.proj-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: #9090B0;
  line-height: 1.6;
  margin: 0;
}
.proj-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-accent);
  text-decoration: none;
}
.proj-link.muted {
  color: var(--home-muted);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-badge.live   { color: #2D8C5A; background: rgba(45,140,90,0.12); }
.status-badge.beta   { color: #FF6B35; background: rgba(255,107,53,0.12); }
.status-badge.dev    { color: #FFB800; background: rgba(255,184,0,0.12); }
.status-badge.pause  { color: #6060A0; background: rgba(96,96,160,0.1); }

/* ==========================================================================
   Section: WHAT WE DO
   ========================================================================== */

#section-wwd {
  background: var(--wwd-bg);
}
.service-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s var(--ease-smooth);
}
.service-inner {
  max-width: 720px;
  text-align: center;
  padding: 80px 40px;
  position: relative;
  z-index: 2;
}
.service-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-muted);
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.service-icon-wrap { margin-bottom: 0; }
.service-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.service-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 0 24px;
}
.service-desc {
  font-size: 17px;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 32px;
}
.service-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.service-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid currentColor;
  opacity: 0.6;
}
.service-bg-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 40% 60% 55% 45% / 45% 55% 45% 55%;
  opacity: 0.08;
  animation: morph 8s ease-in-out infinite, spin-slow 20s linear infinite;
  z-index: 1;
  will-change: transform;
}
@keyframes morph {
  0%, 100% { border-radius: 40% 60% 55% 45% / 45% 55% 45% 55%; }
  33%       { border-radius: 55% 45% 40% 60% / 60% 40% 55% 45%; }
  66%       { border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.wwd-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 30;
}
.wwd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  transition: all 0.3s;
  cursor: pointer;
}
.wwd-dot.active {
  background: var(--wwd-accent);
  transform: scale(1.4);
}

/* ==========================================================================
   Section: TECHNOLOGY
   ========================================================================== */

#section-tech {
  background: var(--tech-bg);
}
.tech-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
#techCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.tech-header {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.tech-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--tech-glow);
  letter-spacing: 3px;
}
.tech-subtitle {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: rgba(96,96,160,0.6);
  margin-top: 8px;
}
.tech-legend {
  position: fixed;
  bottom: 32px;
  left: 32px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  z-index: 5;
}
.tech-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--proj-text); }
.tech-legend .dot { font-size: 12px; }

.tech-tooltip {
  position: absolute;
  z-index: 6;
  background: rgba(15,15,26,0.95);
  border: 1px solid var(--tech-line);
  border-radius: 10px;
  padding: 14px 16px;
  max-width: 240px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.tech-tooltip.visible { opacity: 1; }
.tech-tooltip-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: white;
  margin: 0 0 4px;
}
.tech-tooltip-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.tech-tooltip-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: #B0B0D0;
  margin: 0;
  line-height: 1.5;
}

.tech-mobile-list { display: none; padding: 140px 24px 100px; }
.tech-mobile-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--home-muted);
  text-transform: uppercase;
  margin: 24px 0 10px;
}
.tech-mobile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tech-line);
  color: var(--proj-text);
  font-family: var(--font-body);
  font-size: 14px;
}
.tech-mobile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   Section: CONTACT US
   ========================================================================== */

#section-contact {
  background: var(--contact-bg);
}
.contact-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}
.contact-orb {
  position: absolute;
  border-radius: 50%;
  animation: orb-pulse ease-in-out infinite;
  pointer-events: none;
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.015; }
  50%       { transform: scale(1.15); opacity: 0.025; }
}
.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.contact-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--contact-accent);
}
.contact-eyebrow-text {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--contact-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.contact-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 88px);
  color: #F0F0EE;
  letter-spacing: -3px;
  margin: 0 0 40px;
  position: relative;
  z-index: 2;
  min-height: 1.1em;
}
.contact-heading-cursor {
  color: var(--contact-accent);
  animation: blink 0.7s step-end infinite;
}
.contact-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(480px, 90vw);
  padding: 18px 24px;
  border: 1px solid #1E1E32;
  border-radius: 12px;
  background: transparent;
  color: #E8E8F0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.contact-link-item:hover {
  border-color: var(--contact-accent);
  background: rgba(255, 0, 193, 0.06);
  transform: translateX(4px);
}
.contact-link-arrow {
  color: var(--contact-accent);
  font-size: 18px;
  transition: transform 0.2s;
}
.contact-link-item:hover .contact-link-arrow {
  transform: translateX(4px);
}
.contact-support {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: #606080;
  line-height: 1.7;
  text-align: center;
  max-width: 380px;
  margin: 24px 0 0;
}
.contact-footer {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: #2E2E4A;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .about-wrap, .projects-wrap { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .projects-wrap { grid-template-columns: 1fr; gap: 32px; }
  .projects-left { position: static; }
}

@media (max-width: 768px) {
  .chips-wrapper { max-width: 320px; }
  .projects-grid {
    grid-template-columns: 1fr;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 16px;
  }
  .proj-flip-card {
    min-width: 85vw;
    scroll-snap-align: start;
  }
  .service-icon { font-size: 40px; }
  .wwd-nav { display: none; }
  #techCanvas { display: none; }
  .tech-mobile-list { display: block; }
  .tech-legend { display: none; }
  .philosophy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-wrap, .projects-wrap { padding-left: 16px; padding-right: 16px; }
  .about-wrap { padding-top: 90px; }
  .projects-wrap { padding-top: 90px; }
  .service-inner { padding: 60px 24px; }
}

/* Keep the homepage's full stack (logo, input, chips, tagline) inside one
   screen on short mobile viewports instead of letting it overflow. */
@media (max-height: 700px) {
  .home-center { padding: 16px; }
  .home-logo-icon { width: 32px; height: 32px; }
  .home-logo-text { font-size: 26px; }
  .home-input-wrapper { margin-top: 20px; }
  .home-input { padding: 14px 50px 14px 18px; font-size: 13px; }
  .chips-wrapper { margin-top: 14px; gap: 8px; }
  .chip { padding: 8px 16px; font-size: 12px; }
  .home-tagline-rule { margin-top: 20px; }
  .home-tagline { margin-top: 10px; }
}

@media (max-height: 560px) {
  .home-logo-icon { width: 24px; height: 24px; }
  .home-logo-text { font-size: 19px; }
  .home-logo-sub { display: none; }
  .home-tagline-rule { display: none; }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .service-bg-element, .contact-orb { animation: none; }
  .service-icon { animation: none; }
  .proj-flip-inner { transition: none; }
  .chips-wrapper.nudge { animation: none; }
}
