/* ============================================================
   Drawell — marketing site
   Dark museum aesthetic: wall rgb(0.12,0.11,0.10), warm cream
   Layout per Website mockup: hero wall / how (light) / styles
   wall / bench ending / footer
   ============================================================ */

:root {
  --wall: #1f1c1a;            /* rgb(0.12, 0.11, 0.10) */
  --wall-deep: #131110;
  --gold: #c2ad80;            /* rgb(0.76, 0.68, 0.50) */
  --cream: #e8e2d4;
  --text: #d9d2c4;
  --text-dim: #a49a8b;
  --light-wall: #c9c4ba;      /* "how" section wall */
  --light-ink: #2b2925;
  --serif: "Palatino", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--wall-deep);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 36px; }

/* archival paper grain over the dark walls (SVG turbulence, very low opacity) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: #ece5d6;
}
.display em { font-style: italic; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 13, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 66px;
}

.brand {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  justify-self: center;
  padding: 0 34px;
}

.site-nav { display: flex; gap: 30px; }
.site-nav--left { justify-self: start; }
.site-nav--right { justify-self: end; }
.site-nav a {
  color: #b8b0a2;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--cream); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #1c1a17;
  background: var(--cream);
  padding: 12px 22px;
  border: 1px solid var(--cream);
  border-radius: 3px;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: transparent; color: var(--cream); }
.btn__glyph { margin-left: 10px; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(232, 226, 212, 0.45);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(232, 226, 212, 0.06); }

/* ---------------- artwork frames ---------------- */
.artframe {
  background: #0c0a09;
  border: 7px solid #0c0a09;
  outline: 1px solid rgba(214, 196, 158, 0.28);
  outline-offset: -8px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6), 0 -26px 46px -20px rgba(220, 198, 160, 0.1);
}
.artframe img { display: block; width: 100%; height: auto; }

/* ---------------- stage: fixed 1280px "wall" compositions ----------------
   Each wall section is laid out at a fixed 1280px design width — exactly like
   the Paper artboard — and the whole composition scales as one unit, so
   nothing ever reflows. Under 720px we fall back to the stacked layout. */
.stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
}
.stage__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  transform-origin: top left;
  transform: scale(calc(100cqw / 1280px));
}
.hero.stage   { aspect-ratio: 1280 / 760; }
.how.stage    { aspect-ratio: 1280 / 703; }
.styles.stage { aspect-ratio: 1280 / 620; }

/* ---------------- hero ---------------- */
.stage__inner--hero {
  position: relative;
  height: 760px;
  display: flex;
  align-items: center;
  background: var(--wall-deep) url("Hero.png") center / cover no-repeat;
  padding: 30px 0 90px;
  box-sizing: border-box;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  /* keep the composition inside the photographed wall (≈ x 81–1195 of 1280),
     clear of the side corridors */
  max-width: 1100px;
}

