/* ============================================================
   DS Creative Studio — site stylesheet
   Single-brand site: landing pages and business sites.
   Plain CSS, no build step, no framework.

   Palette (from the brief's design direction):
   deep plum-charcoal, warm stone, smoky sand,
   terracotta as the action color, light copper as light/detail.
   ============================================================ */

:root {
  --plum-900: #1c1620;
  --plum-800: #2a2230;
  --plum-700: #3a3040;
  --plum-600: #4d4154;

  --stone-50: #f8f3eb;
  --stone-100: #f1eadf;
  --stone-200: #e7dccc;
  --stone-300: #d8cab5;

  --terracotta: #b3542c;   /* was #b8582f: minimal shift for WCAG AA contrast (white text 4.97:1) */
  --terracotta-deep: #9c4726;
  --terracotta-soft: #c9744f;
  --copper: #d6a46c;
  --copper-light: #ecd2ab;

  --ink: #2a2230;
  --ink-70: rgba(42, 34, 48, 0.74);
  --ink-55: rgba(42, 34, 48, 0.6);
  --line: rgba(42, 34, 48, 0.12);
  --line-strong: rgba(42, 34, 48, 0.22);

  --on-dark: #f1eadf;
  --on-dark-70: rgba(241, 234, 223, 0.76);
  --on-dark-line: rgba(241, 234, 223, 0.14);
  --on-dark-line-strong: rgba(241, 234, 223, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 18px 50px -20px rgba(42, 34, 48, 0.35);
  --shadow-lift: 0 30px 70px -30px rgba(42, 34, 48, 0.45);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 76px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stone-50);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; 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; top: -100px; inset-inline-start: 16px; z-index: 10000;
  padding: 12px 18px; background: var(--ink); color: var(--on-dark);
  font-weight: 700; border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 14px; }

/* ============================================================
   Type scale
   ============================================================ */

.display {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 34ch;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.section-head .lead { margin-top: 14px; max-width: 52ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.on-dark { color: var(--on-dark); }
.on-dark .lead { color: var(--on-dark-70); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out),
              color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(184, 88, 47, 0.7);
}
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-2px); }

.btn-ghost {
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(42, 34, 48, 0.04); }

.on-dark .btn-ghost { border-color: var(--on-dark-line-strong); color: var(--on-dark); }
.on-dark .btn-ghost:hover { border-color: var(--on-dark); background: rgba(241, 234, 223, 0.06); }

.btn-wa { background: #1f7a53; color: #fff; }
.btn-wa:hover { background: #17603f; transform: translateY(-2px); }

.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 243, 235, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  direction: ltr; unicode-bidi: isolate;
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em;
}
.brand span { font-weight: 400; color: var(--ink-70); letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-weight: 500; font-size: 0.98rem; color: var(--ink-70);
  padding: 8px 2px; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 2px; bottom: 2px; height: 2px;
  background: var(--terracotta); border-radius: 2px;
  transform: scaleX(0); transform-origin: var(--origin-start, right);
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
}
.nav-toggle span {
  position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--stone-50);
  padding: calc(var(--nav-h) + 24px) 24px 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.mobile-menu.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu a {
  font-size: 1.6rem; font-weight: 800; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
.mobile-menu a.btn { padding: 0 26px; font-size: 1rem; }   /* the menu's big-link style left the buttons with no side padding */
.mobile-menu .menu-note { margin-top: auto; color: var(--ink-55); font-size: 0.95rem; }

/* ============================================================
   Sections + surfaces with depth
   ============================================================ */

section { position: relative; }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }

.surface-dark {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(214, 164, 108, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(184, 88, 47, 0.18), transparent 60%),
    linear-gradient(180deg, var(--plum-800), var(--plum-900));
  color: var(--on-dark);
}

.surface-sand {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(214, 164, 108, 0.22), transparent 60%),
    linear-gradient(180deg, var(--stone-200), var(--stone-100));
}

.surface-stone {
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(184, 88, 47, 0.08), transparent 60%),
    var(--stone-50);
}

/* Grain: one tiny SVG noise at very low opacity, sits over everything.
   Gives the flat gradients a print-like texture without looking dirty. */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Copper hairline that crosses a section edge: a detail, not a divider bar. */
.copper-rule {
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper) 30%, var(--copper) 70%, transparent);
  opacity: 0.55;
}

