.home {
  --paper: #f2efe6;
  --ink: #181814;
  --muted: #58554d;
  --accent: #8d3b25;
  --marker: #ffd744;
  --line: #272720;
  background-color: var(--paper);
  background-image: radial-gradient(#312d2222 .55px, transparent .55px);
  background-size: 6px 6px;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.home-width {
  width: min(100% - 88px, 1120px);
  margin-inline: auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 33%);
  align-items: center;
  gap: clamp(30px, 6vw, 94px);
  padding-block: clamp(42px, 5vw, 76px) clamp(38px, 4.8vw, 68px);
}

.home-hero h1 {
  width: fit-content;
  margin: 0;
  font-size: clamp(62px, 8.1vw, 116px);
  line-height: .88;
  letter-spacing: -.085em;
  font-weight: 900;
}

.home-hero h1 span {
  position: relative;
  display: block;
  isolation: isolate;
}

.home-hero h1 span::before {
  position: absolute;
  inset: 61% -2% 1% -1%;
  z-index: -1;
  background: var(--marker);
  clip-path: polygon(0 9%, 100% 0, 99% 92%, 1% 100%);
  content: "";
}

.hero-subtitle {
  max-width: 33em;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(16px, 1.65vw, 20px);
  line-height: 1.48;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.21;
  border: 1px solid var(--ink);
  background: var(--marker);
  isolation: isolate;
  box-shadow: 7px 7px 0 var(--ink);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#26201275 0.85px, transparent 1px);
  background-size: 6px 6px;
  mask-image: linear-gradient(145deg, #000 12%, transparent 84%);
}

.hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid #20190948;
  border-radius: 50%;
  transform: scaleY(.58) rotate(-18deg);
}

.hero-photo {
  width: 64%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #4d4b44;
  box-shadow: 5px 5px 0 #272720;
  transform: rotate(-5deg);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(1) contrast(1.18);
  transform: scale(1.17);
}

.home-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.topic {
  --topic-mark: #dce0bf;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #f8f4e9;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 170ms ease;
}

.topic--video { --topic-mark: #ffdb58; }
.topic--ai { --topic-mark: #f0b09b; }
a.topic:hover, .topic:focus-visible { box-shadow: 5px 5px 0 var(--ink); }

.topic-art {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  isolation: isolate;
  background: #748773;
}

.topic--video .topic-art { background: #292729; }
.topic--ai .topic-art { background: #bc5638; }

.topic-poster,
.topic-layers {
  width: 100%;
  height: 100%;
  display: block;
}

.topic-poster { object-fit: cover; }

.topic-layers {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.topic-layer {
  position: absolute;
  display: block;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translate3d(calc(var(--pointer-x, 0) * var(--depth) * 1px), calc(var(--pointer-y, 0) * var(--depth) * 1px), 0);
  transition: transform 160ms ease-out;
}

.topic-layer img { display: block; width: 100%; height: auto; }

.topic--sport .flag    { --x: 5%;  --y: 9%;  --w: 58%; }
.topic--sport .cup     { --x: 65%; --y: 12%; --w: 24%; }
.topic--sport .plate   { --x: 1%;  --y: 40%; --w: 44%; }
.topic--sport .ball    { --x: 68%; --y: 55%; --w: 24%; }
.topic--sport .athlete { --x: 23%; --y: 4%;  --w: 53%; }
.topic--video .caption   { --x: 9%;   --y: -14%; --w: 81%; }
.topic--video .timeline  { --x: 8%;   --y: 13%;  --w: 82%; }
.topic--video .operator  { --x: 24%;  --y: 2%;   --w: 50%; }
.topic--video .panasonic { --x: -1%;  --y: 61%;  --w: 44%; }
.topic--video .alexa     { --x: 59%;  --y: 62%;  --w: 40%; }
.topic--video .sony      { --x: 35%;  --y: 69%;  --w: 35%; }
.topic--ai .letter   { --x: 8%;  --y: 3%;  --w: 17%; }
.topic--ai .laptop   { --x: 13%; --y: 26%; --w: 76%; }
.topic--ai .claude   { --x: 8%;  --y: 70%; --w: 18%; }
.topic--ai .gpt      { --x: 68%; --y: 3%;  --w: 26%; }

.topic-copy {
  position: relative;
  flex: 1;
  padding: 17px 53px 18px 17px;
  border-top: 1px solid var(--line);
}

.topic-copy h2 {
  margin: 0;
  font-size: clamp(29px, 3.2vw, 42px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.075em;
}

.topic-copy h2 span {
  padding-inline: 3px 6px;
  margin-inline-start: -3px;
  background: linear-gradient(transparent 56%, var(--topic-mark) 56% 91%, transparent 91%);
}

.topic-copy p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.topic-arrow {
  position: absolute;
  top: 17px;
  right: 16px;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
  transition: color 170ms ease, background-color 170ms ease;
}

.topic:hover .topic-arrow,
.topic:focus-visible .topic-arrow {
  color: var(--paper);
  background-color: var(--ink);
  border-color: var(--ink);
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 24px;
  margin-top: clamp(42px, 6vw, 72px);
  padding-top: clamp(18px, 3vw, 32px);
  border-top: 3px solid var(--line);
}

.home-about h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.065em;
}

.home-about p {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.home-about p + p { margin-top: 1em; }

.about-mark {
  color: inherit;
  background: linear-gradient(177deg, transparent 52%, var(--phrase-marker, var(--marker)) 53% 93%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home footer { border-color: var(--line); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .topic:hover .topic-layers.is-loaded { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .topic-art.is-in-view { animation: reveal-art 510ms cubic-bezier(.2, .7, .3, 1) both; }
  @keyframes reveal-art {
    from { clip-path: inset(0 0 10% 0); opacity: .72; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
  }
}

@media (max-width: 899px) {
  .home-width { width: calc(100% - 48px); }
  .home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .home-width { width: calc(100% - 36px); }
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(68px, 24%);
    gap: 20px 12px;
    padding-block: 34px;
  }
  .hero-copy { display: contents; }
  .home-hero h1 {
    grid-area: 1 / 1;
    font-size: clamp(41px, 13.7vw, 84px);
    margin: 0;
  }
  .hero-art {
    grid-area: 1 / 2;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .hero-photo { border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
  .hero-subtitle {
    grid-area: 2 / 1 / 3 / -1;
    max-width: 36ch;
    margin: 0;
  }
  .home-topics { grid-template-columns: 1fr; }
  .home-about { grid-template-columns: 1fr; }
  .topic-copy { padding-top: 13px; padding-bottom: 15px; }
  .topic-arrow { top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .topic, .topic-arrow, .topic-layer, .topic-layers { transition: none; }
}
