/* ============================================================
   SMNTHLHR — Monochrome Minimal Portfolio
   Black & white · editorial · heavily animated
   Fonts: Clash Display (display) · Satoshi (body) · JetBrains Mono (labels)
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f4f4;
  --dim: #a3a3a3;
  --mute: #676767;
  --white: #ffffff;
  --black: #000000;
  --font-display: "Clash Display", "Arial Black", sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --nav-h: 74px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

::selection { background: #fff; color: #000; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2b2b2b; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ---------- Film grain overlay ---------- */
.noise {
  position: fixed; inset: -50%; z-index: 2000; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 2100; pointer-events: none;
  mix-blend-mode: difference; border-radius: 50%;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid #fff;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease, background 0.3s ease;
}
.cursor-ring.grow { width: 64px; height: 64px; background: rgba(255,255,255,0.08); }
.cursor-ring.hide, .cursor-dot.hide { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1100; height: 2px; width: 0%;
  background: #fff; pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }

.display-1 { font-size: clamp(2.9rem, 7.5vw, 6rem); }
.display-2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.title-1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.title-2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--dim); font-weight: 300; }

.grad-text { color: var(--text); }

/* Outline text (big display moments) */
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
}
.outline:hover { color: #fff; -webkit-text-stroke-color: transparent; transition: color .3s ease; }

/* Eyebrow: mono index label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--line-strong); }
.eyebrow b { color: var(--text); font-weight: 500; }

/* ---------- Layout ---------- */
.container { width: min(var(--maxw), 90%); margin-inline: auto; }
section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }

.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; }

/* Split-text reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > .c {
  display: inline-block; transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 0.035s);
}
.split.in .w > .c { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
  white-space: nowrap; position: relative;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #cfcfcf; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }
.btn-sm { padding: 12px 22px; font-size: 0.7rem; }

/* Magnetic buttons keep layout stable */
.btn.magnetic { will-change: transform; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}
.brand:hover .brand-mark { background: #fff; color: #000; }
.brand .dot { color: var(--mute); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.07); }

.nav-cta { margin-left: 10px; }

.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 2px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 18px; height: 1.5px; background: #fff; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 950; display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 0 9%;
  background: #060606;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 3rem); font-weight: 600;
  padding: 8px 0; color: #fff; opacity: 0; transform: translateY(26px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: #8a8a8a; }
.mobile-menu a .idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--mute); margin-right: 14px; }
.mobile-menu .socials { margin-top: 26px; display: flex; gap: 12px; opacity: 0; transition: opacity 0.5s ease 0.3s; }
.mobile-menu.open .socials { opacity: 1; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 80px); align-items: center; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 30px;
}
.hero-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 { margin-bottom: 12px; }
.hero .hero-name-line { display: block; }

