/* ===== DESIGN TOKENS ===== */
:root {
  --carbon: #0F0F0F;
  --graphite: #1A1A1A;
  --surface: #1F1F1F;
  --signal: #FF6B35;
  --signal-dim: rgba(255, 107, 53, 0.08);
  --signal-glow: rgba(255, 107, 53, 0.25);
  --glow: #FFB088;
  --light: #EAEAEA;
  --muted: #888888;
  --dim: #555555;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-reveal: 0.8s;
  --duration-micro: 0.3s;

  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--signal) var(--graphite);
}

body {
  font-family: var(--font-body);
  background: var(--carbon);
  color: var(--light);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M0 0 L0 20 L5.5 15 L10 23 L13 21.5 L8.5 13.5 L15 13 Z' fill='%23FF6B35' stroke='%230F0F0F' stroke-width='1'/%3E%3C/svg%3E") 0 0, auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, button, input, textarea, select {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M0 0 L0 20 L5.5 15 L10 23 L13 21.5 L8.5 13.5 L15 13 Z' fill='%23FFB088' stroke='%230F0F0F' stroke-width='1'/%3E%3C/svg%3E") 0 0, pointer;
}

::selection {
  background: var(--signal);
  color: var(--carbon);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== PAGE LOADER — IRIS REVEAL ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: var(--carbon);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(100%);
  transition: clip-path 1s var(--ease-in-out-quart);
}

.loader.done {
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: -0.02em;
}

.loader__logo span {
  color: var(--signal);
}

.loader__circle {
  transform: rotate(-90deg);
}

.loader__circle-fill {
  animation: loaderCircleFill 1.2s var(--ease-out-expo) forwards;
}

@keyframes loaderCircleFill {
  0% { stroke-dashoffset: 226.2; }
  100% { stroke-dashoffset: 0; }
}

/* ===== GRAIN OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--signal);
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
  transition: none;
}

/* ===== ATMOSPHERE ===== */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  will-change: transform;
  animation: orbFadeIn 2s ease-out forwards;
}

.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12), transparent 70%);
  top: -200px; right: -150px;
  animation-delay: 1.4s;
}

.orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 176, 136, 0.08), transparent 70%);
  bottom: -150px; left: -150px;
  animation-delay: 1.8s;
}

.orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05), transparent 70%);
  top: 40%; left: 30%;
  animation-delay: 2.2s;
}

@keyframes orbFadeIn {
  to { opacity: 1; }
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

section {
  position: relative;
  z-index: 1;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(0.88); }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.5s ease, padding 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled {
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0em;
  opacity: 0;
  transform: translateY(-20px);
  animation: navReveal 0.8s var(--ease-out-expo) 1.4s forwards;
}

.nav__logo span { color: var(--signal); }
.nav__logo .studio { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 0.85em; }

.nav__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  opacity: 0;
  transform: translateY(-20px);
  animation: navReveal 0.8s var(--ease-out-expo) 1.6s forwards;
  position: relative;
  z-index: 101;
}

.nav__menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--light);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, width 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav__menu-btn span:nth-child(1) { width: 28px; }
.nav__menu-btn span:nth-child(3) { width: 20px; transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, width 0.3s var(--ease-out-expo); }

.nav__menu-btn:hover span:nth-child(3) { width: 28px; }

.nav__menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__menu-btn.active span:nth-child(2) { opacity: 0; }
.nav__menu-btn.active span:nth-child(3) { width: 28px; transform: rotate(-45deg) translate(5px, -6px); }

@keyframes navReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FULL-SCREEN NAV OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--carbon);
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.8s var(--ease-in-out-quart);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nav-overlay.open {
  clip-path: circle(150% at calc(100% - 60px) 40px);
  pointer-events: all;
}

.nav-overlay__list {
  list-style: none;
  text-align: center;
}

.nav-overlay__item {
  margin: 20px 0;
  overflow: hidden;
}

.nav-overlay__link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--light);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), color 0.3s ease;
  transition-delay: calc(var(--i) * 80ms + 0.2s);
  display: inline-block;
  position: relative;
}

.nav-overlay.open .nav-overlay__link {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.nav-overlay__link:hover {
  color: var(--signal);
}

.nav-overlay__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(255, 107, 53, 0.04), transparent 70%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out-expo) 1.6s forwards;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--signal);
}

