/* ============================================================
   PALANCA — styles.css
   ============================================================ */

:root {
  --black: #080808;
  --white: #F5F2EB;
  --cream: #EDE9DF;
  --accent: #C8FF00;
  --accent-dim: #9bbf00;
  --gray: #1a1a1a;
  --gray-mid: #2a2a2a;
  --gray-text: #888;
  --border: rgba(255,255,255,0.08);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

body.menu-open {
  overflow: hidden;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(200,255,0,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  position: relative;
}
.nav-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 26px;
  background: var(--accent);
  flex-shrink: 0;
  transform: skewX(-12deg);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 11px 24px;
  border: none;
  cursor: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--accent-dim); transform: translateY(-1px); }

/* Hamburger button — always visible */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: none;
  z-index: 400;
  position: relative;
  gap: 5px;
  padding: 0;
  transition: border-color 0.3s;
}
.nav-hamburger:hover { border-color: rgba(200,255,0,0.4); }

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1),
              opacity 0.3s ease,
              background 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  position: relative;
}

.lang-switcher {
  position: relative;
}

.lang-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-text);
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 12px;
  cursor: none;
  height: 44px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-switcher-trigger:hover,
.lang-switcher.open .lang-switcher-trigger {
  border-color: rgba(200,255,0,0.4);
  color: var(--white);
}

.lang-globe {
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lang-switcher-trigger:hover .lang-globe { opacity: 1; }

.lang-arrow {
  font-size: 10px;
  transition: transform 0.2s;
  line-height: 1;
}
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--gray);
  border: 1px solid var(--border);
  list-style: none;
  min-width: 120px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lang-option {
  border-bottom: 1px solid var(--border);
}
.lang-option:last-child { border-bottom: none; }

.lang-option-link {
  display: block;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.lang-option-link:hover {
  color: var(--accent);
  background: rgba(200,255,0,0.04);
}
.lang-option.active .lang-option-link {
  color: var(--white);
  cursor: default;
}
.lang-option.active .lang-option-link::before {
  content: '✓ ';
  color: var(--accent);
  font-size: 11px;
}

/* ============================================================
   FULL-SCREEN MENU
   ============================================================ */
.fullmenu {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  overflow: hidden;
}
.fullmenu.active {
  pointer-events: all;
}

/* Three wipe panels — staggered clip-path reveal */
.fullmenu-panel {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  transform: translateY(-100%);
  transition: transform 0.65s cubic-bezier(0.77,0,0.175,1);
}
.fullmenu-panel:nth-child(1) { transition-delay: 0s; }
.fullmenu-panel:nth-child(2) { transition-delay: 0.07s; background: #0a0a0a; }
.fullmenu-panel:nth-child(3) { transition-delay: 0.14s; background: #080808; }

.fullmenu.active .fullmenu-panel {
  transform: translateY(0);
}
/* Closing — panels exit downward with reversed stagger */
.fullmenu.closing .fullmenu-panel {
  transform: translateY(100%);
}
.fullmenu.closing .fullmenu-panel:nth-child(1) { transition-delay: 0.14s; }
.fullmenu.closing .fullmenu-panel:nth-child(2) { transition-delay: 0.07s; }
.fullmenu.closing .fullmenu-panel:nth-child(3) { transition-delay: 0s; }

/* Content layer — sits on top of panels */
.fullmenu-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 60px;
  gap: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s;
}
.fullmenu.active .fullmenu-inner {
  opacity: 1;
  transform: translateY(0);
}
.fullmenu.closing .fullmenu-inner {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease 0s, transform 0.2s ease 0s;
}

/* Nav list */
.fullmenu-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fullmenu-item {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fullmenu-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fullmenu-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.25s ease, padding-left 0.3s ease;
  white-space: nowrap;
}
.fullmenu-item a:hover {
  color: var(--accent);
  padding-left: 12px;
}
.fullmenu-todo a {
  color: rgba(255,255,255,0.3);
}
.fullmenu-todo a:hover {
  color: rgba(200,255,0,0.4);
}

.todo-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 0;
  vertical-align: middle;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 9px;
}

/* CTA column */
.fullmenu-cta-wrap {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.fullmenu-cta {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
  background: var(--accent);
  text-decoration: none;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s, gap 0.2s;
}
.fullmenu-cta:hover { background: var(--accent-dim); gap: 20px; }
.fullmenu-cta span { font-size: 22px; }

/* Footer strip */
.fullmenu-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  opacity: 0;
  transition: opacity 0.3s ease 0.5s;
}
.fullmenu.active .fullmenu-footer {
  opacity: 1;
}
.fullmenu.closing .fullmenu-footer {
  opacity: 0;
  transition-delay: 0s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-accent-circle {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(200,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(64px, 9vw, 130px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -3px;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.35s;
}

.hero h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-text);
  max-width: 500px;
  margin-top: 32px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 52px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.65s;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-dim); }

.btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost::after { content: '↓'; }

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 60px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-text);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.9s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gray-text);
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
section {
  padding: 120px 60px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  max-width: 700px;
}
.section-h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   APPROACH — sticky scroll
   ============================================================ */
