/* GUITIN — Perfumery for Dogs
   One system: cream ground, olive ink, Cardo for the Latin voice, Noto Serif KR for Korean.
   Motion: one entrance on load, press and hover feedback, nothing tied to scroll. */

:root {
  --cream: #F3EDE4;
  --paper: #F8F3EC;
  --olive: #2E3328;
  --olive-soft: #3B4134;
  --muted: #625E4F;
  --line: #D8CDBD;
  --gold: #B08D57;

  /* scent grounds: colour of the scent, never a UI accent */
  --aw: #ECE3EC;   /* I  After Walk — pink-lavender */
  --pd: #F1E6D3;   /* II Pawppy Dream — biscuit */
  --cd: #E2E8EC;   /* III Cuddle Doggy — soft sky */

  --latin: 'Cardo', 'Noto Serif KR', serif;
  --ko: 'Noto Serif KR', serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--ko);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--olive); color: var(--cream); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 1px; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.3; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--olive); color: var(--cream); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.latin { font-family: var(--latin); letter-spacing: 0.02em; }
.h-xl { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.28; letter-spacing: -0.01em; }
.h-l  { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.32; letter-spacing: -0.01em; }
.h-m  { font-size: clamp(21px, 2vw, 26px); line-height: 1.45; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.9; max-width: 34em; }
.small { font-size: 14px; line-height: 1.7; color: var(--muted); }
.en-line { display: block; font-family: var(--latin); font-size: clamp(15px, 1.3vw, 18px); letter-spacing: 0.06em; color: var(--muted); margin-top: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font: 400 15px/1.3 var(--ko); letter-spacing: 0.02em;
  border: 1px solid var(--olive); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; user-select: none; touch-action: manipulation;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--olive); color: var(--cream); }
.btn--line { background: transparent; color: var(--olive); }
.on-dark .btn--solid { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.on-dark .btn--line { color: var(--cream); border-color: rgba(243, 237, 228, 0.7); }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--olive-soft); }
  .btn--line:hover { background: rgba(46, 51, 40, 0.06); }
  .on-dark .btn--solid:hover { background: #fff; }
  .on-dark .btn--line:hover { background: rgba(243, 237, 228, 0.1); border-color: var(--cream); }
}
.btn svg { width: 18px; height: 18px; flex: none; }

.textlink { text-decoration: underline; text-decoration-color: rgba(46, 51, 40, 0.35); transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-color: currentColor; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 237, 228, 0.94);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { font-family: var(--latin); font-size: 24px; letter-spacing: 0.16em; text-decoration: none; line-height: 1; padding: 12px 0; min-height: 48px; display: inline-flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  font-family: var(--latin); font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  padding: 12px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size 200ms var(--ease-out);
}
.nav a[aria-current="page"] { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { background-size: 100% 1px; } }
.nav .btn { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.menu-btn { display: none; }

@media (max-width: 767px) {
  .site-header .wrap { height: 60px; }
  .logo { font-size: 21px; }
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--olive); cursor: pointer;
  }
  .menu-btn svg { width: 24px; height: 24px; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: calc(60px + env(safe-area-inset-top)) 0 0 0; background: var(--cream);
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    animation: menu-in 200ms var(--ease-out);
  }
  .site-header.is-open .nav a:not(.btn) { font-size: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); background: none; }
  .site-header.is-open .nav .btn { margin-top: 28px; min-height: 52px; font-size: 16px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { border-top: 0 !important; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 40em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - 69px), 860px); display: grid; overflow: hidden; background: #E6DCCD; }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero picture img, .hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero-copy {
  position: relative; z-index: 1; align-self: center; justify-self: end;
  width: min(44%, 520px); margin-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: grid; gap: 22px; padding: 48px 0;
}
.hero-brand { font-family: var(--latin); font-size: clamp(56px, 6.5vw, 92px); line-height: 1; letter-spacing: 0.12em; }
.hero-tag { font-family: var(--latin); font-size: 14px; letter-spacing: 0.4em; text-transform: uppercase; margin-top: -8px; }
.hero h1 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.45; margin-top: 18px; }
.hero-copy > p { font-size: 17px; line-height: 1.85; max-width: 26em; }
.hero .fact { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--olive); }
.hero .fact span + span::before { content: "·"; margin-right: 14px; color: var(--muted); }
.hero .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 767px) {
  .hero { min-height: 0; display: block; background: var(--cream); }
  .hero picture, .hero > img { position: relative; inset: auto; }
  .hero picture img, .hero > img { height: auto; aspect-ratio: 4 / 5; object-position: 50% 100%; }
  .hero-copy { width: auto; margin: 0; padding: 36px var(--gutter) 64px; gap: 18px; }
  .hero-brand { font-size: 48px; }
  .hero-tag { font-size: 12px; letter-spacing: 0.34em; }
  .hero h1 { font-size: 24px; margin-top: 10px; }
  .hero .btn { justify-self: stretch; }
}

