/* ====================================================================
   Trinitas Investment — Common stylesheet
   Refined Ecclesiastical-Vault aesthetic.
   Brown / beige two-tone with antique-gold accents.
==================================================================== */

:root {
  --brown:        #3B2E2A;
  --brown-deep:   #2A1F1B;
  --brown-light:  #4A3B36;
  --beige:        #F7F4ED;
  --beige-deep:   #D9CDB0;
  --gold:         #C5A059;
  --gold-light:   #D4B96A;
  --gold-deep:    #8C6E36;
  --gold-warm:        #D4A437;
  --gold-warm-bright: #E5BC52;
  --gold-warm-deep:   #A07820;
  --ink:          #15110C;
  --bone:         #F6EFDD;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system,
               BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 300;
  background: var(--brown);
  color: #F0E8D6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.classic {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  letter-spacing: 0.18em;
}
.serif {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  letter-spacing: 0.04em;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--brown-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::selection { background: var(--gold); color: var(--brown); }

/* ====================================================================
   Hero — Spline coin scene + vignette mask + centered text cluster.
==================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Containment isolates the spline-viewer render tree from parent reflows;
     stops sub-pixel jitter propagating into the Spline canvas. */
  contain: layout style paint;
}

#crypto-canvas { width: 100%; height: 100%; display: block; }

/* 3-stop radial vignette mask — matches client final design.
   z-index 1 sits above .hero-3d (z 0) and below .hero-content (z 2).
   Soft mid-stop at 55% creates the fade-half-coin look. */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 22%,
    rgba(42, 31, 27, 0.20) 32%,
    rgba(42, 31, 27, 0.60) 40%,
    rgba(42, 31, 27, 0.95) 48%,
    #2A1F1B 57%
  );
}

/* Top fade — anchors the fixed nav against the coin scene.
   z 1 alongside .hero-vignette (above coins, below content). */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(42, 31, 27, 0.55) 0%,
    rgba(42, 31, 27, 0.25) 55%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  max-width: 720px;
  padding: 0 1.25rem;
}

.hero-brand {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.hero-brand:hover { opacity: 0.92; }

.hero-logo {
  display: block;
  width: clamp(110px, 14vw, 200px);
  height: auto;
  margin: 0 auto 1.6rem;
  filter:
    drop-shadow(0 0 24px rgba(212, 164, 55, 0.32))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
}

/* Wordmark: 1 line, Cinzel via Phase 1.5 override.
   Compact ~28px so it sits cleanly inside the vignette transparent zone. */
.hero-wordmark {
  font-size: clamp(1rem, 1.8vw, 1.75rem);
  letter-spacing: 0.18em;
  font-weight: 500;
  color: #F0E8D6;
  margin: 0;
  white-space: nowrap;
  line-height: 1.1;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

/* Heraldic seal divider — splits brand from motto */
.hero-divider {
  width: 80px;
  height: 1px;
  background: rgba(248, 242, 227, 0.45);
  margin: 1.25rem auto;
}

/* Motto: Playfair italic via Phase 1.5 override */
.hero-motto {
  font-size: clamp(1.0rem, 1.55vw, 1.3rem);
  color: rgba(248, 242, 227, 0.9);
  margin: 1.5rem 0 0;
  letter-spacing: 0.04em;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Tagline: Cinzel via override (.hero-tagline added to override below) */
.hero-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(248, 242, 227, 0.55);
  margin: 1rem 0 0;
  font-weight: 400;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(248, 242, 227, 0.5);
  z-index: 2;
  text-decoration: none;
  transition: color 0.3s ease;
}
.hero-scroll:hover { color: var(--gold); }

@media (max-width: 768px) {
  .hero-logo {
    width: clamp(90px, 18vw, 150px);
    margin-bottom: 1.2rem;
  }
  .hero-wordmark { letter-spacing: 0.14em; }
  .hero-divider { margin: 0.9rem auto; }
  .hero-vignette {
    background: radial-gradient(
      circle farthest-side at center,
      transparent 26%,
      rgba(42, 31, 27, 0.20) 39%,
      rgba(42, 31, 27, 0.60) 51%,
      rgba(42, 31, 27, 0.95) 62%,
      #2A1F1B 73%
    );
  }
}

@media (max-width: 480px) {
  /* 워드마크가 edge-to-edge 안 닿도록 hero-content padding 확장 +
     wordmark 폰트/letter-spacing 동시 축소. 양쪽 ~28px 여백 확보. */
  .hero-content { padding: 0 1.75rem; }
  .hero-logo {
    width: clamp(70px, 22vw, 110px);
    margin-bottom: 1rem;
  }
  .hero-wordmark {
    font-size: clamp(1.1rem, 6vw, 1.9rem);
    letter-spacing: 0.10em;
  }
  .hero-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.32em;
  }
}

/* Landscape mobile guard — keeps all 5 cluster elements on screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-logo {
    width: clamp(60px, 11vh, 90px);
    margin-bottom: 0.5rem;
  }
  .hero-wordmark { font-size: clamp(1.2rem, 4.4vh, 1.8rem); }
  .hero-divider { margin: 0.5rem auto; }
  .hero-motto { font-size: 0.85rem; }
  .hero-tagline { margin-top: 0.5rem; }
}

/* ---- Section bases ---- */
.brown-section { background: var(--brown); color: #F0E8D6; position: relative; }
.beige-section { background: var(--beige); color: var(--ink);  position: relative; }

/* On beige panels, the antique gold lacks contrast (1.9:1).
   Auto-darken to gold-deep (4.2:1, near AA) for eyebrows and small accents. */
.beige-section .gold-text { color: var(--gold-deep); }

/* fine gold hairline at section transitions */
.brown-section + .beige-section::before,
.beige-section + .brown-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
  opacity: 0.6;
  pointer-events: none;
}

/* ---- Gold divider ---- */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
}

