/* ==========================================================================
   Arkeno Web Development — style.css
   1. Tokens   2. Base   3. Layout & utilities   4. Buttons
   5. Header/nav   6. Hero   7. Sections   8. Services   9. Packages
   10. Projects   11. How it works   12. About   13. FAQ   14. Final CTA
   15. Contact form   16. Footer   17. Animations   18. Responsive   19. Reduced motion
   ========================================================================== */

/* ---------- 1. TOKENS ----------
   Brand colors sampled directly from the supplied logo files:
   coral #EA5859, charcoal #303030, white #FFFFFF.
   Derived shades are for accessible contrast (WCAG AA). */
:root {
  /* Brand (from logo) */
  --brand: #EA5859;          /* logo coral: shapes, icons, borders, highlights */
  --ink: #303030;            /* logo charcoal: dark surfaces, body text */
  --white: #FFFFFF;          /* logo white */

  /* Derived brand shades */
  --brand-strong: #C93C3D;   /* button fill / coral text on light — 5.0:1 with white */
  --brand-deep: #B03233;     /* hover/pressed */
  --brand-on-dark: #F28A8B;  /* coral text on charcoal — 5.5:1 */
  --brand-soft: #FCE9E9;     /* tinted backgrounds */
  --brand-glow: rgba(234, 88, 89, .35);

  /* Neutrals */
  --ink-deep: #242424;
  --ink-raised: #3A3A3A;
  --paper: #FAF8F6;
  --surface: #FFFFFF;
  --tint: #F3F0EC;
  --line: #E6E1DC;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #303030;
  --muted: #5E5955;          /* 6.5:1 on paper */
  --muted-on-dark: #B9B3AE;  /* 6.4:1 on charcoal */

  --success: #1F7A4D;
  --success-soft: #E5F3EC;
  --error: #B42318;
  --warning-soft: #FFF4E0;
  --warning-ink: #7A4B00;

  /* Typography — system fonts with Burmese-capable fallbacks */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial,
               "Noto Sans Myanmar", "Myanmar Text", "Padauk", "Pyidaungsu", sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem);

  /* Space, shape, motion */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(48, 48, 48, .06), 0 2px 8px rgba(48, 48, 48, .05);
  --shadow: 0 10px 30px -12px rgba(48, 48, 48, .22);
  --shadow-lg: 0 24px 60px -20px rgba(36, 36, 36, .45);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t: .32s;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Burmese script needs extra line height */
:lang(my) { line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
em { font-style: normal; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .site-header :focus-visible { outline-color: var(--brand-on-dark); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 3. LAYOUT & UTILITIES ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; transform: translateY(-200%);
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; box-shadow: var(--shadow); transition: transform var(--t-fast);
}
.skip-link:focus { transform: none; }
.text-accent { color: var(--brand); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--brand-on-dark); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { transition: transform var(--t-fast) var(--ease); }
.btn:hover .icon, .btn:focus-visible .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { min-height: 40px; padding: 8px 18px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn--primary { --btn-bg: var(--brand-strong); --btn-fg: var(--white); box-shadow: 0 8px 20px -10px var(--brand-glow); }
.btn--primary:hover, .btn--primary:focus-visible { --btn-bg: var(--brand-deep); color: var(--white); box-shadow: 0 12px 26px -10px var(--brand-glow); }

.btn--outline { --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover, .btn--outline:focus-visible { --btn-bg: var(--ink); --btn-fg: var(--white); color: var(--white); }

.btn--ghost-light { --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.35); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { --btn-bd: var(--white); --btn-bg: rgba(255,255,255,.08); color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: none; color: var(--brand-strong);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon, .link-arrow:focus-visible .icon { transform: translate(2px, -2px); }
.link-arrow:hover { text-decoration: underline; }

/* Loading state */
.btn__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white);
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn__spinner { display: inline-block; }

/* ---------- 5. HEADER / NAV ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(48, 48, 48, 0);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), backdrop-filter var(--t);
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(36, 36, 36, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px -18px rgba(0,0,0,.6);
}
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand__mark { width: 40px; height: 33px; transition: transform var(--t) var(--ease-out); }
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__name { font-size: 1.5rem; font-weight: 800; font-style: italic; letter-spacing: -.02em; }

.nav__menu { margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; display: block; padding: 10px 12px;
  color: rgba(255,255,255,.82); text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--radius-sm); transition: color var(--t-fast);
}
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease-out);
}
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-dark); border-radius: 12px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle-bar { width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: transform var(--t) var(--ease), opacity var(--t-fast); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, #3b3b3b 0%, var(--ink) 55%, var(--ink-deep) 100%);
  color: var(--white);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(36px, 5vw, 56px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
/* Angular shapes echo the logo's cut parallelograms */
.shape { position: absolute; display: block; opacity: .55; will-change: transform; }
.shape--1 { width: 160px; height: 56px; top: 16%; left: -40px; background: var(--brand); clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); opacity: .18; animation: float 14s var(--ease) infinite alternate; }
.shape--2 { width: 90px; height: 90px; top: 70%; left: 42%; border: 2px solid var(--brand); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); opacity: .25; animation: float 18s var(--ease) infinite alternate-reverse; }
.shape--3 { width: 240px; height: 18px; top: 12%; right: 6%; background: rgba(255,255,255,.08); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); animation: drift 16s var(--ease) infinite alternate; }
.shape--4 { width: 380px; height: 380px; bottom: -200px; right: -120px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 65%); opacity: .7; animation: pulse-soft 9s ease-in-out infinite; }

