/* =========================================================
   تيرازيل — طبقة «القماش»
   تُحمَّل بعد style.css وتعيد تشكيل الإحساس العام:
   نسيج كتّان، خيوط وغُرز، بطاقات مقصوصة، خط اليمامة.
   ========================================================= */
:root {
  --display: 'Alyamama', 'Segoe UI', Tahoma, sans-serif;
  --body: 'Alyamama', 'Segoe UI', Tahoma, sans-serif;

  --linen: #F3EAE0;
  --linen-2: #EBDDD0;
  --cream: #FCF8F2;
  --ink: #1C0F16;
  --ink-soft: #2C1722;
  --wine: #5A2335;
  --blush: #EBCFC8;
  --rosegold: #D9A58F;
  --gold-hi: #E2BE70;
  --gold: #C9A04A;
  --gold-lo: #A2722A;
  --rose-thread: #B98089;

  /* نسيج الكتّان: خيوط طولية وعرضية خفيفة + حبيبات */
  --weave:
    repeating-linear-gradient(0deg, rgba(110,84,48,.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110,84,48,.025) 0 1px, transparent 1px 4px);
  --weave-dark:
    repeating-linear-gradient(0deg, rgba(255,236,196,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,236,196,.016) 0 1px, transparent 1px 4px);
  --grain: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  --grain-dark: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  --gold-foil: linear-gradient(135deg, #E2BE70 0%, #C9A04A 55%, #A2722A 100%);
}

body {
  background-color: var(--linen);
  background-image: var(--grain), var(--weave);
  font-weight: 400;
}
.hero__title, .h-display, .h-section, .card__title, .pillar h3, .today__v, .model__name, .post__title { font-family: var(--display); font-weight: 700; }
.lead, .hero__lead, .prose-lg { font-weight: 400; }

/* أقسام بنسيج */
.section--silk { background-color: var(--cream); background-image: var(--grain), var(--weave); }
.section--bordered { border-block: 0; }
.section--ink { background-color: var(--ink); background-image: var(--grain-dark), var(--weave-dark); }
.site-header { background-color: var(--cream); background-image: var(--grain), var(--weave); border-bottom: 0; }
.site-header::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 9px, transparent 9px 16px);
  opacity: .8;
}

/* خيط الذهب */
.thread { height: 2px; width: 84px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 13px); }

/* -------- الأزرار: رقعة قماش مخيطة -------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  border: 0; border-radius: 3px; letter-spacing: 0;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, color .25s ease;
  --mx: 50%; --my: 50%;
}
.btn::before { /* غرز داخلية */
  content: ''; position: absolute; inset: 5px; z-index: -1; border-radius: 2px;
  border: 1.5px dashed currentColor; opacity: .55; transition: inset .3s ease, opacity .3s ease;
}
.btn::after { /* لمعة ضوء تمر على القماش */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255,240,205,.55), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.btn:hover::after { opacity: 1; }
.btn:hover::before { inset: 3px; opacity: .95; }
.btn:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 10px 18px -8px rgba(40,28,10,.55), 0 2px 0 rgba(0,0,0,.15); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 2px 4px rgba(40,28,10,.4); transition-duration: .08s; }
.btn--accent { background-color: var(--ink); background-image: var(--grain-dark), var(--weave-dark); color: var(--cream); border: 0; box-shadow: 0 4px 0 var(--gold-lo), 0 8px 14px -8px rgba(0,0,0,.5); }
.btn--accent:hover { background-color: var(--ink-soft); color: var(--gold-hi); border: 0; box-shadow: 0 7px 0 var(--gold-lo), 0 16px 20px -10px rgba(0,0,0,.55); }
.btn--accent:active { box-shadow: 0 1px 0 var(--gold-lo); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background-color: var(--ink); color: var(--gold-hi); }
.btn--sm { border-radius: 2px; }
.btn--lg { padding-inline: 38px; }