/* ---- Paper grain overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  /* Promote to its own GPU layer so the mix-blend-mode composite
     doesn't re-rasterise on every scroll frame. */
  will-change: opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}


/* ---- Drop cap (Philosophy) ----
   Cinzel for Latin, Noto Serif KR for 한글 — both already imported for hero. */
.drop-cap::first-letter {
  font-family: 'Cinzel', 'Noto Serif KR', serif;
  font-size: 4.4rem;
  float: left;
  line-height: 0.88;
  padding: 0.5rem 0.7rem 0 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Pillar icon ---- */
.pillar-icon { width: 48px; height: 48px; margin: 0 auto 0.5rem; display: block; }

/* ===========================================================
   Business — editorial chapter ledger.
   3개 카드를 수직 ledger 로 재구성. 각 entry 는 좌측 오버사이즈
   골드 로마숫자 + 우측 title/body 블록. 골드 hairline 으로 구분.
   hover 시 전체가 살짝 오른쪽으로 슬라이드, 숫자 brighten,
   hairline 골드 활성화. PILLARS triptych 와 시각적 변주.
   =========================================================== */
/* PC: 3-column 그리드, 각 column 상단에 골드 hairline (18% baseline).
   Hover/in-view 시 hairline 이 좌→우로 100% 골드로 draw + 컬럼 -4px lift.
   PILLARS 의 "heraldic seal" 가운데서 펼치는 hairline 효과와 family,
   방향만 좌→우 directional draw. */
.business-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 4rem auto 0;
}

.business-card {
  position: relative;
  padding: 2.2rem 0 0;
  border-top: 1px solid rgba(197, 160, 89, 0.18);
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.22, 1);
}
.business-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.55s cubic-bezier(0.22, 0.8, 0.22, 1);
}
.business-card:hover,
.business-card.in-view {
  transform: translateY(-4px);
}
.business-card:hover::after,
.business-card.in-view::after {
  width: 100%;
}

/* 숫자 마커 — PILLARS 의 .pillar-numeral 과 동일 size/letter-spacing
   (0.72rem / 0.45em). 색만 brown bg 위라 --gold 사용. */
