/* ============================================================
   KiyaVisuals - Design in Motion
   ============================================================ */

:root {
  --cream:      #fdf3e3;
  --cream-2:    #fbf0d8;
  --cream-3:    #f6e8cd;
  --teal:       #2a5b6b;
  --teal-deep:  #1f3a44;
  --teal-soft:  #3f7a8c;
  --orange:     #f5a623;
  --orange-2:   #f7a21b;
  --orange-lt:  #f7c47a;
  --grid:       #d7e4ea;
  --ink:        #22404a;
  --white:      #ffffff;

  --radius:     18px;
  --radius-lg:  28px;
  --shadow:     0 18px 40px -18px rgba(31, 58, 68, .35);
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --header-h:   78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (min-width: 621px) {
  html, body { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(245,166,35,.22), rgba(245,166,35,0) 62%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  will-change: transform;
}
body.has-glow .cursor-glow { opacity: 1; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(660px, 100%);
  padding: 8px 10px 8px 12px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(42,91,107,.18);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(31,58,68,.5);
  transition: box-shadow .3s var(--ease), background .3s var(--ease), width .3s var(--ease);
}
.site-header.is-scrolled .nav-pill {
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px -16px rgba(31,58,68,.55);
}
.nav-logo {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  transition: transform .3s var(--ease);
}
.nav-logo img {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 16px -8px rgba(31,58,68,.55);
}
.nav-logo:hover { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 auto;
}
.nav-sep { color: rgba(42,91,107,.35); font-weight: 300; }
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-link:hover { color: var(--orange-2); }
.nav-link.is-active { color: #fff; background: var(--teal); }

.nav-phone {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--teal);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.nav-phone:hover { background: var(--orange-2); border-color: var(--orange-2); color: #fff; transform: scale(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid rgba(42,91,107,.3);
  border-radius: 50%;
  flex: 0 0 auto;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  font-family: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--orange-2), #ef9a12);
  color: #fff;
  border-color: rgba(31,58,68,.35);
  box-shadow: 0 14px 26px -14px rgba(239,154,18,.9);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #f89c24 0%, #c97c2b 42%, #034e62 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(239,154,18,1); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: rgba(42,91,107,.4);
}
.btn-ghost:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 46px) 24px 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 49v22M49 60h22' stroke='%232a5b6b' stroke-opacity='.32' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(42,91,107,.38) 1.1px, transparent 1.3px),
    linear-gradient(rgba(215,228,234,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215,228,234,.9) 1px, transparent 1px);
  background-size: 120px 120px, 24px 24px, 120px 120px, 120px 120px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 22%, transparent 76%);
          mask-image: radial-gradient(ellipse at 30% 40%, #000 22%, transparent 76%);
}
.hero-glow {
  position: absolute;
  top: -10%; right: -8%;
  width: 62vw; height: 80vh;
  z-index: -1;
  background: radial-gradient(circle at 70% 30%, rgba(247,162,27,.55), rgba(247,196,122,.22) 45%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  flex: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 8.4vw, 7.6rem);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--teal);
  margin-bottom: 22px;
  font-synthesis: none;
  font-optical-sizing: auto;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.2vw, 5.8rem);
  margin-right: 0;
  white-space: normal;
}
.hero-title .char {
  display: inline-block;
  transform-origin: center;
  will-change: font-weight, letter-spacing, transform;
}
.hero-title .line { display: block; }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 44ch;
  color: rgba(34,64,74,.72);
  margin-bottom: 34px;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ DESIGN STUDIO UI (FROSTED GLASS) ============ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  --px: 0;
  --py: 0;
}
.studio-stage {
  position: relative;
  width: min(560px, 100%);
}
.studio {
  position: relative;
  width: 100%;
  padding: 30px 26px 34px;
  border-radius: 30px;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(150deg, #eef7fa 0%, #d3e6ed 100%);
  box-shadow: 0 46px 90px -46px rgba(31,58,68,.6), inset 0 1px 0 rgba(255,255,255,.6);
  animation: studioFloat 9s ease-in-out infinite;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .8;
  z-index: 0;
  pointer-events: none;
}
.blob.b1 { width: 190px; height: 190px; left: -50px; top: -50px; background: var(--orange); animation: blobA 11s ease-in-out infinite; }
.blob.b2 { width: 230px; height: 230px; right: -70px; top: 10px; background: var(--teal-soft); animation: blobB 13s ease-in-out infinite; }
.blob.b3 { width: 210px; height: 210px; left: 26%; bottom: -80px; background: var(--teal); animation: blobA 15s ease-in-out infinite reverse; }

.studio-window {
  position: relative;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255,255,255,.6), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 60px -28px rgba(31,58,68,.5), inset 0 1px 0 rgba(255,255,255,.85);
  transform: translate3d(calc(var(--px) * 7px), calc(var(--py) * 7px), 0);
  transition: transform .4s var(--ease);
}

