/* ============================================================================
   ARTOVY — 3D KINETIC LIQUID SHADER & COVERFLOW STUDIO
   ============================================================================ */

/* Local fallbacks sized to match the web fonts, so text doesn't jump when Google Fonts swap in */
@font-face {
  font-family: 'DM Sans Fallback';
  font-weight: 100 600;
  src: local('Arial'), local('ArialMT');
  size-adjust: 103.09%;
  ascent-override: 96.23%;
  descent-override: 30.07%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  font-weight: 700 900;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 103.03%;
  ascent-override: 96.28%;
  descent-override: 30.09%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plus Jakarta Sans Fallback';
  font-weight: 100 600;
  src: local('Arial'), local('ArialMT');
  size-adjust: 106.39%;
  ascent-override: 97.56%;
  descent-override: 20.87%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plus Jakarta Sans Fallback';
  font-weight: 700 900;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 102.40%;
  ascent-override: 101.36%;
  descent-override: 21.68%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Instrument Serif Fallback';
  font-style: normal;
  src: local('Times New Roman'), local('TimesNewRomanPSMT');
  size-adjust: 83.89%;
  ascent-override: 118.02%;
  descent-override: 36.95%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Instrument Serif Fallback';
  font-style: italic;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  size-adjust: 90.25%;
  ascent-override: 109.69%;
  descent-override: 34.35%;
  line-gap-override: 0%;
}

:root {
  --purple: #19c3c3;
  --violet: #0f9fa3;
  --blue: #0b7a80;
  --cyan: #f2efe6;
  --onyx: #131a1b;

  --bg-base: #060a0b;
  --bg-card: rgba(16, 23, 24, 0.56);
  --bg-pill: rgba(255, 255, 255, 0.06);
  --text-main: #f2f6f6;
  --text-soft: #a6b2b3;
  --text-muted: #7d898a;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --header-bg: rgba(10, 15, 16, 0.68);
  --spotlight-color: rgba(79, 224, 216, 0.25);
  --logo-ink: #f2f6f6;

  --font-head: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', system-ui, sans-serif;
  --font-body: 'DM Sans', 'DM Sans Fallback', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;

  --r-pill: 9999px;
  --r-card: 28px;
}

html[data-theme="light"] {
  --bg-base: #f4f8f8;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-pill: rgba(20, 29, 30, 0.05);
  --text-main: #131a1b;
  --text-soft: #4a5658;
  --text-muted: #5f6b6d;
  --border-subtle: rgba(20, 29, 30, 0.1);
  --header-bg: rgba(255, 255, 255, 0.78);
  --spotlight-color: rgba(11, 122, 128, 0.14);
  --logo-ink: #04484c;
  /* cream accent vanishes on the light background */
  --cyan: #0f9fa3;
}

