:root {
  /* 2026-08-16: marka kimliği midnight navy/graphite + elektrik camgöbeği +
     violet ikinci vurguya kaydırıldı (bkz. src/app/globals.css nebula-cyan
     teması ile aynı aile). bg→panel ayrımı ve WCAG AA kontrastı korunur.
     --gold/--pink CTA ve ayrıntı vurgularında kasıtlı olarak kalır — sıcak
     "conversion" rengi, camgöbeği marka vurgusundan ayrı bir katman. */
  /* 2026-08-26 final polish: raised the near-black bg/bg2/panel values
     (were #05070d/#0b0f18/#131a26) toward a softer dark graphite/charcoal —
     large dark areas were reading as near-pure-black. Ink/accent colors are
     unchanged, so existing contrast ratios only improve, never worsen. */
  --bg: #0b0e17;
  --bg2: #121722;
  --panel: #1c2432;
  --ink: #f3f6fb;
  --muted: #93959f;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #ffc563;
  --pink: #ff6fb9;
  --violet: #9b6ee8;
  --cyan: #5de7ff;
  --lime: #9dff81;
  --pad: clamp(20px, 4vw, 68px);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.78, 0.22, 1);
}

/* Cross-document View Transitions (Chromium/Edge; no-op elsewhere — plain
   navigation, no JS, no SPA router). Short, subtle fade + rise so moving
   between pages (e.g. home -> /projects/) doesn't feel like a hard cut to
   an unrelated site. */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: rameroon-vt-out 160ms ease-out both;
  }
  ::view-transition-new(root) {
    animation: rameroon-vt-in 220ms ease-out both;
  }
}
@keyframes rameroon-vt-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes rameroon-vt-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* Next.js integration boundary: the approved V5 remains the visual shell. */
.v5-exact-shell {
  display: contents;
}

body:has(.v5-exact-shell) [data-site-chrome] {
  display: none !important;
}

body:has(.v5-exact-shell) #content {
  min-height: 0;
}

.v5-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.v5-consent input {
  width: 14px !important;
  min-width: 14px;
  height: 14px;
  margin-top: 2px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}
input,
textarea,
select,
[contenteditable="true"],
[contenteditable=""] {
  -webkit-user-select: text;
  user-select: text;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
.scroll-progress {
  position: fixed;
  z-index: 400;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--pink),
    var(--violet),
    var(--cyan)
  );
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  z-index: 350;
  transition:
    background 0.35s,
    backdrop-filter 0.35s,
    border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 14, 23, 0.78);
  backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: url(#rg);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(255, 120, 190, 0.24));
}
.brand-mark .r-one {
  stroke-dasharray: 70;
  animation: logoTrace 5.5s ease-in-out infinite;
}
.brand-mark .r-two {
  stroke-dasharray: 22;
  animation: logoTrace2 5.5s ease-in-out infinite;
}
.brand-word {
  font-weight: 700;
  letter-spacing: 0.11em;
  font-size: 13px;
}
.brand-signal {
  position: absolute;
  left: 44px;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--pink), transparent);
  animation: brandSignal 4s var(--ease) infinite;
}
.main-nav {
  display: flex;
  align-items: center;
  /* 30px → 22px: 6. öğe (Çalışmalarımız) eklendi; 1180-1400px aralığında
     header-actions ile birlikte taşma olmadan sığması için sıkılaştırıldı. */
  gap: 22px;
}
.main-nav a {
  font-size: 11px;
  color: #c6c5ca;
  white-space: nowrap;
  transition: 0.25s;
}
.main-nav a:hover {
  color: white;
  transform: translateY(-1px);
}
.main-nav a.active {
  color: var(--gold);
}
.mobile-actions {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-login {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #9fa0a8;
  padding: 8px 6px;
  cursor: pointer;
  transition: color 0.2s;
}
.header-login i {
  font-style: normal;
  font-size: 13px;
  opacity: 0.8;
}
.header-login:hover,
.header-login[aria-expanded="true"] {
  color: white;
}
.account {
  position: relative;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 268px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(10, 10, 14, 0.97);
  box-shadow: 0 26px 90px #000;
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: 0.22s var(--ease);
  z-index: 5;
}
.account-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.account-menu-top {
  display: flex;
  gap: 8px;
}
.account-menu-top .btn {
  flex: 1;
  min-height: 40px;
  padding: 0 10px;
  font-size: 10.5px;
  gap: 6px;
}
.account-menu-divider {
  height: 1px;
  background: #ffffff12;
  margin: 14px 0 12px;
}
.account-menu-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e6e78;
  margin-bottom: 8px;
}
.account-menu-channels .channel-row {
  padding: 10px 12px;
}
.account-menu-channels .channel-row:last-child {
  margin-bottom: 0;
}
.account-menu-channels .channel-row[hidden] {
  display: none;
}
.header-start {
  border: 1px solid #ffffff20;
  background: #ffffff05;
  color: #d6d5da;
  border-radius: 9px;
  padding: 0 14px;
  min-height: 38px;
  font-size: 11px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.header-start:hover {
  border-color: #ffffff40;
  background: #ffffff0a;
  color: white;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 210, 140, 0.28);
  border-radius: 9px;
  background: rgba(255, 197, 99, 0.05);
  color: #f1ead9;
  font-size: 11px;
  letter-spacing: 0.02em;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.25s;
}
.header-cta i {
  color: var(--gold);
  font-style: normal;
}
.header-cta:hover {
  border-color: rgba(255, 210, 140, 0.5);
  background: rgba(255, 197, 99, 0.1);
  transform: translateY(-1px);
}
.lang {
  position: relative;
}
.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #d2d0d5;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 11px;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: #ffffff08;
  border-color: #ffffff14;
}
.lang-btn .lang-flag {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.chev {
  opacity: 0.55;
  font-size: 10px;
  transition: transform 0.25s;
}
.lang-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  opacity: 0.9;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: max-content;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(14, 17, 26, 0.97);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: 0.22s var(--ease);
}
.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-menu button {
  border: 1px solid transparent;
  background: transparent;
  width: 40px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-menu button:hover {
  background: #ffffff0b;
}
.lang-menu button[aria-selected="true"] {
  border-color: rgba(255, 197, 99, 0.5);
  background: rgba(255, 197, 99, 0.1);
}
.lang-menu button .lang-flag {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}
.lang-menu button[aria-selected="true"] b {
  color: var(--gold);
  font-weight: 600;
}
.mobile-toggle {
  display: none;
  border: 0;
  background: none;
  width: 42px;
  height: 42px;
}
.mobile-toggle i {
  display: block;
  width: 22px;
  height: 1px;
  background: white;
  margin: 6px auto;
}
.mobile-toggle i:last-child {
  width: 14px;
  margin-right: 10px;
}
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(112px, 12vh, 140px) var(--pad) clamp(52px, 7vh, 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(
    72% 72% at 38% 40%,
    #0d1522 0,
    #070a12 48%,
    #04050a 100%
  );
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(transparent, var(--bg));
  z-index: 3;
}
.hero-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.25;
  pointer-events: none;
}
.bloom-a {
  width: 62%;
  height: 62%;
  left: -14%;
  top: 24%;
  background: #7d4cff40;
  opacity: 0.36;
}
.bloom-b {
  width: 54%;
  height: 54%;
  right: -12%;
  top: -6%;
  background: #ff4f9a2e;
  opacity: 0.3;
}
/* Two columns on desktop: the headline column keeps its own measure on the
   left while the floating UI showcase (.hero-stage) owns the right 55-60%.
   Both are vertically centred so the whole composition — header, headline,
   CTA and the three windows — lands inside the first viewport instead of
   pushing the fold down. Below 980px this collapses back to one column
   (see the responsive block at the end of the file). */
