:root {
  color-scheme: light;
  --bg: #f4f4f4;
  --panel: #ffffff;
  --text: #121212;
  --muted: #898989;
  --border-strong: rgba(20, 17, 14, 0.18);
  --outer-gap: clamp(28px, 4vw, 64px);
  --type-title: clamp(2.2rem, 4vw, 3rem);
  --type-heading: clamp(1.8rem, 3.2vw, 2.4rem);
  --type-subheading: clamp(1.15rem, 2vw, 1.35rem);
  --type-body: 1rem;
  --type-body-large: clamp(1rem, 2vw, 1.1rem);
  --type-small: 0.9rem;
  --type-tag: clamp(1rem, 2.4vw, 1.1rem);
}

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

html {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "source-han-sans-korean", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Align typography scale to About page */
.section-title {
  
  font-family: inherit;
  font-weight: 700;
  line-height: 1.05;
}

.section-heading {
  
  font-family: inherit;
  font-weight: 700;
  line-height: 1.3;
}

.tagline {
  
  font-family: inherit;
  font-weight: 700;
}

.section-description,
.poster-caption p,
.card span {
  
  line-height: 1.7;
}

.poster-caption strong,
.card strong {
  
  font-family: inherit;
  font-weight: 700;
}

.section-notice,
.poster-download {
  
}

main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 4rem clamp(48px, 4vw, 120px)
    var(--work-bottom-gap, clamp(60px, 8vw, 100px));
  display: flex;
  flex-direction: column;
  gap: 120px;
}

main.work-page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 4rem 4vw var(--work-bottom-gap, clamp(60px, 8vw, 100px));
}
.section {
  position: relative;
  scroll-margin-top: 60px;
}

.section-surface {
  background: var(--panel);
  border-radius: clamp(32px, 6vw, 48px);
  border: 2px solid var(--border-strong);
  box-shadow: 0 40px 90px rgba(16, 12, 8, 0.24);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: box-shadow 0.6s ease;
}

.section-connector {
  padding: clamp(20px, 8vw, 20px) 0;
  pointer-events: none;
}

.connector-surface {
  background: var(--panel);
  background-color: #ffffff;
  border-radius: clamp(32px, 6vw, 48px);
  border: 2px solid var(--border-strong);
  box-shadow: 0 28px 80px rgba(16, 12, 8, 0.18);
  padding: clamp(32px, 6vw, 48px);
  min-height: clamp(72px, 10vw, 120px);
  width: min(100%);
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.5s ease, box-shadow 0.6s ease;
}

.section-hero {
  border-radius: clamp(28px, 5vw, 40px);
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 5vw, 48px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
  background-image: var(--hero-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: clamp(320px, 52vw, 640px);
  position: relative;
  overflow: hidden;
}

.section-notice {
  --glass-highlight: rgba(255, 255, 255, 0.6);
  --glass-shadow: rgba(15, 20, 35, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  color: var(--notice-color);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.021) 45%,
      rgba(15, 20, 35, 0.056)
    ),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.0105)
    );
  background-blend-mode: lighten;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.126),
    inset 0 -12px 24px rgba(255, 255, 255, 0.021),
    0 24px 48px rgba(5, 10, 25, 0.084);
  position: relative;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: normal;
  
  text-transform: uppercase;
}

.section-notice::before,
.section-notice::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.4s ease;
}

.section-notice::before {
  background: radial-gradient(
    circle at 20% -10%,
    rgba(255, 255, 255, 0.168) 0%,
    rgba(255, 255, 255, 0.014) 10%
  );
}

.section-notice::after {
  background: radial-gradient(
      circle at 80% 120%,
      rgba(255, 255, 255, 0.056) 0%,
      rgba(255, 255, 255, 0) 48%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0)
    );
  mix-blend-mode: screen;
}

.section-notice:hover::before,
.section-notice:hover::after {
  opacity: 1;
}

.section-notice__count {
  font-variant-numeric: tabular-nums;
}

.section-hero__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 24px);
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  
  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 900;
  font-style: normal;
  color: var(--title-color);
  line-height: 0.92;
  text-shadow: 0 4px 12px rgba(10, 12, 20, 0.6);
}

.section-hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
 border: 1px solid transparent;
 color: #131313;
 font-family: "source-han-sans-korean", sans-serif;
 font-weight: 600;
 font-style: normal;
 
 text-decoration: none;
 text-transform: uppercase;
 background: rgba(255, 255, 255, 0.92);
 box-shadow: 0 12px 28px rgba(10, 10, 10, 0.22);
 transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease,
     transform 0.3s ease;
 margin-left: auto;
}

.section-hero__cta::after {
  content: "→";
  
}

