/* ==========================================================================
   תמרורון — Tamruron
   Design system: road-signage. Asphalt darks, crosswalk whites, stop-sign
   brick red, road-marking amber. Octagon is the recurring motif.
   ========================================================================== */

:root {
  /* Surfaces */
  --asphalt:      #22242F;
  --asphalt-soft: #2E3140;
  --navy:         #4E506B;
  --paper:        #F4F2ED;
  --paper-warm:   #EAE6DD;

  /* Brand */
  --brick:        #A32B2B;
  --brick-deep:   #6A2D2C;
  --brick-glow:   #C8453F;
  --amber:        #F2B233;
  --sky:          #8CDCEC;

  /* Ink */
  --ink:          #1B1C24;
  --ink-soft:     #4A4C5C;
  --ink-invert:   #FBFAF7;

  /* Type */
  --display: "Secular One", "Arial Hebrew", sans-serif;
  --body:    "Heebo", "Assistant", "Arial Hebrew", sans-serif;

  /* Space + motion */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 68rem;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Repeating road furniture */
  --crosswalk: repeating-linear-gradient(
    90deg,
    rgba(251, 250, 247, .9) 0 40px,
    transparent 40px 80px
  );
  --hazard: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 14px,
    var(--asphalt) 14px 28px
  );
}

/* --------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;      /* Secular One ships a single weight */
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* Visible focus for keyboard users, on every interactive surface. */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  translate: -50% -120%;
  z-index: 999;
  padding: .8rem 1.4rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------- layout ---- */
.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--body);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: currentColor;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.on-dark .eyebrow { color: var(--amber); }

/* ------------------------------------------------------------ octagon ----- */
.octagon {
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
}

/* ------------------------------------------------------------- header ----- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -.02em;
  margin-inline-end: auto;
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: .35rem;
  position: relative;
  transition: color .18s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--brick);
  scale: 0 1;
  transform-origin: inline-end;
  transition: scale .24s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { scale: 1 1; }

@media (max-width: 46rem) {
  .nav__links { display: none; }
}

/* -------------------------------------------------------------- button ---- */
.btn {
  --btn-bg: var(--brick);
  --btn-fg: var(--ink-invert);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 22%, transparent) inset,
              0 10px 24px -12px color-mix(in srgb, var(--brick-deep) 80%, transparent);
  transition: translate .18s var(--ease), box-shadow .18s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--brick-glow), transparent 70%);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.btn:hover { translate: 0 -2px; box-shadow: 0 1px 0 color-mix(in srgb, #fff 26%, transparent) inset, 0 18px 30px -14px color-mix(in srgb, var(--brick-deep) 90%, transparent); }
.btn:hover::before { opacity: .55; }
.btn:active { translate: 0 0; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 28%, transparent);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost::before { display: none; }

.on-dark .btn--ghost {
  --btn-fg: var(--ink-invert);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 38%, transparent);
}
.on-dark .btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }

.btn__hand { font-size: 1.15em; line-height: 1; }

/* ---------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 8%, color-mix(in srgb, var(--navy) 70%, transparent), transparent 60%),
    linear-gradient(170deg, var(--asphalt-soft), var(--asphalt) 70%);
  color: var(--ink-invert);
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(5rem, 10vw, 9rem);
}

/* asphalt grain */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* crosswalk running along the bottom edge */
.hero::after {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -1px;
  height: clamp(32px, 4.5vw, 52px);
  background: var(--crosswalk);
  opacity: .9;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* Oversized ghost octagon, masked into a soft glow so it never reads as a
   hard shape cutting across the headline or the crosswalk. */
.hero__stamp {
  position: absolute;
  z-index: 1;
  inset-block-start: 46%;
  inset-inline-end: -8%;
  translate: 0 -50%;
  width: min(36rem, 62vw);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--brick) 30%, transparent);
  mask-image: radial-gradient(circle at 50% 50%, #000 22%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(4rem, 15vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.04em;
  margin-bottom: .35rem;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}