/* Floating abstract shapes (react gently to the pointer via JS) */
.shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.shape {
  position: absolute; border-radius: 50%;
  will-change: transform;
  transition: transform 0.9s var(--ease-out);
}
.shape-bloom {
  width: 52vw; height: 52vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 50% 50%, rgba(184, 88, 47, 0.28), rgba(184, 88, 47, 0) 62%);
  filter: blur(10px);
}
.shape-bloom-2 {
  width: 44vw; height: 44vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle at 50% 50%, rgba(214, 164, 108, 0.35), rgba(214, 164, 108, 0) 62%);
  filter: blur(14px);
}
.shape-ring {
  width: 320px; height: 320px;
  border: 1.5px solid rgba(184, 88, 47, 0.35);
  background: transparent;
}
.shape-disc {
  width: 140px; height: 140px;
  background: linear-gradient(135deg, var(--plum-800), var(--plum-600));
  box-shadow: var(--shadow-lift);
  opacity: 0.9;
}
.shape-plate {
  width: 260px; height: 160px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(214, 164, 108, 0.5), rgba(236, 210, 171, 0.2));
  border: 1px solid rgba(214, 164, 108, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@keyframes drift {
  0%   { translate: 0 0; }
  50%  { translate: 0 -14px; }
  100% { translate: 0 0; }
}
.floaty { animation: drift 7s ease-in-out infinite; }
.floaty.d2 { animation-duration: 9s; animation-delay: -3s; }
.floaty.d3 { animation-duration: 11s; animation-delay: -5s; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1100px 700px at 10% 20%, rgba(214, 164, 108, 0.22), transparent 60%),
    linear-gradient(180deg, var(--stone-100) 0%, var(--stone-50) 100%);
}
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink-70);
  margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--terracotta); border-radius: 2px;
}

.hero .display { max-width: none; }
.hero .lead { margin-top: 18px; max-width: 48ch; }

.price-strip {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.price-cell { padding: 14px 18px; }
.price-cell + .price-cell { border-inline-start: 1px solid var(--line); }
.price-cell .label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink-70); }
.price-cell .amount {
  display: block; margin-top: 2px;
  font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.1;
}
.price-cell .amount small { font-size: 0.55em; font-weight: 700; margin-inline-start: 4px; color: var(--ink-70); }
.price-foot {
  grid-column: 1 / -1;
  padding: 10px 18px; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  background: rgba(214, 164, 108, 0.14);
}

.price-cell .amount .from { font-size: 0.5em; font-weight: 700; color: var(--ink-70); margin-inline-end: 4px; vertical-align: 0.15em; }
.price-cell .sub { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--ink-55); }

.hero-helper { margin-top: 20px; font-weight: 600; color: var(--ink); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-55); max-width: 52ch; }
.hero-tertiary { color: var(--terracotta-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.package .from { font-size: 1.1rem; font-weight: 700; color: var(--ink-70); align-self: center; }
.package .alt-link { display: inline-block; margin-top: 12px; margin-inline-start: 4px; font-size: 0.92rem; font-weight: 600; color: var(--ink-70); text-decoration: underline; text-underline-offset: 3px; }
.package .alt-link:hover { color: var(--ink); }

.dual-cta {
  margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg); background: var(--plum-800); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  box-shadow: var(--shadow-lift);
}
.dual-cta p { margin-top: 6px; color: var(--on-dark-70); max-width: 48ch; }
.dual-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dual-cta .btn-ghost { border-color: var(--on-dark-line-strong); color: var(--on-dark); }
.dual-cta .btn-ghost:hover { border-color: var(--on-dark); background: rgba(241, 234, 223, 0.06); }

.contact-self { margin-top: 14px; color: var(--on-dark-70); font-size: 0.98rem; }
.contact-self a { color: var(--copper-light); text-decoration: underline; text-underline-offset: 3px; }

/* Layered mockups: a desktop frame and a phone frame with real screenshots */
.hero-visual {
  position: relative; min-height: 440px;
}
.mock {
  position: absolute; border-radius: 16px; overflow: hidden;
  background: var(--plum-900);
  box-shadow: 0 44px 90px -34px rgba(42, 34, 48, 0.6), 0 20px 40px -22px rgba(42, 34, 48, 0.4), 0 0 0 1px rgba(42, 34, 48, 0.08);
  will-change: transform;
}
.mock img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.mock-desktop {
  inset-inline-end: 0; top: 6%;
  width: 88%; aspect-ratio: 16 / 10;
  padding-top: 26px;
}
.mock-desktop::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 26px;
  background: var(--plum-800);
  background-image: radial-gradient(circle, var(--copper) 3px, transparent 3.5px),
                    radial-gradient(circle, var(--copper-light) 3px, transparent 3.5px),
                    radial-gradient(circle, var(--terracotta-soft) 3px, transparent 3.5px);
  background-size: 14px 14px; background-repeat: no-repeat;
  background-position: calc(100% - 12px) 6px, calc(100% - 28px) 6px, calc(100% - 44px) 6px;
}