.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: var(--fs-h1); letter-spacing: -.035em; line-height: 1.04; margin-bottom: 22px; }
.hero__lead { font-size: var(--fs-lg); color: var(--muted-on-dark); max-width: 34ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--fs-sm); color: var(--muted-on-dark); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--brand-on-dark); width: 1.1em; height: 1.1em; }
.hero__note { margin-top: 28px; font-size: var(--fs-xs); color: var(--muted-on-dark); text-align: right; }

/* Hero entrance (pure CSS, so it also runs without JS) */
.hero__reveal { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }

/* Browser mockup */
.hero__preview { position: relative; margin: 0; }
.browser {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease-out);
}
.hero__preview:hover .browser { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #EFECE8; border-bottom: 1px solid var(--line); }
.browser__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #D6D0CA; }
.browser__bar .dot:first-child { background: var(--brand); }
.browser__url { margin-left: 10px; flex: 1; max-width: 220px; padding: 3px 12px; border-radius: 999px; background: var(--white); font-size: 12px; color: var(--muted); }
.mock-shop { padding: 16px; display: grid; gap: 14px; }
.mock-shop__nav { display: flex; align-items: center; gap: 10px; }
.mock-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); }
.mock-cart { margin-left: auto; position: relative; color: var(--ink); }
.mock-cart b { position: absolute; top: -7px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--brand-strong); color: var(--white); font-size: 10px; line-height: 16px; text-align: center; }
.mock-line { display: block; height: 9px; border-radius: 99px; background: #E4DFDA; }
.mock-line.light { background: rgba(255,255,255,.55); }
.w-20 { width: 20%; } .w-30 { width: 30%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; }
.mock-shop__banner {
  display: grid; gap: 8px; align-content: center; padding: 22px 18px; min-height: 120px; border-radius: 12px;
  background: linear-gradient(120deg, var(--ink) 0%, #4a3a3a 100%);
  position: relative; overflow: hidden;
}
.mock-shop__banner::after { content: ""; position: absolute; right: -20px; top: -10px; width: 140px; height: 160px; background: var(--brand); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); opacity: .9; }
.mock-pill { justify-self: start; margin-top: 6px; padding: 5px 12px; border-radius: 99px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 700; }
.mock-shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-product { display: grid; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.hero__preview:hover .mock-product:nth-child(2) { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.mock-img { aspect-ratio: 1; border-radius: 7px; }
.img-a { background: linear-gradient(135deg, #F5D9D9, #EA5859); }
.img-b { background: linear-gradient(135deg, #E9E5E1, #9B948E); }
.img-c { background: linear-gradient(135deg, #3A3A3A, #707070); }
.mock-price { font-size: 11px; font-weight: 800; color: var(--ink); }

.hero__tg-card {
  position: absolute; left: -28px; bottom: -26px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.35;
  animation: bob 6s ease-in-out 1.4s infinite;
}
.hero__tg-card b { display: block; font-size: 14px; }
.hero__tg-card span { color: var(--muted); }
.tg-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.tg-avatar .icon { width: 18px; height: 18px; }
.tg-send { padding: 6px 12px; border-radius: 99px; background: var(--brand-strong); color: var(--white) !important; font-weight: 700; font-size: 12px; }

/* ---------- 7. SECTIONS ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__title { font-size: var(--fs-h2); margin-bottom: 16px; }
.section__lead { font-size: var(--fs-lg); color: var(--muted); }
.section--dark .section__lead { color: var(--muted-on-dark); }

/* ---------- 8. SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong);
  transition: background-color var(--t), color var(--t), transform var(--t) var(--ease-out);
}
.service-card:hover .service-card__icon { background: var(--brand-strong); color: var(--white); transform: rotate(-6deg); }
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 9. PACKAGES ---------- */
.packages-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 18px; align-items: stretch; }
.package {
  --bd-angle: 0deg;
  position: relative; display: flex; flex-direction: column;
  padding: 30px 24px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
/* Animated gradient border on hover/focus */
.package::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--bd-angle), var(--brand), transparent 30%, transparent 60%, var(--brand) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.package:hover, .package:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); }
.package:hover::before, .package:focus-within::before { opacity: 1; animation: border-spin 3.5s linear infinite; }
@property --bd-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.package--featured { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.package--featured .package__desc, .package--featured .package__note, .package--featured .package__unit { color: var(--muted-on-dark); }
.package--featured .package__list .icon { color: var(--brand-on-dark); }
.package__tag {
  position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 99px;
  background: var(--brand-strong); color: var(--white); font-size: var(--fs-xs); font-weight: 700;
}
.package__name { font-size: var(--fs-h3); margin-bottom: 14px; }
.package__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 12px; }
.package__amount { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.package__unit { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.package__desc { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 18px; }
.package__list { display: grid; gap: 10px; margin-bottom: 20px; font-size: var(--fs-sm); }
.package__list li { display: flex; gap: 10px; align-items: flex-start; }
.package__list .icon { color: var(--brand-strong); margin-top: 2px; width: 1.1em; height: 1.1em; }
.package__note { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 18px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.package .btn { margin-top: auto; }

.benefit {
  display: grid; grid-template-columns: auto 1fr minmax(220px, 320px); gap: 20px 28px; align-items: center;
  margin-top: 28px; padding: 26px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
}
.benefit__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-strong); }
.benefit__icon .icon { width: 30px; height: 30px; }
.benefit h3 { font-size: 1.35rem; margin-bottom: 6px; }
.benefit__body p { color: var(--muted); }
.benefit__aside { font-size: var(--fs-sm); color: var(--muted); padding: 14px 16px; border-radius: var(--radius); background: var(--tint); }
.benefit__aside strong { color: var(--ink); }

/* ---------- 10. PROJECTS ---------- */
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: var(--tint); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
}
.chip--brand { background: var(--brand-soft); color: var(--brand-strong); }
.project {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.project:hover, .project:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); }
.project__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.project__media img, .project__placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .7s var(--ease-out);
}
.project:hover .project__media img, .project:focus-within .project__media img,
.project:hover .project__placeholder, .project:focus-within .project__placeholder { transform: scale(1.05); }
.project__placeholder {
  display: grid; place-content: center; gap: 6px; text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(48,48,48,.04) 14px 28px),
    linear-gradient(160deg, var(--tint), #E9E4DE);
  color: var(--muted);
}
.ph-label { font-weight: 800; color: var(--ink); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; }
.ph-file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.project__media img.is-missing { display: none; }

.project__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; flex: 1; }
.project__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.project__flag { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.project__title { font-size: 1.4rem; }
.project__desc { color: var(--muted); font-size: var(--fs-sm); }
.project__features { display: grid; gap: 8px; font-size: var(--fs-sm); }
.project__features li { display: flex; gap: 10px; align-items: flex-start; }
.project__features .icon { color: var(--brand-strong); width: 1.05em; height: 1.05em; margin-top: 3px; }
.project__stack { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .03em; margin-top: auto; padding-top: 6px; }
.project .btn, .project .link-arrow { align-self: flex-start; }

.project--featured { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 24px; }
.project--featured .project__media { aspect-ratio: auto; min-height: 380px; }
.project--featured .project__body { padding: clamp(26px, 3.5vw, 44px); justify-content: center; }
.project--featured .project__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
.project--featured .project__stack { margin-top: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- 11. HOW IT WORKS ---------- */
.section--dark .section__head { margin-bottom: clamp(48px, 6vw, 72px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
/* progress line behind the step numbers */
.steps::before, .steps::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 222px; height: 2px; border-radius: 2px;
}
.steps::before { background: var(--line-dark); }
.steps::after { background: var(--brand); transform-origin: left; transform: scaleX(var(--progress, 1)); transition: transform 1.1s var(--ease-out); }
.js .steps:not(.is-visible)::after { --progress: 0; }

.step { position: relative; display: flex; flex-direction: column; }
.step__visual {
  height: 180px; margin-bottom: 20px; padding: 16px; border-radius: var(--radius);
  background: var(--ink-raised); border: 1px solid var(--line-dark);
  display: grid; place-items: center; overflow: hidden;
  transition: border-color var(--t), transform var(--t) var(--ease);
}
.step:hover .step__visual { border-color: rgba(234,88,89,.5); transform: translateY(-3px); }
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--brand);
  color: var(--white); font-weight: 800; font-size: var(--fs-sm);
  box-shadow: 0 0 0 6px var(--ink);
}
.step__title { font-size: var(--fs-h3); margin-bottom: 8px; }
.step p { color: var(--muted-on-dark); font-size: var(--fs-sm); }
.step em { color: var(--white); }

/* staggered reveal for steps */
.js .step { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms); }
.js .steps.is-visible .step { opacity: 1; transform: none; }

/* Mini UI illustrations */
.ui { width: 100%; max-width: 220px; }
.ui--catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-tile { display: block; padding: 6px; border-radius: 8px; background: #4a4a4a; transition: transform var(--t) var(--ease); }
.ui-tile i { display: block; aspect-ratio: 1.6; border-radius: 5px; }
.ui-tile.is-hover { outline: 2px solid var(--brand); transform: scale(1.04); }
.ui--options { display: grid; gap: 12px; }
.ui-row { display: flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 22px; border-radius: 50%; display: block; border: 2px solid transparent; }
.sw-1 { background: #1f1f1f; } .sw-2 { background: #F4F1EE; } .sw-3 { background: var(--brand); }
.sw.is-on { box-shadow: 0 0 0 2px var(--ink-raised), 0 0 0 4px var(--brand-on-dark); }
.size { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 1px solid #5a5a5a; font-size: 12px; color: var(--muted-on-dark); font-weight: 700; }
.size.is-on { background: var(--white); color: var(--ink); border-color: var(--white); }
.qty { margin-left: auto; padding: 4px 8px; border-radius: 7px; background: #4a4a4a; font-size: 12px; color: var(--white); font-weight: 700; white-space: nowrap; }
.ui-btn { flex: 1; display: block; padding: 7px 8px; border-radius: 8px; background: var(--brand-strong); color: var(--white); font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; }
.ui-btn.ghost { background: transparent; border: 1px solid #6a6a6a; color: var(--muted-on-dark); }
.ui--form { display: grid; gap: 8px; }
.ui-field { display: block; padding: 7px 10px; border-radius: 7px; background: #4a4a4a; font-size: 11px; color: var(--muted-on-dark); }
.ui-field i { font-style: normal; }
.ui-field.tall { padding-bottom: 20px; }
.ui--tg { display: grid; gap: 10px; }
.tg-bubble { justify-self: end; display: grid; gap: 2px; max-width: 90%; padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: #EFFDDE; color: #1f2d17; font-size: 11px; line-height: 1.45; }
.tg-bubble b { font-size: 12px; }
.tg-input { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 99px; background: #4a4a4a; font-size: 11px; color: var(--muted-on-dark); }
.tg-input span:first-child { flex: 1; }
.tg-send-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2AABEE; color: var(--white); animation: nudge 2.4s ease-in-out infinite; }
.tg-send-btn .icon { width: 14px; height: 14px; }

.how-note {
  display: grid; gap: 8px; max-width: 820px; margin: clamp(40px, 5vw, 60px) auto 0; padding: 22px 26px;
  border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); text-align: center;
}
.how-note strong { color: var(--brand-on-dark); }
.how-note__small { font-size: var(--fs-sm); color: var(--muted-on-dark); }

/* ---------- 12. ABOUT ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__brand {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 440px; width: 100%;
  border-radius: 32px; background: var(--ink); overflow: hidden;
  --logo-light: #FFFFFF;
}
.about__brand::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about__mark { position: relative; width: 58%; height: auto; aspect-ratio: 1216 / 995; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); transition: transform .8s var(--ease-out); }
.about__brand:hover .about__mark { transform: scale(1.04) rotate(-2deg); }
.about__copy > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); margin-bottom: 26px; }
.about__values { display: grid; gap: 14px; }
.about__values li { position: relative; padding: 16px 18px 16px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.about__values li::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.about__values strong { color: var(--ink); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t), box-shadow var(--t); }
.faq__item[open] { border-color: rgba(234,88,89,.5); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); transition: transform var(--t) var(--ease), background-color var(--t), color var(--t); }
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--brand-strong); color: var(--white); }
.faq__item summary:hover { color: var(--brand-strong); }
.faq__answer { padding: 0 22px 22px; color: var(--muted); }
.faq__item[open] .faq__answer { animation: fade-down .35s var(--ease-out); }

/* ---------- 14. FINAL CTA ---------- */
.final-cta { padding-block: 0 var(--section-y); background: linear-gradient(var(--tint) 50%, var(--paper) 50%); }
.final-cta__box {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: 28px;
  background: var(--ink); color: var(--white);
}
.final-cta__box::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: 50%; top: -260px;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 65%);
  animation: pulse-soft 6s ease-in-out infinite;
}
.final-cta__box::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -30px; width: 220px; height: 110px;
  background: var(--brand); opacity: .18; clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.final-cta h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.final-cta p { color: var(--muted-on-dark); max-width: 52ch; margin: 0 auto 30px; font-size: var(--fs-lg); }
.final-cta__btn { animation: cta-glow 3.2s ease-in-out infinite; }

/* ---------- 15. CONTACT & FORM ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__list { display: grid; gap: 14px; margin-top: 28px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }
.contact__label { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { font-weight: 700; color: var(--ink); word-break: break-word; }

.quote-form {
  display: grid; gap: 18px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-banner { padding: 14px 16px; border-radius: var(--radius); background: var(--warning-soft); color: var(--warning-ink); font-size: var(--fs-sm); border: 1px solid #F1D7A8; }
.form-banner strong { display: block; margin-bottom: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.req { color: var(--brand-strong); }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  font-size: 1rem; /* 16px avoids iOS zoom */
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8A847F; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CFC8C1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-strong); background: var(--white); box-shadow: 0 0 0 4px rgba(234,88,89,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #FFF8F7; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__error { font-size: var(--fs-xs); color: var(--error); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status { padding: 16px 18px; border-radius: var(--radius); font-size: var(--fs-sm); outline: none; }
.form-status.is-success { background: var(--success-soft); color: var(--success); border: 1px solid #B9DFCB; }
.form-status.is-error { background: #FDECEA; color: var(--error); border: 1px solid #F4C7C2; }
.form-status.is-info { background: var(--warning-soft); color: var(--warning-ink); border: 1px solid #F1D7A8; }
.form-status strong { display: block; margin-bottom: 4px; }
.form-status .btn { margin-top: 12px; }
.form-status__hint { margin-top: 8px; }

/* ---------- 16. FOOTER ---------- */
.site-footer { background: var(--ink-deep); color: var(--muted-on-dark); padding-top: clamp(56px, 7vw, 80px); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer__brand p { margin-top: 16px; max-width: 34ch; }
.footer__col h3 { font-size: var(--fs-sm); color: var(--white); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.site-footer a:not(.btn):not(.brand) { color: var(--muted-on-dark); text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--white); text-decoration: underline; }
.footer__social { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer .footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); font-size: 1.15rem; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
.social-icon { width: 1em; height: 1em; }
.social-icon--tiktok { width: .875em; }
.social-icon--facebook { width: .625em; }
.social-icon--youtube { width: 1.125em; }
.site-footer .footer__social a:hover { color: var(--white); background: rgba(255, 255, 255, .08); border-color: var(--muted-on-dark); text-decoration: none; }
.footer__cta p { margin-bottom: 16px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }

/* ---------- 17. ANIMATIONS ---------- */
/* Scroll reveal: hidden only when JS is running (content always visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(40px, -30px, 0) rotate(8deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@keyframes pulse-soft { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .85; transform: scale(1.08); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes nudge { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes border-spin { to { --bd-angle: 360deg; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes cta-glow { 0%, 100% { box-shadow: 0 8px 20px -10px var(--brand-glow), 0 0 0 0 rgba(234,88,89,0); } 50% { box-shadow: 0 8px 20px -10px var(--brand-glow), 0 0 0 10px rgba(234,88,89,.12); } }

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit { grid-template-columns: auto 1fr; }
  .benefit__aside { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before, .steps::after { display: none; }
  .step__visual { height: auto; min-height: 180px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .nav__toggle { display: inline-flex; }
  .nav__actions { margin-left: auto; }
  .nav__cta { display: none; }
  .nav__menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    display: flex; flex-direction: column; gap: 24px;
    padding: 24px var(--gutter) 32px; margin: 0;
    background: var(--ink-deep); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links li { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
  .nav__menu.is-open .nav__links li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
  .nav__links a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav__links a::after { left: 4px; right: auto; width: 28px; bottom: -1px; }
  .nav__cta-mobile { display: inline-flex; min-height: 54px; }
  body.menu-open { overflow: hidden; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__lead { max-width: 52ch; }
  .hero__preview { max-width: 560px; margin-inline: auto; width: 100%; }
  .browser { transform: none; }
  .hero__tg-card { left: 8px; }
  .hero__note { text-align: center; margin-top: 44px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project--featured { grid-template-columns: 1fr; }
  .project--featured .project__media { min-height: 0; aspect-ratio: 16 / 10; }
  .about, .faq, .contact { grid-template-columns: 1fr; }
  .about__brand { max-width: 320px; margin-inline: auto; }
  .faq .section__head { position: static; }
}

@media (max-width: 640px) {
  .services-grid, .packages-grid, .projects-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .benefit { grid-template-columns: 1fr; padding: 22px; border-left-width: 1px; border-top: 5px solid var(--brand); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .mock-shop__grid { gap: 6px; }
  .hero__tg-card { position: relative; left: auto; bottom: auto; margin: -20px 12px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }
  .package--featured { margin-top: 10px; }
}

/* Touch devices: don't rely on hover; keep cards static */
@media (hover: none) {
  .service-card:hover, .project:hover, .package:hover { transform: none; }
}

/* ---------- 19. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .shape, .hero__tg-card, .tg-send-btn, .final-cta__btn, .final-cta__box::before { animation: none !important; }
  .js .reveal, .js .step { opacity: 1; transform: none; }
  .browser { transform: none; }
}
