/* ==========================================================================
   Cairns Web Development — brand system
   Palette lifted directly from the logo:
     plum  #3D0B5B   violet #9B5CFF   emerald #2FC08A   white #FFFFFF
   ========================================================================== */

:root {
  /* Core brand */
  --plum-900: #10021A;
  --plum-850: #17042553;
  --plum-800: #1B0528;
  --plum-700: #250737;
  --plum-600: #3D0B5B;
  --plum-500: #4E1172;

  --violet-600: #7B3BE8;
  --violet-500: #9B5CFF;
  --violet-400: #B98CFF;
  --violet-300: #D2B6FF;

  --emerald-600: #1E9E6D;
  --emerald-500: #2FC08A;
  --emerald-400: #4FD7A5;
  --emerald-300: #8FEBC8;

  /* Surfaces */
  --bg: #0E0116;
  --surface-1: rgba(61, 11, 91, 0.30);
  --surface-2: rgba(61, 11, 91, 0.48);
  --surface-3: rgba(78, 17, 114, 0.60);
  --line: rgba(155, 92, 255, 0.16);
  --line-strong: rgba(155, 92, 255, 0.32);

  /* Text */
  --text: #F4EEFB;
  --text-muted: #BBA8D0;
  --text-dim: #8E7BA6;

  /* Type */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Motion & shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.30);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 34px 80px rgba(8, 0, 14, 0.62);
  --glow-violet: 0 0 0 1px rgba(155, 92, 255, 0.28), 0 18px 50px rgba(123, 59, 232, 0.28);
  --glow-emerald: 0 0 0 1px rgba(47, 192, 138, 0.30), 0 18px 50px rgba(47, 192, 138, 0.20);

  --container: 1200px;
  --nav-h: 76px;
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient brand atmosphere — plum base, violet/emerald bloom, faint grid. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(123, 59, 232, 0.30), transparent 62%),
    radial-gradient(760px 540px at 92% 4%, rgba(47, 192, 138, 0.14), transparent 60%),
    radial-gradient(1100px 800px at 50% 108%, rgba(61, 11, 91, 0.72), transparent 66%),
    linear-gradient(180deg, #16032300 0%, #10021A 40%, #0E0116 100%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(155, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--violet-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #12021D; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--violet-600), var(--plum-500));
  border-radius: 99px;
  border: 3px solid #12021D;
}
::-webkit-scrollbar-thumb:hover { background: var(--violet-500); }

/* ------------------------------------------------------------ primitives -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding: 116px 0; position: relative; }
.section--tight { padding: 84px 0; }

.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-400);
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(47, 192, 138, 0.28);
  border-radius: 99px;
  background: rgba(47, 192, 138, 0.07);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.02em; line-height: 1.3; }

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 62ch;
}

.grad {
  background: linear-gradient(104deg, var(--violet-400) 0%, var(--violet-500) 34%, var(--emerald-400) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons ------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.945rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: linear-gradient(100deg, var(--violet-600), var(--violet-500) 48%, var(--emerald-500) 128%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(123, 59, 232, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(123, 59, 232, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(61, 11, 91, 0.30);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: var(--emerald-500);
  background: rgba(47, 192, 138, 0.10);
  color: #fff;
  transform: translateY(-2px);
}

.btn--emerald {
  background: linear-gradient(100deg, var(--emerald-600), var(--emerald-500));
  color: #04231A;
  box-shadow: 0 10px 30px rgba(47, 192, 138, 0.30);
}
.btn--emerald:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(47, 192, 138, 0.42); }

.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--emerald-400);
  transition: gap 0.25s var(--ease), color 0.25s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { gap: 12px; color: var(--emerald-300); }

/* Cards ---------------------------------------------------------------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(61, 11, 91, 0.42), rgba(16, 2, 26, 0.58));
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(155, 92, 255, 0.5), transparent 42%, transparent 62%, rgba(47, 192, 138, 0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

/* ============================================================== NAVBAR == */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 66px;
  background: rgba(14, 1, 22, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--plum-600), var(--plum-800));
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); box-shadow: var(--glow-violet); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.99rem;
  letter-spacing: 0.015em;
  color: #fff;
}
.brand__sub {
  font-size: 8.6px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 15px;
  font-size: 0.912rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-500), var(--emerald-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(61, 11, 91, 0.4);
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle span + span { margin-top: 4.5px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

/* ================================================================ HERO == */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 92px) 0 96px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--a {
  width: 620px; height: 620px;
  top: -220px; left: -160px;
  background: radial-gradient(circle, rgba(123, 59, 232, 0.44), transparent 66%);
  animation: float 16s ease-in-out infinite;
}
.hero__glow--b {
  width: 520px; height: 520px;
  top: 40px; right: -180px;
  background: radial-gradient(circle, rgba(47, 192, 138, 0.26), transparent 66%);
  animation: float 20s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, 30px) scale(1.08); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 68px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.3vw, 4.25rem);
  letter-spacing: -0.038em;
}
.hero__sub {
  margin-top: 26px;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 56ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.87rem;
}
.hero__stars { display: flex; gap: 3px; }
.hero__stars svg { width: 15px; height: 15px; fill: var(--emerald-400); }

