/* ==========================================================
   Tokens
   검은 바탕 위에 브랜드 로고를 세우는 구성 (참고: GFFG 브랜드 페이지)
   ========================================================== */
:root {
  --paper: #0c0c0b;
  --paper-2: #181816;
  --ink: #f2efe9;
  --ink-2: #c9c4ba;
  --muted: #9a948a;
  --rule: rgba(242, 239, 233, 0.14);
  --rule-strong: rgba(242, 239, 233, 0.5);
  --header-bg: rgba(12, 12, 11, 0.86);

  --sheet: #141413;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --section-y: clamp(72px, 10vw, 128px);

  color-scheme: dark;
}

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

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

html.has-dialog {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

[tabindex="-1"]:focus {
  outline: none;
}

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.noscript {
  max-width: 40em;
  margin: 24px auto;
  padding: 0 var(--gutter);
  color: var(--ink-2);
}

/* ==========================================================
   Buttons & links
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn--brand {
  background: var(--b-mark, var(--ink));
  color: var(--paper);
}

.btn--brand:hover {
  opacity: 0.88;
}

.btn--ghost {
  border-color: var(--b-mark, var(--ink));
  color: var(--b-mark, var(--ink));
}

.btn--ghost:hover {
  background: var(--paper-2);
}

.arrow {
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ==========================================================
   Header
   ========================================================== */
/* 휴대폰 상단 안전 영역(노치 등) 아래로 내용이 비치지 않게 덮습니다. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: var(--header-bg);
    backdrop-filter: blur(8px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brandmark {
  font-family: var(--serif);
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

/* 좁은 화면에서는 대표 이름을 두 줄로 나눠 메뉴와 한 줄에 둡니다. */
@media (max-width: 479px) {
  .brandmark {
    min-width: 0;
    max-width: 8.5em;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
  }

  .nav a {
    padding: 0 6px;
  }
}

.nav {
  display: flex;
  gap: clamp(4px, 2vw, 20px);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 16px);
  min-width: 0;
}

/* 오른쪽 위 언어 전환 버튼 */
.lang-switch {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}

.lang-switch:hover {
  background: var(--paper-2);
}

.lang-switch[hidden] {
  display: none;
}

/* 좁은 화면: 첫 줄에 대표 이름과 언어 버튼, 둘째 줄에 메뉴 */
@media (max-width: 559px) {
  :root {
    --header-h: 104px;
  }

  .brandmark {
    max-width: none;
    white-space: nowrap;
  }

  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 10px;
  }

  .site-header__end {
    display: contents;
  }

  .site-header__inner nav {
    order: 3;
    flex-basis: 100%;
    margin-left: -8px;
  }

  .lang-switch {
    order: 2;
  }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  padding: clamp(64px, 11vw, 136px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero__lead {
  max-width: 34em;
  margin: 24px auto 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--ink-2);
}

/* ==========================================================
   Logo wall
   ========================================================== */
.businesses {
  padding-bottom: var(--section-y);
}

.wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.wall > li {
  display: flex;
  background: var(--paper);
}

.tile {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: clamp(180px, 26vw, 300px);
  padding: 32px 16px 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

.tile:hover {
  background: var(--paper-2);
}

.tile:focus-visible {
  outline-offset: -6px;
}

.tile__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(80px, 11vw, 132px);
}

.tile__logo {
  width: auto;
  max-width: min(78%, 280px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.3s;
}

.tile:hover .tile__logo {
  opacity: 1;
  transform: scale(1.03);
}

.tile__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tile__wordmark-ko {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.tile__wordmark-en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-2);
}

.tile__caption {
  font-size: 13px;
  color: var(--muted);
}

.tile__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 9px;
  border: 1px dashed var(--rule-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--ink-2);
  white-space: nowrap;
}

.tile:hover .tile__caption {
  color: var(--ink-2);
}

