/* 머리글 */
/* 머리글은 늘 따라다닌다(전화번호가 항상 보이게). 첫 화면을 벗어나면 바탕을 깐다 */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 var(--gutter);
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(18, 18, 18, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ink-line);
}
.site-header__logo img { width: 92px; }
.site-header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 16px;
  color: var(--ink-sub);
}
.site-header__nav a { text-decoration: none; }
.site-header__nav a:hover { color: var(--ink-text); }
.site-header__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid #555;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.site-header__call:hover { border-color: var(--ink-text); }
.site-header__call-label { color: var(--ink-text); font-weight: 700; }

/* 첫 화면 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 920px);
  padding-top: var(--header-h);
  background: var(--ink);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 인물 뒤만 한 톤 밝혀 네이비 수트 어깨가 바탕에 묻히지 않게 한다 */
  background: radial-gradient(42% 58% at 74% 62%, #202020 0%, rgba(32, 32, 32, 0) 100%);
}
/* 뒤에 깔리는 AUBE는 실제 로고 모양을 마스크로 칠한다. 글자로 두면 웹폰트를 기다리느라 첫 화면 표시가 늦어진다 */
.hero__wordmark {
  position: absolute;
  right: -2vw;
  bottom: -3vw;
  width: min(78vw, 1240px);
  aspect-ratio: 1621 / 387;
  background: #1b1b1b;
  -webkit-mask: url("/assets/aube-logo-white.png") center / contain no-repeat;
  mask: url("/assets/aube-logo-white.png") center / contain no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 2; /* 그레인은 배경에만. 얼굴과 글자 위에는 덮이지 않게 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  max-width: 1360px;
  min-height: calc(min(100svh, 920px) - var(--header-h));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__copy {
  align-self: center;
  padding: 48px 0 64px;
}

.hero__proposal[hidden], .hero__agent[hidden] { display: none; }
/* 업체명이 그때그때 바뀌므로 잘라 둔 마루부리 대신 본문 서체로 쓴다 */
.hero__proposal {
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-text);
}

/* 약력 넷: 넓은 화면에서는 두 칸씩 두 줄 */
.hero__creds {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 4px 0;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--ink-sub);
}
/* 약력 아래 어바웃으로 가는 글자 링크: 늘 밑줄(삥이FC 12절과 같은 규칙), 화살표 없음 */
.hero__creds-more { margin: -18px 0 28px; font-size: 15px; }
.hero__creds-more a { color: var(--ink-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(242, 242, 239, .42); }
.hero__creds-more a:hover { text-decoration-color: currentColor; }
.hero__creds li:nth-child(even)::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 12px;
  background: #4a4a4a;
  vertical-align: -1px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}
.hero__line { display: block; }
.hero__nowrap { white-space: nowrap; }

.hero__who {
  display: inline-block;
  color: var(--blue-on-ink);
  transition: opacity .28s ease, transform .28s ease;
}
.hero__who.is-hidden { opacity: 0; transform: translateY(-0.14em); }

/* 제목 옆에 끄적인 혼잣말. 손글씨라 살짝 기울이고 제목과 붙여 둔다 */
.hero__aside {
  margin: 2px 0 0 1.4em;
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1;
  color: #ececE7;
  transform: rotate(-2.5deg);
  transform-origin: left center;
}

.hero__lead {
  max-width: 34em;
  text-wrap: pretty;
  margin-top: 28px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: #c9c9c4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 40px;
}
.hero__text-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-text);
  text-decoration: underline;
  text-decoration-color: #555;
  text-underline-offset: 6px;
}
.hero__text-link:hover { text-decoration-color: var(--ink-text); }

.hero__assure {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-sub);
}
.hero__agent {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-sub);
}

/* 사진 칸보다 조금 크게 두고 오른쪽 여백으로 살짝 넘긴다. 인물이 화면 높이를 채워야 왼쪽 글과 무게가 맞는다 */
.hero__person {
  position: relative;
  align-self: end;
  justify-self: end;
  width: min(118%, 740px, calc((100svh - var(--header-h)) * 0.74));
  margin-right: calc(var(--gutter) * -0.6);
}
.hero__photo { width: 100%; }
/* 이름표는 얼굴 왼쪽, 눈높이에 둔다. 위치를 사진 크기에 대한 비율로 잡아서
   화면 폭이 바뀌어도 늘 같은 자리(머리 왼쪽 빈 공간)에 붙는다 */
