/* ==========================================================================
   WOOMZIK STUDIO — Landing Page
   Display font: Gmarket Sans (지마켓 산스) — headlines, labels, buttons
   Body font: Pretendard — paragraphs, long-form text (readability)
   Palette: reference 2 (black / white / cyan) — point color #00c4cc
   ========================================================================== */

@font-face {
  font-family: 'GmarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'GmarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'GmarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  /* Neutral black/white system, referenced from the black-white-cyan palette */
  --bg: #000000;
  --surface: #121212;
  --surface-2: #191919;
  --surface-3: #242424;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;

  --text-primary: #ffffff;
  --text-secondary: #a8a8ac;
  --text-tertiary: #707074;

  /* Point color — cyan, sampled from reference 2 */
  --point: #00c4cc;
  --point-hover: #00a3aa;
  --point-soft: rgba(0, 196, 204, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1120px;
  --font-display: 'GmarketSans', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Malgun Gothic', sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Malgun Gothic', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Display font — headlines, labels, nav, buttons (short, bold text only) */
.logo,
.eyebrow,
.main-nav a,
.btn,
h1,
h2,
h3,
.process-num,
.pricing-price .price,
.pricing-price .label,
.promo-tag,
.materials-quote,
.philosophy-copy p.highlight,
.duration {
  font-family: var(--font-display);
}

/* Headings must re-read --text-primary at their own element so section-scoped
   color overrides (e.g. the light Materials section) apply correctly. */
h1,
h2,
h3 {
  color: var(--text-primary);
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ---------------------------------- Section background rhythm ----------------------------------
   Bold black / white / cyan blocking (straight from reference 2) instead of subtle gray steps.
   .section-light and .section-cyan re-scope the color tokens so every component underneath
   (cards, text, buttons) automatically adapts. */

.section-light {
  background: #edeef2;
  --text-primary: #14161c;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --border: #dcdde2;
  --border-strong: #c6c8d0;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f1f2f5;
  /* Darker teal so the point color still passes contrast on a light card */
  --point: #048a90;
  --point-soft: rgba(0, 196, 204, 0.1);
}

.section-cyan {
  /* Hardcoded (not var(--point)) — this rule redefines --point below for
     dark-on-cyan text/accents, so referencing var(--point) here would self-match. */
  background: #00c4cc;
  --text-primary: #04181a;
  --text-secondary: rgba(4, 24, 26, 0.72);
  --text-tertiary: rgba(4, 24, 26, 0.55);
  --border: rgba(4, 24, 26, 0.16);
  --border-strong: rgba(4, 24, 26, 0.3);
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #eafdfe;
  --point: #04181a;
  --point-soft: rgba(4, 24, 26, 0.1);
}

.hero {
  background: var(--bg);
}

#pricing,
.philosophy,
#faq,
.site-footer {
  background: var(--bg);
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--point);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--point);
  color: #000000;
}

.btn-primary:hover {
  background: var(--point-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--point);
  color: var(--point);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 15px;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding: 14px 0;
}

@media (max-width: 640px) {
  /* Always keep a solid backing on mobile so header text/buttons never sit
     directly on top of the animated hero background, and drop the blur
     (expensive to repaint on mobile GPUs, a common source of scroll jank). */
  .site-header {
    background: rgba(0, 0, 0, 0.7);
  }

  .site-header.scrolled {
    backdrop-filter: none;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--point);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.main-nav a:not(.btn) {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--point);
  transition: right 0.25s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.main-nav a:not(.btn):hover::after {
  right: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Nav's CTA is for the mobile drawer only — desktop uses the single header-cta button */
.main-nav .btn-primary {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 0 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .header-cta .btn-outline {
    display: none;
  }

  .main-nav .btn-primary {
    display: inline-flex;
    margin-top: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open .nav-toggle span {
    background: transparent;
  }

  body.nav-open .nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ---------------------------------- Image placeholder ---------------------------------- */

.img-ph {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-ph:not(.has-image) {
  background: #4b5563;
}

.img-ph:not(.has-image)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 10px,
    transparent 10px,
    transparent 20px
  );
}

.img-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-ph span {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding-top: 180px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-lines svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-line {
  fill: none;
  stroke: var(--point);
  stroke-width: 1.5;
  stroke-linecap: round;
  /* Without this, a CSS transform on an SVG child is interpreted in the
     SVG's own coordinate system rather than screen pixels — on some mobile
     engines that made the "float" animation jump far more than intended. */
  transform-box: fill-box;
  transform-origin: center;
}

.hero-line-1 {
  stroke-opacity: 0.4;
  animation: heroLineFloat1 9s ease-in-out infinite;
}

.hero-line-2 {
  stroke-opacity: 0.28;
  animation: heroLineFloat2 11s ease-in-out infinite;
  animation-delay: -3s;
}

.hero-line-3 {
  stroke-opacity: 0.32;
  animation: heroLineFloat3 13s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes heroLineFloat1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(14px, -20px);
  }
}

@keyframes heroLineFloat2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-16px, 16px);
  }
}

@keyframes heroLineFloat3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line-1,
  .hero-line-2,
  .hero-line-3 {
    animation: none;
  }
}

