@charset "UTF-8";

/* ==========================================================================
   0. DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --paper:        #F5F4EF;
  --paper-2:      #F7F6F2;
  --paper-3:      #EFEDE6;
  --ink:          #141414;
  --ink-2:        #2A2A28;
  --muted:        #5E5D59;
  --line:         rgba(20, 20, 20, 0.14);
  --line-strong:  rgba(20, 20, 20, 0.28);
  --accent:       #E84A27;
  --accent-soft:  rgba(232, 74, 39, 0.10);

  --font-sans:    Pretendard, "Noto Sans KR", "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Monaco, Consolas, monospace;

  --rail-width:   18px;
  --header-h:     68px;
  --scale-h:      22px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main, section[id], [id="contact"] {
  scroll-margin-top: calc(var(--header-h) + var(--scale-h) + 14px);
}

body.heron {
  background-color: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-left: var(--rail-width);
  padding-right: var(--rail-width);
}

body.drawer-open {
  overflow: hidden;
  height: 100vh;
}

@media (max-width: 767px) {
  body.heron {
    padding-left: 0;
    padding-right: 0;
  }
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 0 0 2px 2px;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   1. LAYOUT FRAME (RULER RAILS & CORNER MARKS)
   ========================================================================== */
.ruler-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: 40;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line-strong) 0px,
    var(--line-strong) 1px,
    transparent 1px,
    transparent 12px
  );
}

.ruler-rail-left {
  left: 0;
  border-right: 1px solid var(--line);
}

.ruler-rail-right {
  right: 0;
  border-left: 1px solid var(--line);
}

@media (max-width: 767px) {
  .ruler-rail {
    display: none;
  }
}

.horizontal-scale-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--scale-h);
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  user-select: none;
  position: relative;
  z-index: 30;
}

.corner-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.scale-ticks-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: space-between;
  margin: 0 16px;
}

.scale-ticks {
  flex: 1;
  height: 6px;
  background-image: repeating-linear-gradient(
    to right,
    var(--line-strong) 0px,
    var(--line-strong) 1px,
    transparent 1px,
    transparent 8px
  );
}

.scale-coordinate {
  font-size: 9px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .scale-ticks-container .scale-coordinate:nth-child(3) {
    display: none;
  }
}

/* ==========================================================================
   2. NAVIGATION (HEADER & MOBILE DRAWER)
   ========================================================================== */
.heron-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.heron-header.is-scrolled {
  border-bottom-color: var(--line-strong);
}

.nav-brand-container {
  height: 100%;
  width: 250px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--line);
}

