:root {
  color-scheme: dark;
  --black: #0b0d0f;
  --charcoal: #151515;
  --paper: #eee9dc;
  --paper-soft: rgba(238, 233, 220, 0.74);
  --paper-faint: rgba(238, 233, 220, 0.48);
  --line: rgba(238, 233, 220, 0.18);
  --line-strong: rgba(238, 233, 220, 0.36);
  --silver: #c7c4bc;
  --max: 1160px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(238, 233, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 233, 220, 0.018) 1px, transparent 1px),
    var(--black);
  background-size: 48px 48px;
  color: var(--paper);
}

body::selection {
  background: var(--paper);
  color: var(--black);
}

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

.cursor-grid {
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent var(--cursor-x), rgba(238, 233, 220, 0.18) var(--cursor-x), transparent calc(var(--cursor-x) + 1px)),
    linear-gradient(0deg, transparent var(--cursor-y), rgba(238, 233, 220, 0.14) var(--cursor-y), transparent calc(var(--cursor-y) + 1px));
  transition: opacity 180ms ease;
}

body.has-pointer .cursor-grid {
  opacity: 1;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 44px);
  color: rgba(238, 233, 220, 0.86);
  backdrop-filter: blur(8px);
}

.brand-mark,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  gap: clamp(16px, 3vw, 32px);
  color: var(--paper-faint);
}

.nav-links a,
.text-link,
.studio-links a,
.footer-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after,
.text-link::after,
.studio-links a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.text-link:hover,
.studio-links a:hover,
.footer-links a:hover {
  color: var(--paper);
}

.nav-links a:hover::after,
.text-link:hover::after,
.studio-links a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 6vw, 72px) 52px;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("/assets/ai-atelier-hero.png");
  background-size: cover;
  background-position: center;
  filter: contrast(1.08) brightness(0.86);
  transform: translate3d(0, var(--parallax, 0), 0) scale(1.02);
}

.hero-plate {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.94), rgba(8, 9, 10, 0.78) 34%, rgba(8, 9, 10, 0.2) 62%),
    linear-gradient(0deg, rgba(8, 9, 10, 0.95), rgba(8, 9, 10, 0.22) 52%, rgba(8, 9, 10, 0.42));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 12vh;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--paper-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(68px, 13vw, 168px);
  line-height: 0.86;
}

.hero-line {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--paper-soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

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

.text-link {
  color: var(--paper);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-note {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 64px);
  bottom: 44px;
  display: grid;
  gap: 10px;
  color: rgba(238, 233, 220, 0.56);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-align: right;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
  border-bottom: 1px solid var(--line);
}

.section-index {
  color: var(--paper-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.manifesto,
.studio {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.manifesto h2,
.section-title-row h2,
.studio h2 {
  margin-bottom: 0;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 0.98;
}

.manifesto-lines {
  align-self: end;
  display: grid;
  gap: 18px;
  padding-top: 10px;
  counter-reset: note;
}

.manifesto-lines p {
  position: relative;
  margin: 0;
  padding-left: 42px;
  color: var(--paper-soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.manifesto-lines p::before {
  counter-increment: note;
  content: "0" counter(note);
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--paper-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.section-title-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.product-list {
  border-top: 1px solid var(--line-strong);
}

.product-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.8fr) minmax(280px, 1.2fr) 180px;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: 126px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-soft);
  transition:
    color 180ms ease,
    background 180ms ease,
    padding-left 180ms ease;
}

.product-row:hover {
  padding-left: 12px;
  background: rgba(238, 233, 220, 0.035);
  color: var(--paper);
}

.product-number,
.product-meta {
  color: var(--paper-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.product-name {
  color: var(--paper);
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1;
}

.product-copy {
  margin: 0;
  color: inherit;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
}

.product-meta {
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
  text-transform: uppercase;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 46px);
}

.method-list article {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.method-list span {
  color: var(--paper-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.method-list h3 {
  margin: 18px 0 12px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
}

.method-list p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.58;
}

.studio {
  min-height: 54svh;
  align-items: center;
}

.studio-links {
  display: grid;
  gap: 16px;
  align-self: center;
  color: var(--paper-soft);
  font-size: clamp(18px, 2.2vw, 26px);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.7fr) minmax(240px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 48px);
  border-top: 1px solid var(--line);
  color: rgba(238, 233, 220, 0.46);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand,
.footer-links,
.footer-meta {
  display: grid;
  gap: 12px;
}

.footer-brand span:first-child {
  color: var(--paper);
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: none;
}

.footer-brand span:last-child,
.footer-meta {
  line-height: 1.6;
}

.footer-links {
  justify-items: start;
  color: var(--paper-soft);
}

.footer-meta {
  justify-items: end;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .cursor-grid {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    backdrop-filter: none;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 94svh;
    align-items: end;
    padding-bottom: 34px;
  }

  .hero-image {
    background-position: 58% center;
  }

  .hero-plate {
    background:
      linear-gradient(90deg, rgba(8, 9, 10, 0.96), rgba(8, 9, 10, 0.72)),
      linear-gradient(0deg, rgba(8, 9, 10, 0.96), rgba(8, 9, 10, 0.2) 48%, rgba(8, 9, 10, 0.45));
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    text-align: left;
  }

  .manifesto,
  .studio,
  .section-title-row,
  .product-row {
    grid-template-columns: 1fr;
  }

  .product-row {
    gap: 10px;
    min-height: auto;
    padding: 24px 0;
  }

  .product-row:hover {
    padding-left: 0;
  }

  .product-meta {
    justify-items: start;
    text-align: left;
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}
