/* ==========================================================================
   OOA Architects — Stylesheet
   Pretendard (self-hosted, Korean-optimized subset) drives all site
   typography — headings, body copy, and UI chrome alike.
   Fixed left sidebar + main content shell. No build tooling — plain CSS.
   ========================================================================== */

@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Background: pure white. Text hierarchy via black opacity steps. */
  --c-bg: #ffffff;
  --c-text-1: rgba(0, 0, 0, 0.85); /* primary */
  --c-text-2: rgba(0, 0, 0, 0.75); /* secondary */
  --c-text-3: rgba(0, 0, 0, 0.6);  /* tertiary */
  --c-text-4: rgba(0, 0, 0, 0.4);  /* muted */
  --c-text-5: rgba(0, 0, 0, 0.25); /* faint */
  --c-line: rgba(0, 0, 0, 0.12);

  /* Accents — used sparingly */
  --c-teal: #04a1b2;
  --c-accent: #edff07;
  --c-chip-bg: rgba(0, 0, 0, 0.85);

  /* Typography */
  --font-mono: "Pretendard", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-sans: "Pretendard", -apple-system, "Helvetica Neue", Arial, "Malgun Gothic",
    "Apple SD Gothic Neo", sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Layout */
  --sidebar-w: 280px;
  --content-max: 900px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1.2;
  background-color: var(--c-bg);
  color: var(--c-text-1);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Intro Splash (index.html only) ---------- */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8c65a;
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-dot {
  position: absolute;
  top: clamp(1.25rem, 4vw, 2.5rem);
  right: clamp(1.25rem, 4vw, 2.5rem);
  width: clamp(1.25rem, 3vw, 2rem);
  height: clamp(1.25rem, 3vw, 2rem);
  border-radius: 50%;
  background-color: #000;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro-splash.is-dot-revealed .intro-dot {
  opacity: 1;
  transform: scale(1);
}

.intro-lines {
  text-align: left;
}

.intro-line {
  font-family: var(--font-sans);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.intro-strong {
  font-weight: 700;
  color: #000;
}

.intro-light {
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  opacity: 0;
  transform: translateX(-0.3em);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.intro-splash.is-revealed .intro-light {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .intro-line {
    font-size: clamp(2.5rem, 16.7vw, 7rem);
    white-space: nowrap;
  }

  .intro-light {
    -webkit-text-stroke: 1px #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash,
  .intro-light {
    transition: none !important;
  }
}

/* 수상 등급(우수상(3등) 등)만 한 단계(Medium)만 진하게 — 자연스러운 강조 */
.award-line .award-grade {
  font-weight: 500;
}

.award-line {
  display: flex;
  gap: var(--space-2);
  white-space: nowrap;
  overflow-x: auto;
}

.award-line.small-print {
  max-width: none;
}

.award-line span {
  flex-shrink: 0;
}

.award-date {
  flex: 0 0 3rem;
  color: var(--c-text-4);
}

.team-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.team-row > div {
  flex: 1 1 240px;
  min-width: 200px;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.67rem;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-text-4);
}

.heading-xl {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 5vw + 1rem, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--c-text-1);
}

.heading-lg {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--c-text-1);
}

.heading-md {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--c-text-1);
}

/* Reading body copy — Archivo, comfortable line-height. Mono is reserved
   for UI chrome (nav, meta lists, labels, captions, small print). */
.body-copy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-text-1);
  max-width: 62ch;
}

/* Small print / disclaimers — stays on mono, sized like other UI chrome */
.small-print {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-text-3);
  max-width: 62ch;
}

/* Signature accent chip: black bg + yellow-green text.
   Reserved for rare moments — the sidebar category tags and one hero
   accent on the homepage. Everyday repeated labels use .tag-label instead. */
.tag-chip {
  display: inline-block;
  background-color: var(--c-chip-bg);
  color: var(--c-accent);
  padding: 0.1em 0.4em;
  font-size: 0.65rem;
  letter-spacing: -0.01em;
}

