/* SAINTHEARTS — company site (상호: 러브(LOVE))
   palette : white #FFFFFF / mist #EEF0F6 / ink #191B2F / sanctum #1D2563 / heart #E8183A
   type    : Pretendard Variable (본문·제목) + Hahmlet (워드마크·성경 구절)
   motif   : 둥근 아치 창 — 브랜드와 이야기를 담는 곳에만 씁니다 */

:root {
  --white: #FFFFFF;
  --mist: #EEF0F6;
  --ink: #191B2F;
  --ink-soft: #3B3E57;
  --muted: #5A5E76;
  --line: rgba(25, 27, 47, .12);

  --sanctum: #1D2563;
  --sanctum-deep: #131946;
  --sanctum-lift: #2F3B96;
  --heart: #E8183A;
  --glow-core: 255, 238, 222;
  --glow-cool: 170, 186, 255;

  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, .78);
  --on-dark-faint: rgba(255, 255, 255, .58);
  --line-dark: rgba(255, 255, 255, .16);

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

  --shell: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --gutter: clamp(16px, 2.4vw, 32px);
  --header-h: 76px;
  --section-y: clamp(96px, 12vw, 160px);
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--heart);
  outline-offset: 3px;
  border-radius: 6px;
}

.story :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}

.site-header.is-stuck,
.site-header.is-open {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .16em;
  padding-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--heart);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

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

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

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

/* ---------- button ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color .25s ease, transform .2s ease;
}

.button:hover {
  background: var(--sanctum);
}

.button:active {
  transform: translateY(1px);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  align-items: center;
  min-height: min(100svh, 960px);
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px));
  padding-bottom: clamp(72px, 9vw, 128px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 7;
}

.hero-title {
  margin-bottom: clamp(22px, 2.6vw, 32px);
  color: var(--ink);
  font-size: clamp(38px, 6.1vw, 84px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.hero-lead {
  margin-bottom: clamp(32px, 3.6vw, 44px);
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}

.hero-art {
  grid-column: 8 / span 5;
  justify-self: end;
  width: 100%;
  max-width: 430px;
}

/* 아치 창: 3:4 비율에서 윗변이 반원이 되도록 세로 반지름을 37.5%로 맞춤 */
.window {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50% 50% 18px 18px / 37.5% 37.5% 18px 18px;
  background: linear-gradient(180deg, var(--sanctum-lift) 0%, var(--sanctum) 55%, var(--sanctum-deep) 100%);
  box-shadow: 0 60px 100px -50px rgba(29, 37, 99, .6);
}

/* 창살: 가운데 세로선 + 아치가 시작되는 높이의 가로선 */
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .14) calc(50% - .5px),
      rgba(255, 255, 255, .14) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(180deg, transparent calc(37.5% - .5px), rgba(255, 255, 255, .14) calc(37.5% - .5px),
      rgba(255, 255, 255, .14) calc(37.5% + .5px), transparent calc(37.5% + .5px));
}

/* 안쪽 창틀 */
.window::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50% 50% 8px 8px / 37.5% 37.5% 8px 8px;
}

.window-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  mix-blend-mode: screen;
  background: radial-gradient(58% 44% at 50% 58%,
      rgba(var(--glow-core), .5) 0%, rgba(var(--glow-cool), .28) 38%, rgba(var(--glow-cool), 0) 72%);
}

.window-heart {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 56%;
  width: 66%;
  transform: translate(-50%, -50%) rotate(-4deg);
  filter: drop-shadow(0 30px 34px rgba(8, 10, 40, .5));
}

/* 첫 화면 한 번만: 창에 빛이 들고, 하트가 자리를 잡습니다 */
.hero-title,
.hero-lead,
.hero-copy .button {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards;
}

.hero-lead {
  animation-delay: .1s;
}

.hero-copy .button {
  animation-delay: .2s;
}

.window {
  animation: window-in 1s cubic-bezier(.2, .7, .2, 1) .05s backwards;
}

.window-glow {
  animation: glow-in 1.4s ease .45s backwards;
}