/* خط خياطة يرسم نفسه تحت الروابط */
.text-link, .site-nav__link { position: relative; text-decoration: none; }
.site-nav__link { border-bottom: 0 !important; }
.site-nav__link::after, .text-link::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 6px; height: 2px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--gold-lo) 0 6px, transparent 6px 10px);
  clip-path: inset(0 0 0 100%); transition: clip-path .45s ease;
}
.site-nav__link:hover::after, .site-nav__link.is-active::after, .text-link:hover::after { clip-path: inset(0 0 0 0); }
@media (max-width: 900px) { .site-nav__link::after { display: none; } }

/* -------- الهيرو والإطارات -------- */
.framed__line { border: 2px dashed var(--gold); inset: 22px 22px 0 0; }
.framed__img { box-shadow: 0 18px 30px -18px rgba(40,28,10,.5); }
.band { background-color: var(--ink); background-image: var(--grain-dark), var(--weave-dark); border-block: 0; position: relative; }
.band::before, .band::after { content: ''; position: absolute; inset-inline: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 9px, transparent 9px 15px); }
.band::before { top: 6px; } .band::after { bottom: 6px; }
.band__inner { border: 0; }
.band__group { font-weight: 700; }

.card__media { box-shadow: 0 14px 22px -16px rgba(40,28,10,.55); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease; }
.card:hover .card__media { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 24px 30px -18px rgba(40,28,10,.6); }
.card__meta { border-bottom: 2px dashed rgba(162,114,42,.45); }
.pillar { border-top: 2px dashed var(--gold); }
.step { border-top: 2px dashed var(--gold); }
.step__n { font-family: var(--display); background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* -------- إطلالة اليوم: عيّنة قماش معلّقة -------- */
#today { background-color: var(--cream); }
.today { border: 0; background: transparent; gap: 28px; padding-block: 12px; }
.today > div {
  position: relative; border: 0; padding: 36px 28px 28px; background-color: var(--linen); background-image: var(--grain), var(--weave);
  box-shadow: 0 1px 0 #fff inset, 0 14px 20px -14px rgba(40,28,10,.5);
  outline: 2px dashed rgba(162,114,42,.55); outline-offset: -9px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.today > div:nth-child(1) { transform: rotate(-1.2deg); }
.today > div:nth-child(2) { transform: rotate(.7deg); }
.today > div:nth-child(3) { transform: rotate(-.5deg); }
.today > div:hover { transform: rotate(0) translateY(-5px); }
.today > div::before { /* ثقب تعليق */
  content: ''; position: absolute; top: 12px; inset-inline-start: 50%; width: 11px; height: 11px; margin-inline-start: -5px;
  border-radius: 50%; background: var(--cream); box-shadow: inset 0 1px 2px rgba(0,0,0,.4), 0 0 0 2px var(--gold);
}
.today__swatch { width: 84px; height: 84px; border: 0; border-radius: 3px; position: relative; box-shadow: 0 6px 10px -4px rgba(0,0,0,.45); transform: rotate(-3deg); }
.today__swatch::before { content: ''; position: absolute; inset: 0; background-image: var(--weave-dark), var(--weave); mix-blend-mode: soft-light; }
.today__swatch::after { content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(255,255,255,.7); mix-blend-mode: difference; }
.today__k { color: var(--gold-lo); font-weight: 700; letter-spacing: 0; }

/* -------- قسم الطلب: بطاقة الخيّاطة -------- */
#order {
  background-color: var(--ink); background-image: radial-gradient(900px 500px at 15% 0%, rgba(122,44,68,.55), transparent 70%), var(--grain-dark), var(--weave-dark);
  color: var(--cream); position: relative; overflow: hidden; border: 0;
}
#order .label { color: var(--gold-hi); font-weight: 700; }
#order .h-display { color: var(--cream); }
#order .lead { color: #D9CFBD; }
#order::before { /* ملصق خيط ملفوف */
  content: ''; position: absolute; inset-inline-start: -90px; top: 60px; width: 260px; height: 260px; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(201,160,74,.28) 0 2px, transparent 2px 7px);
  opacity: .5; animation: tzspin 60s linear infinite;
}
@keyframes tzspin { to { transform: rotate(360deg); } }