@media (max-width: 1023px) {
  .nav-brand-container {
    width: auto;
    padding: 0 16px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .brand-logo-img {
    height: 32px;
    max-width: 180px;
  }
}

.brand-wordmark {
  display: none;
}

.nav-compartments {
  display: flex;
  height: 100%;
  align-items: center;
  margin-left: auto;
}

.nav-cell {
  height: 100%;
  min-width: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-cell:hover {
  background-color: rgba(20, 20, 20, 0.03);
}

.cell-num {
  font-size: 9px;
  color: var(--muted);
  margin-right: 8px;
}

.nav-langs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.lang-link {
  color: var(--muted);
  transition: color 0.18s ease;
}

.lang-link.active,
.lang-link:hover {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-divider {
  color: var(--line-strong);
}

.nav-contact-cell {
  background-color: var(--accent);
  color: #FFFFFF;
}

.nav-contact-cell .cell-label {
  color: #FFFFFF;
  font-weight: 600;
}

.nav-contact-cell:hover {
  background-color: #D03D1C;
}

.nav-end-arrow {
  height: 100%;
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-cell {
    padding: 0 14px;
    min-width: auto;
  }
  .cell-num {
    display: none;
  }
}

/* Mobile Header Controls */
.mobile-menu-toggle {
  display: none;
  height: 100%;
  padding: 0 20px;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  appearance: none;
  background: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.hamburger-icon span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--ink);
}

@media (max-width: 1023px) {
  .nav-compartments {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  overscroll-behavior: contain;
}

.mobile-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.drawer-close-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: inherit;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 2px;
  width: auto;
  text-align: center;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.drawer-link {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}

.drawer-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.drawer-footer {
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--paper-2);
}

.drawer-langs {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.drawer-langs a.active {
  font-weight: 700;
  text-decoration: underline;
}

.drawer-contact-btn {
  display: block;
  text-align: center;
  padding: 16px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 2px;
}

/* ==========================================================================
   3. HERO SECTION (DRAWING FRAME & SPLIT BAR)
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  position: relative;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
}

/* Desktop: ensure entire hero fits in 1440x900 viewport without scrolling */
@media (min-width: 1024px) {
  .hero {
    height: calc(100svh - var(--header-h) - var(--scale-h));
    min-height: 620px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
  }
}

.hero-drawing-frame {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 14px 16px;
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image: 
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  min-height: 0;
}

.frame-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
  user-select: none;
  z-index: 3;
}

.mark-top-left { top: -6px; left: -6px; }
.mark-top-right { top: -6px; right: -6px; }
.mark-bottom-left { bottom: -6px; left: -6px; }
.mark-bottom-right { bottom: -6px; right: -6px; }

.hero-drawing-header {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}

.drawing-image-wrapper {
  position: absolute;
  inset: 44px 28px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.drawing-inner {
  position: relative;
  display: block;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1448 / 1086;
  max-width: 100%;
}

.hero-sketch-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.03);
}

/* Orange Blueprint Nodes */
.pulse-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  border: 1px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: pulse-ring 3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.dot-1 {
  left: 27%;
  top: 62%;
}

.dot-2 {
  left: 76%;
  top: 52%;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after {
    animation: none;
  }
}

.hero-drawing-caption {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-align: right;
  z-index: 2;
  pointer-events: none;
}

/* Split Bar */
.hero-split-bar {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  border-top: 1px solid var(--line);
  background-color: var(--paper);
}

.split-col {
  padding: clamp(16px, 1.8vw, 24px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split-left {
  border-right: 1px solid var(--line);
}

.split-left .eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 8px;
}

.split-left h1 {
  font-size: clamp(34px, 4.4vw, 70px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
  color: var(--ink);
}

.split-right {
  gap: 12px;
}

.right-top-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hero-sub-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-sub-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.hero-cta-button {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.cta-text {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  white-space: nowrap;
}

.cta-line {
  flex: 1;
  height: 1px;
  background-color: var(--ink);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.hero-cta-button:hover {
  color: var(--accent);
}

.hero-cta-button:hover .cta-line {
  background-color: var(--accent);
}

.hero-cta-button:hover .cta-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* Marquee Bar */
.marquee-bar {
  height: 40px;
  flex: none;
  border-top: 1px solid var(--line);
  background-color: var(--paper-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 24s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee-content span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
  padding: 0 16px;
}

.marquee-content .bullet {
  color: var(--accent);
  font-size: 8px;
  padding: 0 4px;
}

@keyframes marquee-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Hero Responsive Adaptations */
@media (max-width: 1023px) {
  .hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-drawing-frame {
    margin: 12px;
    min-height: 46vh;
  }
  .drawing-image-wrapper {
    inset: 34px 12px 26px;
  }
  .drawing-inner {
    max-height: 100%;
  }
  .hero-split-bar {
    grid-template-columns: 1fr;
  }
  .split-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .split-col {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .hero-drawing-frame {
    min-height: 40vh;
  }
  .drawing-image-wrapper {
    inset: 34px 12px 24px;
  }
}

/* ==========================================================================
   4. COMMON SECTION SYNTAX
   ========================================================================== */
.section {
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4.4vw, 72px);
  border-top: 1px solid var(--line);
  position: relative;
  background-color: var(--paper);
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.section-tag {
  color: var(--ink);
  font-weight: 600;
}

.section-caption {
  font-size: 10px;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.section-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}

/* ===== ABOUT (#about) ===== */
.intro.section {
  background-color: var(--paper-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-main-col h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--ink);
}

.highlight-underline {
  font-style: normal;
  display: inline;
  background: none;
  padding: 0;
  border-bottom: 4px solid var(--accent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 640px;
}

.about-spec-col {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 24px;
}

.spec-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  align-items: center;
  font-size: 14px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.spec-value {
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ===== SERVICE (#service) ===== */
.services.section .section-head {
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  align-items: stretch;
}

.service-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  position: relative;
  background: var(--paper);
  transition: background-color 0.2s ease;
}

.service-card:hover {
  background-color: var(--paper-3);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.card-num::before {
  content: "[ ";
}

.card-num::after {
  content: " ]";
}

.card-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-card:hover .card-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.service-card h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Service Blueprint Dimension Motif (Disabled) */
.card-blueprint-motif {
  display: none !important;
}

/* ===== PROJECTS (#projects) ===== */
.project-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-items: stretch;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 14px 14px 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  outline: none;
}

.project-img-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}

.project-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover .project-img-frame img,
.project:focus-visible .project-img-frame img {
  transform: scale(1.04);
}

.project-index-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 6px;
  background: rgba(245, 244, 239, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.project-hover-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.project:hover .project-hover-arrow,
.project:focus-visible .project-hover-arrow {
  opacity: 1;
  transform: translateY(0);
}

.project-info-body {
  padding: 18px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  flex: 1;
}

.project-info-body small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
}

.project-info-body h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.project-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-card-arrow {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}

.project:hover .project-card-arrow {
  color: var(--ink);
}

/* Instagram Project Card */
.instagram-project {
  background: var(--paper-3);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.insta-content-wrapper {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.instagram-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--ink);
}

.instagram-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: hidden;
}

.instagram-dot {
  fill: currentColor;
  stroke: none;
}

.insta-content-wrapper small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 6px;
}

.insta-content-wrapper strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.instagram-copy {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 16px;
}

.instagram-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.instagram-project:hover .instagram-arrow {
  transform: translate(3px, -3px);
}

/* ===== PROCESS (#process) ===== */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.process-intro h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ink);
}

.process-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.process-img-mat {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-3);
  padding: 12px;
}

.process-img-mat img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.mat-label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  background: rgba(20, 20, 20, 0.88);
  color: #ffffff;
  padding: 4px 8px;
  text-transform: uppercase;
}

.process-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

/* Connective vertical timeline bar */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 25px;
  bottom: -25px;
  width: 1px;
  background-color: var(--line-strong);
  z-index: 1;
}

.timeline-item:last-child::before {
  display: none;
}

/* Orange indicator bar on left on hover */
.timeline-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.timeline-item:hover::after {
  opacity: 1;
}

.item-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease;
}

