@charset "UTF-8";
/* Astryx Neutral 0.6.6 is loaded first, unmodified.
   These are project aliases and the user's typography overrides. */
@font-face {
  font-family: Pretendard;
  src: url("../fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "ONE Mobile";
  src: url("../fonts/ONE-Mobile-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ONE Mobile";
  src: url("../fonts/ONE-Mobile-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "ONE Mobile Title";
  src: url("../fonts/ONE-Mobile-Title.woff") format("woff"), url("../fonts/ONE-Mobile-Title.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-Bold.woff") format("woff"), url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root, [data-astryx-theme=neutral] {
  --font-family-body: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-heading: var(--font-family-body);
  --text-body-size: 1rem;
  --font-portfolio: "ONE Mobile Title", Pretendard, sans-serif;
  --gutter: 3rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --page-bg: #fafafa;
  --ink: var(--color-text-primary, #161616);
  --muted: var(--color-text-secondary, #717171);
  --line: var(--color-border-emphasized, #dedede);
  --surface: var(--color-background-muted, #f0f0f0);
  --on-surface: var(--color-background-surface, #fff);
  --blue: var(--color-text-blue, #0077FF);
  color-scheme: light;
}

[data-mode=dark] {
  color-scheme: dark;
  --page-bg: #0a0a0a;
}

/* Layout width: full viewport with internal gutters (no width + margin overflow).
   Mobile <=767 · Tablet 768–1279 · Desktop 1280–1919 · Wide >=1920. */
@media (min-width: 768px) and (max-width: 1279px) {
  :root, [data-astryx-theme=neutral] {
    --gutter: 40px;
  }
}
@media (max-width: 767px) {
  :root, [data-astryx-theme=neutral] {
    --gutter: 16px;
  }
}
/* 01. Base / accessibility */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
}

body, button, a {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
  color: inherit;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 650;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button, a {
  touch-action: manipulation;
}

button {
  border: 0;
  background: none;
}

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

::selection {
  background: #c4f2db;
  color: #101010;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: var(--page-bg);
  padding: 12px 20px;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  padding-inline: var(--gutter);
  max-width: none;
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-block: 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 15px;
  font-size: 13px;
}

.icon-spark {
  font-size: 29px;
  line-height: 1;
  display: inline-block;
  font-family: Arial, sans-serif;
}

/* 02. Shared header. Compact navigation stays visible on mobile. */
.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

/* Figma image 21: ONE Mobile Title Regular 24 / 140% / +4%. */
.site-header .brand {
  font-family: "ONE Mobile Title", Pretendard, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-synthesis: none;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current=page] {
  color: var(--ink);
}

.nav-number {
  vertical-align: super;
  font-size: 10px;
  padding-left: 3px;
}

.site-header .icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

/* 03. Home hero: three phrases move up inside one clipping window. */
/* User revision: tighter home spacing. Negative padding is invalid CSS;
   zero preserves the uploaded CSS's effective padding. */
.home-hero {
  margin-top: -40px;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 12px;
}

/* Figma image 23: Poppins Bold 128 / 140% / 0%. Keep the full line box
   available to the three animated phrases so their glyphs are not clipped. */
.hero-rotator {
  overflow: hidden;
  position: relative;
  height: 1.4em;
  font-family: Poppins, Pretendard, sans-serif;
  font-size: 128px;
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 700;
  font-synthesis: none;
  color: #fff;
}

.hero-phrase {
  display: block;
  position: absolute;
  inset: 0;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 1.05s var(--ease-out), opacity 0.75s;
  white-space: nowrap;
}
.hero-phrase.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero-phrase.is-leaving {
  opacity: 0;
  transform: translateY(-115%);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-top: 12px;
  gap: 24px;
}

/* Figma image 25 (2): Pretendard Bold 36 / 140% / -4%. */
.hero-description {
  font-family: Pretendard, sans-serif;
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-aside {
  justify-self: end;
  display: flex;
  align-items: end;
  gap: 38px;
}
.hero-aside p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.motion-button {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 12px;
  min-height: 38px;
  white-space: nowrap;
  transition: background 0.2s;
}
.motion-button:hover {
  background: var(--surface);
}

.hero-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.hero-dots span {
  height: 3px;
  width: 15px;
  background: #555;
  transition: width 0.5s, background 0.5s;
}
.hero-dots span.is-active {
  width: 35px;
  background: var(--ink);
}

/* 04. Portfolio grid: user revision: six / three / two columns. */
.work-section {
  padding-bottom: 120px;
}

.work-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 23px;
}
.work-toolbar h2 {
  font-family: "ONE Mobile Title", Pretendard, sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.work-toolbar h2 span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-button {
  min-height: 36px;
  padding: 5px 15px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 13px;
  color: var(--muted);
}
.filter-button[aria-pressed=true] {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.filter-button:hover {
  color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 4px;
}

.project-card {
  min-width: 0;
  position: relative;
  aspect-ratio: 0.7;
  border-radius: 9px;
  overflow: hidden;
  isolation: isolate;
  background: #242424;
  color: #fff;
  transition: transform 0.6s var(--ease-out);
}
.project-card[hidden] {
  display: none;
}
.project-card:hover {
  transform: translateY(-7px);
}
.project-card:hover .card-image {
  transform: scale(1.06);
  filter: saturate(1.06);
}
.project-card:hover .card-open {
  opacity: 1;
  transform: translate(0, 0);
}
.project-card:focus-visible {
  outline-offset: 4px;
}

.card-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.85s var(--ease-out), filter 0.85s;
}

.project-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.12) 46%, rgba(0, 0, 0, 0.85) 100%);
}

.card-open {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #111;
  border-radius: 100px;
  font-size: 12px;
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.35s;
}

.card-body {
  position: absolute;
  z-index: 1;
  bottom: 17px;
  left: 15px;
  right: 12px;
}
.card-body h3 {
  font-family: var(--font-portfolio);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  font-weight: 400;
  font-synthesis: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.card-body p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 5px;
}

/* Three reference footer variants. Each logo has its own circular surface. */
.card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.card-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  color: #f5f5f5;
  font: 650 11px/1.4 var(--font-family-body);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.card-tool-list {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.card-tool {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}
.card-tool img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.card-footer--solid .card-category {
  background: #fff;
  border-color: #fff;
  color: #171717;
}

.card-footer--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.card-footer--stacked .card-category {
  border-radius: 999px;
  padding-inline: 10px;
}
.card-footer--stacked .card-tool {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-footer--stacked .card-tool[data-tool=chatgpt] img, .card-footer--stacked .card-tool[data-tool=cursor] img {
  filter: brightness(0) invert(1);
}

.card-footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

/* 05. About and the shared animated footer. */
.about-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding-block: 86px 110px;
  border-top: 1px solid var(--line);
  gap: 40px;
}
.about-section h2 {
  max-width: 860px;
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.32;
  letter-spacing: -0.025em;
}
.about-section p {
  color: var(--muted);
  max-width: 660px;
  margin-top: 28px;
  font-size: 17px;
}

.about-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.site-footer {
  background: #171717;
  color: #f5f5f5;
  padding-block: 64px 24px;
  overflow: hidden;
  --line: #383838;
  --muted: #a0a0a0;
}

.footer-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.footer-heading {
  font-size: clamp(40px, 6.5vw, 104px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-block: 24px 46px;
}

.footer-spark {
  font-size: clamp(50px, 8vw, 130px);
  line-height: 1;
  animation: slow-turn 24s linear infinite;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.back-top {
  font-size: 13px;
  border-bottom: 1px solid #777;
  padding: 4px 0;
}

@keyframes slow-turn {
  to {
    transform: rotate(360deg);
  }
}
/* 06. Case study hero and editorial content. */
.case-hero {
  position: relative;
  padding-top: 18px;
}

.case-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.case-cover {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e7e7e7;
  height: min(60vw, 660px);
  min-height: 360px;
}
.case-cover img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.case-cover.city-cover img {
  object-position: center 48%;
}

.case-cover:not(.city-cover) {
  background: var(--project-color, #e6e6e6);
}
.case-cover:not(.city-cover) img {
  object-fit: contain;
  padding: 24px;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.1333333333));
}

.case-title-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 1;
  padding-block: 28px 45px;
  border-bottom: 1px solid var(--line);
}

.case-title {
  font-size: clamp(50px, 9vw, 144px);
  letter-spacing: -0.06em;
  font-weight: 750;
  line-height: 1.12;
  word-break: keep-all;
}

.case-subtitle {
  max-width: 280px;
  font-size: 15px;
  color: var(--muted);
  padding-bottom: 10px;
}

.case-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-block: 96px;
}

.project-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  font-size: 13px;
  align-content: start;
}
.project-meta dt {
  color: var(--muted);
}
.project-meta dd {
  margin: 0;
}

.overview-title {
  font-size: clamp(27px, 3vw, 48px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.overview-copy {
  color: var(--muted);
  font-size: 17px;
  max-width: 760px;
  margin-top: 25px;
  line-height: 1.9;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 100px;
}

.principle {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.principle .principle-number {
  font-size: 13px;
  color: var(--muted);
}
.principle h3 {
  font-size: 25px;
  margin-top: 25px;
}
.principle p {
  margin-top: 15px;
  max-width: 360px;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: clamp(28px, 3.8vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.section-heading p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 15px;
  max-width: 660px;
}

/* 07. Autoplay windows. Only the inner viewport scrolls, never the page. */
.showcase-section {
  padding-block: 84px;
  border-top: 1px solid var(--line);
}

.showcase {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  background: var(--page-bg);
}

.showcase-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.window-dots {
  display: flex;
  gap: 5px;
}
.window-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
}

.showcase-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.auto-state {
  color: var(--muted);
}

.autoplay-toggle {
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  min-height: 34px;
}

.auto-viewport {
  height: clamp(390px, 49vw, 690px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
  position: relative;
}

.auto-content {
  padding: 32px;
}

.auto-panel {
  margin-bottom: 30px;
}
.auto-panel:last-child {
  margin-bottom: 0;
}

.showcase-progress {
  height: 2px;
  background: var(--line);
}
.showcase-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  width: 0;
}

.showcase-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
  font-size: 13px;
  color: var(--muted);
}

/* 08. Actual HTML interface studies, not flattened screenshots. */
.product-window {
  color: #212121;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.0235294118);
}

.demo-nav {
  padding: 22px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.demo-nav strong {
  font-size: 17px;
  letter-spacing: -0.04em;
}
.demo-nav div {
  display: flex;
  gap: 22px;
  color: #777;
}

.demo-hero {
  position: relative;
  min-height: 320px;
  padding: 44px 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: #f6f6f4;
}
.demo-hero h3 {
  font-size: clamp(22px, 3vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.demo-hero p {
  font-size: 13px;
  color: #747474;
  margin-top: 14px;
}
.demo-hero img {
  height: 280px;
  object-fit: cover;
  mix-blend-mode: multiply;
  border-radius: 8px;
}

.demo-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 8px;
  background: #fff;
  padding: 13px 15px;
  border: 1px solid #ddd;
  margin-top: 24px;
  font-size: 12px;
  max-width: 330px;
  color: #888;
}

.demo-content {
  padding: 32px;
}
.demo-content h4 {
  font-size: 20px;
  margin-bottom: 20px;
}

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

.district-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}
.district-card strong {
  display: block;
  margin-top: 15px;
  font-size: 19px;
}
.district-card p {
  font-size: 12px;
  color: #888;
  margin: 6px 0 15px;
}

.demo-badge {
  display: inline-block;
  padding: 4px 9px;
  background: #f1f1f1;
  border-radius: 4px;
  font-size: 11px;
  color: #666;
}

.tiny-progress {
  height: 4px;
  border-radius: 4px;
  background: #eee;
}
.tiny-progress span {
  height: 100%;
  display: block;
  background: #333;
  border-radius: 4px;
}

.demo-detail-layout {
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 35px;
}
.demo-detail-layout h3 {
  font-size: 35px;
  margin-top: 20px;
}
.demo-detail-layout p {
  font-size: 14px;
  color: #777;
  margin-top: 14px;
}

.demo-timeline {
  padding: 24px;
  border-radius: 10px;
  background: #f5f5f5;
}

.timeline-item {
  padding: 18px 0 18px 25px;
  position: relative;
  border-left: 1px solid #ddd;
  font-size: 13px;
}
.timeline-item::before {
  position: absolute;
  content: "";
  width: 7px;
  height: 7px;
  background: #bbb;
  border-radius: 50%;
  left: -4px;
  top: 24px;
}
.timeline-item.current::before {
  background: #111;
}
.timeline-item span {
  color: #888;
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.demo-checklist {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}
.demo-checklist div {
  background: #f6f6f6;
  border-radius: 7px;
  padding: 14px;
  font-size: 13px;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
  padding: 35px 8%;
  background: #e8e8e8;
}

.phone {
  background: #fff;
  border: 5px solid #222;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1333333333);
  border-radius: 35px;
  padding: 18px 15px 22px;
  min-height: 430px;
  overflow: hidden;
  font-size: 11px;
}
.phone .island {
  width: 68px;
  height: 18px;
  background: #171717;
  border-radius: 100px;
  margin: -10px auto 22px;
}
.phone h4 {
  font-size: 20px;
  line-height: 1.4;
  margin: 24px 0 20px;
}
.phone .phone-line {
  height: 6px;
  background: #efefef;
  margin-block: 8px;
  border-radius: 3px;
}
.phone img {
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
}

.phone-metric {
  background: #f2f2f2;
  padding: 16px;
  border-radius: 10px;
  margin-top: 18px;
}
.phone-metric b {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.design-system {
  padding: 36px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #171717;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
.design-system h3 {
  font-size: 30px;
  margin-top: 24px;
}

.type-sample {
  font-size: clamp(50px, 8vw, 110px);
  line-height: 1.1;
  font-weight: 650;
  margin-block: 25px 15px;
}

.swatch-row {
  display: flex;
  margin-top: 26px;
}
.swatch-row .swatch {
  flex: 1;
  height: 110px;
  position: relative;
}
.swatch-row .swatch span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
}

.system-components {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}

.sample-button {
  background: #161616;
  color: #fff;
  padding: 11px 19px;
  font-size: 13px;
  border-radius: 8px;
}
.sample-button.secondary {
  background: #f1f1f1;
  color: #222;
}

.sample-field {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px;
  color: #888;
  font-size: 13px;
}

.generic-story {
  padding: 45px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
  color: #191919;
  border-radius: 10px;
}
.generic-story h3 {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.3;
}
.generic-story p {
  color: #777;
  margin-top: 20px;
}
.generic-story img {
  border-radius: 10px;
  max-height: 540px;
  object-fit: contain;
  background: #f1f1f1;
}

.next-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-block: 85px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.next-project h2 {
  font-size: clamp(38px, 5vw, 75px);
  letter-spacing: -0.04em;
  margin: 20px 0;
}
.next-project img {
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s var(--ease-out);
}
.next-project:hover img {
  transform: scale(0.98);
}

/* 09. Progressive enhancement: content is visible without JavaScript. */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
  width: 0;
  z-index: 30;
}

/* 10. Responsive layout */
@media (min-width: 1920px) {
  .project-grid {
    gap: 36px 4px;
  }
}
@media (max-width: 1279px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-rotator {
    font-size: clamp(64px, 9vw, 116px);
  }
  .hero-description {
    font-size: clamp(24px, 2.8125vw, 36px);
  }
  .hero-aside p {
    display: none;
  }
  .case-overview {
    gap: 32px;
  }
  .phone-gallery {
    gap: 18px;
    padding: 28px 5%;
  }
  .demo-detail-layout {
    padding: 28px;
    gap: 25px;
  }
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 25px;
  }
  .site-header {
    height: 76px;
    gap: 14px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .brand .icon-spark {
    font-size: 25px;
  }
  .site-header .brand {
    font-size: 18px;
  }
  .site-nav {
    font-family: "ONE Mobile Title", Pretendard, sans-serif;
    gap: 16px;
    font-size: 12px;
  }
  .site-nav .nav-number {
    display: none;
  }
  .home-hero {
    padding-top: 25px;
    padding-bottom: 38px;
  }
  .hero-topline {
    font-size: 10px;
    margin-bottom: 22px;
  }
  .hero-rotator {
    font-size: clamp(30px, 8.5vw, 64px);
  }
  .hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
  }
  .hero-description {
    font-size: clamp(22px, 5.8vw, 30px);
  }
  .hero-aside {
    gap: 0;
  }
  .motion-button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .hero-dots {
    margin-top: 10px;
  }
  .work-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    padding-block: 22px;
  }
  .filter-group {
    gap: 2px;
  }
  .filter-button {
    font-size: 12px;
    padding: 5px 12px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 4px;
  }
  .project-card {
    aspect-ratio: 0.7;
    border-radius: 7px;
  }
  .card-body {
    bottom: 13px;
    left: 11px;
    right: 10px;
  }
  .card-body p {
    font-size: 10px;
  }
  .card-footer {
    margin-top: 10px;
    gap: 5px;
  }
  .card-category {
    min-height: 22px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 5px;
  }
  .card-tool-list {
    gap: 3px;
  }
  .card-tool {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
  .card-tool img {
    width: 14px;
    height: 14px;
  }
  .card-footer--stacked {
    gap: 8px;
  }
  .card-footer--stacked .card-category {
    padding-inline: 8px;
  }
  .card-footer-row {
    gap: 5px;
  }
  .card-open {
    display: none;
  }
  .work-section {
    padding-bottom: 65px;
  }
  .about-section {
    grid-template-columns: 1fr;
    padding-block: 45px 65px;
    gap: 28px;
  }
  .about-section p {
    font-size: 16px;
  }
  .about-tags .pill {
    font-size: 12px;
    padding: 5px 12px;
  }
  .site-footer {
    padding-top: 40px;
  }
  .footer-top {
    gap: 12px;
  }
  .footer-heading {
    font-size: 10vw;
    margin: 25px 0 32px;
  }
  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 15px;
    font-size: 11px;
  }
  .footer-spark {
    font-size: 48px;
  }
  .case-hero {
    padding-top: 4px;
  }
  .case-topline {
    font-size: 11px;
    margin-bottom: 17px;
  }
  .case-cover {
    min-height: 0;
    height: 340px;
    border-radius: 8px;
  }
  .case-title-block {
    display: block;
    padding-block: 25px 30px;
  }
  .case-title {
    font-size: clamp(45px, 13vw, 78px);
  }
  .case-subtitle {
    margin-top: 18px;
    max-width: 100%;
    font-size: 14px;
  }
  .case-overview {
    grid-template-columns: 1fr;
    padding-block: 45px;
    gap: 35px;
  }
  .project-meta {
    font-size: 12px;
    grid-template-columns: 65px 1fr;
    gap: 8px;
  }
  .overview-copy {
    font-size: 16px;
  }
  .principles {
    grid-template-columns: 1fr;
    padding-bottom: 50px;
    gap: 28px;
  }
  .principle h3 {
    margin-top: 14px;
    font-size: 23px;
  }
  .principle p {
    max-width: none;
    font-size: 15px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .section-heading p {
    font-size: 15px;
  }
  .showcase-section {
    padding-block: 45px;
  }
  .showcase {
    border-radius: 8px;
  }
  .showcase-toolbar {
    padding: 10px 12px;
    gap: 10px;
  }
  .showcase-label {
    font-size: 11px;
    gap: 8px;
  }
  .showcase-tools {
    gap: 6px;
  }
  .auto-state, .window-dots {
    display: none;
  }
  .autoplay-toggle {
    font-size: 11px;
    padding: 4px 9px;
  }
  .auto-viewport {
    height: 490px;
  }
  .auto-content {
    padding: 12px;
  }
  .auto-panel {
    margin-bottom: 16px;
  }
  .showcase-caption {
    font-size: 11px;
  }
  .showcase-caption span:last-child {
    display: none;
  }
  .demo-nav {
    padding: 15px;
  }
  .demo-nav strong {
    font-size: 15px;
  }
  .demo-nav div {
    gap: 10px;
    font-size: 10px;
  }
  .demo-hero {
    padding: 24px 19px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .demo-hero h3 {
    font-size: 28px;
  }
  .demo-hero img {
    height: 180px;
  }
  .demo-search {
    font-size: 11px;
  }
  .demo-content {
    padding: 20px 15px;
  }
  .demo-content h4 {
    font-size: 17px;
  }
  .demo-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .district-card {
    padding: 17px;
  }
  .district-card strong {
    font-size: 17px;
    margin-top: 9px;
  }
  .demo-detail-layout {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .demo-detail-layout h3 {
    font-size: 29px;
  }
  .phone-gallery {
    grid-template-columns: 1fr;
    padding: 24px 15%;
    gap: 24px;
  }
  .phone {
    min-height: 420px;
  }
  .design-system {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 28px;
  }
  .type-sample {
    font-size: 68px;
  }
  .swatch-row .swatch {
    height: 90px;
  }
  .swatch-row .swatch span {
    font-size: 8px;
    left: 7px;
  }
  .generic-story {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 25px;
  }
  .generic-story p {
    font-size: 15px;
  }
  .next-project {
    grid-template-columns: 1fr;
    padding-block: 48px;
    gap: 25px;
  }
  .next-project img {
    height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