.studio-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.sdot { width: 9px; height: 9px; border-radius: 50%; background: rgba(42,91,107,.22); }
.sdot:first-child { background: rgba(245,166,35,.95); }
.studio-file {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--teal);
}
.studio-chip {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(42,91,107,.18);
  padding: 3px 9px;
  border-radius: 999px;
}

.studio-body {
  display: grid;
  grid-template-columns: 46px 1fr 122px;
}
.studio-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-right: 1px solid rgba(255,255,255,.4);
}
.tool {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--teal);
  border: 1px solid rgba(42,91,107,.16);
  background: rgba(255,255,255,.42);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.tool svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool.is-on {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 8px 16px -8px rgba(42,91,107,.95);
  animation: toolPulse 8s ease-in-out infinite;
}

.studio-canvas {
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
}
.canvas-art {
  position: relative;
  width: 100%;
  min-height: 214px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(160deg, rgba(3,78,98,.22), rgba(42,91,107,.05));
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 18px 34px -22px rgba(31,58,68,.6);
}
.canvas-text {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  transform: scale(1);
  transform-origin: center;
  text-shadow: 0 12px 28px rgba(31,58,68,.5);
  will-change: transform;
}
.tf-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  transform-origin: center;
  border: 1.5px solid rgba(245,166,35,.95);
  border-radius: 5px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
  will-change: transform;
}
.tf-h {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1.4px solid var(--orange-2);
  border-radius: 2px;
}
.tf-nw { left: -4.5px; top: -4.5px; }
.tf-n  { left: 50%; top: -4.5px; margin-left: -3.5px; }
.tf-ne { right: -4.5px; top: -4.5px; }
.tf-e  { right: -4.5px; top: 50%; margin-top: -3.5px; }
.tf-se { right: -4.5px; bottom: -4.5px; }
.tf-s  { left: 50%; bottom: -4.5px; margin-left: -3.5px; }
.tf-sw { left: -4.5px; bottom: -4.5px; }
.tf-w  { left: -4.5px; top: 50%; margin-top: -3.5px; }
.tf-size {
  position: absolute;
  left: 50%;
  bottom: -21px;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--teal-deep);
  background: rgba(255,255,255,.92);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.studio-side {
  padding: 13px 11px;
  border-left: 1px solid rgba(255,255,255,.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-head {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(31,58,68,.55);
}
.layers {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.layer-hl {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 0;
  height: 18px;
  border-radius: 6px;
  background: rgba(245,166,35,.26);
  border: 1px solid rgba(245,166,35,.55);
  animation: layerSlide 8s ease-in-out infinite;
}
.lrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  font-size: 9.5px;
  color: rgba(31,58,68,.82);
}
.sw { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.sw-teal { background: var(--teal); }
.sw-cream { background: var(--cream); border: 1px solid rgba(42,91,107,.2); }
.sw-orange { background: var(--orange-2); }
.sw-ink { background: var(--ink); }
.sw-grid { background: var(--grid); }
.swatches { display: flex; gap: 5px; margin-bottom: 4px; }
.swx {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: var(--c);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 3px 8px -4px rgba(31,58,68,.8);
}
.export-btn {
  margin-top: 2px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-2), #ef9a12);
  box-shadow: 0 8px 16px -9px rgba(239,154,18,.95);
  animation: exportPop 8s ease-in-out infinite;
}

.studio-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-top: 1px solid rgba(255,255,255,.4);
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(31,58,68,.75);
}
.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-2);
  box-shadow: 0 0 0 3px rgba(245,166,35,.25);
  animation: ledPulse 1.7s ease-in-out infinite;
}
.status-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(42,91,107,.16);
  overflow: hidden;
}
.status-fill {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-soft), var(--orange-2));
  animation: fillBar 8s ease-in-out infinite;
}

.cursor {
  position: absolute;
  left: 30%;
  top: 42%;
  width: 22px;
  height: 22px;
  z-index: 6;
  pointer-events: none;
  color: #fff;
  animation: cursorMove 8s cubic-bezier(.65,0,.35,1) infinite;
}
.cursor.is-live { animation: none; }
.cursor-arrow {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 2px 5px rgba(31,58,68,.6));
}
.cursor-arrow svg { width: 100%; height: 100%; }
.cursor-ring {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  animation: clickRing 8s ease-out infinite;
}

