/* ===== iDO DESIGN pilot ===== */
:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --paper: #faf9f7;
  --paper-warm: #f3f1ed;
  --line: #e4e1db;
  --accent: #9a8a72; /* warm taupe from the logo ring */
  --max: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(250, 249, 247, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .1);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-solid {
  background: rgba(250, 249, 247, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo-lockup { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-logo { width: 68px; height: 32px; object-fit: contain; }
.brand-sub {
  margin-top: 2px; font-size: 8px; letter-spacing: .18em; font-weight: 500; color: var(--ink);
}
.brand-kr { font-size: 16px; font-weight: 500; letter-spacing: .22em; }

.site-header:not(.is-solid):not(.over-light) .brand,
.site-header:not(.is-solid):not(.over-light) .site-nav a { color: var(--ink); }
.site-header:not(.is-solid) .brand-sub { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.site-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  opacity: .85; transition: opacity .2s;
}
.site-nav a:hover { opacity: 1; }
.nav-cta {
  padding: 9px 20px; border: 1px solid currentColor; border-radius: 999px;
}

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: currentColor; display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: var(--paper); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 12px 24px 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 14px 0; font-weight: 600; letter-spacing: .12em; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }

/* ===== Hero ===== */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.42), rgba(10,10,10,.28) 50%, rgba(10,10,10,.5));
}
.hero-content {
  position: relative; z-index: 2; color: #fff;
  padding: 0 clamp(24px, 6vw, 96px); max-width: 900px;
}
.hero-eyebrow { font-size: 12px; letter-spacing: .42em; font-weight: 600; opacity: .8; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 56px); font-weight: 700; line-height: 1.32; letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero-lede { font-size: clamp(15px, 1.6vw, 18px); opacity: .88; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-cats {
  position: absolute; z-index: 2; bottom: 34px; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 18px;
  color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: .3em; font-weight: 500;
}
.hero-cats i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255,255,255,.65); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }

/* ===== Sections ===== */
section { scroll-margin-top: var(--header-h); }
.section-eyebrow {
  font-size: 11px; letter-spacing: .42em; font-weight: 700; color: var(--accent);
  margin-bottom: 14px;
}
.section-head { text-align: center; margin-bottom: 40px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }

.intro {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(90px, 12vw, 150px) 24px;
}
.intro h2 { margin-bottom: 26px; }
.intro-copy { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17px); }
.promise-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 6px auto 30px;
}
.promise-grid p {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 72px; padding: 16px 18px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft);
}
.promise-x {
  position: relative; display: inline-block; flex: 0 0 20px;
  width: 20px; height: 20px;
}
.promise-x::before, .promise-x::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 2px; border-radius: 999px; background: var(--accent);
}
.promise-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.promise-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ===== Portfolio ===== */
.portfolio { padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 48px); background: var(--paper-warm); }
.filter-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-soft); background: transparent;
  transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.project-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.project-card {
  position: relative; border-radius: 4px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; background: #ddd;
  opacity: 0; transform: translateY(16px);
  animation: cardIn .6s ease forwards;
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.project-card:hover img { transform: scale(1.05); }
.card-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.72) 0%, rgba(10,10,10,.12) 45%, transparent 65%);
  opacity: .9; transition: opacity .3s;
}
.card-label { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.card-label h3 { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.card-label small { display: block; margin-bottom: 3px; font-size: 12px; letter-spacing: .08em; opacity: .82; }
.card-label p { font-size: 13px; opacity: .78; }
.card-label span {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  font-size: 12px; line-height: 1.55; margin-top: 0;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}
.project-card:hover .card-label span,
.project-card:focus-visible .card-label span {
  max-height: 4em; opacity: .82; margin-top: 8px;
}
.card-count {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card-photo-pending {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #c9c0b1, #8f806d);
  color: rgba(255,255,255,.78); font-size: 14px; letter-spacing: .15em;
}
.project-card.has-no-photo { cursor: default; }
.portfolio-empty {
  grid-column: 1 / -1; padding: 64px 24px; text-align: center;
  color: var(--ink-faint); border: 1px solid var(--line); border-radius: 4px;
}

/* ===== Process ===== */
.process { padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 48px); max-width: var(--max); margin: 0 auto; }
.process-list {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.process-list li { border-top: 1px solid var(--ink); padding-top: 20px; }
.step-no { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.process-list h3 {
  display: flex; align-items: baseline; gap: .42em;
  font-size: 17px; font-weight: 700; margin: 10px 0 8px;
}
.process-dot { flex: 0 0 auto; font-size: .72em; line-height: 1; }
.process-list p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ===== About ===== */
.about {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 520px;
  background: var(--paper-warm);
}
.about-media { background-size: cover; background-position: center; min-height: 320px; }
.about-body { padding: clamp(48px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.about-body h2 { margin-bottom: 20px; }
.about-body > p { color: var(--ink-soft); margin-bottom: 30px; max-width: 480px; }
.about-points { list-style: none; margin-bottom: 36px; }
.about-points li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.about-points span { color: var(--ink-faint); font-size: 13px; white-space: nowrap; }
.about-body .btn { align-self: flex-start; }

/* ===== Contact ===== */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 90px);
}
.contact-lede { color: var(--ink-soft); margin: 18px 0 36px; }
.contact-direct div { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-direct dt { width: 84px; color: var(--ink-faint); font-size: 13px; letter-spacing: .06em; padding-top: 2px; }
.contact-direct a { font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-direct a:hover { border-color: var(--ink); }

.contact-form .form-row { margin-bottom: 18px; }
.contact-form .form-row label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 7px; }
.contact-form label em { color: #c0392b; font-style: normal; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); margin: 6px 0 20px; cursor: pointer; }
.consent input {
  flex: 0 0 18px; width: 18px; height: 18px; margin: 0;
  accent-color: var(--ink); cursor: pointer;
}
.consent span { flex: 1; min-width: 0; }
.consent-detail { text-decoration: underline; color: var(--ink-faint); font-size: 13px; }
.consent-text { font-size: 13px; color: var(--ink-faint); background: var(--paper-warm); padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; }
.btn-submit { width: 100%; padding: 16px; }
.form-note { margin-top: 14px; font-size: 14px; text-align: center; min-height: 1.5em; }
.form-note.ok { color: #1e7145; }
.form-note.err { color: #c0392b; }

/* ===== Footer ===== */
.site-footer {
  background: #161616; color: #bbb; text-align: center;
  padding: 64px 24px 48px; font-size: 13px; line-height: 1.9;
}
.footer-brand { display: flex; justify-content: center; align-items: center; gap: 14px; color: #fff; margin-bottom: 12px; }
.site-footer .brand-logo { filter: brightness(0) invert(1); }
.site-footer .brand-sub { color: #fff; }
.footer-cats { letter-spacing: .28em; font-size: 12px; color: #888; margin-bottom: 22px; }
.footer-info { margin-bottom: 16px; }
.footer-copy { color: #666; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 12, 12, .94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lb-stage { max-width: min(1100px, 92vw); text-align: center; }
.lb-stage img {
  max-width: 100%; max-height: 78vh; margin: 0 auto;
  border-radius: 3px; object-fit: contain;
}
.lb-stage figcaption {
  color: #ddd; margin-top: 16px; font-size: 14px;
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
#lbTitle { font-weight: 600; color: #fff; }
#lbMeta, #lbCaption, #lbCount { color: #999; }
#lbCaption { flex-basis: 100%; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; color: #fff; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1;
  background: rgba(255,255,255,.08);
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 22px; right: 22px; font-size: 26px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-kr { display: none; }
  .brand-logo { width: 62px; }
  .hero-slide--wood { background-position: 75% center; }
  .promise-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .hero-cats { gap: 12px; letter-spacing: .2em; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .project-card { transition: none; animation: none; opacity: 1; transform: none; }
}