.section-hero__cta:hover,
.section-hero__cta:focus-visible {
  color: var(--hero-text, #ffffff);
  background: rgba(22, 22, 22, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.section-body {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  padding: clamp(32px, 6vw, 52px);
  border-radius: clamp(24px, 5vw, 36px);
  border: 2px solid rgba(20, 17, 14, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.8vw, 30px);
  max-width: 640px;
}

.tagline {
  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 900;
  font-style: normal;
  
  text-transform: uppercase;
  color: rgba(20, 17, 14, 0.55);
}

.section-heading {
  margin: 0;
  
  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
}

.section-description {
  margin: 0;
  padding-top: clamp(24px, 4vw, 30px);
  border-top: 2px solid rgba(20, 17, 14, 0.18);
  
  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 5.5px;
}

@media (min-width: 1100px) {
  .section-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }
}

.card {
  position: relative;
  padding: clamp(24px, 3.5vw, 32px);
  border-radius: clamp(28px, 5vw, 44px);
  background-color: #ffffff;
  background-image: linear-gradient(
      150deg,
      #ffffff 0%,
      #ffffff 42%,
      rgba(75, 106, 255, 0.02) 72%,
      rgba(75, 106, 255, 0.18) 100%
    );
  color: #17253d;
  border: 1px solid rgba(75, 106, 255, 0.08);
  box-shadow: 0 32px 72px rgba(17, 24, 39, 0.16);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
  min-height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 0;
}

@supports (color: color-mix(in srgb, #000, #fff)) {
  .card {
    background-image: linear-gradient(
        150deg,
        #ffffff 0%,
        #ffffff 42%,
        color-mix(in srgb, var(--card-accent, #4b6aff) 2%, #ffffff) 72%,
        color-mix(in srgb, var(--card-accent, #4b6aff) 18%, #ffffff) 100%
      );
    border: 1px solid color-mix(
      in srgb,
      var(--card-accent, #4b6aff) 8%,
      #ffffff 92%
    );
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
      125% 120% at 12% 0%,
      rgba(255, 255, 255, 0.75) 0%,
      transparent 54%
    ),
    radial-gradient(
      110% 120% at 90% 100%,
      color-mix(in srgb, var(--card-accent, #4b6aff) 2%, transparent) 0%,
      transparent 68%
    );
  opacity: 0.8;
  z-index: -1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 44px 92px rgba(17, 24, 39, 0.22);
}

.card strong {
  display: block;
  margin: 0;
  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 700;
  font-style: normal;
  
  color: #111a2f;
}

.card span {
  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 400;
  font-style: normal;
  
  color: rgba(23, 37, 61, 0.72);
  line-height: 1.75;
}

footer {
  margin: clamp(48px, 12vh, 96px) var(--outer-gap) 40px;
  
  color: rgba(16, 12, 8, 0.5);
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  :root {
    --outer-gap: clamp(22px, 6vw, 36px);
  }

  main {
    padding-top: 0;
    --work-bottom-gap: clamp(60px, 8vw, 100px);
  }

  main.work-page {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .section {
    scroll-margin-top: calc(var(--outer-gap) + 72px);
  }

  .section-surface {
    padding: 36px;
    gap: 32px;
    border-radius: 28px;
  }

  .section-hero {
    padding: 32px;
    gap: 32px;
  }

  .section-body {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .section-title {
    
  }

  .section-heading {
    
  }

  .section-description {
    
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1024px) and (min-width: 721px) {
  main {
    padding-top: 0;
    --work-bottom-gap: clamp(60px, 8vw, 100px);
  }

  main.work-page {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

@media (max-width: 768px) {
  :root {
    --outer-gap: clamp(16px, 6vw, 24px);
  }

  main {
    padding-top: 0;
    --work-bottom-gap: clamp(60px, 8vw, 100px);
  }

  main.work-page {
    padding-left: clamp(24px, 6vw, 32px);
    padding-right: clamp(24px, 6vw, 32px);
  }

  .section {
    scroll-margin-top: 132px;
  }

  .section-surface {
    padding: 28px;
    gap: 24px;
    border-radius: 22px;
  }

  .section-hero {
    padding: 24px;
    gap: 24px;
    border-radius: 22px;
  }

  .section-title {
    
  }

  .section-hero__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-hero__cta {
    align-self: flex-end;
    margin-top: 8px;
    margin-left: 0;
    display: none;
  }

  .section-body {
    padding: 24px;
    border-radius: 20px;
  }

  .section-heading {
    
  }

  .section-description {
    
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
/* Scroll-to-top button */
.scroll-top-button {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 57px;
  height: 57px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, #3d3d3d, #000000);
  color: rgba(255, 255, 255, 0.75);
  
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(10, 0, 10, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.scroll-top-button svg {
  width: 80%;
  height: 80%;
}

.scroll-top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 720px) {
  .scroll-top-button {
    display: none;
  }
}

@media (max-width: 1024px) and (min-width: 721px) {
  .scroll-top-button {
    bottom: clamp(20px, calc(10px - 3vh), 10px);
  }
}
