/* ==========================================================
   KimchiHelen: quiet, downtown, elegant.
   Black and ivory only; the photos bring the color.
   ========================================================== */

:root {
  --ivory: #f6f1e7;
  --ivory-deep: #ece5d7;
  --black: #161513;
  --muted: #6e6a63;
  --line: rgba(22, 21, 19, 0.14);
  --rule: var(--black);

  --on-dark: #f6f1e7;
  --on-dark-muted: rgba(246, 241, 231, 0.68);
  --line-dark: rgba(246, 241, 231, 0.2);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--black); color: var(--ivory); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); font-weight: 300; }
h3 { font-size: 1.5rem; }
h1 em, h2 em { font-style: italic; }

p { margin: 0 0 1.1em; }

.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 28px 0;
}
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-solid { background: var(--black); border-color: var(--black); color: var(--ivory); }
.btn-solid:hover { background: transparent; color: var(--black); }
.btn-line:hover { background: var(--black); border-color: var(--black); color: var(--ivory); }
.on-dark .btn-line:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--black); }

.text-link {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--muted); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  text-decoration: none;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.logo-mark {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}
.logo-mark em { font-style: italic; }
.logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { opacity: 0.6; }
.nav-links .btn { padding: 12px 24px; }
.nav-book { display: none; }
.nav-links .btn:hover { background: var(--black); color: var(--ivory); border-color: var(--black); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: inherit;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  margin: 7px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 760px) {
  .nav { height: 72px; }
  .menu-toggle { display: block; }
  /* on phones the menu hides its Book now button, so keep one in the header bar */
  .nav-book { display: inline-flex; margin-left: auto; margin-right: 14px; padding: 10px 16px; font-size: 0.68rem; letter-spacing: 0.18em; }
  .nav-links li:last-child { display: none; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 32px;
    background: var(--ivory);
    color: var(--black);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 20px; }
  .nav-links a { display: block; padding: 18px 0; }
  .nav-links .btn { padding: 16px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- sections ---------- */

section { padding: clamp(80px, 11vw, 140px) 0; }

.on-dark { color: var(--on-dark); --rule: var(--on-dark-muted); }
.on-dark .label { color: var(--on-dark-muted); }
.on-dark p { color: var(--on-dark-muted); }
.bg-black { background: var(--black); }
.bg-ivory-deep { background: var(--ivory-deep); }

.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- hero: full-bleed, type only ---------- */

.hero {
  min-height: min(88svh, 860px);
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--ivory);
  color: var(--black);
}
.hero-content {
  text-align: center;
  padding: 100px var(--gutter);
  max-width: 860px;
}
.hero h1 { margin-bottom: 22px; }
.hero p { color: var(--muted); max-width: 34em; margin: 0 auto 44px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- services: hover list ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.services-media {
  order: 2;
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - 160px);
  overflow: hidden;
  background: #222;
}
.services-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.services-media img.active { opacity: 1; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
  cursor: default;
  transition: opacity 0.4s ease;
}
.service-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.js .service-list li:not(.active) { opacity: 0.38; }
.service-list .service-photo { display: none; }
.service-list h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 300;
  margin-bottom: 4px;
}
.service-list p { margin: 0; }
.service-list a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 20px;
  border: 1px solid var(--line-dark);
  transition: background 0.3s ease, color 0.3s ease;
}
.service-list a:hover { background: var(--on-dark); color: var(--black); }
.services-note { margin: 40px 0 0; font-size: 0.9rem; }