.hero__copy .display {
  font-size: 74px;
  line-height: 1.02;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.hero__sub {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  color: #ddd5c6;
  margin-bottom: 40px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__fine {
  margin-top: 64px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.hero__art { padding: 0 8px; }
.artframe--hero {
  border-width: 10px;
  transform: translateY(-8px);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.7), 0 -40px 70px -24px rgba(224, 202, 162, 0.14);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 42px;
  max-width: 300px;
  justify-self: end;
}

.hero__note-head {
  font-size: 15px;
  font-weight: 600;
  color: #e6dfd0;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.hero__note-rule {
  display: block;
  width: 44px;
  height: 1px;
  background: rgba(214, 196, 158, 0.5);
  margin: 16px 0;
}

.hero__note-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.placard {
  background: linear-gradient(160deg, #211e1b, #171412);
  border: 1px solid rgba(214, 196, 158, 0.22);
  border-radius: 3px;
  padding: 2px 13px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  align-self: stretch;
}

.placard__head {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 9px 2px 7px;
  border-bottom: 1px solid rgba(214, 196, 158, 0.14);
}

.placard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px;
  font-size: 12px;
  border-bottom: 1px solid rgba(214, 196, 158, 0.14);
}
.placard__row:last-child { border-bottom: none; }
.placard__key { color: #cfc7b8; }
.placard__val { color: var(--text-dim); text-align: right; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.hero__scroll:hover { color: var(--cream); }
.hero__chevron { font-size: 20px; line-height: 0.6; animation: bob 2.4s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------------- how it becomes a piece ---------------- */
.stage__inner--how {
  background: linear-gradient(to bottom, #100e0d, #1e1b18 42%, #131110);
  padding: 90px 0 100px;
  border-top: 1px solid rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

.how__head {
  font-size: 42px;
  text-align: center;
  margin-bottom: 78px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
}

.how-step { text-align: center; position: relative; }

/* dashed connectors between the steps */
.how-step + .how-step::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 96px;
  width: 38px;
  border-top: 1px dashed rgba(201, 183, 137, 0.45);
}
.how-step + .how-step::after {
  content: "\2192";
  position: absolute;
  left: -16px;
  top: 85px;
  color: rgba(201, 183, 137, 0.65);
  font-size: 13px;
}

.how-step__num {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: #8f8574;
  margin-bottom: 20px;
}

.how-frame {
  position: relative;
  background: #131010;
  border: 5px solid #070606;
  outline: 1px solid rgba(201, 183, 137, 0.35);
  outline-offset: -8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 -24px 40px -18px rgba(224, 202, 162, 0.09);
  margin: 0 auto 28px;
  max-width: 150px;
}
.how-frame svg { display: block; width: 100%; height: auto; }

/* faint spotlight pool above each frame */
.how-frame::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -40px;
  height: 40px;
  background: radial-gradient(ellipse at 50% 100%, rgba(228, 205, 160, 0.12), transparent 72%);
  pointer-events: none;
}

.how-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  color: #ece5d6;
  margin-bottom: 12px;
}

.how-step p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 220px;
  margin: 0 auto;
}

/* ---------------- different materials, same traces ---------------- */
.stage__inner--styles {
  height: 620px;
  display: flex;
  align-items: center;
  background: var(--wall) url("Styles.png") center / cover no-repeat;
  position: relative;
  box-sizing: border-box;
}
.stage__inner--styles::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(19, 17, 16, 0.55), transparent 40%);
  pointer-events: none;
}

.styles__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.styles__copy h2 {
  font-size: 33px;
  line-height: 1.25;
  margin-bottom: 26px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.7);
}
.styles__copy em { color: var(--gold); }

.styles__copy p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.styles__viewport { position: relative; min-width: 0; }

.styles__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 22px;
  overflow-x: auto;
  /* generous top/bottom room so the frame glow + drop shadow never clip */
  padding: 56px 34px 66px;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* hide scrollbar — arrows are the affordance */
  -ms-overflow-style: none;
  /* soft-fade the left/right edges so cards (and their shadows) dissolve
     at the scroll boundary instead of hard-cutting */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}
.styles__row::-webkit-scrollbar { display: none; }

/* carousel arrows */
.styles__arrow {
  position: absolute;
  top: 102px;                       /* centered on the framed row */
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(214, 196, 158, 0.55);
  background: rgba(16, 13, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s ease, background 0.25s ease, transform 0.2s ease;
}
.styles__arrow:hover { background: rgba(28, 23, 18, 0.92); transform: scale(1.06); }
.styles__arrow--left { left: -12px; }
.styles__arrow--right { right: -12px; }
.styles__arrow[hidden] { opacity: 0; pointer-events: none; }

/* "Stay tuned" placeholder card */
.stylecard--soon .artframe--soon {
  border-color: #0c0a09;
  background: #100d0b;
}
.artframe--soon .soon {
  aspect-ratio: 280 / 160;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(214, 196, 158, 0.45);
  outline: none;
}
.soon__plus {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}
.soon__text {
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-align: center;
}

.stylecard { text-align: center; }

.stylecard .artframe {
  border-width: 5px;
  transition: transform 0.35s ease;
}

/* frames hang level; a gentle lift on hover */
.stylecard:hover .artframe { transform: translateY(-6px); }

.artframe--hero { transition: transform 0.4s ease; }
.hero__art:hover .artframe--hero { transform: translateY(-8px); }

/* spotlight pool above each frame */
.stylecard .artframe {
  position: relative;
}
.stylecard .artframe::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -42px;
  height: 42px;
  background: radial-gradient(ellipse at 50% 100%, rgba(228, 205, 160, 0.16), transparent 72%);
  pointer-events: none;
}

.stylecard figcaption {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #cfc7b8;
  background: rgba(24, 21, 19, 0.85);
  border: 1px solid rgba(214, 196, 158, 0.24);
  border-radius: 2px;
  padding: 5px 12px;
}

/* ---------------- ending: the bench ---------------- */
.ending {
  background: var(--wall-deep) url("Ending.png") center / cover no-repeat;
  min-height: 96vh;
  display: flex;
  align-items: flex-start;
  padding-top: 13vh;
  position: relative;
}
.ending::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(19, 17, 16, 0.7), transparent);
}