.hero-grid {
  position: relative;
  z-index: 5;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  column-gap: clamp(24px, 3.2vw, 56px);
  row-gap: clamp(30px, 5vh, 56px);
}
.hero-copy {
  min-width: 0;
}
.kicker,
.section-label {
  margin: 0;
  color: #c7a35e;
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 700;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker > span {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
/* Sized for the left column of the two-column hero, not for full width. */
.hero h1 {
  font-size: clamp(40px, 3.7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: clamp(16px, 2.4vh, 28px) 0;
  font-weight: 600;
  max-width: min(850px, 100%);
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hero h1 span,
.hero h1 em {
  display: block;
  overflow: visible;
}
.hero h1 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(
    90deg,
    #ffcf72,
    #ff79bc 37%,
    #a48cff 68%,
    #61e6ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.16em;
  padding-right: 0.05em;
  margin-right: -0.05em;
}
html:lang(tr) .hero h1 em,
html:lang(ru) .hero h1 em {
  font-size: 0.72em;
}
.hero-lead {
  max-width: 560px;
  margin: 0;
  color: #a6a5ac;
  font-size: 15px;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  gap: 11px;
  margin-top: clamp(20px, 3vh, 31px);
}
.btn {
  border: 1px solid var(--line);
  min-height: 48px;
  padding: 0 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  cursor: pointer;
  transition: 0.28s;
}
.btn i {
  font-style: normal;
}
.btn-primary {
  background: linear-gradient(135deg, #ffe09d, #ffc260 48%, #ff9c63);
  color: #17110a;
  border: 0;
  box-shadow: 0 18px 60px rgba(255, 186, 86, 0.13);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 80px rgba(255, 186, 86, 0.22);
}
.btn-ghost {
  background: #ffffff05;
}
.btn-ghost:hover {
  background: #ffffff0c;
  transform: translateY(-2px);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vh, 31px);
  color: #6e6e78;
  font-size: 8px;
  letter-spacing: 0.12em;
}
.hero-tags i {
  color: #3a3b43;
}

/* ============================================================
   HERO STAGE — the floating UI showcase that replaced the particle
   shield. Three real HTML/CSS windows (FORMA commerce, Rameroon
   Control, Motion App System) stacked in one shared perspective, lit
   from behind by a small set of SVG neon ribbons. No canvas, no
   WebGL, no background screenshot: everything on screen is markup.
   ============================================================ */
.hero-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: min(600px, 58vh);
  min-height: 400px;
  border-radius: var(--pad);
  perspective: 1750px;
  perspective-origin: 62% 46%;
}
.stage-glow {
  position: absolute;
  inset: 14% 6% 6%;
  background: radial-gradient(
    ellipse,
    #2fb8f02e 0,
    #9b6ee826 32%,
    transparent 68%
  );
  filter: blur(34px);
}

/* Neon light paths. Six cubic curves drawn twice: a wide translucent
   pass for the halo (one cheap CSS blur on the group — no SVG filter
   stack) and a hairline pass for the bright core. Stroke widths are
   pinned with non-scaling-stroke so preserveAspectRatio="none" can
   stretch the composition to any stage box without fattening the
   lines. Only stroke-dashoffset animates. */
.hero-ribbons {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  height: 112%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 0,
    #000 18%,
    #000 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 0,
    #000 18%,
    #000 84%,
    transparent 100%
  );
}
.hero-ribbons .rib {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.ribbon-halo {
  filter: blur(9px);
  opacity: 0.92;
}
.ribbon-halo .rib {
  stroke-width: 14;
  opacity: 0.7;
}
.ribbon-line .rib {
  stroke-width: 1.7;
  opacity: 1;
  stroke-dasharray: 300 1500;
  stroke-dashoffset: 1800;
  animation: ribbonDraw 26s linear infinite;
}
.rib-1 {
  stroke: url(#ribAmber);
}
.rib-2 {
  stroke: url(#ribPink);
}
.rib-3 {
  stroke: url(#ribViolet);
}
.rib-4 {
  stroke: url(#ribBlue);
}
.rib-5 {
  stroke: url(#ribMagenta);
}
.rib-6 {
  stroke: url(#ribViolet);
}
.ribbon-line .rib-2 {
  animation-duration: 31s;
  animation-delay: -6s;
}
.ribbon-line .rib-3 {
  animation-duration: 29s;
  animation-delay: -13s;
}
.ribbon-line .rib-4 {
  animation-duration: 34s;
  animation-delay: -19s;
}
.ribbon-line .rib-5 {
  animation-duration: 27s;
  animation-delay: -9s;
  opacity: 0.6;
}
.ribbon-line .rib-6 {
  animation-duration: 37s;
  animation-delay: -24s;
  opacity: 0.55;
}
@keyframes ribbonDraw {
  to {
    stroke-dashoffset: -1800;
  }
}

/* The deck carries the shared 3D context so the cards keep their depth
   ordering; it is a plain absolute layer, never animated itself. */
/* Inset from the stage box so the rotated cards keep a safety margin and
   never meet the stage's overflow clip — the cards must read as whole
   windows, only the light behind them is allowed to run off the edge. */
.stage-deck {
  position: absolute;
  inset: 0 3%;
  z-index: 4;
  transform-style: preserve-3d;
  pointer-events: none;
}

/* Glossy floor under the main card. A masked gradient strip, not a live
   canvas reflection — short, dim and slightly blurred so it reads as a
   polished surface rather than water. */
.stage-reflect {
  position: absolute;
  left: 14%;
  right: 12%;
  bottom: 0;
  height: 14%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(
    180deg,
    rgba(190, 205, 255, 0.16) 0,
    rgba(140, 120, 220, 0.07) 42%,
    transparent 100%
  );
  filter: blur(7px);
  opacity: 0.62;
  transform: rotateY(-6deg) scaleY(-1);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

/* Window chrome shared by all three hero cards. The rim light is a
   1px translucent border plus an inset hairline highlight — no
   backdrop-filter, which would cost a full-stage GPU readback three
   times over for an effect that barely shows against an opaque body. */
.browser-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0b0f;
  border-radius: 13px;
  overflow: hidden;
  box-shadow:
    0 45px 110px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(160, 125, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Thin diagonal sheen across the glass. Static, pointer-transparent. */
.browser-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    122deg,
    rgba(255, 255, 255, 0.09) 0,
    rgba(255, 255, 255, 0.02) 22%,
    transparent 46%
  );
  pointer-events: none;
  z-index: 6;
}
/* The main card is centred rather than flush right, so both back cards keep
   a readable vertical strip on the outside instead of one of them being
   clipped away by the stage edge. */
.browser-main {
  width: 74%;
  height: 68%;
  right: 12%;
  top: 22%;
  z-index: 5;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 54px 120px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(190, 140, 255, 0.12),
    0 0 62px rgba(157, 92, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotateY(calc(-6deg + var(--py, 0deg)))
    rotateX(calc(1.4deg + var(--px, 0deg))) translateZ(80px)
    translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  animation: floatMain 9s ease-in-out infinite;
}
/* Back cards sit deeper: darker, softer, lower contrast so they read as
   depth instead of competing with the main window. */
.browser-back {
  width: 48%;
  height: 43%;
  z-index: 2;
  /* Geride dursunlar ama okunur kalsınlar: bu iki pencere kompozisyonun
     "aynı ekosistem" hissini taşıyor, ilk bakışta seçilemezlerse hero tek
     bir karta düşüyor. Ön karttan ayrışma opaklıkla değil, ölçek ve
     perspektifle sağlanıyor. */
  opacity: 0.92;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(160, 125, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.browser-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 13, 0),
    rgba(5, 7, 13, 0.24)
  );
  pointer-events: none;
  z-index: 5;
}
.browser-dashboard {
  right: 52%;
  top: 2%;
  transform: rotateY(calc(9deg + var(--py, 0deg)))
    rotateZ(calc(-1deg + var(--pr, 0deg))) translateZ(-20px)
    translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  animation: floatBackA 11s ease-in-out infinite;
}
.browser-app {
  right: 0%;
  top: 4%;
  transform: rotateY(calc(-14deg + var(--py, 0deg)))
    rotateZ(calc(1deg + var(--pr, 0deg))) translateZ(-40px)
    translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  animation: floatBackB 12s ease-in-out infinite;
}
.browser-bar {
  position: relative;
  z-index: 4;
  height: 32px;
  background: linear-gradient(180deg, #14161e, #0e1017);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  color: #7c808d;
  font-size: 8px;
  letter-spacing: 0.04em;
}
.browser-bar > .dots {
  display: flex;
  gap: 5px;
}
.browser-bar > .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3b42;
}
.browser-bar > b {
  justify-self: end;
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #8d93a2;
}
/* Hero cards only: their chrome labels sit in a narrow, scaled-down bar,
   so they must clip rather than wrap onto a second line. */
.hero-stage .browser-bar > b,
.hero-stage .browser-bar > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- MAIN WINDOW: FORMA commerce showcase ---------------------------- */
.commerce-preview {
  position: relative;
  height: calc(100% - 32px);
  overflow: hidden;
  background: #101116;
}
.commerce-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.66) contrast(1.06) saturate(0.82);
  transform: scale(1.06);
}
.commerce-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 2, 4, 0.94) 0,
      rgba(2, 2, 4, 0.4) 54%,
      rgba(2, 2, 4, 0.04)
    ),
    linear-gradient(0deg, rgba(2, 2, 4, 0.68), transparent 46%);
}
.commerce-nav {
  position: absolute;
  top: 17px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #cbcad0;
}
.commerce-nav b {
  font-size: 14px;
  letter-spacing: 0.2em;
}
.commerce-copy {
  position: absolute;
  left: 8%;
  bottom: 11%;
  z-index: 2;
}
.commerce-copy small {
  color: #bda88d;
  font-size: 7px;
  letter-spacing: 0.24em;
}
.commerce-copy h3 {
  font-size: clamp(20px, 2.6vw, 40px);
  line-height: 0.86;
  margin: 12px 0 17px;
  letter-spacing: -0.045em;
}
.commerce-copy h3 em {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  color: #edaa83;
}
.commerce-copy .mock-cta {
  display: inline-block;
  font-size: 7px;
  letter-spacing: 0.16em;
  border: 1px solid #ffffff42;
  background: #ffffff0d;
  color: white;
  padding: 10px 14px;
  border-radius: 2px;
}
.product-chip {
  position: absolute;
  right: 17px;
  bottom: 15px;
  width: 132px;
  padding: 12px;
  border-radius: 9px;
  background: #090a0ee0;
  border: 1px solid #ffffff1c;
  display: grid;
  gap: 5px;
  z-index: 2;
}
.product-chip span {
  font-size: 6px;
  letter-spacing: 0.12em;
  color: #858a96;
}
.product-chip b {
  font-size: 12px;
}
.product-chip i {
  font-style: normal;
  color: #d7b879;
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* ---- BACK WINDOW A: Rameroon Control dashboard ----------------------- */
.dashboard-preview {
  display: flex;
  height: calc(100% - 32px);
  background: #080a0f;
}
.dashboard-preview aside {
  width: 30px;
  background: #06070b;
  border-right: 1px solid #ffffff0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 9px;
}
.dashboard-preview aside strong {
  font-size: 11px;
  color: #e1b262;
  margin-bottom: 2px;
}
.dashboard-preview aside i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #ffffff0a;
  border: 1px solid #ffffff10;
}
.dash-main {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.dash-head small {
  font-size: 5px;
  letter-spacing: 0.2em;
  color: #626875;
}
.dash-head b {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.dash-head .mock-status {
  font-size: 5px;
  letter-spacing: 0.14em;
  border: 1px solid #ffffff1c;
  background: #ffffff08;
  color: #b9c0cf;
  padding: 5px 8px;
  border-radius: 3px;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.dash-stats article {
  padding: 8px;
  border: 1px solid #ffffff0f;
  border-radius: 5px;
  background: #ffffff04;
}
.dash-stats small {
  display: block;
  font-size: 4.5px;
  letter-spacing: 0.14em;
  color: #656b78;
}
.dash-stats b {
  display: inline-block;
  font-size: 14px;
  margin-top: 4px;
}
.dash-stats i {
  float: right;
  font-style: normal;
  font-size: 5px;
  color: #64d9a2;
  margin-top: 9px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 6px;
}
.chart-card,
.activity {
  border: 1px solid #ffffff0f;
  border-radius: 5px;
  background: #ffffff03;
  padding: 8px;
  min-width: 0;
}
.chart-card span,
.activity > span {
  font-size: 4.5px;
  letter-spacing: 0.16em;
  color: #676d7a;
}
.chart-card svg {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 5px;
}
.activity p {
  margin: 7px 0 0;
  display: grid;
  grid-template-columns: 5px 1fr auto;
  gap: 5px;
  align-items: center;
}
.activity p i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #84e4bb;
}
.activity p b {
  font-size: 5px;
  font-weight: 500;
}
.activity p small {
  font-size: 4.5px;
  color: #626874;
}

/* ---- BACK WINDOW B: Motion App System timeline ----------------------- */
/* Stacked, not side-by-side: this card is half-hidden behind the main
   window, so its identity has to live in the top strip that stays
   visible. A single label row + a full-width timeline underneath reads
   at a glance; a left copy column would disappear under the FORMA card. */
.app-preview {
  height: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px 12px;
  background:
    radial-gradient(circle at 84% 18%, #765dff22, transparent 46%), #080910;
}
.app-copy {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}
.app-copy small {
  font-size: 5px;
  letter-spacing: 0.18em;
  color: #a584df;
  white-space: nowrap;
}
.app-copy b {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
}
.app-copy span {
  font-size: 5px;
  color: #6d7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.motion-timeline {
  position: relative;
  min-width: 0;
  border: 1px solid #ffffff0f;
  border-radius: 6px;
  background: #ffffff04;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
}
.mt-head {
  display: flex;
  justify-content: space-between;
  font-size: 4.5px;
  letter-spacing: 0.18em;
  color: #676d7a;
  padding-bottom: 6px;
  border-bottom: 1px solid #ffffff0d;
}
.mt-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-top: 4px;
}
.mt-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.mt-row b {
  font-size: 4.5px;
  font-weight: 500;
  color: #7f8593;
}
/* Each clip is one element; --s/--e are its normalised in/out points, so a
   layer row is a gradient stop pair rather than extra DOM. */
.mt-row i {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(var(--s) * 100%),
    #7d5cff calc(var(--s) * 100%),
    #c46bff calc(var(--e) * 100%),
    transparent calc(var(--e) * 100%)
  );
}
.mt-row:nth-child(2) i {
  background: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(var(--s) * 100%),
    #ff8a3d calc(var(--s) * 100%),
    #ff5fa8 calc(var(--e) * 100%),
    transparent calc(var(--e) * 100%)
  );
}
.mt-row:nth-child(4) i {
  background: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(var(--s) * 100%),
    #4d9dff calc(var(--s) * 100%),
    #5de7ff calc(var(--e) * 100%),
    transparent calc(var(--e) * 100%)
  );
}
.mt-playhead {
  position: absolute;
  top: 18px;
  bottom: 8px;
  left: 42%;
  width: 1px;
  background: linear-gradient(180deg, #ffffffcc, #ffffff26);
  box-shadow: 0 0 7px #ffffff5c;
  animation: mtPlayhead 14s ease-in-out infinite;
}
.mt-playhead::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #ffffff8c;
}
@keyframes mtPlayhead {
  0%,
  100% {
    left: 22%;
  }
  50% {
    left: 78%;
  }
}
.hero-edge {
  position: absolute;
  right: 15px;
  top: 50%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #555762;
  font-size: 7px;
}
.hero-edge i {
  width: 1px;
  height: 90px;
  background: linear-gradient(transparent, #ffffff3b, transparent);
}
.section-shell {
  width: min(1480px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}
.section-dark {
  position: relative;
  background: var(--bg);
}
.intro {
  padding: 130px 0 155px;
  border-top: 1px solid #ffffff0c;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 11vw;
  align-items: end;
}
.intro h2,
.section-head h2,
.process h2,
.contact h2 {
  font-size: clamp(47px, 5.2vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 26px 0 0;
  font-weight: 600;
}
.intro h2 em,
.section-head h2 em,
.process h2 em,
.contact h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: #b3a0ff;
}
.intro-copy > p {
  color: #9a9ba4;
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}
.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.intro-points span {
  padding: 9px 11px;
  border: 1px solid #ffffff12;
  border-radius: 999px;
  color: #c4c4ca;
  font-size: 9px;
}
.work {
  padding: 120px 0 170px;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 370px);
  gap: 50px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head > div,
.section-head > p {
  min-width: 0;
}
.section-head > p {
  color: #8d8f99;
  line-height: 1.7;
  margin: 0;
}
.project-list {
  display: grid;
  gap: 130px;
}
.project {
  display: grid;
  gap: 27px;
}
.project-meta {
  display: grid;
  grid-template-columns: 50px 1fr minmax(270px, 420px) auto;
  gap: 25px;
  align-items: end;
  border-top: 1px solid #ffffff12;
  padding-top: 22px;
}
.project-meta > span {
  font-size: 9px;
  color: #5d6069;
}
.project-meta small {
  font-size: 7px;
  color: #a98a57;
  letter-spacing: 0.17em;
}
.project-meta h3 {
  font-size: 25px;
  margin: 7px 0 0;
  font-weight: 500;
}
.project-meta p {
  margin: 0;
  color: #8f919a;
  font-size: 12px;
  line-height: 1.65;
}
.project-open {
  border: 0;
  border-bottom: 1px solid #ffffff21;
  background: none;
  padding: 8px 0;
  color: #bbbcc4;
  font-size: 9px;
  cursor: pointer;
}
.project-open:hover {
  color: white;
  border-color: var(--gold);
}
.commerce-switcher {
  grid-column: 2 / 4;
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.commerce-cat {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff14;
  background: #ffffff03;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.22s,
    background 0.22s,
    transform 0.22s;
}
.commerce-cat i {
  font-style: normal;
  font-size: 9px;
  color: #63666f;
}
.commerce-cat b {
  font-size: 11px;
  font-weight: 500;
  color: #c9c8ce;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.commerce-cat:hover {
  border-color: #ffffff2a;
  background: #ffffff07;
  transform: translateY(-1px);
}
.commerce-cat.active {
  border-color: rgba(255, 197, 99, 0.5);
  background: linear-gradient(
    180deg,
    rgba(255, 197, 99, 0.1),
    rgba(255, 197, 99, 0.02)
  );
}
.commerce-cat.active b {
  color: var(--gold);
}
.commerce-cat.active i {
  color: #d8a865;
}
.project-browser {
  border: 1px solid #ffffff16;
  border-radius: 15px;
  overflow: hidden;
  background: #0b0b0e;
  box-shadow: 0 45px 120px #00000080;
}
.project-browser .browser-bar {
  height: 40px;
  padding: 0 14px;
}
.shop-full {
  background: #0b0b0c;
  color: #f4f2ed;
  padding-bottom: 22px;
}
.shop-top {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 27px;
  border-bottom: 1px solid #ffffff12;
  font-size: 8px;
}
.shop-top b {
  font-size: 17px;
  letter-spacing: 0.14em;
}
.shop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #85858d;
  letter-spacing: 0.1em;
}
.shop-nav-cat {
  font-style: normal;
  cursor: pointer;
  color: #85858d;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.shop-nav-cat:hover,
.shop-nav-cat:focus-visible {
  color: #e3e2e6;
}
.shop-nav-cat.active {
  color: #f0c17f;
  border-color: #f0c17f66;
}
.shop-top span {
  justify-self: end;
  color: #85858d;
}
.shop-hero {
  height: min(560px, 51vw);
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.shop-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.54) saturate(0.72) contrast(1.08);
  transform: scale(1.02);
  transition:
    opacity 0.35s var(--ease),
    transform 6s linear;
}
#shopFull.swapping .shop-hero > img {
  opacity: 0;
}
#shopFull.swapping .shop-hero > div,
#shopFull.swapping .shop-products {
  opacity: 0;
  transform: translateY(6px);
}
.shop-hero > div,
.shop-products {
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.shop-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050505c7 0, transparent 62%),
    linear-gradient(0deg, #05050580 0, transparent 42%);
}
.shop-hero > div {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.shop-hero small {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #c79d78;
}
.shop-hero h4 {
  font-size: clamp(55px, 8vw, 130px);
  line-height: 0.77;
  letter-spacing: -0.055em;
  margin: 20px 0 31px;
}
.shop-hero a {
  border-bottom: 1px solid #ffffff6b;
  padding-bottom: 7px;
  font-size: 9px;
}
.shop-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  padding: 22px 22px 0;
}
.shop-products article {
  background: #101011;
  border: 1px solid #ffffff0e;
  padding: 9px;
}
.shop-products img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.8);
}
.shop-products span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 3px 5px;
  font-size: 10px;
}
.shop-products i {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8c7cd;
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  padding: 4px 9px;
  white-space: nowrap;
}
.shop-products i.tag-new {
  color: #9fe0ff;
  border-color: rgba(93, 231, 255, 0.35);
}
.shop-products i.tag-bestseller {
  color: var(--gold);
  border-color: rgba(255, 197, 99, 0.35);
}
.shop-products i.tag-limited {
  color: var(--pink);
  border-color: rgba(255, 111, 185, 0.35);
}
.control-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 650px;
  background: #080a0e;
}
.control-layout aside {
  padding: 25px 17px;
  border-right: 1px solid #ffffff0d;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.control-logo {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f2bc60, #f49b61);
  color: #171007;
  font-weight: 800;
  margin-bottom: 20px;
}
.control-layout aside small {
  font-size: 7px;
  color: #535761;
  letter-spacing: 0.15em;
  margin: 4px 10px;
}
.control-layout aside a {
  padding: 11px 12px;
  border-radius: 7px;
  color: #747883;
  font-size: 9px;
}
.control-layout aside a.active {
  background: #ffffff08;
  color: white;
}
.control-layout aside span {
  flex: 1;
}
.control-layout main {
  padding: 30px;
}
.control-layout main > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.control-layout header small {
  color: #5b606a;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.control-layout header h4 {
  font-size: 24px;
  margin: 5px 0;
}
.control-layout header .mock-action {
  border: 1px solid #ffffff15;
  background: #ffffff06;
  color: white;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 8px;
}
.control-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 28px 0;
}
.control-stats article {
  border: 1px solid #ffffff0f;
  background: #ffffff025;
  padding: 17px;
  border-radius: 9px;
}
.control-stats small {
  display: block;
  color: #5f646f;
  font-size: 7px;
}
.control-stats b {
  display: block;
  font-size: 29px;
  margin: 10px 0 4px;
}
.control-stats i {
  font-style: normal;
  color: #7d838e;
  font-size: 7px;
}
.control-main {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 10px;
}
.revenue,
.task-panel {
  border: 1px solid #ffffff0e;
  background: #ffffff025;
  border-radius: 9px;
  padding: 18px;
}
.revenue > div,
.task-panel > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.revenue span,
.task-panel span {
  font-size: 7px;
  color: #626873;
  letter-spacing: 0.12em;
}
.revenue b,
.task-panel > div b {
  font-size: 9px;
  font-weight: 500;
}
.revenue svg {
  width: 100%;
  height: 220px;
  margin-top: 6px;
}
.pipeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.pipeline-chips span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #ffffff0f;
  border-radius: 999px;
  background: #ffffff03;
}
.pipeline-chips i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #e8b972;
}
.pipeline-chips b {
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 0.06em;
  color: #82858f;
}
.task-panel p {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #ffffff0d;
  margin: 0;
}
.task-panel p > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.green {
  background: #79dda6;
}
.violet {
  background: #9d80ff;
}
.orange {
  background: #e4a45b;
}
.task-panel p span b {
  display: block;
  color: #d2d3d8;
  font-size: 8px;
}
.task-panel p span small {
  display: block;
  color: #5d626d;
  font-size: 6px;
  margin-top: 3px;
}
.task-panel em {
  font-style: normal;
  color: #5f646f;
  font-size: 6px;
}
.app-showcase {
  min-height: 690px;
  border: 1px solid #ffffff13;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 68% 45%, #6a4aff26, transparent 30%),
    radial-gradient(circle at 95% 10%, #21b8d91f, transparent 23%),
    linear-gradient(135deg, #0c0a13, #06070b 60%);
}
.app-ambient {
  position: absolute;
  width: 45vw;
  height: 45vw;
  right: -15vw;
  top: 5%;
  border: 1px solid #8a68ff33;
  border-radius: 50%;
  box-shadow: inset 0 0 100px #7b55ff0c;
  animation: orbit 12s linear infinite;
}
.app-ambient:before,
.app-ambient:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
}
.app-ambient:before {
  inset: 18%;
  border-color: #64e7ff20;
}
.app-ambient:after {
  inset: 38%;
  border-color: #ff6bac22;
}
.app-copy-large {
  position: absolute;
  left: 6%;
  top: 14%;
  z-index: 2;
  width: 39%;
}
.app-copy-large > span {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #9b83d4;
}
.app-copy-large h4 {
  font-size: clamp(50px, 6.5vw, 100px);
  line-height: 0.82;
  margin: 20px 0 24px;
  letter-spacing: -0.055em;
}
.app-copy-large h4 em {
  font-family: var(--serif);
  font-weight: 400;
  color: #aa8cff;
}
.app-copy-large p {
  max-width: 330px;
  color: #8a8d98;
  line-height: 1.6;
}
.screen-stack {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 55%;
  height: 88%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  perspective: 1300px;
}
.screen {
  width: 29%;
  min-width: 175px;
  height: 74%;
  border: 1px solid #ffffff1d;
  border-radius: 27px;
  padding: 18px 20px 0;
  background: linear-gradient(180deg, #171722, #0a0b0f);
  box-shadow: 0 38px 90px #000;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.screen-a {
  transform: translateY(2%) rotateY(7deg) rotateZ(-2deg);
}
.screen-b {
  height: 84%;
  z-index: 3;
  transform: translateY(-1%);
}
.screen-c {
  transform: translateY(6%) rotateY(-7deg) rotateZ(2deg);
}
.screen header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  margin-bottom: 20px;
  flex: none;
}
.screen header .screen-sec {
  color: #62656f;
  font-weight: 400;
}
.screen header i {
  margin-left: auto;
  font-style: normal;
  font-size: 6px;
  color: #4b5c52;
}
.screen > p {
  color: #767a87;
  font-size: 8px;
  margin: 0 0 12px;
}
.screen > strong {
  display: block;
  font-size: 22px;
  margin: 5px 0;
}
.screen > small {
  color: #5f6370;
  font-size: 7px;
}
.screen-quickstats {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.screen-quickstats span {
  flex: 1;
  border: 1px solid #ffffff0e;
  border-radius: 8px;
  background: #ffffff03;
  padding: 7px 6px;
  text-align: center;
}
.screen-quickstats b {
  display: block;
  font-size: 10px;
}
.screen-quickstats small {
  display: block;
  color: #5f6370;
  font-size: 5px;
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.screen-progress p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 6px;
  align-items: center;
  margin: 0 0 8px;
  font-size: 6px;
  color: #9598a2;
}
.screen-progress p b {
  color: #d5d6db;
  font-weight: 500;
}
.screen-progress p i {
  grid-column: 1/-1;
  display: block;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffb659, #d872ff 60%, #63e7ff);
}
.screen-upnext {
  margin-top: 4px;
}
.screen-upnext > span {
  display: block;
  color: #63666f;
  font-size: 5px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.screen-upnext p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  font-size: 7px;
}
.screen-upnext p i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a986ff;
  flex: none;
}
.screen-upnext p em {
  font-style: normal;
  margin-left: auto;
  color: #6a6e79;
}
.screen-notif {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ffffff0e;
  border-radius: 10px;
  background: #ffffff03;
}
.screen-notif i {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  border-radius: 50%;
  background: #6fd6a0;
  flex: none;
}
.screen-notif b {
  display: block;
  font-size: 7px;
  font-weight: 500;
}
.screen-notif small {
  display: block;
  color: #6a6e79;
  font-size: 6px;
  margin-top: 3px;
}
.screen-tabbar {
  margin: auto -20px 0;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #ffffff0e;
  background: #00000024;
  flex: none;
}
.screen-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #55585f;
}
.screen-tabbar i {
  font-style: normal;
  font-size: 9px;
}
.screen-tabbar small {
  font-size: 5px;
  letter-spacing: 0.04em;
}
.screen-tabbar span.active {
  color: var(--gold);
}
.screen-graph {
  height: 90px;
  margin: 23px 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 23px,
    #ffffff07 23px 24px
  );
  position: relative;
}
.screen-graph:before,
.screen-graph:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #fdaf5c,
    #ee6dc8 45%,
    #7b81ff 72%,
    #5ce8ff
  );
  transform-origin: left;
}
.screen-graph:before {
  top: 37px;
  transform: skewY(-10deg);
}
.screen-graph:after {
  top: 51px;
  opacity: 0.35;
  transform: skewY(5deg);
}
.screen-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.screen-buttons b {
  padding: 8px 2px;
  border: 1px solid #ffffff0e;
  background: #ffffff05;
  border-radius: 7px;
  font-size: 6px;
  text-align: center;
}
.screen-card {
  margin-top: 6px;
  margin-bottom: 14px;
  border: 1px solid #ffffff0e;
  background: #ffffff04;
  border-radius: 10px;
  padding: 11px;
}
.screen-card span {
  display: block;
  color: #686c78;
  font-size: 5px;
}
.screen-card b {
  display: block;
  font-size: 8px;
  margin: 5px 0;
}
.screen-card i {
  font-style: normal;
  color: #caa4ff;
  font-size: 6px;
}
.focus-orb {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 14px auto 16px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 33%,
    #fff 0 2%,
    #c4a1ff 3%,
    #7148d6 15%,
    #2f1f67 35%,
    #11101c 68%
  );
  box-shadow: 0 0 65px #835aff45;
}
.focus-orb i {
  position: absolute;
  inset: -13px;
  border: 1px solid #8766ff3c;
  border-radius: 50%;
  animation: spin 10s linear infinite;
}
.focus-orb i:nth-child(2) {
  inset: -25px;
  border-style: dashed;
  border-color: #5ae6ff24;
  animation-direction: reverse;
}
.screen-b > small,
.screen-b > strong {
  text-align: center;
}
.screen-b .screen-buttons {
  grid-template-columns: repeat(2, 1fr);
  margin: 14px 0 16px;
}
.bars {
  height: 74px;
  display: flex;
  gap: 7px;
  align-items: end;
  margin: 14px 0;
}
.bars i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #a986ff, #7654df);
  height: 35%;
}
.bars i:nth-child(2) {
  height: 62%;
}
.bars i:nth-child(3) {
  height: 45%;
}
.bars i:nth-child(4) {
  height: 82%;
}
.bars i:nth-child(5) {
  height: 70%;
}
.bars i:nth-child(6) {
  height: 92%;
  background: linear-gradient(180deg, #73e7ff, #529fb5);
}
.bars i:nth-child(7) {
  height: 58%;
}
.insight {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid #ffffff0d;
  font-size: 7px;
}
.insight span {
  color: #747987;
}
.insight b {
  font-size: 8px;
}
.systems-light {
  background: #f0efec;
  color: #141419;
  padding: 130px 0 150px;
  position: relative;
}
.systems-light:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0, #fff 0, transparent 30%),
    radial-gradient(circle at 90% 95%, #d9d4ff 0, transparent 24%);
  opacity: 0.7;
}
.systems-light .section-shell {
  position: relative;
}
.light-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 70px;
}
.light-head .section-label {
  grid-column: 1/-1;
  color: #aa8150;
}
.light-head h2 {
  font-size: clamp(48px, 5.7vw, 94px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 0;
}
.light-head > p:last-child {
  color: #6f6f76;
  line-height: 1.75;
  max-width: 500px;
  justify-self: end;
}
.services-grid {
  display: grid;
  /* 3 sütun: 9 hizmet kartı 3x3 dolduruyor (brief madde 5 — kırık son satır
     yok), kartlar da 4 sütuna göre daha geniş nefes alıyor. */
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #16161b22;
  border-left: 1px solid #16161b22;
}
.services-grid article {
  min-height: 285px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #16161b22;
  border-bottom: 1px solid #16161b22;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.services-grid article:after {
  content: "";
  position: absolute;
  inset: auto -30% -70% 40%;
  height: 180px;
  background: radial-gradient(circle, #8c73ff24, transparent 66%);
  opacity: 0;
  transition: 0.3s;
}
.services-grid article:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 24px 60px #2a27400d;
}
.services-grid article:hover:after {
  opacity: 1;
}
.services-grid article > span {
  font-size: 8px;
  color: #9a8c78;
}
.services-grid article > i {
  font-style: normal;
  font-size: 32px;
  margin: 42px 0 auto;
  color: #6754c7;
}
.services-grid h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.services-grid p {
  font-size: 11px;
  line-height: 1.6;
  color: #73737a;
  margin: 0;
}
.motion-field {
  height: 130vh;
  min-height: 900px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(155,110,232,.14), transparent 46%),
    radial-gradient(circle at 76% 78%, rgba(93,231,255,.10), transparent 50%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.motion-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0 35%,
    #04040963 62%,
    #040409 100%
  );
}
.motion-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(1160px, 90vw);
}
.motion-copy .section-label {
  color: #807d8f;
}
.motion-copy h2 {
  font-size: clamp(58px, 9.5vw, 160px);
  line-height: 0.73;
  letter-spacing: -0.065em;
  margin: 25px 0;
  will-change: transform;
}
.motion-copy h2 span,
.motion-copy h2 em {
  display: block;
}
.motion-copy h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px #ffffff5e;
}
.motion-copy h2 span:nth-child(1) {
  color: #ffcb6d;
}
.motion-copy h2 span:nth-child(3) {
  color: #d67aff;
}
.motion-copy h2 span:nth-child(5) {
  color: #67e6ff;
}
.motion-copy > p:last-child {
  color: #858795;
}
.marquee {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  border-top: 1px solid #ffffff11;
  border-bottom: 1px solid #ffffff11;
  overflow: hidden;
  white-space: nowrap;
  background: #06060b9c;
  backdrop-filter: blur(10px);
}
.marquee > div {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-size: 10px;
  letter-spacing: 0.17em;
}
.marquee i {
  font-style: normal;
  color: #8b72ff;
}
.marquee-top {
  top: 7%;
  transform: rotate(-2deg) scale(1.03);
}
.marquee-bottom {
  bottom: 8%;
  transform: rotate(2deg) scale(1.03);
}
.marquee-bottom > div {
  animation-direction: reverse;
  animation-duration: 31s;
}
.process {
  padding: 145px 0 170px;
}
.process-head {
  margin-bottom: 90px;
}
.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid #ffffff14;
}
.process-track article {
  position: relative;
  padding: 30px 20px 20px 0;
  min-height: 240px;
  border-right: 1px solid #ffffff0d;
}
.process-track article:last-child {
  border: 0;
}
.process-track article > span {
  font-size: 8px;
  color: #777985;
}
.process-track article > i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin: 45px 0 30px;
  position: relative;
}
.process-track article > i:after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: calc(100vw / 6 - 45px);
  height: 1px;
  background: linear-gradient(90deg, #b98a52, #ffffff0a);
}
.process-track article:last-child > i:after {
  display: none;
}
.process-track h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.process-track p {
  color: #7e818c;
  font-size: 10px;
  line-height: 1.65;
  max-width: 180px;
  margin: 0;
}
.contact {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
  border-top: 1px solid #ffffff0d;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 10vw;
  align-items: start;
}
.contact h2 {
  font-size: clamp(60px, 7.7vw, 126px);
}
.contact h2 em {
  color: #e3b55e;
}
.contact-grid > div > p:not(.section-label) {
  color: #8a8d97;
  max-width: 560px;
  line-height: 1.75;
}
.mail-link {
  font-size: 18px;
  display: inline-flex;
  gap: 25px;
  border-bottom: 1px solid #ffffff26;
  padding: 10px 0;
  margin-top: 20px;
}
.mail-link-value {
  min-width: 0;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: inherit;
  overflow-wrap: anywhere;
}
.mail-link-arrow {
  flex: none;
}
.contact-channels {
  margin-top: 26px;
  max-width: 420px;
  min-width: 0;
}
.channels-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff14;
  background: #ffffff03;
  border-radius: 10px;
  padding: 12px 15px;
  color: #c9c8ce;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  width: 100%;
}
.channels-toggle:hover {
  background: #ffffff07;
  border-color: #ffffff24;
}
.channels-toggle .chev {
  margin-left: auto;
  opacity: 0.6;
  transition: transform 0.25s;
}
.channels-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.channels-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.channels-panel > * {
  overflow: hidden;
}
.channels-panel.open {
  grid-template-rows: 1fr;
  margin-top: 8px;
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid #ffffff0f;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: background 0.2s;
}
.channel-row:hover {
  background: #ffffff06;
}
.channel-row i {
  font-style: normal;
  font-size: 14px;
  color: #dab05f;
  width: 18px;
  text-align: center;
  flex: none;
}
.channel-row span {
  color: #85868f;
  font-size: 10px;
}
.channel-row b {
  margin-left: auto;
  font-weight: 500;
  font-size: 12px;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: inherit;
}
/* Two direct, always-visible contact rows (no dropdown) — side by side on
   desktop, stacked on mobile. */
