/* ============================================================
   D'ART — Seoul art advisory
   Design tokens & shared styles
   ============================================================ */

:root {
  --bg: #fff;
  --bg-tint: #f6f4ef;
  --text: #111;
  --text-body: #333;
  --text-muted: #999;
  --accent: #D4D4CF;
  --accent-mid: #8a8a84;
  --accent-dark: #6f6f6a;
  --menu-active-bg: #f0eee7;
  --rule: #dcdcd6;
  --rule-2: #d5d5cf;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

* { box-sizing: border-box; }

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

::selection { background: #111; color: #fff; }

img { display: block; }

.serif { font-family: 'Cormorant Garamond', serif; }

/* ---- Reveal animation --------------------------------------
   Prefer native scroll-timeline; JS adds .fade-in fallback. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade {
  animation: fadeUp 1.1s cubic-bezier(.2, .7, .2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}
@supports not (animation-timeline: view()) {
  .fade { opacity: 0; transform: translateY(28px); animation: none; }
  .fade.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1),
                transform 1.1s cubic-bezier(.2, .7, .2, 1);
  }
}

/* ============================================================
   HEADER — inner (white bar) + overlay variants
   ============================================================ */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
}

.nav-inner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid rgba(17, 17, 17, .1);
}
.nav-inner .logo { height: 22px; }
.nav-inner .logo img { height: 19px; width: auto; }

.nav-overlay {
  position: fixed;
  top: 34px; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}
.nav-overlay .logo img {
  height: 26px; width: auto;
  filter: invert(1) brightness(2);
}
.nav-overlay .menu-btn { color: #fff; }
.nav-inner .menu-btn { color: #111; }

/* ============================================================
   MENU — compact dropdown block (replaces the old full drawer)
   ============================================================ */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: transparent;
}
.menu-backdrop[hidden] { display: none; }

.menu-block {
  position: fixed;
  right: 24px;
  z-index: 9991;
  width: 220px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, .14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  border-radius: 4px;
  overflow: hidden;
  transform-origin: top right;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), opacity .18s ease;
}
.menu-block.inner { top: 68px; }
.menu-block.overlay { top: 78px; }
.menu-block[data-closed] { transform: scale(.94); opacity: 0; pointer-events: none; }
.menu-block[data-open] { transform: scale(1); opacity: 1; }

.menu-nav { display: flex; flex-direction: column; padding: 6px 0; }
.menu-link {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  padding: 12px 20px;
  color: #333;
  transition: background .15s ease;
}
.menu-link:hover { background: #f6f4ef; }
.menu-link.current { background: var(--menu-active-bg); }

/* ============================================================
   HOME — marquee + hero
   ============================================================ */
.home-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  background: var(--accent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: .06em;
  color: #111;
  padding: 6px 0;
  white-space: nowrap;
  padding-right: 48px;
}

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #0b0b0c;
  isolation: isolate;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 55%);
}
.hero-text {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 72px;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 20px;
}
.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(26px, 5.6vw, 84px);
  line-height: 1.05;
  white-space: nowrap;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 24px;
}
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(255, 255, 255, .9);
}

/* ============================================================
   INNER PAGE — shared bits
   ============================================================ */
.page { margin-top: 60px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-header {
  background: var(--bg-tint);
  padding: clamp(64px, 9vw, 96px) 32px clamp(56px, 8vw, 80px);
  text-align: center;
}
.page-header .eyebrow { margin-bottom: 22px; }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 64px);
  margin: 0;
}
.logo-mark { height: clamp(30px, 4.6vw, 52px); width: auto; margin: 0 auto; }
.logo-mark--sm { height: clamp(28px, 4vw, 44px); }

.btn-inquiry {
  display: inline-block;
  border: 1px solid #111;
  color: #111;
  background: transparent;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 18px 46px;
}

/* ---- About ---- */
.about-intro {
  padding: clamp(72px, 10vw, 120px) 32px 0;
}
.about-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.about-lead {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.5;
  margin: 0;
  position: sticky;
  top: 96px;
}
.about-body { display: flex; flex-direction: column; gap: 32px; }
.about-body p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0;
}

.founder {
  max-width: 1080px;
  margin: clamp(72px, 9vw, 100px) auto 0;
  padding-top: clamp(56px, 7vw, 72px);
}
.founder .eyebrow { letter-spacing: .24em; margin-bottom: 14px; }
.founder-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
  margin-bottom: 24px;
}
.founder p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0;
  max-width: 640px;
}
.founder p:first-of-type { margin-bottom: 24px; }