.mock-phone {
  inset-inline-start: 3%; bottom: -7%;
  width: 30%; max-width: 210px; aspect-ratio: 9 / 19.2;
  border-radius: 30px; padding: 10px;
  background: var(--plum-900);
  rotate: -4deg;
  box-shadow: 0 50px 90px -30px rgba(42, 34, 48, 0.7), 0 22px 40px -20px rgba(42, 34, 48, 0.45), 0 0 0 1px rgba(42, 34, 48, 0.2);
}
.mock-phone img { border-radius: 22px; }
.mock-phone::after {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 18px; border-radius: 0 0 12px 12px; background: var(--plum-900);
}

.hero-visual .shape-plate { inset-inline-end: -40px; bottom: 10%; z-index: -1; }
.hero-visual .shape-ring { inset-inline-start: 18%; top: -40px; z-index: -1; }

/* ============================================================
   Work / portfolio
   ============================================================ */

.work-list { display: grid; gap: clamp(56px, 8vw, 110px); }

.work {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.work:nth-child(even) .work-visual { order: 2; }

.work-visual { position: relative; }
.work-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--plum-700);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--on-dark-line);
  aspect-ratio: 16 / 10;
}
.work-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);
}
.work-frame .img-mobile { opacity: 0; object-fit: contain; background: var(--plum-800); }
.work-frame[data-view="mobile"] .img-desktop { opacity: 0; }
.work-frame[data-view="mobile"] .img-mobile { opacity: 1; }

.view-switch {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  display: inline-flex; padding: 4px; gap: 2px;
  border-radius: 999px; background: rgba(28, 22, 32, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--on-dark-line-strong);
}
.view-switch button {
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--on-dark-70);
  transition: background 0.25s, color 0.25s;
}
.view-switch button[aria-pressed="true"] { background: var(--on-dark); color: var(--plum-900); }

.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--on-dark-line-strong); color: var(--on-dark-70);
}
.tag.demo { background: rgba(214, 164, 108, 0.14); border-color: rgba(214, 164, 108, 0.5); color: var(--copper-light); }
.tag.live { background: rgba(31, 122, 83, 0.18); border-color: rgba(31, 122, 83, 0.5); color: #bfe7d1; }
.tag.client { background: rgba(31, 122, 83, 0.22); border-color: rgba(31, 122, 83, 0.6); color: #bfe7d1; }

/* "what was built" list + demo note inside a portfolio card (dark surface) */
.work-points-title { margin-top: 18px; color: var(--on-dark); font-weight: 700; font-size: 0.95rem; }
.work-points { margin-top: 8px; display: grid; gap: 6px; padding: 0; list-style: none; max-width: 52ch; }
.work-points li { position: relative; padding-inline-start: 20px; color: var(--on-dark-70); font-size: 0.98rem; line-height: 1.55; }
.work-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.work-demo-note { margin-top: 16px; font-size: 0.9rem; color: var(--on-dark-70); }

.work-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; }
.work-kind { margin-top: 6px; color: var(--on-dark-70); font-weight: 500; }
.work-desc { margin-top: 16px; color: var(--on-dark-70); max-width: 46ch; }

.detail-note {
  margin-top: 22px; padding: 16px 18px;
  border-inline-start: 2px solid var(--copper);
  background: rgba(241, 234, 223, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
[dir="rtl"] .detail-note { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.detail-note strong { display: block; color: var(--copper-light); font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 4px; }
.detail-note p { color: var(--on-dark-70); font-size: 0.98rem; }

.work-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.work-footnote {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-70); font-size: 0.95rem; max-width: 70ch;
}

/* ============================================================
   Packages
   ============================================================ */

.packages {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.package {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.package::before {
  content: ""; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 164, 108, 0.35), transparent 65%);
  pointer-events: none;
}
.package.featured::before { background: radial-gradient(circle, rgba(184, 88, 47, 0.28), transparent 65%); }

.package-name { font-size: 1.2rem; font-weight: 800; }
.package-scope { color: var(--ink-70); margin-top: 4px; }

.package-price {
  margin-top: 22px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.package-price .amount { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.package-price .currency { font-size: 1.3rem; font-weight: 700; }
.package-price .once { width: 100%; font-weight: 600; color: var(--ink-70); font-size: 0.95rem; margin-top: 6px; }

.package-desc { margin-top: 18px; color: var(--ink-70); max-width: 40ch; }

.package-meta {
  margin-top: 22px; display: grid; gap: 10px;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(42, 34, 48, 0.05);
}
.package-meta div { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.package-meta svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--terracotta); }

.package .btn { margin-top: 24px; }

/* Native <details>, styled. Content animates open with a grid trick. */
.disclosure { margin-top: 18px; border-top: 1px solid var(--line); }
.disclosure summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; font-weight: 700;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .chev {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.disclosure summary .chev svg { width: 14px; height: 14px; }
.disclosure[open] summary .chev { transform: rotate(180deg); background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.disclosure .body { padding-bottom: 18px; }
.disclosure .body ul { display: grid; gap: 8px; }
.disclosure .body li { position: relative; padding-inline-start: 22px; font-size: 0.98rem; }
.disclosure .body li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta);
}
.disclosure .body .fine { margin-top: 14px; font-size: 0.9rem; color: var(--ink-55); }

.addons {
  margin-top: 28px; padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
}
.addons h3 { font-size: 1.15rem; font-weight: 800; }
.addons p { margin-top: 6px; color: var(--ink-70); max-width: 62ch; }
.addons .pledge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--ink); color: var(--on-dark); font-weight: 600; font-size: 0.95rem;
}
.addons .pledge svg { width: 18px; height: 18px; color: var(--copper); }

.maintenance { margin-top: 28px; }
.maintenance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.maint {
  padding: 22px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5);
}
.maint.zero { border-color: var(--ink); }
.maint .m-name { font-weight: 800; }
.maint .m-price { margin-top: 6px; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.maint .m-price small { font-size: 0.9rem; font-weight: 600; color: var(--ink-70); margin-inline-start: 4px; }
.maint ul { margin-top: 12px; display: grid; gap: 6px; font-size: 0.93rem; color: var(--ink-70); }
.maint li { padding-inline-start: 16px; position: relative; }
.maint li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.maintenance .fine { margin-top: 14px; font-size: 0.92rem; color: var(--ink-55); }

/* ============================================================
   Transparency ("Before we start, we sum up")
   ============================================================ */

.transparency .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.principles { display: grid; gap: 14px; margin-top: 28px; }
.principle {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(241, 234, 223, 0.05); border: 1px solid var(--on-dark-line);
}
.principle .num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
  background: var(--copper); color: var(--plum-900);
}
.principle p { color: var(--on-dark); font-weight: 500; }

/* Order summary mockup: a document, not a card */
.summary-doc {
  position: relative;
  background: var(--stone-50); color: var(--ink);
  border-radius: 14px; padding: 28px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.2deg);
}
.summary-doc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(42, 34, 48, 0.08); pointer-events: none;
}
.summary-doc .doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.summary-doc .doc-head strong { font-size: 1.1rem; }
.summary-doc .doc-head span { font-size: 0.8rem; color: var(--ink-70); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(214, 164, 108, 0.25); }
.summary-doc dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin-top: 16px; font-size: 0.98rem; }
.summary-doc dt { color: var(--ink-70); }
.summary-doc dd { font-weight: 600; text-align: end; }
.summary-doc .total { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; font-weight: 900; font-size: 1.15rem; }
.summary-doc .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.summary-doc .split div { padding: 10px 12px; border-radius: 10px; background: rgba(42, 34, 48, 0.06); font-size: 0.92rem; }
.summary-doc .split strong { display: block; font-size: 1.05rem; }
.summary-doc .approve {
  margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-70);
}
.summary-doc .approve i {
  width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--terracotta); display: grid; place-items: center;
}
.summary-doc .approve i::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--terracotta); }
.summary-doc .stamp {
  position: absolute; top: -14px; inset-inline-start: 20px;
  padding: 6px 12px; border-radius: 999px; background: var(--terracotta); color: #fff;
  font-size: 0.8rem; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(184, 88, 47, 0.8);
}