.step-node {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  background: var(--paper);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.timeline-item:hover .step-num {
  color: var(--accent);
}

.timeline-item:hover .step-node {
  background-color: var(--accent);
  border-color: var(--accent);
}

.item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-eng {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 2px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-2);
}

/* ===== FAQ (#faq) ===== */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background-color 0.2s ease;
}

.faq-item[open] {
  background: var(--paper-2);
}

.faq-item summary {
  list-style: none;
  padding: 20px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 20px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.faq-item p,
details[open] > p {
  border: 0;
  padding: 0 0 20px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== CONTACT (#contact) ===== */
.contact.dark-section {
  background-color: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-strong);
}

.dark-header-bar {
  border-bottom: 1px solid rgba(245, 244, 239, 0.18);
}

.accent-tag {
  color: var(--accent) !important;
  font-weight: 700;
}

.muted-light {
  color: rgba(245, 244, 239, 0.6) !important;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-head-col h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 16px;
}

.contact-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(245, 244, 239, 0.6);
  margin-bottom: 36px;
  text-transform: uppercase;
}

.button.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #ffffff;
  padding: 18px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button.contact-cta-btn:hover {
  background: #d03d1c;
  transform: translateY(-2px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(245, 244, 239, 0.18);
}

.contact-link-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  padding: 24px 12px;
  border-bottom: 1px solid rgba(245, 244, 239, 0.18);
  text-decoration: none;
  color: var(--paper);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

/* Reset button styling for copy-kakao contact-link-row */
button.copy-kakao.contact-link-row {
  appearance: none;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(245, 244, 239, 0.18);
  font: inherit;
  color: var(--paper);
  text-align: left;
  width: 100%;
}

.contact-link-row:hover {
  background-color: rgba(245, 244, 239, 0.05);
}

.link-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 244, 239, 0.5);
  text-transform: uppercase;
}