/* Mobile: skip the drift animation entirely rather than risk engine-specific
   SVG-transform quirks — the static curves still read fine at this size. */
@media (max-width: 640px) {
  .hero-line-1,
  .hero-line-2,
  .hero-line-3 {
    animation: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.text-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.5px var(--text-primary);
}

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

.hero-copy p.sub {
  margin-top: 20px;
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual .img-ph {
  aspect-ratio: 4 / 5;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 140px;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual .img-ph {
    aspect-ratio: 16 / 10;
  }
}

/* ---------------------------------- Portfolio ---------------------------------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card .img-ph {
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
}

.portfolio-card h3 {
  font-size: 19px;
  font-weight: 700;
}

.portfolio-card p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-tertiary);
}

@media (max-width: 860px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------------------------------- Pricing ---------------------------------- */

.pricing-card {
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.pricing-price .label {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.pricing-price .price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-price .price small {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-price .btn {
  margin-top: 28px;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-list li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--point);
}

@media (max-width: 860px) {
  .pricing-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* ---------------------------------- Process ---------------------------------- */

/* Reusable emphasis style for a single standout sentence within a section */
.pull-quote {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 700px;
  margin: 20px 0 48px;
  padding-left: 20px;
  border-left: 3px solid var(--point);
}

.philosophy-copy .pull-quote {
  margin: 24px 0;
}

.process-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.process-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

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

.process-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--surface-3);
  -webkit-text-stroke: 1px var(--border-strong);
}

.process-item h3 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.process-item .duration {
  font-size: 14px;
  font-weight: 500;
  color: var(--point);
  background: var(--point-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.process-item p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Featured steps — where WOOMZIK's process differs from a typical build */
.process-item.featured {
  margin: 4px 0;
  padding: 28px 24px;
  background: var(--point-soft);
  border: 1px solid var(--point);
  border-top: 1px solid var(--point);
  border-radius: var(--radius-md);
}

.process-item.featured + .process-item {
  border-top: none;
}

.process-item.featured .process-num {
  color: var(--point);
  -webkit-text-stroke: 0;
}

.process-item.featured .process-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--point);
  background: var(--surface);
  border: 1px solid var(--point);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .process-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-item.featured {
    padding: 24px 20px;
  }
}

/* ---------------------------------- Materials ---------------------------------- */

.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.materials-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.materials-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 20px;
}

.materials-card.ready h3 {
  color: var(--point);
}

.materials-card ul li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}

/* "있으면 좋은 자료" reads as a prep checklist — an empty checkbox fits its purpose */
.materials-card.ready ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--point);
  border-radius: 5px;
  background: var(--surface);
}

.materials-card.ready ul li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--point);
  border-bottom: 2px solid var(--point);
  transform: rotate(-45deg);
}

/* "자료가 부족한 경우" describes what WE do — an arrow, not a checklist */
.materials-card:not(.ready) ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--point);
  font-weight: 700;
}

.materials-quote {
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  padding: 8px 0;
}

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

/* ---------------------------------- Philosophy ---------------------------------- */

.philosophy .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.philosophy-visual .img-ph {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}

.philosophy-copy p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
}

.philosophy-copy p.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

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

  .philosophy-visual {
    max-width: 260px;
  }
}

/* ---------------------------------- Promo banner ---------------------------------- */