.photo-strip {
  max-width: 1080px;
  margin: clamp(56px, 7vw, 72px) auto clamp(72px, 9vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-strip .cell { aspect-ratio: 4/5; overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

.contact-band {
  padding: clamp(64px, 9vw, 104px) 32px;
  text-align: center;
  background: #fff;
}
.contact-band .eyebrow { margin-bottom: 24px; }
.contact-invite {
  max-width: 600px;
  margin: 0 auto clamp(40px, 5vw, 48px);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.65;
  color: var(--text-body);
}
.contact-note {
  max-width: none;
  white-space: nowrap;
  margin: clamp(56px, 7vw, 72px) auto 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---- Services ---- */
.services-list {
  padding: clamp(80px, 12vw, 140px) 32px clamp(80px, 12vw, 140px);
}
.services-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 80px);
}
.service-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: baseline;
}
.service-row .label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
}
.service-row p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0;
  max-width: 520px;
}

/* ---- Social ---- */
.social-figure {
  padding: clamp(72px, 10vw, 120px) 32px 0;
}
.social-figure .frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}
.social-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.social-caption {
  text-align: right;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--text-muted);
  max-width: 1000px;
  margin: 16px auto 0;
}
.social-prose {
  padding: clamp(56px, 8vw, 88px) 32px 0;
}
.social-prose p {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-body);
}
.social-links {
  max-width: 640px;
  margin: 28px auto clamp(80px, 12vw, 140px);
  text-align: center;
  display: flex;
  gap: 28px;
  justify-content: center;
}
.social-links a {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 1px solid #999;
}

/* ---- Curatorial ---- */
.cur-header .eyebrow { margin-bottom: 22px; }
.cur-header h1 { font-size: clamp(36px, 5.5vw, 68px) !important; margin: 0 0 18px !important; }
.cur-header .handle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
}
.cur-header .desc {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}
.cur-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
  padding-bottom: 3px;
}

.ig-section { padding: 2px 2px clamp(60px, 9vw, 100px); }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(5, 1fr); } }
.ig-cell {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1/1;
}
.ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.ig-cell:hover img { transform: scale(1.06); }
.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.ig-cell:hover .ig-overlay { opacity: 1; background: rgba(0, 0, 0, .35); }
.ig-icon { color: #fff; }

/* ============================================================
   FOOTER — newsletter + info + brand bar
   ============================================================ */
.footer {
  background: var(--bg-tint);
  color: #111;
  padding: 28px 32px 60px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.news-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.news-sub {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.news-form { max-width: 420px; }
.news-row { display: flex; align-items: center; gap: 8px; }
.subscribe-input {
  height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--rule-2);
  background: #fff;
  color: #111;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 0 14px;
  flex: 1;
  outline: none;
  border-radius: 6px;
}
.subscribe-input::placeholder { color: var(--text-muted); }
.subscribe-input:focus { border-color: var(--accent-mid); }
.subscribe-btn {
  height: 42px;
  width: 52px;
  flex-shrink: 0;
  background: var(--accent-mid);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  border-radius: 6px;
  transition: opacity .2s ease;
}
.subscribe-btn:hover { opacity: .75; }
.subscribe-btn:disabled { opacity: .55; cursor: default; }
.news-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 300;
  color: #777;
}
.news-consent input {
  width: 14px;
  height: 14px;
  accent-color: #1a1a1a;
  flex-shrink: 0;
}
.news-policy-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.news-thanks { font-size: 14px; color: #555; }
.news-error { font-size: 11px; color: #b0453b; margin-top: 10px; }

/* Privacy policy modal */
.policy-modal[hidden] { display: none; }
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.policy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.policy-card {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 100%;
  max-width: 440px;
  padding: 34px 30px 24px;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.policy-x {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
}
.policy-title {
  font-size: 21px;
  font-weight: 500;
  color: #111;
  margin-bottom: 16px;
}
.policy-text {
  font-size: 12.5px;
  line-height: 1.75;
  color: #555;
  margin: 0 0 10px;
}
.policy-text:last-of-type { margin-bottom: 0; }
.policy-foot { margin-top: 20px; text-align: right; }
.policy-close-btn {
  border: 1px solid #111;
  background: transparent;
  color: #111;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
}

.info-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.info-row:last-child { border-bottom: 1px solid var(--rule); }
.info-label {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-value { font-size: 13px; line-height: 1.55; color: var(--text-body); }
.info-value a { border-bottom: 1px solid #999; }

.footer-copyright { margin-top: 16px; }
.footer-copyright p {
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .01em;
  color: #999;
  margin: 0 0 3px;
}
.footer-copyright p:last-child { margin: 0; }

.brand-bar-spacer { height: 52px; }

.brand-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  height: 52px;
  box-sizing: border-box;
  background: var(--accent);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .06);
}
.brand-bar .lockup { display: flex; align-items: center; gap: 10px; }
.brand-bar .lockup img { height: 16.2px; width: auto; }
.brand-bar .icons { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.foot-icon { color: #111; display: flex; align-items: center; justify-content: center; transition: color .2s ease; }
.foot-icon:hover { color: var(--accent-dark); }

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 76px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  z-index: 25;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-lead { position: static; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid > div:last-child {
    margin: 32px -32px -60px;
    padding: 32px 32px 60px;
    background: #efece3;
  }
  .footer-grid > div:last-child .info-row:first-child { border-top: none; padding-top: 0; }
}