/* Hero visual — a stylised browser window */
.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(61, 11, 91, 0.62), rgba(16, 2, 26, 0.9));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
  transition: transform 0.9s var(--ease);
}
.window:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 2, 26, 0.6);
}
.window__dot { width: 10px; height: 10px; border-radius: 50%; }
.window__url {
  margin-left: 10px;
  flex: 1;
  font-size: 11.5px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 11px;
  text-align: center;
}
.window__body { padding: 26px; display: grid; gap: 15px; }

.code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12.6px;
  line-height: 2;
  color: var(--text-muted);
  white-space: pre;
  overflow: hidden;
}
.code .k { color: var(--violet-400); }
.code .s { color: var(--emerald-400); }
.code .c { color: #6A5980; }
.code .f { color: #E4D6FF; }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  padding: 0 26px 26px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  padding: 13px 12px;
  text-align: center;
}
.metric__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--emerald-400);
  line-height: 1.2;
}
.metric__l {
  font-size: 9.6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ================================================== MARQUEE / STATS BAR == */

.statbar {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(61, 11, 91, 0.30), rgba(47, 192, 138, 0.05), rgba(61, 11, 91, 0.30));
}
.statbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.statbar__item {
  padding: 40px 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.statbar__item:first-child { border-left: 0; }
.statbar__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, var(--violet-300) 55%, var(--emerald-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statbar__l {
  margin-top: 6px;
  font-size: 0.83rem;
  color: var(--text-dim);
}

/* ============================================================ SERVICES == */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.service { padding: 32px 30px 34px; display: flex; flex-direction: column; }
.service--featured {
  border-color: rgba(47, 192, 138, 0.34);
  background: linear-gradient(168deg, rgba(47, 192, 138, 0.11), rgba(61, 11, 91, 0.45) 46%, rgba(16, 2, 26, 0.6));
}
.service__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #04231A;
  background: var(--emerald-400);
  padding: 4px 10px;
  border-radius: 99px;
}
.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(155, 92, 255, 0.24), rgba(47, 192, 138, 0.18));
  border: 1px solid var(--line-strong);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service__icon svg { width: 24px; height: 24px; stroke: var(--emerald-400); fill: none; stroke-width: 1.7; }
.card:hover .service__icon { transform: translateY(-3px) scale(1.06); box-shadow: var(--glow-emerald); }
.service p { color: var(--text-muted); font-size: 0.955rem; margin-top: 10px; }
.service__list { margin-top: 20px; display: grid; gap: 9px; }
.service__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.895rem;
  color: var(--text-muted);
}
.service__list svg { width: 15px; height: 15px; flex: none; margin-top: 5px; stroke: var(--emerald-400); fill: none; stroke-width: 2.4; }
.service__price {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.99rem;
  color: #fff;
}
.service__price span { color: var(--text-dim); font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; }