.hero__caption {
  position: absolute;
  top: 17%;
  right: calc(73% + 20px);
  display: grid;
  gap: 6px;
  text-align: right;
  white-space: nowrap;
}
.hero__caption-name {
  font-family: var(--font-quote);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  color: var(--ink-text);
}
.hero__caption-role { font-size: 15px; color: var(--ink-sub); }

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 첫 화면 다음, 준비 중 영역 */
.todo {
  position: relative;
  z-index: 2;
  padding: 96px var(--gutter);
  background: var(--paper);
  color: var(--ink);
}
.todo__note { font-size: 18px; font-weight: 700; }
.todo__list { margin-top: 8px; color: var(--paper-sub); font-size: 15px; }
.todo { min-height: 120vh; }

/* 모바일 하단 고정 바 */
.dock { display: none; }

/* 약력이 한 줄에 다 안 들어가는 폭에서는 구분선 대신 세로로 쌓는다(줄 맨 앞에 구분선이 붙지 않게) */
@media (max-width: 1240px) {
  .hero__creds { grid-template-columns: 1fr; gap: 2px; }
  .hero__creds li:nth-child(even)::before { display: none; }
  /* 좁은 폭에서는 제목 끝과 붙어 보이지 않게 머리 쪽으로 붙인다 */
  .hero__caption { top: 19%; right: calc(69% + 10px); }
  .hero__caption-role { font-size: 13px; }
}

@media (max-width: 1080px) {
  .site-header__nav { display: none; }
  .site-header__call { margin-left: auto; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .site-header__logo img { width: 76px; }
  .site-header__call { height: 36px; padding: 0 14px; }
  .site-header__call-number { display: none; }

  .hero { min-height: auto; }
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }
  .hero__copy { padding: 4px 0 56px; }
  .hero__creds { grid-template-columns: 1fr; gap: 2px; margin-bottom: 18px; font-size: 13px; }
  .hero__creds-more { margin: -10px 0 18px; font-size: 13px; }
  .hero__creds li:nth-child(even)::before { display: none; }
  .hero__title { font-size: clamp(32px, 9.4vw, 46px); }
  .hero__nowrap { display: block; }
  .hero__br-wide { display: none; }
  .hero__lead { margin-top: 18px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .button { flex: 1 1 100%; }
  .hero__text-link { margin: 0 auto; }
  .hero__assure { text-align: center; }
  .hero__agent { text-align: center; }

  /* 모바일에서는 얼굴이 첫 화면에 들어오도록 사진을 맨 위로 올리고 가슴께에서 자른다 */
  .hero__person {
    order: -1;
    justify-self: center;
    width: min(76%, 300px);
    aspect-ratio: 1 / 1;
    margin-top: 8px;
    margin-right: 0;
  }
  .hero__photo {
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    -webkit-mask-image: linear-gradient(#000 72%, transparent);
    mask-image: linear-gradient(#000 72%, transparent);
  }
  .hero__caption {
    position: static;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin: -22px 0 18px;
    padding: 0;
    border: 0;
  }
  .hero__caption-name { font-size: 17px; }
  .hero__person { aspect-ratio: auto; }
  .hero__photo { aspect-ratio: 1 / 1; }
  .hero__backdrop { background: radial-gradient(60% 26% at 50% 22%, #202020 0%, rgba(32, 32, 32, 0) 100%); }
  .hero__wordmark { width: 88vw; right: auto; left: 50%; transform: translateX(-50%); bottom: auto; top: calc(var(--header-h) + 64px); background: #1a1a1a; }

  .dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    display: flex;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(13, 13, 13, .94);
    border-top: 1px solid var(--ink-line);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .dock.is-visible { transform: none; }
  .dock__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 52px;
    border: 1px solid #444;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
  }
  .dock__item--primary { flex: 1.7; background: var(--blue); border-color: var(--blue); color: #fff; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
