.aachi-case {
  --purple: #4217a6;
  --purple2: #2b0b79;
  --ink: #0a0a0b;
  --soft: #f5f3f8;
  --white: #fff;
  --muted: #6d6972;
  --line: #ddd9e3;
  --gold: #d7a52d;
  --page: clamp(22px, 4vw, 72px);
  --radius: clamp(16px, 1.8vw, 30px);
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.aachi-case * {
  box-sizing: border-box;
}

.aachi-case img {
  display: block;
  width: 100%;
}

.aachi-case h1,
.aachi-case h2,
.aachi-case h3,
.aachi-case p {
  margin-top: 0;
  text-wrap: pretty;
}

.aachi-case ::selection {
  background: var(--purple);
  color: #fff;
}

.case-hero {
  padding: clamp(42px, 5vw, 86px) var(--page) clamp(58px, 7vw, 116px);
}

.eyebrow {
  color: var(--purple);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 10px;
  margin-bottom: clamp(26px, 3vw, 44px);
}

.case-title {
  font-size: clamp(66px, 8.5vw, 154px);
  line-height: 0.86;
  letter-spacing: -0.066em;
  font-weight: 900;
  max-width: 12ch;
  margin: 0;
}

.case-title em {
  font-style: normal;
  color: var(--purple);
}

.case-meta {
  border-top: 1px solid #111;
  margin-top: clamp(48px, 6vw, 90px);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-hero-image {
  height: min(76vw, 920px);
  object-fit: cover;
}

.section {
  padding: clamp(82px, 9vw, 160px) var(--page);
}

.section-soft {
  background: var(--soft);
}

.section-purple {
  background: var(--purple);
  color: #fff;
}

.section-dark {
  background: #090909;
  color: #fff;
}

.case-beat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 2vw, 38px);
}

.index {
  grid-column: 1/4;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 10px;
}

.case-beat > div:last-child {
  grid-column: 5/13;
}

.case-beat h2,
.section-head h2 {
  font-size: clamp(52px, 5.5vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.057em;
  margin: 0;
  max-width: 12ch;
}

.case-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 64px);
  border-top: 1px solid currentColor;
  padding-top: 22px;
  margin-top: 38px;
}

.case-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.55;
}

