/* ============================================================
   Home page styles
   ============================================================ */

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  min-height: calc(100svh - 96px); /* 96px = desktop header height */
  display: flex;
  align-items: center;
}
@media (max-width: 820px) {
  .hero {
    padding: 72px 0 60px;
    min-height: calc(100svh - 64px); /* 64px = mobile header height */
  }
}
@media (min-width: 768px) {
  .hero { padding: 120px 0 100px; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* --- Dynamic video background --- */
.hero { --hero-video-opacity: 0.5; }

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: var(--hero-video-opacity);
  /* original orientation: golden lines/movement on the right side */
}

/* Readability veil: darkens the right side where the headline sits + bottom fade into page bg */
.hero__bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(25, 18, 16, 0.88) 0%, rgba(25, 18, 16, 0.45) 40%, rgba(25, 18, 16, 0.15) 70%),
    linear-gradient(to top, rgba(25, 18, 16, 0.9) 0%, transparent 25%);
}

/* Mobile: video is very wide (928x400) - cover on a tall hero crops out the golden lines.
   Shift focus to the right side of the frame where the movement is, and soften the side veil. */
@media (max-width: 820px) {
  .hero { --hero-video-opacity: 0.6; }
  .hero__bg-video { object-position: 88% center; }
  .hero__bg-veil {
    background:
      linear-gradient(to top, rgba(25, 18, 16, 0.9) 0%, transparent 25%),
      rgba(25, 18, 16, 0.38);
  }
}

/* Respect reduced motion: hide video, poster/base bg remains */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-video { display: none; }
}
.hero__bg-line {
  position: absolute;
  top: 0;
  left: 25%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--ak-line-dark) 30%, var(--ak-line-dark) 70%, transparent);
}
.hero__bg-line--2 {
  left: auto;
  right: 30%;
  background: linear-gradient(180deg, transparent, var(--ak-line-dark) 20%, transparent 80%);
}
.hero__bg-orb {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 131, 74, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
  }
}

.hero__content { display: flex; flex-direction: column; gap: 24px; }
.hero__content > [data-animate]:nth-child(1) { animation-delay: 0ms; }
.hero__content > [data-animate]:nth-child(2) { animation-delay: 120ms; }
.hero__content > [data-animate]:nth-child(3) { animation-delay: 240ms; }
.hero__content > [data-animate]:nth-child(4) { animation-delay: 360ms; }
.hero__content > [data-animate]:nth-child(5) { animation-delay: 480ms; }
.hero__content > [data-animate]:nth-child(6) { animation-delay: 600ms; }

.hero__title {
  color: var(--ak-text-white);
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  color: var(--ak-gold-light);
}
.hero__subtitle .wordmark-together {
  font-size: 1.15em;
  color: var(--ak-gold-pale);
}
.hero__divider {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--ak-gold-mid);
  opacity: 0.5;
}

.hero__lead {
  font-size: var(--text-lg);
  color: rgba(245, 237, 224, 0.75);
  max-width: 56ch;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--ak-line-dark);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__meta-item strong {
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  color: var(--ak-gold-light);
  letter-spacing: -0.01em;
}
.hero__meta-item span {
  font-size: var(--text-sm);
  color: var(--ak-text-light);
  letter-spacing: 0.02em;
}
.hero__meta-divider {
  width: 1px;
  height: 32px;
  background: var(--ak-line-dark);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

/* Stage */
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
}

/* Animated frame — gold rectangle that draws itself in */
.hero__frame-draw {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  color: var(--ak-gold-light);
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
.hero__frame-draw rect {
  animation: heroFrameDraw 2.2s ease-out 0.4s forwards;
}
@keyframes heroFrameDraw {
  to { stroke-dashoffset: 0; }
}

/* Main portrait — clip-path reveal entrance + perpetual Ken Burns */
.hero__portrait--main {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  z-index: 3;
  clip-path: inset(0 0 100% 0);
  animation: heroReveal 1.4s var(--ease) 0.2s forwards;
}
@keyframes heroReveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero__portrait--main img {
  width: 110%;
  height: 110%;
  position: absolute;
  inset: -5% 0 0 -5%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.08);
  animation: kenBurns 24s ease-in-out infinite alternate;
  transform-origin: 50% 40%;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  50%  { transform: scale(1.08) translate(-2%, -1.5%); }
  100% { transform: scale(1.04) translate(1.5%, -1%); }
}

/* Diagonal light wash that periodically sweeps across the image */
.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(212, 169, 106, 0.18) 50%,
    transparent 70%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  animation: heroWash 7s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes heroWash {
  0%, 35%  { background-position: 100% 0; }
  60%, 100% { background-position: -100% 0; }
}

/* Subtle dark gradient overlay for legibility */
.hero__portrait--main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 8, 4, 0.55));
  pointer-events: none;
  z-index: 1;
}

