:root {
  --bg: #a8a8a8;
  --panel: rgba(235, 235, 235, 0.88);
  --panel-2: rgba(242, 242, 242, 0.94);
  --line: rgba(34, 34, 34, 0.16);
  --line-soft: rgba(34, 34, 34, 0.08);
  --ink: #262626;
  --muted: #555555;
  --mint: #5be2c7;
  --pink: #ff5aa2;
  --yellow: #f2cf48;
  --violet: #8f7af1;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius-xl: 34px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Trebuchet MS", "Hiragino Sans", sans-serif;
}

body::before,
body::after {
  content: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-shell {
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto 72px;
  padding: 28px 0 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 28px;
}

.site-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  text-decoration: none;
}

.site-title img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 44px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--mint);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.intro-panel,
.works-page-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(247, 247, 247, 0.96), rgba(232, 232, 232, 0.92)),
    radial-gradient(circle at 90% 20%, rgba(255, 79, 155, 0.1), transparent 26%);
}

.intro-panel h1,
.works-page-intro h1,
.info-card h2,
.work-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
}

.intro-panel h1,
.works-page-intro h1 {
  max-width: 800px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.94;
}

.intro-panel p:last-child,
.works-page-intro p:last-child,
.info-card p:last-child,
.lead,
.work-content p {
  color: var(--muted);
  line-height: 1.8;
}

.kicker {
  margin: 0;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-section,
.works-section {
  margin-top: 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}

.section-heading > span {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  color: #0a0c0e;
  background: var(--pink);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #3f3f3f;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: 0;
  padding-bottom: 18px;
}

.featured-scroller {
  --featured-column-width: 220px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-scroller::-webkit-scrollbar {
  display: none;
}

.featured-track {
  --featured-gap: 14px;
  display: flex;
  gap: var(--featured-gap);
  width: max-content;
  padding-bottom: 10px;
}

.featured-column {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--featured-gap);
  width: var(--featured-column-width);
  min-width: var(--featured-column-width);
  max-width: var(--featured-column-width);
  padding-bottom: 6px;
}

.featured-card,
.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-2);
  box-shadow: 4px 4px 0 #3f3f3f;
}

.featured-card a,
.work-card a {
  position: relative;
  display: block;
  color: #f7f4ef;
  text-decoration: none;
}

.work-card a {
  min-height: 250px;
}

.featured-card-image,
.work-card-image {
  width: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.featured-card-image {
  height: 180px;
}

.work-card-image {
  height: 250px;
}

.featured-card:hover img,
.work-card:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.featured-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 5, 7, 0.9), rgba(2, 5, 7, 0.18) 42%, rgba(2, 5, 7, 0) 72%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.featured-card:hover a::after,
.featured-card:focus-within a::after {
  opacity: 1;
}

.featured-card-title {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  color: #f8f2ea;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.featured-card:hover .featured-card-title,
.featured-card:focus-within .featured-card-title {
  opacity: 1;
  transform: translateY(0);
}

.work-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 5, 7, 0.9), rgba(2, 5, 7, 0.08) 65%);
}

.work-card-index {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-size: 1.35rem;
  font-weight: 500;
}

.work-card-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  gap: 5px;
}

.work-card-label strong {
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.work-card-label small {
  color: #cdd5d3;
  font-size: 0.82rem;
}

.media-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: none;
  border-radius: 999px;
  color: #0b0e10;
  background: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.featured-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(34, 34, 34, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(245, 245, 245, 0.92);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, background 0.18s ease;
}

.featured-carousel:has(.featured-scroller:hover) .featured-nav,
.featured-carousel:has(.featured-nav:hover) .featured-nav,
.featured-carousel:focus-within .featured-nav {
  opacity: 1;
  pointer-events: auto;
}

.featured-nav:hover {
  background: rgba(91, 226, 199, 0.26);
}

.featured-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-nav-prev {
  left: 14px;
}

.featured-nav-next {
  right: 14px;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.hero-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 16px 22px;
  border: 1px solid rgba(34, 34, 34, 0.16);
  border-radius: 12px 28px 28px 12px;
  color: #1f1f1f;
  background: var(--mint);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #3f3f3f;
}

.filter-bar {
  display: flex;
  gap: 8px;
}

.filter-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.filter-button.is-active,
.filter-button:hover {
  color: #06100f;
  background: var(--mint);
}

.work-card[hidden] {
  display: none;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(34, 34, 34, 0.2);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.info-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.info-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.contact-card {
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 79, 155, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(224, 214, 246, 0.98), rgba(212, 224, 243, 0.96));
}

.work-page {
  padding-top: 24px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #1d7f72;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-header h1 {
  max-width: 960px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
}

.lead {
  max-width: 800px;
  margin: 18px 0 0;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 22px;
}

.gallery-strip img,
.work-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #d8d8d8;
}

.video-embed-group {
  display: grid;
  gap: 18px;
  margin: 28px 0 20px;
}

.video-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #dcdcdc;
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-embed video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.embed-link {
  margin: 20px 0;
}

.embed-link a {
  color: #1d7f72;
  font-weight: 800;
  text-decoration: none;
}

.work-content {
  max-width: 900px;
}

.work-content h1,
.work-content h2,
.work-content h3 {
  color: var(--ink);
}

.work-content a {
  color: #1d7f72;
}

.work-figure {
  margin: 28px 0;
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100%, calc(100% - 32px));
    padding: 20px 0 32px;
  }

  .work-grid,
  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .site-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 14px;
  }

  .site-header,
  .site-nav,
  .section-heading,
  .filter-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-nav {
    margin-left: 0;
  }

  .intro-panel,
  .works-page-intro {
    padding: 20px;
  }

  .work-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .featured-nav {
    display: none;
  }

}