/* ============================================================
   Process timeline
   ============================================================ */

.timeline { position: relative; max-width: 760px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 22px;
  width: 2px; background: var(--line);
}
.timeline-progress {
  position: absolute; top: 0; inset-inline-start: 22px; width: 2px;
  height: var(--p, 0%); background: var(--terracotta);
  transition: height 0.2s linear;
}
.step {
  position: relative; padding-inline-start: 64px; padding-bottom: 36px;
}
.step:last-child { padding-bottom: 0; }
.step .dot {
  position: absolute; inset-inline-start: 12px; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--stone-50); border: 2px solid var(--line-strong);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--ink-70);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.step.done .dot { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.step h3 { font-size: 1.12rem; font-weight: 800; }
.step p { margin-top: 6px; color: var(--ink-70); max-width: 56ch; }
.step .pill {
  display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(184, 88, 47, 0.1); color: var(--terracotta-deep); font-size: 0.82rem; font-weight: 700;
}

/* ============================================================
   About
   ============================================================ */

.about .container {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.about .h2 { max-width: 14ch; }
.about-body { display: grid; gap: 16px; font-size: 1.08rem; color: var(--ink-70); }
.about-body strong { color: var(--ink); }
.about-marks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.about-marks span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.9rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  border: 1px solid var(--line-strong); position: relative;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq summary .plus::before { width: 10px; height: 2px; }
.faq summary .plus::after { width: 2px; height: 10px; transition: transform 0.3s var(--ease-out); }
.faq[open] summary .plus { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.faq[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-70); font-size: 0.98rem; max-width: 60ch; }
.faq .answer p + p { margin-top: 8px; }

/* ============================================================
   Contact
   ============================================================ */

.contact .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.contact-side .lead { max-width: 40ch; }
.contact-alt { margin-top: 28px; display: grid; gap: 12px; }
.contact-alt a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--on-dark-line); background: rgba(241, 234, 223, 0.05);
  transition: border-color 0.25s, background 0.25s;
}
.contact-alt a:hover { border-color: var(--on-dark-line-strong); background: rgba(241, 234, 223, 0.09); }
.contact-alt .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(241, 234, 223, 0.08); flex: 0 0 auto; }
.contact-alt .ico svg { width: 20px; height: 20px; }
.contact-alt .txt { display: grid; }
.contact-alt .txt small { color: var(--on-dark-70); font-size: 0.82rem; }
.contact-alt .txt span { font-weight: 700; }
.contact-alt a.wa .ico { background: rgba(31, 122, 83, 0.35); }