.hero__label-line {
  margin-left: 8px;
  opacity: 0.5;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: wordReveal 1s var(--ease-out-quint) forwards;
  animation-delay: calc(var(--i) * 80ms + 1.8s);
}

.hero__title .line { display: block; overflow: hidden; padding-bottom: 4px; }

.hero__title .accent { color: var(--signal); }

.hero__beyond {
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.15), 0 0 50px rgba(255, 107, 53, 0.06);
  transition: text-shadow 0.5s ease;
  padding: 0.15em 0.25em;
  margin: -0.15em -0.25em;
}

.hero__beyond:hover {
  text-shadow: 0 0 25px rgba(255, 107, 53, 0.35), 0 0 60px rgba(255, 107, 53, 0.15);
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--light);
  max-width: 640px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out-expo) 2.4s forwards;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out-expo) 2.7s forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.hero__cta--primary {
  background: var(--signal);
  border: 1px solid var(--signal);
  color: var(--carbon);
}

.hero__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(255, 107, 53, 0.25);
}

.hero__cta--secondary {
  background: transparent;
  border: 1px solid var(--dim);
  color: var(--light);
}

.hero__cta--secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--signal);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.hero__cta--secondary:hover {
  border-color: var(--signal);
  color: var(--carbon);
  transform: translateY(-2px);
}

.hero__cta--secondary:hover::before {
  transform: scaleX(1);
}

.hero__cta svg {
  transition: transform 0.4s var(--ease-out-expo);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

.hero__reply-note {
  margin-top: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--dim);
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out-expo) 2.9s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out-expo) 3s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--signal), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.4); }
}

/* HERO TENTACLES SVG */
.hero__tentacles {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 42vw, 650px);
  height: clamp(320px, 42vw, 650px);
  z-index: 1;
  opacity: 0;
  animation: tentacleFadeIn 2.5s var(--ease-out-expo) 2s forwards;
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.15));
  transition: transform 0.3s ease-out;
}

@keyframes tentacleFadeIn {
  to { opacity: 0.35; }
}

.tentacle-path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: tentacleDraw 3s var(--ease-out-expo) forwards;
}

.tentacle-path:nth-child(1) { animation-delay: 2.2s; }
.tentacle-path:nth-child(2) { animation-delay: 2.35s; }
.tentacle-path:nth-child(3) { animation-delay: 2.5s; }
.tentacle-path:nth-child(4) { animation-delay: 2.65s; }
.tentacle-path:nth-child(5) { animation-delay: 2.8s; }
.tentacle-path:nth-child(6) { animation-delay: 2.95s; }
.tentacle-path:nth-child(7) { animation-delay: 3.1s; }
.tentacle-path:nth-child(8) { animation-delay: 3.25s; }

@keyframes tentacleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes tentacleFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(calc(var(--tx, 5) * 1px), calc(var(--ty, 5) * 1px)); }
}


/* ===== SECTION DIVIDERS ===== */
.section-divider {
  position: relative;
  z-index: 2;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.section-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.section-divider--flip {
  margin-bottom: -1px;
}

/* ===== SECTION HEADERS ===== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--signal);
  margin-left: -38px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services {
  padding: 160px 0;
  background: var(--graphite);
  box-shadow: inset 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 72px;
}

/* Bento layout: Web Apps wide, Mobile tall, AI + Consultancy fill bottom */
.service-card:nth-child(1) {
  grid-column: 1 / 3;
}

.service-card:nth-child(2) {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.service-card:nth-child(2) .service-card__desc {
  flex: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 40px 32px;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.5s ease, background 0.5s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card__glow {
  display: none;
}

.service-card__watermark {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--light);
  opacity: 0.02;
  pointer-events: none;
  line-height: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.service-card:hover::before {
  opacity: 0.6;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--signal-dim);
  border-radius: 14px;
  margin-bottom: 24px;
  color: var(--signal);
  transition: background 0.4s ease, transform 0.5s var(--ease-out-expo), box-shadow 0.4s ease;
}

/* Larger icons with glow for wide/tall bento cards */
.service-card:nth-child(1) .service-card__icon,
.service-card:nth-child(4) .service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.08);
}

