:root {
  --bg: #0F0F0E;
  --fg: #EDEDE8;
  --muted: #A3A39C;
  --line: #2C2C29;
  --card: #171716;
  --accent: #8A3FFC;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: opacity .15s ease; }
a:hover { opacity: .7; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.dot { color: var(--accent); }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; display: inline-flex; align-items: center; min-height: 44px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 32px; }
.site-nav a { padding: 12px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 500;
}
.btn svg { transition: transform .2s ease; }
.btn:hover { opacity: 1; }
.btn:hover svg { transform: translateX(4px); }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; }

/* Home hero */
.hero { padding: clamp(64px, 12vw, 160px) 0 clamp(56px, 8vw, 112px); display: flex; flex-direction: column; gap: 40px; }
.status { display: flex; align-items: center; gap: 12px; }
.status-light { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-title { margin: 0; font-size: clamp(64px, 15vw, 220px); line-height: .88; font-weight: 800; letter-spacing: -.05em; }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-lead { margin: 0; max-width: 620px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }

/* Work */
.work { padding: 56px 0 clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-title { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -.03em; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.work-item { display: flex; flex-direction: column; gap: 16px; }
.work-thumb {
  aspect-ratio: 4 / 5; border-radius: 20px; border: 1px dashed var(--line); background: var(--card);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 500; }

/* About */
.about-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.about-title { margin: 0; max-width: 1100px; font-size: clamp(44px, 7.5vw, 112px); line-height: .95; font-weight: 800; letter-spacing: -.045em; }
.about-body { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(72px, 10vw, 128px); }
.monogram {
  flex: 1 1 320px; max-width: 460px; aspect-ratio: 4 / 5; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: clamp(120px, 18vw, 240px); font-weight: 800; letter-spacing: -.06em; line-height: 1;
}
.monogram img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.about-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }
.about-text p { margin: 0; max-width: 62ch; }
.about-lead { font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.3 !important; font-weight: 500; letter-spacing: -.015em; }
.about-text .btn { align-self: flex-start; }

.details { border-top: 1px solid var(--line); padding: 56px 0 clamp(72px, 10vw, 128px); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.details h2 { margin: 0 0 20px; font-weight: 500; color: var(--muted); }
.details ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 24px; font-weight: 500; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; }

/* Footer */
.site-footer { padding: clamp(64px, 10vw, 128px) 0 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 56px; }
.contact { display: flex; flex-direction: column; gap: 20px; }
.contact-email { font-size: clamp(32px, 7vw, 96px); font-weight: 700; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 24px; }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 80px 0; }
.notfound .btn { align-self: flex-start; }