.form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--stone-50); color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.form h3 { font-size: 1.2rem; font-weight: 800; }
.form .form-sub { margin-top: 6px; color: var(--ink-70); font-size: 0.95rem; }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.field label .req { color: var(--terracotta); }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: #fff; font: inherit; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(42, 34, 48, 0.45); }
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(42, 34, 48, 0.08); outline: none; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field .err { display: none; margin-top: 8px; font-size: 0.88rem; color: #b3261e; font-weight: 600; }
/* once a field has shown its error, the line keeps its space while hidden, so fixing the field never moves the send button under the finger */
.field.had-error .err { display: block; visibility: hidden; }
.field.invalid .err { display: block; visibility: visible; }

.form fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.form legend { padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 10px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.choice input:checked + span { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 3px; }

.form .btn { width: 100%; margin-top: 22px; }
/* was .consent, which also matched the fixed consent banner and hid this line as an empty dark box */
.form .form-note { margin-top: 12px; font-size: 0.85rem; color: var(--ink-70); text-align: center; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: rgba(31, 122, 83, 0.12); color: #175f41; }
.form-status.fail { display: block; background: rgba(179, 38, 30, 0.1); color: #8f1f18; }
.form-status a { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--plum-900); color: var(--on-dark-70);
  padding: 56px 0 32px;
}
.footer .top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--on-dark-line);
}
.footer .brand { color: var(--on-dark); }
.footer .brand span { color: var(--on-dark-70); }
.footer p { margin-top: 10px; max-width: 42ch; font-size: 0.95rem; }
.footer h4 { color: var(--on-dark); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; font-size: 0.95rem; }
.footer a:hover { color: var(--on-dark); }
.footer .bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 20px; font-size: 0.88rem;
}

/* ============================================================
   Sticky mobile CTA
   ============================================================ */

.sticky-cta {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 850;
  display: none; gap: 10px;
  padding: 10px; border-radius: 18px;
  background: rgba(28, 22, 32, 0.92); color: var(--on-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(120%);
  transition: transform 0.35s var(--ease-out);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: 0.92rem; }
.sticky-cta .btn-wa { flex: 0 0 auto; width: 46px; padding: 0; }
body.sticky-visible { --sticky-space: 78px; }

/* ============================================================
   Accessibility widget
   ============================================================ */

.a11y {
  position: fixed; bottom: calc(18px + var(--sticky-space, 0px)); inset-inline-end: 18px; z-index: 950;
  transition: bottom 0.3s var(--ease-out);
}
.a11y-toggle {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: var(--on-dark);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.6);
}
.a11y-toggle svg { width: 24px; height: 24px; }
.a11y-panel {
  position: absolute; bottom: 62px; inset-inline-end: 0; width: 270px;
  background: var(--stone-50); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-lift);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 0.92rem; }
.a11y-row .group { display: flex; gap: 6px; }
.a11y-row .group button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-strong); font-weight: 800;
}
.a11y-opt {
  width: 100%; text-align: start; padding: 10px 12px; margin-top: 6px;
  border: 1px solid var(--line-strong); border-radius: 8px; font-size: 0.92rem; font-weight: 600;
}
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.a11y-reset { margin-top: 10px; width: 100%; padding: 10px; font-size: 0.88rem; color: var(--ink-70); text-decoration: underline; }