.contact-channels-static {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: none;
}
.contact-channels-static .channel-row {
  flex: 1 1 220px;
  margin-bottom: 0;
  padding: 16px 18px;
  background: #ffffff04;
}
.contact-direct {
  margin-top: 22px;
}
/* Right column of the contact section: replaces the old contact-form mount
   point. Static CSS/SVG only — a soft brand mark plus a few technical
   guide-lines, no canvas/particles/JS. */
.contact-decor {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-decor-mark {
  width: min(70%, 340px);
  height: auto;
  opacity: 0.16;
  stroke: var(--gold);
  stroke-width: 1.4;
  fill: none;
}
.contact-decor-lines {
  position: absolute;
  inset: 0;
}
.contact-decor-lines span {
  position: absolute;
  background: linear-gradient(90deg, transparent, #ffffff26, transparent);
  height: 1px;
}
.contact-decor-lines span:nth-child(1) { top: 18%; left: 0; right: 12%; }
.contact-decor-lines span:nth-child(2) { top: 42%; left: 8%; right: 0; }
.contact-decor-lines span:nth-child(3) { top: 64%; left: 0; right: 20%; }
.contact-decor-lines span:nth-child(4) { top: 84%; left: 16%; right: 4%; }
@media (max-width: 760px) {
  /* Matches the .contact-grid single-column breakpoint below — the decor
     column only exists while the grid actually has two columns. */
  .contact-decor { display: none; }
}
.account-cta {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  background: #ffffff025;
  max-width: 460px;
}
.account-cta p {
  margin: 0 0 16px;
  color: #9a9ba4;
  font-size: 12px;
  line-height: 1.7;
}
.account-buttons {
  display: flex;
  gap: 10px;
}
.account-buttons .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 11px;
  flex: 1;
}
.project-form {
  border: 1px solid #ffffff12;
  background: #ffffff025;
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(14px);
}
.project-form label {
  display: block;
  color: #737681;
  font-size: 8px;
  letter-spacing: 0.1em;
  margin-bottom: 19px;
}
.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #ffffff19;
  background: transparent;
  color: white;
  padding: 10px 0 12px;
  outline: none;
  margin-top: 5px;
  resize: none;
  font-size: 12px;
}
.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  border-color: #dba860;
}
.project-form select option {
  background: #0b0c10;
}
.form-btn {
  width: 100%;
  margin-top: 6px;
  justify-content: space-between;
}
.form-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin-bottom: 19px;
}
.form-subgrid select {
  font-size: 11px;
}
.form-note {
  margin: -6px 0 19px;
  padding: 11px 13px;
  border: 1px solid #ffffff0f;
  border-radius: 9px;
  background: #ffffff02;
  color: #767a85;
  font-size: 10px;
  line-height: 1.55;
}
.contact-orbit {
  position: absolute;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  left: -25vw;
  top: 15%;
  border: 1px solid #ffffff08;
}
.contact-orbit i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #ffffff08;
}
.contact-orbit i:first-child {
  inset: 16%;
  border-color: #f0b75918;
  animation: spin 36s linear infinite;
}
.contact-orbit i:nth-child(2) {
  inset: 33%;
  border-style: dashed;
  border-color: #9172ff25;
  animation: spin 26s linear infinite reverse;
}
.contact-orbit i:nth-child(3) {
  inset: 46%;
  border-color: #63ddff21;
}
.footer {
  position: relative;
  margin-top: 120px;
  padding: 34px 0 30px;
  border-top: 1px solid #ffffff0f;
}
/* Full-bleed background one step deeper than --bg, breaking out of the
   centered .section-shell width — gives the footer a touch of its own
   depth without a hard visual seam. */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bg2);
  z-index: -1;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
}
.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
}
.footer-brand .brand-mark svg {
  stroke: #d4a551;
  stroke-width: 5;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #9799a3;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--ink);
}
.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid #ffffff0a;
  color: #83858f;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.footer-brand .brand-word {
  font-size: 10px;
  color: white;
}

