/* ─────────────────────────────────────────────────
   SAFHAT · صفحات
   Stylesheet — shared across all pages
   ───────────────────────────────────────────────── */

:root {
  --cream: #f8f5ef;
  --cream-soft: #f3efe7;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --ink-muted: rgba(26, 26, 26, 0.55);
  --ink-faint: rgba(26, 26, 26, 0.18);
  --hair: rgba(26, 26, 26, 0.12);
  --terracotta: #b85c38;
  --terracotta-soft: #c97a55;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1280px;
  --gutter: 32px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: "Tajawal", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 720px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--terracotta); color: var(--cream); }

/* ─── Grain overlay ─── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.5 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -2%); }
  20% { transform: translate(-5%, 4%); }
  30% { transform: translate(4%, -3%); }
  40% { transform: translate(-2%, 5%); }
  50% { transform: translate(-5%, 2%); }
  60% { transform: translate(3%, 0); }
  70% { transform: translate(0, 4%); }
  80% { transform: translate(-3%, -3%); }
  90% { transform: translate(2%, 2%); }
}

/* ─── Custom cursor ─── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #f8f5ef;
  transition: transform 0.18s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid #f8f5ef;
  transition: transform 0.4s var(--ease-out), width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.7;
}
.cursor-grow .cursor-dot { width: 0; height: 0; }
.cursor-grow .cursor-ring { width: 64px; height: 64px; opacity: 1; }
@media (max-width: 720px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 24px 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 245, 239, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--hair);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 22px;
}
.wordmark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink);
  box-shadow: 0 2px 6px -2px rgba(26,26,26,0.25);
}
.wordmark__icon svg { width: 100%; height: 100%; display: block; }
.wordmark__en { letter-spacing: -0.02em; line-height: 1; }
.wordmark__sep { color: var(--ink-faint); font-weight: 400; line-height: 1; }
.wordmark__ar { font-size: 21px; font-weight: 600; color: var(--ink-soft); line-height: 1; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .nav__links { gap: 18px; font-size: 13.5px; }
  .wordmark { font-size: 19px; gap: 10px; }
  .wordmark__icon { width: 32px; height: 32px; }
  .wordmark__ar { font-size: 18px; }
}
.footer .wordmark__icon { width: 40px; height: 40px; }
.footer .wordmark { font-size: 24px; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  padding: 200px 0 120px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgba(184, 92, 56, 0.10), transparent 70%),
    radial-gradient(ellipse 55% 45% at 80% 80%, rgba(26, 26, 26, 0.05), transparent 70%),
    var(--cream);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26,26,26,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 30%, transparent 100%);
  opacity: 0.55;
  z-index: 0;
}
.hero__inner { width: 100%; max-width: 1100px; position: relative; z-index: 2; }
@media (min-width: 920px) {
  .hero__inner { max-width: 620px; margin-inline-start: 0; margin-inline-end: auto; }
}
.hero__art {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 44%;
  max-width: 520px;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.4s var(--ease-out) 0.5s, transform 1.4s var(--ease-out) 0.5s;
}
.hero.in .hero__art { opacity: 1; }
.hero__art svg { width: 100%; height: auto; display: block; }
.hero__art .float-a { animation: floatA 7s var(--ease) infinite; transform-origin: center; }
.hero__art .float-b { animation: floatB 9s var(--ease) infinite; transform-origin: center; }
.hero__art .float-c { animation: floatC 11s var(--ease) infinite; transform-origin: center; }
@keyframes floatA { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-14px) rotate(5deg); } }
@keyframes floatC { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(0deg); } }
@media (max-width: 920px) { .hero__art { display: none; } .hero::before { opacity: 0.3; } }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: 36px;
}
.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}
.hero__headline {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 32px;
}
.hero__headline .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out);
  will-change: transform, opacity;
}
.hero__headline.in .word { transform: translateY(0); opacity: 1; }
.hero__headline .accent { color: var(--terracotta); font-style: normal; }
.hero__sub {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.45;
  margin: 0 0 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s 0.4s var(--ease-out), transform 1s 0.4s var(--ease-out);
}
.hero.in .hero__sub { opacity: 1; transform: none; }
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s 0.6s var(--ease-out), transform 1s 0.6s var(--ease-out);
}
.hero.in .hero__cta-row { opacity: 1; transform: none; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  font-size: 16px;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 18px -10px rgba(26, 26, 26, 0.4);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 30px -14px rgba(26, 26, 26, 0.5);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(-6px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hair) inset;
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); }
.hero__platforms {
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.005em;
}
@media (max-width: 720px) {
  .hero { padding: 140px 0 80px; min-height: auto; }
  .btn { padding: 18px 28px; font-size: 15px; }
}

/* ─── Section base ─── */
section {
  position: relative;
  padding: 160px 0;
}
@media (max-width: 720px) { section { padding: 96px 0; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 96px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.06em;
}
.section-title {
  font-weight: 800;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.section-aside {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 280px;
  line-height: 1.6;
  padding-bottom: 14px;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 56px; }
  .section-aside { padding-bottom: 0; }
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ─── Products ─── */
.products { background: var(--cream); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: var(--cream-soft);
  border-radius: 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.4s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 0 0 1px var(--hair);
  will-change: transform;
  width: 100%;
  text-align: inherit;
  font: inherit;
  color: inherit;
}
.card:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 0 0 1px rgba(26, 26, 26, 0.18), 0 30px 60px -30px rgba(26, 26, 26, 0.35);
}
.card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-soft);
}
.card__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px 30px;
  border-top: 1px solid var(--hair);
}
.card__name {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.card__price {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}
.card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  z-index: 2;
  backdrop-filter: blur(6px);
}
.card__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.card__arrow {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-6px) translateX(6px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), background 0.4s var(--ease);
  z-index: 2;
}
.card:hover .card__arrow {
  opacity: 1;
  transform: translateY(0) translateX(0);
  background: var(--terracotta);
}
.card__arrow svg { width: 18px; height: 18px; }