.order-form { position: relative; gap: 30px; padding: 56px clamp(22px, 4vw, 48px) 40px; color: var(--ink);
  background-color: var(--cream); background-image: var(--grain), var(--weave);
  box-shadow: 0 30px 40px -24px rgba(0,0,0,.7); border-radius: 2px;
  outline: 2px dashed rgba(162,114,42,.6); outline-offset: -12px; transform: rotate(-.35deg);
}
.order-form::before { /* شريط القياس */
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(60,40,10,.75) 0 1px, transparent 1px 8px) bottom/100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(60,40,10,.8) 0 1.5px, transparent 1.5px 40px) bottom/100% 14px no-repeat,
    linear-gradient(180deg, #F0D58E, #D6AE5A);
  border-bottom: 1px solid rgba(60,40,10,.4);
}
.order-form::after { /* قصّة حواف مسننة (بنكنغ) */
  content: ''; position: absolute; inset-inline: 0; bottom: -9px; height: 10px;
  background: linear-gradient(135deg, var(--cream) 50%, transparent 50%) 0 0/14px 10px, linear-gradient(225deg, var(--cream) 50%, transparent 50%) 0 0/14px 10px;
}
.field label, .field legend { color: var(--ink-soft); font-weight: 700; font-size: 16px; }
.field input:not([type="radio"]), .field textarea, .field select,
.section--silk .field input:not([type="radio"]), .section--silk .field textarea {
  background: rgba(255,255,255,.55); border: 0; border-radius: 0; border-bottom: 2px dashed var(--gold-lo);
  padding: 14px 14px; transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.field input:hover, .field textarea:hover { background: rgba(255,255,255,.8); }
.field input:focus, .field textarea:focus {
  outline: 0; background: #fff; border-bottom: 2px solid var(--gold-lo); box-shadow: 0 8px 0 -6px var(--gold-hi), 0 12px 16px -12px rgba(120,80,20,.5);
}
.field textarea { background-image: repeating-linear-gradient(180deg, transparent 0 30px, rgba(162,114,42,.18) 30px 31px); line-height: 31px; }
.field input::placeholder, .field textarea::placeholder { color: #8c7f6b; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; margin-inline-end: 14px; padding: 8px 18px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--ink); color: var(--gold-hi); box-shadow: 0 3px 0 var(--gold-lo); transition: transform .2s ease, box-shadow .2s ease;
}
.field input[type="file"]::file-selector-button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--gold-lo); }

/* المناسبة: أزرار قماش بغرز */
.chips { gap: 14px; }
.chip {
  position: relative; border: 0; border-radius: 50px; padding: 8px 26px; min-height: 46px; font-weight: 700;
  background-color: var(--linen-2); background-image: var(--grain), var(--weave);
  box-shadow: 0 3px 0 rgba(120,90,40,.45), 0 8px 10px -8px rgba(0,0,0,.4);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.chip::before { content: ''; position: absolute; inset: 4px; border-radius: 50px; border: 1.5px dashed rgba(120,84,30,.65); pointer-events: none; }
.chip:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 6px 0 rgba(120,90,40,.45), 0 14px 14px -10px rgba(0,0,0,.45); border-color: transparent; }
.chip__input:checked + .chip {
  background-color: var(--ink); background-image: var(--grain-dark), var(--weave-dark); color: var(--gold-hi); border: 0;
  box-shadow: 0 3px 0 var(--gold-lo), 0 10px 12px -8px rgba(0,0,0,.6); animation: tzpop .45s cubic-bezier(.3,1.6,.5,1);
}
.chip__input:checked + .chip::before { border-color: var(--gold); }
@keyframes tzpop { 0% { transform: scale(.9); } 60% { transform: scale(1.07) rotate(1deg); } 100% { transform: scale(1); } }

