/* ================================================================
   STRADA Lab — cinematic editorial
   Palette : midnight navy / warm ivory / STRADA sky (from logo), used sparingly
   Type    : MaruBuri (display) · Pretendard (Korean text)
             Plus Jakarta Sans (Latin labels) · Instrument Serif (numerals)
   ================================================================ */

/* MaruBuri (Naver, SIL OFL) — self-hosted display serif */
@font-face { font-family: "MaruBuri"; font-weight: 300; font-display: swap; src: url("../fonts/MaruBuri-Light.woff2") format("woff2"); }
@font-face { font-family: "MaruBuri"; font-weight: 400; font-display: swap; src: url("../fonts/MaruBuri-Regular.woff2") format("woff2"); }
@font-face { font-family: "MaruBuri"; font-weight: 500 700; font-display: swap; src: url("../fonts/MaruBuri-SemiBold.woff2") format("woff2"); }

:root {
  --night: #0a0f1a;
  --night-2: #0e1625;
  --ivory: #f5f3ee;
  --paper: #fbfaf7;
  --ink: #0f1724;
  --text: #3b4351;
  --muted: #6d7482;
  --hair: rgba(15, 23, 36, 0.12);
  --hair-dark: rgba(255, 255, 255, 0.14);
  --on-dark: rgba(255, 255, 255, 0.94);
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.48);
  --sky: #1aa8e6;
  --sky-soft: #8fd4f3;
  --deep: #0b5da8;

  --serif: "MaruBuri", "Nanum Myeongjo", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --latin: "Plus Jakarta Sans", "Pretendard", sans-serif;
  --numeral: "Instrument Serif", "MaruBuri", serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.center { text-align: center; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 920px; }
.section { padding: clamp(112px, 13vw, 190px) 0; position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, .display { font-family: var(--serif); color: var(--ink); }
.display {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.display em { font-family: var(--numeral); font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--deep); letter-spacing: 0; }
.display.on-dark { color: var(--on-dark); }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
  font-family: var(--latin);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker.center { justify-content: center; }
.kicker.light { color: var(--on-dark-2); }
.kicker .rule { display: inline-block; width: 44px; height: 1px; background: var(--sky); }

/* ---------- Buttons ---------- */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 17px 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.btn-line span { transition: transform 0.6s var(--ease); }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line:hover span { transform: translateX(5px); }

/* ---------- Line breaking ---------- */
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .display, .lead, blockquote p, .closing-desc { text-wrap: balance; }
.nw { white-space: nowrap; }
br.d { display: none; }             /* desktop-only manual break */
@media (min-width: 1100px) { br.d { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  border-bottom: 1px solid var(--hair-dark);
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: transparent;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.6s var(--ease);
}
.site-header.scrolled .header-inner { height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 20px; height: auto; }
.brand-name {
  font-family: "Open Sans", var(--latin);   /* matches the logo wordmark */
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
}
.brand-ink .brand-name { color: var(--ink); }

.gnb { display: flex; align-items: center; gap: 40px; }
.gnb a {
  position: relative;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--on-dark-2);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.4s var(--ease);
}
.gnb a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.gnb a:hover { color: #fff; }
.gnb a:hover::after { transform: scaleX(1); }
.gnb .gnb-cta { color: #fff; }
.gnb .gnb-cta span { color: var(--sky-soft); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px; height: 1.5px;
  background: #fff;
  transition: transform 0.6s var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* mobile overlay menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(10, 15, 26, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }
.menu-links { display: flex; flex-direction: column; width: 100%; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.9rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--hair-dark);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.menu-links a span { font-family: var(--numeral); font-size: 1rem; color: var(--sky-soft); }
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(1) { transition-delay: 0.08s; }
.menu.open .menu-links a:nth-child(2) { transition-delay: 0.14s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: 0.2s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: 0.26s; }

/* ---------- Hero (full-bleed) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  animation: heroZoom 18s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 26, 0.6) 0%, rgba(10, 15, 26, 0) 22%, rgba(10, 15, 26, 0) 55%, rgba(10, 15, 26, 0.85) 100%),
    linear-gradient(95deg, rgba(10, 15, 26, 0.92) 0%, rgba(10, 15, 26, 0.7) 34%, rgba(10, 15, 26, 0.18) 62%, rgba(10, 15, 26, 0.05) 100%);
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 160px var(--gutter) clamp(72px, 11vh, 120px);
}
.hero-content > * { max-width: 640px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 300;
  line-height: 1.26;
  letter-spacing: -0.045em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 30px rgba(10, 15, 26, 0.4);
}
.hero h1 em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(100deg, #ffffff 0%, var(--sky-soft) 60%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  max-width: 600px;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  font-weight: 300;
  line-height: 1.95;
  color: var(--on-dark-2);
}
.hero-actions { margin-top: 2.8rem; }

.hero-foot { position: relative; border-top: 1px solid var(--hair-dark); }
.hero-foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--latin);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.hero-loc { color: var(--on-dark-2); }
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-dark-2);
}
.hero-scroll i {
  position: relative;
  width: 48px; height: 1px;
  background: var(--hair-dark);
  overflow: hidden;
}
.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sky);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 60%, 100% { transform: translateX(100%); } }

/* ---------- About ---------- */
.about { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 140px);
}
.about-body > p { max-width: 36em; font-size: 1.02rem; font-weight: 300; color: var(--text); }
.about-body > p + p { margin-top: 1.3rem; }
.about-body > p.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 2.2rem;
  padding-top: 2.6rem;
}
.lead strong { font-weight: 500; color: var(--deep); }
.stats {
  margin-top: 3.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
}
.stats div { padding-top: 1.6rem; }
.stats dt {
  font-family: var(--numeral);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
}
.stats dd { margin-top: 0.6rem; font-size: 0.84rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .display { margin: 0; }
.section-note { max-width: 320px; font-size: 0.92rem; color: var(--muted); text-align: right; }

.practice { list-style: none; border-top: 1px solid var(--ink); }
.practice li {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: baseline;
  gap: 32px;
  padding: 42px 0;
  border-bottom: 1px solid var(--hair);
}
.practice li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}
.practice li:hover::before { transform: scaleX(1); }
.p-no { font-family: var(--numeral); font-style: italic; font-size: 1.6rem; color: var(--deep); line-height: 1; }
.p-title h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
  transition: transform 0.8s var(--ease);
}
.practice li:hover .p-title h3 { transform: translateX(8px); }
.p-title > span {
  display: block;
  margin-top: 6px;
  font-family: var(--latin);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.practice li > p { font-size: 0.98rem; font-weight: 300; color: var(--text); }

/* ---------- Approach ---------- */
.approach { background: var(--night); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair-dark);
}
.step { padding: 40px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--hair-dark); }
.s-no {
  display: block;
  font-family: var(--numeral);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--sky-soft);
  margin-bottom: 3rem;
}
.step h3 { color: #fff; font-size: 1.45rem; font-weight: 400; letter-spacing: -0.03em; }
.s-en {
  font-family: var(--latin);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin: 4px 0 1.3rem;
}
.step p:last-child { font-size: 0.93rem; font-weight: 300; color: var(--on-dark-2); line-height: 1.85; }

/* ---------- Statement ---------- */
.statement { background: var(--ivory); }
blockquote { text-align: center; }
blockquote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.75;
  letter-spacing: -0.035em;
  color: var(--ink);
}
blockquote em { font-style: normal; font-weight: 500; color: var(--deep); }
blockquote footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Closing ---------- */
.closing { background: var(--night); overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 70% at 50% 100%, rgba(26, 168, 230, 0.12), transparent 70%);
}
.closing .container { position: relative; }
.closing .display { margin-bottom: 1.6rem; }
.closing-desc {
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
  font-weight: 300;
  color: var(--on-dark-2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--on-dark-3);
  font-size: 0.82rem;
  padding: 0 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 44px 0 32px;
  border-top: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { text-decoration: none; color: var(--on-dark-2); transition: color 0.4s var(--ease); }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.72rem;
}
.credit a { color: var(--on-dark-3); text-decoration: none; }
.credit a:hover { color: var(--on-dark-2); }

