/* ==========================================================================
   ARTby Jannie — Art From the Heart Studio ®
   Gallery-first redesign · 2026
   Principles borrowed from Artsy / Sotheby's / Christie's:
   the site is the frame — the art is the interface.
   ========================================================================== */

:root {
  --ink: #161616;
  --ink-soft: #232120;
  --ink-70: rgba(22, 22, 22, 0.7);
  --ink-50: rgba(22, 22, 22, 0.5);
  --ink-30: rgba(22, 22, 22, 0.3);
  --paper: #faf8f4;
  --paper-warm: #f2ede4;
  --clay: #aba19d;
  --accent: #b0552f;          /* deep terracotta — vividness of spirit */
  --accent-bright: #d4693c;
  --gold: #b89b5e;
  --hairline: rgba(22, 22, 22, 0.14);
  --hairline-light: rgba(250, 248, 244, 0.18);
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.7; color: var(--ink-70); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: #fff;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.solid {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 84px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em; }
.brand span {
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase;
  opacity: 0.66; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 16px; font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.82; border-radius: 999px;
  transition: opacity 0.2s, background 0.2s;
}
.nav a:hover { opacity: 1; background: rgba(128, 118, 108, 0.14); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 2px;
  background: var(--accent-bright); border-radius: 2px;
}
.nav-cta {
  border: 1px solid currentColor; margin-left: 10px;
  padding: 10px 22px !important; border-radius: 999px;
}
.nav-cta:hover { background: var(--accent) !important; border-color: var(--accent); color: #fff !important; opacity: 1; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: inherit; font-size: 1.5rem; line-height: 1; padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  transform: scale(1.06);
  animation: heroSettle 2.4s var(--ease-out) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(22,22,22,0.18) 30%, rgba(22,22,22,0.42) 62%, rgba(22,22,22,0.82) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: 160px; padding-bottom: clamp(48px, 8vh, 96px);
}
.hero h1 { color: #fff; max-width: 12ch; margin-bottom: 20px; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .sub {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem); line-height: 1.65;
  color: rgba(255, 255, 255, 0.86); max-width: 52ch; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 26px; margin-top: clamp(40px, 6vh, 72px);
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Page hero (interior pages) */
.page-hero {
  position: relative; padding: 188px 0 clamp(56px, 9vh, 96px);
  color: #fff; background: var(--ink); overflow: hidden;
}
.page-hero .hero-media img { object-position: center 30%; opacity: 0.5; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,0.3), rgba(22,22,22,0.66));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .sub { color: rgba(255,255,255,0.82); max-width: 56ch; font-size: 1.1rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 10px 30px rgba(176, 85, 47, 0.4); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); box-shadow: 0 10px 30px rgba(22,22,22,0.25); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-30); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--paper-warm); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .lede, .section-dark p { color: rgba(250, 248, 244, 0.72); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Editorial split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(22, 22, 22, 0.22);
}
.split-media .caption-chip {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(250, 248, 244, 0.94); color: var(--ink);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- Quote block ---------- */
.pull-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.35;
  letter-spacing: -0.01em; max-width: 24ch; margin: 0 auto;
  text-align: center;
}
.pull-quote::before { content: "“"; color: var(--accent); }
.pull-quote::after { content: "”"; color: var(--accent); }

/* ==========================================================================
   GALLERY
   ========================================================================== */

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.filter-chip {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--hairline); background: transparent;
  color: var(--ink-70); cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery {
  columns: 3; column-gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 1000px) { .gallery { columns: 2; } }
@media (max-width: 620px) { .gallery { columns: 1; } }

.work {
  break-inside: avoid; margin-bottom: clamp(20px, 3vw, 40px);
  cursor: pointer; position: relative;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.work.in { opacity: 1; transform: none; }
.work.hidden { display: none; }

.work-frame {
  overflow: hidden; border-radius: 3px;
  background: var(--paper-warm);
  box-shadow: 0 2px 6px rgba(22,22,22,0.06);
  transition: box-shadow 0.35s ease;
}
.work:hover .work-frame { box-shadow: 0 24px 60px rgba(22, 22, 22, 0.2); }
.work-frame img {
  width: 100%; transition: transform 0.7s var(--ease-out);
}
.work:hover .work-frame img { transform: scale(1.045); }

.work-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 16px 4px 0;
}
.work-label h3 {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  margin: 0; letter-spacing: 0;
}
.work-label .meta {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-50); white-space: nowrap;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(16, 14, 13, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.open { display: flex; }
.lightbox-inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  max-width: 1240px; max-height: 100%; width: 100%;
}
.lightbox img {
  max-height: 82vh; width: auto; max-width: 100%;
  margin: 0 auto; border-radius: 3px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
.lightbox-details { color: var(--paper); }
.lightbox-details .eyebrow { color: var(--accent-bright); }
.lightbox-details h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; color: #fff;
}
.lightbox-details .meta {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250, 248, 244, 0.6); margin-bottom: 22px;
}
.lightbox-details .oracle {
  font-family: var(--serif); font-style: italic;
  font-size: 1.12rem; line-height: 1.7;
  color: rgba(250, 248, 244, 0.85);
  border-left: 2px solid var(--accent); padding-left: 20px;
  margin: 0 0 28px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1; padding: 10px;
  opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.4rem; padding: 18px; opacity: 0.55; transition: opacity 0.2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

@media (max-width: 860px) {
  .lightbox-inner { grid-template-columns: 1fr; gap: 18px; overflow-y: auto; }
  .lightbox img { max-height: 56vh; }
  .lightbox-nav { display: none; }
}

/* ---------- Home: selected works strip ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 380px);
  gap: clamp(18px, 2.5vw, 32px);
  overflow-x: auto; padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .work { margin-bottom: 0; scroll-snap-align: start; opacity: 1; transform: none; }

/* ---------- Stats / values row ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.value h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.value p { color: var(--ink-70); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(250, 248, 244, 0.78);
  padding: clamp(56px, 8vw, 96px) 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); margin-bottom: clamp(44px, 6vw, 72px);
}
.site-footer h4 {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand strong { font-family: var(--serif); font-size: 1.6rem; color: #fff; font-weight: 600; }
.footer-brand p { font-size: 0.95rem; margin-top: 12px; }
.footer-legal {
  border-top: 1px solid var(--hairline-light);
  padding-top: 26px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(250, 248, 244, 0.45);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); margin-bottom: 8px; }
input, textarea, select {
  width: 100%; padding: 15px 18px;
  border: 1px solid var(--hairline); border-radius: 4px;
  background: #fff; font: inherit; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 85, 47, 0.14);
}
textarea { min-height: 150px; resize: vertical; }

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

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 32px; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .work { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-media img { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-inner { height: 70px; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper); color: var(--ink);
    padding: 18px var(--gutter) 28px;
    box-shadow: 0 20px 40px rgba(22,22,22,0.18);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 0.95rem; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .site-header { background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--hairline); }
  .site-header.on-hero { background: rgba(22,22,22,0.35); color: #fff; box-shadow: none; }
  .site-header.on-hero.solid { background: rgba(250,248,244,0.92); color: var(--ink); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
}