/* one entrance on load */
[data-enter] > * { animation: enter 700ms var(--ease-enter) both; }
[data-enter] > *:nth-child(1) { animation-delay: 80ms; }
[data-enter] > *:nth-child(2) { animation-delay: 140ms; }
[data-enter] > *:nth-child(3) { animation-delay: 230ms; }
[data-enter] > *:nth-child(4) { animation-delay: 290ms; }
[data-enter] > *:nth-child(5) { animation-delay: 360ms; }
[data-enter] > *:nth-child(6) { animation-delay: 420ms; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

/* ---------- scene cards (home) ---------- */
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.scene { display: grid; gap: 16px; text-decoration: none; }
.scene-ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.scene-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.scene--aw .scene-ph { background: var(--aw); }
.scene--pd .scene-ph { background: var(--pd); }
.scene--pd .scene-ph img { object-position: 12% 50%; }
.scene--aw .scene-ph img, .scent--aw .scent-ph img { object-position: 58% 50%; }
.scene--cd .scene-ph { background: var(--cd); }
.scene-num { font-family: var(--latin); font-size: 15px; letter-spacing: 0.2em; color: var(--muted); }
.scene h3 { font-size: 22px; display: flex; align-items: baseline; gap: 12px; }
.scene p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.scene .go { font-size: 15px; text-decoration: underline; text-decoration-color: rgba(46,51,40,.35); }
@media (hover: hover) and (pointer: fine) {
  .scene:hover .scene-ph img { transform: scale(1.03); }
  .scene:hover .go { text-decoration-color: currentColor; }
}
@media (max-width: 900px) { .scenes { grid-template-columns: 1fr; gap: 44px; } .scene-ph { aspect-ratio: 4 / 3; } }

/* ---------- first product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.product-art img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%);
}
.product-copy { display: grid; gap: 20px; }
.product-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.product-list li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.product-list .k { color: var(--muted); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

/* ---------- subscribe (close) ---------- */
.close { background: var(--olive); color: var(--cream); padding: clamp(72px, 10vw, 120px) 0; }
.close .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(36px, 6vw, 96px); align-items: start; }
.close h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; }
.close .en-line { color: #CFC7B8; }
.close p { color: #E2DACD; margin-top: 18px; max-width: 30em; }
.close .alt { display: grid; gap: 12px; margin-top: 18px; }
@media (max-width: 900px) { .close .grid { grid-template-columns: 1fr; } }

/* ---------- sign-up ---------- */
.signup { display: grid; gap: 12px; }
.signup .btn { width: 100%; min-height: 52px; font-size: 16px; }
.signup-note { font-size: 13px; line-height: 1.7; opacity: .85; }
.signup-note a { color: inherit; }
.close .signup { margin-top: 0; }

/* ---------- form (unused while sign-up runs on Stibee) ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; }
.field input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 400 16px/1.4 var(--ko); color: var(--olive);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 150ms ease;
}
.field input[type="email"]:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive); }
.on-dark .field input[type="email"] { background: var(--cream); border-color: var(--cream); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.6; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--olive); cursor: pointer; }
.on-dark .check input { accent-color: var(--cream); }
.check a { color: inherit; }
.form .btn { width: 100%; min-height: 52px; font-size: 16px; }
.form-msg { font-size: 14px; min-height: 1.4em; }
.form-msg[data-state="error"] { color: #8A3B2E; }
.on-dark .form-msg[data-state="error"] { color: #F3C9BC; }
.form.is-done .field, .form.is-done .check, .form.is-done .btn { display: none; }
.form.is-done .form-msg { font-size: 17px; }
details.consent { font-size: 13px; line-height: 1.7; }
details.consent summary { cursor: pointer; color: inherit; opacity: .85; }
details.consent div { padding-top: 8px; opacity: .85; }

/* ---------- modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(480px, calc(100vw - 32px)); width: 100%; color: var(--olive); }
.modal::backdrop { background: rgba(32, 35, 28, 0.45); }
.modal[open] { animation: modal-in 250ms var(--ease-out); }
.modal[open]::backdrop { animation: fade-in 250ms ease; }
.modal.is-closing { animation: modal-out 180ms ease-in forwards; }
.modal-card { background: var(--cream); padding: 40px 32px 32px; position: relative; display: grid; gap: 18px; }
.modal-card h2 { font-size: 24px; }
.modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--olive); display: grid; place-items: center; }
.modal-close svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes modal-out { to { opacity: 0; transform: scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- scents page ---------- */
.intro { padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 5vw, 56px); }
.intro .lead { margin-top: 26px; }
.lineup { padding: 0 0 clamp(48px, 6vw, 80px); }
.lineup img {
  width: 100%; max-width: 1040px; margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%);
}
.scent { padding: clamp(72px, 9vw, 120px) 0; }
.scent--aw { background: var(--aw); }
.scent--pd { background: var(--pd); }
.scent--cd { background: var(--cd); }
.scent .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.scent--pd .scent-ph { order: 2; }
.scent--pd .scent-ph img { object-position: 12% 50%; }
.scent-ph { aspect-ratio: 4 / 5; overflow: hidden; background: rgba(255,255,255,.35); }
.scent-ph img { width: 100%; height: 100%; object-fit: cover; }
.scent-txt { display: grid; gap: 22px; }
.scent-txt .num { font-family: var(--latin); font-size: 16px; letter-spacing: 0.2em; color: var(--muted); }
.scent-txt .story { font-size: 17px; line-height: 2; }
.scent-txt .line { font-size: clamp(19px, 1.7vw, 22px); padding-top: 22px; border-top: 1px solid rgba(46, 51, 40, 0.18); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.notes li { display: grid; gap: 10px; font-size: 15px; }
.notes img { width: 100%; aspect-ratio: 1; object-fit: cover; background: rgba(255,255,255,.4); }
.use { font-size: 15px; color: var(--muted); }
.status { display: inline-block; font-size: 13px; letter-spacing: 0.04em; padding: 2px 10px; border: 1px solid rgba(46,51,40,.3); border-radius: 999px; margin-left: 4px; vertical-align: 3px; }
.promise { padding: clamp(56px, 7vw, 88px) 0; text-align: center; }
.promise p { font-size: clamp(18px, 1.6vw, 21px); }
@media (max-width: 900px) {
  .scent .wrap { grid-template-columns: 1fr; }
  .scent--pd .scent-ph { order: 0; }
  .scent-ph { aspect-ratio: 4 / 3; }
}

/* ---------- story page ---------- */
.dog { padding: clamp(64px, 8vw, 112px) 0; }
.dog .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.dog--b { background: var(--paper); }
.dog--b .dog-ph { order: 2; }
.dog-ph img { width: 100%; }
.dog-txt { display: grid; gap: 22px; }
.dog-txt .role { font-family: var(--latin); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: -10px; }
.dog-txt p { max-width: 32em; }
.standards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 80px); }
.standard { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; }
.standard .n { font-family: var(--latin); font-size: 17px; color: var(--muted); grid-row: span 2; padding-top: 2px; }
.standard h3 { font-size: 21px; }
.standard p { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) {
  .dog .wrap, .standards { grid-template-columns: 1fr; }
  .dog--b .dog-ph { order: 0; }
}