.card.c-1 { grid-column: span 7; }
.card.c-2 { grid-column: span 5; }
.card.c-3 { grid-column: span 5; }
.card.c-4 { grid-column: span 7; }
.card.c-5 { grid-column: span 6; }
.card.c-6 { grid-column: span 6; }
.card.c-1 .card__media { aspect-ratio: 16 / 11; }
.card.c-4 .card__media { aspect-ratio: 16 / 11; }
.card.c-5 .card__media, .card.c-6 .card__media { aspect-ratio: 5 / 4; }
@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .card.c-1, .card.c-2, .card.c-3, .card.c-4, .card.c-5, .card.c-6 { grid-column: span 6; }
  .card .card__media { aspect-ratio: 4 / 3 !important; }
  .card__body { padding: 22px 22px 24px; }
}

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.step { padding: 64px 40px 64px 0; position: relative; }
.step + .step { border-right: 1px solid var(--hair); padding-right: 40px; }
.step__num {
  font-size: clamp(96px, 12vw, 180px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 32px;
}
.step__num::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--terracotta);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: super;
  transform: translateY(-12px);
}
.step__title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 320px;
  line-height: 1.3;
}
.step__desc {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 40px 0; border-bottom: 1px solid var(--hair); }
  .step:last-child { border-bottom: none; }
  .step + .step { border-right: none; padding-right: 0; }
}

/* ─── Why ─── */
.why { background: var(--ink); color: var(--cream); }
.why .section-title { color: var(--cream); }
.why .section-eyebrow { color: var(--terracotta-soft); }
.why-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid rgba(248, 245, 239, 0.12);
}
.why-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 8px;
  border-bottom: 1px solid rgba(248, 245, 239, 0.12);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: padding 0.4s var(--ease), color 0.4s var(--ease);
}
.why-list li:hover { padding-right: 32px; color: var(--terracotta-soft); }
.why-list .marker {
  flex: 0 0 auto;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(248, 245, 239, 0.55);
  padding-top: 12px;
}
.why-list li:hover .marker { color: var(--terracotta-soft); }
@media (max-width: 720px) {
  .why-list li { padding: 28px 0; gap: 16px; }
  .why-list li:hover { padding-right: 8px; }
}