.order-form__submit { padding-top: 6px; }
.order-form .btn--accent { box-shadow: 0 5px 0 var(--gold-lo), 0 12px 16px -8px rgba(0,0,0,.5); }
.alert { border-radius: 2px; border-width: 0 0 0 5px; border-style: solid; }

/* -------- التذييل: القصّة والخيط -------- */
.site-footer { position: relative; padding-block: 0 28px; background-color: var(--ink); background-image: radial-gradient(900px 520px at 85% 10%, rgba(122,44,68,.5), transparent 70%), var(--grain-dark), var(--weave-dark); overflow: hidden; }
.site-footer a { color: #E9DFCB; }
.site-footer a:hover { color: var(--gold-hi); }

.seam { position: relative; height: 56px; margin-top: 36px; }
.seam__line { position: absolute; inset-inline: 0; top: 50%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 17px); opacity: .28; }
.seam__done { position: absolute; inset-inline-start: 0; top: 50%; height: 2px; width: 0;
  background: repeating-linear-gradient(90deg, var(--gold-hi) 0 10px, transparent 10px 17px); }
.seam__needle { position: absolute; top: 50%; inset-inline-start: 0; width: 64px; height: 20px; margin-top: -10px; margin-inline-start: -8px; color: var(--gold-hi); }
.seam.is-in .seam__done { animation: tzstitch 9s cubic-bezier(.5,.1,.3,1) infinite; }
.seam.is-in .seam__needle { animation: tzneedle 9s cubic-bezier(.5,.1,.3,1) infinite; }
@keyframes tzstitch { 0% { width: 0; } 70%, 100% { width: 100%; } }
@keyframes tzneedle { 0% { inset-inline-start: 0; transform: translateY(0) rotate(0); } 8% { transform: translateY(-5px) rotate(8deg); } 16% { transform: translateY(4px) rotate(-6deg); } 70% { inset-inline-start: calc(100% - 56px); transform: translateY(0); } 100% { inset-inline-start: calc(100% - 56px); transform: translateY(0); opacity: 1; } }

