/* ───────── Tokens ───────── */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #bebcbc;
  --yellow: #fcf88a;

  --max: 1920px;
  --pad-x: clamp(16px, 2.1vw, 40px);

  /* Fluid display sizes — designed at 1920px base, scaled down with viewport */
  --fs-display: clamp(56px, 9.2vw, 176px);   /* Hero name */
  --fs-section: clamp(40px, 4.7vw, 90px);    /* powers / Selected Works */
  --fs-h3:      clamp(22px, 2.3vw, 44px);    /* Work titles */
  --fs-body-l:  clamp(18px, 1.85vw, 36px);   /* Work descriptions */
  --fs-body:    clamp(15px, 1.27vw, 24px);   /* Paragraph body */
  --fs-nav:     clamp(14px, 1.05vw, 20px);   /* Nav, CV, buttons */
  --fs-small:   clamp(13px, 1vw, 20px);

  --radius-pill: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow); color: var(--ink); }

/* ───────── Layout ───────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ───────── Header ───────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 40px);
  padding-top: clamp(12px, 0.9vw, 17px);
  padding-bottom: clamp(12px, 0.9vw, 17px);
}
.logo {
  width: clamp(36px, 2.6vw, 50px);
  height: clamp(36px, 2.6vw, 50px);
  border-radius: 50%;
  background: var(--ink);
  flex: 0 0 auto;
}
.nav {
  display: flex;
  gap: clamp(18px, 1.77vw, 34px);
  align-items: center;
}
.nav a {
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: -0.03em;
  position: relative;
  padding: 4px 0;
  transition: opacity .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.cta {
  display: flex;
  gap: clamp(8px, 0.75vw, 14px);
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(40px, 2.6vw, 50px);
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: var(--fs-nav);
  padding: 0 clamp(14px, 1.55vw, 30px);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--cv {
  background: var(--yellow);
  color: var(--ink);
  padding: 0;
  width: clamp(40px, 2.55vw, 49px);
}
.btn--cv:hover { transform: scale(1.06); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1a1a1a; transform: translateY(-1px); }

/* ───────── Hero ───────── */
.hero {
  padding-top: clamp(28px, 3vw, 56px);
  padding-bottom: clamp(36px, 3.3vw, 64px);
}
.hero__strip {
  display: flex;
  gap: clamp(8px, 1vw, 20px);
  overflow: hidden;
  margin-bottom: clamp(28px, 2.7vw, 52px);
  border-radius: 4px;
}
.hero__card {
  flex: 0 0 auto;
  width: clamp(140px, 13.1vw, 251px);
  height: clamp(130px, 12.1vw, 232px);
  border-radius: 4px;
  background: #f3f3f3;
  position: relative;
  overflow: hidden;
}
.hero__card svg { width: 100%; height: 100%; display: block; }
.hero__title {
  font-family: 'Anton', 'Impact', sans-serif;
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}
.hero__title span { display: block; }
.hero__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 2vw, 40px);
  flex-wrap: wrap;
}
.hero__title-block { flex: 1 1 auto; min-width: 0; }
.hero__aside {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}
.hero__textme {
  width: clamp(96px, 8.1vw, 155px);
  height: clamp(96px, 8.1vw, 155px);
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 1.94vw, 37px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: transform .4s var(--ease);
}
.hero__textme:hover { transform: rotate(-6deg) scale(1.04); }
.hero__avatar {
  width: clamp(96px, 8.1vw, 155px);
  height: clamp(96px, 8.1vw, 155px);
  border-radius: 50%;
  margin-left: clamp(-12px, -0.5vw, -8px);
  background-size: cover;
  background-position: center;
  background-color: #e0e0e0;
  box-shadow: 0 0 0 2px #fff;
}
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.4vw, 8px);
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: clamp(12px, 1vw, 20px);
  font-variant-numeric: tabular-nums;
}
.hero__meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.hero__meta-dot--muted { background: var(--muted); }
.hero__meta-muted { color: var(--muted); }

