/* ============================================================
   YEONO — tattoo artist · LIGHT THEME
   Conservatory / Bali. Warm paper · foliage green · terracotta.
   ============================================================ */

/* ── Self-hosted fonts (latin-subset variable woff2, served from /fonts) ── */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  --paper:   #f6f1e7;
  --paper-2: #efe7d8;
  --paper-3: #e8dcc8;
  --ink:     #33302a;
  --ink-soft:#7a7264;
  --green:   #4c5a40;
  --green-d: #3a4631;
  --terra:   #bd6c43;
  --line:    rgba(51, 48, 42, 0.14);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--terra); color: var(--paper); }

/* ── Paper grain ───────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Reveal on scroll ──────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease) var(--d, 0s),
              transform 0.9s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; cursor: pointer; border: 1px solid var(--green);
  background: transparent; color: var(--green); border-radius: 100px;
  transition: color 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--solid { background: var(--green); color: var(--paper); }
.btn--solid:hover { background: var(--terra); border-color: var(--terra); }
.btn--full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--pad);
  /* soft paper scrim so links stay legible over the photo at the top */
  background: linear-gradient(180deg, rgba(246, 241, 231, 0.85) 0%, rgba(246, 241, 231, 0) 100%);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(14px);
  padding-top: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: 0.01em; color: var(--green-d);
}
.nav__links { display: flex; align-items: center; gap: 2.4rem; }
.nav__links a {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--green-d); transition: color 0.3s;
}
.nav__links a:hover { color: var(--terra); }
.nav__cta {
  border: 1px solid var(--green); border-radius: 100px; padding: 0.6rem 1.3rem;
  color: var(--green) !important;
}
.nav__cta:hover { background: var(--green); color: var(--paper) !important; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer;
  width: 34px; height: 34px; flex-direction: column; gap: 7px; justify-content: center; }
.nav__burger span { display: block; height: 1.5px; width: 26px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem var(--pad) 4rem; overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background: url("assets/yeono-hero.webp") 50% 22% / cover no-repeat;
  filter: saturate(1.05) contrast(1.02) brightness(1.04);
  transform: scale(1.22) translateX(8%); transform-origin: center;
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.28) translateX(8%); }
  to   { transform: scale(1.22) translateX(8%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(246,241,231,0.92) 0%, rgba(246,241,231,0.62) 32%, rgba(246,241,231,0.12) 58%, rgba(246,241,231,0) 75%),
    linear-gradient(180deg, rgba(246,241,231,0.4) 0%, rgba(246,241,231,0) 30%, rgba(246,241,231,0.55) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 60rem; }
.hero__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 1.4rem; font-weight: 600;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(4.5rem, 17vw, 17rem); line-height: 0.9;
  letter-spacing: -0.02em; color: var(--green-d);
}
.hero__title span { display: block; }
.hero__sub {
  max-width: 33rem; margin: 2rem 0 2.6rem;
  font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink);
  line-height: 1.75;
}
.hero__scroll {
  position: absolute; bottom: 2rem; right: var(--pad); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll i { width: 1px; height: 48px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--terra); animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.4rem 0; background: var(--paper-2);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.8rem); text-transform: none; white-space: nowrap;
  color: var(--green-d);
}
.marquee__track i { color: var(--terra); font-style: normal; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { padding: clamp(5rem, 12vw, 9rem) var(--pad) 2.5rem; }
.section-head__index {
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 1rem; font-weight: 600;
}
.section-head__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.01em;
  color: var(--green-d);
}
.section-head__title em { font-style: italic; font-weight: 400; color: var(--terra); }

/* ============================================================
   WORK / GALLERY
   ============================================================ */