.link-value {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--paper);
  font-family: var(--font-mono);
}

.link-action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

.copy-btn-inner {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(245, 244, 239, 0.3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  width: auto;
}

.copy-btn-inner:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ===== FOOTER ===== */
footer.heron-footer {
  background-color: #0c0c0c;
  color: var(--paper);
  border-top: 1px solid rgba(245, 244, 239, 0.14);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4.4vw, 72px) 40px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  border-bottom: 1px solid rgba(245, 244, 239, 0.14);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.footer-brand-wrap {
  max-width: 400px;
}

.brand-wordmark-footer {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--paper);
}

.brand-wordmark-footer span {
  font-weight: 300;
  opacity: 0.7;
}

.footer-desc {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(245, 244, 239, 0.6);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-link {
  color: rgba(245, 244, 239, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

button.footer-link {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  text-align: right;
  width: auto;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-corp {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.corp-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-bottom: 1px solid rgba(245, 244, 239, 0.1);
  padding-bottom: 28px;
}

.corp-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.corp-item-full {
  grid-column: 1 / -1;
}

.corp-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(245, 244, 239, 0.4);
  text-transform: uppercase;
}

.corp-val {
  font-size: 13px;
  color: rgba(245, 244, 239, 0.85);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.corp-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid rgba(245, 244, 239, 0.3);
  color: rgba(245, 244, 239, 0.7);
  display: inline-block;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245, 244, 239, 0.4);
}

/* ===== FLOATING CONTACT ===== */
aside.floating-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fab-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(245, 244, 239, 0.18);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  border-radius: 0;
  appearance: none;
}

.fab-btn span,
.fab-badge {
  display: none;
}

.fab-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.fab-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  overflow: hidden;
}

/* Mobile Floating Contact Override */
@media (max-width: 767px) {
  aside.floating-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(20, 20, 20, 0.9);
    z-index: 90;
  }
  aside.floating-contact .fab-btn {
    width: 100%;
    height: 56px;
    justify-content: center;
    gap: 8px;
    padding: 0 10px calc(env(safe-area-inset-bottom, 0px));
    font-size: 12px;
  }
  aside.floating-contact .fab-btn span {
    display: inline;
  }
  aside.floating-contact .fab-btn svg {
    width: 18px;
    height: 18px;
  }
  aside.floating-contact .fab-badge {
    display: none;
  }
  footer.heron-footer {
    padding-bottom: 64px;
  }
}

/* ===== SCROLL REVEAL & ACCESSIBILITY ===== */
.is-ready .section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.is-ready .section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1199px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .corp-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .ruler-rail {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .process-layout {
    grid-template-columns: 1fr;
  }
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    text-align: left;
  }
  .footer-contact {
    text-align: left;
  }
  button.footer-link {
    text-align: left;
  }
  .scale-ticks-container .scale-coordinate:nth-child(3) {
    display: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 56px 20px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .project-grid-6 {
    grid-template-columns: 1fr;
  }
  .spec-row {
    grid-template-columns: 100px 1fr;
  }
  .contact-link-row,
  button.copy-kakao.contact-link-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }
}

/* ==========================================================================
   9. PROJECT DETAIL PAGE (pd-*)
   ========================================================================== */

.detail-page .pd-hero {
  padding: 0 clamp(20px, 4.4vw, 72px);
  margin-top: 20px;
}

.pd-hero-inner {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: rgba(20, 20, 20, 0.015);
}

.pd-frame-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.pd-frame-mark::before,
.pd-frame-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.pd-frame-mark::before { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-0.5px); }
.pd-frame-mark::after { height: 1px; width: 100%; top: 50%; left: 0; transform: translateY(-0.5px); }

.pd-mark-tl { top: -6px; left: -6px; }
.pd-mark-tr { top: -6px; right: -6px; }
.pd-mark-bl { bottom: -6px; left: -6px; }
.pd-mark-br { bottom: -6px; right: -6px; }

.pd-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 32px;
}