/* ─── Newsletter ─── */
.news { text-align: right; }
.news__inner { max-width: 760px; }
.news__title {
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.news__sub {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-muted);
  margin: 0 0 56px;
  max-width: 540px;
}
.news__form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  max-width: 560px;
  background: var(--cream-soft);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.news__form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.06);
}
.news__form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 14px 8px;
  outline: none;
  text-align: right;
}
.news__form input::placeholder { color: var(--ink-muted); }
.news__form button {
  padding: 16px 32px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.news__form button:hover { background: var(--terracotta); transform: translateY(-1px); }
.news__form button[disabled] { opacity: 0.6; cursor: progress; }
.news__status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-muted);
  min-height: 20px;
  transition: color 0.3s var(--ease);
}
.news__status.success { color: var(--terracotta); }
.news__status.error { color: #b85c38; }

/* ─── Footer ─── */
.footer {
  padding: 96px 0 48px;
  border-top: 1px solid var(--hair);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer__brand .wordmark { font-size: 22px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 12px; }
.footer__links a {
  color: var(--ink-soft);
  font-size: 16px;
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--terracotta); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.footer__social a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-3px);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.footer__mark { width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); }
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 48px; margin-bottom: 56px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ─── Marquee strip ─── */
.strip {
  padding: 36px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  background: var(--cream);
}
.strip__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
}
.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.015em;
}
.strip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ─── Modal (waitlist + checkout) ─── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: fadeIn 0.4s var(--ease-out) forwards;
}
.modal__panel {
  position: relative;
  background: var(--cream);
  border-radius: 28px;
  padding: 48px 48px 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  animation: slideUp 0.5s var(--ease-out) 0.05s forwards;
  border: 1px solid var(--hair);
}
.modal__close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--cream); }
.modal__close svg { width: 14px; height: 14px; }
.modal__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.modal__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.modal__sub {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 28px;
  line-height: 1.55;
}
.modal__form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--cream-soft);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.3s var(--ease);
}
.modal__form:focus-within { border-color: var(--ink); }
.modal__form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 4px;
  outline: none;
  text-align: right;
}
.modal__form button {
  padding: 12px 24px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s var(--ease);
}
.modal__form button:hover { background: var(--terracotta); }
.modal__form button[disabled] { opacity: 0.6; cursor: progress; }
.modal__status {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  min-height: 18px;
}
.modal__status.success { color: var(--terracotta); }
.modal__status.error { color: #c53030; }
.modal__small {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.005em;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 720px) {
  .modal__panel { padding: 36px 28px 32px; border-radius: 24px; }
}

/* ─── Generic page (legal / about / contact / journal) ─── */
.page {
  padding: 200px 0 160px;
  min-height: 70vh;
}
.page__inner { max-width: 760px; }
.page__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.page__title {
  font-weight: 800;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.page__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
  margin: 0 0 48px;
  line-height: 1.55;
  max-width: 620px;
}
.page__body { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.page__body h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  color: var(--ink);
}
.page__body p { margin: 0 0 18px; }
.page__body ul { padding-right: 22px; margin: 0 0 18px; }
.page__body li { margin-bottom: 8px; }
.page__body a { color: var(--terracotta); border-bottom: 1px solid currentColor; }
.page__meta {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--ink-muted);
}

/* ─── 404 ─── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter);
  text-align: center;
}
.not-found__num {
  font-weight: 200;
  font-size: clamp(120px, 24vw, 280px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 8px;
}
.not-found__num span { color: var(--terracotta); }
.not-found__msg {
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink-soft);
  margin: 0 0 40px;
  font-weight: 500;
}

/* ─── Hero small line ─── */
.hero__small {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 18px;
  letter-spacing: 0.005em;
}