.approach {
  background: var(--gray);
  border-top: 1px solid var(--border);
  padding: 0 60px;
}

.approach-sticky-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left — stays sticky while right scrolls */
.approach-left {
  position: sticky;
  top: 120px;
  padding: 120px 0;
}

.approach-desc {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-text);
  margin-top: 28px;
}

/* Right — scrollable steps */
.approach-right {
  display: flex;
  flex-direction: column;
  padding: 120px 0;
}

.pillar-step {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0.25;
  transform: none;
  transition: opacity 0.5s ease;
  cursor: default;
}
.pillar-step:first-child {
  border-top: 1px solid var(--border);
}
.pillar-step.active {
  opacity: 1;
}

/* Accent line that grows in when active */
.pillar-step-line {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}
.pillar-step.active .pillar-step-line {
  width: 64px;
}

.pillar-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--white);
}

.pillar-step p {
  font-size: 20px;
  line-height: 1.75;
  color: var(--gray-text);
  max-width: 480px;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
  opacity: 0;
  transition: gap 0.2s, opacity 0.4s ease;
}
.pillar-step.active .pillar-link {
  opacity: 1;
}
.pillar-link:hover { gap: 14px; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.manifesto-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.manifesto-text p strong {
  color: var(--white);
  font-weight: 500;
}

.manifesto-beliefs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.belief-item {
  display: flex;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.belief-item:last-child { border-bottom: none; }
.belief-item:hover { background: var(--gray); }

.belief-num {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-style: italic;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
}

.belief-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-text);
}
.belief-text strong { color: var(--white); font-weight: 500; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--gray);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 64px;
}

.service-card {
  background: var(--black);
  padding: 52px 48px;
  border: 1px solid var(--border);
}

.service-card-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.service-card p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 32px;
}

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

.service-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-item::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 64px;
}

.team-card {
  background: var(--gray);
  border: 1px solid var(--border);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.team-card:hover { border-color: rgba(200,255,0,0.2); }

.team-card-accent {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(200,255,0,0.08) 0%, transparent 70%);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid rgba(200,255,0,0.15);
}

.team-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.team-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.team-card p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--gray-text);
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.2s;
  margin-top: 2px;
}
.team-linkedin:hover { color: var(--accent); }
.team-linkedin svg { flex-shrink: 0; }

/* ============================================================
   PORTFOLIO PAGE HERO
   ============================================================ */
.portfolio-hero {
  padding: 160px 60px 80px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.portfolio-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.portfolio-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-text);
  max-width: 520px;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 120px 24px 60px;
  }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.portfolio-intro {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-text);
  margin-top: 24px;
  margin-bottom: 64px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.portfolio-card {
  background: var(--gray);
  border: 1px solid var(--border);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover { border-color: rgba(200,255,0,0.25); }

.portfolio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.portfolio-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: 5px 12px;
}

.portfolio-link {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  border: 1px solid var(--border);
  padding: 6px 14px;
}
.portfolio-link:hover { color: var(--accent); border-color: var(--accent); }

.portfolio-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1;
}

.portfolio-domain {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
}

.portfolio-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 32px;
  flex: 1;
}

.portfolio-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: auto;
}

.portfolio-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
}

.portfolio-stat-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-text);
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: auto;
}

.portfolio-tech-tag {
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--gray-text);
  text-transform: uppercase;
}

/* ============================================================
   AGENTS
   ============================================================ */
.agents {
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.agents-sub {
  font-size: 18px;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 24px;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

/* Terminal panel */
.agent-terminal {
  background: #0d0d0d;
  border: 1px solid rgba(200,255,0,0.15);
  border-radius: 4px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.agent-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #111;
}

.agent-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: agent-pulse 2s ease-in-out infinite;
}

@keyframes agent-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
  50%       { opacity: 0.5; box-shadow: 0 0 12px var(--accent); }
}

.agent-status-text {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.agent-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
}

.agent-log {
  flex: 1;
  padding: 20px 18px 12px;
  font-family: 'DM Mono', 'Fira Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-log-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  animation: line-appear 0.25s ease forwards;
}