.business-numeral {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 500;
  font-size: 0.92rem;   /* unified with ABOUT (.about-card-index) — client 260618 */
  letter-spacing: 0.45em;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

/* ===========================================================
   Three Pillars — heraldic hover (hairline only)
   Gold hairlines unfurl top/bottom from the centre, like a seal
   being stamped onto the page. No lift, no shadow, no wash —
   the rest of the card stays exactly where it is.
   =========================================================== */
.pillar-card {
  position: relative;
  padding: 1.75rem 1rem;
}

.pillar-card::before,
.pillar-card::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(140, 110, 54, 0.0) 8%,
    var(--gold) 32%,
    var(--gold-light) 50%,
    var(--gold) 68%,
    rgba(140, 110, 54, 0.0) 92%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: width   0.8s cubic-bezier(0.22, 0.8, 0.22, 1),
              left    0.8s cubic-bezier(0.22, 0.8, 0.22, 1),
              opacity 0.55s ease,
              box-shadow 0.7s ease;
}
.pillar-card::before { top: 0; }
.pillar-card::after  { bottom: 0; }

/* Soft halo that breathes outward from the hairline.
   `.in-view` is added by ui.js on touch devices when the card
   crosses the viewport centre — same effect as :hover on desktop. */
.pillar-card:hover::before,
.pillar-card:hover::after,
.pillar-card.in-view::before,
.pillar-card.in-view::after {
  width: 78%;
  left: 11%;
  opacity: 1;
  box-shadow:
    0 0 12px 0 rgba(212, 185, 106, 0.45),
    0 0 28px 0 rgba(197, 160, 89, 0.22),
    0 0 56px 0 rgba(140, 110, 54, 0.12);
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  padding: 1.75rem 0;
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
nav.scrolled {
  background: rgba(59,46,42,0.92);
  /* 92% opaque background means a heavy blur is invisible anyway —
     drop blur radius from 14 → 6 and saturate from 140 → 120 to slash
     the per-frame blur texture cost over the live WebGL canvas. */
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px -10px rgba(0,0,0,0.5);
}
nav a { color: #F0E8D6; text-decoration: none; transition: color 0.3s; }
nav a:hover { color: var(--gold); }

/* ---- Lang toggle ---- */
.lang-toggle a {
  color: inherit;
  opacity: 0.55;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
}
.lang-toggle a.active { opacity: 1; color: var(--gold); }
.lang-toggle a:hover  { opacity: 1; }
.lang-toggle .sep { opacity: 0.3; margin: 0 0.6rem; }

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  background: var(--brown);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0;
  gap: 1.5rem;
}
.mobile-menu a { font-size: 0.95rem; }

/* Hamburger button — mobile only */
.mobile-toggle {
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s;
}
.mobile-toggle:hover { opacity: 0.7; }

@media (min-width: 768px) { .mobile-toggle { display: none; } }
@media (max-width: 767px) { .desktop-nav   { display: none; } }

/* ---- Animations ---- */
@keyframes fadeUp  { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn { from { opacity:0; transform: scale(0.92); } to { opacity:1; transform: scale(1); } }
@keyframes shimmer { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.hero-logo      { animation: scaleIn 1.6s cubic-bezier(0.4,0,0.2,1) 0.2s both; }
.hero-wordmark  { animation: fadeUp 1.1s ease-out 1.0s both; }
.hero-divider   { animation: fadeUp 1s   ease-out 1.3s both; }
.hero-motto     { animation: fadeUp 1s   ease-out 1.5s both; }
.hero-tagline   { animation: fadeUp 1s   ease-out 1.7s both; }
.hero-scroll    { animation: fadeIn 1s ease-out 2.2s both, shimmer 2.6s ease-in-out 2.2s infinite; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1),
              transform 1s cubic-bezier(0.4,0,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- Utilities ---- */
.gold-text { color: var(--gold); }
.ink-text  { color: var(--ink); }

/* Brand & hero typography exemption (client revision v1) —
   body/sections unified to Pretendard, but the logo wordmark
   (nav + footer TRINITAS) and the hero keep the original
   Cinzel + Playfair italic motto. */
nav a.classic[href="/"],
nav a.classic[href="/ko/"],
footer a.classic[href="#top"],
.hero-wordmark,
.hero-tagline {
  font-family: 'Cinzel', 'Noto Serif KR', serif;
}

.hero-motto {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
}

/* ---- Footer brand lockup (client rev) ----
   Gold three-keys emblem (text-stripped PNG) stacked over a white-tone
   wordmark + motto, rebuilt in HTML so the type reads on the brown footer
   (the source logo's lettering is black). Left-aligned within the grid. */
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-brand:hover { opacity: 0.9; }
.footer-emblem {
  width: clamp(60px, 6vw, 80px);
  height: auto;
  margin-bottom: 0.9rem;
  user-select: none;
  -webkit-user-drag: none;
}
.footer-wordmark {
  font-family: 'Cinzel', 'Noto Serif KR', serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #F0E8D6;
  line-height: 1.1;
}
.footer-motto {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(248, 242, 227, 0.8);
  margin-top: 0.5rem;
}

/* Mobile — brand wordmark/motto run a touch big against the stacked
   single-column footer; tighten size + tracking below md. */
@media (max-width: 768px) {
  .footer-wordmark { font-size: 0.68rem; letter-spacing: 0.12em; }
  .footer-motto    { font-size: 0.64rem; }
}

/* Philosophy section heading — client PDF p.2 explicitly requested
   Pretendard (sans) variant. Weight inherits from body so it matches
   the visual heft of the other .serif italic section headings;
   no italic/faux-italic since Pretendard ships no true italic. */
.section-title-sans {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  letter-spacing: 0.18em;
}

/* ====================================================================
   v1 revision — content typography & ABOUT cards
==================================================================== */

/* Lead text sits under section h2, breathes wider line height. */
.lead-text {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 720px;
  margin: 1.75rem auto 0;
  line-height: 1.75;
  text-align: center;
  font-weight: 300;
}
.beige-section .lead-text { color: var(--ink); opacity: 0.74; }
.brown-section .lead-text { color: #F0E8D6; opacity: 0.78; }

/* Korean 본문은 default word-break 가 어절 중간을 끊는다 (한글 음절 단위 분절).
   keep-all 로 어절 단위 줄바꿈 강제. 영문은 동작 변화 없음. */
.lead-text,
.philosophy-body p,
.pillar-body,
.business-body,
.about-card p,
.contact-lead {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ---- ABOUT — Foundation-stone cards
   Frameless. Left hairline + small index marker. Hover nudges
   content 4px right and warms the hairline gradient. ---- */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.75rem;
  margin-top: 4rem;
}

.about-card {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.85rem;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.about-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--gold) 0%,
    var(--gold) 40%,
    rgba(140, 110, 54, 0.25) 100%
  );
  transition: background 0.55s ease;
}

.about-card:hover,
.about-card.in-view {
  transform: translateX(4px);
}
.about-card:hover::before,
.about-card.in-view::before {
  background: linear-gradient(
    to bottom,
    var(--gold-light) 0%,
    var(--gold) 60%,
    var(--gold-deep) 100%
  );
}

.about-card-index {
  display: block;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}

.about-card h3 {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.about-card p {
  font-size: 1.125rem;
  color: var(--ink);
  opacity: 0.72;
  line-height: 1.7;
  max-width: 28ch;
  margin: 0;
}

@media (max-width: 768px) {
  .about-cards { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card p { max-width: none; }
}

/* ---- PHILOSOPHY body — left-aligned, first paragraph carries
   the gold Cinzel drop-cap as in the original design. ---- */
.philosophy-body {
  max-width: 760px;
  margin: 0 auto;
}

.philosophy-body p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.95;
  color: #F0E8D6;
  opacity: 0.85;
  margin: 0 0 1.3rem;
  font-weight: 300;
}

.philosophy-body p:last-child { margin-bottom: 0; }
/* Clear the drop-cap float so the next paragraph starts on its own line */
.philosophy-body p.drop-cap { overflow: hidden; }

/* ---- PILLARS — refined typography (card hover hairlines untouched) ---- */
.pillar-numeral {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 300;
  font-size: 0.92rem;   /* unified with ABOUT (.about-card-index) — client 260618 */
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  line-height: 1;
  margin: 0 0 1rem;
}

.pillar-title {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 500;
  font-size: 1.18rem;   /* unified with ABOUT (.about-card h3) — client 260618 */
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.pillar-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.72;
  max-width: 26ch;
  margin: 0 auto;
}

/* ---- BUSINESS — ledger entry typography ---- */
.business-title {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 500;
  font-size: 1.18rem;   /* unified with ABOUT (.about-card h3) — client 260618 */
  letter-spacing: 0.005em;
  color: #F0E8D6;
  line-height: 1.3;
  margin: 0 0 1.1rem;
}

.business-body {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.85;
  color: rgba(240, 232, 214, 0.74);
  max-width: 56ch;
  margin: 0;
}

@media (max-width: 768px) {
  .business-ledger {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 600px;
    margin-top: 2.5rem;
  }
  .business-card { padding: 2rem 0; }
  .business-card:last-of-type {
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
    padding-bottom: 2rem;
  }
  .business-card:hover,
  .business-card.in-view { transform: none; }
}

/* ====================================================================
   CONTACT — editorial composition (client revision).
   Single full-bleed baroque-architecture image; the source comp already
   bakes a beige fade into its left (text) half, so it lays in as one piece
   with the contact text overlaying the pre-faded left zone.
   Distinctive accents: gold-deep period mark, gold rule, hover underline.
==================================================================== */

.section-contact {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 8rem 2.5rem 7rem;
}

/* Full-bleed single image — the source comp already bakes its own beige
   fade into the left (text) half, so we lay it across the whole section
   as one piece. Text overlays the pre-faded left zone; castle sits right. */
.contact-image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/contact-bg-v2.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@supports not (background-image: url('placeholder.webp')) {
  .contact-image-bg {
    background-image: url('/assets/contact-bg-v2.jpg');
  }
}

/* No gradient — clean left (beige) / right (photo) split. */

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-heading {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 3rem);   /* text-3xl → text-5xl, 다른 섹션 일치 */
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 1.6rem;
}

.contact-period {
  color: var(--gold-deep);
  font-weight: 400;
  margin-left: 0.04em;
}

.contact-lead {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.74;
  margin: 0 0 2.6rem;
  max-width: 30em;
}

.contact-rule {
  width: 88px;
  height: 1px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold-deep) 100%);
  margin: 0 0 2.4rem;
}

.contact-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 520px;
}

