﻿:root {
  --bg-main: #eef8f7;
  --bg-soft: #fff7f1;
  --surface: rgba(255, 255, 255, 0.82);
  --line-soft: rgba(11, 127, 132, 0.16);
  --line-strong: rgba(11, 127, 132, 0.42);
  --teal: #17bfc2;
  --teal-deep: #0d666c;
  --salmon: #f4a09d;
  --ink: #173f43;
  --muted: #5c7677;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(13, 102, 108, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(23, 191, 194, 0.18), transparent 30%),
    linear-gradient(320deg, rgba(244, 160, 157, 0.26), transparent 28%),
    linear-gradient(180deg, var(--bg-main), var(--bg-soft));
}

.site-frame {
  position: fixed;
  inset: 18px;
  border: 3px solid var(--white);
  pointer-events: none;
  z-index: 30;
}

.eyebrow,
.project-order,
.meta-label,
.screen-index,
.slide-kicker,
.slide-step,
.keyword-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--teal-deep);
}

.tag-row,
.bullet-list,
.screen-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row li,
.screen-meta li {
  border: 1px solid var(--line-soft);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.landing-page {
  overflow: hidden;
}

.landing-stage {
  min-height: 100vh;
  padding: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.showcase-shell {
  position: relative;
  width: min(1280px, 100%);
  height: min(680px, calc(100vh - 120px));
  min-height: 600px;
  padding: 34px 92px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.26)),
    linear-gradient(160deg, rgba(23, 191, 194, 0.12), rgba(244, 160, 157, 0.1));
  box-shadow:
    0 28px 60px rgba(13, 102, 108, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(118%);
  overflow: hidden;
  cursor: default;
}

.showcase-shell::before,
.showcase-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.showcase-shell::before {
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.showcase-shell::after {
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(23, 191, 194, 0.18), transparent 68%);
}

.viewer-window {
  position: relative;
  height: 100%;
}

.viewer-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 400ms;
}

.viewer-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease, visibility 0s;
}

.viewer-slide.is-active .slide-split {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: blur(0);
}

.viewer-slide.is-entering {
  visibility: visible;
}

.viewer-slide.is-entering .slide-split {
  transform: translate3d(64px, 0, 0) scale(0.985);
  opacity: 0;
  filter: blur(8px);
}

.viewer-slide.is-leaving {
  opacity: 0;
  visibility: visible;
}

.viewer-slide.is-leaving .slide-split {
  transform: translate3d(-56px, 0, 0) scale(0.985);
  opacity: 0;
  filter: blur(8px);
}

.slide-split {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  transform: translate3d(18px, 0, 0) scale(0.992);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 270ms ease,
    filter 300ms ease;
}

.slide-copy,
.slide-visual {
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(23, 191, 194, 0.04);
}

.slide-copy {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 28px;
}

.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.slide-body {
  align-self: center;
  display: grid;
  gap: 20px;
}

.viewer-slide h1,
.viewer-slide h2 {
  margin: 0;
  font-size: clamp(2.33rem, 4.2vw, 4.63rem);
  line-height: 0.92;
  font-weight: 700;
}

.viewer-slide--intro h1 {
  max-width: 520px;
}

.slide-summary,
.lead-copy,
.screen-description,
.back-link,
.project-note,
.bullet-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.slide-summary {
  max-width: 440px;
  font-size: 1.05rem;
}

.slide-summary--intro {
  max-width: 470px;
}

.keyword-block {
  display: grid;
  gap: 12px;
}

.slide-visual {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(140deg, rgba(23, 191, 194, 0.06), transparent 44%),
    linear-gradient(320deg, rgba(244, 160, 157, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.16);
}

.visual-surface {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(23, 191, 194, 0.05);
}

.visual-surface::before,
.visual-surface::after {
  content: "";
  position: absolute;
}

.visual-surface::before {
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.visual-surface::after {
  inset: 0;
  background:
    linear-gradient(140deg, rgba(23, 191, 194, 0.16), transparent 38%),
    linear-gradient(320deg, rgba(244, 160, 157, 0.16), transparent 34%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 14px,
      rgba(23, 191, 194, 0.05) 14px,
      rgba(23, 191, 194, 0.05) 28px
    );
}

.visual-surface--intro::after {
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 160, 157, 0.32), transparent 22%),
    radial-gradient(circle at 68% 40%, rgba(23, 191, 194, 0.24), transparent 24%),
    linear-gradient(140deg, rgba(23, 191, 194, 0.14), transparent 38%),
    linear-gradient(320deg, rgba(244, 160, 157, 0.14), transparent 34%);
}

