/* ============================================
   ALEKSANDRA RISTIC - PORTFOLIO
   Modern Senior Graphic Designer Website
   ============================================ */

:root {
  --bg: #0f0f0f;
  --bg-light: #1a1a1a;
  --bg-card: #222222;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #e85d04;
  --accent-2: #9b5de5;
  --accent-soft: rgba(232, 93, 4, 0.15);
  --border: #333333;
  --success: #00c853;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 40px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: #ff6b1a;
  transform: translateY(-2px);
}

.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,93,4,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #ff6b1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232,93,4,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ========== SECTION COMMON ========== */
section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.1rem;
}

/* ========== WORK / PROJECTS ========== */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -28px 0 32px;
}

.work-filters button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.work-filters button.is-active,
.work-filters button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card.wide {
  grid-column: 1 / -1;
}

.project-card[hidden] {
  display: none;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #444;
  box-shadow: var(--shadow);
}

.project-card:has(video),
.project-card:has(video):hover {
  transform: none;
}

.project-image {
  aspect-ratio: 16/10;
  background: #efe8dc;
  position: relative;
  overflow: hidden;
}

.project-card.wide .project-image {
  aspect-ratio: 2.2 / 1;
}

.project-image > img {
  position: absolute;
  inset: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-image > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:has(.am-hero) .project-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.project-image > video.am-hero {
  position: static;
  width: auto;
  height: 54%;
  max-width: 54%;
  object-fit: contain;
}

.project-dialog.is-branding .dialog-hero figure:has(.am-hero) {
  background: #fff;
}

.project-dialog.is-branding .dialog-hero video.am-hero {
  position: static;
  width: min(100%, 260px);
  height: auto;
  max-height: none;
  object-fit: contain;
  clip-path: none;
  background: #fff;
}

.project-card:has(.lf-hero) .project-image {
  background: #fff;
}

.project-image > video.lf-hero {
  object-fit: cover;
  background: #fff;
  clip-path: inset(10.5% 0 10.6% 0);
}

.project-dialog.is-branding .dialog-hero figure:has(.lf-hero) {
  background: #fff;
}

.project-dialog.is-branding .dialog-hero video.lf-hero {
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  clip-path: none;
  background: #fff;
}

.project-card.kz .project-image:has(> video) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.project-card.kz .project-image > video {
  position: static;
  width: auto;
  height: 78%;
  max-width: 78%;
  object-fit: contain;
  transform: none;
  clip-path: inset(3.8% 0 3.9% 0);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image img,
.project-image .board {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board {
  position: absolute;
  inset: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .board {
  transform: scale(1.03);
}

.kz-lockup {
  background: #fff;
  display: grid;
  place-items: center;
}

.kz-lockup img {
  position: static;
  width: min(74%, 760px);
  height: auto;
  object-fit: contain;
}

.project-card:hover .kz-lockup img {
  transform: none;
}

.project-info {
  padding: 24px;
}

.project-category {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== PROJECT OVERLAY ========== */
.project-dialog {
  width: min(1080px, calc(100% - 32px));
  max-height: min(920px, calc(100vh - 32px));
  margin: auto;
  padding: 0 0 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #121212;
  color: var(--text);
  overflow: auto;
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
}

.dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.86);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.dialog-hero:empty {
  display: none;
}

.dialog-hero figure,
.dialog-frames figure,
.mark-grid {
  margin: 0;
}

.project-dialog .on-ink { background: #161412; color: #f3eee6; }
.project-dialog .sign { background: #d9d3cb; }

.dialog-hero img,
.dialog-frames img,
.dialog-hero video,
.dialog-frames video {
  width: 100%;
  display: block;
  background: #fff;
}

.il-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.dialog-hero figure.il-hero {
  display: flex;
  justify-content: center;
  background: #000;
}

.dialog-hero video.il-hero {
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.dialog-hero figure.il-full,
.dialog-frames figure.il-full,
.il-grid figure.il-full {
  width: auto;
  height: auto;
  margin: 0;
}

.il-grid figure.il-full {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-width: 0;
}

.dialog-hero figure.il-full img,
.dialog-hero figure.il-full video,
.dialog-frames figure.il-full img,
.dialog-frames figure.il-full video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.il-grid figure.il-full img,
.il-grid figure.il-full video {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.il-grid figcaption {
  padding: 8px 4px 2px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #161412;
}

.project-dialog.is-branding .dialog-hero figure:has(img),
.project-dialog.is-branding .dialog-hero figure:has(video),
.project-dialog.is-branding .dialog-frames figure:has(img),
.project-dialog.is-branding .dialog-frames figure:has(video) {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.project-dialog.is-branding .dialog-hero figure:has(video),
.project-dialog.is-branding .dialog-frames figure:has(video) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: auto;
  margin-inline: auto;
  background: #fff;
}

.project-dialog.is-branding .dialog-hero figure.pr-full,
.project-dialog.is-branding .dialog-frames figure.kz-full,
.project-dialog.is-branding .dialog-frames figure.am-full,
.project-dialog.is-branding .dialog-frames figure.lf-full,
.project-dialog.is-branding .dialog-frames figure.pr-full,
.project-dialog.is-branding .dialog-hero figure.dg-full,
.project-dialog.is-branding .dialog-frames figure.dg-full {
  aspect-ratio: auto;
}

.project-dialog.is-branding .dialog-frames figure.kz-full img,
.project-dialog.is-branding .dialog-frames figure.am-full img,
.project-dialog.is-branding .dialog-frames figure.lf-full img,
.project-dialog.is-branding .dialog-hero figure.pr-full img,
.project-dialog.is-branding .dialog-frames figure.pr-full img,
.project-dialog.is-branding .dialog-frames figure.pr-full video,
.project-dialog.is-branding .dialog-hero figure.dg-full img,
.project-dialog.is-branding .dialog-hero figure.dg-full video,
.project-dialog.is-branding .dialog-frames figure.dg-full img,
.project-dialog.is-branding .dialog-frames figure.dg-full video {
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  clip-path: none;
}

.project-dialog.is-branding .dialog-hero img,
.project-dialog.is-branding .dialog-frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.project-dialog.is-branding .dialog-hero video.kz-hero {
  position: static;
  width: min(100%, 420px);
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: none;
  background: #fff;
  clip-path: inset(3.8% 0 3.9% 0);
}

.project-dialog.is-branding .dialog-frames video {
  position: static;
  width: min(100%, 420px);
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: none;
  background: #fff;
  clip-path: none;
}

.project-dialog.is-branding .il-grid figure.il-full {
  position: relative;
  width: auto;
  max-width: none;
  min-width: 0;
  aspect-ratio: auto;
  margin-inline: 0;
}

.project-dialog.is-branding .il-grid figure.il-full img,
.project-dialog.is-branding .il-grid figure.il-full video {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: none;
}

.dialog-head {
  padding: 28px 32px 8px;
}

.dialog-head h3 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.dialog-meta {
  color: var(--text-muted);
  font-size: 1rem;
}

.dialog-frames {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 0;
}

.dialog-frames figure {
  background: #efe8dc;
  border-radius: 12px;
  overflow: hidden;
}

.dialog-notes {
  padding: 28px 32px 0;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.dialog-notes[hidden] {
  display: none;
}

.dialog-notes p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.ink { color: #161412; }
.paper { background: #f3eee6; }
.copper { color: #c56a3a; }

.logo-sheet,
.mark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f3eee6;
  color: #161412;
  padding: 22px;
}

.logo-sheet {
  height: 100%;
  grid-template-rows: 1fr 1fr;
}

.mark-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 12px;
  border-radius: 12px;
}

.logo-cell,
.mark-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.logo-cell svg,
.mark-cell svg {
  width: 64px;
  height: 64px;
}

.logo-sheet .logo-cell img,
.mark-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.project-card:hover .logo-sheet img {
  transform: none;
}

.project-dialog.is-branding .dialog-frames .mark-grid img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-height: none;
  object-fit: contain;
}

.mark-cell span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.north-board {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.7), transparent 32%),
    #e7dfd2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px;
}

.biz {
  width: min(340px, 46%);
  aspect-ratio: 1.7;
  background: #f7f3ec;
  color: #161412;
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(50, 36, 22, 0.16);
}

.biz.back {
  background: #161412;
  color: #f3eee6;
  transform: rotate(4deg);
}

.biz.front { transform: rotate(-3deg); }

.biz svg { width: 36px; height: 36px; }

.biz strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.biz em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.biz .fine {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.swatches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swatches i {
  width: 28px;
  height: 54px;
  border-radius: 6px;
  display: block;
}

.frame-logo,
.frame-type {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 24px;
  text-align: center;
}

.frame-logo svg { width: 96px; height: 96px; }

.frame-logo strong,
.specimen {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.frame-logo span,
.frame-type span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.frame-logo.on-ink {
  background: #161412;
  color: #f3eee6;
}

.frame-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
}

.frame-split .biz {
  width: auto;
  margin: auto;
  transform: none;
}

.palette {
  display: flex;
  height: 88px;
  width: min(420px, 100%);
}

.palette b {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.sign {
  min-height: 420px;
  background: #d9d3cb;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.sign .wall {
  width: min(760px, 92%);
  height: 280px;
  background: linear-gradient(#cfc8be, #b7b0a6);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 20px 40px rgba(40, 30, 20, 0.12);
}

.sign .plaque {
  position: absolute;
  left: 36px;
  bottom: 36px;
  background: #161412;
  color: #f3eee6;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 4px;
}

.sign .plaque svg { width: 28px; height: 28px; }

.sign .window {
  position: absolute;
  right: 48px;
  top: 28px;
  width: 120px;
  height: 160px;
  background: linear-gradient(#f2c7a2, #e89a62);
}

.dialog-frames figure.kz-field,
.dialog-hero figure.kz-field,
.kz-field {
  background: #fff;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 48px 24px;
}

.dialog-frames figure.kz-field-dark,
.kz-field-dark {
  background: #111;
}

.dialog-frames figure.kz-pair,
.dialog-frames figure.kz-stationery,
.dialog-frames figure.kz-apps {
  background: #eceae6;
}

.kz-field img {
  width: min(78%, 760px);
  height: auto;
}

.kz-field-dark {
  background: #111;
}

.kz-pair,
.kz-stationery,
.kz-apps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 42px 24px;
  background: #eceae6;
}

.kz-biz {
  width: min(340px, 100%);
  aspect-ratio: 1.75;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(30, 24, 20, 0.12);
  padding: 28px;
}

.kz-biz img {
  width: 78%;
  height: auto;
}

.kz-biz-back {
  background: #111;
}

.kz-letter,
.kz-envelope {
  background: #fff;
  box-shadow: 0 16px 34px rgba(30, 24, 20, 0.1);
}

.kz-letter {
  width: min(360px, 100%);
  min-height: 460px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kz-letter img {
  width: 150px;
  height: auto;
  margin-bottom: 8px;
}

.kz-letter i {
  display: block;
  height: 3px;
  width: 72px;
  background: #b600bf;
  margin-bottom: 18px;
}

.kz-letter span,
.kz-detail span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #e4e1dc;
}

.kz-letter span.short,
.kz-detail span.short { width: 62%; }

.kz-envelope {
  width: min(300px, 100%);
  aspect-ratio: 1.6;
  display: grid;
  align-items: end;
  justify-items: end;
  padding: 22px;
}

.kz-envelope img { width: 120px; height: auto; }

.kz-phone {
  width: 230px;
  height: 470px;
  background: #fff;
  border: 8px solid #161616;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 36px rgba(20, 16, 12, 0.16);
}

.kz-map {
  position: relative;
  flex: 1;
  background:
    linear-gradient(#f3f1ee, #f3f1ee),
    repeating-linear-gradient(90deg, transparent 0 28px, #e3e0db 28px 30px),
    repeating-linear-gradient(0deg, transparent 0 36px, #e3e0db 36px 38px);
  background-blend-mode: multiply;
  display: grid;
  place-items: start;
  padding: 22px 16px;
}

.kz-map img { width: 108px; height: auto; }

.kz-map b,
.kz-sheet i,
.kz-detail > i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b600bf;
  display: block;
}

.kz-map b {
  position: absolute;
  top: 46%;
  left: 38%;
  box-shadow: 0 0 0 6px rgba(182, 0, 191, 0.18);
}

.kz-map b.b2 { top: 62%; left: 64%; }
.kz-map b.b3 { top: 30%; left: 70%; width: 10px; height: 10px; }

.kz-sheet {
  background: #fff;
  padding: 16px 16px 20px;
  display: grid;
  gap: 10px;
}

.kz-sheet strong,
.kz-detail strong {
  font-size: 0.95rem;
}

.kz-sheet em {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
  font-size: 0.82rem;
  color: #444;
}

.kz-phone header {
  padding: 18px 16px 8px;
}

.kz-phone header img { width: 96px; height: auto; }

.kz-detail {
  padding: 12px 16px 20px;
  display: grid;
  gap: 10px;
}

.kz-detail > i {
  width: 22px;
  height: 22px;
  margin-top: 12px;
}

.kz-detail button {
  margin-top: 12px;
  border: 0;
  background: #b600bf;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
}

.kz-palette {
  display: flex;
  min-height: 120px;
}

.kz-palette b {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

@media (max-width: 800px) {
  .north-board {
    flex-wrap: wrap;
  }

  .biz {
    width: min(260px, 100%);
  }

  .frame-split,
  .mark-grid {
    grid-template-columns: 1fr 1fr;
  }

  .north-board { gap: 12px; }
  .biz { padding: 14px; }
  .dialog-head,
  .dialog-notes { padding-left: 18px; padding-right: 18px; }
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
}

.about-image {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.about-image img,
.about-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.about-content h2 {
  margin-bottom: 12px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.stat {
  text-align: center;
  padding: 16px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1;
}

.stat-split span {
  display: block;
}

.stat-split span + span {
  margin-top: 0.15em;
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 980px) {
  .skills-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
  }
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}

.skill-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  line-height: 1;
}

.skill-icon img {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========== CONTACT ========== */
.contact-section {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--border);
}

.contact-section h2 {
  margin-bottom: 16px;
}

.contact-section p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 14px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== FOOTER ========== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: stretch;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  section {
    padding: 70px 0;
  }

  .skills-grid {
    gap: 10px;
  }

  .skill-item {
    padding: 14px 8px;
  }

  .skill-icon img {
    width: 32px;
    height: 32px;
  }

  .skill-name {
    font-size: 0.75rem;
  }

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

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .skills-grid {
    gap: 6px;
    margin-inline: -6px;
  }

  .skill-item {
    padding: 12px 2px;
  }

  .skill-icon {
    margin-bottom: 6px;
  }

  .skill-icon img {
    width: 26px;
    height: 26px;
  }

  .skill-name {
    font-size: 0.68rem;
    line-height: 1.15;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* ========== MOTION ========== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.hero-orb-a {
  top: 8%;
  right: -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.28) 0%, transparent 68%);
}

.hero-orb-b {
  bottom: 6%;
  left: -8%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(155, 93, 229, 0.22) 0%, transparent 70%);
}

.btn-primary span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover span {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-orb-a {
    animation: drift 14s ease-in-out infinite alternate;
  }

  .hero-orb-b {
    animation: drift 18s ease-in-out infinite alternate-reverse;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.75s ease,
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
  }

  .js .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .js .project-card:has(video).reveal,
  .js .project-card:has(video).reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-links.open {
    animation: menuIn 0.28s ease;
  }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-28px, 22px, 0) scale(1.08); }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== CROP GATE ========== */
html.crop-lock,
html.crop-lock body {
  overflow: hidden;
}

.crop-gate {
  position: fixed;
  inset: 0;
  z-index: 1300;
  pointer-events: none;
  color: #fff8f3;
}

.crop-gate.is-done {
  pointer-events: none;
}

.crop-gate.is-done .crop-dim,
.crop-gate.is-done .crop-frame,
.crop-gate.is-done .crop-hint,
.crop-gate.is-done .crop-skip {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.crop-skip {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 4;
  pointer-events: auto;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: 1px solid rgba(255, 248, 243, 0.75);
  border-radius: 999px;
  color: #fff8f3;
  font-size: 0.85rem;
  font-weight: 600;
}

.crop-skip:hover {
  background: #fff8f3;
  color: #1a120c;
}

.crop-hint {
  position: fixed;
  z-index: 4;
  margin: 0;
  pointer-events: none;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
}

.crop-dim {
  position: fixed;
  z-index: 1;
  pointer-events: auto;
  background: #000;
}

.crop-dim-t { top: 0; left: 0; right: 0; }
.crop-dim-b { left: 0; right: 0; bottom: 0; }
.crop-dim-l { left: 0; }
.crop-dim-r { right: 0; }

.crop-frame {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  box-sizing: border-box;
  border: 1px solid rgba(255, 248, 243, 0.92);
  cursor: grab;
  touch-action: none;
}

.crop-frame.is-dragging { cursor: grabbing; }

.crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.33%, rgba(255, 248, 243, 0.55) 33.33%, rgba(255, 248, 243, 0.55) calc(33.33% + 1px), transparent calc(33.33% + 1px), transparent 66.66%, rgba(255, 248, 243, 0.55) 66.66%, rgba(255, 248, 243, 0.55) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
    linear-gradient(to bottom, transparent 33.33%, rgba(255, 248, 243, 0.55) 33.33%, rgba(255, 248, 243, 0.55) calc(33.33% + 1px), transparent calc(33.33% + 1px), transparent 66.66%, rgba(255, 248, 243, 0.55) 66.66%, rgba(255, 248, 243, 0.55) calc(66.66% + 1px), transparent calc(66.66% + 1px));
}

.crop-handle {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
}

.crop-handle::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid #fff8f3;
}

.crop-handle[data-corner="nw"],
.crop-handle[data-corner="se"] { cursor: nwse-resize; }
.crop-handle[data-corner="ne"],
.crop-handle[data-corner="sw"] { cursor: nesw-resize; }
.crop-handle[data-corner="nw"] { left: -14px; top: -14px; }
.crop-handle[data-corner="nw"]::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.crop-handle[data-corner="ne"] { right: -14px; top: -14px; }
.crop-handle[data-corner="ne"]::before { right: 14px; top: 14px; border-left: 0; border-bottom: 0; }
.crop-handle[data-corner="sw"] { left: -14px; bottom: -14px; }
.crop-handle[data-corner="sw"]::before { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.crop-handle[data-corner="se"] { right: -14px; bottom: -14px; }
.crop-handle[data-corner="se"]::before { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }

.crop-handle::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border: 0 solid #fff8f3;
  border-width: 0 2.5px 2.5px 0;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.crop-frame.is-dragging .crop-handle::after { animation: none; }
.crop-handle[data-corner="nw"]::after { left: -8px; top: -8px; border-width: 2.5px 0 0 2.5px; animation-name: cropPullNw; }
.crop-handle[data-corner="ne"]::after { right: -8px; top: -8px; border-width: 2.5px 2.5px 0 0; animation-name: cropPullNe; }
.crop-handle[data-corner="sw"]::after { left: -8px; bottom: -8px; border-width: 0 0 2.5px 2.5px; animation-name: cropPullSw; }
.crop-handle[data-corner="se"]::after { right: -8px; bottom: -8px; border-width: 0 2.5px 2.5px 0; animation-name: cropPullSe; }

@keyframes cropPullNw { from { transform: translate(0, 0); } to { transform: translate(-8px, -8px); } }
@keyframes cropPullNe { from { transform: translate(0, 0); } to { transform: translate(8px, -8px); } }
@keyframes cropPullSw { from { transform: translate(0, 0); } to { transform: translate(-8px, 8px); } }
@keyframes cropPullSe { from { transform: translate(0, 0); } to { transform: translate(8px, 8px); } }

@media (max-width: 700px) {
  .crop-skip { bottom: 18px; }
  .crop-hint { font-size: 0.95rem; }
}