.work { background: var(--paper); }
.gallery {
  column-count: 3; column-gap: 0.8rem;
  padding: 0 var(--pad) clamp(3rem, 8vw, 5rem);
}
.gallery__item {
  position: relative; overflow: hidden; cursor: pointer; background: var(--paper-3);
  break-inside: avoid; margin-bottom: 0.8rem; border-radius: 14px;
}
.gallery__item img {
  width: 100%; height: auto; display: block;
  transition: transform 1.1s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(246,241,231,0.86); backdrop-filter: blur(6px); color: var(--ink);
  padding: 0.45rem 0.8rem; border-radius: 100px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

/* Instagram CTA band */
.work__cta {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
  margin: 0 var(--pad) clamp(5rem, 12vw, 9rem);
  padding: clamp(2.5rem, 6vw, 4rem); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 22px;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.work__cta:hover { background: var(--green); border-color: var(--green); }
.work__cta-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
.work__cta:hover .work__cta-label { color: rgba(246,241,231,0.85); }
.work__cta-handle {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; color: var(--green-d);
}
.work__cta:hover .work__cta-handle { color: var(--paper); }
.work__cta-go {
  margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft);
}
.work__cta:hover .work__cta-go { color: rgba(246,241,231,0.92); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding: clamp(5rem, 12vw, 9rem) var(--pad);
  background: var(--paper-2); border-top: 1px solid var(--line);
}
.about__portrait { aspect-ratio: 3/4; overflow: hidden; border-radius: 18px; }
.about__title {
  font-family: var(--serif); font-weight: 500; line-height: 1.04;
  font-size: clamp(2.2rem, 5vw, 4rem); margin: 1rem 0 1.8rem; letter-spacing: -0.01em;
  color: var(--green-d);
}
.about__title em { font-style: italic; font-weight: 400; color: var(--terra); }
.about__body p { color: var(--ink); max-width: 40ch; margin-bottom: 1.1rem; }
.about__stats { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.about__stats dt { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; color: var(--green-d); }
.about__stats dd {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}

/* ============================================================
   STUDIO / STYLES
   ============================================================ */
.studio { background: var(--paper); }
.studio__list {
  list-style: none; padding: 0 var(--pad) clamp(5rem, 12vw, 9rem);
  border-top: 1px solid var(--line);
}
.studio__list li {
  display: grid; grid-template-columns: 5rem 1fr 2fr; gap: 1.5rem; align-items: baseline;
  padding: 2.4rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.studio__list li:hover { padding-left: 1rem; }
.studio__num { font-size: 0.8rem; color: var(--terra); letter-spacing: 0.08em; }
.studio__list h3 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.01em; color: var(--green-d);
}
.studio__list p { color: var(--ink-soft); max-width: 44ch; }

/* ============================================================
   BOOKING
   ============================================================ */
.book {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  background: var(--paper-2); border-top: 1px solid var(--line);
}
.book__title {
  font-family: var(--serif); font-weight: 500; line-height: 0.98;
  font-size: clamp(3rem, 8vw, 6.5rem); margin: 1rem 0 1.8rem; letter-spacing: -0.02em;
  color: var(--green-d);
}
.book__title em { font-style: italic; font-weight: 400; color: var(--terra); }
.book__intro p { color: var(--ink-soft); max-width: 34ch; }
.book__contact { margin-top: 1.8rem; }
.book__contact a { color: var(--terra); border-bottom: 1px solid var(--terra); padding-bottom: 2px; }

.book__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-content: start; }
.field { display: flex; flex-direction: column; gap: 0.5rem; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.4); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-family: var(--sans); font-size: 1rem;
  padding: 0.85rem 0.9rem; transition: border-color 0.3s, background 0.3s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(122,114,100,0.7); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: rgba(255,255,255,0.7);
}
.book__form .btn { grid-column: span 2; margin-top: 0.6rem; }
.book__status { grid-column: span 2; font-size: 0.88rem; min-height: 1.2em; }
.book__status.ok { color: var(--green); }
.book__status.err { color: var(--terra); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: clamp(3rem, 8vw, 6rem) var(--pad) 2.5rem; background: var(--paper); }
.footer__big {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(3rem, 16vw, 14rem); line-height: 0.85; letter-spacing: -0.02em;
  color: var(--green-d);
  border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 1.5rem;
}
.footer__row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.footer__social { display: flex; gap: 1.6rem; }
.footer__social a { transition: color 0.3s; }
.footer__social a:hover { color: var(--terra); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9000; display: none;
  align-items: center; justify-content: center; padding: 4vw;
  background: rgba(246, 241, 231, 0.95); backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: 90vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.8rem; background: none; border: 0;
  color: var(--ink); font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--paper-2); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 2rem; padding: var(--pad); transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 1.1rem; }
  .nav__burger { display: flex; z-index: 101; }

  .about, .book { grid-template-columns: 1fr; }
  .about__portrait { aspect-ratio: 4/5; max-height: 70vh; }
  .gallery { column-count: 2; }
  .studio__list li { grid-template-columns: 3rem 1fr; }
  .studio__list p { grid-column: 2; }
}

@media (max-width: 520px) {
  .gallery { column-count: 1; }
  .book__form { grid-template-columns: 1fr; }
  .field, .field--half, .book__form .btn, .book__status { grid-column: span 1; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
