/* CHAEWOODA — BX studio redesign
   Type-first editorial system inspired by global brand consultancies. */

:root {
  --ink: #101010;
  --paper: #f7f6f2;
  --mute: rgba(16, 16, 16, 0.55);
  --line: rgba(16, 16, 16, 0.14);
  --accent: #ff4d00;
  --paper-dark: #101010;
  --ink-on-dark: #f7f6f2;
  --font: "Inter Tight", "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.logo sup { font-size: 9px; font-weight: 600; vertical-align: super; }

.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 14px; font-weight: 500; }
.site-nav a { position: relative; padding: 4px 0; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(24px, 4vh, 56px);
}

.hero-title {
  position: relative;
  font-size: clamp(40px, 13.5vw, 250px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}
.hero-title .reg {
  position: absolute;
  right: 0;
  top: -2.4em;
  font-size: 0.09em;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: none;
}

.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(20px, 3vh, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-sub p { max-width: 520px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; }
.hero-sub .scroll-hint { font-size: 12px; color: var(--mute); white-space: nowrap; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3.5em;
  animation: marquee 28s linear infinite;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--mute);
}
.marquee-track span::after { content: "·"; margin-left: 3.5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(80px, 12vh, 160px) var(--pad); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* ---------- statement ---------- */
.statement p {
  font-size: clamp(26px, 4.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 20em;
}
.statement p em { font-style: normal; color: var(--accent); }
.statement .statement-kr {
  margin-top: clamp(28px, 4vh, 48px);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
  color: var(--mute);
  max-width: 640px;
}

/* ---------- work index ---------- */
.work-list { border-top: 1px solid var(--line); }

.work-item { border-bottom: 1px solid var(--line); }
.work-item > a {
  display: grid;
  grid-template-columns: minmax(2.2em, auto) 1fr auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(20px, 3.2vh, 36px) 0;
  transition: opacity 0.35s var(--ease), color 0.3s;
}
/* hovered row stays, siblings recede */
.work-list:hover .work-item > a { opacity: 0.3; }
.work-list .work-item > a:hover { opacity: 1; }
.work-no { font-size: 13px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.work-name {
  font-size: clamp(26px, 4.6vw, 68px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.work-cat { font-size: 13px; font-weight: 500; color: var(--mute); text-align: right; }

/* ---------- services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  min-height: clamp(200px, 28vh, 300px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.svc:hover { background: var(--ink); color: var(--ink-on-dark); }
.svc .num { font-size: 12px; font-weight: 600; color: var(--accent); }
.svc h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.svc p { font-size: 14px; color: inherit; opacity: 0.65; }

/* ---------- about page ---------- */
.page-hero {
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) clamp(24px, 5vh, 64px);
}
.page-hero h1 {
  font-size: clamp(48px, 10vw, 180px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.exp-list { border-top: 1px solid var(--line); }
.exp {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(24px, 3.5vh, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.exp .when { font-size: 13px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.exp h3 { font-size: clamp(20px, 2.6vw, 34px); font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; }
.exp p { font-size: 14px; color: var(--mute); max-width: 640px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.member {
  background: var(--paper);
  padding: clamp(24px, 3vw, 40px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.member .role { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.member h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 750; letter-spacing: -0.02em; margin: 10px 0 4px; }
.member p { font-size: 13px; color: var(--mute); }

.partner-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.partner-row span:last-child { color: var(--mute); font-weight: 400; font-size: 14px; text-align: right; }
.partners { border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: clamp(20px, 3vh, 30px) 0;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 500; color: var(--accent); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details > p {
  padding: 0 0 clamp(20px, 3vh, 30px);
  max-width: 680px;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- case study ---------- */
.case .page-hero { min-height: 62svh; }
.case .page-hero h1 { text-transform: none; font-size: clamp(38px, 8vw, 140px); }
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
  margin: 0 var(--pad);
  padding: 26px 0;
  border-block: 1px solid var(--line);
  font-size: 14px;
}
.case-meta .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-body { max-width: 760px; }
.case-body h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: clamp(40px, 6vh, 72px) 0 18px;
}
.case-body h2:first-child { margin-top: 0; }
.case-body p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.8; color: rgba(16,16,16,0.78); margin-bottom: 16px; }
.case-body ul { margin: 0 0 16px 1.2em; list-style: disc; color: rgba(16,16,16,0.78); font-size: 15.5px; line-height: 1.8; }
.case-figure { padding: 0 var(--pad); }
.case-figure img { width: 100%; }
/* two portrait images side by side */
.case-figure-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  padding: 0 var(--pad);
  align-items: start;
}
.case-figure-row img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (max-width: 720px) {
  .case-figure-row { grid-template-columns: 1fr; }
}
/* product gallery — several shots in one grid */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  padding: 0 var(--pad);
}
.case-gallery .g-item {
  background: #fff;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-gallery .g-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(8px, 1.5vw, 20px);
}
@media (max-width: 520px) {
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}
.case-next {
  display: block;
  padding: clamp(36px, 6vh, 64px) var(--pad);
  border-top: 1px solid var(--line);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -0.02em;
  transition: color 0.25s, padding-left 0.4s var(--ease);
}
.case-next:hover { color: var(--accent); padding-left: calc(var(--pad) + 16px); }
.case-next .label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* ---------- packages (situation-based offers) ---------- */
.pkg-list { border-top: 1px solid var(--line); }
.pkg {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.6fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(32px, 5vh, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.pkg h3 {
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.pkg .pkg-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--accent);
}
.pkg .situation {
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.pkg .situation::before { content: "“"; color: var(--accent); }
.pkg .situation::after { content: "”"; color: var(--accent); }
.pkg .includes {
  margin-top: 14px;
  font-size: 14px;
  color: var(--mute);
  line-height: 1.7;
}
.pkg .pkg-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.pkg .pkg-link:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) {
  .pkg { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- client logo grid ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
  background: transparent;
}
.client-cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  mix-blend-mode: multiply;
  transition: opacity 0.3s, filter 0.3s;
}
.client-cell:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 720px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- column / insights list ---------- */
.post-list { border-top: 1px solid var(--line); }
.post-item { border-bottom: 1px solid var(--line); }
.post-item > a {
  display: block;
  padding: clamp(24px, 4vh, 44px) 0;
  transition: opacity 0.3s var(--ease);
}
.post-list:hover .post-item > a { opacity: 0.35; }
.post-list .post-item > a:hover { opacity: 1; }
.post-item .post-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-item h3 {
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 10px 0 8px;
}
.post-item p { font-size: 15px; color: var(--mute); max-width: 640px; }

/* ---------- footer / contact ---------- */
.footer {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
  padding: clamp(90px, 14vh, 180px) var(--pad) 32px;
}
.footer .kicker { color: var(--accent); }
.footer-cta {
  display: block;
  font-size: clamp(44px, 9.5vw, 170px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 24px 0 clamp(48px, 8vh, 110px);
}
.footer-cta span { display: inline-block; transition: transform 0.5s var(--ease), color 0.3s; }
.footer-cta:hover span { transform: translateX(0.15em); color: var(--accent); }

.footer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 246, 242, 0.18);
  font-size: 14px;
}
.footer-meta .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.45; margin-bottom: 10px; }
.footer-meta a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 8vh, 90px);
  font-size: 12px;
  opacity: 0.45;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero-title .reg { display: none; }
  .work-item > a { grid-template-columns: auto 1fr; }
  .work-cat { grid-column: 2; text-align: left; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .exp { grid-template-columns: 1fr; gap: 8px; }
  .section-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  /* keep the client ticker moving: on mobile a stopped marquee hides most
     names off-screen, so the slow horizontal scroll stays for content access */
  .reveal { opacity: 1; transform: none; transition: none; }
}
