:root {
  --bg: #f4f7fb;
  --bg-2: #ffffff;
  --ink: #17324d;
  --muted: #4d6578;
  --line: #d7e3ee;
  --accent: #1a73e8;
  --gutter: #c5d8ea;
  --side: clamp(72px, 13vw, 210px);
  --pad: clamp(18px, 2.2vw, 40px);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: Outfit, system-ui, sans-serif;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-size: 112.5%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gutter);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
}

.sides {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--side);
  overflow: hidden;
}

.side--left {
  left: 0;
}

.side--right {
  right: 0;
}

.side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side--left img {
  object-position: left center;
}

.side--right img {
  object-position: right center;
}

.side--left::after,
.side--right::after {
  content: "";
  position: absolute;
  inset: 0;
}

.side--left::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--gutter) 12%, transparent) 42%,
    color-mix(in srgb, var(--gutter) 62%, transparent) 78%,
    var(--gutter) 100%
  );
}

.side--right::after {
  background: linear-gradient(
    270deg,
    transparent 0%,
    color-mix(in srgb, var(--gutter) 12%, transparent) 42%,
    color-mix(in srgb, var(--gutter) 62%, transparent) 78%,
    var(--gutter) 100%
  );
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: calc(var(--side) + var(--pad));
  margin-right: calc(var(--side) + var(--pad));
  background:
    radial-gradient(700px 280px at 12% 0%, #eaf3ff, transparent 60%),
    var(--bg);
  box-shadow: 0 0 0 var(--pad) var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.6rem;
  background: color-mix(in srgb, var(--bg) 86%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.15rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.mark:focus-visible,
.site-nav a:focus-visible,
.cat-card:focus-visible,
.piece:focus-visible,
.works-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  flex: 1;
  padding: 0 1.6rem 2.4rem;
}

.hero {
  max-width: 40rem;
  padding: 2.2rem 0 1.5rem;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.lede {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.cat-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  font: inherit;
}

.cat-card[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.cat-visual {
  overflow: visible;
  padding: 0.75rem 0.75rem 0;
}

.cat-visual img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(23, 50, 77, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cat-card:hover img,
.cat-card:focus-visible img {
  transform: translateY(-14px);
  box-shadow: 0 22px 36px rgba(23, 50, 77, 0.18);
}

.cat-body {
  padding: 0.85rem 1.05rem 1.05rem;
}

.cat-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.cat-contains {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cat-open {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.works {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.works-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.works-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.works-close {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: 600 0.9rem/1 var(--font-ui);
  cursor: pointer;
}

.piece-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.piece {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.1rem 1rem 0;
  color: inherit;
  text-decoration: none;
}

.piece h3 {
  margin: 0;
  font-size: 1.05rem;
}

.piece p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.piece:hover h3 {
  color: var(--accent);
}

.piece--static {
  cursor: default;
}

.piece--static:hover h3 {
  color: var(--ink);
}

.piece-open {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.piece-open--muted {
  color: var(--muted);
  font-weight: 500;
}

.grok-slot {
  display: block;
  margin: 0.2rem 0 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.foot {
  margin-top: auto;
  padding: 1.1rem 1.6rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot p {
  margin: 0;
}

.about-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 0.4rem;
  padding-bottom: 1.6rem;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 2.2rem;
  align-items: stretch;
  min-height: min(58vh, 36rem);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.about-copy .lede {
  margin: 0.8rem 0 1.15rem;
}

.about-copy p {
  color: var(--muted);
  max-width: 38rem;
}

.about-figure {
  margin: 0;
  height: 100%;
}

.about-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: center 42%;
  border-radius: var(--radius);
  background: #eef3f8;
}

.about-contains {
  margin-top: 3.4rem;
}

.about-contains h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.about-contains-lede {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 38rem;
}

.contain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.4rem;
  row-gap: 1.35rem;
}

.contain-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.contain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-next {
  margin: 2.2rem 0 0;
}

.about-next a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.about-next a:hover {
  text-decoration: underline;
}



.noscript {
  color: var(--muted);
  max-width: 36rem;
}

@media (max-width: 900px) {
  :root {
    --side: 52px;
    --pad: 12px;
  }

  .cat-visual img {
    height: 170px;
  }
}

@media (max-width: 700px) {
  .sides {
    display: none;
  }

  .stage {
    margin: 0;
    box-shadow: inset 10px 0 0 var(--gutter), inset -10px 0 0 var(--gutter);
  }

  .cat-grid,
  .piece-grid,
  .contain-grid,
  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro {
    min-height: 0;
  }

  .about-figure img {
    min-height: 16rem;
    max-height: 22rem;
  }

  .top,
  main,
  .foot {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .mark {
    font-size: 1.1rem;
  }
}

.cat-items { display: grid; gap: 0.45rem; margin-top: 0.75rem; }
.cat-item {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.45rem;
}
.cat-item:hover { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.cat-item strong { font-size: 0.95rem; }
.cat-item span { font-size: 0.82rem; opacity: 0.78; }