/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --fg: #f4f2ee;
  --fg-dim: rgba(244, 242, 238, 0.62);
  --accent: #b0a3ff;
  --accent-rgb: 176, 163, 255;
  --border: rgba(244, 242, 238, 0.12);
  --font-kr: 'Pretendard', -apple-system, sans-serif;
  --font-en: 'Poppins', sans-serif;
}

:root[data-theme='light'] {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --fg: #16151a;
  --fg-dim: rgba(22, 21, 26, 0.62);
  --accent: #1700a2;
  --accent-rgb: 23, 0, 162;
  --border: rgba(22, 21, 26, 0.12);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-kr);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

/* ==========================================================================
   Layout: nav & footer
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}

.site-nav .logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  transition: color 0.2s ease;
}

.site-nav ul a:hover,
.site-nav ul a.active {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--fg-dim);
}

.theme-toggle-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: none;
}

.theme-toggle-icon-moon {
  display: block;
}

:root[data-theme='light'] .theme-toggle-icon-moon {
  display: none;
}

:root[data-theme='light'] .theme-toggle-icon-sun {
  display: block;
}

@media (max-width: 640px) {
  .site-nav-right {
    gap: 1rem;
  }
  .site-nav ul {
    gap: 1rem;
  }
  .site-nav a {
    font-size: 0.8rem;
  }
  .theme-toggle {
    width: 2rem;
    height: 2rem;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 6vw, 6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--fg-dim);
  font-size: 0.8rem;
}

/* ==========================================================================
   Shared components
   ========================================================================== */

section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 6vw, 6rem);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: transparent;
  border: 1px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
  background: var(--fg);
  color: var(--bg);
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sub-page hero banner: shared by Works / Project / Team, each overrides
   just the deltas in its own page section below. */

.page-hero {
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: 2rem;
}

.page-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-hero p {
  color: var(--fg-dim);
  margin: 0;
}

/* Scroll-reveal: elements fade/slide in via IntersectionObserver (reveal.js),
   staggered with the --i custom property set per item in markup. */

.js-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Page: Home
   ========================================================================== */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding:
    clamp(5rem, 8svh, 7.5rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(2rem, 4svh, 3.5rem);
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(23, 0, 162, 0.14), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(80, 100, 255, 0.08), transparent 70%),
    var(--bg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-align: center;
  max-width: min(90vw, 60rem);
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.hero-copy .eyebrow {
  font-size: clamp(0.7rem, 0.45vw + 0.55rem, 1rem);
  letter-spacing: 0.2em;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw + 0.9rem, 5.5rem);
  line-height: 1.15;
  margin: clamp(0.5rem, 1.2svh, 0.9rem) 0 clamp(0.75rem, 1.5svh, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-copy p {
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 0.85vw + 0.65rem, 1.45rem);
  margin: 0 auto;
  max-width: min(90%, 48rem);
  line-height: 1.55;
}

#hero-visual {
  position: relative;
  z-index: 1;
  flex-shrink: 1;
  width: min(88vw, 58svh, 960px);
  aspect-ratio: 1 / 1;
  margin-top: clamp(-0.5rem, -1svh, 0);
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#hero-visual.no-3d #hero-canvas {
  display: none;
}

#hero-visual.no-3d::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f3efe7, var(--accent) 140%);
  filter: blur(2px);
}

.scroll-cue {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: clamp(1rem, 2.5svh, 2rem);
  font-size: clamp(0.75rem, 0.45vw + 0.55rem, 1.05rem);
  color: var(--fg-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-cue span {
  width: 1px;
  height: clamp(24px, 3.5svh, 40px);
  background: linear-gradient(var(--fg-dim), transparent);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

#intro .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

#intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin: 0;
}

#intro p {
  color: var(--fg-dim);
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 720px) {
  #intro .section-inner {
    grid-template-columns: 1fr;
  }
}

#services {
  background: var(--bg-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--border);
}