.studio-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: linear-gradient(140deg, rgba(255,255,255,.78), rgba(255,255,255,.42));
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 18px 34px -18px rgba(31,58,68,.6);
}
.f1 { left: -18px; bottom: 56px; animation: floatA 6s ease-in-out infinite; }
.f2 { right: -14px; top: 44px; animation: floatB 7.5s ease-in-out infinite; }
.f3 { left: 18px; top: -18px; animation: floatB 8.5s ease-in-out infinite .6s; }
.f4 { right: 26px; bottom: -16px; animation: floatA 7s ease-in-out infinite 1.2s; }
.app-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
  flex: 0 0 auto;
  box-shadow: 0 5px 12px -6px rgba(31,58,68,.95);
}
.app-ico svg { width: 15px; height: 15px; }
.app-ico.ps { background: #001e36; color: #31a8ff; }
.app-ico.ai { background: #330000; color: #ff9a00; }
.app-ico.ae { background: #00005b; color: #9999ff; }
.app-ico.fig { background: rgba(255,255,255,.94); }

@keyframes studioFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@keyframes blobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 22px) scale(1.12); }
}
@keyframes blobB {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-26px, 26px) scale(.92); }
}
@keyframes toolPulse {
  0%, 24% { box-shadow: 0 8px 16px -8px rgba(42,91,107,.95); }
  26% { box-shadow: 0 8px 22px -6px rgba(42,91,107,1); }
  32%, 100% { box-shadow: 0 8px 16px -8px rgba(42,91,107,.95); }
}
@keyframes layerSlide {
  0%, 16% { top: 0%; }
  20%, 34% { top: 20%; }
  38%, 50% { top: 40%; }
  54%, 68% { top: 60%; }
  72%, 84% { top: 80%; }
  92%, 100% { top: 0%; }
}
@keyframes exportPop {
  0%, 84% { transform: scale(1); }
  90% { transform: scale(1.07); }
  96%, 100% { transform: scale(1); }
}
@keyframes fillBar {
  0% { width: 4%; opacity: .35; }
  8% { opacity: 1; }
  88% { width: 100%; opacity: 1; }
  100% { width: 4%; opacity: .35; }
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}
@keyframes cursorMove {
  0% { left: 30%; top: 44%; opacity: 0; }
  7% { left: 30%; top: 44%; opacity: 1; }
  18% { left: 20%; top: 16%; opacity: 1; }
  26% { left: 22%; top: 18%; opacity: 1; }
  38% { left: 62%; top: 28%; opacity: 1; }
  44% { left: 64%; top: 30%; opacity: 1; }
  56% { left: 26%; top: 62%; opacity: 1; }
  60% { left: 24%; top: 66%; opacity: 1; }
  72% { left: 24%; top: 76%; opacity: 1; }
  76% { left: 24%; top: 78%; opacity: 1; }
  88% { left: 86%; top: 74%; opacity: 1; }
  100% { left: 86%; top: 74%; opacity: 1; }
}
@keyframes clickRing {
  0%, 24% { opacity: 0; transform: scale(.4); }
  26% { opacity: .85; transform: scale(.5); }
  32% { opacity: 0; transform: scale(1.5); }
  42% { opacity: 0; transform: scale(.4); }
  44% { opacity: .85; transform: scale(.5); }
  50% { opacity: 0; transform: scale(1.5); }
  58% { opacity: 0; transform: scale(.4); }
  60% { opacity: .85; transform: scale(.5); }
  66% { opacity: 0; transform: scale(1.5); }
  74% { opacity: 0; transform: scale(.4); }
  76% { opacity: .85; transform: scale(.5); }
  82% { opacity: 0; transform: scale(1.5); }
  90% { opacity: 0; transform: scale(.4); }
  92% { opacity: .85; transform: scale(.5); }
  98%, 100% { opacity: 0; transform: scale(.4); }
}
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============ CROSSING TAPE MARQUEE ============ */
.tape-scene {
  position: relative;
  height: 320px;
  margin-top: 20px;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}
