/* Kate Kulish — artist portfolio */
:root {
  --ink: #111111;
  --grey: #555555;
  --light: #999999;
  --bg: #ffffff;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; width: 100%; }

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

a { color: inherit; text-decoration: none; }

::selection { background: #eae6de; }

a:focus-visible,
button:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 130;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; }

.site-nav a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  margin-left: 30px;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.site-nav a:hover { opacity: 1; }

.site-nav a.current {
  opacity: 1;
  border-bottom: 1px solid var(--ink);
}

/* mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.menu-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.menu-open .mobile-menu { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.1em;
  padding: 10px;
  color: var(--ink);
}
.mobile-menu a.current { text-decoration: underline; text-underline-offset: 8px; }

/* ---------- home hero (split) ---------- */
.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  height: calc(100svh - var(--header-h));
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--bg);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5vw;
}

.hero-overline {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 22px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.12;
  margin-bottom: 26px;
}

.hero-lead {
  max-width: 380px;
  font-size: 14.5px;
  color: var(--grey);
  margin-bottom: 38px;
}

.hero-links { display: flex; gap: 28px; }
.hero-links a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.2s;
}
.hero-links a:hover { opacity: 0.6; }

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-media figure.active { opacity: 1; }

.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media img.fit-contain {
  object-fit: contain;
  background: var(--bg);
}

.hero-media figcaption {
  position: absolute;
  left: 28px; bottom: 24px; right: 110px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 14px rgba(0,0,0,0.5);
}

.hero-dots {
  position: absolute;
  right: 28px; bottom: 26px;
  display: flex; gap: 10px;
  z-index: 5;
}
.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 6px rgba(0,0,0,0.35);
}
.hero-dots button.active { background: #fff; }

/* ---------- page layout ---------- */
.page {
  max-width: 1150px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 70px) 32px 40px;
}

.page-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.page-intro {
  max-width: 640px;
  color: var(--grey);
  margin-bottom: 70px;
  font-size: 14.5px;
}

/* ---------- works ---------- */
.work {
  margin-bottom: 110px;
}

.page-title + .work { margin-top: 56px; }

.work-image { text-align: center; }
.work-image img {
  margin: 0 auto;
  max-height: 84vh;
  width: auto;
  max-width: 100%;
  cursor: zoom-in;
}

.work-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
}
.work-caption .t {
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* textile detail grid — uniform cells */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 14px auto 0;
}
.work-grid figure {
  margin: 0;
  overflow: hidden;
}
.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.work-grid figure:hover img {
  transform: scale(1.025);
  opacity: 0.96;
}
.work-grid figcaption {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 9px;
}

.work-sub {
  font-size: 12px;
  color: var(--light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 860px;
  margin: 46px auto 0;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}
.about-text p { margin-bottom: 1.15em; color: #222; }
.about-text .lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- cv ---------- */
.cv-section { margin-bottom: 44px; max-width: 720px; }
.cv-section h2 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cv-section ul { list-style: none; }
.cv-section li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 5px 0;
  color: #222;
  font-size: 14.5px;
}
.cv-section li .y { color: var(--light); }

/* ---------- contact ---------- */
.page-left {
  max-width: none;
  padding-left: clamp(44px, 8vw, 120px);
  padding-right: 44px;
}
.contact-block { margin-top: 54px; }
.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.contact-mail:hover { border-color: var(--ink); }
.contact-list { list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 10px 0;
  font-size: 15px;
}
.contact-list .k {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  padding-top: 3px;
}
.contact-list a { border-bottom: 1px solid #ddd; transition: border-color 0.2s; }
.contact-list a:hover { border-color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1150px;
  margin: 0 auto;
  padding: 30px 32px 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--light);
  border-top: 1px solid #eee;
}
.site-footer a { color: var(--grey); }
.site-footer a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero figure { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .site-header { padding: 0 20px; }
  .wordmark { font-size: 21px; }
  .site-nav { display: none; }
  .menu-btn { display: block; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .hero-text { padding: 34px 20px 30px; }
  .hero-text h1 { font-size: 36px; margin-bottom: 16px; }
  .hero-overline { margin-bottom: 14px; }
  .hero-lead { margin-bottom: 24px; }
  .hero-media figcaption { left: 20px; bottom: 20px; right: 96px; }
  .hero-dots { right: 20px; bottom: 22px; }
  .page { padding-left: 18px; padding-right: 18px; padding-top: calc(var(--header-h) + 44px); }
  .page-title { font-size: 32px; }
  .work { margin-bottom: 72px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cv-section li { grid-template-columns: 64px 1fr; gap: 12px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