/* ---------- client photos ---------- */

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 230px));
  justify-content: center;
  gap: 28px;
}
.client-photo { margin: 0; }
.client-img { aspect-ratio: 4 / 5; overflow: hidden; }
.client-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center 30%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focus, center 30%);
}
@media (max-width: 760px) {
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
.client-photo figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- extra Book now buttons ---------- */

.section-cta { text-align: center; margin-top: clamp(40px, 5vw, 56px); }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.page-head-cta { margin-top: 32px !important; }
.page-head .btn-solid { background: var(--on-dark); border-color: var(--on-dark); color: var(--black); }
.page-head .btn-solid:hover { background: transparent; color: var(--on-dark); }
.footer-book { margin-top: 24px; color: var(--on-dark); }
.footer-book:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--black); }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-media { display: none; }
  .service-list li {
    min-height: 0;
    grid-template-columns: 104px 1fr;
    grid-template-rows: auto auto;
    gap: 14px 20px;
    padding: 24px 0;
    align-items: start;
  }
  .js .service-list li:not(.active) { opacity: 1; }
  .service-list .service-photo {
    display: block;
    grid-row: 1 / span 2;
    width: 104px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 30%;
  }
  .service-list .service-text { grid-column: 2; }
  .service-list h3 { font-size: 1.45rem; margin-bottom: 6px; }
  .service-list p { font-size: 0.95rem; line-height: 1.55; }
  .service-list a { grid-column: 2; justify-self: start; margin-top: 0; padding: 9px 16px; }
}

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

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.split-grid .photo { aspect-ratio: 4 / 5; overflow: hidden; }
.split-grid .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.split-grid .text { max-width: 30em; }

.facts {
  list-style: none;
  padding: 0;
  margin: 36px 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.facts li { border-top: 1px solid var(--rule); padding-top: 14px; }
.facts span {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.facts strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top-color: var(--rule); }
  .facts span { margin: 0; }
  .facts strong { font-size: 1.3rem; }
}

@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-grid .photo { max-width: 460px; }
}

/* ---------- reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 64px);
}
.review { margin: 0; display: flex; flex-direction: column; }
.review blockquote {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-style: italic;
  line-height: 1.5;
  flex: 1;
}
.review figcaption {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
}
.review figcaption a { text-decoration: none; }
.review figcaption a:hover { color: var(--black); }

@media (max-width: 920px) { .reviews { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; } }

/* ---------- portfolio teaser ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.strip a { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.strip a:hover img { transform: scale(1.03); }

@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- visit ---------- */

.visit address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0 0 36px;
}
.visit .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.visit h2.label { line-height: 1.75; }
.visit-note { color: var(--muted); margin: 0 0 18px; }

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

.site-footer {
  background: var(--black);
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  padding-bottom: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr 0.8fr;
  gap: 36px;
  padding: 72px 0 56px;
}
.site-footer .logo-mark { color: var(--on-dark); font-size: 2rem; }
.site-footer .tagline { margin-top: 12px; }
.site-footer h4 {
  margin: 0 0 16px;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.hours dt, .hours dd { margin: 0; white-space: nowrap; }
.hours dt { color: var(--on-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 235, 225, 0.45);
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- inner page header ---------- */

.page-head {
  padding: clamp(80px, 11vw, 136px) 0 clamp(64px, 8vw, 96px);
  background: var(--black);
  color: var(--on-dark);
  text-align: center;
}
.page-head .label { color: var(--on-dark-muted); }
.page-head .rule { background: var(--on-dark-muted); }
.page-head p { color: var(--on-dark-muted); margin: 0 auto; max-width: 34em; }
.page-head a { color: var(--on-dark); }

/* ---------- portfolio ---------- */

.gallery {
  columns: 3 150px;
  column-gap: 14px;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 14px;
  border: 0;
  background: var(--ivory-deep);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
}
.gallery img { width: 100%; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:focus-visible { outline: 1px solid var(--black); outline-offset: 4px; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
.lightbox::backdrop { background: rgba(20, 24, 21, 0.95); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; width: auto; }
.lightbox button {
  position: absolute;
  background: none;
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  width: 48px; height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.lightbox button:hover { background: var(--on-dark); color: var(--black); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 24px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 56px); }
  .lightbox .lb-next { right: calc(50% - 56px); }
}

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

.about-copy p.big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  font-weight: 400;
}
.about-copy h2 { font-size: 1.9rem; margin: 48px 0 18px; }
.specialty-list { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line); }
.specialty-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- booking ---------- */

.booking-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.booking-aside { position: sticky; top: 120px; }
.booking-aside address { font-style: normal; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; margin-bottom: 24px; }
.booking-frame { background: var(--ivory); min-height: 800px; }
.booking-frame iframe { display: block; width: 100%; min-height: 800px; border: 0; }

@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-aside { position: static; order: 2; }
}

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; translate: 0 14px; transition: opacity 1s ease, translate 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--black); color: var(--ivory);
  padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