html.a11y-contrast {
  --ink: #000;
  --ink-70: #111;
  --ink-55: #222;
  --line: rgba(0, 0, 0, 0.35);
  --line-strong: rgba(0, 0, 0, 0.6);
  --on-dark: #fff;
  --on-dark-70: #f2f2f2;
  --terracotta: #8f3f1e;
}
html.a11y-contrast .grain { display: none; }
html.a11y-underline a { text-decoration: underline; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important;
}
html.a11y-still .rv { opacity: 1; transform: none; }

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .floaty { animation: none; }
  .shape { transition: none; }
  .timeline-progress { transition: none; }
  .btn, .nav, .mobile-menu, .sticky-cta { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .work { grid-template-columns: 1fr; }
  .work:nth-child(even) .work-visual { order: 0; }
  .transparency .container, .about .container, .contact .container { grid-template-columns: 1fr; }
  .summary-doc { transform: none; max-width: 520px; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero .display { max-width: none; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 3; margin-top: 8px; }
  .mock-desktop { width: 92%; }
  .mock-phone { width: 32%; max-width: 150px; }

  .packages { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; }
  .dual-cta { grid-template-columns: 1fr; }
  .dual-cta-actions .btn { flex: 1; }
  .maintenance-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }

  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  /* keep the two prices side by side on phones (stack only on very narrow screens), tighter rhythm
     so the mockups arrive sooner under the copy */
  .hero { padding-top: calc(var(--nav-h) + 8px); }
  .hero .container { gap: 22px; }
  .hero .kicker { margin-bottom: 12px; }
  .hero .lead { margin-top: 12px; font-size: 1rem; }
  .price-strip { margin-top: 16px; }
  .price-cell { padding: 10px 14px; }
  .hero-helper { margin-top: 12px; }
  .hero-ctas { margin-top: 10px; gap: 10px; }
  .hero-note { margin-top: 10px; font-size: 0.85rem; }
  .hero-visual { margin-top: 0; }
  .hero-ctas .btn { width: 100%; }
  .footer .top { grid-template-columns: 1fr; }
  .work-actions .btn { width: 100%; }
  .package .btn { width: 100%; }
  .view-switch { top: 10px; inset-inline-end: 10px; }
}

/* ---------- short desktop viewports: prices and both CTAs stay above the fold ---------- */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 40px; }
  .hero .display { font-size: clamp(2.2rem, 3.9vw, 3.4rem); }
  .hero .kicker { margin-bottom: 14px; }
  .hero .lead { margin-top: 12px; font-size: 1.05rem; }
  .price-strip { margin-top: 16px; }
  .price-cell { padding: 10px 16px; }
  .hero-helper { margin-top: 12px; }
  .hero-ctas { margin-top: 10px; }
  .hero-note { margin-top: 10px; }
}

/* ============================================================
   Wave 2.1: hero depth layer + section variety
   ============================================================ */

/* A soft light behind the mockups, so they sit in space instead of on a flat wash */
.hero-visual { isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; inset: -14% -10% -10%; z-index: -2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 252, 246, 0.95), rgba(214, 164, 108, 0.32) 46%, transparent 72%);
  filter: blur(22px);
  animation: glowPulse 9s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.85; scale: 1; } 50% { opacity: 1; scale: 1.04; } }

