/* Design E "The Journey".
   Act one: a dot globe turns while six origins scroll past. Act two: one
   working day, hour by hour. Two print styles work together:
   - linocut for the big scene pictures (hand-carved feel, depth layers);
   - flat screen print for the page itself (sun, boat, birds, pattern bands),
     drawn by hand as small SVG files in assets/img/print-*.svg.
   Montserrat for display, Open Sans for reading. No gold.
   The print colours (terracotta, teal, red) sit outside the brand kit and
   need the manager's OK before anything goes live. */

:root {
  --bg: #f3eddf;              /* print paper */
  --surface: #fbf8f1;
  --ink: #141414;
  --ink-2: #2b2b2b;
  --olive: #4a5a2a;
  --olive-deep: #313d18;
  --terra: #b4532a;
  --teal: #2e6e6e;
  --red: #c63b2b;
  --line: rgba(20, 20, 20, .16);
  --accent: #4a5a2a;
  --cta-bg: #141414;
  --cta-ink: #ffffff;
  --field-bg: #ffffff;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --radius-ctl: 999px;
  --radius-chip: 999px;
  --card: 22px;
  --sec: clamp(72px, 9vw, 140px);
}

body { background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h2 { font-size: clamp(34px, 5vw, 72px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
h3 { font-size: 22px; font-weight: 750; line-height: 1.15; letter-spacing: -.015em; }
p { max-width: 64ch; }
.btn { font-weight: 700; padding-inline: 26px; }

/* ---------- Act one: hero and origins beside a sticky globe ---------- */
.journey { position: relative; overflow: clip; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.globe { width: min(44vw, 640px); height: auto; aspect-ratio: 1; }

.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-block: 48px; }
.hero-kicker { font: 700 15px/1.3 var(--font-display); color: var(--olive-deep); letter-spacing: .02em; text-transform: uppercase; }
.hero h1 { position: relative; font-size: clamp(52px, 7.6vw, 124px); font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.hero-sub { font-size: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cue { font: 600 14px/1 var(--font-display); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.hero-cue::after { content: ""; width: 2px; height: 34px; background: var(--ink); }

/* flat print sun behind the headline; it climbs as the page moves */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset-inline-start: 46%; top: 14%;
  width: clamp(120px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--red);
}
/* flat print birds crossing the hero */
.hero::after {
  content: ""; position: absolute; z-index: -1; top: 3%; inset-inline-start: 0;
  width: 120px; height: 50px; background: url(/assets/img/print-birds.svg) no-repeat center / contain;
}

.origins-head { position: relative; padding-block: 40px 70px; }
.origins-head p { margin-block-start: 16px; font-size: 18px; }
/* a boat on a printed water line */
.origins-head::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 24px;
  background: url(/assets/img/print-wave.svg) repeat-x 0 0 / 120px 24px;
}
.origins-head::before {
  content: ""; position: absolute; bottom: 12px; inset-inline-start: 6%; width: 90px; height: 80px; z-index: 1;
  background: url(/assets/img/print-boat.svg) no-repeat center / contain;
}

.stop { min-height: 100vh; display: grid; align-content: center; gap: 30px; padding-block: 96px 6vh; }
.stop .depth { width: min(100%, 560px, calc((100svh - 400px) * .8)); min-width: 240px; }
.stop-text { position: relative; z-index: 2; max-width: 560px; padding: 22px 24px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--card); }
.stop-count { font: 700 14px/1 var(--font-display); color: var(--terra); letter-spacing: .08em; }
.stop-text h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; margin-block: 8px 10px; }
.stop-line { font-size: 17px; }
.stop-what { margin-block-start: 14px; padding-block-start: 12px; border-block-start: 1px solid var(--line); font-size: 15px; }
.stop-what strong { font-family: var(--font-display); margin-inline-end: 8px; }
.stop-end { margin-block-start: 12px; font: 700 17px/1.35 var(--font-display); color: var(--olive-deep); }

/* ---------- Depth figure: linocut back plate, transparent front layer ---------- */
.depth { position: relative; aspect-ratio: 4 / 5; max-width: 560px; width: 100%; }
.d-clip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--card); border: 2px solid var(--ink); background: #e8dfca; }
.d-back { width: 100%; height: 100%; object-fit: cover; }
/* a short silent video loop of the same picture, laid over the back plate on desktop (main.js adds it) */
.d-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease; }
.d-loop.on { opacity: 1; }
.d-front { position: absolute; inset-inline: -5%; bottom: -7%; width: 110%; height: auto; pointer-events: none;
  /* the leaves reach past the frame; fade their cut edges so no hard line shows outside it */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to top, transparent 0, #000 8%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to top, transparent 0, #000 8%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }

/* ---------- About ---------- */
.sec { padding-block: var(--sec); }
.sec-head { max-width: 900px; margin-block-end: clamp(28px, 4vw, 56px); }
.sec-head p { margin-block-start: 18px; font-size: 19px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-body > * + * { margin-block-start: 20px; }
.lead { font: 700 clamp(22px, 2.4vw, 32px)/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); max-width: 26ch; }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block-start: 32px !important; }
.proof li { padding: 18px 20px; background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); font-size: 16px; }
.proof strong { display: block; font: 800 21px/1.1 var(--font-display); letter-spacing: -.02em; }