/* ---------------- /projects page ---------------- */
.projects-page {
  padding: 150px 0 90px;
}
.projects-hero {
  max-width: 760px;
  margin-bottom: 70px;
}
.projects-hero .section-label {
  color: #807d8f;
  margin-bottom: 18px;
}
.projects-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.projects-hero p {
  color: #9a9ba4;
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
}
.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 70px 40px;
  border: 1px solid #ffffff12;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff05, transparent);
}
.projects-empty-mark {
  width: 44px;
  height: 44px;
  opacity: 0.5;
  stroke: var(--gold);
  stroke-width: 3;
  fill: none;
}
.projects-empty h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}
.projects-empty p {
  max-width: 460px;
  color: #9a9ba4;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.projects-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  border: 1px solid #ffffff12;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff03;
  display: flex;
  flex-direction: column;
}
.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.project-card h3 {
  font-size: 17px;
  margin: 18px 18px 6px;
}
.project-card p {
  color: #9a9ba4;
  font-size: 12.5px;
  line-height: 1.65;
  margin: 0 18px 14px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 18px 16px;
}
.project-tech span {
  font-size: 9.5px;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #ffffff1a;
  color: #b7b8c0;
}
.project-card .btn {
  margin: 0 18px 18px;
  align-self: flex-start;
}
@media (max-width: 1180px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .projects-page { padding: 120px 0 70px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-empty { padding: 48px 22px; }
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: #030305d9;
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.case-modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-panel {
  width: min(780px, 100%);
  border: 1px solid #ffffff16;
  background:
    radial-gradient(circle at 90% 10%, #7157ff25, transparent 34%), #0b0b0f;
  padding: 55px;
  box-shadow: 0 50px 140px #000;
  transform: translateY(18px) scale(0.98);
  transition: 0.3s var(--ease);
}
.case-modal.open .modal-panel {
  transform: none;
}
.modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: #797b84;
  font-size: 8px;
  cursor: pointer;
}
.modal-panel h2 {
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.9;
  margin: 42px 0 20px;
  letter-spacing: -0.05em;
}
.modal-panel > p:not(.section-label) {
  color: #94969f;
  font-size: 14px;
  line-height: 1.7;
  max-width: 620px;
}
.modal-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 30px 0 50px;
}
.modal-tags span {
  padding: 8px 10px;
  border: 1px solid #ffffff12;
  border-radius: 999px;
  font-size: 8px;
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 750;
  background: #030305d9;
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.auth-modal.open {
  opacity: 1;
  visibility: visible;
}
.auth-modal .modal-panel {
  transform: translateY(18px) scale(0.98);
}
.auth-modal.open .modal-panel {
  transform: none;
}
.auth-panel {
  width: min(600px, 100%);
  padding: 46px;
}
.auth-panel h2 {
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.08;
  margin: 20px 0 16px;
  letter-spacing: -0.03em;
}
.auth-panel h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}
.auth-copy {
  margin-bottom: 28px !important;
}
.auth-buttons {
  margin-bottom: 34px;
}
.auth-journey {
  border-top: 1px solid #ffffff12;
  padding-top: 24px;
}
.auth-journey-label {
  margin: 0 0 16px;
  color: #6f717a;
  font-size: 8px;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.journey-step {
  padding: 10px 6px;
  border: 1px solid #ffffff0f;
  border-radius: 8px;
  background: #ffffff02;
  text-align: center;
}
.journey-step i {
  display: block;
  font-style: normal;
  font-size: 8px;
  color: #6a6d78;
  margin-bottom: 5px;
}
.journey-step b {
  display: block;
  font-size: 8.5px;
  font-weight: 500;
  color: #c9c8ce;
}
.journey-step:nth-child(3) {
  border-color: rgba(255, 197, 99, 0.3);
  background: rgba(255, 197, 99, 0.05);
}
.journey-step:nth-child(3) i {
  color: var(--gold);
}
.auth-journey-note {
  margin: 16px 0 0;
  color: #767a85;
  font-size: 10px;
  line-height: 1.6;
}
.modal-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff11;
  padding-top: 20px;
  color: #6f717a;
  font-size: 8px;
}
.modal-foot a {
  color: #dab05f;
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .main-nav,
html[dir="rtl"] .header-actions {
  direction: rtl;
}
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}
html[dir="rtl"] .lang-menu button {
  text-align: right;
}
html[dir="rtl"] .account-menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .intro-grid,
html[dir="rtl"] .section-head,
html[dir="rtl"] .contact-grid {
  direction: rtl;
}
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-tags,
html[dir="rtl"] .intro-points {
  justify-content: flex-start;
}
/* The hero showcase is a decorative mockup of Latin-script product UI, not
   site content: the grid still mirrors (copy moves to the right column),
   but the windows keep their own LTR internals so the browser chrome,
   dashboard and timeline don't come apart. */
html[dir="rtl"] .hero-stage {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] .project-meta {
  direction: rtl;
}
html[dir="rtl"] .channels-toggle .chev {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .channel-row b {
  margin-left: 0;
  margin-right: auto;
}
@keyframes logoTrace {
  0%,
  100% {
    stroke-dashoffset: 0;
  }
  45% {
    stroke-dashoffset: 8;
  }
  55% {
    stroke-dashoffset: -7;
  }
}
@keyframes logoTrace2 {
  0%,
  100% {
    stroke-dashoffset: 0;
  }
  45% {
    stroke-dashoffset: -5;
  }
  55% {
    stroke-dashoffset: 6;
  }
}
@keyframes brandSignal {
  0%,
  15% {
    width: 0;
    opacity: 0;
  }
  35% {
    width: 67px;
    opacity: 1;
  }
  70%,
  100% {
    width: 0;
    opacity: 0;
    transform: translateX(67px);
  }
}
/* Idle float. Deliberately tiny — 7px on the main card, 5-6px behind —
   so the deck breathes without ever reading as a bobbing animation.
   Transform-only, so it stays on the compositor. */
@keyframes floatMain {
  0%,
  100% {
    transform: rotateY(calc(-6deg + var(--py, 0deg)))
      rotateX(calc(1.4deg + var(--px, 0deg))) translate3d(0, 0, 80px)
      translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  }
  50% {
    transform: rotateY(calc(-5.2deg + var(--py, 0deg)))
      rotateX(calc(1deg + var(--px, 0deg))) translate3d(-3px, -7px, 86px)
      translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  }
}
@keyframes floatBackA {
  0%,
  100% {
    transform: rotateY(calc(9deg + var(--py, 0deg)))
      rotateZ(calc(-1deg + var(--pr, 0deg))) translate3d(0, 0, -20px)
      translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  }
  50% {
    transform: rotateY(calc(8.2deg + var(--py, 0deg)))
      rotateZ(calc(-0.5deg + var(--pr, 0deg))) translate3d(-4px, -5px, -14px)
      translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  }
}
@keyframes floatBackB {
  0%,
  100% {
    transform: rotateY(calc(-14deg + var(--py, 0deg)))
      rotateZ(calc(1deg + var(--pr, 0deg))) translate3d(0, 0, -40px)
      translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  }
  50% {
    transform: rotateY(calc(-13.2deg + var(--py, 0deg)))
      rotateZ(calc(0.5deg + var(--pr, 0deg))) translate3d(4px, -6px, -33px)
      translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--pscale, 1));
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  /* Below the nav-collapse breakpoint, login/start/CTA live only inside
     the hamburger menu's .mobile-actions — keeping them in the fixed
     header too would duplicate them the moment the menu is opened. */
  .header-cta,
  .header-login,
  .header-start {
    display: none;
  }
  .site-header.menu-open .main-nav {
    display: flex;
    position: fixed;
    inset: 80px 0 0;
    background: #07070bf7;
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 70px var(--pad);
    gap: 20px;
  }
  .site-header.menu-open .main-nav > a {
    font-family: var(--serif);
    font-size: 42px;
  }
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding-top: 26px;
    border-top: 1px solid #ffffff14;
  }
  .mobile-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    padding-top: 130px;
    min-height: 1300px;
    align-items: start;
  }
  .hero-copy {
    max-width: min(850px, 100%);
  }
  .hero-stage {
    height: 650px;
  }
  .browser-main {
    width: 68%;
    right: 8%;
  }
  .browser-dashboard {
    right: 50%;
  }
  .browser-app {
    right: 1%;
  }
  .project-meta {
    grid-template-columns: 40px 1fr 1fr;
  }
  .project-open {
    grid-column: 4;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-track {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-track article:nth-child(3) {
    border-right: 0;
  }
  .process-track article > i:after {
    width: calc(100vw / 3 - 60px);
  }
  .process-track article:nth-child(3) > i:after {
    display: none;
  }
  .control-layout {
    grid-template-columns: 150px 1fr;
  }
  .control-main {
    grid-template-columns: 1fr;
  }
  .task-panel {
    display: none;
  }
  .screen-stack {
    width: 62%;
  }
  .app-copy-large {
    width: 36%;
  }
  .form-subgrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  :root {
    --pad: 20px;
  }
  .site-header {
    height: 68px;
  }
  .brand-word {
    font-size: 11px;
  }
  .hero {
    padding: 100px 20px 56px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
  }
  .hero h1 {
    font-size: clamp(44px, 12.5vw, 74px);
  }
  .hero-lead {
    font-size: 13px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  /* Phones keep the showcase but drop to a single, larger, near-flat main
     window: the perspective that reads as depth at 1400px just makes the
     mockup unreadable at 390px. Only the dashboard stays behind it. */
  .hero-stage {
    height: 340px;
    min-height: 340px;
    perspective: 1100px;
  }
  /* Telefonda iki kart yalnızca ince bir şeritte üst üste biner: daha fazla
     çakışma, dar ekranda dashboard'un istatistikleriyle FORMA'nın başlığını
     aynı piksellere bindirip ikisini de okunmaz yapıyordu. */
  .browser-main {
    width: 92%;
    height: 74%;
    right: 4%;
    top: 24%;
    transform: rotateY(-3deg) translateZ(0)
      translate(var(--ptx, 0px), var(--pty, 0px));
    animation: none;
  }
  .browser-dashboard {
    width: 62%;
    height: 34%;
    right: 34%;
    top: 0%;
    transform: rotateY(5deg) translateZ(0);
    animation: none;
  }
  .browser-app {
    display: none;
  }
  .commerce-copy {
    left: 7%;
    bottom: 13%;
  }
  .commerce-copy h3 {
    font-size: 26px;
  }
  .commerce-nav b {
    font-size: 12px;
  }
  .product-chip {
    display: none;
  }
  .stage-reflect {
    display: none;
  }
  /* Fewer, calmer light paths on small screens. */
  .hero-ribbons .rib-5,
  .hero-ribbons .rib-6 {
    display: none;
  }
  .ribbon-halo {
    filter: none;
    opacity: 0.34;
  }
  .intro {
    padding: 95px 0;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .intro h2,
  .section-head h2,
  .process h2 {
    font-size: clamp(43px, 12vw, 64px);
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 55px;
  }
  .project-list {
    gap: 90px;
  }
  .project-meta {
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }
  .project-meta p {
    grid-column: 2;
  }
  .project-open {
    grid-column: 2;
    justify-self: start;
  }
  .project-browser {
    border-radius: 10px;
  }
  .shop-top {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }
  .shop-top nav {
    display: none;
  }
  .shop-hero {
    min-height: 360px;
  }
  .shop-hero h4 {
    font-size: 52px;
  }
  .shop-products {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .shop-products article:nth-child(n + 2) {
    display: none;
  }
  .shop-products img {
    height: 220px;
  }
  .control-layout {
    grid-template-columns: 55px 1fr;
    min-height: 520px;
  }
  .control-layout aside {
    padding: 16px 8px;
  }
  .control-layout aside a,
  .control-layout aside small {
    font-size: 0;
  }
  .control-layout aside a:before {
    content: "•";
    font-size: 16px;
  }
  .control-logo {
    width: 30px;
    height: 30px;
  }
  .control-layout main {
    padding: 16px;
  }
  .control-stats {
    grid-template-columns: 1fr 1fr;
  }
  .control-stats article:nth-child(n + 3) {
    display: none;
  }
  .revenue svg {
    height: 230px;
  }
  .app-showcase {
    min-height: 730px;
  }
  .app-copy-large {
    left: 7%;
    top: 7%;
    width: 86%;
  }
  .app-copy-large h4 {
    font-size: 52px;
  }
  .screen-stack {
    width: 100%;
    right: 0;
    height: 58%;
    gap: 8px;
  }
  .screen {
    min-width: 0;
    width: 31%;
    height: 78%;
    padding: 12px 12px 0;
    border-radius: 18px;
  }
  .screen-tabbar {
    margin: auto -12px 0;
  }
  .screen-quickstats,
  .screen-progress {
    margin-bottom: 8px;
  }
  .screen-card {
    margin-bottom: 8px;
  }
  .screen-notif {
    margin-top: 6px;
    padding: 7px;
  }
  .bars {
    margin: 8px 0;
  }
  .screen-b {
    height: 84%;
  }
  .focus-orb {
    width: 65px;
    height: 65px;
  }
  .light-head {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .light-head .section-label {
    grid-column: auto;
  }
  .light-head h2 {
    font-size: 49px;
  }
  .light-head > p:last-child {
    justify-self: start;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid article {
    min-height: 210px;
  }
  .motion-field {
    min-height: 850px;
    height: 115vh;
  }
  .motion-copy h2 {
    font-size: clamp(52px, 17vw, 92px);
  }
  .process-track {
    grid-template-columns: 1fr 1fr;
  }
  .process-track article:nth-child(2n) {
    border-right: 0;
  }
  .process-track article:nth-child(3) {
    border-right: 1px solid #ffffff0d;
  }
  .process-track article > i:after {
    width: calc(50vw - 55px);
  }
  .process-track article:nth-child(2n) > i:after {
    display: none;
  }
  .contact {
    padding-top: 100px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .contact-grid > * {
    min-width: 0;
  }
  .contact h2 {
    font-size: 55px;
  }
  .mail-link {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 14px;
    max-width: 100%;
  }
  .contact-channels {
    width: 100%;
    max-width: 100%;
  }
  .channel-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
  }
  .channel-row i {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .channel-row span,
  .channel-row b {
    grid-column: 2;
    min-width: 0;
  }
  .channel-row b,
  html[dir="rtl"] .channel-row b {
    margin: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .modal-panel {
    padding: 35px 25px;
  }
  .journey-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .journey-step:nth-child(4),
  .journey-step:nth-child(5) {
    grid-column: span 1;
  }
}
/* Skip paint/layout work for distant sections while preserving their measured
   scroll footprint. Each section becomes fully live before it reaches view. */
.v5-exact-shell :is(.intro, .work, .systems-light, .motion-field, .process, .contact) {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}
.v5-exact-shell .work { contain-intrinsic-size: auto 3600px; }

:is(.hero-stage, .app-showcase, .motion-field, .contact)[data-motion-active="false"] * {
  animation-play-state: paused !important;
}

/* ---- MEDIUM: same composition, cheaper light. ------------------------ */
html[data-performance-quality="medium"] .noise { opacity: 0.035; }
html[data-performance-quality="medium"] .site-header.scrolled { backdrop-filter: blur(12px); }
html[data-performance-quality="medium"] .hero-bloom { filter: blur(56px); }
html[data-performance-quality="medium"] .stage-glow { filter: blur(24px); }
html[data-performance-quality="medium"] .browser-card {
  box-shadow:
    0 32px 78px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html[data-performance-quality="medium"] .browser-main {
  box-shadow:
    0 36px 86px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(157, 92, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
html[data-performance-quality="medium"] .ribbon-halo { filter: blur(5px); opacity: 0.42; }
html[data-performance-quality="medium"] .ribbon-line .rib { animation-duration: 40s; }
html[data-performance-quality="medium"] .stage-reflect { filter: blur(5px); opacity: 0.5; }
html[data-performance-quality="medium"] .marquee { backdrop-filter: blur(6px); }

/* ---- LOW: static, flat-lit, no blur. The three windows, the neon paths
   and the whole composition still render — only the effects are cut. --- */
html[data-performance-quality="low"] .noise { display: none; }
html[data-performance-quality="low"] :is(.site-header.scrolled, .account-menu, .lang-menu, .marquee, .project-form) {
  backdrop-filter: none;
}
html[data-performance-quality="low"] .hero-bloom {
  filter: blur(38px);
  opacity: 0.17;
}
html[data-performance-quality="low"] .stage-glow {
  filter: blur(18px);
  opacity: 0.6;
}
html[data-performance-quality="low"] .browser-card {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
  will-change: auto;
  animation: none;
}
html[data-performance-quality="low"] .browser-main {
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.56);
}
html[data-performance-quality="low"] .browser-card::after { opacity: 0.5; }
html[data-performance-quality="low"] .ribbon-halo {
  filter: none;
  opacity: 0.3;
}
html[data-performance-quality="low"] .ribbon-line .rib {
  animation: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0.6;
}
html[data-performance-quality="low"] .mt-playhead { animation: none; }
html[data-performance-quality="low"] .stage-reflect {
  filter: none;
  opacity: 0.34;
}
html[data-performance-quality="low"] .motion-copy h2 { will-change: auto; }
html[data-performance-quality="low"] .marquee > div { animation-duration: 42s; }
html[data-performance-quality="low"] .marquee-bottom > div { animation-duration: 46s; }
html[data-performance-quality="low"] .observe {
  transform: translateY(14px);
  transition-duration: 0.52s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  /* The hero showcase must still look finished when nothing moves: the
     cards keep their perspective and lighting, only the float, the
     ribbon draw and the playhead stop. */
  .browser-card {
    animation: none;
  }
  .ribbon-line .rib {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
  .mt-playhead {
    animation: none;
    left: 46%;
  }
}
.observe {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.observe.in {
  opacity: 1;
  transform: none;
}
.services-grid article.observe:nth-child(2),
.process-track article.observe:nth-child(2) {
  transition-delay: 0.05s;
}
.services-grid article.observe:nth-child(3),
.process-track article.observe:nth-child(3) {
  transition-delay: 0.1s;
}
.services-grid article.observe:nth-child(4),
.process-track article.observe:nth-child(4) {
  transition-delay: 0.15s;
}
.services-grid article.observe:nth-child(5),
.process-track article.observe:nth-child(5) {
  transition-delay: 0.2s;
}
.services-grid article.observe:nth-child(6),
.process-track article.observe:nth-child(6) {
  transition-delay: 0.25s;
}
.services-grid article.observe:nth-child(n + 7) {
  transition-delay: 0.3s;
}

/* ============================================================
   HERO SHOWCASE — responsive composition.

   >1180px  two columns, full three-window deck.
   ≤1180px  the copy column needs more room, so the deck narrows and the
            back cards tuck in tighter.
   ≤980px   single column: copy first (the headline must be readable
            before anything else), showcase below at full width. The
            cards never overlap the text because they stop sharing a row.
   ≤760px   phone rules live in the main mobile block further up.
   Short desktops (≤820px tall) get a shorter stage so the whole hero
   still fits one viewport at 1366x768.
   ============================================================ */
/* Lower bounds matter: this block sits after the phone block in source
   order, so an open-ended max-width would silently win the cascade on
   phones and undo the mobile composition. */
@media (min-width: 981px) and (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
  .hero-stage {
    height: min(520px, 54vh);
  }
  .browser-main {
    width: 80%;
    height: 72%;
    right: 2%;
  }
  .browser-back {
    width: 55%;
    height: 45%;
  }
  .browser-dashboard {
    right: 40%;
  }
}
@media (min-width: 761px) and (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-bottom: clamp(48px, 6vh, 70px);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(28px, 4vh, 44px);
  }
  .hero h1 {
    font-size: clamp(46px, 7vw, 78px);
  }
  .hero-lead {
    max-width: 640px;
  }
  .hero-stage {
    height: min(460px, 52vh);
    min-height: 380px;
  }
  .browser-main {
    width: 66%;
    height: 74%;
    right: 5%;
    top: 18%;
  }
  .browser-back {
    width: 46%;
    height: 42%;
  }
  .browser-dashboard {
    right: 47%;
  }
  .browser-app {
    right: 0%;
  }
}
/* 1366x768 and other short desktops: trade stage height, not composition. */
@media (min-width: 981px) and (max-height: 820px) {
  .hero-stage {
    height: min(480px, 62vh);
    min-height: 340px;
  }
  .hero h1 {
    font-size: clamp(38px, 3.4vw, 62px);
  }
}

/* ---------------- Rameroon upgrade / 2026-08-28 ---------------- */
[hidden] { display: none !important; }
body { -webkit-user-select: text; user-select: text; }
body.modal-open { overflow: hidden; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.noise { position: absolute; height: 100svh; bottom: auto; opacity: .028; }
.site-header.scrolled { background: rgba(11,14,23,.9); backdrop-filter: blur(12px); }
.browser-card { will-change: auto; }
@media (hover:hover) and (pointer:fine) { .hero-stage:hover .browser-card { will-change: transform; } }

/* About: editorial statement plus a compact philosophy rail. */
.intro { padding-block: clamp(96px, 11vw, 170px); }
.intro-story { display: grid; grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr); gap: clamp(56px,8vw,132px); align-items: start; }
.intro-statement { position: sticky; top: 130px; }
.intro-statement h2 { font-size: clamp(42px,5.4vw,82px); line-height: .98; letter-spacing: -.055em; margin: 24px 0 34px; }
.intro-statement h2 em { color: var(--gold); font-family: var(--serif); font-weight: 400; }
.intro-statement>p:not(.section-label) { max-width: 600px; color: #afb2bd; font-size: clamp(15px,1.15vw,18px); line-height: 1.75; }
.intro-link { display: inline-flex; align-items: center; gap: 26px; margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,197,99,.52); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.intro-link i { color: var(--gold); font-style: normal; transition: transform .25s var(--ease); }
.intro-link:hover i { transform: translate(3px,-3px); }
.intro-principles { counter-reset: principle; border-top: 1px solid var(--line); }
.intro-principles article { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px 4px; border-bottom: 1px solid var(--line); transition: background .25s,color .25s; }
.intro-principles article:hover { background: linear-gradient(90deg,rgba(155,110,232,.08),transparent 72%); }
.intro-principles article>span { color: var(--gold); font-size: 10px; letter-spacing: .12em; padding-top: 5px; }
.intro-principles h3 { margin: 0 0 8px; font-size: clamp(18px,1.55vw,24px); letter-spacing: -.025em; }
.intro-principles p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 540px; }

.work-index-link { width: fit-content; margin: 36px 0 0 auto; display: flex; align-items: center; gap: 28px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.work-index-link i { color: var(--gold); font-style: normal; }
.services-grid article { transition: transform .25s var(--ease),border-color .25s,box-shadow .25s; }
.services-grid article:hover { transform: translateY(-4px); border-color: rgba(155,110,232,.34); box-shadow: 0 20px 50px rgba(25,20,50,.1); }

/* Contact section is an intentional launch surface; details live in the accessible panel. */
.contact { min-height: auto; padding-top: clamp(110px,13vw,190px); }
.contact-stage { position: relative; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); align-items: end; gap: clamp(48px,8vw,120px); padding-bottom: clamp(90px,10vw,150px); }
.contact-stage-copy h2 { max-width: 950px; font-size: clamp(48px,7.2vw,112px); line-height: .88; letter-spacing: -.06em; margin: 28px 0 30px; }
.contact-stage-copy h2 em { color: var(--gold); font-family: var(--serif); font-weight: 400; }
.contact-stage-copy>p:not(.section-label) { max-width: 680px; color: #a7aab5; font-size: clamp(15px,1.25vw,19px); line-height: 1.72; }
.contact-stage-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-signature { min-height: 320px; border: 1px solid var(--line); border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 34px; background: radial-gradient(circle at 65% 25%,rgba(155,110,232,.18),transparent 48%),linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); overflow: hidden; }
.contact-signature .contact-decor-mark { width: 100px; height: 100px; stroke: url(#rg); stroke: var(--gold); fill: none; stroke-width: 2.4; opacity: .9; }
.contact-signature>span { max-width: 240px; color: #c6c7ce; font-size: 13px; line-height: 1.6; }

/* Contact modal / request form. */
.contact-modal { position: fixed; inset: 0; z-index: 1000; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .22s ease,visibility 0s linear .22s; }
.contact-modal.open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(5,7,13,.84); }
.contact-panel { position: absolute; inset: max(18px,2.3vw); display: grid; grid-template-columns: minmax(300px,.76fr) minmax(520px,1.24fr); max-width: 1480px; margin: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 28px; background: #101521; box-shadow: 0 48px 140px rgba(0,0,0,.62); overflow: auto; overscroll-behavior: contain; transform: translateY(18px) scale(.992); transition: transform .28s var(--ease); }
.contact-modal.open .contact-panel { transform: none; }
.contact-modal-close { position: absolute; z-index: 3; top: 18px; right: 18px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,13,22,.9); padding: 10px 14px; color: #d5d7de; cursor: pointer; font-size: 10px; letter-spacing: .1em; }
.contact-modal-close i { font-size: 19px; line-height: .8; font-style: normal; color: var(--gold); }
.contact-panel-intro { min-width: 0; padding: clamp(52px,5.5vw,90px) clamp(30px,4.4vw,72px); background: radial-gradient(circle at 12% 8%,rgba(155,110,232,.17),transparent 42%),#0c101a; border-right: 1px solid var(--line); }
.contact-panel-intro h2 { margin: 20px 0 20px; font-size: clamp(38px,4vw,66px); line-height: .98; letter-spacing: -.05em; max-width: 560px; }
.contact-panel-intro>p:not(.section-label) { color: #a7aab5; line-height: 1.7; max-width: 520px; }
.contact-modal-channels { display: grid; gap: 10px; margin-top: 36px; }
.contact-channel-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.028); transition: border-color .2s,transform .2s; }
.contact-channel-card:hover { border-color: rgba(255,197,99,.45); transform: translateY(-2px); }
.contact-channel-card>span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,197,99,.11); color: var(--gold); }
.contact-channel-card div { min-width: 0; }
.contact-channel-card small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.contact-channel-card b { display: block; overflow-wrap: anywhere; font-size: 13px; }
.contact-channel-card>i { color: var(--gold); font-style: normal; }
.contact-config-note { font-size: 11px; margin-top: 16px!important; }
.contact-unconfigured { color: var(--muted); }
.quote-form { min-width: 0; padding: clamp(64px,5.5vw,90px) clamp(28px,4.7vw,78px) 50px; background: #141a26; }
.form-head h3 { margin: 14px 0 30px; font-size: clamp(30px,3.1vw,50px); line-height: 1; letter-spacing: -.045em; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field>span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #b4b6c0; }
.form-field input,.form-field select,.form-field textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: #0d121c; color: var(--ink); padding: 13px 14px; outline: none; transition: border-color .18s,box-shadow .18s; }
.form-field textarea { resize: vertical; min-height: 128px; line-height: 1.55; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color: rgba(255,197,99,.62); box-shadow: 0 0 0 3px rgba(255,197,99,.08); }
.form-field [aria-invalid="true"] { border-color: rgba(255,111,137,.75); }
.field-error { min-height: 14px; color: #ff96a9; font-size: 10px; }
.privacy-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 20px 0; color: #a7aab5; font-size: 11px; line-height: 1.5; }
.privacy-check input { margin-top: 2px; accent-color: var(--gold); }
.form-honeypot { position: absolute!important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-submit-row { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.form-status { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-status.success { color: #8ee7a3; }
.form-status.error { color: #ff96a9; }
.cf-turnstile { margin: 0 0 18px; }

/* Portfolio page. */
.projects-page { min-height: auto; padding: clamp(150px,15vw,220px) 0 clamp(100px,12vw,180px); }
.projects-hero { max-width: 1100px; margin-bottom: clamp(54px,7vw,96px); }
.projects-hero h1 { font-size: clamp(56px,8vw,126px); line-height: .88; max-width: 1060px; letter-spacing: -.065em; margin: 24px 0 30px; }
.projects-hero>p:not(.section-label) { max-width: 780px; color: #a6a9b4; font-size: clamp(15px,1.35vw,20px); line-height: 1.7; }
.projects-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 34px; width: fit-content; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.024); }
.projects-filters button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 10px 18px; cursor: pointer; font-size: 11px; transition: background .2s,color .2s; }
.projects-filters button.active { color: #17120c; background: linear-gradient(135deg,#ffd37f,#f19a78); }
.projects-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px,3vw,48px); }
.portfolio-card { min-width: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); transition: transform .3s var(--ease),border-color .3s; }
.portfolio-card:hover { transform: translateY(-6px); border-color: rgba(155,110,232,.4); }
.portfolio-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #080b12; }
.portfolio-image::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg,rgba(5,7,12,.46),transparent 48%); }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.portfolio-card:hover .portfolio-image img { transform: scale(1.028); }
.portfolio-image>i { position: absolute; z-index: 2; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,13,20,.84); border: 1px solid var(--line); color: var(--gold); font-style: normal; transition: transform .25s; }
.portfolio-card:hover .portfolio-image>i { transform: translate(3px,-3px); }
.portfolio-badge { position: absolute; z-index: 2; top: 18px; left: 18px; border-radius: 999px; padding: 8px 12px; background: rgba(8,10,16,.86); border: 1px solid rgba(255,255,255,.16); text-transform: uppercase; letter-spacing: .11em; font-size: 9px; }
.portfolio-badge.live::before,.portfolio-badge.demo::before { content:""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: #7eeaa2; box-shadow: 0 0 12px rgba(126,234,162,.65); }
.portfolio-badge.demo::before { background: var(--violet); box-shadow: 0 0 12px rgba(155,110,232,.65); }
.portfolio-card-body { padding: clamp(24px,3vw,40px); }
.portfolio-card-head { display: flex; justify-content: space-between; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.portfolio-card-body h2 { margin: 18px 0 14px; font-size: clamp(28px,3vw,44px); letter-spacing: -.045em; }
.portfolio-card-body>p { margin: 0; color: #a9acb6; line-height: 1.7; min-height: 4.8em; }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.project-tech span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: #b7bac4; font-size: 9px; }
.portfolio-action { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.portfolio-action i { color: var(--gold); font-style: normal; }

.intro,.work,.systems-light,.motion-field,.process,.contact,.projects-page { content-visibility: auto; contain-intrinsic-size: auto 1000px; }

@media (max-width: 980px) {
  .intro-story { grid-template-columns: 1fr; }
  .intro-statement { position: static; }
  .contact-stage { grid-template-columns: 1fr; }
  .contact-signature { min-height: 220px; }
  .contact-panel { grid-template-columns: 1fr; inset: 12px; }
  .contact-panel-intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .projects-grid { grid-template-columns: 1fr; }
  .portfolio-card-body>p { min-height: 0; }
}

@media (max-width: 620px) {
  .intro { padding-block: 84px; }
  .intro-statement h2 { font-size: 43px; }
  .intro-principles article { grid-template-columns: 34px 1fr; padding: 22px 0; gap: 12px; }
  .work-index-link { margin-left: 0; }
  .contact-stage { padding-bottom: 80px; }
  .contact-stage-copy h2 { font-size: 49px; }
  .contact-stage-actions { display: grid; }
  .contact-stage-actions .btn { justify-content: space-between; }
  .contact-signature { padding: 26px; border-radius: 20px; }
  .contact-panel { position: fixed; inset: 0; border: 0; border-radius: 0; display: block; }
  .contact-panel-intro,.quote-form { padding: 76px 20px 44px; }
  .contact-panel-intro { min-height: 100svh; }
  .quote-form { min-height: 100svh; }
  .contact-modal-close { position: fixed; top: 14px; right: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .form-submit-row .btn { width: 100%; justify-content: space-between; }
  .projects-page { padding-top: 118px; }
  .projects-hero h1 { font-size: 54px; }
  .projects-filters { width: 100%; border-radius: 18px; overflow-x: auto; flex-wrap: nowrap; }
  .projects-filters button { flex: none; }
  .portfolio-card { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; scroll-behavior: auto!important; transition-duration: .01ms!important; }
}

html[data-performance-quality="low"] .site-header.scrolled { backdrop-filter: none; }
html[data-performance-quality="low"] .noise { display: none; }
html[data-performance-quality="low"] .hero-bloom,html[data-performance-quality="low"] .stage-glow { filter: none; opacity: .18; }
