:root {
  --bg: #0a0a0f;
  --bg-2: #0e0e16;
  --surface: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.06);
  --surface-solid: #141420;
  --ink: #e8e8ec;
  --ink-strong: #ffffff;
  --muted: #6b6b80;
  --line: rgba(255,255,255,0.07);
  --accent: #c9a84c;
  --accent-2: #6e8efb;
  --accent-3: #4ecdc4;
  --glow-accent: rgba(201,168,76,0.15);
  --glow-blue: rgba(110,142,251,0.12);
  --shadow: 0 24px 64px rgba(0,0,0,0.4);
  --shadow-sm: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max: 1180px;
  --header-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }

/* ═══════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleReveal {
  from { opacity: 0; transform: scale(0.85); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes clipRevealLeft {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes clipRevealRight {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes clipRevealUp {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes drawLine {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes slideInStagger {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes unfold {
  from { opacity: 0; transform: perspective(1000px) rotateX(8deg) translateY(30px); }
  to { opacity: 1; transform: perspective(1000px) rotateX(0) translateY(0); }
}
@keyframes splitOpen {
  from { opacity: 0; transform: scaleY(0.6) translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: scaleY(1) translateY(0); filter: blur(0); }
}
@keyframes heroTextReveal {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.1); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -10px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.15); }
  66% { transform: translate(20px, -30px) scale(0.9); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 8px 24px rgba(201,168,76,.2); }
  50% { transform: scale(1.03); box-shadow: 0 12px 32px rgba(201,168,76,.4); }
  100% { transform: scale(1); box-shadow: 0 8px 24px rgba(201,168,76,.2); }
}

/* ═══════════════════════════════════════════
   REVEAL SYSTEM - Scroll-Driven Animations
   ═══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transition: none;
}
.reveal.is-visible {
  opacity: 1;
}

/* Type-specific reveals */
.reveal--up {
  opacity: 0;
  transform: translateY(60px);
}
.reveal--up.is-visible {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal--left {
  opacity: 0;
  transform: translateX(-60px);
}
.reveal--left.is-visible {
  animation: fadeLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal--right {
  opacity: 0;
  transform: translateX(60px);
}
.reveal--right.is-visible {
  animation: fadeRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.85);
  filter: blur(8px);
}
.reveal--scale.is-visible {
  animation: scaleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal--unfold {
  opacity: 0;
  transform: perspective(1000px) rotateX(8deg) translateY(30px);
}
.reveal--unfold.is-visible {
  animation: unfold 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal--clip-left {
  clip-path: inset(0 100% 0 0);
}
.reveal--clip-left.is-visible {
  animation: clipRevealLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal--clip-up {
  clip-path: inset(100% 0 0 0);
}
.reveal--clip-up.is-visible {
  animation: clipRevealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal--split {
  opacity: 0;
  transform: scaleY(0.6) translateY(20px);
  filter: blur(4px);
}
.reveal--split.is-visible {
  animation: splitOpen 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger children */
.stagger-children.is-visible > * {
  animation: slideInStagger 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-children.is-visible > *:nth-child(1) { animation-delay: 0s; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(6) { animation-delay: 0.5s; }

/* SVG icon draw animation */
.icon-draw path,
.icon-draw line,
.icon-draw circle,
.icon-draw polyline,
.icon-draw rect {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-visible .icon-draw path,
.is-visible .icon-draw line,
.is-visible .icon-draw circle,
.is-visible .icon-draw polyline,
.is-visible .icon-draw rect {
  stroke-dashoffset: 0;
}

/* ═══════════════════════════════════════════
   BACKGROUND ORBS (Ambient Light)
   ═══════════════════════════════════════════ */

.bg-orbs {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}
.bg-orb--1 {
  width: 600px; height: 600px;
  background: var(--glow-accent);
  top: -200px; right: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}
.bg-orb--2 {
  width: 500px; height: 500px;
  background: var(--glow-blue);
  bottom: -100px; left: -200px;
  animation: orbFloat2 25s ease-in-out infinite;
}
.bg-orb--3 {
  width: 400px; height: 400px;
  background: rgba(78,205,196,0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat1 30s ease-in-out infinite reverse;
}

/* ═══════════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════════ */

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  pointer-events: none;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.brand:hover img {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow-accent);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 30px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--ink-strong);
  background: rgba(255,255,255,0.04);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.nav-links a:hover::after {
  left: 16px; right: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-external-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-actions a.nav-external {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nav-actions a.nav-external[href*="post"] {
  background: var(--accent);
  color: var(--bg) !important;
  border: 1px solid var(--accent);
}
.nav-actions a.nav-external[href*="post"]:hover {
  background: var(--ink-strong) !important;
  border-color: var(--ink-strong) !important;
  color: var(--bg) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.2);
}
.nav-actions a.nav-external[href*="admin"] {
  background: transparent;
  color: var(--muted) !important;
  border: 1px solid var(--line);
}
.nav-actions a.nav-external[href*="admin"]:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.nav-divider {
  width: 1px; height: 18px;
  background: var(--line);
  margin: 0 4px;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  padding: 3px;
  gap: 3px;
}
.lang-switch button {
  min-width: 40px;
  min-height: 32px;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}
.lang-switch button:hover:not([aria-pressed="true"]) {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  width: 48px; height: 48px;
  position: relative;
  z-index: 101;
}
.hamburger {
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 2px;
  background: var(--ink-strong);
  transition: background 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--ink-strong);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger::before { transform: translateY(-7px); }
.hamburger::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(0) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.nav-overlay:not(.is-active) { pointer-events: none !important; }
.nav-overlay.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* Language switching fade */
#main {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
#main.is-language-switching {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.section-pad {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-head {
  margin-bottom: 48px;
}
.inline-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink-strong);
}
h2 {
  max-width: 780px;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--ink-strong);
}
h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-strong);
}

/* Section divider line */
.section-line {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  border: 1px solid var(--accent);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover::before { opacity: 1; }

.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(201,168,76,.2);
}
.btn.primary:hover {
  background: var(--ink-strong);
  color: var(--bg);
  border-color: var(--ink-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201,168,76,.3);
}
.btn.primary:active {
  transform: scale(0.97);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.btn.ghost:active { transform: scale(0.97); }

.pulse-btn {
  animation: pulseButton 2.5s infinite;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-top: 48px;
}

.hero-copy {
  position: relative;
  padding: 28px 0;
  animation: heroTextReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-copy .eyebrow {
  animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-copy h1 {
  animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  background: linear-gradient(135deg, var(--ink-strong) 0%, var(--accent) 54%, var(--accent-2) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both, gradientShift 8s ease infinite;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 42px 0 0;
  animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}
.hero-stats div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  position: relative;
}
.hero-stats div::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--accent);
}
.hero-stats dt {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink-strong);
}
.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero visual */
.hero-visual {
  display: grid;
  gap: 14px;
  animation: scaleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.signal-row span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: all 0.4s ease;
}
.signal-row span:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(110,142,251,0.16));
  color: var(--ink-strong);
  border-color: rgba(201,168,76,0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.14);
}

.screen-preview {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(201,168,76,0.16), transparent 40%), var(--surface-solid);
  box-shadow: 0 20px 60px rgba(0,0,0,0.42);
  animation: softFloat 8s ease-in-out infinite;
}
.screen-preview img {
  width: 100%; height: 100%;
  min-height: 480px;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.screen-preview:hover img { opacity: 0.88; transform: scale(1.03); }

.preview-copy {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(9, 10, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
}
.preview-copy strong {
  font-size: 22px;
  color: var(--ink-strong);
}
.preview-copy span { color: var(--muted); font-size: 14px; }

/* ═══════════════════════════════════════════
   TRUST STRIP
   ═══════════════════════════════════════════ */

.trust-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.trust-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid var(--line);
  transition: all 0.4s ease;
}
.trust-strip span:last-child { border-right: 0; }
.trust-strip span:hover {
  background: rgba(201,168,76,0.05);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   INFO CARDS (About, Skills)
   ═══════════════════════════════════════════ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.info-card {
  min-height: 280px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.info-card:hover::before {
  transform: scaleX(1);
}
.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 40px var(--glow-accent);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.12);
  color: var(--accent);
  transition: all 0.4s ease;
}
.info-card:hover .card-icon {
  background: rgba(201,168,76,0.15);
  box-shadow: 0 0 24px var(--glow-accent);
  transform: scale(1.05);
}
.card-icon svg {
  width: 28px; height: 28px;
}

/* Legacy card-mark support */
.card-mark {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 28px;
  border-radius: 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 17px;
}

.info-card p,
details p,
.contact-copy p,
.site-footer span {
  color: var(--muted);
  line-height: 1.7;
}
.info-card h3 { margin-bottom: 12px; }

/* ═══════════════════════════════════════════
   WORK / PORTFOLIO CARDS
   ═══════════════════════════════════════════ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.work-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover {
  transform: translateY(-10px);
  border-color: rgba(110,142,251,0.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 40px var(--glow-blue);
}
.work-card img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  background: var(--surface-solid);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.work-card:hover img {
  transform: scale(1.06);
}
.work-card .card-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 20px;
  flex: 1 1 auto;
}
.work-card .eyebrow {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.work-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.work-card .card-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.work-card span { color: var(--muted); }
.work-card .card-link {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.work-card .card-link:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-accent);
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 0 52px;
}
.carousel-grid {
  display: flex !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 4px 4px 32px 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-grid::-webkit-scrollbar { display: none; }
.carousel-grid .work-card {
  min-width: 300px;
  max-width: 340px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  pointer-events: auto;
}
.carousel-controls {
  position: absolute;
  left: 0; right: 0;
  top: calc(50% + 20px);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
}
.carousel-controls.is-hidden { display: none; }
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  font-weight: bold;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px var(--glow-accent);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state h3 { max-width: 620px; }
.empty-state span { max-width: 720px; color: var(--muted); }

/* ═══════════════════════════════════════════
   PROCESS / EXPERIENCE (Timeline)
   ═══════════════════════════════════════════ */

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
  position: relative;
}
/* Vertical timeline line */
.process-list::before {
  content: '';
  position: absolute;
  left: 42px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-list.timeline-drawn::before {
  transform: scaleY(1);
}

.process-list li {
  counter-increment: process;
  display: grid;
  grid-template-columns: 86px 200px 1fr;
  align-items: center;
  gap: 18px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: all 0.4s ease;
}
.process-list li:last-child { border-bottom: 0; }
.process-list li:hover {
  background: rgba(201,168,76,0.02);
}

.process-list li::before {
  content: "0" counter(process);
  color: var(--accent);
  font-weight: 950;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 2;
}
.process-list strong {
  font-size: 20px;
  color: var(--ink-strong);
}
.process-list span { color: var(--muted); }

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */

.faq-grid {
  position: relative;
  z-index: 20;
  display: grid;
  gap: 12px;
}

details {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
details[open] {
  border-color: rgba(201,168,76,0.15);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 0 24px var(--glow-accent);
}

summary {
  position: relative;
  z-index: 3;
  padding: 24px 28px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  touch-action: manipulation;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  outline: none;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 16px;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details[open] summary {
  color: var(--accent);
}
details p {
  padding: 0 28px 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.contact-lines a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}
.contact-lines a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.contact-lines a:hover::after { width: 100%; }
.contact-lines a:hover { color: var(--ink-strong); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.full { grid-column: 1 / -1; }

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--ink-strong);
  padding: 14px 18px;
  outline: 0;
  font-size: 15px;
  transition: all 0.4s ease;
}
textarea { resize: vertical; }
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  background: rgba(201,168,76,0.03);
  box-shadow: 0 0 0 4px rgba(201,168,76,.08), 0 8px 24px rgba(0,0,0,0.2);
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b80' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
select option {
  background: #13131a;
  color: #f5f5f7;
}
input { cursor: text; }
textarea { cursor: text; }

.form-status {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  height: 0;
  overflow: hidden;
}
.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
  height: auto;
}
.form-status.is-success { background-color: var(--accent-3); color: var(--bg); }
.form-status.is-error { background-color: #e54d42; color: white; }
.form-status.is-sending { background-color: var(--accent-2); color: white; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.site-footer div:first-child { display: grid; gap: 6px; }
.site-footer strong { color: var(--ink-strong); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   OVERLAYS & MODALS
   ═══════════════════════════════════════════ */

.form-feedback-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}
.form-feedback-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.feedback-content {
  max-width: 440px;
  padding: 48px 32px;
  background: var(--surface-solid);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: scaleReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.feedback-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--ink-strong);
}
.feedback-content p { color: var(--muted); margin: 0; font-size: 16px; }
.feedback-content.is-success h3 { color: var(--accent-3); }
.feedback-content.is-error h3 { color: #e54d42; }

.icon-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

/* ═══════════════════════════════════════════
   ADMIN / LOGIN / POST PAGES
   ═══════════════════════════════════════════ */

.admin-body,
.login-body,
.post-body {
  min-height: 100svh;
}
.admin-main,
.login-main,
.post-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
  align-items: start;
}
.admin-panel,
.login-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.admin-panel h2,
.login-panel h1 {
  margin: 0 0 16px;
  font-size: 28px;
  color: var(--ink-strong);
}
.admin-form { display: grid; gap: 12px; }
.admin-subpanel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}
.admin-subpanel h3 { margin: 0; }
.admin-subpanel p { margin: 0; color: var(--muted); }
.admin-form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-list { display: grid; gap: 10px; }
.admin-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255,255,255,0.02);
}
.admin-item h3 { font-size: 18px; margin-bottom: 4px; }
.admin-item p { margin: 6px 0; color: var(--muted); }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.image-preview {
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-weight: 800;
}
.image-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.small-btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
}
.small-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.small-btn:active { transform: scale(0.96); }
.small-btn.danger {
  border-color: rgba(229,77,66,0.3);
  color: #e54d42;
}
.small-btn.danger:hover {
  background: #e54d42;
  color: #fff;
}