.promo-banner {
  /* Deliberately re-pins dark-card tokens so it stays a dark "spotlight" card
     even when the surrounding section is .section-light. */
  --text-primary: #ffffff;
  --text-secondary: #a8a8ac;
  --point: #00c4cc;
  --point-soft: rgba(0, 196, 204, 0.12);
  background: #121212;
  border: 1px solid #262626;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--text-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(0, 196, 204, 0.18), transparent 55%);
}

.promo-banner * {
  position: relative;
}

.promo-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--point);
  background: var(--point-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.promo-banner h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.4;
}

.promo-banner .lead {
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-secondary);
}

.promo-perks {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 28px 0 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.promo-banner .btn-primary {
  background: var(--point);
  color: #000000;
}

.promo-banner .btn-primary:hover {
  background: var(--point-hover);
}

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .q-mark {
  flex: none;
  color: var(--point);
  font-weight: 700;
}

.faq-item summary .icon {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-item summary .icon::before,
.faq-item summary .icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item summary .icon::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-item summary .icon::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item[open] summary .icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item p {
  padding: 0 4px 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------------------------------- Final CTA ---------------------------------- */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta .btn {
  margin-top: 32px;
}

.final-cta .note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-tertiary);
}

/* ---------------------------------- Legal pages (privacy / terms) ---------------------------------- */

.legal-page {
  padding-top: clamp(120px, 18vw, 180px);
}

.legal-page .section-head {
  max-width: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.legal-page h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 8px;
}

.legal-body {
  max-width: 760px;
  margin-top: 40px;
}

.legal-body h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-body ul {
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 4px;
}

.legal-body li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.legal-body li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--point);
}

.legal-body a {
  color: var(--point);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .logo {
  font-size: 16px;
}

.site-footer p {
  font-size: 14px;
  color: var(--text-tertiary);
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--text-primary);
}

.footer-top-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.footer-social a {
  display: inline-flex;
  color: var(--text-tertiary);
}