.service-card:nth-child(1) .service-card__icon svg,
.service-card:nth-child(4) .service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-card__icon {
  background: rgba(255, 107, 53, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.15);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.service-card__accent-line {
  position: absolute;
  bottom: 0;
  left: 32px;
  width: 100px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

.service-card.revealed .service-card__accent-line {
  transform: scaleX(1);
  transition-delay: 0.4s;
}

/* ===== PROJECTS / LAB ===== */
.projects {
  padding: 120px 0 160px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 72px;
}

.project-card {
  position: relative;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.5s ease, box-shadow 0.6s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(255, 107, 53, 0.12);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}

.project-card__visual {
  height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.project-card__gradient {
  position: absolute;
  inset: 0;
  transition: transform 1s var(--ease-out-expo);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.project-card:hover .project-card__gradient {
  transform: scale(1.08);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.project-card__gradient--sibni {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 35%, #2a1a10 70%, rgba(255, 107, 53, 0.3) 100%);
  background-size: 200% 200%;
}

.project-card__gradient--ricetti {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 35%, #1a1510 70%, rgba(255, 176, 136, 0.2) 100%);
  background-size: 200% 200%;
}

.project-card__gradient--gotw {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 35%, #1f1510 70%, rgba(255, 107, 53, 0.25) 100%);
  background-size: 200% 200%;
}

.project-card__mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
  transition: transform 1.2s var(--ease-out-expo);
}

.project-card:hover .project-card__mesh {
  transform: scale(0.95) rotate(1deg);
}

/* ===== PROJECT CARD ANIMATED ILLUSTRATIONS ===== */
.project-card__anim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.project-card__anim svg {
  width: 75%;
  height: 75%;
}

/* — Sibni: Location pin with sonar pulses & connection network — */
.sibni-anim__ring {
  animation: sibniSonar 3s ease-out infinite;
}
.sibni-anim__ring--2 { animation-delay: 0.8s; }
.sibni-anim__ring--3 { animation-delay: 1.6s; }

@keyframes sibniSonar {
  0% { r: 28; opacity: 0.5; }
  100% { r: 65; opacity: 0; }
}

.sibni-anim__pin {
  animation: sibniFloat 3s ease-in-out infinite;
  transform-origin: center;
}
.sibni-anim__pin-dot {
  animation: sibniFloat 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes sibniFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.sibni-anim__shadow {
  animation: sibniShadow 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes sibniShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.15; }
  50% { transform: scaleX(0.7); opacity: 0.08; }
}

.sibni-anim__dot {
  opacity: 0.3;
  animation: sibniDotPulse 2.5s ease-in-out infinite;
}
.sibni-anim__dot--1 { animation-delay: 0s; }
.sibni-anim__dot--2 { animation-delay: 0.6s; }
.sibni-anim__dot--3 { animation-delay: 1.2s; }
.sibni-anim__dot--4 { animation-delay: 1.8s; }

@keyframes sibniDotPulse {
  0%, 100% { opacity: 0.2; r: 2; }
  50% { opacity: 0.7; r: 3; }
}

.sibni-anim__line {
  opacity: 0;
  animation: sibniLineReveal 2.5s ease-in-out infinite;
}
.sibni-anim__line--1 { animation-delay: 0s; }
.sibni-anim__line--2 { animation-delay: 0.6s; }
.sibni-anim__line--3 { animation-delay: 1.2s; }
.sibni-anim__line--4 { animation-delay: 1.8s; }

@keyframes sibniLineReveal {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 0.25; }
}

/* — GOTW: Football with bounce & subtle field — */
.gotw-anim__ball {
  animation: gotwBounce 2s ease-in-out infinite;
  transform-origin: 100px 96px;
}

@keyframes gotwBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-8px) rotate(-5deg); }
  60% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(2deg); }
}

.gotw-anim__shadow {
  animation: gotwShadow 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes gotwShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.12; }
  30% { transform: scaleX(0.6); opacity: 0.05; }
  60% { transform: scaleX(1); opacity: 0.12; }
  75% { transform: scaleX(0.8); opacity: 0.08; }
}