.tape-bg {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 92px;
  background: linear-gradient(180deg, var(--teal-deep), #18303a);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(0,0,0,.3);
  box-shadow: 0 22px 40px -22px rgba(31,58,68,.7);
  will-change: transform;
  pointer-events: none;
}
.tape-fade {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 9.7%, #000 14%, #000 86%, transparent 90.3%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, transparent 9.7%, #000 14%, #000 86%, transparent 90.3%, transparent 100%);
}
.tape-a { top: 80px;  transform: rotate(5deg); }
.tape-b { top: 130px; transform: rotate(-5deg); }
.tape-bg.tape-a { z-index: 1; }
.tape-fade.tape-a { z-index: 2; }
.tape-bg.tape-b { z-index: 3; }
.tape-fade.tape-b { z-index: 4; }

.tape-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 30s linear infinite;
  animation-play-state: running;
}
.marquee-item {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #3d7a8c;
  white-space: nowrap;
}
.marquee-dot { color: #3d7a8c; font-size: 1.8rem; font-weight: 800; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.tape-fade.tape-b .tape-track { animation: marquee-rev 30s linear infinite; animation-play-state: running; }

/* ============ SECTION HEAD ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--teal);
}

/* ============ SERVICES (SKETCH DECK) ============ */
.services {
  position: relative;
  padding: 58px 24px 100px;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27240%27%20height%3D%27240%27%20viewBox%3D%270%200%20240%20240%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%232a5b6b%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cg%20transform%3D%27translate%2814%2C12%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M5%203l14%208-6%201.6L9.4%2019z%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2864%2C12%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M4%2020l3.2-.9L19.6%206.7a2.1%202.1%200%200%200-3-3L4.9%2016z%27%2F%3E%3Cpath%20d%3D%27M13.4%207.4l3.2%203.2%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28114%2C12%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M5%206h14M12%206v13%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28164%2C12%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M12%203a9%209%200%200%200%200%2018c1.5%200%202-1%202-1.7%200-.9-.8-1.3-.8-2.1%200-.8.7-1.4%201.6-1.4H16a5%205%200%200%200%205-5c0-4.4-4-7.8-9-7.8z%27%2F%3E%3Ccircle%20cx%3D%278%27%20cy%3D%2711%27%20r%3D%271%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%277.4%27%20r%3D%271%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%279%27%20r%3D%271%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2814%2C62%29%20scale%281.05%29%27%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%2716%27%20height%3D%2714%27%20rx%3D%272%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2864%2C62%29%20scale%281.05%29%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%277%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28114%2C62%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M4%2020h6M4%2020v-6M20%204h-6M20%204v6%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28164%2C62%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M12%204c4.4%200%208%202.4%208%205.4S16.4%2014.8%2012%2014.8c-1.3%200-2.5-.2-3.6-.6C7%2015.9%206%2017.2%206%2018.5c0%201%20.7%201.3.7%202.1%200%20.8-.7%201.4-1.7%201.4-1.3%200-2.4-1.3-2.4-3%200-1.6%201-2.9%202.4-4.4C3.7%2012.6%204%2010.6%204%209.4%204%206.4%207%204%2012%204z%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2814%2C112%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M6%202v16h16M2%206h16v16%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2864%2C112%29%20scale%281.05%29%27%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%277%27%20width%3D%2710%27%20height%3D%2710%27%20rx%3D%271%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28114%2C112%29%20scale%281.05%29%27%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%274%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2713%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%2713%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28164%2C112%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M12%203l9%205-9%205-9-5z%27%2F%3E%3Cpath%20d%3D%27M3%2013l9%205%209-5%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2814%2C162%29%20scale%281.05%29%27%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2714%27%20rx%3D%272%27%2F%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%2710%27%20r%3D%271.4%27%2F%3E%3Cpath%20d%3D%27M4.5%2017l5-4.4%204%203.2%202.6-2.1%203.4%203.1%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2864%2C162%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M18%203l3%203-8%208-3-3z%27%2F%3E%3Cpath%20d%3D%27M11%2011l-5%206-2%202%202-2%206-5%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28114%2C162%29%20scale%281.05%29%27%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2711%27%20r%3D%276%27%2F%3E%3Cpath%20d%3D%27M15.4%2015.4L21%2021%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28164%2C162%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M3%2015h18v4H3z%27%2F%3E%3Cpath%20d%3D%27M7%2015v4M11%2015v2.6M15%2015v4M19%2015v2.6%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2814%2C212%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M4%2018c5-1%207-5%209-9%27%2F%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2718%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2713%27%20cy%3D%279%27%20r%3D%271.6%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%2864%2C212%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M4%204v16M9%209h10M9%2015h6%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28114%2C212%29%20scale%281.05%29%27%3E%3Cpath%20d%3D%27M4%2020L14.4%209.6%27%2F%3E%3Cpath%20d%3D%27M16.2%203.6l1.1%202.4%202.4%201.1-2.4%201.1-1.1%202.4-1.1-2.4-2.4-1.1%202.4-1.1z%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate%28164%2C212%29%20scale%281.05%29%27%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%2716%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M12%204v16%27%2F%3E%3Cpath%20d%3D%27M12%204.6a7.4%207.4%200%200%201%200%2014.8z%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: .07;
  pointer-events: none;
}
.services .section-head { position: relative; z-index: 1; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.decks {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  outline: none;
}
.decks:focus-visible { border-radius: 28px; box-shadow: 0 0 0 3px rgba(245,166,35,.40); }

.decks-stage {
  position: relative;
  width: min(620px, 100%);
  height: 392px;
  margin: 0 auto;
}

.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, 74%);
  height: 100%;
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  color: var(--teal);
  background-color: #fffdf6;
  background-image:
    linear-gradient(rgba(42,91,107,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,91,107,.065) 1px, transparent 1px),
    linear-gradient(165deg, #fffdf7 0%, #fbf1dc 100%);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: 0 22px 40px -26px rgba(31,58,68,.55), inset 0 1px 0 rgba(255,255,255,.9);
  transform-origin: 14% 100%;
  transition: transform .62s var(--ease), opacity .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
  cursor: pointer;
}
.deck-card.is-active {
  box-shadow: 0 36px 58px -28px rgba(31,58,68,.60), inset 0 1px 0 rgba(255,255,255,.95);
}
.deck-card:not(.is-active) { cursor: default; }

.deck-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: rgba(34,64,74,.42);
}
.deck-frame rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.deck-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-2.5deg);
  background: linear-gradient(180deg, rgba(245,166,35,.38), rgba(245,166,35,.16));
  border-left: 1px dashed rgba(255,255,255,.55);
  border-right: 1px dashed rgba(255,255,255,.55);
  box-shadow: 0 5px 12px -8px rgba(31,58,68,.6);
}
.deck-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--orange-2);
  opacity: .9;
}