.rotator-line {
  font-family: var(--font-mono); font-size: clamp(0.95rem, 1.8vw, 1.2rem); font-weight: 400;
  color: var(--dim); min-height: 1.8em; margin-bottom: 28px;
}
.rotator-line .typed { color: #fff; }
.rotator-line .t-cursor { display: inline-block; width: 8px; height: 1.05em; background: #fff; margin-left: 4px; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero p.lead { max-width: 520px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-socials { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-socials .label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--mute); margin-right: 6px; letter-spacing: 0.2em; text-transform: uppercase; }
.social-btn {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 2px;
  display: grid; place-items: center; color: var(--dim);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease);
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover { color: #000; background: #fff; border-color: #fff; transform: translateY(-3px); }

/* Hero visual — portrait */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .frame {
  position: relative; width: min(100%, 440px); aspect-ratio: 4/5; overflow: hidden;
  background: var(--panel);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: transform 1.2s var(--ease); }
.hero-visual:hover .frame img { transform: scale(1.08); }
.hero-visual .frame::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); pointer-events: none;
}
.hero-visual .frame-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
}
.hero-visual .corner { position: absolute; width: 22px; height: 22px; border-color: #fff; border-style: solid; z-index: 3; }
.hero-visual .corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.hero-visual .corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* Floating mono chips */
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border: 1px solid var(--line-strong);
  background: rgba(10, 10, 10, 0.88); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-card .fc-icon { width: 26px; height: 26px; border: 1px solid var(--line); display: grid; place-items: center; color: #fff; }
.float-card .fc-icon svg { width: 13px; height: 13px; }
.float-card small { display: block; font-size: 0.6rem; color: var(--mute); letter-spacing: 0.14em; }
.fc-1 { top: 10%; left: -10%; }
.fc-2 { bottom: 24%; right: -9%; animation-delay: 1.7s; }
.fc-3 { bottom: -5%; left: 4%; animation-delay: 3.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute); z-index: 5;
}
.scroll-hint .line { width: 1px; height: 46px; background: var(--line-strong); overflow: hidden; position: relative; }
.scroll-hint .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: #fff; animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { top: -50%; } 60%, 100% { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); position: relative; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
  padding: 0 34px; white-space: nowrap; display: flex; align-items: center; gap: 34px;
}
.marquee-track span::after { content: "✦"; -webkit-text-stroke: 0; color: #fff; font-size: 0.7em; }
.marquee-track span:hover { color: #fff; -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 34px 24px; text-align: center; background: var(--bg); transition: background 0.3s ease; }
.stat:hover { background: var(--panel); }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: #fff; }
.stat .lbl { margin-top: 8px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }

/* ---------- Cards (services) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.card {
  position: relative; padding: 34px 30px; background: var(--bg);
  transition: background 0.35s ease;
  display: flex; flex-direction: column;
}
.card:hover { background: var(--panel-2); }
.card-icon {
  width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 2px;
  display: grid; place-items: center; color: #fff; margin-bottom: 26px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.card-icon svg { width: 19px; height: 19px; }
.card:hover .card-icon { background: #fff; color: #000; transform: rotate(-6deg); }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--dim); font-size: 0.95rem; font-weight: 300; flex: 1; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); transition: color 0.25s ease;
}
.card .card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.card .card-link:hover { color: #fff; }
.card .card-link:hover svg { transform: translateX(6px); }

.card .idx {
  position: absolute; top: 30px; right: 30px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--mute);
}

/* Project cards */
.project-card { padding: 0; }
.project-card .thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform 0.9s var(--ease), filter 0.6s ease; }
.project-card:hover .thumb img { transform: scale(1.07); filter: grayscale(0) contrast(1); }
.project-card .thumb::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color 0.4s ease; pointer-events: none; }
.project-card:hover .thumb::after { border-color: var(--line-strong); }
.project-card .pbody { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.project-card .pmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--line); color: var(--dim);
}
.chip.accent { color: #fff; border-color: var(--line-strong); }
.chip.violet { color: var(--dim); }

/* Blog cards */
.blog-card { padding: 0; }
.blog-card .thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform 0.9s var(--ease), filter 0.6s ease; }
.blog-card:hover .thumb img { transform: scale(1.06); filter: grayscale(0); }
.blog-card .pbody { padding: 24px 30px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card .pmeta { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.blog-card h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 12px; }
.blog-card h3 a { transition: color 0.25s ease; }
.blog-card h3 a:hover { color: #8f8f8f; }
.blog-card .excerpt { color: var(--dim); font-size: 0.93rem; font-weight: 300; flex: 1; }
.blog-card .card-link { margin-top: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; }
.about-visual .frame { overflow: hidden; aspect-ratio: 4/5; position: relative; }
.about-visual .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about-visual .frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); pointer-events: none; }
.about-visual .badge-exp {
  position: absolute; bottom: 22px; left: -16px; padding: 14px 20px;
  background: #fff; color: #000;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.about-visual .badge-exp .n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; display: block; margin-bottom: 2px; }
.about-visual .badge-exp small { font-size: 0.62rem; letter-spacing: 0.14em; }

.about-body p { color: var(--dim); margin-bottom: 18px; font-weight: 300; }
.about-body strong { color: #fff; font-weight: 500; }
.about-body .tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.about-body .tags li {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line); color: var(--dim);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.about-body .tags li:hover { color: #000; background: #fff; border-color: #fff; }

/* ---------- Photo strip (gallery) ---------- */
.photo-strip { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.photo-strip-track { display: flex; gap: 22px; width: max-content; animation: marquee 46s linear infinite; }
.photo-strip:hover .photo-strip-track { animation-play-state: paused; }
.photo-strip .ps-item { position: relative; width: clamp(220px, 26vw, 320px); aspect-ratio: 4/5; overflow: hidden; flex-shrink: 0; }
.photo-strip .ps-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: transform 0.8s var(--ease), filter 0.5s ease; }
.photo-strip .ps-item:hover img { transform: scale(1.06); filter: grayscale(0); }
.photo-strip .ps-item .ps-cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 16px 12px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  display: flex; justify-content: space-between;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { position: relative; padding: 32px 26px; background: var(--bg); transition: background 0.3s ease; }
.step:hover { background: var(--panel-2); }
.step::before {
  content: "0" counter(step); counter-increment: step;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--mute);
}
.step h4 { margin: 16px 0 10px; font-size: 1.05rem; }
.step p { font-size: 0.88rem; color: var(--dim); font-weight: 300; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; padding: clamp(60px, 9vw, 110px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--line-strong); text-align: center; overflow: hidden;
  background: var(--bg);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255,255,255,0.07), transparent 70%);
}
.cta-banner h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); max-width: 760px; margin: 0 auto 18px; position: relative; z-index: 1; }
.cta-banner p { max-width: 560px; margin: 0 auto 36px; position: relative; z-index: 1; }
.cta-banner .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Article ---------- */
.article-hero { padding: calc(var(--nav-h) + 70px) 0 40px; }
.article-hero .cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.article-hero h1 { max-width: 880px; margin-bottom: 20px; }
.article-hero .ameta { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); flex-wrap: wrap; }
.article-hero .cover { margin-top: 40px; position: relative; overflow: hidden; }
.article-hero .cover img { width: 100%; filter: grayscale(1) contrast(1.04); }
.article-hero .cover::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); pointer-events: none; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body p { color: var(--dim); margin-bottom: 24px; font-size: 1.03rem; font-weight: 300; }
.article-body h2 { font-size: 1.7rem; margin: 48px 0 18px; }
.article-body h3 { font-size: 1.25rem; margin: 32px 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--dim); }
.article-body ul li::before { content: "—"; position: absolute; left: 0; color: #fff; }
.article-body ol { list-style: decimal; color: var(--dim); }
.article-body ol li { margin-bottom: 12px; }
.article-body strong { color: #fff; font-weight: 500; }
.article-body blockquote {
  border-left: 2px solid #fff; padding: 20px 26px; margin: 30px 0;
  background: var(--panel); color: #fff; font-size: 1.1rem; font-style: italic; font-weight: 300;
}
.article-body .tip-box { padding: 22px 26px; margin: 28px 0; border: 1px solid var(--line); background: var(--panel); }
.article-body code { font-family: var(--font-mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 3px; color: #fff; }
.article-body pre { background: #0d0d0d; border: 1px solid var(--line); padding: 24px; overflow-x: auto; margin: 28px 0; }
.article-body pre code { background: none; border: none; padding: 0; color: #cfcfcf; }

.article-nav { max-width: 760px; margin: 64px auto 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.article-nav a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); transition: color 0.25s ease; }
.article-nav a:hover { color: #fff; }
.article-nav .next { text-align: right; }

/* ---------- Services page ---------- */
.service-hero-item .icon-lg { width: 50px; height: 50px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: #fff; margin-bottom: 24px; transition: background 0.3s ease, color 0.3s ease; }
.service-hero-item:hover .icon-lg { background: #fff; color: #000; }
.service-hero-item .icon-lg svg { width: 22px; height: 22px; }
.service-hero-item .feats { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.service-hero-item .feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--dim); font-weight: 300; }
.service-hero-item .feats li svg { width: 15px; height: 15px; color: #fff; flex-shrink: 0; margin-top: 5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 5vw, 80px); align-items: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--dim); font-weight: 300; margin-bottom: 28px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-row .ci { width: 42px; height: 42px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.contact-row .ci svg { width: 18px; height: 18px; }
.contact-row .cl { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.contact-row .cv { font-weight: 400; transition: color 0.25s ease; }
.contact-row a.cv:hover { color: #8f8f8f; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; color: var(--mute); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 16px; border-radius: 2px; color: #fff;
  background: var(--panel); border: 1px solid var(--line); outline: none;
  transition: border-color 0.25s ease, background 0.25s ease; resize: vertical;
  font-weight: 300;
}
.field input:focus, .field textarea:focus { border-color: #fff; background: var(--panel-2); }
.field textarea { min-height: 150px; }
.form-note { font-family: var(--font-mono); font-size: 0.66rem; color: var(--mute); }

/* ---------- 404 ---------- */
.error-page { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 130px 0 80px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 13rem); font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 2px #fff; }
.error-page h1 { margin: 12px 0 16px; }
.error-page p { color: var(--dim); max-width: 440px; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 60px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 20px; }
.footer .f-about p { color: var(--dim); font-size: 0.92rem; font-weight: 300; margin: 18px 0 24px; max-width: 300px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: var(--dim); font-size: 0.92rem; transition: color 0.25s ease; font-weight: 300; }
.footer ul a:hover { color: #fff; }
.footer .socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.footer-bottom .heart { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 2px;
  display: grid; place-items: center; background: rgba(10,10,10,0.85); backdrop-filter: blur(8px);
  color: #fff; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background 0.25s ease, color 0.25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #fff; color: #000; }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-44px); }
.reveal-left.in { transform: translateX(0); }
.reveal-right { transform: translateX(44px); }
.reveal-right.in { transform: translateX(0); }
.reveal-scale { transform: scale(0.96); }
.reveal-scale.in { transform: scale(1); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: #050505;
  transition: transform 0.8s var(--ease), visibility 0.8s;
  flex-direction: column;
}
.preloader.hidden { transform: translateY(-100%); visibility: hidden; }
.pl-mark {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5rem); font-weight: 600;
  color: transparent; -webkit-text-stroke: 1.5px #fff; letter-spacing: 0.02em;
  display: flex; gap: 4px;
}
.pl-mark span { opacity: 0; transform: translateY(30px); animation: plup 0.6s var(--ease) forwards; }
.pl-mark span:nth-child(1) { animation-delay: 0.05s; }
.pl-mark span:nth-child(2) { animation-delay: 0.1s; }
.pl-mark span:nth-child(3) { animation-delay: 0.15s; }
.pl-mark span:nth-child(4) { animation-delay: 0.2s; }
.pl-mark span:nth-child(5) { animation-delay: 0.25s; }
.pl-mark span:nth-child(6) { animation-delay: 0.3s; }
.pl-mark span:nth-child(7) { animation-delay: 0.35s; }
.pl-mark span:nth-child(8) { animation-delay: 0.4s; }
@keyframes plup { to { opacity: 1; transform: translateY(0); } }
.pl-count {
  position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.3em; color: var(--dim);
}
.pl-bar { margin-top: 30px; width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0%; background: #fff; transition: width 0.15s linear; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-visual .frame { width: min(72%, 400px); }
  .fc-1 { left: 2%; } .fc-2 { right: 2%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 440px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .float-card { padding: 9px 13px; font-size: 0.62rem; }
  .fc-1 { top: 6%; left: 0; } .fc-2 { bottom: 18%; right: 0; }
  .about-visual .badge-exp { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .split .w > .c { opacity: 1; transform: none; }
}
/* ============================================================
   Video integration (added, theme-consistent)
   ============================================================ */

/* Hero background video */
.vid-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.vid-bg video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.85);
  transform: scale(1.14); will-change: transform;
}
.hero .vid-bg video { animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1.3); } }
.hero .vid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 90% at 22% 18%, rgba(10,10,10,0.28), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.5) 45%, rgba(10,10,10,0.86) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero .scroll-hint { z-index: 3; }

/* Photo strip video items */
.photo-strip .ps-item video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}
.photo-strip .ps-item:hover video { transform: scale(1.06); filter: grayscale(0); }

/* Full-width video bands */
.vid-band { position: relative; min-height: 74vh; display: flex; align-items: center; overflow: hidden; }
.vid-band-media { position: absolute; inset: -14% 0; z-index: 0; overflow: hidden; }
.vid-band-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.8);
  transform: scale(1.15); will-change: transform;
}
.vid-band-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.42) 50%, rgba(10,10,10,0.92) 100%);
}
.vid-band-cap { position: relative; z-index: 2; max-width: 660px; }
.vid-band-cap.right { margin-left: auto; text-align: right; }
.vid-band-cap p { color: var(--dim); margin-top: 16px; max-width: 520px; }
.vid-band-cap.right p { margin-left: auto; }

@media (max-width: 720px) {
  .vid-band { min-height: 62vh; }
}