/* Quiet label variant for repeated per-item tags (project archive entries).
   No accent background — plain uppercase text with a hairline underline. */
.tag-label {
  display: inline-block;
  color: var(--c-text-3);
  padding: 0.1em 0;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-line);
}

/* ---------- App Shell ---------- */
.app-shell {
  display: block;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  background-color: var(--c-bg);
  border-right: 1px solid var(--c-line);
  padding: var(--space-3) var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.logo {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--c-text-1);
}

.logo-strong {
  font-weight: 700;
}

.sidebar-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.sidebar-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--c-text-1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Sidebar Nav Tree ---------- */
.nav-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.nav-main > a {
  font-size: 23px;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--c-text-2);
}

.nav-main > a[aria-current="page"],
.nav-main > a:hover,
.nav-main > a:focus-visible {
  color: var(--c-teal);
}

.nav-tree > summary,
.nav-category > summary {
  cursor: pointer;
  font-family: var(--font-mono);
  list-style: none;
}

.nav-tree > summary::-webkit-details-marker,
.nav-category > summary::-webkit-details-marker {
  display: none;
}

.nav-tree > summary {
  font-size: 23px;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--c-text-1);
  padding: 0;
}

.category-list {
  padding-left: 0.75rem;
  border-left: 1px solid var(--c-line);
  margin-top: 0.25em;
}

.nav-category > summary {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--c-text-2);
  padding: 0.3em 0;
}

.nav-category:not([open]) > summary::marker {
  content: "";
}

.project-list {
  padding-left: 0.9rem;
  display: flex;
  flex-direction: column;
}

.project-list li a {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: inherit;
  color: var(--c-text-2);
  padding: 0.15em 0.3em;
  margin-inline-start: -0.3em;
  border-radius: 2px;
  transition: color 0.15s ease, background-color 0.15s ease, padding-inline-start 0.15s ease;
}

/* Quiet hover state — a soft tint + indent + teal text. The loud
   black-chip/yellow-green treatment is reserved for rare accent moments
   (nav category chips, single hero label), not a frequent hover state. */
.project-list li a:hover,
.project-list li a:focus-visible {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--c-teal);
  padding-inline-start: 0.6em;
}

/* ---------- Sidebar Contact Block (pinned bottom) ---------- */
.sidebar-contact {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-3);
}

.sidebar-contact a {
  color: var(--c-text-3);
}

.sidebar-contact a:hover,
.sidebar-contact a:focus-visible {
  color: var(--c-teal);
}

/* ---------- Main Content ---------- */
.page-content {
  margin-left: var(--sidebar-w);
  padding: 2rem;
  min-height: 100vh;
}

.content-col {
  max-width: 88%;
  width: 100%;
}

@media (max-width: 900px) {
  .content-col {
    max-width: 100%;
  }
}

.section {
  margin-bottom: var(--space-6);
}

/* Home page: sparse-by-design layout (H1 + one hero visual). Center the
   block vertically on larger screens so the space reads as intentional
   minimalism rather than an unfinished page. */
@media (min-width: 900px) {
  .page-content--home {
    display: flex;
    align-items: center;
    min-height: 100vh;
  }
}

.home-intro {
  margin-bottom: var(--space-5);
}

.divider {
  border: none;
  border-top: 1px solid var(--c-line);
  margin: var(--space-4) 0;
}

/* ---------- Press (press.html) ----------
   utaa.co.kr/news 레이아웃 참고: 좌측 날짜 | 제목 | 우측 회색 출처,
   그 아래 우측 정렬 대형 썸네일(클릭 시 기사/영상으로 이동), 가는 구분선 */
.press-list {
  list-style: none;
  margin-top: var(--space-5);
  padding: 0;
}

.press-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  column-gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--c-line);
}

.press-item:last-child {
  border-bottom: 1px solid var(--c-line);
}

.press-date {
  font-size: 0.9rem;
  color: var(--c-text-3);
  white-space: nowrap;
}