.case-copy .lead {
  color: inherit;
  font-size: clamp(20px, 1.65vw, 29px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.section-purple .case-copy p,
.section-dark .case-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.section-purple .case-copy .lead,
.section-dark .case-copy .lead {
  color: #fff;
}

.image-frame {
  overflow: hidden;
}

.image-frame img {
  height: min(70vw, 900px);
  object-fit: cover;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.image-pair img {
  height: min(44vw, 100%);
  object-fit: cover;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #fff;
}

.image-grid img {
  height: min(46vw, 100%);
  object-fit: cover;
}

.proof-intro {
  padding-bottom: 36px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #2c2c2c;
  border: 1px solid #2c2c2c;
}

.proof-card {
  background: #0d0d0d;
  padding: clamp(34px, 4vw, 64px);
  min-height: 390px;
  display: flex;
  flex-direction: column;
}

.proof-card small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #b8b3c0;
}

.proof-card h3 {
  font-size: clamp(32px, 3vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 38px 0 22px;
}

.proof-card p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.52;
  max-width: 44ch;
}

.proof-card strong {
  margin-top: auto;
  font-size: clamp(38px, 4vw, 68px);
  letter-spacing: -0.055em;
  color: #fff;
  line-height: 0.9;
}

.proof-card span {
  display: block;
  margin-top: 10px;
  color: #cfc9d6;
  font-size: 13px;
  line-height: 1.35;
}

.proof-card.featured {
  background: var(--purple);
}

.statement {
  padding: clamp(90px, 9vw, 170px) var(--page);
  background: #fff;
}

.statement h2 {
  font-size: clamp(58px, 7vw, 126px);
  line-height: 0.86;
  letter-spacing: -0.063em;
  max-width: 13ch;
  margin: 0;
}

.statement h2 em {
  font-style: normal;
  color: var(--purple);
}

.statement p {
  max-width: 50ch;
  margin: 42px 0 0 auto;
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 1.35;
  color: var(--muted);
}

.system-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d8d4df;
}

.system-card {
  background: #fff;
  padding: clamp(34px, 4vw, 60px);
  min-height: 360px;
}

.system-card b {
  color: var(--purple);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.system-card h3 {
  font-size: clamp(30px, 2.6vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 44px 0 16px;
}

.system-card p {
  color: var(--muted);
  line-height: 1.5;
  max-width: 34ch;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 2vw, 38px);
  align-items: end;
}

.section-head > div {
  grid-column: 1/8;
}

.section-head > p {
  grid-column: 9/13;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.35;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(60px, 6vw, 100px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.result {
  padding: 28px 18px 16px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.result:last-child {
  border-right: 0;
}

.result strong {
  display: block;
  font-size: clamp(46px, 5vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.result span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.35;
  max-width: 18ch;
}

.note {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  max-width: 72ch;
  line-height: 1.5;
}

.next-work {
  padding: clamp(90px, 10vw, 180px) var(--page);
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
}

.next-work h2 {
  font-size: clamp(52px, 6.3vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  max-width: 11ch;
  margin: 0;
}

.button {
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 18px 24px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: 0.25s;
}

.button:hover {
  background: var(--purple);
}

.aachi-case .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.aachi-case .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .aachi-case .case-title {
    font-size: clamp(58px, 10vw, 96px);
  }

  .aachi-case .case-beat {
    grid-template-columns: 1fr;
  }

  .aachi-case .index,
  .aachi-case .case-beat > div:last-child {
    grid-column: 1;
  }

  .aachi-case .index {
    margin-bottom: 18px;
  }

  .aachi-case .section-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .aachi-case .section-head > div,
  .aachi-case .section-head > p {
    grid-column: 1;
  }

  .aachi-case .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aachi-case .system-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .aachi-case {
    --page: 20px;
  }

  .aachi-case .case-hero {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .aachi-case .eyebrow {
    font-size: 8px;
    margin-bottom: 26px;
  }

  .aachi-case .case-title {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.9;
    max-width: none;
  }

  .aachi-case .case-meta {
    margin-top: 54px;
    align-items: flex-start;
    font-size: 8px;
  }

  .aachi-case .case-meta span:last-child {
    text-align: right;
  }

  .aachi-case .case-hero-image {
    height: 72vh;
    max-height: 720px;
    min-height: 500px;
    object-position: center;
  }

  .aachi-case .section {
    padding-top: 74px;
    padding-bottom: 78px;
  }

  .aachi-case .case-beat h2,
  .aachi-case .section-head h2 {
    font-size: clamp(42px, 11.8vw, 50px);
    line-height: 0.92;
  }

  .aachi-case .case-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .aachi-case .case-copy .lead {
    font-size: 20px;
  }

  .aachi-case .case-copy p {
    font-size: 14px;
  }

  .aachi-case .image-frame img {
    /* height: 62vh;
    min-height: 420px; */
    height: min(65vw, 900px);
  }

  .aachi-case .image-pair,
  .aachi-case .image-grid {
    grid-template-columns: 1fr;
  }

  .aachi-case .image-pair img,
  .aachi-case .image-grid img {
    height: unset;
    /* min-height: 400px; */
  }

  .aachi-case .proof-grid {
    grid-template-columns: 1fr;
  }

  .aachi-case .proof-card {
    min-height: 310px;
    padding: 30px 24px;
  }

  .aachi-case .proof-card h3 {
    margin-top: 30px;
  }

  .aachi-case .statement {
    padding-top: 76px;
    padding-bottom: 82px;
  }

  .aachi-case .statement h2 {
    font-size: clamp(44px, 12vw, 58px);
    line-height: 0.9;
  }

  .aachi-case .statement p {
    font-size: 18px;
    margin-top: 34px;
  }

  .aachi-case .system-card {
    min-height: 280px;
    padding: 30px 24px;
  }

  .aachi-case .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aachi-case .result {
    min-height: 150px;
  }

  .aachi-case .result strong {
    font-size: 46px;
  }

  .aachi-case .next-work {
    align-items: flex-start;
    flex-direction: column;
  }

  .aachi-case .next-work h2 {
    font-size: clamp(46px, 12.8vw, 58px);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
