/*
Theme Name:  Kryspina Prusak — Cream
Theme URI:   https://kryspinaprusak.com
Description: Light editorial portfolio theme for model Kryspina Prusak. Cream colourway.
Version:     1.1.3
Author:      Kryspina Prusak
Author URI:  https://kryspinaprusak.com
License:     Private
Text Domain: kryspina-cream
*/

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:        #f4f0e7;
  --bg-soft:   #e8e2d4;
  --cream:     #1c1a15;
  --cream-dim: #6b6457;
  --gold:      #b8935a;
  --muted:     #9a8e7e;
  --line:      rgba(28, 26, 21, 0.12);
  --scrim:     rgba(244, 240, 231, 0.85);
  --serif:     "Cormorant Garamond", Georgia, serif;
  --sans:      "Montserrat", system-ui, sans-serif;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.6s ease, color 0.6s ease;
}
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2.2vw, 30px) clamp(24px, 5vw, 80px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease,
              padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: var(--scrim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: clamp(14px, 1.6vw, 20px);
  padding-bottom: clamp(14px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
}
nav .brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}
nav .links { display: flex; gap: clamp(22px, 3vw, 48px); }
nav .links a {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
}
nav .links a .arr { color: var(--gold); }
nav .links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
nav .links a:hover::after { width: 100%; }
nav .links a.ig-icon { display: flex; align-items: center; padding-bottom: 0; }
nav .links a.ig-icon::after { display: none; }
@media (max-width: 720px) { nav .links a:not(.cta) { display: none; } }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  position: relative;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(110px, 14vh, 180px) clamp(24px, 5vw, 80px) clamp(40px, 6vh, 70px);
  position: relative;
  z-index: 3;
}
.hero-loc {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 4vh, 46px);
}
.hero-loc .rule { width: clamp(36px, 6vw, 80px); height: 1px; background: var(--gold); opacity: 0.55; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 11.5vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: -0.012em;
  color: var(--cream);
}
.hero h1 .second {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  padding-left: 0.1em;
}
.hero-sub {
  margin-top: clamp(28px, 5vh, 52px);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.hero-sub span { color: var(--muted); padding: 0 6px; }
.hero-scroll {
  margin-top: clamp(40px, 8vh, 90px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}
.hero-scroll .down {
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrolldown 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrolldown {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
.hero-right { position: relative; overflow: hidden; }
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 32%);
}
.hero-vert {
  position: absolute;
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(28px, 6vh, 60px);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 300;
  z-index: 5;
  mix-blend-mode: difference;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { order: 2; padding-top: clamp(36px, 6vh, 60px); }
  .hero-right { order: 1; min-height: 66vh; }
  .hero-right::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
  .hero-vert { display: none; }
  .hero-scroll { display: none; }
}

/* ===== SECTION HEAD ===== */
.sec-label {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: clamp(96px, 15vh, 180px);
}
.sec-label .n { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.sec-label .rule { flex: 1; max-width: 120px; height: 1px; background: var(--line); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(22px, 3vh, 36px) 0 clamp(40px, 6vh, 72px);
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.sec-head h2 em { font-style: italic; color: var(--gold); }
.sec-head .count {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 300;
  padding-bottom: 0.55rem;
  white-space: nowrap;
}

/* ===== PORTFOLIO GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
  padding-bottom: clamp(40px, 8vh, 90px);
}
.work {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
}
.work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(0.16,1,0.3,1);
}
.work:hover img { transform: scale(1.045); }
.work .cap {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2vw, 34px);
  background: linear-gradient(0deg, rgba(8,8,7,0.88) 0%, rgba(8,8,7,0.14) 48%, transparent 74%);
  color: #f0ebe3;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1);
}
.work:hover .cap { opacity: 1; }
.work .cap .ttl {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.02;
  transform: translateY(18px);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.work .cap .meta {
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8b1a4;
  font-weight: 300;
  transform: translateY(22px);
  transition: transform 0.82s cubic-bezier(0.16,1,0.3,1);
}
.work .cap .meta b { color: #c9b89a; font-weight: 400; }
.work:hover .cap .ttl, .work:hover .cap .meta { transform: translateY(0); }

.w-wide   { grid-column: span 7; aspect-ratio: 2/1; }
.w-tall   { grid-column: span 5; aspect-ratio: 3/4; }
.w-square { grid-column: span 4; aspect-ratio: 1/1; }
.w-tall2  { grid-column: span 5; aspect-ratio: 3/4; }
.w-wide2  { grid-column: span 7; aspect-ratio: 2/1; }
.w-tall2:last-child { grid-column: 5 / span 4; }
.w-wide:last-child  { grid-column: 3 / span 8; }
.w-wide img, .w-wide2 img { object-position: center 20%; }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .w-wide,.w-tall,.w-square,.w-tall2,.w-wide2 { grid-column: span 1; aspect-ratio: 3/4; }
  .w-wide,.w-wide2 { grid-column: span 2; aspect-ratio: 16/10; }
  .w-tall2:last-child, .w-wide:last-child { grid-column: span 2; aspect-ratio: 16/10; }
  .work .cap { opacity: 1; }
  .work .cap .ttl, .work .cap .meta { transform: none; }
}

/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(10,9,6,0.97);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s;
}
#lightbox.open { opacity: 1; pointer-events: all; }
.lb-close {
  position: fixed; top: 32px; right: 48px;
  background: none; border: none;
  color: rgba(201,184,154,0.35);
  font-family: var(--sans); font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: color 0.3s; z-index: 501;
}
.lb-close:hover { color: #c9b89a; }
.lb-title {
  position: fixed; top: 36px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: rgba(201,184,154,0.4); letter-spacing: 1px; z-index: 501;
  white-space: nowrap; pointer-events: none;
}
.lb-img-wrap { max-width: 88vw; max-height: 84vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 88vw; max-height: 84vh; object-fit: contain; display: block; opacity: 0; transition: opacity 0.4s; }
.lb-img.loaded { opacity: 1; }
.lb-empty {
  font-family: var(--serif); font-size: 28px; font-style: italic;
  color: rgba(201,184,154,0.2); text-align: center; padding: 40px;
}
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: none; border: 0.5px solid rgba(201,184,154,0.15);
  color: rgba(201,184,154,0.5);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all 0.3s; z-index: 501;
}
.lb-arrow:hover { border-color: #c9b89a; color: #c9b89a; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-counter {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 8px; letter-spacing: 3px; color: rgba(107,97,85,0.4);
  text-transform: uppercase; z-index: 501; pointer-events: none;
}
@media (max-width: 768px) {
  .lb-arrow { width: 36px; height: 36px; font-size: 14px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 20px; right: 20px; }
}

/* ===== CONTACT ===== */
.contact { border-top: 1px solid var(--line); margin-top: clamp(40px, 8vh, 100px); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(80px, 13vh, 150px) clamp(24px, 5vw, 80px) clamp(80px, 12vh, 130px);
}
.contact-left h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: clamp(20px, 4vh, 38px) 0 clamp(28px, 5vh, 46px);
}
.contact-left h2 .reg { font-style: normal; color: var(--gold); }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.detail .k { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.detail .v { margin-top: 7px; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; transition: color 0.4s ease; }
.detail .v .arr { font-size: 1rem; color: var(--gold); }
a.detail:hover .v { color: var(--gold); }

/* ===== CONTACT FORM 7 ===== */
.wpcf7 { width: 100%; }
.wpcf7 form { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 36px); }
.wpcf7 form p { margin: 0; }
.wpcf7 form br { display: none; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 label {
  display: block;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 12px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  padding: 6px 0 14px;
  outline: none;
  transition: border-color 0.4s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.wpcf7 textarea { resize: none; min-height: 80px; line-height: 1.5; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: rgba(184,177,164,0.3); font-style: italic; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--gold); }
.wpcf7 select option { background: var(--bg-soft); color: var(--cream); font-family: var(--sans); font-size: 0.85rem; }
.wpcf7-submit {
  align-self: flex-start;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 19px 46px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s ease;
  display: inline-block;
}
.wpcf7-submit::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  z-index: 1;
}
.wpcf7-submit span { position: relative; z-index: 2; }
.wpcf7-submit:hover { color: var(--bg); }
.wpcf7-submit:hover::before { transform: translateX(0); }
.wpcf7 .wpcf7-not-valid-tip { font-size: 9px; letter-spacing: 2px; color: #c9615a; display: block; margin-top: 4px; }
.wpcf7 .wpcf7-response-output {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 300;
  border: none !important; margin: 16px 0 0 !important; padding: 0 !important;
}
/* ===== INSTAGRAM CTA ===== */
.contact-ig { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 44px); }
.contact-ig .k {
  display: block;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.contact-ig .handle {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}
.ig-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 19px 46px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s ease;
  display: inline-block;
  text-decoration: none;
}
.ig-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  z-index: 1;
}
.ig-btn span { position: relative; z-index: 2; }
.ig-btn:hover { color: var(--bg); }
.ig-btn:hover::before { transform: translateX(0); }

@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; gap: clamp(48px, 8vh, 70px); }
  .contact-left, .contact-right { text-align: center; }
  .contact-ig { align-items: center; }
  .ig-btn { align-self: center; }
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 6vh, 64px) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
footer .sig {
  grid-column: 2;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
footer .cright { grid-column: 1; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); font-weight: 300; }
footer .ig { grid-column: 3; text-align: right; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); font-weight: 300; transition: color 0.4s ease; }
footer .ig:hover { color: var(--gold); }
footer .ig .arr { color: var(--gold); }
@media (max-width: 620px) {
  footer { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  footer .sig, footer .cright, footer .ig { grid-column: 1; text-align: center; }
}

/* ===== REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1), transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-scroll .down { animation: none; }
}