/* ---------- Act two: the working day ---------- */
.day { position: relative; padding-block-start: calc(var(--sec) + 40px); }
/* rolling flat print band of leaves and fruit across the top of act two */
.day::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 64px;
  background: url(/assets/img/print-row.svg) repeat-x 0 0 / 160px 64px;
}
.chooser { padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--card); }
.chooser legend { float: inline-start; width: 100%; padding: 0; font: 800 26px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.chooser-lead { clear: both; padding-block: 8px 18px; }
.chip-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

.day-index { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-block-start: 28px; padding: 10px 14px; background: var(--bg); border: 2px solid var(--ink); border-radius: 999px; }
.day-index > p { font: 700 14px/1 var(--font-display); }
.day-index ol { display: flex; flex-wrap: wrap; gap: 6px; }
.day-index a { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  font: 600 15px/1 var(--font-display); color: var(--ink); text-decoration: none; }
.day-index a span { color: var(--olive-deep); font-weight: 800; }
.day-index a[aria-current="true"] { background: var(--ink); color: #fff; }
.day-index a[aria-current="true"] span { color: #fff; }

.hour { position: relative; padding-block: clamp(56px, 8vw, 120px); }
.hour-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hour-flip .depth { order: 2; }
.hour-time { position: absolute; z-index: -1; top: -.62em; inset-inline-end: 0; margin: 0;
  font: 800 clamp(90px, 16vw, 240px)/1 var(--font-display); letter-spacing: -.05em; color: #e4d9bf; }
.hour-flip .hour-time { inset-inline: 0 auto; }
.hour-kicker { font: 700 15px/1.3 var(--font-display); color: var(--olive-deep); letter-spacing: .02em; text-transform: uppercase; }
.hour-brand { display: flex; align-items: center; gap: 16px; margin-block: 14px; }
.hour-brand h3 { font-size: clamp(34px, 4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.brand-logo { height: 52px; width: auto; max-width: 150px; object-fit: contain; }
.brand-meta { font: 700 15px/1.3 var(--font-display); color: var(--ink-2); }
.hour-line { font-size: 18px; margin-block-end: 22px; }

.prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prods-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prods-lovins > li:first-child { grid-row: span 2; }
.hour-body { align-self: center; }
.hour .depth { justify-self: center; }
.prods { perspective: 1100px; }
.prods > li { transform-style: preserve-3d; transform: rotateX(calc(var(--my, 0) * -5deg)) rotateY(calc(var(--mx, 0) * 6deg));
  transition: transform 350ms cubic-bezier(.2, .8, .2, 1), box-shadow 350ms ease; display: flex; flex-direction: column; padding: 12px 12px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; }
.prods > li:has(.add-btn[aria-pressed="true"]) { box-shadow: 0 0 0 3px var(--olive); }
.lens { border-radius: 12px; overflow: hidden; background: var(--bg); aspect-ratio: 4 / 5; transform: translateZ(28px);
  box-shadow: 0 10px 22px -12px rgba(20, 20, 20, .45); transition: box-shadow 350ms ease; }
.lens img { transform: translate(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -6px)) scale(1.04); transition: transform 350ms cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .prods > li:hover { box-shadow: 0 26px 40px -24px rgba(20, 20, 20, .5); } .prods > li:hover .lens { box-shadow: 0 22px 34px -14px rgba(20, 20, 20, .55); } }
.lens img { width: 100%; height: 100%; object-fit: contain; }   /* contain: no product is ever cropped */
.prod-name { margin-block-start: 12px; font: 750 18px/1.2 var(--font-display); color: var(--ink); }
.prod-sub { font-size: 14.5px; }
.prods > li > .add-btn { margin-block-start: auto; align-self: flex-start; }
.prods > li > .prod-sub + .add-btn, .prods > li > .prod-name + .add-btn { margin-block-start: 12px; }
.prod-list .prod-name { margin-block-start: 0; }
.sku-list { margin-block-start: 6px; }
.sku-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 4px; border-block-end: 1px solid var(--line); font-size: 15px; }
.brand-note { font-size: 13.5px; margin-block-start: 12px; }

/* 06:30, joining soon (18 Nov 2026): Freddo, Murady, MYSO. No products to add yet, only "tell me first". */
.hour-soon .hour-body > h3 { margin-block: 14px; font-size: clamp(34px, 4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.soon-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-block-start: 20px; }
.soon-list > li { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; }
.soon-list .brand-logo { height: 44px; max-width: 130px; object-position: left center; }
.soon-list .logo-tile { display: inline-flex; align-items: center; height: 44px; padding: 6px 10px; background: #fff; border-radius: 8px; }
.soon-list .logo-tile .brand-logo { height: 30px; }
.soon-list .prod-sub { margin-block-end: 12px; }
.soon-list .add-btn { margin-block-start: auto; }
.tag-soon { display: inline-block; margin-inline-start: 6px; padding: 1px 9px; border-radius: 999px; background: #eaeedd; color: var(--olive-deep); font: 700 12px/1.6 var(--font-body); letter-spacing: .02em; vertical-align: 2px; }
.stop-what + .stop-what { margin-block-start: 0; padding-block-start: 6px; border-block-start: 0; }
.sku-detail li { align-items: flex-start; padding-block: 8px; }
.sku-detail small { display: block; margin-block-start: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.prod-list > .prod-sub { margin-block-start: 4px; }
.lang-link { font-family: "IBM Plex Sans Arabic", "Tajawal", var(--font-body); }

/* ---------- Services, events, accordions (from Design D) ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.two h2 { font-size: clamp(30px, 3.6vw, 52px); margin-block-end: 28px; }
.acc details { border-block-end: 2px solid var(--ink); }
.acc details:first-child { border-block-start: 2px solid var(--ink); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 12px;
  font: 750 20px/1.2 var(--font-display); color: var(--ink); cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 400 30px/1 var(--font-display); color: var(--olive); }
.acc details[open] summary::after { content: "\2212"; }
.acc details p { padding-block-end: 18px; }
.events { background: var(--surface); }
.event { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.event-hero img { width: 100%; border-radius: var(--card); }
.event-meta { font: 700 15px/1.4 var(--font-display); color: var(--olive-deep); margin-block-end: 12px; }
.event-card h3 { font-size: clamp(24px, 2.6vw, 36px); margin-block-end: 12px; }
.event-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 22px); margin-block-start: clamp(10px, 1.6vw, 22px); }
.event-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.event-next { margin-block-start: 30px; font: 700 19px/1.4 var(--font-display); color: var(--ink); }

/* ---------- 01:00, the close: black statement ground, a setting sun ---------- */
.band { position: relative; overflow: clip; background: var(--ink); padding-block: clamp(72px, 10vw, 150px); }
.band::before { content: ""; position: absolute; inset-inline-end: 4%; top: 7%; width: clamp(80px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.band-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.depth-solo { --bleed: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); max-width: none; width: calc(100% + var(--bleed)); margin-inline-start: calc(-1 * var(--bleed)); }   /* runs off the left edge of the screen */
.depth-solo .d-clip { border-color: #f3eddf; border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start: 0; }
.band-kicker { font: 700 15px/1.3 var(--font-display); color: #f3eddf; letter-spacing: .02em; text-transform: uppercase; margin-block-end: 18px; }
.band-line { max-width: none; font: 800 clamp(44px, 7.4vw, 120px)/.92 var(--font-display); letter-spacing: -.035em; color: #fff; }
.band-line:nth-child(3) { color: #dfe6c4; }
.band-note { margin-block-start: clamp(24px, 3vw, 40px); font-size: 18px; color: #fff; max-width: 56ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-side h2 { font-size: clamp(34px, 4.4vw, 64px); }
.contact-side h2 + p { margin-block-start: 18px; }
#inquiry-form { padding: clamp(22px, 3vw, 40px); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--card); }
.site-footer { background: var(--bg); }
.footer-word { font-weight: 800; letter-spacing: -.04em; }

/* ---------- Motion (only when the reader allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: fly 22s linear infinite; }
  @keyframes fly { from { transform: translate(-30%, 20px); } to { transform: translate(560%, -30px); } }
  .origins-head::before { animation: sail 16s ease-in-out infinite alternate; }
  @keyframes sail { from { transform: translateX(0) rotate(-2deg); } to { transform: translateX(min(60vw, 420px)) rotate(2deg); } }
  .origins-head::after { animation: water 6s linear infinite; }
  @keyframes water { to { background-position: 120px 0; } }
  .day::before { animation: roll 30s linear infinite; }
  @keyframes roll { to { background-position: -160px 0; } }
  .hour-brand .brand-logo, .hour-brand h3 { transition: transform 600ms cubic-bezier(.2, .8, .2, 1); }

  @supports (animation-timeline: scroll()) {
    .hero::before { animation: rise linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes rise { from { transform: translateY(60px) scale(.9); } to { transform: translateY(-160px) scale(1.15); } }
    .band::before { animation: set linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes set { from { transform: translateY(-40px); } to { transform: translateY(220px); } }
  }

  /* text arrives as each chapter comes into view (main.js adds .in) */
  html.js .stop-text, html.js .hour-body, html.js .band-line {
    opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
  }
  html.js .in.stop-text, html.js .in.hour-body, html.js .in.band-line { opacity: 1; transform: none; }
  html.js .band-line:nth-child(3) { transition-delay: 120ms; }
  html.js .band-line:nth-child(4) { transition-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
  .prods > li, .lens, .lens img { transform: none !important; }
  .stage { position: relative; height: auto; align-self: start; padding-block: 48px; }   /* no pinned globe */
}

/* ---------- Phones and tablets: no globe, stacked scenes ---------- */
@media (max-width: 899px) {
  .journey-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .d-front { display: none; }   /* phones: back plates only, lighter page (hidden lazy images are not fetched) */
  .hero { min-height: 80vh; }
  .stop { min-height: 0; padding-block: 36px; }
  .about-grid, .hour-grid, .two, .contact, .event, .band-grid { grid-template-columns: 1fr; }
  .hour-flip .depth { order: 0; }
  .depth { margin-inline: auto; max-width: 440px; }
  .depth-solo { width: 100%; margin-inline: auto; }
  .depth-solo .d-clip { border-radius: var(--card); border-inline-start: 2px solid #f3eddf; }
  .stop .depth { width: 100%; }
  .hour-time { font-size: 84px; top: -.9em; }
  .prods-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-index { top: 56px; border-radius: 18px; }
  .event-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .proof, .prods, .prods-many { grid-template-columns: 1fr; }
  .day-index ol { overflow-x: auto; flex-wrap: nowrap; }
}

/* 404 page (production, 18 Nov 2026) */
.not-found { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.not-found h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 12px; }
