:root {
  color-scheme: dark;
}

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

html {
  background: #0d0d0d;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow: auto;
  background: #0d0d0d;
  color: #f4f4f4;
  cursor: auto;
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    'Helvetica Neue',
    'Segoe UI',
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    'Malgun Gothic',
    sans-serif;
  line-height: 1.5;
  user-select: text;
}

.seo-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 0 clamp(1.25rem, 5vw, 5rem) 5rem;
  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(0, 255, 102, 0.055),
      transparent 28rem
    ),
    #0d0d0d;
}

.seo-shell a {
  color: inherit;
  text-underline-offset: 0.22em;
}

.seo-shell a:hover,
.seo-shell a:focus-visible {
  color: #00ff66;
}

.seo-site-header {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #303030;
}

.seo-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.seo-site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.seo-site-header nav a {
  color: #c9c9c9;
  font-size: 0.9rem;
  text-decoration: none;
}

.seo-breadcrumb {
  margin: 1.6rem 0 clamp(2.75rem, 7vw, 6rem);
  color: #a5a5a5;
  font-size: 0.82rem;
}

.seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-breadcrumb li:not(:last-child)::after {
  margin-left: 0.55rem;
  color: #5b5b5b;
  content: '/';
}

.seo-eyebrow {
  margin: 0 0 0.85rem;
  color: #00ff66;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-hero,
.seo-page-header {
  max-width: 70rem;
  margin-bottom: clamp(2.2rem, 6vw, 5rem);
}

.project-hero h1,
.seo-page-header h1,
.seo-prose--center h1 {
  max-width: 65rem;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.seo-page-header > p:last-child,
.seo-prose--center > p {
  max-width: 52rem;
  margin: 1.5rem 0 0;
  color: #c8c8c8;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.75;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 0.68fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.project-video,
.project-poster,
.project-video iframe,
.video-facade {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.project-video,
.project-poster {
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.project-video iframe {
  display: block;
  border: 0;
}

.project-poster img,
.video-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #050505;
  color: #fff;
  cursor: pointer;
}

.video-facade::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 48%, rgba(0, 0, 0, 0.7));
  content: '';
}

.video-facade__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(3.4rem, 8vw, 5.2rem);
  aspect-ratio: 1;
  place-items: center;
  padding-left: 0.25rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #00ff66;
  color: #050505;
  font-size: clamp(1rem, 3vw, 1.5rem);
}

.video-facade__label {
  position: absolute;
  z-index: 1;
  right: 1.1rem;
  bottom: 1rem;
  font-size: 0.85rem;
}

.video-facade:hover img,
.video-facade:focus-visible img {
  transform: scale(1.015);
}

.video-facade img {
  transition: transform 220ms ease;
}

.seo-meta {
  margin: 0;
  border-top: 1px solid #595959;
}

.seo-meta__row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #303030;
}

.seo-meta dt {
  color: #969696;
  font-size: 0.87rem;
}

.seo-meta dd {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.seo-prose,
.seo-related {
  max-width: 75rem;
  margin: clamp(3rem, 8vw, 7rem) 0;
}

.seo-prose h2,
.seo-related h2,
.seo-info-grid h2,
.seo-cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.seo-prose p,
.seo-related > p,
.seo-info-grid p,
.seo-cta p {
  max-width: 58rem;
  margin: 0.75rem 0;
  color: #c5c5c5;
  line-height: 1.8;
}

.seo-prose .seo-todo {
  color: #8d8d8d;
  font-size: 0.9rem;
}

.seo-chip-list,
.seo-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.seo-chip-list li,
.seo-link-list a {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border: 1px solid #444;
  border-radius: 999px;
  color: #dedede;
  font-size: 0.88rem;
  text-decoration: none;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.seo-card-grid--directory {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-project-index {
  max-width: 80rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid #3b3b3b;
  list-style: none;
  counter-reset: project-index;
}

.seo-project-index li {
  display: grid;
  grid-template-columns: 3.25rem minmax(15rem, 1fr) minmax(12rem, 0.8fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid #292929;
  counter-increment: project-index;
}

.seo-project-index li::before {
  color: #737373;
  content: counter(project-index, decimal-leading-zero);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.seo-project-index a {
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  text-decoration: none;
}

.seo-project-index span {
  color: #929292;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: right;
}

.seo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2f2f2f;
  background: #131313;
}

.seo-card--text {
  min-height: 15rem;
}

.seo-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080808;
}

.seo-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.seo-card__image:hover img {
  transform: scale(1.025);
}

.seo-card__body {
  padding: 1.2rem;
}

.seo-card h2 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
}

.seo-card h2 a {
  text-decoration: none;
}

.seo-card p {
  margin: 0.8rem 0 0;
  color: #9f9f9f;
  font-size: 0.86rem;
  line-height: 1.65;
}

.seo-card__links a {
  color: #bdbdbd;
}

.seo-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 80rem;
  margin: clamp(3rem, 7vw, 6rem) 0;
  background: #383838;
  border: 1px solid #383838;
}

.seo-info-grid section {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: #111;
}

.seo-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 1.5rem 0 0;
  padding: 1px;
  background: #383838;
  list-style: none;
  counter-reset: process;
}

.seo-process li {
  min-height: 10rem;
  padding: 1.2rem;
  background: #111;
  counter-increment: process;
}

.seo-process li::before {
  display: block;
  margin-bottom: 2rem;
  color: #00ff66;
  content: '0' counter(process);
  font-size: 0.8rem;
}

.seo-process strong,
.seo-process span {
  display: block;
}

.seo-process span {
  margin-top: 0.7rem;
  color: #aaa;
  font-size: 0.86rem;
  line-height: 1.6;
}

.seo-cta {
  display: flex;
  max-width: 80rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(4rem, 10vw, 9rem) 0 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #3b3b3b;
  background: #151515;
}

.seo-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 1.25rem;
  border-radius: 999px;
  background: #00ff66;
  color: #050505 !important;
  font-weight: 600;
  text-decoration: none;
}

.seo-back,
.seo-notice {
  color: #aaa;
}

.seo-notice {
  max-width: 58rem;
  margin: 2rem 0;
  padding: 1.25rem;
  border-left: 2px solid #00ff66;
  background: #151515;
  line-height: 1.7;
}

.seo-notice .seo-button {
  margin-top: 0.6rem;
}

.seo-prose--center {
  max-width: 55rem;
  margin: clamp(4rem, 12vw, 10rem) auto;
  text-align: center;
}

.seo-prose--center h1 {
  font-size: clamp(2.25rem, 6vw, 5rem);
}

.seo-prose--center > p,
.seo-prose--center .seo-button {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 1050px) {
  .project-layout,
  .seo-info-grid {
    grid-template-columns: 1fr;
  }

  .seo-card-grid--directory,
  .seo-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .seo-shell {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .seo-site-header {
    min-height: 4.5rem;
  }

  .seo-site-header nav {
    gap: 0.8rem;
  }

  .seo-site-header nav a {
    font-size: 0.78rem;
  }

  .seo-breadcrumb {
    margin-bottom: 3rem;
  }

  .seo-card-grid--directory,
  .seo-card-grid,
  .seo-process {
    grid-template-columns: 1fr;
  }

  .seo-project-index li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .seo-project-index span {
    grid-column: 2;
    text-align: left;
  }

  .seo-process li {
    min-height: auto;
  }

  .seo-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .video-facade img,
  .seo-card__image img {
    transition: none;
  }
}