.gotw-anim__trail {
  animation: gotwTrail 2s ease-out infinite;
}
.gotw-anim__trail--1 { animation-delay: 0.15s; }
.gotw-anim__trail--2 { animation-delay: 0.08s; }
.gotw-anim__trail--3 { animation-delay: 0.02s; }

@keyframes gotwTrail {
  0%, 20% { opacity: 0; }
  25% { opacity: 0.3; }
  45% { opacity: 0; }
  100% { opacity: 0; }
}

.gotw-anim__score {
  animation: gotwScorePulse 4s ease-in-out infinite;
}

@keyframes gotwScorePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.project-card__lottie {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.project-card__lottie svg {
  width: 70% !important;
  height: 70% !important;
}

.project-card__status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid rgba(255, 107, 53, 0.15);
}

.project-card__icon-float {
  position: absolute;
  bottom: 20px;
  left: 28px;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out-expo);
}

.project-card__icon-float svg {
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3));
}

.project-card:hover .project-card__icon-float {
  opacity: 1;
  transform: translateY(-6px) scale(1.1);
}

.project-card__body {
  padding: 28px 28px 32px;
}

.project-card__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.project-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-card__tag {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--signal-dim);
  color: var(--glow);
  border: 1px solid rgba(255, 107, 53, 0.08);
  transition: border-color 0.3s ease;
}

.project-card:hover .project-card__tag {
  border-color: rgba(255, 107, 53, 0.2);
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: 120px 0 160px;
  position: relative;
  overflow: hidden;
}

.philosophy__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 800;
  color: var(--light);
  opacity: 0.02;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
  user-select: none;
  transition: opacity 0.5s ease;
}

.philosophy__divider {
  width: 60px;
  height: 2px;
  background: var(--signal);
  margin-bottom: 48px;
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 48px;
}

.philosophy__quote .accent { color: var(--signal); }

.philosophy__body {
  max-width: 680px;
}

.philosophy__text {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.philosophy__text--emphasis {
  margin-top: 28px;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--light);
}

.philosophy__text--emphasis .accent {
  color: var(--signal);
}

.philosophy__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-top: 88px;
  counter-reset: value-counter;
}

.value {
  position: relative;
  padding-left: 42px;
  counter-increment: value-counter;
}

.value::before {
  content: counter(value-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--signal);
  opacity: 0.6;
}

.value::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal-glow);
}

.value__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0 160px;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 72px;
}

.about__avatar-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
}

.about__avatar {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}

.about__avatar-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08), transparent 60%);
  animation: avatarGlowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes avatarGlowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.about__avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity 0.6s ease, transform 1s var(--ease-out-expo);
}

.about__avatar:hover .about__avatar-photo {
  opacity: 1;
  transform: scale(1.05);
}

.about__avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  border: 1px solid rgba(255, 107, 53, 0.12);
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.about__avatar-ring--dashed {
  inset: -12px;
  border-radius: 36px;
  border: 1px dashed rgba(255, 107, 53, 0.08);
  animation: ringRotate 30s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.about__avatar:hover .about__avatar-ring {
  border-color: rgba(255, 107, 53, 0.25);
}

.about__avatar-particles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.about__avatar-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.3;
  animation: particleOrbit var(--orbit-duration, 8s) linear infinite;
}

@keyframes particleOrbit {
  0% { transform: rotate(var(--start-angle, 0deg)) translateX(var(--orbit-radius, 120px)) rotate(calc(-1 * var(--start-angle, 0deg))); }
  100% { transform: rotate(calc(var(--start-angle, 0deg) + 360deg)) translateX(var(--orbit-radius, 120px)) rotate(calc(-1 * (var(--start-angle, 0deg) + 360deg))); }
}

.about__text h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.about__text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about__text p .accent {
  color: var(--signal);
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.contact__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.contact__rings-svg {
  width: 100%;
  height: 100%;
}

.contact__ring {
  opacity: 0;
  transform-origin: center;
}

.contact__rings.active .contact__ring {
  animation: sonarPulse 3s ease-out infinite;
}

.contact__rings.active .contact__ring:nth-child(1) { animation-delay: 0s; }
.contact__rings.active .contact__ring:nth-child(2) { animation-delay: 0.5s; }
.contact__rings.active .contact__ring:nth-child(3) { animation-delay: 1s; }
.contact__rings.active .contact__ring:nth-child(4) { animation-delay: 1.5s; }

@keyframes sonarPulse {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.2); }
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 28px;
  position: relative;
}