.deck-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(255,255,255,.55);
  border: 1.5px dashed rgba(42,91,107,.34);
  transition: transform .35s var(--ease), color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.service-icon svg { width: 46px; height: 46px; filter: url(#sketchIcon); }
.deck-card:hover .service-icon {
  color: var(--orange-2);
  border-color: rgba(245,166,35,.6);
  transform: rotate(-4deg) scale(1.05);
}

.deck-body { position: relative; }
.deck-card h3 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--teal);
}
.deck-underline {
  display: block;
  width: 132px;
  height: 9px;
  margin: 2px 0 12px;
  color: var(--orange-2);
  filter: url(#sketchIcon);
}
.deck-underline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.deck-detail {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(34,64,74,.62);
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 46px;
}
.deck-nav {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(42,91,107,.2);
  box-shadow: 0 12px 22px -14px rgba(31,58,68,.7);
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.deck-nav::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(42,91,107,.3);
  pointer-events: none;
}
.deck-nav svg { width: 26px; height: 26px; filter: url(#sketchIcon); }
.deck-nav:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-3px);
}
.deck-nav:hover::before { border-color: rgba(42,91,107,.55); }

.deck-dots { display: flex; align-items: center; gap: 11px; }
.deck-dot {
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(42,91,107,.4);
  background: transparent;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.deck-dot:hover { border-color: var(--orange-2); transform: scale(1.2); }
.deck-dot.is-active { background: var(--orange-2); border-color: var(--orange-2); transform: scale(1.25); }

@media (max-width: 620px) {
  .decks-stage { height: 360px; }
  .deck-card { width: min(280px, 82%); padding: 30px 24px 26px; }
  .service-icon { width: 80px; height: 80px; }
  .service-icon svg { width: 38px; height: 38px; }
  .deck-card h3 { font-size: 1.32rem; }
  .deck-nav { width: 52px; height: 52px; }
  .deck-controls { gap: 14px; }
}

/* ============ WORKS ============ */
.works {
  position: relative;
  padding: 100px 60px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--cream-2);
  background-size: 46px 46px, 46px 46px, auto;
  overflow: hidden;
}
.works-inner { position: relative; z-index: 2; width: min(1160px, 100%); margin: 0 auto; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--teal);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(42,91,107,.2);
  border-radius: 999px;
  transition: all .28s var(--ease);
}
.filter-btn:hover { border-color: var(--orange-2); color: var(--orange-2); transform: translateY(-2px); }
.filter-btn.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Pinterest-style masonry */
.pins {
  columns: 4;
  column-gap: 20px;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.pins.is-fading {
  filter: blur(14px);
  opacity: 0;
  transition-duration: .32s;
  pointer-events: none;
}
.pins.is-blur-in {
  transition: none;
  filter: blur(14px);
  opacity: 0;
}
.pin {
  break-inside: avoid;
  margin: 0 0 20px;
  cursor: pointer;
}
.pin.is-hidden { display: none; }
.pin-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pin-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s var(--ease);
}
.skeleton-pin .pin-media {
  background: linear-gradient(90deg, #f0e8d8 25%, #f6eedc 50%, #f0e8d8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-pin {
  break-inside: avoid;
}
.skeleton-pin .pin-media {
  background: linear-gradient(90deg, #f0e8d8 25%, #f6eedc 50%, #f0e8d8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}
.skeleton-pin .pin-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 0;
  box-sizing: border-box;
  height: 46px;
}
.skeleton-pin .pin-caption h3 {
  width: 70%;
  height: 14px;
  background: #e8dcc8;
  border-radius: 4px;
  color: transparent;
  margin: 0;
}
.skeleton-pin .pin-caption span {
  width: 30%;
  height: 11px;
  background: #e8dcc8;
  border-radius: 4px;
  color: transparent;
  margin: 0;
}
.skeleton-pin .pin-caption h3,
.skeleton-pin .pin-caption span {
  background: #e8dcc8;
  border-radius: 4px;
  color: transparent;
  min-width: 60px;
  height: 12px;
  display: block;
  margin-bottom: 4px;
}
.pin-media.is-loaded {
  background: transparent;
  animation: none;
}
.pin:hover .pin-media img {
  transform: scale(1.06);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pin:hover .pin-media { transform: translateY(-6px); box-shadow: var(--shadow); z-index: 3; }

/* placeholder tiles */
.tile {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .6s var(--ease);
}
.pin:hover .tile { transform: scale(1.04); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .6;
}
.tile-a { background: linear-gradient(180deg, #f7a21b, #f9c98d); }
.tile-b { background: linear-gradient(180deg, #f6a41c, #f6b95f); }
.tile-c { background: linear-gradient(180deg, #f7a21b, #f8bd68); }
.tile-d { background: linear-gradient(135deg, #f7a21b, #f9cf9a); }
.tile-e { background: linear-gradient(180deg, #f6a41c, #f9d9a8); }
.tile-f { background: linear-gradient(180deg, #f7a21b, #f8c377); }
.tile-g { background: linear-gradient(135deg, #f7a21b, #f7e0bd); }
.tile-h { background: linear-gradient(180deg, #f6a41c, #f8c98a); }
.tile-i { background: linear-gradient(180deg, #f7a21b, #f9d2a0); }
.tile-j { background: linear-gradient(135deg, #f7a21b, #f7b95a); }
.tile-k { background: linear-gradient(180deg, #f6a41c, #f8d0a0); }
.tile-l { background: linear-gradient(135deg, #f7a21b, #f9e0c0); }
.tile-m { background: linear-gradient(180deg, #f7a21b, #f8bd68); }
.tile-n { background: linear-gradient(135deg, #f6a41c, #f7c47a); }
.tile-o { background: linear-gradient(180deg, #f7a21b, #f9cf9a); }
.tile-p { background: linear-gradient(135deg, #f6a41c, #f8e0bd); }

.pin-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(31,58,68,.85));
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.pin:hover .pin-overlay { opacity: 1; transform: translateY(0); }
.pin-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-lt);
  margin-bottom: 4px;
}
.pin-overlay h3 { font-size: 1rem; font-weight: 600; }

.pin-caption {
  padding: 12px 4px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pin-caption h3 {
  font-size: .98rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.3;
}
.pin-caption span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-2);
  white-space: nowrap;
}

/* ============ PROJECT MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: none;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 48, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.98);
  transition: transform .35s var(--ease);
}
.modal-panel::-webkit-scrollbar { width: 0; height: 0; display: none; }
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.modal-close:hover { background: var(--orange-2); color: #fff; transform: rotate(90deg); }
.modal-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.modal-media { position: relative; }
.modal-media .tile { position: absolute; inset: 0; border-radius: 24px 0 0 24px; }
.modal-media img { width: 100%; height: auto; display: block; border-radius: 24px 0 0 24px; }
.modal.is-wide .modal-grid { grid-template-columns: 1fr; }
.modal.is-wide .modal-media img { border-radius: 24px 24px 0 0; }
.modal.is-wide .modal-media .tile { border-radius: 24px 24px 0 0; }
.modal.is-wide .modal-media::after { inset: 18px; }
.modal.is-wide .modal-body { padding: 28px 32px 34px; }
.modal-thumbs .thumb img { width: 100%; height: auto; display: block; border-radius: 12px; }
.modal-media::after {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  pointer-events: none;
}
.modal-body { padding: 36px 32px; }
.modal-body h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--teal);
  margin: 6px 0 12px;
}
.modal-desc { color: rgba(34,64,74,.75); margin-bottom: 24px; }
.modal-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin-bottom: 26px;
  border-top: 1px solid rgba(42,91,107,.15);
  border-bottom: 1px solid rgba(42,91,107,.15);
}
.modal-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.modal-meta dd { font-size: .95rem; font-weight: 600; color: var(--teal); margin-top: 3px; }
.modal-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.modal-thumbs .thumb {
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7a21b, #f9c98d);
}
.modal-thumbs .thumb .tile { border-radius: 12px; }
.modal-thumbs .thumb:nth-child(2) { background: linear-gradient(135deg, #f6a41c, #f8d0a0); }
.modal-thumbs .thumb:nth-child(3) { background: linear-gradient(135deg, #f7a21b, #f7e0bd); }

/* ============ CONTACT MODAL (portfolio) ============ */
.contact-panel {
  width: min(720px, 100%);
  padding: 40px 34px 32px;
}
.contact-panel h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--teal);
  margin: 8px 0 10px;
}
.contact-panel .contact-form {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* thin CTA card that fills the gap in the work grid */
@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ctaSpin { to { --cta-angle: 360deg; } }
.pin-cta {
  position: relative;
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 26px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.56));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 176px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.pins .pin-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pin-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(from var(--cta-angle),
    #ffd88f 0%, #f7a21b 12%, #2a5b6b 32%, #7fc3cf 46%, #ffe0ab 58%,
    #f7a21b 70%, #e0762a 84%, #2a5b6b 94%, #ffd88f 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: saturate(1.15);
  pointer-events: none;
  animation: ctaSpin 11s linear infinite;
}
.pin-cta-body { display: flex; flex-direction: column; align-items: center; }
.pin-cta-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(42,91,107,.55);
}
.pin-cta-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--teal);
  margin: 9px 0 16px;
}
.pin-cta-btn { padding: 11px 26px; font-size: 12.5px; }

.works-more { display: flex; justify-content: flex-end; margin-top: 40px; }

/* ============ PORTFOLIO PAGE ============ */
.portfolio-hero {
  padding: calc(var(--header-h) + 70px) 24px 50px;
  text-align: center;
}
.portfolio-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--teal);
  margin-bottom: 14px;
}
.portfolio-hero p {
  max-width: 54ch;
  margin: 0 auto;
  color: rgba(34,64,74,.7);
}

/* ============ CONTACT ============ */
.contact { padding: 100px 24px; }
.contact-wrap {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list span {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-2);
}
.contact-list a { font-size: 1.05rem; color: var(--teal); font-weight: 600; transition: color .25s; }
.contact-list a:hover { color: var(--orange-2); }
.contact-socials { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 12px;
  font-size: 13px; font-weight: 600;
  color: var(--teal);
  background: rgba(255,255,255,.62);
  border: 1.5px solid rgba(42,91,107,.2);
  border-radius: 999px;
  transition: all .28s var(--ease);
}
.contact-socials a svg { width: 17px; height: 17px; flex: 0 0 auto; }
.contact-socials a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -14px rgba(31,58,68,.75);
}
.contact-socials a[data-net="instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-socials a[data-net="facebook"]:hover { background: #1877f2; }
.contact-socials a[data-net="telegram"]:hover { background: #229ed9; }
.contact-socials a[data-net="tiktok"]:hover { background: #010101; }
.contact-socials a[data-net="tiktok"] svg { fill: #25f4ee; }
.contact-socials a[data-net="tiktok"]:hover svg { fill: #fff; }
.contact-socials a[data-net="tiktok"] svg path.acc { fill: #fe2c55; }
.contact-socials a[data-net="tiktok"]:hover svg path.acc { fill: #25f4ee; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 34px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(42,91,107,.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  background: var(--cream);
  border: 1.5px solid rgba(42,91,107,.22);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--orange-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(247,162,27,.16);
}
.field input.is-error, .field textarea.is-error { border-color: #e0483f; box-shadow: 0 0 0 4px rgba(224,72,63,.14); }

.select { position: relative; }
.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  padding: 13px 16px;
  background: var(--cream);
  border: 1.5px solid rgba(42,91,107,.22);
  border-radius: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.select-trigger:hover { border-color: rgba(42,91,107,.42); background: #fff; }
.select-trigger:focus-visible { border-color: var(--orange-2); box-shadow: 0 0 0 4px rgba(247,162,27,.16); }
.select.is-open .select-trigger {
  border-color: var(--orange-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(247,162,27,.16);
}
.select-value { flex: 1; }
.select-chev {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  color: var(--teal);
  transition: transform .28s var(--ease);
}
.select.is-open .select-chev { transform: rotate(180deg); }
.select-menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 250px;
  overflow: auto;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
          backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(42,91,107,.16);
  border-radius: 16px;
  box-shadow: 0 26px 50px -22px rgba(31,58,68,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top center;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.select.is-open .select-menu { opacity: 1; visibility: visible; transform: none; }
.select-opt {
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(34,64,74,.85);
  cursor: pointer;
  outline: none;
  transition: background .2s, color .2s;
}
.select-opt:hover,
.select-opt:focus-visible { background: rgba(247,162,27,.16); color: var(--teal-deep); }
.select-opt.is-active {
  color: #fff;
  background: linear-gradient(135deg, #f89c24 0%, #c97c2b 42%, #034e62 100%);
  box-shadow: 0 10px 20px -12px rgba(3,78,98,.9);
}
.contact-form .btn { margin-top: 4px; }
.form-status { grid-column: 1 / -1; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok  { color: #1f8a4c; }
.form-status.err { color: #e0483f; }

/* ============ FOOTER ============ */
.site-footer {
  background: linear-gradient(180deg, var(--teal-deep), #16292f);
  color: rgba(255,255,255,.85);
  padding: 34px 24px;
  opacity: 0;
  transition: opacity .5s ease;
}
.site-footer.is-ready { opacity: 1; }
.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-inner p { font-size: .9rem; color: rgba(255,255,255,.6); }
.to-top { font-size: .9rem; font-weight: 600; color: var(--orange-lt); transition: color .25s; }
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f89c24 0%, #c97c2b 42%, #034e62 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(31,58,68,.4);
  z-index: 50;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }
.to-top:hover { color: #fff; }

@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ctaSpin { to { --cta-angle: 360deg; } }

@keyframes modalShimmer {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg) blur(20px); }
  50% { background-position: 100% 50%; filter: hue-rotate(20deg) blur(24px); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg) blur(20px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-spinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  z-index: 3;
}

/* ============ REVEAL ============ */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .studio-stage { width: min(520px, 92%); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    flex-direction: column;
    gap: 4px;
    width: min(320px, 90vw);
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(42,91,107,.16);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
  .nav-sep { display: none; }
  .nav-link { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }

  .works { padding: 80px 20px; }
  .pins { columns: 2; }
  .works-more { justify-content: center; }

  .modal-grid { grid-template-columns: 1fr; }
  .modal-media img, .modal-media .tile { border-radius: 24px 24px 0 0; }
  .modal-media::after { inset: 18px; }
}

@media (max-width: 620px) {
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-title { font-size: clamp(32px, 11vw, 54px); line-height: 1.05; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .services { padding: 60px 18px 80px; }
  .deck { width: min(92vw, 320px); }
  .deck-card { width: min(88vw, 280px); }
  .contact { padding: 60px 18px; }
  .contact-wrap { width: 100%; max-width: 560px; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-inline: auto; justify-items: center; }
  .contact-wrap > * { width: 100%; min-width: 0; }
  .contact-info { order: 2; text-align: center; }
  .contact-form { width: 100%; max-width: 560px; grid-template-columns: minmax(0, 1fr); padding: 20px; margin-inline: auto; justify-self: center; text-align: center; }
  .contact-form .field { min-width: 0; text-align: left; }
  .contact-form input, .contact-form textarea, .contact-form .select { width: 100%; min-width: 0; }
  .contact-list { margin-inline: auto; }
  .contact-socials { gap: 8px; flex-wrap: wrap; }
  .contact-socials a { flex: 1 1 48%; justify-content: center; }
  .studio-side { display: none; }
  .studio-body { grid-template-columns: 46px 1fr; }
  .studio-float { display: none; }
  .pins { columns: 2; }
  .pin { break-inside: avoid; }
  .tape { left: -6%; width: 112%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section-title { font-size: clamp(26px, 8vw, 38px); }

  .nav-pill { padding: 8px 14px; gap: 10px; border-radius: 999px; }
  .nav-links { position: static; opacity: 1; pointer-events: auto; transform: none; flex-direction: row; width: auto; padding: 0; background: transparent; border: none; box-shadow: none; gap: 6px; }
  .nav-link { font-size: .78rem; padding: 6px 10px; }
  .nav-toggle { display: none; }
  .nav-logo { width: 36px; height: 36px; }
  .nav-logo img { width: 32px; height: 32px; }

  .hero-content { order: 0; }
  .hero-visual { order: 1; }
  .hero-title { font-family: "Boldonse", system-ui; font-size: clamp(2.4rem, 9vw, 4rem); font-weight: 400 !important; font-style: normal; line-height: 1.35; text-transform: uppercase; }
  .hero-title .char { font-family: inherit; font-weight: 400 !important; font-style: normal; }

  /* portfolio phone */
  .portfolio-hero { padding: calc(var(--header-h) + 30px) 18px 40px; text-align: center; }
  .portfolio-hero h1 { font-size: clamp(32px, 11vw, 54px); }
  .portfolio-hero p { font-size: 1rem; max-width: none; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .filter-btn { flex: 0 0 auto; }
  .works { padding: 40px 18px 70px; }
  .modal { padding: 12px; }
  .modal-panel { border-radius: 20px; max-height: 92vh; overflow-y: auto; }
  .modal-info { position: static !important; margin-top: 12px; border-radius: 10px; }
  .contact-panel { padding: 20px; }
  .contact-form .field { grid-column: 1 / -1; }

  .tape-scene { height: 200px; margin-top: 0; }
  .tape-bg, .tape-fade { left: -12%; width: 124%; height: 44px; }
  .tape-a { top: 55px; transform: rotate(10deg); }
  .tape-b { top: 100px; transform: rotate(-10deg); }
  .marquee-item { font-size: .9rem; font-weight: 400; letter-spacing: .12em; }
  .marquee-dot { font-size: 1rem; }
  .tape-track { gap: 18px; }
  .site-footer { padding: 28px 18px; }
  .footer-inner { width: 100%; justify-content: center; }
}
/* session additions */
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }
.pin { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.pin.is-hidden { display: none; }
.pin.is-leaving { opacity: 0; transform: scale(.94); }
@keyframes pinIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.pin.is-entering { animation: pinIn .32s var(--ease); }
.deck-nav.deck-next { box-shadow: 0 0 0 0 rgba(247,162,27,.7); animation: deckNextGlow 1.8s ease-in-out infinite; }
@keyframes deckNextGlow { 0% { box-shadow: 0 0 0 0 rgba(247,162,27,.7); } 70% { box-shadow: 0 0 0 14px rgba(247,162,27,0); } 100% { box-shadow: 0 0 0 0 rgba(247,162,27,0); } }
.nav-logo img { border-radius: 50%; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--teal); color: #fff; padding: 12px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .3s; z-index: 999; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 768px) {
  .contact-wrap { width: min(560px, 100%); grid-template-columns: minmax(0, 1fr); margin-inline: auto; justify-items: center; }
  .contact-wrap > * { width: 100%; min-width: 0; }
  .contact-form { width: 100%; margin-inline: auto; justify-self: center; }
  .modal-grid { grid-template-columns: 1fr; }
  .mail-layout { grid-template-columns: 1fr; }
}

/* ============ PROJECT LIKE BUTTON ============ */
.pin-like {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  opacity: 0;
}
.pin:hover .pin-like { opacity: 1; }
.pin-like:hover { background: rgba(220,60,80,.7); transform: scale(1.08); }
.pin-like.is-liked { background: rgba(220,60,80,.85); opacity: 1; }
.pin-like.is-liked svg { fill: #ff6b81; stroke: #ff6b81; }
.pin-like-count { font-variant-numeric: tabular-nums; }
.like-btn-modal.is-liked { background: rgba(220,60,80,.5); border-color: rgba(255,107,129,.6); }
.like-btn-modal.is-liked svg { fill: #ff6b81; stroke: #ff6b81; }