.footer-social a:hover {
  color: var(--point);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.site-footer .footer-business {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-business p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-business a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-legal .is-strong {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-top-right {
    align-items: flex-start;
    gap: 16px;
  }

  .footer-social {
    padding-left: 0;
    border-left: none;
  }

  .footer-nav,
  .footer-legal {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ---------------------------------- Letter bounce (hero eyebrow) ---------------------------------- */

@keyframes letterBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.bounce-letter {
  display: inline-block;
  animation: letterBounce 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

@media (prefers-reduced-motion: reduce) {
  .bounce-letter {
    animation: none;
  }
}

@media (max-width: 640px) {
  .bounce-letter {
    animation: none;
  }
}

/* ---------------------------------- Scroll reveal motion ---------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition: opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.reveal-group.in-view > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-group.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group.in-view > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group.in-view > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-group.in-view > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-group.in-view > *:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================================================== 
   Responsive polish pass
   Keep the existing copy and information architecture, but give each
   breakpoint its own composition instead of simply stacking desktop blocks.
   ========================================================================== */

@media (min-width: 861px) {
  .hero .container {
    min-height: min(720px, calc(100vh - 92px));
  }

  .hero-copy {
    max-width: 570px;
  }

  .hero-visual {
    position: relative;
  }

  .hero-visual::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -42px;
    bottom: -34px;
    border: 1px solid var(--point);
    border-radius: 50%;
    opacity: 0.45;
  }

  .portfolio-grid {
    grid-template-columns: 1.08fr 0.92fr 1.08fr;
    align-items: end;
  }

  .portfolio-card:nth-child(2) {
    transform: translateY(44px);
  }

  .section-light .container,
  #pricing .container,
  #faq .container {
    position: relative;
  }
}

@media (max-width: 860px) {
  :root {
    --container: 720px;
  }

  section {
    padding: 76px 0;
  }

  .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero {
    padding-top: 126px;
    padding-bottom: 70px;
  }

  .hero .container {
    gap: 40px;
  }

  .hero-visual {
    order: -1;
    max-width: 620px;
    margin: 0 auto;
  }

  .hero-visual .img-ph {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
  }

  .hero-copy h1 {
    font-size: clamp(35px, 7vw, 54px);
    line-height: 1.28;
  }

  .hero-copy p.sub {
    font-size: 18px;
    line-height: 1.65;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .portfolio-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
  }

  .portfolio-card .img-ph {
    aspect-ratio: 4 / 5;
    margin-bottom: 12px;
  }

  .pricing-card {
    gap: 32px;
    padding: 36px;
  }

  .process-item {
    grid-template-columns: 72px 1fr;
    gap: 22px;
    padding: 26px 0;
  }

  .philosophy .container {
    gap: 38px;
  }

  .philosophy-visual {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    padding: 14px 0;
  }

  .site-header .container {
    padding-left: 20px;
    padding-right: 16px;
  }

  .logo {
    font-size: 16px;
  }

  .main-nav {
    width: min(300px, 86vw);
    padding: 0 28px;
    justify-content: flex-start;
    padding-top: 112px;
    gap: 22px;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.26);
  }

  .main-nav a {
    font-size: 18px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 52px;
  }

  .hero .container {
    gap: 28px;
  }

  .hero-visual .img-ph {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .hero-copy .eyebrow,
  .section-head .eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(31px, 9.5vw, 43px);
    line-height: 1.3;
    letter-spacing: -0.04em;
  }

  .hero-copy p.sub {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 26px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: clamp(26px, 7.8vw, 34px);
    line-height: 1.38;
  }

  .section-head p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.65;
  }

  .portfolio-grid {
    gap: 24px 12px;
  }

  .portfolio-card:nth-child(3) {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: end;
  }

  .portfolio-card:nth-child(3) .img-ph {
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
  }

  .portfolio-card h3 {
    font-size: 17px;
  }

  .portfolio-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .pricing-card {
    padding: 26px 20px;
    border-radius: 18px;
    gap: 24px;
  }

  .pricing-price .label {
    font-size: 14px;
  }

  .pricing-price .price {
    font-size: clamp(32px, 10vw, 42px);
  }

  .pricing-price .btn {
    margin-top: 20px;
  }

  .pricing-list li {
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .pull-quote {
    font-size: 19px;
    line-height: 1.6;
    margin: 14px 0 30px;
    padding-left: 16px;
  }

  .process-item,
  .process-item.featured {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 22px 0;
  }

  .process-item.featured {
    margin: 2px 0;
    padding: 20px 16px;
  }

  .process-num {
    font-size: 23px;
  }

  .process-item h3 {
    font-size: 17px;
    line-height: 1.5;
    gap: 7px;
  }

  .process-item .duration {
    font-size: 12px;
    padding: 2px 7px;
  }

  .process-item .process-tag {
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.04em;
  }

  .process-item p {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.7;
  }

  .materials-grid {
    gap: 12px;
    margin-bottom: 24px;
  }

  .materials-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .materials-card h3 {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .materials-card ul li {
    padding-left: 27px;
    font-size: 15px;
    line-height: 1.65;
  }

  .materials-quote {
    font-size: 20px;
  }

  .philosophy .container {
    gap: 28px;
  }

  .philosophy-visual .img-ph {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .philosophy-copy p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 14px;
  }

  .philosophy-copy .pull-quote {
    margin: 18px 0;
  }

  .promo-banner {
    padding: 34px 20px;
    border-radius: 18px;
  }

  .promo-tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 6px 10px;
  }

  .promo-banner h2 {
    font-size: 25px;
    line-height: 1.45;
  }

  .promo-banner .lead {
    font-size: 15px;
  }

  .promo-perks {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin: 22px 0 26px;
    font-size: 14px;
    text-align: left;
  }

  .faq-item summary {
    min-height: 64px;
    padding: 18px 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .faq-item summary .icon {
    width: 18px;
    height: 18px;
  }

  .faq-item p {
    padding: 0 0 20px;
    font-size: 15px;
    line-height: 1.75;
  }

  .final-cta h2 {
    font-size: 25px;
    line-height: 1.55;
  }

  .final-cta .btn {
    width: min(100%, 280px);
    margin-top: 24px;
  }

  .final-cta .note {
    font-size: 14px;
    line-height: 1.6;
  }

  .site-footer {
    padding: 30px 0 88px;
  }

  .reveal,
  .reveal-group > * {
    transform: translateY(22px);
    transition-duration: 0.55s;
  }
}