.service-item {
  padding: 2rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.service-item .num {
  font-family: var(--font-en);
  color: var(--accent);
  font-size: 0.85rem;
}

.service-item h3 {
  font-size: 1.15rem;
  margin: 0.75rem 0 0.4rem;
}

.service-item p {
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin: 0;
}

#cta {
  text-align: center;
}

#cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

/* ==========================================================================
   Page: Works (grid + click-to-fullscreen transition overlay)
   ========================================================================== */

#works-hero p {
  max-width: 34rem;
}

#works-hero .section-inner,
#works-grid .section-inner {
  max-width: 1600px;
}

/* Thumbnails are shot on black, so keep this section black regardless of
   theme — otherwise a light theme leaves visible halos around the images. */
#works-grid {
  background: #0a0a0c;
}

#works-grid .work-card-media {
  background: #0a0a0c;
}

#works-grid .work-card-meta h3 {
  color: #f4f2ee;
}

#works-grid .work-card-meta p {
  color: rgba(244, 242, 238, 0.62);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-top: 2rem;
}

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  display: block;
}

.work-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card-media img {
  transform: scale(1.08);
}

.work-card-meta {
  padding: 1.1rem 0.1rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.work-card-meta h3 {
  font-size: 1.1rem;
  margin: 0;
}

.work-card-meta p {
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin: 0;
  text-align: right;
}

/* Project detail modal (works grid) — the fetched fragment reuses the same
   markup/classes as the standalone project page, so most of its styling
   below just falls into place. Only the spacing meant for a full page with
   a fixed nav needs trimming down to fit a panel. */

body.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.project-modal.is-open {
  display: block;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
}

.project-modal-dialog {
  position: relative;
  width: min(92vw, 960px);
  max-height: 88svh;
  margin: 6svh auto;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.project-modal-close {
  position: sticky;
  top: 1rem;
  margin-left: auto;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
  z-index: 1;
}

.project-modal-body {
  margin-top: -2.25rem;
  padding-bottom: 1rem;
}

.project-modal-body #project-hero.page-hero {
  padding-top: 1.5rem;
}

.project-modal-body section {
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.project-modal-body .project-cover {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .project-modal-dialog {
    width: 100vw;
    max-height: 100svh;
    margin: 0;
    border-radius: 0;
  }
}

/* ==========================================================================
   Page: Project detail
   ========================================================================== */

#project-hero {
  padding-bottom: 0;
}

#project-hero h1 {
  margin-bottom: 0.5rem;
}

.project-role {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  display: inline-block;
}

.project-cover {
  max-width: 1080px;
  width: 100%;
  margin: 3rem auto 0;
  padding: 0 clamp(1.25rem, 6vw, 6rem);
}

.project-cover img {
  width: 100%;
  border-radius: 4px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

@media (max-width: 720px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}

.gallery-item img {
  width: 100%;
  display: block;
}

.project-next-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.project-next-link {
  text-align: right;
}

.project-next-link .eyebrow {
  margin-bottom: 0.4rem;
}

.project-next-link h3 {
  font-size: 1.4rem;
  margin: 0;
  transition: color 0.2s ease;
}

.project-next-link:hover h3 {
  color: var(--accent);
}

/* ==========================================================================
   Page: Team / About
   ========================================================================== */

#team-hero .section-inner,
#team-business .section-inner,
#team-grid .section-inner,
#history .section-inner {
  max-width: 1600px;
}

#team-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.35;
}

#team-business {
  background: var(--bg-soft);
}

#team-business .eyebrow {
  margin-bottom: 0.75rem;
}

#team-business h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 2rem;
}

#team-grid .eyebrow {
  margin-bottom: 0.75rem;
}

#team-grid h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 2rem;
}

.team-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 720px) {
  .team-grid-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid-list {
    grid-template-columns: 1fr;
  }
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.team-card-media {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-soft);
}