/* ---------- Credits page ---------- */
.credits-page { background: var(--paper); }
.credits { padding: 72px 0 120px; }
.credits h1 { font-weight: 300; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.03em; margin: 72px 0 40px; }
.credits section { padding: 28px 0; border-top: 1px solid var(--hair); }
.credits h2 {
  font-family: var(--latin);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.credits p { font-size: 0.95rem; font-weight: 300; }
.credits p a { color: var(--deep); }
.credits .back { display: inline-block; margin-top: 48px; font-size: 0.9rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sky); }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.3s; }
.steps .step:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img, .hero-scroll i::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--hair-dark); margin-top: 8px; }
  .practice li { grid-template-columns: 80px minmax(0, 1fr); }
  .practice li > p { grid-column: 2; }
  .hero-practices { display: none; }
}

@media (max-width: 860px) {
  .gnb { display: none; }
  .nav-toggle { display: block; }
  .header-inner, .site-header.scrolled .header-inner { height: 64px; }

  .hero-media img { object-position: 72% 12%; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.55) 0%, rgba(10, 15, 26, 0.1) 25%, rgba(10, 15, 26, 0.55) 55%, rgba(10, 15, 26, 0.95) 100%);
  }
  .hero-content { padding-bottom: 56px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-body > p.lead { padding-top: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 32px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--hair-dark); }
  .practice li { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .practice li > p { grid-column: 1; }
  .stats { grid-template-columns: 1fr; }
  .stats div { padding: 1.4rem 0; border-bottom: 1px solid var(--hair); display: flex; align-items: baseline; gap: 18px; }
  .stats dd { margin: 0; }
  .s-no { margin-bottom: 1.6rem; }
  .btn-line { width: 100%; justify-content: center; }
}