.ending__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.ending__copy .display {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.22;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.65);
}

.ending__aside {
  max-width: 400px;
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ending__aside p {
  font-size: 14px;
  color: #cfc7b8;
  line-height: 1.8;
  margin-bottom: 22px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.ending__aside .btn { margin-top: 6px; }

.ending__fine {
  margin-top: 16px;
  font-size: 12px !important;
  color: var(--text-dim) !important;
}

/* ---------------- footer ---------------- */
.site-footer {
  background: #0c0a09;
  border-top: 1px solid rgba(194, 173, 128, 0.12);
  padding: 64px 0 28px;
  overflow: hidden;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}

.footer__col h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  color: #948b7c;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--cream); }

.footer__col--note p {
  font-size: 13px;
  line-height: 1.7;
  color: #6f665a;
  max-width: 220px;
}

/* the museum wordmark: enormous, engraved into the wall */
.footer__wordmark {
  font-family: var(--serif);
  font-size: clamp(90px, 14vw, 190px);
  line-height: 0.9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(194, 173, 128, 0.22);
  letter-spacing: 0.06em;
  user-select: none;
  margin-bottom: 40px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(194, 173, 128, 0.1);
  padding-top: 24px;
}

.footer__copy { font-size: 12.5px; color: #6f665a; }
.footer__tag { font-size: 12.5px; color: #6f665a; letter-spacing: 0.04em; }

.footer__mark {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ---------------- sub-pages (privacy / about / faq) ---------------- */
.page-hero {
  background: linear-gradient(to bottom, #100e0d, #1d1a17);
  padding: 88px 0 64px;
  text-align: center;
  border-bottom: 1px solid rgba(194, 173, 128, 0.12);
}
.page-hero .display { font-size: clamp(34px, 4vw, 52px); }
.page-hero .eyebrow-line {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 36px 110px;
}

.page-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: #ece5d6;
  margin: 48px 0 16px;
}
.page-body h2:first-child { margin-top: 0; }

.page-body p, .page-body li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px;
}
.page-body ul { padding-left: 20px; margin-bottom: 18px; }
.page-body strong { color: #ece5d6; font-weight: 600; }
.page-body .muted { color: var(--text-dim); font-size: 13.5px; }

/* faq entries */
.faq-item { border-top: 1px solid rgba(194, 173, 128, 0.16); padding: 26px 0 12px; }
.faq-item:last-child { border-bottom: 1px solid rgba(194, 173, 128, 0.16); }
.faq-item h2 { margin: 0 0 12px; font-size: 20px; }
.faq-item h2::before { display: none; }

.page-back {
  display: inline-block;
  margin-top: 48px;
  color: var(--gold);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.page-back:hover { text-decoration: underline; }

/* ---------------- reveal on scroll ---------------- */
/* Fail-safe: content is visible by default. JS "arms" each element (hides it)
   only after confirming it can run, then reveals it on scroll. If the script
   ever fails to load/parse, nothing gets armed and all content stays visible. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-armed { opacity: 0; transform: translateY(22px); }
.reveal.is-armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-armed { opacity: 1; transform: none; transition: none; }
  .hero__chevron { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ----------------
   720px+ : the stage scales the fixed 1280px composition — no reflow.
   <720px : the stage is switched off and content stacks for small screens. */
@media (max-width: 720px) {
  .stage { aspect-ratio: auto; container-type: normal; overflow: visible; }
  .stage__inner {
    position: static;
    width: auto;
    height: auto;
    transform: none !important;
  }
  .stage__inner--hero { padding: 60px 0 96px; }
  .stage__inner--styles { padding: 90px 0 100px; }

  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .brand { padding: 0 16px; }
  .hero__copy .display { font-size: 56px; }
  .hero__sub { font-size: 20px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__aside { flex-direction: column; align-items: stretch; max-width: none; justify-self: stretch; }
  .hero__fine { margin-top: 28px; }
  .how__head { font-size: 32px; }
  .how__grid { grid-template-columns: 1fr; gap: 48px; max-width: 320px; width: auto; margin: 0 auto; }
  .how-step + .how-step::before,
  .how-step + .how-step::after { display: none; }
  .styles__grid { grid-template-columns: 1fr; gap: 32px; }
  .styles__copy h2 { font-size: 28px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .ending__aside { margin-top: 40px; }
}
