/* ============ nastya.design portfolio ============ */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --fg: #e8e6e1;
  --fg-dim: #8a8782;
  --fg-faint: #4a4844;
  --line: rgba(232, 230, 225, 0.08);
  --line-2: rgba(232, 230, 225, 0.04);
  --accent: #c9a86a;
  --grain-opacity: 0.09;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.root { position: relative; max-width: 2000px; margin: 0 auto; }

/* ============ TOP NAV ============ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(10, 10, 11, 0.95);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.topnav-left .logo {
  font-weight: 600;
  font-size: 13px;
}
.topnav-right {
  display: flex;
  gap: 32px;
}
.topnav-right a {
  position: relative;
  transition: opacity 0.2s;
}
.topnav-right a:hover { opacity: 0.6; }

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-left: calc(50% - 50vw);
}
.hero-orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 40px 40px;
  pointer-events: none;
}
.hero-overlay > * { pointer-events: auto; }

.hero-top, .hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.meta-row.right { justify-content: flex-end; }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
  transition: background 0.6s, box-shadow 0.6s;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
  padding: 40px 0;
  margin-top: -8vh;
  position: relative;
}
.hero-center::before {
  content: '';
  position: absolute;
  inset: -80px -140px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0) 90%);
  z-index: -1;
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.hero-name {
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  text-shadow:
    0 0 32px rgba(0,0,0,1),
    0 0 64px rgba(0,0,0,0.95),
    0 0 96px rgba(0,0,0,0.8),
    0 2px 4px rgba(0,0,0,1);
}
.hero-name .line-1, .hero-name .line-2 {
  display: block;
  white-space: nowrap;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}
/* ============ SECTION SHARED ============ */
.section-header {
  padding: 120px 40px 60px;
  border-top: 1px solid var(--line);
}
.section-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
}
.section-title {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 14ch;
}
.section-title em {
  color: var(--accent);
  font-style: italic;
}
.section-aside {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  padding-bottom: 20px;
}

/* ============ HORIZONTAL CASE STRIP ============ */
.case-strip-section {
  position: relative;
  background: var(--bg);
  padding-bottom: 120px;
}
.strip {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-faint) transparent;
  padding: 20px 0 60px;
  gap: 40px;
}
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-track { background: var(--line-2); }
.strip::-webkit-scrollbar-thumb { background: var(--fg-faint); }

.strip-spacer-start, .strip-spacer-end { flex: 0 0 40px; }

.case-card {
  flex: 0 0 560px;
  height: 540px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: border-color 0.4s, transform 0.4s;
}
.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.case-num {
  display: flex;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  margin-bottom: auto;
}
.case-title {
  font-size: 48px;
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--fg);
  margin: 16px 0 12px;
}
.case-card:hover .case-title {
  color: var(--accent);
  transition: color 0.3s;
}
.case-meta-row {
  display: flex;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.case-meta-row .dot { color: var(--fg-faint); }
.case-blurb {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.case-tags {
  display: flex;
  gap: 8px;
  margin-bottom: auto;
  flex-wrap: wrap;
}
.case-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--fg-dim);
  text-transform: uppercase;
}
.case-cta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* hover preview image floating */
.hover-preview {
  position: fixed;
  pointer-events: none;
  width: 360px;
  height: 250px;
  transform: translate(40px, -50%);
  z-index: 30;
  border: 1px solid;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: previewIn 0.3s cubic-bezier(.2,.8,.2,1);
}
.hover-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hover-preview-label {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.7);
  padding: 4px 8px;
}
@keyframes previewIn {
  from { opacity: 0; transform: translate(40px, calc(-50% + 10px)); }
  to { opacity: 1; transform: translate(40px, -50%); }
}

/* ============ CASE GRID ============ */
.case-grid-section {
  background: var(--bg);
  padding-bottom: 120px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid-card {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.grid-card:hover { background: var(--bg-2); border-color: var(--accent); }
.grid-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-2);
}
.grid-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.4s;
}
.grid-card:hover img {
  opacity: 1;
}
.grid-card-overlay {
  display: none;
}
.grid-card-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grid-card-title {
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
}

/* placeholder card */
.case-card-placeholder {
  background: var(--bg);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  pointer-events: none;
}
.case-card-placeholder:hover {
  border-color: var(--fg-faint);
  transform: none;
}
.placeholder-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.placeholder-title {
  color: var(--fg-dim) !important;
  font-size: 28px !important;
  margin: 0 !important;
}
.list-row-placeholder {
  pointer-events: none;
  opacity: 0.5;
}

/* ============ CASE LIST ============ */
.case-list-section {
  background: var(--bg);
  padding: 80px 40px 120px;
}
.case-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.list-row { border-bottom: 1px solid var(--line); }
.list-row-link {
  display: grid;
  grid-template-columns: 80px 1fr 200px 140px 40px;
  align-items: baseline;
  padding: 32px 0;
  gap: 24px;
  transition: padding 0.3s;
}
.list-row:hover .list-row-link { padding-left: 24px; }
.list-num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
}
.list-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 500;
  transition: color 0.3s;
}
.list-row:hover .list-title { color: var(--accent); }
.list-client, .list-year {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============ ABOUT ============ */
.about-section {
  position: relative;
  padding: 140px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.about-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 80px;
  display: flex;
  gap: 8px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-lead {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: pretty;
  margin-bottom: 40px;
}
.about-lead em {
  color: var(--accent);
  font-style: italic;
}
.about-body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin-bottom: 24px;
  max-width: 56ch;
  text-wrap: pretty;
}
.about-body em {
  color: var(--fg);
  font-style: italic;
}
.about-cta { margin-top: 40px; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 1px solid;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.contact-btn:hover {
  background: var(--accent);
  color: var(--bg);
}
.contact-btn:hover span:last-child { color: var(--bg) !important; }

.about-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.about-stat-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.stat-value {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.stat-value-small {
  font-size: 16px;
  line-height: 1.4;
  color: var(--fg-dim);
}
.elsewhere {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.elsewhere a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  width: fit-content;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.elsewhere a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ CLIENTS ============ */
.clients-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.clients-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0 40px;
  margin-bottom: 48px;
  display: flex;
  gap: 8px;
}
.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding: 0 40px;
  flex-wrap: wrap;
}
.client-logo {
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--fg-dim);
  transition: color 0.3s;
  white-space: nowrap;
}
.client-logo:hover {
  color: var(--fg);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 80px 40px 32px;
}
.footer-big {
  text-align: center;
  margin-bottom: 48px;
}
.footer-mail {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 500;
  display: inline-block;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.footer-mail:hover { opacity: 0.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 900px) {
  .topnav { padding: 20px 24px; }
  .topnav-right { gap: 16px; }
  .hero-overlay { padding: 80px 24px 24px; }
  .section-header { padding: 80px 24px 40px; }
  .section-title-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .case-card { flex: 0 0 320px; height: 480px; padding: 28px; }
  .case-title { font-size: 36px; }
  .about-section { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-right { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 40px; }
  .clients-tag, .footer { padding-left: 24px; padding-right: 24px; }
  .list-row-link { grid-template-columns: 60px 1fr 24px; gap: 12px; }
  .list-client, .list-year { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .case-grid { grid-template-columns: 1fr; }
  .hover-preview { display: none; }
}
