@import url('https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:ital,wght@0,600;0,700;1,400&family=Inter:wght@400;500&display=swap');

:root {
  --72-ink-1000: #050505;
  --72-ink-900: #0b0b0a;
  --72-ink-800: #151412;
  --72-ink-700: #292622;
  --72-paper-50: #f4efe5;
  --72-paper-200: #c8c0b3;
  --72-red-500: #d9523e;
  --72-color-background: var(--72-ink-1000);
  --72-color-surface: var(--72-ink-900);
  --72-color-surface-hover: var(--72-ink-800);
  --72-color-border: var(--72-ink-700);
  --72-color-text-primary: var(--72-paper-50);
  --72-color-text-secondary: var(--72-paper-200);
  --72-color-accent: var(--72-red-500);
  --72-layout-content-max: 1312px;
  --72-page-padding: clamp(24px, 4.45vw, 64px);
  --72-font-display: 'Ibarra Real Nova', Georgia, serif;
  --72-font-ui: 'Inter', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--72-color-background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--72-color-background);
  color: var(--72-color-text-primary);
  font-family: var(--72-font-ui);
  -webkit-font-smoothing: antialiased;
}

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

.studio-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.studio-shell::before,
.studio-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.studio-shell::before {
  z-index: -2;
  background: url('/assets/portfolio-background.png') center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.015);
}

.studio-shell::after {
  z-index: -1;
  background: rgba(0, 0, 0, 0.72);
}

.studio-content {
  display: flex;
  width: min(100%, calc(var(--72-layout-content-max) + (var(--72-page-padding) * 2)));
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--72-page-padding);
  flex-direction: column;
  gap: clamp(72px, 7.2vw, 104px);
}

.brand-header,
.site-footer,
.category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-header {
  min-height: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--72-color-border);
  background: var(--72-color-background);
}

.brand-lockup {
  letter-spacing: 0.12em;
}

.brand-lockup:focus-visible {
  outline: 1px solid var(--72-color-accent);
  outline-offset: 8px;
}

.brand-index {
  color: var(--72-color-text-secondary);
}

.hero {
  display: flex;
  min-height: 400px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.hero-index {
  color: var(--72-color-text-secondary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.hero-heading {
  display: flex;
  align-items: flex-end;
  gap: 42px;
}

.hero h1 {
  display: flex;
  margin: 0;
  flex-direction: column;
  font-family: var(--72-font-display);
  font-size: clamp(76px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.93;
  text-transform: uppercase;
}

.studio-mark {
  display: block;
  width: 93px;
  height: 93px;
  margin-bottom: 9px;
  flex: 0 0 auto;
}

.hero-statement {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-statement p {
  max-width: 620px;
  margin: 0;
  color: var(--72-color-accent);
  font-family: var(--72-font-display);
  font-size: 28px;
  font-style: italic;
  line-height: 26px;
}

.project-index {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-header {
  min-height: 32px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--72-color-border);
  background: var(--72-color-background);
  color: var(--72-color-accent);
}

.category-header span:last-child {
  color: var(--72-color-text-secondary);
}

.project-list {
  border-bottom: 1px solid var(--72-color-border);
}

.project-row {
  position: relative;
  display: grid;
  min-height: 112px;
  padding: 16px 24px;
  align-items: center;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 24px;
  border-top: 1px solid var(--72-color-border);
  background: rgba(5, 5, 5, 0.9);
  transition: background-color 180ms ease;
}

.project-row:first-child {
  border-top: 0;
}

.project-row:hover {
  background: rgba(21, 20, 18, 0.96);
}

.project-number,
.project-category {
  color: var(--72-color-text-secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.project-copy h3 {
  margin: 0;
  font-family: var(--72-font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: color 180ms ease;
}

.project-row:hover .project-copy h3 {
  color: var(--72-color-accent);
}

.project-primary-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.project-row:has(.project-primary-link:focus-visible) {
  outline: 1px solid var(--72-color-accent);
  outline-offset: -1px;
}

.project-number,
.project-copy,
.project-category {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.project-copy p {
  display: flex;
  margin: 4px 0 0;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--72-color-text-secondary);
  font-family: var(--72-font-ui);
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
}

.project-secondary-link {
  position: relative;
  z-index: 3;
  color: var(--72-color-text-primary);
  pointer-events: auto;
  text-decoration: underline;
  text-decoration-color: var(--72-color-accent);
  text-underline-offset: 3px;
}

.project-secondary-link:hover,
.project-secondary-link:focus-visible {
  color: var(--72-color-accent);
}

.project-category {
  text-align: right;
}

.site-footer {
  min-height: 48px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--72-color-border);
  background: var(--72-color-background);
  color: var(--72-color-text-secondary);
}

@media (max-width: 700px) {
  .studio-content {
    padding-top: 24px;
    padding-bottom: 28px;
    gap: 72px;
  }

  .brand-header,
  .site-footer,
  .category-header {
    font-size: 10px;
  }

  .brand-header {
    min-height: 48px;
    padding-bottom: 16px;
  }

  .hero {
    min-height: 420px;
    gap: 20px;
  }

  .hero-heading {
    width: 100%;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(50px, 16.5vw, 76px);
    line-height: 0.92;
  }

  .studio-mark {
    width: clamp(44px, 13.5vw, 64px);
    height: clamp(44px, 13.5vw, 64px);
    margin-bottom: 4px;
  }

  .hero-statement {
    gap: 12px;
  }

  .hero-statement p {
    max-width: 340px;
    font-size: 21px;
    line-height: 1.05;
  }

  .project-index {
    gap: 64px;
  }

  .category-header {
    min-height: 32px;
    padding-bottom: 12px;
  }

  .project-row {
    min-height: 128px;
    padding: 20px 16px;
    align-items: start;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .project-copy h3 {
    font-size: 32px;
  }

  .project-copy p {
    max-width: 270px;
    font-size: 15px;
  }

  .project-category {
    grid-column: 2;
    text-align: left;
  }

  .site-footer {
    min-height: 48px;
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-row,
  .project-copy h3 {
    transition: none;
  }
}