.pd-back {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.pd-back:hover {
  color: var(--accent);
}

.pd-ref {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.pd-top-coord {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.pd-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.pd-title {
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 8px;
}

.pd-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
  margin-bottom: 48px;
}

.pd-spec {
  border-top: 1px solid var(--line);
  margin-bottom: 56px;
}

.pd-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  align-items: baseline;
}

.pd-spec-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pd-spec-val {
  font-size: 15px;
  color: var(--ink);
}

.pd-hero-figure {
  margin-top: 40px;
}

.pd-frame {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--paper-3);
}

.pd-frame-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: cover;
}

.pd-fig-cap {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
}

.pd-body {
  padding: 0 clamp(20px, 4.4vw, 72px);
}

.pd-section {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.pd-section-head {
  display: flex;
  align-items: baseline;
  margin-bottom: 32px;
}

.pd-section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-right: 12px;
}

.pd-section-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  flex-grow: 1;
}

.pd-section-eng {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pd-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 800px;
}

.pd-text strong {
  color: var(--ink);
  font-weight: 600;
}

.pd-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--line);
  border-bottom: 1px solid var(--line);
}

.pd-gallery-item {
  background-color: var(--paper);
  padding: 24px;
}

.pd-gallery-cap {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.pd-gallery-cap strong {
  color: var(--ink);
  font-weight: 600;
}

.pd-cta {
  background-color: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
}

.pd-cta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.pd-cta-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.pd-cta-text {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

.pd-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  min-width: 180px;
}

.pd-btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.pd-btn-primary:hover {
  background-color: var(--ink);
  border-color: var(--ink);
}

.pd-btn-line {
  background-color: #06C755;
  border-color: #06C755;
  color: #ffffff;
}

.pd-btn-line:hover {
  opacity: 0.9;
}

.pd-btn-kakao {
  background-color: #FEE500;
  border-color: #FEE500;
  color: #191919;
}

.pd-btn-kakao:hover {
  opacity: 0.9;
}

.pd-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.pd-pager-link {
  display: flex;
  flex-direction: column;
  padding: 40px clamp(20px, 4.4vw, 40px);
  transition: background-color 0.3s ease;
  position: relative;
}

.pd-pager-link:first-child {
  border-right: 1px solid var(--line);
}

.pd-pager-link:last-child {
  text-align: right;
  align-items: flex-end;
}

.pd-pager-link:hover {
  background-color: rgba(20, 20, 20, 0.02);
}

.pd-pager-dir {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.pd-pager-name {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  transition: color 0.3s ease;
  margin-bottom: 12px;
}

.pd-pager-link:hover .pd-pager-name {
  color: var(--accent);
}

.pd-pager-arrow {
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.pd-pager-link:first-child:hover .pd-pager-arrow { transform: translateX(-6px); }
.pd-pager-link:last-child:hover .pd-pager-arrow { transform: translateX(6px); }

@media (max-width: 1023px) {
  .pd-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pd-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .pd-spec-key {
    margin-bottom: 2px;
  }

  .pd-cta-actions {
    flex-direction: column;
  }
  
  .pd-btn {
    width: 100%;
  }

  .pd-pager {
    grid-template-columns: 1fr;
  }

  .pd-pager-link:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  
  .pd-section-head {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-back,
  .pd-pager-link,
  .pd-pager-name,
  .pd-pager-arrow,
  .pd-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== HERO DRAWING CAPTION (multi-line safe) ===== */
.hero-drawing-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
  max-width: calc(100% - 40px);
}

.hero-drawing-caption span {
  display: block;
}

/* ===== DETAIL / JA MOBILE FINISHING ===== */

.pd-frame-mark { font-size: 0; line-height: 0; color: transparent; }

@media (max-width: 767px) {
  .pd-hero-top { display: flex; flex-wrap: wrap; row-gap: 6px; align-items: baseline; }
  .pd-back, .pd-ref { white-space: nowrap; }
  .pd-top-coord { display: none; }

  html[lang="ja"] .floating-contact { display: flex; }
  html[lang="ja"] .floating-contact .fab-btn { flex: 1; font-size: 10px; letter-spacing: 0.02em; gap: 4px; padding: 0 4px; }
  html[lang="ja"] .floating-contact .fab-btn span { white-space: nowrap; }
  html[lang="ja"] .floating-contact .fab-badge { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pd-hero-top { font-size: 9px; }
}

/* ===== JA FAB ROW FIX ===== */
@media (max-width: 767px) {
  html[lang="ja"] .floating-contact {
    flex-direction: row;
  }
  html[lang="ja"] .floating-contact > * {
    flex: 1 1 50%;
    min-width: 0;
  }
}

/* ===== V12 HERO SKETCH WIDE — 1.5x (v12_final.css, Gemini 생성) ===== */
.drawing-image-wrapper {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  inset: 44px 16px 52px; /* 1024px 이상: 아래 여백 52px로 캡션 2줄 자리 확보 */
}

.drawing-inner {
  position: relative;
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  width: 70.5%; /* 1024px 이상 가로 폭 설정 */
}

.hero-sketch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.03); /* 스케치 이미지 스타일 및 비율 채우기 */
}

.dot-1 {
  left: 30%;
  top: 63.2%; /* 1024px 이상 첫 번째 도트 위치 */
}

.dot-2 {
  left: 76.4%;
  top: 75.1%; /* 1024px 이상 두 번째 도트 위치 */
}

@media (max-width: 1023px) {
  .drawing-image-wrapper {
    inset: 34px 12px 46px; /* 768~1023px 구간 여백 설정 */
  }
  .drawing-inner {
    width: 88%; /* 768~1023px 구간 가로 폭 설정 */
  }
  .dot-1 {
    left: 30%;
    top: 60.3%; /* 768~1023px 구간 첫 번째 도트 위치 */
  }
  .dot-2 {
    left: 76.4%;
    top: 69.5%; /* 768~1023px 구간 두 번째 도트 위치 */
  }
}

@media (max-width: 767px) {
  .drawing-image-wrapper {
    inset: 34px 10px 46px; /* 767px 이하 구간 여백 설정 */
  }
  .drawing-inner {
    width: 100%; /* 767px 이하 구간 가로 폭 설정 */
  }
  .dot-1 {
    left: 30%;
    top: 58.5%; /* 767px 이하 구간 첫 번째 도트 위치 */
  }
  .dot-2 {
    left: 76.4%;
    top: 66.2%; /* 767px 이하 구간 두 번째 도트 위치 */
  }
}

/* ===== V12 HERO TABLET WIDTH (v12_tablet.css) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 태블릿 전용 스타일 */
  .drawing-inner {
    height: 100%;
    width: auto;
    aspect-ratio: 2 / 1;
    max-width: 88%;
    max-height: 100%;
  }
}

/* ===== V13 FOOTER NAP (v13_footer_nap.css, Gemini 생성) ===== */
.corp-val.footer-nap-address {
  width: 100%;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-nap-phone {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 244, 239, 0.3);
}

.footer-nap-phone:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
  .corp-val.footer-nap-address {
    font-size: 12px;
    line-height: 1.6;
  }
}

/* ===== V14 FOOTER PHONE HIDDEN (v14_footer_hide_phone.css, Gemini 생성·검토) =====
   푸터 배경(#0c0c0c)과 글자색을 동일하게 맞춰 전화 라벨/번호를 시각적으로 비노출.
   DOM·tel: 링크·JSON-LD는 그대로 유지. */
.corp-item.corp-item-phone,
.corp-item.corp-item-phone .corp-label,
.corp-item.corp-item-phone .corp-val,
.corp-item.corp-item-phone .footer-nap-phone,
.corp-item.corp-item-phone .footer-nap-phone:link,
.corp-item.corp-item-phone .footer-nap-phone:visited,
.corp-item.corp-item-phone .footer-nap-phone:hover,
.corp-item.corp-item-phone .footer-nap-phone:focus,
.corp-item.corp-item-phone .footer-nap-phone:focus-visible,
.corp-item.corp-item-phone .footer-nap-phone:active {
  color: #0c0c0c !important;
  -webkit-text-fill-color: #0c0c0c !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-line: none !important;
  text-underline-offset: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  caret-color: transparent !important;
}
