/* ============================================================
   Hayaat Art Cafe — "حياة, painted on wet paper"
   A watercolour homepage. Pigment blooms onto warm paper as
   you scroll; the Arabic word for life paints itself on.

   Palette + type sampled from Hayaat's own brand:
   the rust sign, the calligraphic ب/logo mark, the
   watercolour illustrations, the cardamom-coffee warmth.
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
:root {
  /* Pigments */
  --paper:        #F4EAD9;
  --paper-deep:   #EADAC0;
  --paper-edge:   #E2CBA6;
  --ink:          #2A2019;
  --ink-soft:     #5C4A39;
  --ink-faint:    #8A7660;

  --terracotta:   #C0562B;
  --terracotta-d: #9A3E1B;
  --saffron:      #E2A33C;
  --sage:         #7E8E4E;
  --sage-d:       #4E6138;
  --teal:         #2E5B54;
  --mulberry:     #8E4B67;

  /* Type */
  --serif:  "Newsreader", Georgia, serif;
  --sans:   "Hanken Grotesk", system-ui, sans-serif;
  --hand:   "Caveat", cursive;
  --arabic: "Amiri", serif;

  /* Rhythm */
  --edge: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;
}

/* ---- Reset-ish --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.55rem + 0.7vw, 1.18rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ============================================================
   PAPER — the surface everything is painted on.
   A warm, unevenly-lit sheet with a fibrous grain that never
   scrolls, so the whole page feels like one continuous sheet.
   ============================================================ */
.paper-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 15% 8%,  #FBF3E6 0%, transparent 55%),
    radial-gradient(120% 90% at 90% 100%, #EAD6B8 0%, transparent 60%),
    linear-gradient(160deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  filter: url(#paperGrain);
  background: #d9c3a0;
}
/* soft torn edge vignette so the sheet has borders */
.paper-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 min(14vw, 180px) rgba(120, 88, 52, 0.20);
}

/* ============================================================
   WASHES — pigment pooling. Each .wash is a blurred colour
   blob run through an SVG displacement filter so its edges
   bleed like wet paint instead of a clean gradient.
   ============================================================ */
.wash {
  position: absolute;
  border-radius: 50%;
  filter: url(#bleed) blur(14px);
  mix-blend-mode: multiply;
  opacity: 0.8;
  pointer-events: none;
  will-change: transform;
}
.wash--terracotta { background: radial-gradient(circle at 40% 38%, var(--terracotta) 0%, rgba(192,86,43,0.05) 70%); }
.wash--saffron    { background: radial-gradient(circle at 45% 40%, var(--saffron)   0%, rgba(226,163,60,0.04) 70%); }
.wash--sage       { background: radial-gradient(circle at 42% 44%, var(--sage)      0%, rgba(126,142,78,0.05) 70%); }
.wash--teal       { background: radial-gradient(circle at 44% 42%, var(--teal)      0%, rgba(46,91,84,0.05) 70%); }
.wash--mulberry   { background: radial-gradient(circle at 44% 42%, var(--mulberry)  0%, rgba(142,75,103,0.05) 70%); }

/* ============================================================
   NAV — a hand-lettered strip. Stays out of the paint.
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--edge);
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
}
.brandmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brandmark .ar { font-family: var(--arabic); font-size: 1.5rem; color: var(--terracotta-d); }
.topnav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.topnav a {
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 40%;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.7;
  filter: url(#bleed);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}
.topnav a:hover::after, .topnav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 720px) { .topnav { display: none; } }

/* ============================================================
   HERO — the moment the pigment hits the page.
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--edge) 4rem;
  overflow: hidden;
}
.hero-blooms { position: absolute; inset: 0; z-index: 0; }
.hero-blooms .wash { opacity: 0.6; }

.hero-inner { position: relative; z-index: 2; max-width: 30ch; }
.hero-eyebrow {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--terracotta-d);
  transform: rotate(-2.5deg);
  margin: 0 0 0.4rem;
}
.hero-ar {
  font-family: var(--arabic);
  font-size: clamp(4.5rem, 17vw, 13rem);
  line-height: 0.9;
  color: var(--terracotta);
  margin: 0;
  /* the "self-painting" brush reveal is applied via mask + JS */
  -webkit-mask: linear-gradient(105deg, #000 0 var(--paint, 0%), transparent var(--paint, 0%));
          mask: linear-gradient(105deg, #000 0 var(--paint, 0%), transparent var(--paint, 0%));
}
.hero-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.1rem 0 0.6rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta-d);
}
.hero-title .word { display: inline-block; }
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0.6rem auto 0;
  line-height: 1.55;
}
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hero-cue svg { width: 22px; animation: drip 2.4s ease-in-out infinite; }
@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ============================================================
   SECTION scaffolding + brushstroke dividers
   ============================================================ */