.wall-hint {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* 브랜드 8개가 빈칸 없이 2열×4줄 또는 4열×2줄로 채워지도록 합니다. */
@media (min-width: 900px) {
  .wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile__logo {
    transition: none;
  }

  .tile:hover .tile__logo {
    transform: none;
  }
}

/* ==========================================================
   Sections
   ========================================================== */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule);
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lead {
  max-width: 36em;
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
}

/* About */
.about__grid {
  display: grid;
  gap: 40px;
}

.about__body > div p {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
}

.about__body > div p + p {
  margin-top: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 48px;
}

.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--rule-strong);
}

.fact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fact dt {
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}

/* ==========================================================
   Brand dialog
   ========================================================== */
.brand-dialog {
  width: min(1080px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 48px);
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--ink);
  overflow: hidden;
}

.brand-dialog[open] {
  display: flex;
  flex-direction: column;
}

.brand-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.brand-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 24px;
  border-bottom: 1px solid var(--rule);
}

.brand-dialog__title {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-dialog__close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.brand-dialog__close:hover {
  background: var(--paper-2);
}

.brand-dialog__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 4vw, 40px);
}

@media (max-width: 599px) {
  .brand-dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
  }

  .brand-dialog__bar {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
}

/* ==========================================================
   Brand article (inside dialog)
   ========================================================== */
.brand {
  display: grid;
  gap: 28px;
}

.brand__visual {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--b-bg, var(--paper-2));
}

.brand__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  color: var(--b-fg, var(--ink));
  text-align: center;
}

.brand__panel.has-logo {
  padding: 24px;
}

.brand__panel-name {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.brand__logo {
  width: auto;
  max-width: 62%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
}

.brand__panel-en {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--b-ink, var(--b-fg, var(--muted)));
}

.brand__panel-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 2px 10px;
  border: 1px dashed currentColor;
  font-size: 12px;
  font-weight: 600;
}

.brand__panel.has-ornament::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid currentColor;
  opacity: 0.22;
  pointer-events: none;
}

.ornament {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0.75;
}

.ornament--tl { top: 22px; left: 22px; }
.ornament--tr { top: 22px; right: 22px; transform: scaleX(-1); }
.ornament--bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.ornament--br { bottom: 22px; right: 22px; transform: scale(-1, -1); }

.brand__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.brand__num {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.status {
  padding: 1px 9px;
  border: 1px solid var(--rule-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.status--operating::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 2px;
}

.status--preparing {
  border-style: dashed;
}

.brand__name {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.brand__en {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.brand__location {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
}

.brand__location::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  vertical-align: 1px;
}

.brand__summary {
  max-width: 34em;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.75;
}

.brand__audience {
  max-width: 34em;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--b-mark, var(--ink));
  font-size: 15px;
  color: var(--ink-2);
}

.brand__audience-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.brand__features {
  margin-top: 28px;
}

.brand__features h4 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.feature-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.feature-list--menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.feature-list__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.feature-list__en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.feature-list__text {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-2);
}

.brand__footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.brand__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.brand__nolinks {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.brand__nolinks::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

@media (min-width: 860px) {
  .brand {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .brand__visual {
    position: sticky;
    top: 0;
  }
}

/* ==========================================================
   Contact
   ========================================================== */
.contact__grid {
  display: grid;
  gap: 48px;
}

.contact__channels {
  margin-top: 36px;
}

.contact__empty {
  max-width: 32em;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}

.channel-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.channel-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.channel-list__label {
  min-width: 6em;
  font-size: 14px;
  color: var(--muted);
}

.channel-list a {
  font-size: 18px;
  font-weight: 600;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.contact__note {
  align-self: end;
  padding: 24px;
  border: 1px solid var(--rule);
}

.contact__note h3 {
  font-size: 15px;
  font-weight: 600;
}

.contact__note p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 72px;
  }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--rule);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.site-footer__nav {
  display: flex;
  gap: 4px 16px;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer__copy {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-footer__copy {
    flex-basis: 100%;
    margin-left: 0;
  }
}