.team-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.team-card:hover .team-card-media img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.team-card-meta h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.team-card-meta p {
  color: var(--fg-dim);
  font-size: 0.8rem;
  margin: 0;
}

#history {
  background: var(--bg-soft);
}

#history .eyebrow {
  margin-bottom: 0.75rem;
}

#history h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 2rem;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.history-item {
  display: grid;
  grid-template-columns: 5rem 10rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.history-year {
  font-family: var(--font-en);
  color: var(--accent);
  font-size: 0.85rem;
}

.history-client {
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.history-project {
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .history-item {
    grid-template-columns: 4rem 1fr;
    grid-template-areas:
      "year client"
      "project project";
  }
  .history-year {
    grid-area: year;
  }
  .history-client {
    grid-area: client;
  }
  .history-project {
    grid-area: project;
    margin-top: 0.3rem;
  }
}

/* ==========================================================================
   Page: Solution
   ========================================================================== */

.solution-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.cta-button-ghost {
  border-color: var(--border);
  color: var(--fg-dim);
}

.cta-button-ghost:hover {
  background: var(--bg-soft);
  color: var(--fg);
}

.solution-partners {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.solution-partners-label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  white-space: nowrap;
}

.solution-partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.solution-partner-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.solution-partner-logo img {
  height: 18px;
  width: auto;
}

#solution-pain {
  background: var(--bg-soft);
}

#solution-pain h2,
#solution-features h2,
#solution-benefits h2,
#solution-mobile h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  margin: 0.75rem 0 0.75rem;
}

.section-lead {
  color: var(--fg-dim);
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pain-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.pain-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.pain-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.pain-connect {
  margin: 2.5rem 0 0;
  color: var(--fg-dim);
}

.pain-connect strong {
  color: var(--fg);
}

.feature-row {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.feature-row:last-child {
  border-bottom: 1px solid var(--border);
}

.feature-tag {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.feature-row h3 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  max-width: 34rem;
}

.feature-row > p {
  color: var(--fg-dim);
  margin: 0 0 1rem;
  max-width: 34rem;
}

.feature-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

#solution-benefits {
  background: var(--bg-soft);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.benefit-value {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--accent);
}

.benefit-card h4 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.text-accent {
  color: var(--accent);
}

.mobile-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.mobile-feature-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
}

.mobile-feature-card h5 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.mobile-feature-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   Page: Contact
   ========================================================================== */

#contact-hero .section-inner,
#contact-form-section .section-inner {
  max-width: 1600px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-form-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin: 0 0 0.5rem;
}

.contact-form-lead {
  color: var(--fg-dim);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.contact-status {
  display: none;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.contact-status-success,
.contact-status-error {
  display: block;
}

.contact-status-success {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.contact-status-error {
  background: rgba(23, 0, 162, 0.12);
  color: var(--accent);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-form-grid .form-field {
  margin-bottom: 0;
  min-width: 0;
}

@media (max-width: 560px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.form-field-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.char-count {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--fg-dim);
  flex-shrink: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-dim);
  opacity: 0.7;
}

.form-field textarea {
  min-height: 9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.contact-submit {
  width: 100%;
  justify-content: center;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: clamp(0.5rem, 1vw, 1rem);
}

.contact-info-card + .contact-info-card {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}

.contact-info-card h4 {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info-card p {
  margin: 0;
  font-size: 1rem;
}

.contact-info-card p + p,
.contact-info-card p + .copy-email-button {
  margin-top: 0.35rem;
}

.copy-email-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.copy-email-hint {
  font-size: 0.75rem;
  color: var(--fg-dim);
  transition: color 0.2s ease;
}

.copy-email-button.is-copied .copy-email-hint {
  color: var(--accent);
}

.copy-email-button.is-copied .copy-email-hint::after {
  content: ' · 복사됨';
}

/* ==========================================================================
   Reduced motion (kept last so it overrides the animated rules above)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span,
  .js-reveal {
    animation: none;
    transition: none;
  }
}
