:root{
  --bg:#0b0f14;
  --paper:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f6f7f9;
  --brand:#ef4444;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.5;
}

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

.wrap{ max-width:var(--max); margin:0 auto; padding:0 20px; }

.skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{ left:20px; top:20px; width:auto; height:auto; padding:10px 12px; background:#fff; border-radius:10px; box-shadow:var(--shadow); z-index:1000; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(229,231,235,.75);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.nav{ display:flex; gap:18px; flex-wrap:wrap; }
.nav a{ font-size:14px; color:#111827; opacity:.85; }
.nav a:hover{ opacity:1; }

/* Hero */
.hero{
  position:relative;
  min-height:84vh;
  display:grid;
  align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(11,15,20,.78) 0%, rgba(11,15,20,.55) 52%, rgba(11,15,20,.22) 100%),
    url('images/the-open-book-on-a-pile-from-books--1536x1005.jpg') center/cover no-repeat;
  transform:scale(1.03);
}
.hero-inner{ position:relative; padding:56px 0; }
.eyebrow{ color:rgba(255,255,255,.75); margin:0 0 10px; letter-spacing:.12em; text-transform:uppercase; font-size:12px; }
.hero h1{
  color:#fff;
  margin:0 0 18px;
  font-weight:600;
  font-size:clamp(30px, 4vw, 52px);
  line-height:1.12;
  max-width:18ch;
}
.hero h1 span{ color:rgba(255,255,255,.85); font-weight:500; }
.hero-cta{ display:flex; align-items:flex-start; gap:18px; flex-wrap:wrap; }
.hero-note{ margin:10px 0 0; color:rgba(255,255,255,.72); max-width:52ch; font-size:14px; }

/* Buttons / links */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background:var(--brand);
  color:white;
  border:1px solid rgba(255,255,255,.0);
  font-weight:600;
  box-shadow: 0 10px 20px rgba(239,68,68,.18);
}
.btn:hover{ filter:brightness(.97); }
.btn:active{ transform:translateY(1px); }
.btn-ghost{
  background:transparent;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn-ghost:hover{ background:var(--soft); }
.link{ color:var(--brand); font-weight:600; }
.link:hover{ text-decoration:underline; }

/* Sections */
.section{ padding:72px 0; }
/* .section-alt{ background:linear-gradient(180deg, #fafafa 0%, #ffffff 100%); } */
.section-alt {
    /* background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%); */
    background-color: #ffffff;
}
.section-grey {
      background-color: #fafafa !important;
}
.section-dark{ background:radial-gradient(1200px 600px at 30% 0%, rgba(255,255,255,.07), transparent), var(--bg); color:#fff; }
.section-dark .lede, .section-dark .muted{ color:rgba(255,255,255,.75); }
.contact-lede{ color:#16a34a; }

.section-head{ max-width:720px; margin:0 0 26px; }
.kicker{ margin:0 0 10px; color:var(--brand); letter-spacing:.14em; text-transform:uppercase; font-size:12px; font-weight:700; }
.section h2{ margin:0 0 10px; font-size:clamp(22px, 2.4vw, 34px); line-height:1.2; }
.lede{ margin:0; color:var(--muted); font-size:16px; }
.muted{ color:var(--muted); font-size:14px; }
.section-actions{ margin-top:18px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }

/* Layout helpers */
.grid{ display:grid; gap:18px; }
.cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.04);
}
.card img{ width:100%; height:260px; object-fit:cover; background:#f3f4f6; }
.card-body{ padding:16px; }
.card-body h3{ margin:0 0 6px; font-size:18px; }
.card-body p{ margin:0 0 14px; color:var(--muted); font-size:14px; }

/* Events */
.event{ display:flex; flex-direction:column; }
.event-meta{
  display:flex; gap:10px; align-items:center; justify-content:flex-start;
  padding:14px 16px 0;
}
.date{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:700;
  font-size:13px;
}
.tag{ color:var(--muted); font-size:13px; }

/* Tiles (art) */
.tiles{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile{
  position:relative;
  min-height:220px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background-position:center;
  background-size:cover;
  overflow:hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.04);
  transform: translateY(0);
  transition: transform 200ms ease;
}

.tile:hover{ transform:translateY(-1px); }

/* Readability overlay (shadow) */
.tile::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.40) 0%,
    rgba(0,0,0,0.28) 45%,
    rgba(0,0,0,0.55) 100%
  );
  opacity: 0.88;
  transition: opacity 300ms ease;
}

.tile::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 -90px 130px rgba(0,0,0,0.32);
  pointer-events:none;
}

.tile:hover::before{ opacity:0.74; }

.tile-inner{
  position:relative;
  z-index:1;
  padding:18px;
  max-width:42ch;
}