.login-panel {
  max-width: 520px;
  margin: 7vh auto 0;
}
.login-panel .btn {
  width: 100%;
  margin-top: 12px;
}

/* Post article */
.post-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 64px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.post-back-link {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.3s ease;
}
.post-back-link:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.post-article .eyebrow { text-align: center; margin-bottom: 24px; }
.post-article img.hero-image {
  width: calc(100% + 128px);
  max-width: none;
  margin: 32px 0 32px -64px;
  max-height: 580px;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.post-article h1 {
  font-size: clamp(38px, 5vw, 62px);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.post-meta {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}
.post-content {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
}
.post-content p { color: var(--ink); }
.post-content h2 {
  margin: 48px 0 16px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.01em;
}
.post-content ul { display: grid; gap: 12px; padding-left: 24px; }
.post-content a {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.post-custom-html { margin-top: 40px; }
.post-custom-html > *:first-child { margin-top: 0; }
.post-custom-html > *:last-child { margin-bottom: 0; }

.blog-custom-block {
  display: grid;
  gap: 16px;
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.blog-custom-kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.blog-custom-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}
.blog-custom-text {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
.blog-custom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.blog-custom-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}
.blog-custom-panel strong { color: var(--ink-strong); font-size: 17px; line-height: 1.3; }
.blog-custom-panel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.blog-custom-callout {
  margin: 8px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(201,168,76,0.05);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 700;
}
.blog-custom-link {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.3s ease;
}
.blog-custom-link:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Blog/work grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
}
.pagination-controls { display: flex; }

/* Preview grid (hero) */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.preview-grid a {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.preview-grid a:first-child { background: var(--accent); }
.preview-grid a:last-child { background: var(--accent-2); }

/* Search container (post page) */
.search-container input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 8px 32px rgba(201,168,76,0.12) !important;
  outline: none;
}

/* Google Translate hide */
.goog-te-banner-frame,
#goog-te-menu-frame,
#goog-te-menu-window,
.skiptranslate.goog-te-gadget { display: none !important; }
body { top: 0 !important; }

/* Content visibility */
.services,
.work,
.process,
.faq,
.contact,
.attention {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

/* ═══════════════════════════════════════════
   RESPONSIVE - TABLET
   ═══════════════════════════════════════════ */

@media (max-width: 980px) {
  .site-header {
    position: fixed;
    width: 100%; top: 0; left: 0;
    z-index: 9999;
  }
  #main { margin-top: 86px; }
  .nav-shell { grid-template-columns: auto auto; }
  .nav-toggle { display: block; justify-self: end; }

  .nav-menu {
    position: fixed;
    top: 86px;
    left: 12px; right: 12px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    z-index: 100;
    opacity: 0; visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
  }
  .nav-menu:not(.is-open) { pointer-events: none !important; }
  .nav-menu.is-open {
    opacity: 1; visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links,
  .nav-actions {
    display: flex;
    flex-direction: column;
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    background: transparent;
    padding: 24px;
    gap: 12px;
  }
  .nav-links {
    text-align: center;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-links a {
    font-size: 17px;
    padding: 12px;
    justify-content: center;
  }
  .nav-links a::after { display: none; }
  .nav-actions .nav-external-wrapper {
    width: 100%;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    display: flex;
  }
  .nav-actions .nav-external-wrapper a.nav-external {
    font-size: 14px;
    padding: 8px 16px;
    min-height: 38px;
    flex: 1;
    max-width: 140px;
  }
  .nav-actions {
    align-items: center;
    padding-top: 16px;
  }
  .nav-actions #pushSubscribeBtn {
    width: min(100%, 280px) !important;
    min-height: 44px !important;
    display: inline-flex !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    white-space: nowrap;
  }

  .hero,
  .contact,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .work-grid,
  .service-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip span:nth-child(2) { border-right: 0; }
  .trust-strip span { border-bottom: 1px solid var(--line); }
  .trust-strip span:nth-child(n+3) { border-bottom: 0; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE - MOBILE
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .section-pad { padding: 72px 0; }
  .hero { padding-top: 24px; gap: 32px; }

  .hero-stats,
  .signal-row,
  .preview-grid,
  .work-grid,
  .service-grid,
  .faq-grid,
  .contact-form,
  .admin-form .two {
    grid-template-columns: 1fr;
  }
  .screen-preview,
  .screen-preview img {
    min-height: 340px;
  }
  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 70px;
  }
  .process-list li::before {
    position: absolute;
    left: 16px;
  }
  .inline-head {
    display: grid;
    align-items: start;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-links { justify-content: center; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-strip span:last-child { border-bottom: 0; }

  .hero-copy h1 {
    -webkit-text-fill-color: var(--ink-strong);
    background: none;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    padding: 0;
    overflow: hidden;
  }
  .carousel-controls {
    display: flex !important;
    pointer-events: auto !important;
    position: static !important;
    transform: none !important;
    margin-top: 24px !important;
    justify-content: center !important;
    gap: 16px !important;
    z-index: 20;
  }
  .carousel-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding: 4px 4px 12px !important;
    touch-action: pan-y pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-grid .work-card {
    width: min(86vw, 340px) !important;
    min-width: min(86vw, 340px) !important;
    max-width: min(86vw, 340px) !important;
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }
  .carousel-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    pointer-events: auto;
    opacity: 1 !important;
  }
  .carousel-btn:disabled,
  .carousel-btn:disabled:hover {
    display: none !important;
  }

  .post-article {
    padding: 32px 24px;
    border-radius: var(--radius);
  }
  .post-article img.hero-image {
    width: calc(100% + 48px);
    margin: 24px 0 24px -24px;
  }
  .blog-custom-block { padding: 18px; }
  .blog-custom-grid { grid-template-columns: 1fr; }
}

@media (min-width: 992px) {
  .masonry-grid .work-card:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
  .masonry-grid .work-card:nth-child(6n + 4) { grid-column: span 1; grid-row: span 2; }
  .masonry-grid .work-card:nth-child(6n + 5) { grid-column: span 2; grid-row: span 1; }
  .masonry-grid .work-card:nth-child(6n + 6) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 991px) and (min-width: 641px) {
  .masonry-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .masonry-grid .work-card:nth-child(4n + 1) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .masonry-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

/* ═══════════════════════════════════════════
   TOUCH DEVICE OVERRIDES
   ═══════════════════════════════════════════ */

@media (hover: none), (pointer: coarse) {
  .info-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .info-card:hover::before { transform: scaleX(0) !important; }
  .work-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .work-card:hover img { transform: none !important; }
  .signal-row span:hover {
    background: var(--surface) !important;
    color: var(--muted) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .trust-strip span:hover {
    background: transparent !important;
    color: var(--muted) !important;
  }
  .btn:hover { transform: none !important; }
  .btn.ghost:hover {
    transform: none !important;
    background: transparent !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
  }
  .btn.primary:hover {
    background: var(--accent) !important;
    color: var(--bg) !important;
  }
  .btn:active { transform: scale(0.97) !important; }
  .nav-links a:hover {
    transform: none !important;
    background: transparent !important;
  }
  .nav-links a::after { display: none !important; }
  .card-link:hover { transform: none !important; }
  details:hover { box-shadow: none !important; }
  a, button, summary, .info-card, details, .lang-switch button, .btn, .card-link, input, textarea, select, label {
    touch-action: manipulation;
  }
  * { -webkit-tap-highlight-color: transparent; }
  .trust-strip span,
  .signal-row span,
  .hero-stats dt,
  .hero-stats dd,
  .card-mark,
  .eyebrow,
  .process-list li::before {
    user-select: none;
    -webkit-user-select: none;
  }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal--up, .reveal--left, .reveal--right,
  .reveal--scale, .reveal--unfold, .reveal--clip-left,
  .reveal--clip-up, .reveal--split {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
  .bg-orb { display: none; }
}

/* ═══════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════ */

.not-found {
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100svh - 210px);
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
}
.not-found-code {
  display: inline-grid;
  place-items: center;
  width: 92px; height: 92px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-size: 28px;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}
.not-found h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 78px);
}
.not-found p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.not-found-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.not-found-panel a {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
}
.not-found-panel a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--glow-accent);
}
.not-found-panel strong { font-size: 17px; color: var(--ink-strong); }
.not-found-panel span { color: var(--muted); font-size: 14px; }

@media (max-width: 780px) {
  .not-found {
    grid-template-columns: 1fr;
    padding: 52px 0;
  }
  .not-found-actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════
   UX ENGAGEMENT FEATURES
   ═══════════════════════════════════════════ */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
  box-shadow: 0 0 10px var(--glow-accent);
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  margin-left: 4px;
  vertical-align: baseline;
  color: var(--accent);
  animation: blinkCursor 0.8s infinite;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typewriter-text {
  color: var(--ink-strong);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

/* Magnetic Hover Transitions */
.magnetic-btn, .work-card {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
.work-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  z-index: 10;
}

/* Premium Contact Form */
.form-premium {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 20px;
}
.form-line {
  position: relative;
  display: flex;
  flex-direction: column;
}
.form-line input,
.form-line select,
.form-line textarea {
  background: transparent !important;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink-strong);
  padding: 12px 0;
  font-size: 18px;
  transition: border-color 0.4s ease;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-line select {
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23c9a84c" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"></path></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 18px !important;
  padding-right: 36px;
}
.form-line input,
.form-line textarea {
  cursor: text;
}
.form-line select option {
  color: #f5f5f7;
  background: #11111a;
  padding: 12px;
}
.form-line textarea {
  resize: vertical;
  min-height: 40px;
}
.form-line input:focus,
.form-line select:focus,
.form-line textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.form-line label {
  position: absolute;
  top: 14px;
  left: 0;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 0 0;
}
.form-line input:focus ~ label,
.form-line input:not(:placeholder-shown) ~ label,
.form-line textarea:focus ~ label,
.form-line textarea:not(:placeholder-shown) ~ label,
.form-line select ~ label {
  transform: translateY(-24px) scale(0.75);
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.premium-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  padding: 0;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  align-self: flex-start;
}
.premium-submit svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-submit:hover {
  color: var(--ink-strong);
}
.premium-submit:hover svg {
  transform: translateX(8px);
}

/* Premium Typography Links */
.premium-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.4s ease;
}
.premium-link svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent);
}
.premium-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-link:hover::after {
  width: 100%;
}
.premium-link:hover svg {
  transform: translateX(6px) translateY(-6px);
}
.premium-link.outline {
  color: var(--muted);
}
.premium-link.outline::after {
  background: var(--muted);
}
.premium-link.outline:hover {
  color: var(--ink-strong);
}

/* Ultra-Premium Discovery Hero Link */
.hero-discovery {
  margin-top: 24px;
}
.discovery-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-strong);
  position: relative;
  padding: 16px 0;
  overflow: hidden;
}
.discovery-text {
  position: relative;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.discovery-arrow {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 1px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.discovery-arrow svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  transform: translateX(12px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.discovery-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.1), transparent);
  transition: transform 0.8s ease;
  z-index: 1;
}
.discovery-link:hover .discovery-text {
  transform: translateX(8px);
}
.discovery-link:hover .discovery-arrow {
  width: 80px;
  transform: translateX(8px);
}
.discovery-link:hover .discovery-arrow svg {
  transform: translateX(18px);
}
.discovery-link:hover::before {
  transform: translateX(200%);
}