/* Name tag */
.hero__nametag {
  position: absolute;
  bottom: 28px;
  right: 28px;
  padding: 16px 22px;
  background: var(--ak-obsidian);
  border-right: 2px solid var(--ak-gold-light);
  color: var(--ak-text-white);
  display: flex;
  flex-direction: column;
  z-index: 8;
  min-width: 200px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: heroNametagIn 0.8s var(--ease) 1.4s forwards;
}
@keyframes heroNametagIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero__nametag span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ak-text-light);
  text-transform: uppercase;
}
.hero__nametag strong {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  color: var(--ak-gold-light);
  margin-top: 4px;
}

/* Year stamp — bottom-left corner */
.hero__year {
  position: absolute;
  bottom: -42px;
  left: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--ak-gold-light);
  opacity: 0.7;
  z-index: 7;
  animation: heroYearFade 1s ease-out 2s both;
}
@keyframes heroYearFade {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 0.7; transform: translateX(0); }
}

/* Pause animations on reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__portrait--main { animation: none; clip-path: none; }
  .hero__portrait--main img { animation: none; }
  .hero__wash { animation: none; }
  .hero__frame-draw rect { stroke-dashoffset: 0; }
  .hero__nametag { opacity: 1; transform: none; animation: none; }
  .hero__year { opacity: 0.7; animation: none; }
}

@media (max-width: 768px) {
  .hero__stage { max-width: 300px; }
  .hero__frame-draw { inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }
  .hero__nametag { bottom: 16px; right: 16px; padding: 12px 16px; min-width: 160px; }
  .hero__nametag strong { font-size: var(--text-base); }
  .hero__year { bottom: -32px; font-size: 14px; }
}

.hero__quote {
  position: absolute;
  bottom: -16px;
  left: -32px;
  max-width: 220px;
  padding: 18px 22px;
  background: var(--ak-gold-gradient);
  color: var(--ak-obsidian);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  box-shadow: 0 16px 32px rgba(184, 131, 74, 0.35);
  z-index: 6;
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease);
}
.hero__quote-mark {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  line-height: 0.5;
  color: var(--ak-obsidian);
  opacity: 0.35;
  margin-bottom: 8px;
}

/* Note: hero__visual responsive rules already defined above */


.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ak-text-light);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--ak-gold-mid), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.4); opacity: 1; }
}

/* ============ SECTION HEADER ============ */
.section-header {
  max-width: 760px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-header--split {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-header--split {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }
}
.section-header--center {
  text-align: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header--center .eyebrow::before { display: none; }
.section-header--center .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ============ WHAT IS (Pillars) ============ */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.pillar {
  background: var(--ak-white);
  border: 1px solid var(--ak-line-light);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--tr);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--ak-gold-mid);
}
.pillar--featured {
  background: var(--ak-obsidian);
  color: var(--ak-text-white);
  border-color: var(--ak-brown);
}
.pillar--featured .pillar__lead { color: rgba(245, 237, 224, 0.72); }
.pillar--featured .pillar__list { color: rgba(245, 237, 224, 0.65); }
.pillar--featured .pillar__list li::before { background: var(--ak-gold-light); }

.pillar__num {
  display: none;
}

.pillar h3 {
  font-size: 28px;
  font-weight: var(--weight-light);
}
.pillar__lead {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ak-text-mid);
}
.pillar__list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--ak-line-light);
  font-size: var(--text-sm);
  color: var(--ak-text-mid);
}
.pillar--featured .pillar__list { border-top-color: var(--ak-line-dark); }
.pillar__list li {
  position: relative;
  padding-right: 18px;
}
.pillar__list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--ak-gold-mid);
}

.what-is__rule {
  height: 1px;
  background: var(--ak-line-light);
  margin: 0 0 48px;
}
.what-is__promise {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
}
.what-is__promise .eyebrow::before {
  display: none;
}
.what-is__promise .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ============ TRACKS (Programs) ============ */
.tracks {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--ak-line-dark);
  border-top: 1px solid var(--ak-line-dark);
  border-bottom: 1px solid var(--ak-line-dark);
}

.track {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 28px 8px;
  background: var(--ak-obsidian);
  transition: var(--tr);
  cursor: pointer;
  position: relative;
}
@media (max-width: 767px) {
  .track {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 24px 8px;
  }
  .track__cta { display: none; }
}

.track:hover {
  background: var(--ak-dark);
  padding-right: 24px;
}
.track:hover .track__cta { color: var(--ak-gold-light); transform: translateX(-6px); }

.track__num {
  display: none;
}

.track__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.track__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  color: var(--ak-text-white);
  letter-spacing: -0.005em;
}
.track__desc {
  font-size: var(--text-sm);
  color: rgba(245, 237, 224, 0.6);
  line-height: 1.5;
}

.track__tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--ak-gold-mid);
  border-radius: 0;
  font-size: 11px;
  color: var(--ak-gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  width: fit-content;
}
.track__tag--flagship {
  background: var(--ak-gold-gradient);
  border-color: transparent;
  color: var(--ak-obsidian);
  font-weight: var(--weight-medium);
}