/* Two more quiet shapes in the hero background */
.shape-arc {
  width: 560px; height: 560px;
  border: 1.5px solid rgba(184, 88, 47, 0.4); background: transparent;
  -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 70%);
  mask-image: linear-gradient(135deg, #000 20%, transparent 70%);
}
.shape-dots {
  width: 180px; height: 180px; border-radius: 0;
  background-image: radial-gradient(rgba(42, 34, 48, 0.28) 1.3px, transparent 1.8px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}

/* Section decorations: absolutely positioned, never interactive, always behind the container */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-ring { border-radius: 50%; border: 1px solid rgba(184, 88, 47, 0.3); }
.deco-ring.lg { width: 720px; height: 720px; }
.deco-ring.md { width: 420px; height: 420px; }
.on-dark .deco-ring { border-color: rgba(214, 164, 108, 0.28); }
.deco-dots {
  width: 300px; height: 300px;
  background-image: radial-gradient(rgba(42, 34, 48, 0.2) 1.3px, transparent 1.8px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
}
.on-dark .deco-dots { background-image: radial-gradient(rgba(241, 234, 223, 0.22) 1.3px, transparent 1.8px); }
.deco-lines {
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(42, 34, 48, 0.045) 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
}
.deco-glow { width: 640px; height: 640px; border-radius: 50%; filter: blur(40px); background: radial-gradient(circle, rgba(214, 164, 108, 0.42), transparent 66%); }
.deco-plate {
  width: 320px; height: 200px; border-radius: 32px;
  background: linear-gradient(135deg, rgba(214, 164, 108, 0.35), rgba(236, 210, 171, 0.12));
  border: 1px solid rgba(214, 164, 108, 0.4);
}

/* A warmer, directional surface, for a short band that breaks the stone rhythm */
.surface-warm {
  background:
    radial-gradient(800px 460px at 100% 100%, rgba(184, 88, 47, 0.16), transparent 60%),
    radial-gradient(600px 400px at 0% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(135deg, var(--stone-200) 0%, #f2e2cb 55%, var(--stone-100) 100%);
}

@media (max-width: 900px) {
  .deco-ring.lg { width: 460px; height: 460px; }
  .deco-glow { width: 420px; height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual::before { animation: none; }
}

@media (max-width: 359px) {
  .price-strip { grid-template-columns: 1fr; }
  .price-cell + .price-cell { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ============================================================
   Measurement consent (analytics.js): small, quiet, one decision
   ============================================================ */
.consent {
  position: fixed; z-index: 90; inset-inline-start: 20px; bottom: 20px;
  width: min(420px, calc(100% - 40px)); padding: 16px 18px; border-radius: 16px;
  background: var(--plum-800); color: var(--on-dark);
  box-shadow: 0 24px 50px -24px rgba(42, 34, 48, 0.7), 0 0 0 1px rgba(241, 234, 223, 0.08);
  font-size: 0.92rem; line-height: 1.55;
  animation: consentIn 0.4s var(--ease-out);
}
.consent p { margin: 0; color: var(--on-dark-70); }
.consent p a { color: var(--copper-light); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.consent .btn { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.consent .btn-ghost { border-color: var(--on-dark-line-strong); color: var(--on-dark); }
.consent .btn-ghost:hover { border-color: var(--on-dark); background: rgba(241, 234, 223, 0.06); }
@keyframes consentIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .consent { inset-inline: 12px; bottom: 84px; width: auto; padding: 14px 14px; }   /* above the sticky bottom bars */
  .builder-page .consent { bottom: 132px; }   /* the builder's sticky back/next bar is taller */
  .consent .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
html.a11y-still .consent { animation: none; }


/* ============================================================
   Content Hub teaser on the homepage (one real article, no placeholders)
   ============================================================ */
.hub-teaser { padding: clamp(56px, 8vw, 96px) 0; }
.hub-teaser-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.hub-teaser-card {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius-lg);
  background: #fdfaf5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: inherit; text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.hub-teaser-card:hover, .hub-teaser-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.hub-teaser-card figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--stone-200); aspect-ratio: 16 / 10; }
.hub-teaser-card figure img { width: 100%; height: 100%; object-fit: cover; }
.hub-teaser-label { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--terracotta-deep); letter-spacing: 0.02em; }
.hub-teaser-body h3 { margin-top: 8px; font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.hub-teaser-body p { margin-top: 12px; color: var(--ink-70); max-width: 46ch; }
.hub-teaser-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terracotta-deep); }
.hub-teaser-more::after { content: "←"; transition: transform 0.25s var(--ease-out); }
.hub-teaser-card:hover .hub-teaser-more::after { transform: translateX(-4px); }
.hub-teaser-all { margin-top: 22px; font-size: 0.98rem; }
.hub-teaser-all a { color: var(--ink-70); text-decoration: underline; text-underline-offset: 4px; }
.hub-teaser-all a:hover, .hub-teaser-all a:focus-visible { color: var(--ink); }
@media (max-width: 860px) {
  .hub-teaser-card { grid-template-columns: 1fr; }
  .hub-teaser-card figure { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .hub-teaser { padding: 52px 0 60px; }
  .hub-teaser-card { padding: 12px 12px 18px; gap: 14px; }
  .hub-teaser-body h3 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .hub-teaser-card, .hub-teaser-more::after { transition: none; } }


/* ============================================================
   Complex custom projects (proof of capability, clearly outside the packages)
   ============================================================ */
.complex { padding-top: clamp(64px, 9vw, 110px); }
.complex .section-head .lead { max-width: 60ch; }
.complex-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(18px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(253, 250, 245, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.complex .tag { border-color: var(--line-strong); color: var(--ink-70); }
.complex .tag.live { background: rgba(31, 122, 83, 0.12); border-color: rgba(31, 122, 83, 0.45); color: #1f6b49; }
.complex .work-kind, .complex .work-desc { color: var(--ink-70); }
.complex-list { margin-top: 10px; display: grid; gap: 6px; }
.complex-list li { position: relative; padding-inline-start: 20px; color: var(--ink); font-weight: 500; }
.complex-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.complex-note {
  margin-top: 20px; padding: 12px 16px;
  border-inline-start: 3px solid var(--terracotta);
  color: var(--ink); font-weight: 600; line-height: 1.55;
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terracotta-deep); text-decoration: none; min-height: 52px; }
.link-arrow::after { content: "←"; }
.link-arrow:hover, .link-arrow:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .complex-card { grid-template-columns: 1fr; }
}

/* Content Hub teaser with two articles: two columns on desktop, compact rows on mobile */
.hub-teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.hub-teaser-grid .hub-teaser-card { grid-template-columns: 1fr; align-items: start; }
.hub-teaser-grid .hub-teaser-card figure { aspect-ratio: 16 / 9; }
.hub-teaser-grid .hub-teaser-body h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
@media (max-width: 560px) {
  .hub-teaser-grid { gap: 12px; }
  .hub-teaser-grid .hub-teaser-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 12px 10px 10px; }
  .hub-teaser-grid .hub-teaser-card figure { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
  .hub-teaser-grid .hub-teaser-label { display: none; }
  .hub-teaser-grid .hub-teaser-body h3 { margin-top: 0; font-size: 1.05rem; line-height: 1.25; }
  .hub-teaser-grid .hub-teaser-body p { margin-top: 6px; font-size: 0.9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hub-teaser-grid .hub-teaser-more { display: none; }
}

/* ============================================================
   Site search (Pagefind): visible header field + results dialog
   ============================================================ */
.nav-search { display: flex; align-items: center; gap: 8px; width: 330px; min-height: 42px; padding: 0 12px 0 10px; margin-inline-start: 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(253, 250, 245, 0.85); color: var(--ink-70); }
.nav-search:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184, 88, 47, 0.18); }
.nav-search svg { width: 17px; height: 17px; flex: none; color: var(--terracotta-deep); }
.nav-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 0.9rem/1.3 Heebo, sans-serif; color: var(--ink); outline: none; }
.nav-search input::placeholder { color: var(--ink-55); }
.nav-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nav-search kbd { font: 600 0.72rem/1 Heebo, sans-serif; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-55); flex: none; }
.ds-search { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 96px 16px 16px; }
.ds-search[hidden] { display: none; }
.ds-search-backdrop { position: absolute; inset: 0; background: rgba(28, 22, 32, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ds-search-panel { position: relative; width: min(760px, 100%); max-height: calc(100vh - 112px); display: flex; flex-direction: column; background: #fdfaf5; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.ds-search-field { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line); }
.ds-search-field svg { width: 22px; height: 22px; color: var(--terracotta-deep); flex: none; }
.ds-search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.08rem/1.4 Heebo, sans-serif; color: var(--ink); outline: none; }
.ds-search-field input::placeholder { color: var(--ink-55); }
.ds-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ds-search-close { border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 0.8rem; color: var(--ink-70); cursor: pointer; }
.ds-search-close:focus-visible, .ds-search-chips button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.ds-search-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 4px; }
.ds-search-chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-70); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.ds-search-chips button[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.ds-search-status { padding: 8px 18px 0; font-size: 0.85rem; color: var(--ink-55); min-height: 1.4em; }
.ds-search-results { list-style: none; margin: 0; padding: 10px 10px 14px; overflow: auto; }
.ds-search-results li a { display: block; padding: 12px 10px; border-radius: var(--radius-md); color: inherit; text-decoration: none; }
.ds-search-results li a[aria-selected="true"], .ds-search-results li a:hover, .ds-search-results li a:focus-visible { background: var(--stone-200); outline: 2px solid var(--terracotta); outline-offset: -2px; }
.ds-search-results strong { display: block; font-size: 1.02rem; line-height: 1.3; }
.ds-search-results .type { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(214, 164, 108, 0.22); color: #7a4a26; font-size: 0.74rem; font-weight: 700; }
.ds-search-results .excerpt { display: block; margin-top: 6px; color: var(--ink-70); font-size: 0.92rem; line-height: 1.5; }
.ds-search-results mark { background: rgba(214, 164, 108, 0.45); color: inherit; border-radius: 3px; padding: 0 2px; }
.ds-search-empty { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 10px; }
.ds-search-empty a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.ds-search-hints { padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-55); display: flex; gap: 16px; flex-wrap: wrap; }
.ds-search-hints kbd { font: 600 0.72rem/1 Heebo, sans-serif; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 6px; }
body.ds-search-open { overflow: hidden; }
/* Header row with the longer builder button ("בואו נתכנן את האתר שלכם", 2026-10-15): the search field gives up
   width first and the links sit closer on mid widths. Below 1080px the links and the button move into the menu,
   since the row does not fit there (it already overflowed at 861–920px with the shorter label). */
.nav .container .nav-search { flex: 0 1 330px; width: auto; min-width: 150px; }
.nav .brand, .nav .nav-links, .nav .nav-cta { flex-shrink: 0; }   /* only the search field shrinks */
.nav .brand { white-space: nowrap; }   /* "DS Creative Studio" stays on one line (it wrapped at 1024–1100px before) */
@media (max-width: 1180px) { .nav-links { gap: 20px; } }
@media (max-width: 1079px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .container .nav-search { flex: 1; min-width: 0; margin-inline-start: 0; }
}
@media (max-width: 860px) {
  .nav .container { gap: 12px; }
  .nav .container .nav-search { display: flex; flex: 1; width: auto; min-width: 0; min-height: 40px; margin-inline-start: 0; padding: 0 10px; }
  .nav-search kbd { display: none; }
  .brand span { display: none; }
  .ds-search { padding: 0; align-items: stretch; }
  .ds-search-panel { width: 100%; max-height: none; border-radius: 0; border: 0; }
  .ds-search-hints { display: none; }
}