.press-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.press-title a {
  color: var(--c-text-1);
  text-decoration: none;
}

.press-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.press-source {
  font-size: 0.9rem;
  color: var(--c-text-4);
  text-align: right;
  white-space: nowrap;
}

.press-source a {
  color: inherit;
  text-decoration: none;
}

.press-source a:hover {
  color: var(--c-text-1);
}

.press-thumb {
  grid-column: 2 / -1;
  justify-self: end;
  display: block;
  width: min(100%, 22rem);
  margin-top: var(--space-3);
}

.press-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 640px) {
  .press-item {
    grid-template-columns: 1fr;
    row-gap: 0.4em;
  }

  .press-source {
    text-align: left;
  }

  .press-thumb {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ---------- Placeholder Surface: shared "atelier placeholder" treatment ----------
   Every real-image slot (hero, gallery tiles) is a richer, multi-stop
   gradient with a faint fine-line architectural overlay — read as an
   intentional drafting/blueprint motif, not a loading skeleton.
   .contact-map is excluded: it now holds a real embedded map. */
.hero-visual,
.slide {
  position: relative;
  overflow: hidden;
}

.hero-visual::before,
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 96px);
  pointer-events: none;
}

/* ---------- Home Hero ---------- */
.hero-tagline {
  margin-bottom: var(--space-3);
}

.hero-visual {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  margin-top: var(--space-4);
  border-radius: 2px;
  background: var(--c-bg);
  transition: transform 0.4s ease;
}

/* object-fit: contain on .hero-visual-img can leave letterbox strips beside
   portrait photos — keep those strips plain (page background, no texture)
   instead of the placeholder gradient/line-grid used elsewhere. */
.hero-visual::before {
  display: none;
}

/* Match the aspect ratio used by each project's own gallery (.slideshow)
   so the home hero reads at the same size as the other Op. main images. */
@media (min-width: 768px) {
  .hero-visual {
    aspect-ratio: 16 / 10;
  }
}

.hero-visual:hover,
.hero-visual:focus-visible {
  transform: scale(1.015);
}

.hero-visual .hero-visual-label {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  z-index: 1;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hero-visual:hover .hero-visual-label,
.hero-visual:focus-visible .hero-visual-label {
  opacity: 1;
}

/* Per-project gallery caption — same hover-reveal white text treatment as
   the cover image, shown above the slide-dots strip regardless of which
   photo is active. */
.slideshow .slide-caption {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  z-index: 3;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.slideshow:hover .slide-caption,
.slideshow:focus-within .slide-caption {
  opacity: 1;
}

/* ---------- Project Gallery Slideshow ----------
   One large image shown at a time with prev/next controls + dots.
   Slides reuse the tile-a..tile-d placeholder gradient variants for
   visual variety, and the shared "atelier placeholder" line overlay
   (see .slide in the Placeholder Surface rule above). */
.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}

@media (min-width: 768px) {
  .slideshow {
    aspect-ratio: 16 / 10;
  }
}

.slideshow:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 2px;
}

.slideshow-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(calc(var(--active, 0) * -100%));
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: var(--space-1);
}

.slide .slide-index {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Real project photographs sit above the placeholder line-grid (.slide::before)
   and below the legibility scrim (.slide::after) so the index label stays readable. */
.slide-img,
.hero-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home hero auto-slideshow — cross-fades between stacked images instead of
   the prev/next track transform used by the project gallery slideshows.
   object-fit: contain (rather than cover) keeps the full portrait photo
   visible with letterboxing on the sides, instead of cropping top/bottom. */
.hero-visual-img {
  opacity: 0;
  object-fit: contain;
  transition: opacity 0.8s ease;
}

.hero-visual-img.is-active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.45) 100%);
}

/* Prev / next click zones — invisible left/right halves over the image
   itself, no arrow glyphs. Dots sit above them (higher z-index) so the
   dot strip stays independently clickable. */
.slide-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slide-zone-prev {
  left: 0;
}