.window-heart {
  animation: heart-in 1.1s cubic-bezier(.2, .9, .25, 1.12) .4s backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes window-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heart-in {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) rotate(-12deg) scale(.82);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  }
}

/* ---------- shared section layout ---------- */

.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}

.split-side {
  grid-column: 1 / span 4;
}

.split-main {
  grid-column: 5 / span 8;
}

.section-title {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.statement {
  margin-bottom: clamp(28px, 3vw, 40px);
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.04em;
}

.statement--sm {
  margin-bottom: 0;
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.3;
}

.prose {
  max-width: 38em;
}

.prose p {
  color: var(--muted);
}

.prose p+p {
  margin-top: 1.1em;
}

/* ---------- about ---------- */

.studio-shot {
  margin-top: clamp(44px, 5vw, 64px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--mist);
}

.studio-shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- story (상호명 이야기) ---------- */

.story {
  background: var(--sanctum);
  color: var(--on-dark);
}

.story .section-title {
  color: var(--on-dark);
}

.inscription {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 32px 24px 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  background: radial-gradient(70% 55% at 50% 45%, rgba(var(--glow-cool), .16), rgba(var(--glow-cool), 0) 72%);
  text-align: center;
}

.inscription-en {
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: clamp(34px, 3.3vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.inscription-ko {
  margin-top: 14px;
  color: var(--on-dark-soft);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}

.inscription figcaption {
  margin-top: 20px;
  color: var(--on-dark-faint);
  font-size: 13px;
  letter-spacing: .02em;
}

.story-lede {
  max-width: 30em;
  margin-bottom: clamp(28px, 3vw, 36px);
  color: var(--on-dark);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.025em;
}

.story .prose p {
  color: var(--on-dark-soft);
}

.story .prose .story-close {
  color: var(--on-dark);
  font-weight: 600;
}

.verse {
  max-width: 38em;
  margin: clamp(36px, 4vw, 52px) 0;
  padding: clamp(28px, 3vw, 36px) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.verse p {
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.verse figcaption {
  margin-top: 12px;
  color: var(--on-dark-faint);
  font-size: 14px;
}

.signature {
  margin-top: 28px;
  color: var(--on-dark-faint);
  font-family: var(--serif);
  font-size: 15px;
}

/* ---------- values ---------- */

.values-head {
  margin-bottom: clamp(52px, 6vw, 88px);
}

.values-head .section-title {
  padding-top: .5em;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(52px, 6vw, 88px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 4:5 비율에서 윗변이 반원: 세로 반지름 40% */
.value-art {
  aspect-ratio: 4 / 5;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
  background: var(--mist);
}

.value-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.value-name span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.value p {
  max-width: 24em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- vision ---------- */

.vision {
  background: var(--mist);
}

/* ---------- company ---------- */

.info {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info>div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.info dt {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.info dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

.info dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--heart);
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 56px);
  background: var(--sanctum);
  color: var(--on-dark-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
}

.footer-brand .brand-name {
  font-size: 20px;
}

.footer-meta {
  width: 100%;
  color: var(--on-dark-faint);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.footer-meta p+p {
  margin-top: 2px;
}

/* ---------- responsive ---------- */

@media (min-width: 1025px) {

  /* 긴 섹션에서 제목과 인용 창이 따라 내려옵니다 */
  .split-side {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

@media (max-width: 1024px) {

  .split-side,
  .split-main {
    grid-column: 1 / -1;
  }

  .split-side {
    margin-bottom: 20px;
  }

  .values-head .section-title {
    padding-top: 0;
  }

  .story-side {
    margin-bottom: 44px;
  }

  .inscription {
    max-width: 280px;
  }
}

@media (max-width: 860px) {
  .value-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--pad) 20px;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(25, 27, 47, .3);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 80px;
  }

  .hero-copy,
  .hero-art {
    grid-column: 1 / -1;
  }

  .hero-art {
    order: -1;
    justify-self: start;
    max-width: 240px;
    margin-bottom: 36px;
  }

  .info>div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 18px 0;
  }
}

@media (max-width: 640px) {
  .value-list {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .value {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }

  .value-art {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .value-name {
    margin: 6px 0 6px;
    font-size: 19px;
  }

  .value p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}