.tile-on-image h3{ color:#fff; margin:0 0 8px; font-size:18px; }
.tile-on-image p{ color:rgba(255,255,255,.86); margin:0 0 14px; font-size:14px; }

.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:600;
  font-size:13px;
}

.pill-on-image{
  color:#fff;
  border-color: rgba(255,255,255,0.38);
  background: rgba(0,0,0,0.24);
}

/* Background images per tile */
.tile-originalworks{ background-image:url("images/original.png"); }
.tile-ritual{ background-image:url("images/everyday.png"); }
.tile-wearable{ background-image:url("images/wearable.png"); }

/* Media */
.media{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.featured-story{
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.04);
}

.featured-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:center;
}

.featured-media img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#f3f4f6;
}

.featured-copy h3{ margin:0 0 8px; font-size:20px; }
.featured-copy p{ margin:0 0 14px; color:var(--muted); }

.subhead{
  margin: 26px 0 12px;
  font-size: 18px;
}

.video-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.04);
}

.video-thumb img{
  width:100%;
  height:220px;
  object-fit:cover;
  background:#f3f4f6;
}

.video-body{ padding:16px; }
.video-body h4{ margin:0 0 6px; font-size:16px; }
.video-body p{ margin:0 0 14px; color:var(--muted); font-size:14px; }

.video-card:hover{ transform: translateY(-1px); transition: transform 200ms ease; }


/* About */
.about{ display:grid; grid-template-columns: 1fr 1.1fr; gap:22px; align-items:center; }
.about-image{
  border-radius:var(--radius);
  min-height:320px;
  background:
    linear-gradient(180deg, rgba(11,15,20,.25), rgba(11,15,20,.05)),
    url('images/The Storyteller2.jpg') center/cover no-repeat;
  border:1px solid var(--line);
}

/* Forms */
.sr{ position:absolute; left:-999px; }
.form-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
input, textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  font-size:15px;
  outline:none;
}
.section-dark input{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); color:#fff; }
.section-dark input::placeholder{ color:rgba(255,255,255,.65); }

.newsletter{ text-align:center; max-width:760px; }
.newsletter .form-row{ justify-content:center; }
.newsletter input{ max-width:420px; }

.contact{ max-width:980px; }
.contact-form{ margin-top:18px; }
.form-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid .span-2{ grid-column: span 2; }
label{ display:block; margin:0 0 8px; font-weight:600; font-size:14px; }

/* Footer */
.site-footer{ padding:48px 0 26px; border-top:1px solid var(--line); background:#fff; }
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap:18px; }
.site-footer h3{ margin:0 0 10px; font-size:14px; letter-spacing:.02em; }
.site-footer a{ display:block; padding:4px 0; color:#111827; opacity:.82; font-size:14px; }
.site-footer a:hover{ opacity:1; }
.social{ display:flex; gap:10px; }
.social a{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; border:1px solid var(--line); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:18px; margin-top:18px; border-top:1px solid var(--line); flex-wrap:wrap; }

/* Responsive */
@media (max-width: 940px){
  .cards, .tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media{ grid-template-columns: 1fr; }
  .featured-inner{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .card img{ height:240px; }
}
@media (max-width: 600px){
  .nav{ gap:12px; }
  .cards, .tiles{ grid-template-columns: 1fr; }
  .hero{ min-height:78vh; }
  .hero h1{ max-width:22ch; }
  .form-grid{ grid-template-columns: 1fr; }
  .form-grid .span-2{ grid-column: auto; }
}


/* ================================
   Scroll reveal animations
================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }


/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ================================
   Hero background carousel
   (swap images by updating URLs below)
================================ */

.hero-carousel{
  position:absolute;
  inset:0;
  overflow:hidden;
}

.hero-slide{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:0;
  transform: scale(1.04);
  animation: heroFade 18s infinite;
  will-change: opacity, transform;
}

/* Pick 3+ images that fit the mood (books, studio, art) */
.hero-slide-1{ background-image:url("images/bg2.jpg"); animation-delay: 0s; }
.hero-slide-2{ background-image:url("images/bg3.jpg"); animation-delay: 6s; }
.hero-slide-3{ background-image:url("images/bg4.jpg"); animation-delay: 12s; }

/* Dark overlay to keep text readable */
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(11,15,20,.78) 0%, rgba(11,15,20,.55) 52%, rgba(11,15,20,.22) 100%);
}

@keyframes heroFade{
  0%   { opacity:0; transform: scale(1.04); }
  8%   { opacity:1; }
  33%  { opacity:1; transform: scale(1.08); }
  41%  { opacity:0; }
  100% { opacity:0; }
}

@media (prefers-reduced-motion: reduce){
  .hero-slide{ animation:none; opacity:0; }
  .hero-slide-1{ opacity:1; transform:none; }
}