.track__price {
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  color: var(--ak-gold-light);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.track__cta {
  font-size: 24px;
  color: var(--ak-text-light);
  transition: var(--tr);
  padding: 0 12px;
}

.track--featured {
  background: linear-gradient(135deg, rgba(184, 131, 74, 0.08), rgba(232, 201, 154, 0.04));
}
.track--featured:hover {
  background: linear-gradient(135deg, rgba(184, 131, 74, 0.14), rgba(232, 201, 154, 0.08));
}

.programs__note {
  margin-top: 40px;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(245, 237, 224, 0.6);
}
.programs__note a {
  color: var(--ak-gold-light);
  border-bottom: 1px solid var(--ak-gold-mid);
  padding-bottom: 2px;
  margin-right: 8px;
}

/* ============ FOUNDER ============ */
.founder__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .founder__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }
}

.founder__visual {
  position: relative;
}
.founder__portrait {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--ak-cream);
}
.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder__caption {
  position: absolute;
  bottom: 24px;
  right: 24px;
  max-width: 260px;
  background: var(--ak-obsidian);
  color: var(--ak-text-white);
  padding: 16px 20px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
  box-shadow: var(--shadow-lift);
}

.founder__content { display: flex; flex-direction: column; gap: 20px; }
.founder__pipe {
  color: var(--ak-gold-mid);
  font-weight: var(--weight-light);
  margin: 0 4px;
}
.founder__text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ak-text-mid);
  max-width: 60ch;
}
.founder__creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
  margin: 16px 0;
  border-top: 1px solid var(--ak-line-light);
  border-bottom: 1px solid var(--ak-line-light);
}
.founder__creds strong {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  color: var(--ak-text-dark);
  letter-spacing: -0.01em;
}
.founder__creds span {
  font-size: var(--text-sm);
  color: var(--ak-text-mid);
}

/* ============ TESTIMONIALS ============ */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}

.t-card {
  background: var(--ak-cream-soft);
  border: 1px solid var(--ak-line-light);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: var(--tr);
  position: relative;
}
.t-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.t-card::before {
  content: '״';
  position: absolute;
  top: 16px;
  right: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  line-height: 0.8;
  color: var(--ak-gold-mid);
  opacity: 0.3;
}
.t-card--accent {
  background: var(--ak-obsidian);
  color: var(--ak-text-white);
}
.t-card--accent .t-card__quote { color: var(--ak-text-white); }
.t-card--accent .t-card__person strong { color: var(--ak-gold-light); }
.t-card--accent .t-card__person span { color: rgba(245, 237, 224, 0.7); }

.t-card__quote {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ak-text-dark);
  font-weight: var(--weight-regular);
  font-style: normal;
  position: relative;
  z-index: 1;
}

.t-card__person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--ak-line-light);
  font-style: normal;
}
.t-card--accent .t-card__person { border-top-color: var(--ak-line-dark); }
.t-card__person::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ak-gold-mid);
  flex-shrink: 0;
}
.t-card__person strong {
  display: block;
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}
.t-card__person span {
  font-size: var(--text-xs);
  color: var(--ak-text-mid);
}

/* ============ CLOSING CTA ============ */
.closing {
  position: relative;
  overflow: hidden;
}
.closing__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.closing__bg-circle {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 0;
  border: 1px solid var(--ak-line-dark);
}
.closing__bg-circle--2 {
  top: auto;
  bottom: -40%;
  right: -15%;
  left: auto;
  border-color: var(--ak-line-dark);
}
.closing__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.closing__inner .eyebrow::before { display: none; }
.closing__inner .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.closing__title {
  max-width: 14ch;
}
.closing__lead {
  text-align: center;
  margin: 0 auto;
}
.closing__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.closing__fineprint {
  margin-top: 32px;
  font-size: var(--text-sm);
  color: var(--ak-text-light);
  letter-spacing: 0.08em;
}

/* ============ LOGIN LINK ============ */
.login-link {
  font-size: var(--text-sm);
  color: var(--ak-text-light);
  display: none;
}
@media (min-width: 600px) {
  .login-link { display: inline-block; }
}
.login-link:hover { color: var(--ak-gold-light); }
/* ============================================================
   Brief palette alignment — home (added, non-invasive)
   ============================================================ */

/* סקשן מירית — רקע בז' (#EFE5D5) לפי הבריף */
.founder.section--cream { background: var(--ak-beige); }

/* שורת תפקיד מתחת לשם מירית */
.founder__role {
  font-size: var(--text-base);
  color: var(--ak-text-mid);
  margin-top: -8px;
  letter-spacing: 0.01em;
}

/* מלבני עדויות — רקע קרם־כרטיס (#F5EFE6) לפי הבריף */
.testimonials .t-card { background: var(--ak-card); }