.contact-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(140, 110, 54, 0.2);
  transition: border-bottom-color 0.45s ease,
              padding-left 0.45s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.contact-item:last-child { border-bottom-color: transparent; }
.contact-item:hover {
  border-bottom-color: var(--gold-deep);
  padding-left: 0.6rem;
}

.contact-label {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
  opacity: 0.85;
}

.contact-value {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}

/* Animated gold underline — draws left-to-right on hover via background-size */
.contact-value a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--gold-deep), var(--gold-deep));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size 0.45s cubic-bezier(0.22, 0.8, 0.22, 1),
              color 0.3s ease;
}
.contact-value a:hover {
  background-size: 100% 1px;
  color: var(--gold-deep);
}

/* ---- CONTACT mobile ---- */
@media (max-width: 768px) {
  .section-contact {
    min-height: 0;
    padding: 5.5rem 1.5rem 5rem;
  }
  .contact-inner { padding-left: 0; }
  /* Mobile uses the same single full-bleed original image — no overlay. */
  .contact-heading {
    font-size: clamp(1.5rem, 5.8vw, 2.0rem);
  }
  .contact-lead { font-size: 0.95rem; margin-bottom: 2.2rem; }
  .contact-rule { margin-bottom: 2rem; }
  .contact-item {
    grid-template-columns: 5.5rem 1fr;
    gap: 0.9rem;
    padding: 1rem 0;
  }
  .contact-label { font-size: 0.6rem; letter-spacing: 0.24em; }
}

@media (max-width: 480px) {
  .section-contact {
    padding: 4.5rem 1.25rem 4rem;
  }
  .contact-heading { font-size: clamp(1.3rem, 6.2vw, 1.65rem); }
  .contact-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.85rem 0;
  }
  .contact-item:hover { padding-left: 0; }
  .contact-value { font-size: 1rem; }
}