.slide-zone-next {
  right: 0;
}

/* Dots — small, but with an enlarged invisible hit area for touch. */
.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-1);
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.6em;
}

.slide-dot {
  position: relative;
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.slide-dot::before {
  content: "";
  position: absolute;
  inset: -14px;
}

.slide-dot:hover,
.slide-dot:focus-visible {
  background-color: rgba(255, 255, 255, 0.75);
}

.slide-dot.is-active {
  background-color: var(--c-teal);
}

.tile-a {
  background: linear-gradient(155deg, #131211 0%, #3a352e 45%, #6c6153 78%, #9c8f7c 100%);
}

.tile-b {
  background: linear-gradient(155deg, #0e1719 0%, #163a40 42%, #04a1b2 76%, #7fd7df 100%);
}

.tile-c {
  background: linear-gradient(155deg, #0c0c0c 0%, #2a2a2a 38%, #565656 70%, #8c8c8c 100%);
}

.tile-d {
  background: linear-gradient(155deg, #1a1815 0%, #3f382c 42%, #6e6250 74%, #a89a86 100%);
}

/* ---------- Project Detail (two-column, project.html) ---------- */
.project-entry {
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--c-line);
}

.project-entry:last-child {
  border-bottom: none;
}

.project-entry-title {
  margin-bottom: var(--space-3);
}

.project-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .project-entry-grid {
    grid-template-columns: minmax(180px, 200px) 1fr;
    gap: var(--space-4);
  }
}

.project-meta-list {
  font-size: 0.85rem;
  line-height: 1.6;
}

.project-meta-list dt {
  color: var(--c-text-4);
  letter-spacing: -0.02em;
}

.project-meta-list dd {
  color: var(--c-text-1);
  margin-bottom: 0.75em;
}

.archive-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1em;
  margin-bottom: var(--space-4);
  font-size: 0.75rem;
}

.archive-index a {
  color: var(--c-text-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.archive-index a:hover,
.archive-index a:focus-visible {
  color: var(--c-teal);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-block dt {
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-text-4);
  margin-bottom: 0.3em;
}

.contact-block dd {
  font-size: 1rem;
  color: var(--c-text-1);
}

.contact-map {
  position: relative; /* 컬러 핀/블럭 오버레이의 기준 */
  margin-top: var(--space-4);
  aspect-ratio: 16 / 6;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--c-line);
}

/* 핀 위 사무소명 라벨 — 핀(높이 42px) 바로 위에 검정 칩으로 표기 */
.contact-map-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% - 48px));
  padding: 0.3em 0.7em;
  font-size: 13px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #fff;
  background-color: var(--c-chip-bg);
  border-radius: 2px;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* 흑백 지도 위 컬러 유지 핀 — 임베드 지도는 조회 주소를 정중앙에 두므로
   컨테이너 중앙에 핀 끝이 오도록 배치. 지도 조작을 막지 않게 클릭 통과 */
.contact-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 42px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.contact-map-pin svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(1); /* 지도를 흑백으로 — 사이트의 모노크롬 톤 유지 */
  border: 0;
}

/* ---------- Links / Buttons ---------- */
.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-underline:hover,
.link-underline:focus-visible {
  color: var(--c-teal);
}

/* ---------- Mobile Layout ---------- */
@media (max-width: 767px) {
  /* Lives outside <aside class="sidebar"> so it stays visible even while
     the sidebar itself is translated off-screen (closed state). */
  .sidebar-toggle {
    display: inline-flex;
    position: fixed;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 200;
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: 2px;
  }

  .sidebar-toggle span {
    width: 60%;
    margin: 0 auto;
  }

  .sidebar {
    position: fixed;
    width: min(85vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.25);
  }

  .page-content {
    margin-left: 0;
    padding: 4.5rem 1.25rem 2rem;
  }

  .sidebar-top {
    margin-bottom: var(--space-2);
  }
}

@media (min-width: 768px) {
  .sidebar-toggle {
    display: none;
  }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 2px;
}