@keyframes line-appear {
  to { opacity: 1; transform: translateY(0); }
}

.agent-log-line.result {
  color: var(--accent);
  font-weight: 500;
}

.agent-log-line.task {
  color: rgba(255,255,255,0.75);
}

.agent-log-line::before {
  content: '›';
  color: rgba(200,255,0,0.4);
  flex-shrink: 0;
  line-height: 1.8;
}

.agent-log-line.result::before {
  content: '✓';
  color: var(--accent);
}

.agent-cursor {
  width: 7px;
  height: 14px;
  background: var(--accent);
  margin: 0 18px 16px;
  opacity: 0.8;
  animation: blink 1.1s step-end infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 0; }
}

/* Mobile: horizontal scroll snap — one card visible at a time */
@media (max-width: 768px) {
  .agents-grid {
    grid-template-columns: repeat(3, 85vw);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding: 0 24px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    gap: 16px;
    padding-bottom: 12px;
    /* hide scrollbar */
    scrollbar-width: none;
  }
  .agents-grid::-webkit-scrollbar { display: none; }
  .agent-terminal {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 300px;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--gray);
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  margin-top: 64px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  cursor: pointer;
}

.faq-q {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-icon {
  width: 24px; height: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-a {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-text);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-a { max-height: 200px; padding-top: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--gray);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.contact-points {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.5;
}
.contact-point::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: none; height: 120px; }

/* Select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}

.form-submit {
  background: var(--accent);
  color: var(--black);
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px 40px;
  cursor: none;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
  align-self: flex-start;
}
.form-submit:hover { background: var(--accent-dim); transform: translateY(-2px); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--black);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 160px 60px;
  position: relative;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,255,0,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.95;
  max-width: 800px;
  margin: 0 auto 48px;
  position: relative;
}

.final-cta h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.final-cta p {
  font-size: 17px;
  color: var(--gray-text);
  max-width: 480px;
  margin: 0 auto 52px;
  line-height: 1.7;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--gray);
  border-top: 1px solid var(--border);
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 24px;
  background: var(--accent);
  flex-shrink: 0;
  transform: skewX(-12deg);
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: var(--gray-text);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* ============================================================
   MOBILE — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  nav {
    padding: 20px 24px;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }

  /* Lang switcher mobile */
  .lang-switcher-trigger { padding: 0 10px; font-size: 11px; height: 40px; }
  .lang-globe { width: 12px; height: 12px; }
  .lang-dropdown { right: auto; left: 0; }

  .fullmenu-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 24px;
    gap: 40px;
  }
  .fullmenu-item a {
    font-size: clamp(22px, 6vw, 32px);
    letter-spacing: -0.5px;
    padding: 14px 0;
  }
  .fullmenu-cta-wrap {
    margin-left: 0;
    align-items: flex-start;
    width: 100%;
  }
  .fullmenu-cta {
    font-size: 16px;
    padding: 16px 28px;
  }
  .fullmenu-footer {
    padding: 20px 24px;
  }

  section { padding: 80px 24px; }

  .hero {
    padding: 120px 24px 80px;
  }
  .hero-accent-circle {
    display: none;
  }
  .hero h1 {
    font-size: clamp(32px, 10vw, 72px);
    letter-spacing: -1px;
    line-height: 0.95;
  }
  .hero-sub {
    font-size: 16px;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-scroll { display: none; }

  .approach {
    padding: 0 24px;
  }
  .approach-sticky-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .approach-left {
    position: relative;
    top: auto;
    padding: 80px 0 40px;
  }
  .approach-right {
    padding: 0 0 80px;
  }
  .pillar-step {
    opacity: 1;
  }
  .pillar-step-line {
    width: 40px;
  }
  .pillar-link {
    opacity: 1;
  }
  .approach-desc { max-width: 100%; }

  .pillars { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }

  .service-card { padding: 40px 28px; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 40px 28px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { padding: 40px 28px; }

  .faq-grid { grid-template-columns: 1fr; gap: 0; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-info h2 { font-size: 32px; }

  .section-h2 {
    font-size: clamp(24px, 7.5vw, 48px);
    letter-spacing: -1px;
  }

  .final-cta { padding: 100px 24px; }
  .final-cta h2 {
    font-size: clamp(36px, 10vw, 64px);
    letter-spacing: -2px;
  }

  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 40px 24px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

/* ============================================================
   TABLET — 769px to 1024px
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 20px 40px; }
  section { padding: 100px 40px; }
  .hero { padding: 140px 40px 80px; }
  .approach { padding: 0 40px; }
  .faq-grid { gap: 0 40px; }
  footer { padding: 48px 40px; }
}
