/* =====================================================================
   PRISME — a gallery of original geometric art
   Picasso / cubist-inspired static landing page
   ===================================================================== */

:root {
  /* palette */
  --ink:        #16130f;
  --paper:      #f4ebdc;
  --bone:       #e9dcc4;
  --cobalt:     #2d4a78;
  --cobalt-dk:  #223a5e;
  --terracotta: #c14f2e;
  --ochre:      #d9a32e;
  --olive:      #6b7a3a;
  --rose:       #c24b5a;
  --smoke:      #6b6154;

  /* type */
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --ui: "Space Grotesk", "Segoe UI", system-ui, sans-serif;

  --rule: 2px solid var(--ink);
  --shadow: 8px 8px 0 rgba(22, 19, 15, 0.9);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* subtle paper grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image:
    radial-gradient(rgba(22,19,15,0.9) 0.5px, transparent 0.6px),
    radial-gradient(rgba(22,19,15,0.6) 0.5px, transparent 0.6px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 2px;
  mix-blend-mode: multiply;
}

a { color: var(--cobalt); }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: min(var(--maxw), 92vw);
  margin-inline: auto;
}

:is(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- utility ---------- */
.kicker {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--smoke);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--terracotta);
}
.eyebrow {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bone);
  border-bottom: var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.brand .mark {
  width: 30px;
  height: 30px;
  background: var(--terracotta);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border: var(--rule);
  border-radius: 2px;
}
.nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav ul a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover { border-bottom-color: var(--terracotta); }
.nav-cta {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--paper);
  background: var(--ink);
  padding: 0.6rem 1.1rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  text-decoration: none;
}
.nav-cta:hover { background: var(--terracotta); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  border-bottom: var(--rule);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--bone) 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: 4.5rem 0 4rem;
  min-height: 78vh;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 1rem 0 1.2rem;
  text-transform: uppercase;
}
.hero h1 .accent {
  color: var(--terracotta);
  display: inline-block;
  transform: rotate(-2deg);
}
.hero h1 .blue {
  color: var(--cobalt);
  display: inline-block;
  transform: rotate(1.5deg);
}
.hero-lede {
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 0 0 1.8rem;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.btn {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  border: var(--rule);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 rgba(22,19,15,0.9);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(22,19,15,0.9); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--ochre); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.85rem; box-shadow: 5px 5px 0 rgba(22,19,15,0.9); }

/* ---------- hero art: original cubist composition ---------- */
.hero-art {
  position: relative;
  z-index: 1;
}
.hero-art .frame {
  position: relative;
  border: var(--rule);
  background: var(--bone);
  box-shadow: var(--shadow);
  padding: 0;
  transform: rotate(1.5deg);
}
.hero-art svg { width: 100%; height: auto; }

.hero-stamp {
  position: absolute;
  z-index: 3;
  bottom: -22px;
  right: -14px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--ochre);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--display);
  font-size: 0.98rem;
  line-height: 1.05;
  text-transform: uppercase;
  transform: rotate(8deg);
  box-shadow: 4px 4px 0 rgba(22,19,15,0.85);
}
.hero-stamp small {
  font-family: var(--ui);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  display: block;
}

/* ---------- marquee strip ---------- */
.strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--rule);
  padding: 0.85rem 0;
  overflow: hidden;
}
.strip .track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marq 26s linear infinite;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.strip .track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.strip .track .sep { color: var(--ochre); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   Section framing
   ===================================================================== */
.section {
  padding: 5rem 0;
  border-bottom: var(--rule);
  position: relative;
}
.section-head {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
  margin-bottom: 2.5rem;
}
.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.section .sub { font-size: 1.1rem; color: var(--smoke); max-width: 44rem; }

/* =====================================================================
   Works gallery
   ===================================================================== */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  border: var(--rule);
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(22,19,15,0.85);
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 rgba(22,19,15,0.85); }
.card .thumb {
  aspect-ratio: 4 / 4.6;
  border-bottom: var(--rule);
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.card .thumb svg { width: 100%; height: 100%; }
.card .body { padding: 1.1rem 1.2rem 1.3rem; }
.card .tag {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--cobalt);
  padding: 0.2rem 0.55rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card .meta { color: var(--smoke); font-size: 0.95rem; }
.card .price {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.8rem;
}
.card .btn { margin-top: 0.9rem; align-self: flex-start; }

/* =====================================================================
   Manifesto / about
   ===================================================================== */
.about {
  background: var(--cobalt);
  color: var(--paper);
  border-bottom: var(--rule);
}
.about .kicker { color: var(--ochre); }
.about .kicker::before { background: var(--ochre); }
.about h2 { color: var(--paper); }
.about .sub { color: var(--bone); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { font-size: 1.12rem; max-width: 40rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  border: 2px solid var(--paper);
  padding: 1rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.stat .n {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--ochre);
  line-height: 1;
}
.stat .l { font-family: var(--ui); font-size: 0.82rem; letter-spacing: 0.05em; color: var(--bone); }
.about-art {
  border: 2px solid var(--paper);
  background: var(--cobalt-dk);
  box-shadow: 8px 8px 0 rgba(22,19,15,0.6);
  transform: rotate(-1.5deg);
}
.about-art svg { width: 100%; height: auto; }

/* =====================================================================
   Visit / CTA
   ===================================================================== */
.visit {
  background: var(--paper);
  border-bottom: var(--rule);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.visit-panel {
  border: var(--rule);
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(22,19,15,0.85);
  padding: 1.8rem;
}
.visit-panel h3 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 0.4rem; text-transform: uppercase; }
.visit-panel p { margin: 0.3rem 0; color: var(--ink); }
.visit-panel .eyebrow { color: var(--terracotta); }
.visit-panel .hours { list-style: none; margin: 0.8rem 0 0; padding: 0; color: var(--smoke); font-size: 0.95rem; }
.visit-panel .hours li { padding: 0.35rem 0; border-bottom: 1px dashed var(--smoke); }
.visit-panel .hours li b { color: var(--ink); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .brand { color: var(--paper); margin-bottom: 0.6rem; }
.site-footer .note { color: var(--bone); max-width: 26rem; font-size: 0.95rem; }
.site-footer h4 {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul a { color: var(--paper); text-decoration: none; }
.site-footer ul a:hover { color: var(--ochre); }
.site-footer ul li { padding: 0.2rem 0; font-family: var(--ui); font-size: 0.95rem; }
.footer-legal {
  border-top: 1px solid rgba(244,235,220,0.25);
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--bone);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: auto; padding: 3rem 0; }
  .hero-art { order: -1; max-width: 460px; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav ul { display: none; }
  .nav-cta { display: none; }
  .works { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-stamp { width: 104px; height: 104px; font-size: 0.8rem; right: -6px; bottom: -16px; }
  body { font-size: 1rem; }
}
@media (max-width: 460px) {
  .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip .track { animation: none; }
  .card, .btn, .hero-art .frame { transition: none; transform: none; }
}
