﻿/* AIVE: shared front-end / block-editor styles. Reference: 720 × 2048. */
:root {
  --aive-ink: #252520;
  --aive-paper: #f7f6f2;
  --aive-serif: "Noto Serif KR", Georgia, "Times New Roman", serif;
  --aive-sans: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
.aive-home { font-family: var(--aive-sans); color: var(--aive-ink); }
.aive-home *, .aive-hero * { box-sizing: border-box; }
.aive-home > *, .aive-masthead > *, .aive-main > * { margin-block: 0; }
.aive-home a:focus-visible, .aive-hero button:focus-visible,
.aive-hero a:focus-visible { outline: 2px solid #e1bc8a; outline-offset: 5px; }
.aive-topbar {
  height: clamp(48px, 5.5556vw, 107px);
  padding: 0 0 0 clamp(12px, .8333vw, 16px);
  background: #000;
}
.aive-top-link .wp-block-button__link {
  display: grid; place-items: center;
  width: clamp(44px, 3.125vw, 60px); height: clamp(44px, 3.125vw, 60px);
  padding: 0; border: 0; border-radius: 50%; background: #bd512d;
  color: #fff; font: 600 clamp(11px, .8333vw, 16px)/1 var(--aive-sans);
  text-decoration: none;
}
.aive-masthead { position: relative; }
.aive-home-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.aive-header {
  display: grid; grid-template-columns: 1fr auto 1.32fr; align-items: center;
  gap: 24px; min-height: clamp(76px, 5.2083vw, 100px);
  padding: 12px 2.5%; color: #fff; background: rgb(32 32 29 / 48%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.aive-header > * { margin: 0; min-width: 0; }
.aive-header a { color: inherit; text-decoration: none; }
.aive-brand { width: clamp(120px, 8.8542vw, 170px); margin: 0; }
.aive-brand img { display: block; width: 100%; height: auto; }
.aive-primary-nav { font-size: clamp(12px, .8333vw, 16px); }
.aive-primary-nav .wp-block-navigation__container { gap: clamp(16px, 1.6667vw, 32px); }
.aive-header-tools { justify-self: end; gap: 12px; font-size: clamp(10px, .625vw, 12px); }
.aive-language { border: 1px solid rgb(255 255 255 / 60%); border-radius: 999px; padding: 9px 16px; }
.aive-language .wp-block-navigation__submenu-container { background: #292a25; color: #fff; border: 1px solid #666; }
.aive-account-links { white-space: nowrap; margin: 0; }
.aive-account-links span { margin-inline: 10px; opacity: .55; }
.aive-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #24241f; color: #fff; padding: 32px 24px;
}
.aive-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: flex-start; gap: 28px; font-size: 20px;
}
.aive-primary-nav .wp-block-navigation__responsive-container-open,
.aive-primary-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.aive-hero {
  position: relative; isolation: isolate; width: 100%; max-width: none;
  background: #24241f; color: #fff; margin: 0;
}
.aive-hero .aive-hero__slide {
  position: relative; display: flex; width: 100%;
  min-height: max(640px, 62.5vw); padding: 140px 9.375%;
  margin: 0; overflow: hidden; color: #fff;
}
.aive-hero:not(.is-ready) > .aive-hero__slide ~ .aive-hero__slide,
.aive-hero .aive-hero__slide[hidden] { display: none; }
.aive-hero__slide > .wp-block-cover__image-background {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; z-index: 0; transform: scale(1.1);
}
.aive-hero__slide > .wp-block-cover__background { position: absolute; inset: 0; z-index: 1; }
.aive-hero__slide > .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; color: inherit; }
.aive-hero .aive-hero__copy { width: max-content; max-width: 100%; margin: 0; }
.aive-hero .aive-hero__title {
  margin: 0; color: inherit; font-family: var(--aive-serif);
  font-size: clamp(36px, 2.5vw, 48px); line-height: 1.14; font-weight: 400;
  letter-spacing: .012em; text-shadow: 0 2px 10px rgb(0 0 0 / 25%);
}
.aive-hero .aive-hero__description {
  max-width: 35em; margin: clamp(24px, 1.6667vw, 32px) 0 0;
  color: inherit; font: 400 clamp(14px, 1.0417vw, 20px)/1.55 var(--aive-sans);
  letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere;
  text-shadow: 0 1px 6px rgb(0 0 0 / 50%);
}
.aive-hero .aive-hero__actions { margin: clamp(24px, 1.5625vw, 30px) 0 0; }
.aive-hero__cta .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 24px; border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 999px; background: transparent; color: #fff; text-decoration: none;
  font: 600 clamp(12px, .8333vw, 16px)/1.35 var(--aive-sans);
  transition: background .2s ease;
}
.aive-hero__cta .wp-block-button__link:hover { background: rgb(255 255 255 / 14%); }
.aive-hero__arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 54px; height: 64px;
  border: 0; padding: 0; background: transparent; color: #fff; cursor: pointer;
}
.aive-hero__arrow::before {
  content: ""; width: clamp(22px, 2.0833vw, 40px); height: clamp(22px, 2.0833vw, 40px);
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.aive-hero__arrow--previous { left: 4.75%; }
.aive-hero__arrow--previous::before { transform: rotate(-135deg); }
.aive-hero__arrow--next { right: 4.75%; }
.aive-hero__arrow--next::before { transform: rotate(45deg); }
.aive-hero__status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .aive-hero.is-ready .aive-hero__slide:not([hidden]) .aive-hero__copy { animation: aive-copy-in .45s ease both; }
  @keyframes aive-copy-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .aive-header { grid-template-columns: auto 1fr auto; gap: 18px; padding-inline: 3%; }
  .aive-brand { width: 132px; }
  .aive-primary-nav .wp-block-navigation__container { gap: 14px; }
  .aive-account-links { display: none; }
  .aive-header-tools { font-size: 11px; }
  .aive-language { padding: 8px 10px; }
  .aive-hero .aive-hero__slide { min-height: 680px; padding-inline: 9.375%; }
  .aive-hero__slide > .wp-block-cover__image-background { object-position: 54% center; }
  .aive-hero__arrow--previous { left: 2%; }
  .aive-hero__arrow--next { right: 2%; }
}
@media (max-width: 767px) {
  .aive-topbar { height: 48px; padding-left: 12px; }
  .aive-header { grid-template-columns: 1fr auto; min-height: 76px; padding: 12px 20px; gap: 10px; }
  .aive-brand { width: 138px; }
  .aive-primary-nav { justify-self: end; }
  .aive-header-tools { display: none; }
  .aive-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .aive-primary-nav .wp-block-navigation__responsive-container-open { display: flex; }
  .aive-hero .aive-hero__slide {
    min-height: max(700px, calc(100svh - 48px));
    padding: 350px 28px 76px; align-items: flex-end;
  }
  .aive-hero__slide > .wp-block-cover__image-background { object-position: 70% center; transform: none; }
  .aive-hero__slide::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, transparent 25%, rgb(14 16 13 / 28%) 44%, rgb(14 16 13 / 92%) 100%);
  }
  .aive-hero .aive-hero__title { font-size: clamp(30px, 8vw, 38px); line-height: 1.16; }
  .aive-hero .aive-hero__description { font-size: 14px; line-height: 1.75; margin-top: 22px; }
  .aive-hero__description br { display: none; }
  .aive-hero .aive-hero__actions { margin-top: 24px; }
  .aive-hero__cta .wp-block-button__link { font-size: 13px; padding-inline: 22px; }
  .aive-hero__arrow { top: auto; bottom: 16px; transform: none; width: 48px; height: 44px; }
  .aive-hero__arrow::before { width: 18px; height: 18px; }
  .aive-hero__arrow--previous { left: auto; right: 76px; }
  .aive-hero__arrow--next { right: 20px; }
}