/* ================================================================ WORK == */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filter {
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(61, 11, 91, 0.26);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.28s var(--ease);
}
.filter:hover { color: #fff; border-color: var(--line-strong); }
.filter.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(100deg, var(--violet-600), var(--emerald-600));
  box-shadow: 0 8px 22px rgba(123, 59, 232, 0.3);
}

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-grid .project:nth-child(6n + 1),
.work-grid .project:nth-child(6n + 6) { grid-column: span 2; }

.project {
  cursor: pointer;
  text-align: left;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  animation: rise 0.55s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(150deg, var(--plum-600), var(--plum-800));
}
.project__media img,
.project__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.project:hover .project__media img,
.project:hover .project__media video { transform: scale(1.06); }

.project__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.30;
}
.project__placeholder img { width: 74px; height: 74px; object-fit: contain; }

.project__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 2, 26, 0) 32%, rgba(16, 2, 26, 0.78) 78%, rgba(14, 1, 22, 0.94));
}
.project__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(14, 1, 22, 0.74);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  color: var(--violet-300);
}
.badge--emerald { color: var(--emerald-300); border-color: rgba(47, 192, 138, 0.4); }
.badge svg { width: 11px; height: 11px; }

.project__body { padding: 22px 24px 26px; }
.project__cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-400);
}
.project__title { margin-top: 9px; font-size: 1.22rem; }
.project__summary { margin-top: 9px; font-size: 0.925rem; color: var(--text-muted); }
.project__foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(61, 11, 91, 0.3);
}

.empty {
  grid-column: 1 / -1;
  padding: 64px 28px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--text-dim);
}

/* ============================================================= PROCESS == */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-500), var(--emerald-500), transparent);
  opacity: 0.4;
}
.step { position: relative; padding-top: 0; }
.step__num {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(150deg, var(--plum-600), var(--plum-800));
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.step:hover .step__num {
  transform: translateY(-4px);
  border-color: var(--emerald-500);
  box-shadow: var(--glow-emerald);
}
.step h3 { font-size: 1.1rem; }
.step p { margin-top: 10px; font-size: 0.925rem; color: var(--text-muted); }

/* ======================================================== TESTIMONIALS == */

.quote { padding: 32px 30px; display: flex; flex-direction: column; }
.quote__mark {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.7;
  color: var(--violet-500);
  opacity: 0.45;
  margin-bottom: 14px;
}
.quote__stars { display: flex; gap: 3px; margin-bottom: 16px; }
.quote__stars svg { width: 15px; height: 15px; fill: var(--emerald-400); }
.quote p { font-size: 1.005rem; color: var(--text); line-height: 1.72; flex: 1; }
.quote__who { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  flex: none;
  background: linear-gradient(150deg, var(--violet-600), var(--emerald-600));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.quote__name { font-weight: 600; font-size: 0.955rem; color: #fff; }
.quote__role { font-size: 0.83rem; color: var(--text-dim); }

/* ================================================================= FAQ == */

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(61, 11, 91, 0.24);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq__item.is-open { border-color: var(--line-strong); background: rgba(61, 11, 91, 0.4); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  transition: color 0.25s;
}
.faq__q:hover { color: #fff; }
.faq__icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--emerald-400);
  border-radius: 2px;
}
.faq__icon::before { width: 11px; height: 1.6px; }
.faq__icon::after { width: 1.6px; height: 11px; transition: opacity 0.3s; }
.faq__item.is-open .faq__icon { transform: rotate(90deg); background: rgba(47, 192, 138, 0.14); border-color: var(--emerald-500); }
.faq__item.is-open .faq__icon::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.955rem; }

/* ============================================================== ABOUT === */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 62px; align-items: center; }
.about__body p { color: var(--text-muted); margin-top: 18px; font-size: 1.005rem; }
.about__sig {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--emerald-400);
  font-size: 0.95rem;
}
.about__panel {
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(61, 11, 91, 0.5), rgba(16, 2, 26, 0.72));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about__panel::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  right: -130px; top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 192, 138, 0.2), transparent 68%);
  pointer-events: none;
}
.about__logo { width: 100%; max-width: 300px; margin: 0 auto 28px; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.pointlist { display: grid; gap: 16px; }
.pointlist li { display: flex; gap: 13px; align-items: flex-start; }
.pointlist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: var(--emerald-400); fill: none; stroke-width: 2; }
.pointlist strong { display: block; color: #fff; font-weight: 600; font-size: 0.97rem; }
.pointlist span { font-size: 0.895rem; color: var(--text-muted); }

/* ============================================================ CONTACT === */

.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 54px; align-items: start; }