.hero__tagline {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.16;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: clamp(1.125rem, .5vw + 1rem, 1.375rem);
  color: color-mix(in srgb, var(--ink-invert) 82%, transparent);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: center; }

/* Price is taken from the live Meshulam checkout, not invented. */
.hero__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin-top: 1.75rem;
}
.hero__price strong {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}
.hero__price span {
  font-size: .9375rem;
  color: color-mix(in srgb, var(--ink-invert) 80%, transparent);
}

.hero__note {
  margin-top: .85rem;
  font-size: .9375rem;
  color: color-mix(in srgb, var(--ink-invert) 76%, transparent);
}

/* Product shot, angled like a sign carried across the road. Bleeds off the
   inline-end edge so the composition escapes the grid. */
.hero__product {
  position: relative;
  z-index: 2;
  rotate: -7deg;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, .5));
}
.hero__product img { width: 100%; }

@media (min-width: 60rem) {
  .hero__product {
    width: 122%;
    margin-inline-end: -22%;
  }
}

/* -------------------------------------------------- staggered page load --- */
.reveal { opacity: 0; translate: 0 22px; animation: rise .85s var(--ease) forwards; }
.reveal--1 { animation-delay: .06s; }
.reveal--2 { animation-delay: .16s; }
.reveal--3 { animation-delay: .26s; }
.reveal--4 { animation-delay: .36s; }
.reveal--5 { animation-delay: .46s; }

@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* Scroll-triggered sections. Hidden only once JS has confirmed it can reveal
   them again (the .js class is set by an inline script in <head>), so the page
   is fully readable with JS disabled or broken. */
.js .enter {
  opacity: 0;
  translate: 0 30px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
}
.js .enter.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .js .enter { animation: none; transition: none; opacity: 1; translate: none; }
  .btn:hover { translate: none; }
}

/* ------------------------------------------------------------- section ---- */
.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
.section__sub { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.125rem; }
.on-dark .section__sub { color: color-mix(in srgb, var(--ink-invert) 82%, transparent); }

/* Colour tokens flip on any dark surface; only full sections repaint their
   own background, so the hero and banner keep their custom gradients. */
.on-dark { color: var(--ink-invert); }
.section.on-dark { background: var(--asphalt); }
.on-dark .section__title { color: var(--ink-invert); }

/* ------------------------------------------------------- sign-plate list -- */
.plates {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  list-style: none;
  margin: 0; padding: 0;
}

.plate {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--ink-invert);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -22px rgba(27, 28, 36, .5);
  font-weight: 500;
  transition: translate .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
/* reflective sheen sweeping the plate face */
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--sky) 26%, transparent) 50%, transparent 60%);
  opacity: 0;
  transition: opacity .32s var(--ease);
  pointer-events: none;
}
.plate:hover {
  translate: 0 -4px;
  border-color: color-mix(in srgb, var(--brick) 45%, transparent);
  box-shadow: 0 22px 40px -24px rgba(27, 28, 36, .6);
}
.plate:hover::after { opacity: 1; }

.plate__tick {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin-block-start: .1rem;
  background: var(--brick);
  color: var(--ink-invert);
  font-size: .95rem;
  font-weight: 700;
  flex: none;
}