.f-story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 96px); align-items: center; padding-block: 28px 56px; }
.f-story__label { color: var(--gold-hi); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-story__label::before { content: ''; width: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-hi) 0 6px, transparent 6px 10px); }
.f-story__title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.2; color: var(--cream); text-wrap: balance; }
.f-story__title em { font-style: normal; background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-story__text { margin-top: 20px; max-width: 34em; color: #D3C9B6; font-size: clamp(16px, 1.4vw, 19px); line-height: 2; }
.f-story .btn-row { margin-top: 28px; }
.footer-cta { background-color: var(--gold) !important; background-image: var(--grain) !important; color: var(--ink) !important; box-shadow: 0 5px 0 var(--gold-lo), 0 12px 16px -8px rgba(0,0,0,.6) !important; }
.footer-cta:hover { color: var(--ink) !important; background-color: var(--gold-hi) !important; box-shadow: 0 8px 0 var(--gold-lo), 0 18px 20px -10px rgba(0,0,0,.6) !important; }

/* بطاقة قماش منسوجة (ليبل الملابس) */
.wlabel { position: relative; justify-self: center; width: min(100%, 340px); padding: 34px 28px 30px; text-align: center; transform: rotate(3deg);
  background-color: #F4ECDA; background-image: var(--grain), repeating-linear-gradient(90deg, rgba(120,84,30,.1) 0 2px, transparent 2px 5px), repeating-linear-gradient(0deg, rgba(120,84,30,.08) 0 2px, transparent 2px 5px);
  color: var(--ink); box-shadow: 0 24px 34px -16px rgba(0,0,0,.8);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  animation: tzswing 7s ease-in-out infinite; transform-origin: 50% -30px; }
.wlabel:hover { animation-play-state: paused; transform: rotate(0) scale(1.03); }
@keyframes tzswing { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(-2deg); } }
.wlabel::before { content: ''; position: absolute; inset: 9px; border: 2px dashed rgba(120,84,30,.7); pointer-events: none; }
.wlabel__hole { position: absolute; top: 14px; inset-inline-start: 50%; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--gold); }
.wlabel__cord { position: absolute; top: -64px; inset-inline-start: 50%; width: 2px; height: 80px; background: var(--gold); transform: translateX(-1px); }
.wlabel__brand { margin-top: 12px; display: block; }
.wlabel__brand img { margin-inline: auto; width: 150px; height: auto; }
.wlabel__line { display: block; margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.5; }
.wlabel__small { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .24em; color: #6c5524; }
.wlabel__care { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(120,84,30,.5); font-size: 14px; color: #4b3d1c; display: flex; flex-direction: column; gap: 2px; }

.f-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 56px; padding-top: 34px; border-top: 2px dashed rgba(201,160,74,.35); }
.site-footer__brand p { color: #CFC4AE; font-size: 16px; }
.site-footer__h { font-size: 15px; font-weight: 700; color: var(--gold-hi); }
.site-footer__col a, .site-footer__col span { font-size: 16px; }
.site-footer__col a { transition: transform .25s ease, color .25s ease; }
.site-footer__col a:hover { transform: translateX(-6px); }
.site-footer__bottom { border-top: 0; margin-top: 36px; padding-top: 0; color: #B7AC96; }
.f-care { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 44px; padding-block: 16px; border-block: 2px dashed rgba(201,160,74,.3); color: #D8CCB4; font-size: 15px; }
.f-care span { display: inline-flex; align-items: center; gap: 10px; }
.f-care span::before { content: ''; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.credit { color: var(--gold-hi); }

@media (max-width: 860px) {
  .f-story { grid-template-columns: 1fr; padding-bottom: 36px; }
  .wlabel { margin-top: 56px; }
  .order-form { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .seam__done { width: 100% !important; }
  .seam__needle { inset-inline-start: calc(100% - 56px) !important; }
  .wlabel { transform: rotate(2deg) !important; }
}

/* حركة المكتبات: حالات البداية قبل GSAP */
.js-gsap [data-rise] { opacity: 0; transform: translateY(34px); }
.js-gsap .btn, .js-gsap .chip { will-change: transform; }
.today__swatch { outline: 3px solid var(--cream); }
.step__n, .site-footer__h { color: var(--rosegold); }

/* =========================================================
   القائمة: بطاقات معلّقة على شمّاعة
   ========================================================= */
.site-nav { position: relative; padding-top: 16px; gap: 0 14px; align-items: flex-start; }
.site-nav::before { /* قضيب الشمّاعة */
  content: ''; position: absolute; top: 4px; inset-inline: -6px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold-lo)); box-shadow: 0 2px 3px rgba(60,40,10,.35);
}
.site-nav__link {
  position: relative; display: inline-block; padding: 14px 16px 10px; font-weight: 700; font-size: 15px; color: var(--ink-soft);
  background-color: var(--cream); background-image: var(--grain), var(--weave);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%);
  margin-top: 10px; transform-origin: 50% -10px; transition: color .25s ease, background-color .3s ease, margin .3s ease;
  filter: drop-shadow(0 4px 3px rgba(60,40,10,.18));
}
.site-nav__link::before { /* خيط التعليق */
  content: ''; position: absolute; top: -10px; inset-inline-start: 50%; width: 2px; height: 10px; margin-inline-start: -1px; background: var(--gold-lo);
}
.site-nav__link::after { /* حلقة */
  content: ''; position: absolute; top: 5px; inset-inline-start: 50%; inset-block-end: auto; inset-inline-end: auto; width: 7px; height: 7px; margin-inline-start: -3.5px; border-radius: 50%;
  background: var(--linen); box-shadow: 0 0 0 1.5px var(--gold-lo) inset; clip-path: none; opacity: 1; transition: none;
}
.site-nav__link:hover { color: var(--wine); background-color: #fff; animation: tzswingtag 1.1s ease-out; margin-top: 14px; }
.site-nav__link.is-active { color: var(--gold-hi); background-color: var(--wine); background-image: var(--grain-dark), var(--weave-dark); margin-top: 16px; }
.site-nav__link.is-active::before { background: var(--gold-hi); height: 16px; top: -16px; }
@keyframes tzswingtag { 0% { transform: rotate(0); } 18% { transform: rotate(7deg); } 38% { transform: rotate(-5deg); } 58% { transform: rotate(3deg); } 78% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
.site-nav .btn { margin-top: 10px; margin-inline-start: 8px; }

@media (max-width: 900px) {
  .site-nav { padding-top: 6px; gap: 0; align-items: stretch; }
  .site-nav::before { display: none; }
  .site-nav.is-open { animation: tzunroll .55s cubic-bezier(.2,.8,.2,1); }
  .site-nav__link { display: block; clip-path: none; filter: none; margin: 0 0 8px; padding: 16px 20px; font-size: 18px; border-radius: 3px; transform-origin: 50% 50%;
    background-image: repeating-linear-gradient(90deg, rgba(60,40,10,.55) 0 1px, transparent 1px 9px), repeating-linear-gradient(90deg, rgba(60,40,10,.7) 0 1.5px, transparent 1.5px 45px), linear-gradient(180deg, #F3E0A6, #E1BC6A);
    background-size: 100% 8px, 100% 15px, 100% 100%; background-position: left bottom, left bottom, 0 0; background-repeat: no-repeat; }
  .site-nav__link::before, .site-nav__link::after { display: none; }
  .site-nav__link:hover, .site-nav__link.is-active { margin: 0 0 8px; animation: none; transform: translateX(-6px); }
  .site-nav__link.is-active { background-color: var(--wine); color: var(--ink); }
}
@keyframes tzunroll { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.nav-toggle { border: 0 !important; border-radius: 40px !important; background: var(--ink) !important; color: var(--gold-hi) !important; box-shadow: 0 3px 0 var(--gold-lo); outline: 1.5px dashed rgba(226,190,112,.7); outline-offset: -5px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { background: var(--gold-hi) !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent !important; }

/* =========================================================
   خيارات النموذج: بطاقات قماش بأيقونات
   ========================================================= */
.chips { gap: 14px; }
.chip { flex-direction: column; justify-content: center; gap: 6px; min-width: 104px; min-height: 92px; padding: 14px 16px; border-radius: 14px; text-align: center; }
.chip::before { inset: 5px; border-radius: 10px; }
.chip__icon { width: 30px; height: 30px; color: var(--gold-lo); transition: transform .35s cubic-bezier(.3,1.6,.5,1), color .25s; }
.chip:hover .chip__icon { transform: translateY(-3px) rotate(-8deg) scale(1.1); }
.chip::after { /* علامة الاختيار بغرزة */
  content: ''; position: absolute; top: 9px; inset-inline-end: 10px; width: 14px; height: 8px; border-left: 2.5px solid var(--gold-hi); border-bottom: 2.5px solid var(--gold-hi);
  transform: rotate(-45deg) scale(0); transition: transform .35s cubic-bezier(.3,1.8,.5,1);
}
.chip__input:checked + .chip .chip__icon { color: var(--gold-hi); }
.chip__input:checked + .chip::after { transform: rotate(-45deg) scale(1); }
.chip__input:focus-visible + .chip { outline: 3px solid var(--gold-lo); outline-offset: 3px; }
.chips--contact .chip { flex: 1 1 130px; min-height: 84px; flex-direction: row; gap: 12px; justify-content: center; }
.chips--contact .chip__icon { width: 28px; height: 28px; }
.field legend .muted { font-weight: 400; }

/* =========================================================
   الفوتر: بلاطات تواصل وغرفة القياس
   ========================================================= */
.f-lamis { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block: 8px 28px; padding: 26px clamp(20px, 3vw, 40px); text-decoration: none;
  background: linear-gradient(100deg, rgba(122,44,68,.75), rgba(90,35,53,.35)); border-radius: 4px; color: var(--cream) !important; overflow: hidden;
  outline: 2px dashed rgba(226,190,112,.55); outline-offset: -9px; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; box-shadow: 0 20px 28px -20px #000; }
.f-lamis small { display: block; color: var(--gold-hi); font-weight: 700; font-size: 14px; }
.f-lamis strong { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.4; }
.f-lamis__go { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--ink); flex: none; box-shadow: 0 4px 0 var(--gold-lo); transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.f-lamis:hover { transform: translateY(-4px); box-shadow: 0 28px 34px -22px #000; }
.f-lamis:hover .f-lamis__go { transform: translateX(-8px) rotate(-8deg); }
.f-lamis__thread { position: absolute; inset-inline-end: 90px; top: 0; bottom: 0; width: 120px; opacity: .3; background: repeating-linear-gradient(115deg, var(--gold-hi) 0 2px, transparent 2px 12px); pointer-events: none; }

.f-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-bottom: 40px; }
.f-tile { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-decoration: none; color: var(--cream) !important; border-radius: 4px; background: rgba(255,244,222,.05);
  outline: 1.5px dashed rgba(226,190,112,.4); outline-offset: -7px; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, outline-color .3s; }
.f-tile svg { width: 34px; height: 34px; color: var(--gold-hi); flex: none; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.f-tile small { display: block; color: #CDBFA5; font-size: 13px; }
.f-tile b { font-weight: 700; font-size: 17px; word-break: break-word; }
a.f-tile:hover { transform: translateY(-5px) rotate(-.6deg); background: rgba(255,244,222,.1); outline-color: var(--gold-hi); }
a.f-tile:hover svg { transform: rotate(-10deg) scale(1.15); }
.f-tile--wa { background: linear-gradient(120deg, rgba(201,160,74,.28), rgba(201,160,74,.08)); outline-color: rgba(226,190,112,.8); }
.f-tile--static { cursor: default; }

.f-mark { font-family: var(--latin); font-size: clamp(54px, 15.5vw, 230px); line-height: .9; letter-spacing: .06em; text-align: center; user-select: none; margin-top: 30px; white-space: nowrap; overflow: hidden;
  color: transparent; -webkit-text-stroke: 1.5px rgba(226,190,112,.55); background: linear-gradient(180deg, rgba(226,190,112,.22), transparent 85%); -webkit-background-clip: text; background-clip: text; }
.f-grid { padding-top: 30px; }
.f-care { margin-top: 36px; }
@media (max-width: 640px) { .f-lamis { flex-direction: column; align-items: flex-start; } }

/* ملخّص الطلب: القطعة والغرزة */
.order-summary { position: relative; display: flex; gap: 18px; align-items: center; padding: 16px; background: rgba(226,190,112,.14); outline: 2px dashed rgba(162,114,42,.55); outline-offset: -7px; border-radius: 3px; }
.order-summary > img { width: 92px; height: 114px; object-fit: cover; object-position: top; border-radius: 2px; flex: none; box-shadow: 0 8px 12px -8px rgba(0,0,0,.6); }
.order-summary small { display: block; color: var(--gold-lo); font-weight: 700; font-size: 13px; }
.order-summary strong { display: block; font-family: var(--display); font-size: 24px; color: var(--wine); line-height: 1.3; }
.order-summary p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-top: 4px; }
.order-summary a { font-weight: 700; font-size: 14px; }
.order-summary[hidden] { display: none; }
.stitch-sum__imgs { display: flex; gap: 8px; flex: none; }
.stitch-sum__imgs img { width: 96px; height: 78px; object-fit: cover; border-radius: 2px; box-shadow: 0 8px 12px -8px rgba(0,0,0,.6); }
.stitch-sum__remove { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #8a2d3b; cursor: pointer; text-decoration: underline; }
.card__btn { display: inline-block; padding: 6px 16px; border-radius: 30px; background: var(--ink); color: var(--gold-hi); font-weight: 700; font-size: 14px; box-shadow: 0 2px 0 var(--gold-lo); transition: transform .25s; }
.card:hover .card__btn { transform: translateY(-2px) rotate(-2deg); }
@media (max-width: 560px) { .order-summary { flex-direction: column; align-items: flex-start; } .stitch-sum__imgs img { width: 120px; } }

/* صفحة التصميم والمعرض */
.prose h2 { display: inline-block; margin: 28px 0 8px; padding: 4px 16px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); background: linear-gradient(120deg, #F0D58E, #D6AE5A); border-radius: 2px; clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.prose h2 + p, .prose h2 + ul { margin-top: 6px; }
.gallery__main { box-shadow: 0 24px 34px -22px rgba(40,20,10,.7); outline: 2px dashed rgba(162,114,42,.5); outline-offset: -10px; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.gallery__thumb { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 2px; overflow: hidden; opacity: .65; transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); width: 84px; }
.gallery__thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
.gallery__thumb:hover { opacity: 1; transform: translateY(-3px) rotate(-1deg); }
.gallery__thumb.is-active { opacity: 1; box-shadow: 0 0 0 3px var(--gold); }
.design__cta { padding: 22px; background-color: var(--cream); background-image: var(--grain), var(--weave); outline: 2px dashed rgba(162,114,42,.55); outline-offset: -8px; display: flex; flex-direction: column; gap: 14px; }

/* أيقونات التواصل، موافقة الزائرة، صفحة المتابعة */
.f-social { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 4px 0 34px; }
.f-social a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--gold-hi);
  background: rgba(255,244,222,.06); outline: 1.5px dashed rgba(226,190,112,.5); outline-offset: -5px; transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .3s, color .3s; }
.f-social svg { width: 24px; height: 24px; }
.f-social a:hover { transform: translateY(-5px) rotate(-8deg); background: var(--gold); color: var(--ink); }
.f-cookie { font-size: 13px; opacity: .8; }

.consent { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 16px 20px; background-color: var(--cream); background-image: var(--grain), var(--weave); color: var(--ink); outline: 2px dashed rgba(162,114,42,.6); outline-offset: -7px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); animation: tzdialog .5s cubic-bezier(.2,.9,.3,1.1); }
.consent p { margin: 0; font-size: 15px; line-height: 1.7; flex: 1 1 280px; }
.consent__btns { display: flex; gap: 10px; }

.track-form, .track-card { max-width: 760px; display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 4vw, 40px);
  background-color: var(--cream); background-image: var(--grain), var(--weave); outline: 2px dashed rgba(162,114,42,.6); outline-offset: -10px; box-shadow: 0 24px 34px -22px rgba(40,20,10,.6); }
.track-steps { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.track-steps::before { content: ''; position: absolute; top: 15px; inset-inline: 16.6%; height: 2px; background: repeating-linear-gradient(90deg, rgba(162,114,42,.5) 0 8px, transparent 8px 14px); }
.track-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.track-step__knot { width: 30px; height: 30px; border-radius: 50%; background: var(--linen-2); box-shadow: inset 0 0 0 2px rgba(162,114,42,.55); position: relative; z-index: 1; margin-bottom: 8px; }
.track-step strong { font-family: var(--display); font-size: 18px; color: #8d7a5e; }
.track-step small { color: var(--muted); font-size: 13px; }
.track-step.is-done .track-step__knot { background: var(--gold); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--gold); }
.track-step.is-done strong, .track-step.is-now strong { color: var(--ink); }
.track-step.is-now .track-step__knot { background: var(--ink); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--gold-lo); animation: tzpulse 2s ease-in-out infinite; }
@keyframes tzpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.track-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.track-dl dt { color: var(--gold-lo); font-weight: 700; }
.track-dl dd { margin: 0; }

.art-kicker { display: inline-block; align-self: flex-start; padding: 4px 16px; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--ink); background: linear-gradient(120deg, #F0D58E, #D6AE5A); clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 10px)); }