.section { position: relative; padding: clamp(4rem, 11vw, 9rem) var(--edge); }
.section-head { max-width: 46ch; margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--terracotta-d);
  transform: rotate(-1.5deg);
  margin: 0 0 0.2rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title em { font-style: italic; color: var(--terracotta-d); }
.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 1rem 0 0;
}

/* draw-on brushstroke divider */
.brush-divider { display: block; width: 100%; height: clamp(40px, 7vw, 90px); overflow: visible; }
.brush-divider path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* reveal helper — brush-wipe from left, set up for GSAP/CSS */
.reveal {
  opacity: 0;
  transform: translateY(26px);
}
.is-revealed .reveal, .reveal.is-revealed { opacity: 1; transform: none; }

/* ============================================================
   NOW SHOWING — a framed painting hung on the paper
   ============================================================ */
.showing { position: relative; }
.showing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .showing-grid { grid-template-columns: 1fr; } }

.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: clamp(0.8rem, 1.6vw, 1.4rem);
  background:
    linear-gradient(145deg, #f7efe1, #e6d2b4);
  border-radius: 3px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(70, 45, 20, 0.55),
    0 4px 14px -6px rgba(70, 45, 20, 0.35);
  transform: rotate(-1.2deg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.frame:hover { transform: rotate(-0.4deg) translateY(-4px); }
.frame-canvas {
  position: relative;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 20%, #b7c07a, transparent 55%),
    radial-gradient(120% 120% at 80% 90%, #2f5d57, transparent 60%),
    linear-gradient(150deg, var(--sage) 0%, var(--sage-d) 55%, var(--teal) 100%);
  filter: saturate(1.05);
}
.frame-canvas::after {
  /* ink threads over the wash, echoing "Threads of the City" */
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(58deg, rgba(20,30,25,0.16) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-52deg, rgba(20,30,25,0.10) 0 1px, transparent 1px 22px);
  mix-blend-mode: multiply;
}
.frame-plate {
  position: absolute;
  left: 50%; bottom: -1.4rem;
  transform: translateX(-50%);
  background: #cbb185;
  color: #3a2c18;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  box-shadow: 0 3px 8px -3px rgba(70,45,20,0.5);
  white-space: nowrap;
}
.showing-meta .kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  margin: 0 0 0.6rem;
}
.showing-meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 0.3rem;
}
.showing-meta .by { font-family: var(--hand); font-size: 1.5rem; color: var(--ink-soft); margin: 0 0 1rem; }
.showing-meta p { color: var(--ink-soft); max-width: 40ch; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.8rem;
  border: 1.5px solid var(--ink-faint);
  border-radius: 20px;
  color: var(--ink-soft);
}

/* ============================================================
   THE BAR — a painted still-life menu
   ============================================================ */
.bar { position: relative; }
.bar-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1rem;
}
@media (max-width: 760px) { .bar-cols { grid-template-columns: 1fr; } }
.bar-col h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 0.9rem;
  color: var(--terracotta-d);
  position: relative;
  padding-bottom: 0.4rem;
}
.bar-col h3::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 3.2rem; height: 8px;
  background: var(--saffron);
  border-radius: 40%;
  filter: url(#bleed);
  opacity: 0.7;
}
.bar-col ul { list-style: none; margin: 0; padding: 0; }
.bar-col li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(90,74,57,0.28);
}
.bar-col li span:first-child { color: var(--ink); }
.bar-col li .price { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.bar-col li em { font-style: italic; color: var(--terracotta-d); }
.bar-note { font-family: var(--hand); font-size: 1.4rem; color: var(--ink-soft); margin-top: 1.8rem; }

/* ============================================================
   MARQUEE — a running band of what the room is
   ============================================================ */
.ribbon {
  position: relative;
  padding: 1.4rem 0;
  overflow: hidden;
  border-top: 2px solid rgba(90,74,57,0.25);
  border-bottom: 2px solid rgba(90,74,57,0.25);
  background: rgba(226,163,60,0.10);
}
.ribbon-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
}
.ribbon-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--ink-soft);
  white-space: nowrap;
}
.ribbon-track .dot { color: var(--terracotta); font-style: normal; }

/* ============================================================
   THIS WEEK — a hand-kept calendar
   ============================================================ */
.week-list { list-style: none; margin: 0; padding: 0; }
.week-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1rem, 2.4vw, 1.6rem) 0;
  border-top: 1px solid rgba(90,74,57,0.25);
}
.week-item:last-child { border-bottom: 1px solid rgba(90,74,57,0.25); }
@media (max-width: 640px) {
  .week-item { grid-template-columns: 1fr; gap: 0.2rem; }
}
.week-date { font-family: var(--serif); font-size: 1.05rem; color: var(--terracotta-d); }
.week-date b { display: block; font-size: 1.9rem; font-weight: 500; line-height: 1; }
.week-main h4 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 0 0 0.15rem; }
.week-main p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 46ch; }
.week-when { font-size: 0.9rem; color: var(--ink-faint); letter-spacing: 0.04em; white-space: nowrap; }