.contact__cards { display: grid; gap: 12px; margin-top: 34px; }
.contact__card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(61, 11, 91, 0.26);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.contact__card:hover { border-color: var(--line-strong); transform: translateX(4px); background: rgba(61, 11, 91, 0.4); }
.contact__ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex: none;
  background: linear-gradient(140deg, rgba(155, 92, 255, 0.24), rgba(47, 192, 138, 0.18));
  border: 1px solid var(--line-strong);
}
.contact__ico svg { width: 18px; height: 18px; stroke: var(--emerald-400); fill: none; stroke-width: 1.8; }
.contact__label { font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.contact__value { font-weight: 600; color: #fff; font-size: 0.96rem; margin-top: 3px; word-break: break-word; }

.form-panel {
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(61, 11, 91, 0.52), rgba(16, 2, 26, 0.76));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.input, .textarea, .select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 1, 17, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input::placeholder, .textarea::placeholder { color: #6A5980; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--emerald-500);
  background: rgba(10, 1, 17, 0.85);
  box-shadow: 0 0 0 3px rgba(47, 192, 138, 0.14);
}
.textarea { min-height: 142px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FC08A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 40px;
}
.select option { background: #1B0528; color: var(--text); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 14px; text-align: center; }

.alert {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: none;
}
.alert.is-shown { display: block; animation: rise 0.35s var(--ease); }
.alert--ok { background: rgba(47, 192, 138, 0.12); border: 1px solid rgba(47, 192, 138, 0.4); color: var(--emerald-300); }
.alert--err { background: rgba(255, 92, 122, 0.1); border: 1px solid rgba(255, 92, 122, 0.36); color: #FF9BAE; }

/* ================================================================= CTA == */

.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 66px 54px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(123, 59, 232, 0.24), rgba(61, 11, 91, 0.6) 46%, rgba(47, 192, 138, 0.16));
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-band p { color: var(--text-muted); margin: 18px auto 0; max-width: 58ch; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ============================================================== FOOTER == */

.footer { border-top: 1px solid var(--line); padding: 66px 0 34px; margin-top: 40px; background: rgba(16, 2, 26, 0.5); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
.footer__about { max-width: 34ch; color: var(--text-dim); font-size: 0.9rem; margin-top: 18px; }
.footer h4 {
  font-size: 11.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: 0.915rem; color: var(--text-muted); transition: color 0.22s, transform 0.22s var(--ease); display: inline-block; }
.footer__links a:hover { color: var(--emerald-400); transform: translateX(3px); }
.socials { display: flex; gap: 9px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: rgba(61, 11, 91, 0.3);
  transition: all 0.3s var(--ease);
}
.socials a:hover { border-color: var(--emerald-500); background: rgba(47, 192, 138, 0.12); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: var(--text-muted); transition: fill 0.3s; }
.socials a:hover svg { fill: var(--emerald-400); }

.footer__base {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* =============================================================== MODAL == */

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 0, 12, 0.84);
  backdrop-filter: blur(10px);
  animation: fade 0.3s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #26073A, #12021D);
  box-shadow: var(--shadow-lg);
  animation: pop 0.42s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(24px) scale(0.975); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14, 1, 22, 0.8);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  transition: all 0.28s var(--ease);
}
.modal__close svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 2.2; fill: none; }
.modal__close:hover { background: var(--violet-600); transform: rotate(90deg); }

.viewer { position: relative; background: #08010E; }
.viewer__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--plum-600), var(--plum-900));
}
.viewer__stage img, .viewer__stage video { width: 100%; height: 100%; object-fit: contain; background: #08010E; }
.viewer__empty { display: grid; place-items: center; gap: 14px; color: var(--text-dim); opacity: 0.55; }
.viewer__empty img { width: 92px; }

.viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14, 1, 22, 0.76);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  transition: all 0.26s var(--ease);
}
.viewer__nav:hover { background: var(--violet-600); }
.viewer__nav svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.2; fill: none; }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }

.viewer__thumbs {
  display: flex;
  gap: 9px;
  padding: 14px 18px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: rgba(10, 1, 17, 0.7);
}
.thumb {
  position: relative;
  width: 96px;
  height: 60px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid transparent;
  opacity: 0.55;
  transition: all 0.26s var(--ease);
  background: var(--plum-700);
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb.is-active { opacity: 1; border-color: var(--emerald-500); }
.thumb__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 1, 17, 0.42);
}
.thumb__play svg { width: 18px; height: 18px; fill: #fff; }

.modal__body { padding: 36px 40px 40px; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.modal__body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.modal__body .prose { margin-top: 18px; color: var(--text-muted); font-size: 1rem; }
.modal__body .prose p + p { margin-top: 14px; }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.result {
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(61, 11, 91, 0.3);
  text-align: center;
}
.result__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--emerald-400);
}
.result__l { font-size: 0.81rem; color: var(--text-dim); margin-top: 4px; }

.modal__foot {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

/* ================================================= REVEAL ON SCROLL ==== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =============================================================== 404 ==== */

.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}
.notfound__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--violet-400), var(--emerald-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========================================================= RESPONSIVE == */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 54px; }
  .window { transform: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid .project:nth-child(6n + 1),
  .work-grid .project:nth-child(6n + 6) { grid-column: span 2; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .process::before { display: none; }
  .about { grid-template-columns: 1fr; gap: 42px; }
  .contact { grid-template-columns: 1fr; gap: 38px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: rgba(18, 2, 29, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.32s var(--ease);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 13px 16px; border-radius: 12px; font-size: 0.97rem; }
  .nav__link::after { display: none; }
  .nav__link:hover { background: rgba(155, 92, 255, 0.12); }
  .nav__toggle { display: grid; }
  .nav__actions .btn--primary { display: none; }
  .nav.is-mobile-open {
    background: rgba(14, 1, 22, 0.9);
    backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
  }
}

@media (max-width: 760px) {
  .section { padding: 82px 0; }
  .container { padding-inline: 20px; }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .statbar__item:nth-child(3) { border-left: 0; }
  .statbar__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid-3, .grid-2, .work-grid { grid-template-columns: 1fr; }
  .work-grid .project:nth-child(6n + 1),
  .work-grid .project:nth-child(6n + 6) { grid-column: span 1; }
  .process { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-panel, .about__panel { padding: 26px 22px; }
  .cta-band { padding: 46px 26px; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100vh; border-radius: 0; border: 0; }
  .modal__body { padding: 28px 22px 34px; }
  .hero__metrics { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .btn { width: 100%; }
  .hero__cta .btn, .cta-band__btns .btn { width: auto; flex: 1 1 auto; min-width: 200px; }
}