.visual-surface--planter::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 18%, transparent 18%, transparent 82%, rgba(255, 255, 255, 0.16) 82%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 22%, transparent 22%, transparent 78%, rgba(255, 255, 255, 0.16) 78%),
    radial-gradient(circle at 50% 32%, rgba(23, 191, 194, 0.18), transparent 16%);
}

.visual-gallery {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.visual-gallery--single {
  align-items: center;
  justify-items: center;
}

.visual-gallery--single .visual-image {
  width: 100%;
  height: auto;
  max-height: 80%;
  justify-self: center;
  align-self: center;
  object-fit: contain;
}

.visual-gallery--triptych {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.visual-gallery--triptych .visual-image {
  height: auto;
  max-height: 78%;
  align-self: center;
  object-fit: contain;
}

.visual-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 24px rgba(13, 102, 108, 0.12);
}

.viewer-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-deep);
  box-shadow:
    0 14px 30px rgba(13, 102, 108, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-size: 2.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 220ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease;
  z-index: 3;
}

.viewer-control--prev {
  left: 24px;
}

.viewer-control--next {
  right: 24px;
}

.viewer-control:hover,
.viewer-control:focus-visible {
  background: var(--teal);
  color: var(--white);
}

.viewer-control--prev:hover,
.viewer-control--prev:focus-visible {
  transform: translateY(-50%) translateX(-4px);
}

.viewer-control--next:hover,
.viewer-control--next:focus-visible {
  transform: translateY(-50%) translateX(4px);
}

.viewer-control.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.detail-page .page-shell {
  display: grid;
  gap: 24px;
}

.back-link {
  width: fit-content;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  background: var(--white);
  border-color: var(--teal);
  color: var(--teal-deep);
}

.project-hero,
.content-panel,
.screens-panel {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-hero {
  display: grid;
  gap: 14px;
  padding: 40px;
  background:
    linear-gradient(90deg, rgba(23, 191, 194, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.78);
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  font-weight: 700;
}

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

.content-panel {
  padding: 28px;
}

.panel-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.bullet-list {
  display: grid;
  gap: 10px;
}

.bullet-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.bullet-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.screens-panel {
  padding: 32px;
}

.screen-grid {
  display: grid;
  gap: 18px;
}

.screen-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.64);
}

.screen-copy {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.screen-copy h3 {
  margin: 0;
  font-size: 1.5rem;
}

.screen-shot {
  min-height: 240px;
  border-left: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(23, 191, 194, 0.08),
      rgba(23, 191, 194, 0.08) 12px,
      rgba(255, 255, 255, 0.55) 12px,
      rgba(255, 255, 255, 0.55) 24px
    );
  display: grid;
  place-items: center;
  padding: 20px;
}

.empty-shot {
  width: 100%;
  height: 100%;
  min-height: 196px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(244, 160, 157, 0.18), transparent 45%),
    linear-gradient(315deg, rgba(23, 191, 194, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--teal-deep);
}

.empty-shot span {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .landing-page {
    overflow: auto;
  }

  .landing-stage {
    padding: 22px;
  }

  .showcase-shell {
    min-height: 620px;
    height: auto;
    padding: 24px 24px 108px;
  }

  .slide-split,
  .content-grid,
  .screen-card {
    grid-template-columns: 1fr;
  }

  .viewer-window {
    min-height: 720px;
  }

  .viewer-control {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .viewer-control--prev {
    left: 24px;
  }

  .viewer-control--next {
    right: 24px;
  }

  .viewer-control--prev:hover,
  .viewer-control--prev:focus-visible {
    transform: translateX(-4px);
  }

  .viewer-control--next:hover,
  .viewer-control--next:focus-visible {
    transform: translateX(4px);
  }

  .screen-shot {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 640px) {
  .site-frame {
    inset: 10px;
  }

  .viewer-slide h1,
  .viewer-slide h2,
  .project-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .slide-copy,
  .slide-visual,
  .project-hero,
  .content-panel,
  .screens-panel {
    padding: 22px;
  }

  .slide-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell {
    width: min(100% - 36px, 1120px);
    padding: 56px 0 72px;
  }

  .screen-copy {
    padding: 22px;
  }
}