/* ============================================================
   THE WORD — حياة paints itself, big
   ============================================================ */
.word-life {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 14vw, 11rem) var(--edge);
  overflow: hidden;
}
.word-life .wash { opacity: 0.5; }
.life-ar {
  font-family: var(--arabic);
  font-size: clamp(5rem, 19vw, 15rem);
  line-height: 0.9;
  color: var(--terracotta);
  margin: 0;
  position: relative;
  z-index: 2;
  -webkit-mask: linear-gradient(100deg, #000 0 var(--paint, 0%), transparent var(--paint, 0%));
          mask: linear-gradient(100deg, #000 0 var(--paint, 0%), transparent var(--paint, 0%));
}
.life-caption {
  position: relative;
  z-index: 2;
  max-width: 40ch;
  margin: 1.5rem auto 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--ink-soft);
}
.life-caption b { color: var(--ink); font-weight: 600; }

/* ============================================================
   OPEN CALL — an empty frame
   ============================================================ */
.opencall-frame {
  border: 2.5px dashed var(--terracotta);
  border-radius: 4px;
  padding: clamp(2.5rem, 7vw, 5rem);
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
  position: relative;
}
.opencall-frame::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(192,86,43,0.4);
  border-radius: 3px;
  pointer-events: none;
}
.opencall-frame h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin: 0 0 0.6rem;
}
.opencall-frame p { color: var(--ink-soft); margin: 0 auto 1.6rem; max-width: 40ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 40px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--terracotta);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--fill { background: var(--terracotta); color: #fdf4e6; }
.btn--fill:hover { transform: translateY(-2px); background: var(--terracotta-d); }
.btn--ghost { background: transparent; color: var(--terracotta-d); }
.btn--ghost:hover { background: rgba(192,86,43,0.1); transform: translateY(-2px); }

/* ============================================================
   FOOTER / VISIT
   ============================================================ */
.visit {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--edge) 3rem;
  background: linear-gradient(180deg, transparent, rgba(46,91,84,0.10));
}
.visit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }
.visit h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  margin: 0 0 0.4rem;
}
.visit .addr { font-size: 1.2rem; color: var(--ink-soft); margin: 0; }
.visit-facts { display: grid; gap: 1.2rem; }
.visit-facts dt { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta-d); margin-bottom: 0.2rem; }
.visit-facts dd { margin: 0; color: var(--ink); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(90,74,57,0.3);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-base .ar { font-family: var(--arabic); color: var(--terracotta-d); }

/* ============================================================
   MOTION SAFETY — everything visible, nothing moving.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-ar, .life-ar { -webkit-mask: none; mask: none; }
  .hero-cue svg { animation: none; }
  .wash { opacity: 0.55; }
}

/* fonts loading guard — avoid flash of unstyled masked text */
.no-paint .hero-ar, .no-paint .life-ar { -webkit-mask: none; mask: none; }


/* ============================================================
   Reevozign portfolio demo layer — added for the iPad showcase
   build only. Not part of the client deliverable.
   ============================================================ */

/* Unfilled-fact markers are hidden in the demo; the sentences
   they annotate read correctly without them. */
.confirm { display: none !important; }

/* Offline-safe map: the styled address card sits underneath and
   is revealed whenever the Google embed cannot load. */
.map-embed { position: relative; }
.map-embed .map-offline {
  display: flex; flex-direction: column; gap: .5rem;
  align-items: center; justify-content: center; text-align: center;
  min-height: 320px; padding: 1.5rem;
  background:
    repeating-linear-gradient(0deg,  rgba(0,0,0,.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.045) 0 1px, transparent 1px 34px),
    var(--paper-2, #f3efe9);
  color: inherit;
}
.map-embed .map-offline svg { opacity: .8; }
.map-embed .map-offline b { font-size: 1.05rem; }
.map-embed .map-offline span { opacity: .72; font-size: .92rem; line-height: 1.5; }
.map-embed iframe { position: relative; z-index: 1; }

/* Discreet return-to-portfolio control (demo chrome). */
#rvz-back {
  position: fixed; z-index: 2147483000;
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .95rem .6rem .8rem;
  font: 600 14px/1 ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em; text-decoration: none;
  color: #fff; background: rgba(24,24,27,.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0,0,0,.26);
  opacity: .5; transition: opacity .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
#rvz-back:hover, #rvz-back:focus-visible { opacity: 1; transform: translateY(-1px); }
#rvz-back:active { opacity: 1; transform: scale(.97); }
@media (hover: none) { #rvz-back { opacity: .72; } }
@media print { #rvz-back { display: none; } }