/* ---------- legal pages ---------- */
.legal { padding: clamp(64px, 8vw, 104px) 0; }
.legal .wrap { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { margin-bottom: 12px; }
.legal h2 { font-size: 20px; margin: 44px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.9; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 8px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--line); }
.legal th { font-weight: 500; width: 30%; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: end; }
.site-footer .brand { font-family: var(--latin); font-size: 22px; letter-spacing: 0.16em; color: var(--olive); }
.site-footer .brand-ko { margin-top: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: flex-end; }
.site-footer ul a { display: inline-block; padding: 10px 0; }
.site-footer .meta a { display: inline-block; padding: 12px 0; }
.site-footer .meta { grid-column: 1 / -1; align-items: center; display: flex; flex-wrap: wrap; gap: 4px 20px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 767px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer ul { justify-content: flex-start; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .wrap { display: grid; gap: 20px; justify-items: center; }

/* ---------- reduced motion: colour and press stay, movement goes ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-enter] > * { animation: enter-fade 300ms ease both; animation-delay: 0ms !important; }
  .scene-ph img, .nav a { transition: none !important; }
  .modal[open], .modal.is-closing { animation-name: fade-in; }
  .site-header.is-open .nav { animation: none; }
  html { scroll-behavior: auto; }
}
@keyframes enter-fade { from { opacity: 0; } }