/* Modern header, blog and admin refresh */
:root {
  --header-h: 72px;
}

h1,
h2,
h3,
.eyebrow,
.btn,
.small-btn,
.brand,
.nav-links a,
.nav-actions a.nav-external,
.lang-switch button,
.post-meta {
  letter-spacing: 0;
}

.site-header {
  background:
    linear-gradient(180deg, rgba(10,10,15,0.92), rgba(10,10,15,0.74)),
    rgba(10,10,15,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.nav-shell {
  min-height: var(--header-h);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
}

.brand {
  min-width: 0;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  border-color: rgba(255,255,255,0.1);
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand img {
  border-radius: 8px;
}

.nav-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.nav-links {
  width: max-content;
  max-width: 100%;
  justify-self: center;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.nav-links a {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 6px;
  color: rgba(232,232,236,0.72);
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-strong);
  background: rgba(255,255,255,0.08);
  outline: none;
}

/* --- PREMIUM DESKTOP HEADER REDESIGN --- */
@media (min-width: 992px) {
  .site-header {
    background: rgba(8, 10, 15, 0.6) !important;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    box-shadow: none !important;
  }
  
  .brand {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 16px;
  }
  .brand img {
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    filter: drop-shadow(0 4px 12px rgba(201,168,76,0.15));
  }
  .brand span {
    font-size: 20px;
    letter-spacing: -0.01em;
    font-weight: 700;
  }

  .nav-links {
    background: transparent !important;
    border: none !important;
    gap: 32px !important;
    padding: 0 !important;
  }
  .nav-links a {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    color: var(--muted) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    position: relative;
    min-height: auto !important;
  }
  .nav-links a:hover {
    color: var(--ink-strong) !important;
    background: transparent !important;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    display: block !important;
  }
  .nav-links a:hover::after {
    width: 100%;
  }

  .nav-actions {
    gap: 24px;
  }
  
  .nav-actions a.nav-external[href*="post"] {
    background: rgba(201,168,76, 0.1) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(201,168,76, 0.3) !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
  }
  .nav-actions a.nav-external[href*="post"]:hover {
    background: var(--accent) !important;
    color: var(--bg) !important;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3) !important;
  }
  
  .nav-actions a.nav-external[href*="admin"] {
    background: transparent !important;
    color: var(--muted) !important;
    border: none !important;
    padding: 10px 0 !important;
  }
  .nav-actions a.nav-external[href*="admin"]:hover {
    color: var(--ink-strong) !important;
    background: transparent !important;
  }

  .lang-switch {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 6px !important;
    padding: 2px !important;
  }
  .lang-switch button {
    border-radius: 4px !important;
    min-width: 36px !important;
    min-height: 28px !important;
  }
}

.nav-links a::after {
  display: none;
}

.nav-actions {
  justify-content: end;
  gap: 10px;
}

.nav-actions a.nav-external,
.nav-actions .small-btn,
.nav-actions #pushSubscribeBtn {
  min-height: 38px;
  border-radius: 8px !important;
  font-weight: 800;
}

.nav-actions a.nav-external[href*="post"] {
  background: linear-gradient(135deg, var(--accent), #e8cf7a);
  color: #0a0a0f !important;
  border-color: rgba(255,255,255,0.12);
}

.nav-actions a.nav-external[href*="admin"],
.nav-actions .small-btn {
  background: rgba(255,255,255,0.035);
  color: var(--ink) !important;
  border-color: rgba(255,255,255,0.1);
}

.lang-switch {
  border-radius: 8px;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
}

.lang-switch button {
  border-radius: 6px;
}

.work-card,
.admin-panel,
.login-panel,
.admin-item,
.post-article {
  border-radius: 8px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.work-card .card-details {
  min-height: 220px;
}

.work-card h3,
.work-card .card-excerpt,
.admin-item h3,
.admin-item p,
.post-article h1,
.post-content,
.post-custom-html {
  overflow-wrap: anywhere;
}

.blog-grid .work-card img,
.blog-grid .card-placeholder {
  aspect-ratio: 16 / 10;
}

.admin-main .section-head h1 {
  max-width: 780px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.admin-main .inline-head {
  align-items: start;
}

.admin-panel {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
}

.admin-form {
  gap: 14px;
}

.admin-form label {
  color: rgba(232,232,236,0.78);
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  border-color: rgba(255,255,255,0.1);
  background-color: #101018;
  color: var(--ink-strong);
}

.admin-body input::placeholder,
.admin-body textarea::placeholder {
  color: rgba(232,232,236,0.42);
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  background-color: #12121d;
}

.admin-body .image-preview {
  border-color: rgba(255,255,255,0.14);
  background: #101018;
}

.post-article {
  max-width: 880px;
  padding: 56px;
}

.post-article .eyebrow {
  margin-bottom: 20px;
}

.post-article h1 {
  max-width: none;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
  hyphens: auto;
}

.post-meta {
  line-height: 1.55;
}

.post-content {
  font-size: 18px;
  line-height: 1.78;
}

.post-content img,
.post-content video,
.post-content iframe,
.post-content table,
.post-content pre,
.post-custom-html img,
.post-custom-html video,
.post-custom-html iframe,
.post-custom-html table,
.post-custom-html pre {
  max-width: 100%;
}

.post-content pre,
.post-custom-html pre {
  overflow-x: auto;
}

@media (max-width: 980px) {
  .site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
  }

  #main {
    margin-top: calc(var(--header-h) + 14px);
  }

  body.post-body .post-main,
  body.admin-body .admin-main,
  body.login-body .login-main {
    padding-top: calc(var(--header-h) + 28px);
  }

  .nav-shell {
    width: min(var(--max), calc(100% - 24px));
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand span {
    max-width: 56vw;
    white-space: nowrap;
  }

  .nav-toggle {
    display: grid !important;
    place-items: center;
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
    width: 46px;
    height: 46px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10001;
  }

  .nav-toggle .hamburger,
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    background: #0a0a0f !important;
  }

  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent !important;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100svh - var(--header-h) - 24px);
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(16,16,24,0.96);
    box-shadow: 0 28px 80px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    padding: 10px;
    border: 0;
    background: transparent;
    gap: 8px;
  }

  .nav-links {
    display: grid;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a,
  .nav-actions a.nav-external,
  .nav-actions .small-btn,
  .nav-actions #pushSubscribeBtn {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  .nav-actions .nav-external-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
    margin: 0;
  }

  .lang-switch {
    width: 100%;
  }

  .admin-main .section-head h1 {
    font-size: 38px;
  }

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

  .post-article {
    padding: 42px 36px;
  }

  .post-article h1 {
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  .brand {
    padding-right: 8px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span {
    max-width: 48vw;
    font-size: 15px;
  }

  .nav-actions .nav-external-wrapper {
    grid-template-columns: 1fr;
  }

  .admin-main .section-head h1 {
    font-size: 32px;
  }

  .admin-panel {
    padding: 16px;
  }

  .post-article {
    padding: 28px 18px;
  }

  .post-article .eyebrow,
  .post-meta {
    text-align: left;
  }

  .post-article h1 {
    font-size: 32px;
    text-align: left;
  }

  .post-back-link {
    width: 100%;
    justify-content: center;
  }

  .post-content {
    font-size: 16px;
  }
}