/* ───────── Powers ───────── */
.powers {
  background: var(--yellow);
  padding-top: clamp(48px, 5vw, 96px);
  padding-bottom: clamp(48px, 5vw, 96px);
  position: relative;
  overflow: hidden;
}
.powers__lead {
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  max-width: 30ch;
  margin: 0 0 clamp(48px, 6vw, 110px);
}
.powers__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(8px, 1.5vw, 28px);
  row-gap: clamp(28px, 3.3vw, 64px);
  align-items: start;
}
.powers__item {
  font-size: var(--fs-body);
  line-height: 1.4;
  letter-spacing: -0.03em;
  max-width: 34ch;
}
.powers__item--a { grid-column: 4 / span 4; }
.powers__item--b { grid-column: 7 / span 3; }
.powers__item--c { grid-column: 8 / span 4; }
.powers__item--d { grid-column: 11 / span 2; }
.powers__photo {
  position: absolute;
  right: var(--pad-x);
  top: 0;
  width: clamp(140px, 14.8vw, 285px);
  height: clamp(170px, 18.1vw, 348px);
  background: url('assets/graduation.png') center / cover no-repeat;
  background-color: #e9e3a9;
}
.powers__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: var(--fs-section);
  text-transform: uppercase;
  line-height: 1;
  margin: clamp(36px, 4vw, 80px) 0 0;
}

/* ───────── Works ───────── */
.works {
  padding-top: clamp(56px, 5.5vw, 104px);
  padding-bottom: clamp(72px, 7vw, 140px);
}
.works__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 2vw, 40px);
  margin-bottom: clamp(48px, 6vw, 120px);
  flex-wrap: wrap;
}
.works__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: var(--fs-section);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.works__filters {
  display: flex;
  gap: clamp(10px, 0.85vw, 16px);
  flex-wrap: wrap;
}
.chip {
  height: clamp(56px, 7vw, 135px);
  padding: 0 clamp(28px, 3.3vw, 64px);
  border-radius: var(--radius-pill);
  font-size: clamp(20px, 2.6vw, 50px);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.chip--filled { background: var(--yellow); color: var(--ink); }
.chip--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.chip:hover { transform: translateY(-2px); }
.chip--outline:hover { background: var(--ink); color: #fff; }

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 4.2vw, 80px);
}
.work {
  display: grid;
  grid-template-columns: minmax(280px, 693fr) minmax(0, 1106fr);
  gap: clamp(24px, 3.5vw, 67px);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.work__media {
  position: relative;
  aspect-ratio: 693 / 400;
  border-radius: 6px;
  overflow: hidden;
  background: #e7e7e7;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work:hover .work__media img { transform: scale(1.03); }
.work__media-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: clamp(12px, 1vw, 16px);
  color: #8a8a8a;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(0,0,0,.04) 12px 13px),
    #ededed;
}
.work__body { min-width: 0; }
.work__meta {
  display: flex;
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  font-size: var(--fs-nav);
  letter-spacing: -0.03em;
  margin-bottom: clamp(28px, 8vw, 156px);
}
.work__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin: 0 0 clamp(12px, 1vw, 20px);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.work__desc {
  font-size: var(--fs-body-l);
  line-height: 1.2;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
  letter-spacing: -0.01em;
}

/* ───────── Footer ───────── */
.footer {
  padding-top: clamp(40px, 4vw, 72px);
  padding-bottom: clamp(40px, 4vw, 72px);
  border-top: 1px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: var(--fs-nav);
  color: #555;
}
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .hero__meta { justify-content: flex-start; margin-top: 24px; }
  .powers__grid {
    grid-template-columns: 1fr;
  }
  .powers__item--a, .powers__item--b, .powers__item--c, .powers__item--d {
    grid-column: 1 / -1;
  }
  .powers__photo {
    position: relative;
    right: auto;
    margin: 0 auto 24px;
  }
  .work {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .work__meta { margin-bottom: 16px; gap: 24px; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .hero__title-row { flex-direction: column; align-items: flex-start; }
  .hero__aside { align-self: flex-end; }
  .works__head { flex-direction: column; align-items: flex-start; }
  .chip { font-size: 22px; height: 64px; padding: 0 28px; }
}

/* ───────── Reduce motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
