/* Version B — Expressive.
   Same paper, ink, type families and accent as A. More personality: heavier display weights, the accent
   used as a field colour, products on their own colour, a moving ticker and playful micro-interactions. */

/* Blue Sky (owner's choice, 2026-10-21). A light accent needs three roles to stay legible:
   the vivid sky for fields, buttons and the mark (with ink text on it, 8.7:1), a deeper sky for large display
   text on paper (3.4:1), and a deep sky for small text and links on paper (5.1:1). */
:root {
  --radius-lg: 28px;
  --accent: #5BBCF2;
  --accent-ink: #16140F;
  --accent-soft: #E4F2FB;
  --accent-display: #1E88CC;
  --accent-text: #0C6AA6;
  --focus: #0C6AA6;
}
.mark-arms { fill: var(--accent); }
.brand:hover .mark-arms { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn { transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.label, .eyebrow { color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 1.5rem + 7vw, 9rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; inline-size: 28px; block-size: 2px; background: currentColor; border-radius: 2px; }
.hero-title {
  font-family: var(--display); font-weight: 560; font-size: clamp(3.1rem, 1.5rem + 7vw, 8.6rem);
  line-height: 0.95; letter-spacing: -0.04em; font-variation-settings: 'opsz' 144; max-inline-size: 11ch; text-wrap: balance;
}
.hero-title em { font-weight: 480; color: var(--accent-display); position: relative; white-space: nowrap; }
:lang(he) .hero-title { letter-spacing: 0; line-height: 1.04; font-weight: 700; max-inline-size: 11ch; }
:lang(ar) .hero-title { letter-spacing: 0; line-height: 1.3; font-weight: 700; max-inline-size: 11ch; }
.hero-title em::after {
  content: ''; position: absolute; inset-inline: 0.04em; inset-block-end: 0.02em; block-size: 0.08em; border-radius: 1em;
  background: var(--accent); opacity: .45; transform: scaleX(0); transform-origin: var(--origin-start, left);
  animation: underline 1.1s .5s var(--ease) forwards;
}
[dir='rtl'] .hero-title em::after { --origin-start: right; }
@keyframes underline { to { transform: scaleX(1); } }
.hero-lead { font-size: var(--step-1); color: var(--ink-2); max-inline-size: 34rem; }

/* Four real app icons, loosely stacked; each nudges on hover. Decorative (aria-hidden, not focusable). */
.hero-icons { position: relative; aspect-ratio: 1; inline-size: min(100%, 420px); justify-self: center; }
.hero-icon { position: absolute; inline-size: 40%; transition: transform .5s var(--ease); animation: bob 7s ease-in-out infinite; }
.hero-icon .app-icon { inline-size: 100%; block-size: auto; box-shadow: 0 2px 4px rgb(0 0 0 / .1), 0 26px 40px -18px color-mix(in srgb, var(--p-glow) 70%, #000); }
.hi-1 { inset-block-start: 4%; inset-inline-start: 8%; rotate: -8deg; animation-delay: -1s; }
.hi-2 { inset-block-start: 12%; inset-inline-end: 4%; rotate: 7deg; animation-delay: -3s; }
.hi-3 { inset-block-end: 6%; inset-inline-start: 2%; rotate: 5deg; animation-delay: -5s; }
.hi-4 { inset-block-end: 2%; inset-inline-end: 12%; rotate: -6deg; animation-delay: -2s; }
.hero-icon:hover { transform: scale(1.08) rotate(calc(var(--dir) * 4deg)); }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-icons { order: -1; aspect-ratio: auto; inline-size: 100%; display: flex; gap: 12px; justify-content: flex-start; }
  .hero-icon { position: static; inline-size: 64px; }
}

/* ---------- Ticker (decorative; still in reduced motion) ---------- */
.ticker { overflow: hidden; background: var(--accent); color: var(--accent-ink); padding-block: 16px; }
.ticker-track { display: flex; gap: 28px; inline-size: max-content; animation: ticker 48s linear infinite; font-family: var(--display); font-size: var(--step-2); font-weight: 480; line-height: 1.3; white-space: nowrap; }
.tk-star { opacity: .6; }
.tk-word { font-style: italic; opacity: .85; }
:lang(he) .tk-word, :lang(ar) .tk-word { font-style: normal; }
@keyframes ticker { to { transform: translateX(calc(var(--dir) * -50%)); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Intro ---------- */
.intro { padding-block: var(--section); }
.intro-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(20px, 5vw, 80px); }
.intro-inner .label { padding-block-start: .55em; }
.intro-text { display: grid; gap: 1.5rem; }
.intro-text .big { font-weight: 420; }
.intro-2 { font-family: var(--display); font-size: var(--step-2); font-style: italic; color: var(--accent-text); }
:lang(he) .intro-2, :lang(ar) .intro-2 { font-style: normal; }
@media (max-width: 760px) { .intro-inner { grid-template-columns: 1fr; } }

/* ---------- Featured: bento of product tiles, each in its own colour ---------- */
.featured { padding-block-end: var(--section); }
.featured .section-title { font-weight: 520; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-block-size: 440px; overflow: hidden;
  padding: clamp(22px, 2.6vw, 34px); border-radius: var(--radius-lg); background: var(--p-bg); color: var(--p-fg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile-1 { grid-column: span 4; }
.tile-2 { grid-column: span 2; }
.tile-3 { grid-column: span 2; }
.tile-4 { grid-column: span 4; }
.tile:hover { transform: translateY(-6px) rotate(calc(var(--dir) * -0.4deg)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--p-glow) 70%, #000); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tile .status { font-size: var(--step--1); padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--p-fg) 10%, transparent); }
.tile-name { font-family: var(--display); font-weight: 560; font-size: var(--step-4); line-height: 1; letter-spacing: var(--track-display); margin-block-start: 8px; font-variation-settings: 'opsz' 144; }
:lang(ar) .tile-name { line-height: 1.3; }
.tile-name a { text-decoration: none; }
.tile-tagline { font-family: var(--display); font-style: italic; font-size: var(--step-1); color: var(--p-ink); max-inline-size: 22ch; }
:lang(he) .tile-tagline, :lang(ar) .tile-tagline { font-style: normal; }
[data-slug='shmelvin'] .tile-tagline { color: var(--p-ink); }
.tile-summary { color: var(--p-soft); max-inline-size: 30ch; font-size: var(--step-0); }
.tile-foot { margin-block-start: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--step--1); color: var(--p-soft); position: relative; z-index: 2; max-inline-size: 48%; }
.tile-foot .ext { color: var(--p-fg); }
.tile-shot { position: absolute; inset-block-end: -18%; inset-inline-end: 6%; inline-size: min(40%, 230px); rotate: calc(var(--dir) * 6deg); transition: transform .6s var(--ease), rotate .6s var(--ease); pointer-events: none; }
.tile:hover .tile-shot { transform: translateY(-8%); rotate: calc(var(--dir) * 2deg); }
/* Narrow tiles: the screenshot sits in the flow under the text, cropped by the tile's bottom edge. */
.tile-2, .tile-3 { padding-block-end: 0; }
.tile-2 .tile-summary, .tile-3 .tile-summary { max-inline-size: 100%; }
.tile-2 .tile-foot, .tile-3 .tile-foot { max-inline-size: 100%; margin-block-start: 0; }
.tile-2 .tile-shot, .tile-3 .tile-shot { position: relative; inset: auto; align-self: center; inline-size: min(62%, 220px); margin-block: auto -70px; padding-block-start: 16px; rotate: calc(var(--dir) * 4deg); }
@media (max-width: 1000px) {
  .tile-1, .tile-2, .tile-3, .tile-4 { grid-column: span 3; }
  .tile-1 .tile-shot, .tile-4 .tile-shot { inline-size: 44%; inset-block-end: -26%; }
  .tile-1 .tile-summary, .tile-4 .tile-summary { max-inline-size: 52%; }
  .tile-1 .tile-foot, .tile-4 .tile-foot { max-inline-size: 52%; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-1, .tile-2, .tile-3, .tile-4 { grid-column: auto; min-block-size: 0; padding-block-end: 0; }
  .tile .tile-summary, .tile .tile-foot { max-inline-size: 100%; }
  .tile .tile-foot { margin-block-start: 0; }
  .tile .tile-shot { position: relative; inset: auto; align-self: center; inline-size: min(60%, 220px); margin-block: 8px -70px; rotate: calc(var(--dir) * 4deg); }
}
.section-more { margin-block-start: clamp(2rem, 4vw, 3rem); }
.section-more .link-arrow { font-size: var(--step-1); color: var(--accent-text); }

/* ---------- Principles on a soft accent field ---------- */
.principles { padding-block: var(--section); background: var(--accent-soft); }
.principle-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.principle { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius-lg); background: var(--paper); transition: transform .4s var(--ease); }
.principle:hover { transform: translateY(-4px); }
.principle .principle-n { font-family: var(--display); font-size: var(--step-4); font-weight: 560; line-height: 1; color: var(--accent-display); }
.principle h3 { font-weight: 560; }

/* ---------- Contact band in the accent colour ---------- */
.contact-band { padding-block: var(--section); background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.contact-band::before {
  content: ''; position: absolute; inline-size: 520px; block-size: 520px; inset-block-start: -180px; inset-inline-end: -140px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M20 4h8l-8 12 8 12h-8l-8-12z' fill='%23ffffff' fill-opacity='.35'/%3E%3Crect x='3' y='4' width='6' height='24' fill='%23ffffff' fill-opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
}
.contact-band-inner { position: relative; display: grid; gap: 20px; justify-items: start; }
.contact-band-inner > * { max-inline-size: 48rem; }
.contact-band .label { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.contact-band-title { font-family: var(--display); font-weight: 560; font-size: var(--step-5); line-height: var(--lh-display); letter-spacing: var(--track-display); font-variation-settings: 'opsz' 144; }
.contact-band-inner > p:not(.label) { font-size: var(--step-1); color: color-mix(in srgb, var(--accent-ink) 86%, transparent); max-inline-size: 36rem; }
.contact-band .btn-primary { background: var(--paper); color: var(--ink); }
.contact-band .btn-primary:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.contact-band :focus-visible { outline-color: var(--ink); }

/* ---------- Inner pages ---------- */
.page-title { font-weight: 540; }
:lang(he) .page-title, :lang(ar) .page-title { font-weight: 700; }
.pcard { background: var(--paper); border: 0; box-shadow: 0 0 0 1px var(--line); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-glow) 40%, var(--line)), 0 26px 50px -30px color-mix(in srgb, var(--p-glow) 70%, #000); }
.pcard-media .shot { transition: transform .6s var(--ease); }
.pcard:hover .pcard-media .shot { transform: translateY(-8px); }
.pcard-name { font-weight: 560; }
.pcard-links .more { color: var(--accent-text); }
.workshop { background: var(--paper-2); }
.wcard-name { font-weight: 560; }
.placeholder { transition: transform .4s var(--ease); }
.wcard:hover .placeholder { transform: rotate(calc(var(--dir) * -1deg)); }

/* Product detail: the hero takes the product's own colour. */
.d-hero { background: var(--p-bg); color: var(--p-fg); }
.d-hero .back a, .d-hero .d-summary { color: var(--p-soft); }
.d-hero .back a:hover { color: var(--p-fg); }
.d-hero .d-tagline { color: var(--p-ink); font-style: italic; }
:lang(he) .d-hero .d-tagline, :lang(ar) .d-hero .d-tagline { font-style: normal; }
.d-hero .d-name { font-weight: 560; }
.d-hero .status.is-live .status-dot { box-shadow: none; }
.d-hero :focus-visible { outline-color: var(--p-ink); }
[data-slug='shmelvin'].d-hero .btn-product { background: var(--p-ink); }
.btn-product { background: var(--p-ink); color: var(--p-bg); }
.btn-product:hover { background: var(--p-fg); color: var(--p-bg); }
.d-hero-shot .shot { transform: rotate(calc(var(--dir) * 2deg)) translateY(12px); transition: transform .6s var(--ease); }
.d-hero-shot:hover .shot { transform: none; }
.d-body { border-block-start: 0; }
.points li::before { block-size: 6px; inline-size: 6px; border-radius: 50%; inset-block-start: .6em; }
.next-product { background: var(--p-bg); color: var(--p-fg); border: 0; }
.next-product .label { color: var(--p-soft); }

/* Contact page */
.contact-form { background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / .35); border: 0; }

/* Arabic letters descend well below the baseline; an underline would cut through them. */
:lang(ar) .hero-title em::after { display: none; }