/* dark variant used in the "מהיום" band */
.on-dark .plate {
  background: color-mix(in srgb, #fff 6%, transparent);
  border-color: color-mix(in srgb, #fff 16%, transparent);
  color: var(--ink-invert);
  box-shadow: none;
}
.on-dark .plate:hover { border-color: var(--amber); }
.on-dark .plate__tick { background: var(--amber); color: var(--ink); }

/* ------------------------------------------------------------ showcase ---- */
.showcase {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .showcase { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* Caption sits below the media rather than over it: keeps text legible and
   never covers native video controls. */
.showcase__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.showcase__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--asphalt);
  aspect-ratio: 16 / 9;
}

.showcase__media img,
.showcase__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.showcase figcaption {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------------------------------------------------------- big banner ---- */
.banner {
  position: relative;
  background: var(--brick-deep);
  color: var(--ink-invert);
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 12px;
  background: var(--hazard);
  opacity: .9;
}
.banner::before { top: 0; }
.banner::after { bottom: 0; }

.banner__text {
  font-family: var(--display);
  font-size: clamp(2rem, 6.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.banner__kicker {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.banner__sub {
  max-width: 46ch;
  margin: 1.4rem auto 0;
  font-size: 1rem;
  color: color-mix(in srgb, var(--ink-invert) 82%, transparent);
}

.banner .btn { margin-top: 2rem; --btn-bg: var(--amber); --btn-fg: var(--ink); }
.banner .btn::before { background: linear-gradient(180deg, #fff, transparent 70%); }

/* -------------------------------------------------------------- founder --- */
.founder {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 54rem) {
  .founder { grid-template-columns: .8fr 1.2fr; }
}

.founder__portrait { position: relative; }
.founder__portrait img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.08);
}
/* offset frame, nudged out of alignment on purpose */
.founder__portrait::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 3px solid var(--brick);
  border-radius: var(--radius);
  z-index: -1;
}

.founder__name { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.founder__bio { color: var(--ink-soft); font-size: 1.125rem; }

/* ---------------------------------------------------------- quote cards --- */
.quotes {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  list-style: none;
  margin: 0; padding: 0;
}

.quote {
  position: relative;
  padding: 2.6rem 1.6rem 1.6rem;
  background: var(--ink-invert);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-top: 4px solid var(--brick);
  box-shadow: 0 14px 30px -24px rgba(27, 28, 36, .45);
  font-size: 1.0625rem;
  line-height: 1.68;
}
.quote::before {
  content: "\201D";                 /* Hebrew-facing closing quote */
  position: absolute;
  top: .3rem;
  inset-inline-start: 1.3rem;
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  color: color-mix(in srgb, var(--brick) 30%, transparent);
}

/* ------------------------------------------------------------- contact ---- */
.contact-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.contact-card {
  padding: 2rem 1.75rem;
  background: color-mix(in srgb, #fff 7%, transparent);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-card:hover {
  border-color: var(--amber);
  background: color-mix(in srgb, #fff 11%, transparent);
}

.contact-card__label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .7rem;
}

.contact-card a {
  font-family: var(--display);
  font-size: clamp(1.125rem, 2.2vw, 1.6rem);
  text-decoration: none;
  color: var(--ink-invert);
  border-bottom: 2px solid color-mix(in srgb, var(--amber) 55%, transparent);
  overflow-wrap: anywhere;
  transition: border-color .2s var(--ease);
}
.contact-card a:hover { border-color: var(--amber); }

.contact-card p { margin-top: .8rem; font-size: .9375rem; color: color-mix(in srgb, var(--ink-invert) 80%, transparent); }

/* -------------------------------------------------------------- footer ---- */
.footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--ink-invert) 78%, transparent);
  padding-block: 2.5rem;
  font-size: .875rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: color-mix(in srgb, var(--ink-invert) 82%, transparent); text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { border-bottom-color: currentColor; }

/* ------------------------------------------------------- thank-you page --- */
.thanks {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(110% 80% at 50% 0%, color-mix(in srgb, var(--navy) 62%, transparent), transparent 62%),
    var(--asphalt);
  color: var(--ink-invert);
  padding: var(--gutter);
}
.thanks__mark {
  width: 6rem; height: 6rem;
  margin: 0 auto 2rem;
}
.thanks h1 { font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 1rem; }
.thanks p { color: color-mix(in srgb, var(--ink-invert) 84%, transparent); margin-bottom: 2.25rem; }
