/* ===========================================================
   Valerie Bendersky — Portfolio
   Minimal & elegant design system
   =========================================================== */

:root {
  --bg: #F2EEE4;
  --surface: #FFFFFF;
  --ink: #1A1A18;
  --muted: #76726A;
  --line: rgba(20, 20, 18, 0.10);
  --line-soft: rgba(20, 20, 18, 0.06);
  /* Brand gradient pulled from the VAL Creative identity */
  --brand: linear-gradient(90deg, #E5007E 0%, #8DC63F 33%, #F7941E 66%, #27AAE1 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { position: relative; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--brand);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(150%) blur(14px);
  background: rgba(242, 238, 228, 0.78);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 124px; max-width: var(--max); margin: 0 auto; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 18px; font-weight: 600; letter-spacing: 0.02em; }
.brand__logo { height: 74px; width: auto; display: block; }
.brand__divider { width: 1px; height: 52px; background: var(--line); flex: none; }
.brand__name { font-size: 20px; }
.brand__name small { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.3s var(--ease); position: relative; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand);
}
.nav__cta {
  padding: 10px 20px; border: 1px solid var(--ink); border-radius: 100px; color: var(--ink) !important;
  transition: all 0.35s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: #fff !important; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.3s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-weight: 500; font-size: 15px;
  transition: all 0.4s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(70px, 11vw, 140px) 0 clamp(50px, 8vw, 100px); }
.hero__grid { display: grid; grid-template-columns: 0.92fr 1.12fr; align-items: start; gap: clamp(20px, 3.5vw, 48px); }
.hero__art { position: relative; margin-top: -56px; }
.hero__art img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 480px; margin: 8px auto 0; }
}
.hero h1 { margin: 22px 0 28px; max-width: 16ch; }
.hero .accent { font-style: italic; background: var(--brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 30px; }
.hero__meta .num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.hero__meta .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Featured strip on home ---------- */
.feature { padding: clamp(50px, 8vw, 90px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.section-head h2 { margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__shot { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ece9e3; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.card:hover .card__shot img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card__body h3 { font-size: 1.25rem; }
.card__body .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.card__go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: all 0.4s var(--ease); }
.card:hover .card__go { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Generic content sections ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.muted-panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); }

/* ---------- About ---------- */
.portrait {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; position: relative;
  background: var(--brand); box-shadow: var(--shadow-md);
}
.portrait .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 12vw, 9rem); opacity: 0.95; }
.portrait__logo { position: absolute; inset: 0; margin: auto; width: 64%; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.22)); }
.portrait__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 2; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 50px 0; }
.about-stats .stat { padding: 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.about-stats .num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.about-stats .lbl { font-size: 13px; color: var(--muted); margin-top: 8px; }

.timeline { margin-top: 16px; border-left: 2px solid var(--line); padding-left: 30px; }
.timeline .job { position: relative; padding-bottom: 34px; }
.timeline .job::before { content: ""; position: absolute; left: -37px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.timeline .job:last-child { padding-bottom: 0; }
.timeline .yr { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.timeline .role { font-family: var(--serif); font-size: 1.35rem; margin: 4px 0 2px; }
.timeline .org { font-size: 14.5px; color: var(--muted); }

.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.skill { padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 13.5px; background: var(--surface); transition: all 0.35s var(--ease); }
.skill:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Portfolio ---------- */
.port-hero { padding: clamp(60px, 9vw, 110px) 0 10px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 7px; margin: 34px 0 8px; gap: 6px; }
.tabs button { border: 0; background: none; padding: 16px 40px; border-radius: 100px; font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 0.35s var(--ease); }
.tabs button.active { background: var(--ink); color: #fff; }

.panel { display: none; }
.panel.active { display: block; animation: fade 0.6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.web-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.web-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.web-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.web-card__frame { aspect-ratio: 4/3; overflow: hidden; background: #ece9e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='9' fill='none' stroke='%23cfcabf' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; position: relative; }
.web-card__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.web-card:hover .web-card__frame img { transform: scale(1.05); }
.web-card__body { padding: 20px 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.web-card__body h3 { font-size: 1.2rem; }
.web-card__body .url { font-size: 13px; color: var(--muted); margin-top: 3px; }
.web-card__tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; flex: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 38px; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 100px; padding: 9px 18px; font-family: var(--sans); font-size: 13.5px; color: var(--muted); cursor: pointer; transition: all 0.35s var(--ease); }
.filters button.active, .filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button.active { background: var(--ink); color: #fff; }

.print-section { margin-bottom: clamp(44px, 6vw, 72px); }
.print-section:last-child { margin-bottom: 0; }
.print-section__head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.print-section__head .eyebrow { font-size: 13px; }
.print-section__head .count { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); margin-left: auto; }
.masonry { columns: 3; column-gap: 18px; }
.tile { break-inside: avoid; margin-bottom: 18px; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); position: relative; }
.tile img { width: 100%; transition: transform 0.9s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile:hover img { transform: scale(1.03); }
.tile__cap { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-size: 12.5px; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.4s var(--ease); }
.tile:hover .tile__cap { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18,17,15,0.92); display: none; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; animation: fade 0.3s ease; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: background 0.3s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 26px; }
.lightbox__nav.next { right: 26px; }
.lightbox__count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.1em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(44px, 7vw, 80px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand); }
.cta-band__logo { height: 64px; width: auto; display: block; margin: 0 auto 26px; opacity: 0.95; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.72); margin: 18px auto 34px; }
.cta-band .btn--dark { background: #fff; color: var(--ink); }
.cta-band .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.contact-grid a { display: block; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: all 0.4s var(--ease); }
.contact-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-grid .k { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-grid .v { font-family: var(--serif); font-size: 1.3rem; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: clamp(60px, 9vw, 110px); padding: 44px 0; background: var(--bg); position: relative; z-index: 2; }
.footer__logo, .footer__brand img { background: transparent; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo { height: 30px; width: auto; display: block; }
.footer small { color: var(--muted); font-size: 13.5px; }
.footer .links { display: flex; gap: 24px; }
.footer .links a { font-size: 13.5px; color: var(--muted); transition: color 0.3s ease; }
.footer .links a:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__inner { height: 80px; }
  .brand__logo { height: 46px; }
  .nav__links { position: fixed; inset: 80px 0 auto 0; background: var(--bg); flex-direction: column; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.4s var(--ease); }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 28px; width: 100%; }
  .nav__burger { display: block; }
  .cards, .web-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .hero__meta { gap: 30px; }
}