.contact__heading .accent { color: var(--signal); }

.contact__great {
  text-shadow: 0 0 40px rgba(255, 107, 53, 0.3), 0 0 80px rgba(255, 107, 53, 0.1);
}

.contact__text {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 60px;
  line-height: 1.7;
  position: relative;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

/* Form */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.contact__field--full {
  grid-column: 1 / -1;
}

.contact__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__input,
.contact__textarea {
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  resize: vertical;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--dim);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.contact__textarea {
  min-height: 120px;
}

.contact__actions {
  grid-column: 1 / -1;
  padding-top: 8px;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 44px;
  background: var(--signal);
  color: var(--carbon);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.contact__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px var(--signal-glow);
}

.contact__btn:hover::after {
  opacity: 1;
}

.contact__btn:active {
  transform: scale(0.97);
}

.contact__btn svg {
  transition: transform 0.3s var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.contact__btn:hover svg {
  transform: translateX(4px);
}

/* Aside */
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 4px;
}

.contact__aside-block {
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 32px 28px;
}

.contact__aside-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact__aside-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact__meeting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--dim);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.contact__meeting::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--signal);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.contact__meeting:hover {
  border-color: var(--signal);
  color: var(--carbon);
}

.contact__meeting:hover::before {
  transform: scaleX(1);
}

.contact__meeting svg {
  flex-shrink: 0;
}

.contact__email {
  font-size: 1rem;
  font-weight: 500;
  color: var(--signal);
  transition: opacity 0.3s ease;
}

.contact__email:hover {
  opacity: 0.75;
}

/* ===== FOOTER — DEEP FLOOR ===== */
.footer {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.footer__gradient-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
}

.footer__tentacle {
  position: absolute;
  bottom: -10px;
  right: 10%;
  width: 120px;
  height: 80px;
  opacity: 0.3;
  pointer-events: none;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.footer__logo span { color: var(--signal); }
.footer__logo .studio { color: var(--muted); font-weight: 400; font-size: 0.85em; }

.footer__tagline {
  font-size: 0.82rem;
  color: var(--dim);
  font-style: italic;
  opacity: 0.6;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--dim);
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  transition: color 0.3s ease;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.footer__link:hover {
  color: var(--light);
}

.footer__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--graphite);
  border: 1px solid rgba(255, 107, 53, 0.15);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo), background 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

.footer__top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.footer__top:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--carbon);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero__tentacles { display: none; }
  .hero__canvas { display: none; }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__avatar-wrapper {
    max-width: 250px;
    margin: 0 auto;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    grid-column: 1;
    grid-row: auto;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta {
    justify-content: center;
  }

  .section-label::before,
  .hero__label::before {
    width: 20px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .service-card__glow { display: none; }
  .service-card__watermark { display: none; }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form {
    grid-template-columns: 1fr;
  }

  .contact__field--full {
    grid-column: 1;
  }

  .contact__actions {
    grid-column: 1;
  }

  .contact__rings {
    width: 250px;
    height: 250px;
  }

  .section-divider svg {
    height: 30px;
  }

  .philosophy__watermark {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .about__avatar-ring--dashed { display: none; }
  .about__avatar-particles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__title .word,
  .hero__label,
  .hero__subtitle,
  .hero__ctas,
  .hero__reply-note,
  .hero__scroll,
  .nav__logo,
  .nav__menu-btn {
    opacity: 1;
    transform: none;
  }

  .loader { display: none; }
  .scroll-progress { display: none; }
  .hero__canvas { display: none; }
  .about__avatar-particles { display: none; }
  .contact__rings { display: none; }
  .about__avatar-ring--dashed { animation: none; }
  .about__avatar-glow { animation: none; }

  .hero__tentacles {
    opacity: 0.35;
  }

  .tentacle-path {
    stroke-dashoffset: 0;
    stroke-dasharray: none;
  }

  .footer__top {
    opacity: 1;
    transform: none;
    pointer-events: all;
  }
}