html[data-theme="light"] .bento-glyph.purple { color: #0b7a80; }
html[data-theme="light"] .bento-glyph.blue { color: #0a8f95; }
html[data-theme="light"] .bento-glyph.violet { color: #12b5b8; }
html[data-theme="light"] .dock-progress-fill { background: linear-gradient(90deg, #0b7a80, #19c3c3); }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; border: none; outline: none; background: none; }

.container {
  width: min(1280px, 90vw);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ============================================================================
   INTRO CURTAIN
   ============================================================================ */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060a0b;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.curtain-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.curtain-logo {
  height: 64px;
  aspect-ratio: 1860 / 512;
  color: var(--logo-ink);
}

.curtain-text {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #0b7a80, #4fe0d8, #f2efe6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================================
   MAGNETIC CURSOR
   ============================================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 224, 216, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease;
}

.cursor-label {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

body.cursor-hover .cursor-ring {
  width: 78px;
  height: 78px;
  background: rgba(15, 159, 163, 0.85);
  border-color: var(--cyan);
}

body.cursor-hover .cursor-label {
  opacity: 1;
}

@media (pointer: coarse), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============================================================================
   FULLSCREEN 3D WEBGL STAGE
   ============================================================================ */
.webgl-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#artovy-webgl {
  width: 100%;
  height: 100%;
  display: block;
}

.bg-mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
}

.mesh-1 {
  width: 520px;
  height: 520px;
  background: #19c3c3;
  top: -140px;
  right: -100px;
}

.mesh-2 {
  width: 520px;
  height: 520px;
  background: #0b7a80;
  bottom: -160px;
  left: -120px;
}

html[data-theme="light"] .bg-mesh-glow {
  opacity: 0.14;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-pill-bar {
  width: min(1280px, 92vw);
  margin-inline: auto;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--header-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-full {
  height: 42px;
  aspect-ratio: 1860 / 512;
  color: var(--logo-ink);
  transition: transform 0.35s ease;
}

.brand-logo:hover .brand-full {
  transform: scale(1.05);
}

.brand-mark { display: none; }

/* on phones the full logo pushes the menu button off screen, so show only the A mark */
@media (max-width: 480px) {
  .brand-full { display: none; }
  .brand-mark { display: block; width: 34px; height: 34px; }
}

.brand-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #0b7a80, #4fe0d8, #f2efe6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-pill);
}

.nav-dropdown-wrap { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: 20px;
  background: var(--header-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.nav-dropdown a:hover {
  background: var(--bg-pill);
  color: var(--text-main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sky theme toggle: sun + clouds (light), moon + stars (dark); scales in em from font-size (port of Uiverse theme-switch) */
.theme-switch {
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
  background: none;
  border: 0;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  border-radius: 6.25em;
  font-size: 11px;
}

.sky, .sky *, .sky *::before, .sky *::after, .sky::before { box-sizing: border-box; }

.sky {
  display: block;
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  transition: var(--transition);
  position: relative;
}

.sky::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius);
}

.sky__circle {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: flex;
  transition: var(--circle-transition);
  pointer-events: none;
}

.sky__sun {
  display: block;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  transition: var(--transition);
}

.sky__moon {
  display: block;
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  transition: var(--transition);
  position: relative;
}

.sky__spot {
  display: block;
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.sky__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.sky__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.sky__clouds {
  display: block;
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  transition: var(--transition);
}

.sky__stars {
  display: block;
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  transition: var(--transition);
}

.sky__stars svg { display: block; width: 100%; }

.theme-switch:hover .sky__circle {
  left: calc(var(--circle-container-offset) + 0.187em);
}

/* dark = night state */
html[data-theme="dark"] .theme-switch .sky { background-color: var(--container-night-bg); }

html[data-theme="dark"] .theme-switch .sky__circle {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

html[data-theme="dark"] .theme-switch:hover .sky__circle {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em);
}

html[data-theme="dark"] .theme-switch .sky__moon { transform: translate(0); }

html[data-theme="dark"] .theme-switch .sky__clouds { bottom: -4.062em; }

html[data-theme="dark"] .theme-switch .sky__stars {
  top: 50%;
  transform: translateY(-50%);
}

.cta-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #0b7a80, #19c3c3);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
}

.cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.mobile-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-burger span {
  width: 17px;
  height: 2px;
  background: var(--text-main);
}

.mobile-drawer {
  position: fixed;
  top: 78px;
  left: 4vw;
  right: 4vw;
  z-index: 99;
  padding: 22px;
  border-radius: 24px;
  background: var(--header-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-links a {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-contact-row {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--cyan);
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-burger { display: inline-flex; }
}

/* ============================================================================
   FLOATING BOTTOM CHAPTER DOCK
   ============================================================================ */
.chapter-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--header-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.dock-item {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.dock-item span {
  opacity: 0.55;
  margin-right: 3px;
}

.dock-item.active, .dock-item:hover {
  background: rgba(79, 224, 216, 0.2);
  color: var(--text-main);
}

.dock-progress {
  width: 48px;
  height: 4px;
  background: rgba(128, 128, 128, 0.25);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-left: 4px;
}

.dock-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0b7a80, #4fe0d8, #f2efe6);
}

@media (max-width: 780px) {
  .chapter-dock { display: none; }
}

/* ============================================================================
   TYPOGRAPHY & SPOTLIGHT CARD SYSTEM
   ============================================================================ */
.section {
  position: relative;
  padding: 120px 0;
  z-index: 2;
}

.iridescent-word {
  background: linear-gradient(115deg, #8fe6e2 0%, #7ee8e2 45%, #f2efe6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .iridescent-word {
  background: linear-gradient(115deg, #04484c 0%, #0b7a80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* light halo separates the word from the turquoise 3D object behind it */
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.editorial-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin-top: 12px;
}

.tag-outline {
  display: inline-block;
  padding: 6px 15px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  color: #b0f2ee;
}

html[data-theme="light"] .tag-outline {
  color: var(--purple);
}

.tag-solid {
  display: inline-block;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--onyx);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Mouse-tracking Spotlight Card */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight-color),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ============================================================================
   01. HERO SECTION & INTERACTIVE SHADER LAB
   ============================================================================ */
.hero-section {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: center;
  margin-block: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.eyebrow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4.9vw, 4.5rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.032em;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-capsule:hover { transform: translateY(-2px); }

.btn-primary-iridescent {
  background: linear-gradient(135deg, #0b7a80 0%, #19c3c3 55%, #0f9fa3 100%);
  color: #fff;
  box-shadow: 0 12px 30px -6px rgba(11, 122, 128, 0.65);
}

.btn-glass-outline {
  border: 1.5px solid var(--purple);
  background: rgba(11, 122, 128, 0.1);
}

/* Right Orbit Zone over 3D Shader Sculpture */
.hero-orbit-zone {
  height: 440px;
  border-radius: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  cursor: grab;
  user-select: none;
}

.hero-orbit-zone:active { cursor: grabbing; }

/* Kinetic Ribbon */
.kinetic-ribbon {
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.ribbon-track { overflow: hidden; }

.ribbon-items {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: ribbonScroll 26s linear infinite;
}

.ribbon-items:hover { animation-play-state: paused; }

.ribbon-chip {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  white-space: nowrap;
}

@keyframes ribbonScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-orbit-zone { height: 260px; }
}

/* ============================================================================
   02. Z-DEPTH SPATIAL GATES (NASIL ÇALIŞIYORUZ?)
   ============================================================================ */
.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.pill-pair {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.section-sub {
  max-width: 480px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.z-gates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  perspective: 1200px;
}

.gate-card {
  padding: 36px;
  border-radius: var(--r-card);
  transform-style: preserve-3d;
  transition: border-color 0.3s ease;
}

.gate-card:hover {
  border-color: var(--purple);
}

.gate-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--cyan);
  margin-bottom: 18px;
}

.gate-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.gate-card h3 {
  font-family: var(--font-head);
  font-size: 1.38rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.gate-card p {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.gate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gate-chips span {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .z-gates-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   03. 3D PERSPECTIVE COVERFLOW (HİZMETLERİMİZ)
   ============================================================================ */
.coverflow-section {
  overflow: hidden;
}

.coverflow-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.coverflow-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cf-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--cyan);
}

.cf-indicator {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}

#cf-active-num { color: var(--cyan); }

.coverflow-viewport {
  width: 100%;
  height: 460px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.coverflow-stage {
  position: relative;
  width: min(420px, 86vw);
  height: 420px;
  transform-style: preserve-3d;
}

.cf-card {
  position: absolute;
  inset: 0;
  padding: 32px;
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s ease,
              border-color 0.3s ease;
}

.cf-card.active {
  border-color: var(--purple);
  box-shadow: 0 30px 70px -15px rgba(11, 122, 128, 0.45);
}

.cf-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-tag {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.cf-icon { width: 52px; height: 52px; }

.cf-card h3 {
  font-family: var(--font-head);
  font-size: 1.48rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cf-card p {
  font-size: 0.94rem;
  color: var(--text-soft);
}

.cf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cf-pills span {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 600;
}

.cf-action {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cyan);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.cf-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
}

/* 24px touch target; padding + content-box clip keep the visible dot at 10px */
.cf-dot {
  width: 24px;
  height: 24px;
  padding: 7px;
  background-clip: content-box;
  border-radius: var(--r-pill);
  background-color: var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
}

.cf-dot.active {
  width: 42px;
  background-color: var(--cyan);
}

/* ============================================================================
   04. ECOSYSTEM BENTO
   ============================================================================ */
.section-head-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-head-center .section-sub {
  margin: 12px auto 0;
}

.bento-ecosystem {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  padding: 30px;
  border-radius: var(--r-card);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.bento-card:hover,
.bento-card:focus-visible,
.bento-card:active {
  transform: translateY(-8px);
  border-color: #19c3c3;
  box-shadow: 0 18px 40px -12px rgba(25, 195, 195, 0.35), 0 0 0 1px rgba(25, 195, 195, 0.25);
}

.bento-card .bento-logo,
.bento-card .bento-arrow {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}

.bento-card:hover .bento-logo,
.bento-card:focus-visible .bento-logo,
.bento-card:active .bento-logo {
  transform: scale(1.06);
}

.bento-card:hover .bento-arrow,
.bento-card:focus-visible .bento-arrow,
.bento-card:active .bento-arrow {
  transform: translate(3px, -3px);
  color: #19c3c3;
}

.bento-wide {
  grid-column: span 2;
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bento-glyph {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.bento-glyph.cyan { color: var(--cyan); }
.bento-glyph.purple { color: #7ee8e2; }
.bento-glyph.blue { color: #8fe6e2; }
.bento-glyph.violet { color: #5cd6d2; }

/* brand logos keep their own colors, so each sits on a plate it was designed for */
.bento-logo {
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 11px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #0b1214;
  border: 1px solid var(--border-subtle);
}
.bento-logo img {
  height: 100%;
  width: auto;
  display: block;
}
.bento-logo-light { background: #fff; }
.bento-logo-lg { height: 76px; padding-block: 10px; }

.bento-body h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.bento-body p {
  font-size: 0.94rem;
  color: var(--text-soft);
}

@media (max-width: 880px) {
  .bento-ecosystem { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* ============================================================================
   05. AJANS & SCROLL-SCRUBBED QUOTE
   ============================================================================ */
.kinetic-quote-panel {
  padding: 52px 44px;
  border-radius: 32px;
  margin-bottom: 64px;
}

.quote-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.scrub-quote {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 22px;
}

.scrub-quote span {
  opacity: 0.25;
  transition: opacity 0.25s ease;
}

.scrub-quote span.lit {
  opacity: 1;
}

.scrub-quote .q-accent.lit {
  color: var(--cyan);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
}

.quote-footer {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.agency-split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 52px;
  align-items: center;
}

.pop-art-stage {
  padding: 18px;
  border-radius: 30px;
}

.pop-sky {
  height: 390px;
  border-radius: 22px;
  background: linear-gradient(160deg, #cbf3f1 0%, #0b7a80 55%, #19c3c3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pop-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pop-badges {
  position: absolute;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pop-badges span {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: rgba(14, 20, 21, 0.72);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
}

.tl-tab {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tl-tab.active {
  background: var(--purple);
  color: #03302f;
  border-color: var(--cyan);
}

.tl-panel {
  display: none;
  padding: 26px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.tl-panel.active {
  display: block;
  animation: fadeSlide 0.35s ease;
}

.tl-panel h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tl-panel p {
  color: var(--text-soft);
}

/* ============================================================================
   06. SIK SORULAN SORULAR
   ============================================================================ */
.faq-list {
  max-width: 860px;
  margin: 36px auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 22px;
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item summary h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-soft);
  line-height: 1.65;
}

.faq-item p a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .agency-split { grid-template-columns: 1fr; }
  /* closer to the photo's own ratio so the anvil isn't cropped; badges on one row stay below the anvil */
  .pop-sky { height: auto; aspect-ratio: 4 / 3; }
  .pop-badges { flex-wrap: nowrap; gap: 6px; }
  .pop-badges span { padding: 4px 10px; font-size: 0.7rem; white-space: nowrap; }
}

/* ============================================================================
   06. CONTACT & FOOTER
   ============================================================================ */
.contact-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 42px;
}

.big-capsule {
  padding: 18px 34px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.big-capsule:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: start;
}

.purple-portal-card {
  padding: 44px 38px;
  border-radius: 32px;
  background: linear-gradient(155deg, #14b1b4 0%, #19c3c3 60%, #0b7a80 100%);
  color: #fff;
  box-shadow: 0 28px 65px -16px rgba(15, 159, 163, 0.55);
}

.purple-portal-card h3 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.portal-sub {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.portal-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.p-topic {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.p-topic.active {
  background: #131a1b;
  border-color: var(--cyan);
}

.portal-form input, .portal-form textarea {
  width: 100%;
  padding: 12px 0;
  margin-bottom: 18px;
  color: #fff;
  font-size: 0.98rem;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
}

.portal-form input::placeholder, .portal-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.portal-form input:focus, .portal-form textarea:focus {
  border-bottom-color: var(--cyan);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-onyx {
  background: #131a1b;
  color: #fff;
}

.btn-wa {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.portal-feedback {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 600;
}

.social-panel {
  padding: 36px 30px;
  border-radius: 32px;
}

.social-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.social-panel h3 {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  margin: 6px 0 8px;
}

.social-panel p {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.s-pill:hover {
  transform: translateX(6px);
  border-color: var(--cyan);
}

.s-pill span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
.site-footer {
  padding: 80px 0 110px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* frosted tile keeps the dark-purple half of the mark legible over the 3D scene */
.footer-logo-big {
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--header-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
}

.footer-logo-big svg {
  width: 100%;
  height: 100%;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 800;
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.14;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.footer-pill {
  padding: 14px 32px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
}

.footer-pill:hover {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Keyboard focus ring (both themes via --cyan) */
a:focus-visible, button:focus-visible {
  outline: 2px solid #19c3c3;
  outline-offset: 3px;
}

html[data-theme="light"] a:focus-visible, html[data-theme="light"] button:focus-visible {
  outline-color: var(--cyan);
}

/* Reduced motion: stop keyframe animations (marquee, float, fades) and long transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* very small phones (≤360px): header can't fit icon + theme + CTA + menu button; İletişim stays in the drawer and the bottom dock */
@media (max-width: 360px) {
  .cta-pill-nav { display: none; }
  .pop-badges { gap: 4px; }
  .pop-badges span { padding: 3px 8px; font-size: 0.64rem; }
}