/* ─── Service cards (3-up, replaces 6 product grid) ─── */
.grid.grid--services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 520px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 0 0 1px var(--hair);
}
.service-card:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 0 0 1px rgba(26,26,26,0.18), 0 30px 60px -30px rgba(26,26,26,0.35);
}
.service-card .card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.service-card .card__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.service-card .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  text-align: right;
  border-top: 1px solid var(--hair);
}
.service-card .card__name {
  margin: 0 0 10px;
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.service-card .card__sub {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}
.service-card .card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  flex-wrap: wrap;
}
.service-card .card__price {
  font-size: 13px;
  color: var(--ink-muted);
}
.service-card .card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.service-card .card__cta svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.service-card:hover .card__cta { color: var(--terracotta); gap: 12px; }
.service-card:hover .card__cta svg { transform: translateX(-3px); }

.service-card--featured {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 0 0 1px var(--ink), 0 30px 60px -30px rgba(26,26,26,0.45);
}
.service-card--featured .card__body { border-top-color: rgba(248,245,239,0.12); }
.service-card--featured .card__name { color: var(--cream); }
.service-card--featured .card__sub { color: rgba(248,245,239,0.65); }
.service-card--featured .card__bottom { border-top-color: rgba(248,245,239,0.15); }
.service-card--featured .card__price { color: rgba(248,245,239,0.55); }
.service-card--featured .card__cta { color: var(--cream); }
.service-card--featured:hover .card__cta { color: var(--terracotta-soft); }

.card__tag {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--terracotta);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
  z-index: 4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(184,92,56,0.5);
}

@media (max-width: 920px) {
  .grid.grid--services { grid-template-columns: 1fr; gap: 18px; }
  .service-card { min-height: 0; }
  .service-card .card__body { padding: 24px; gap: 20px; }
}

/* ─── Contact section ─── */
.contact { background: var(--cream); }
.contact__inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.contact__head { margin-bottom: 64px; }
.contact__title {
  font-weight: 800;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 12px 0 24px;
}
.contact__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.contact__form.hidden { display: none !important; }

.field {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
  width: 100%;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream-soft);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 18px 20px;
  outline: none;
  text-align: right;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(26,26,26,0.06);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }

.contact__submit-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.contact__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 8px 18px -10px rgba(184,92,56,0.6);
}
.contact__submit svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.contact__submit:hover {
  background: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -14px rgba(26,26,26,0.5);
}
.contact__submit:hover svg { transform: translateX(-4px); }
.contact__submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.contact__status {
  font-size: 14px;
  color: var(--ink-muted);
  min-height: 20px;
}
.contact__status.success { color: var(--terracotta); }
.contact__status.error { color: #c53030; }

.contact__success {
  display: none !important;
  padding: 64px 32px;
  text-align: center;
  background: var(--cream-soft);
  border: 1px solid var(--hair);
  border-radius: 24px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.contact__success.show { display: block !important; }

@media (max-width: 720px) {
  .contact__submit { padding: 18px 28px; font-size: 15px; width: 100%; justify-content: center; }
  .contact__submit-row { flex-direction: column; align-items: stretch; gap: 16px; }
}

/* ─── WhatsApp floating button ─── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.45), 0 4px 12px -4px rgba(0,0,0,0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55), 0 6px 16px -4px rgba(0,0,0,0.3);
}
.whatsapp-fab svg { width: 28px; height: 28px; }
@media (max-width: 720px) {
  .whatsapp-fab { bottom: 18px; left: 18px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ─── Section divider ornament ─── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 0;
  opacity: 0.55;
}
.divider__line {
  flex: 0 1 220px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ink-faint), transparent);
}
.divider__mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.divider__mark span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.divider__mark span:nth-child(2) { background: var(--ink); opacity: 0.4; }
.divider__mark span:nth-child(3) { background: var(--terracotta); opacity: 0.5; }

/* ─── Background variations ─── */
.products,
.news {
  position: relative;
}
.products::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(184,92,56,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.products .container,
.news .container { position: relative; z-index: 1; }

/* ─── Service card visual upgrades ─── */
.service-card .card__media {
  background: linear-gradient(135deg, var(--cream-soft) 0%, #ede8de 100%);
}
.service-card--featured .card__media {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
