/* ============================================================
   HOME PAGE styles
   ============================================================ */

/* ---- Hero ---- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 56px); min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: space-between; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 72px); align-items: center; flex: 1; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__eyebrow { margin-bottom: 30px; }
.hero__title { font-size: clamp(42px, 5.3vw, 92px); line-height: 0.98; margin-bottom: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; }
.hero__line { display: block; }
.hero__intro { font-size: clamp(16px, 1.2vw, 18px); max-width: 52ch; line-height: 1.7; color: var(--text-dim); margin-bottom: 34px; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero__ctas .btn { transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.35s var(--ease); }
.hero__cv { font-size: 12px; }

.hero__right { position: relative; }
.hero__stagewrap { position: relative; }
.hero__stage {
  position: relative; aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px var(--shadow);
  will-change: transform;
}
[data-theme="dark"] .hero__stage { box-shadow: none; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: contain; padding: 6% 5% 8%; transform: scale(1.08) translateY(8px); transition: transform 7s cubic-bezier(0.25, 0.1, 0.25, 1); }
.hero__slide.is-active img { transform: scale(1) translateY(0); }
.hero__slide img { mix-blend-mode: multiply; }
[data-theme="dark"] .hero__slide img { filter: invert(1) sepia(0.3) brightness(0.86); mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .hero__slide img { transition: none; transform: none; } }

.hero__hair { position: absolute; pointer-events: none; background: var(--accent); opacity: 0; transition: opacity 0.3s; z-index: 3; }
.hero__hair--x { left: 0; right: 0; top: 0; height: 1px; }
.hero__hair--y { top: 0; bottom: 0; left: 0; width: 1px; }
.hero__readout { position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none; font-size: 10px; letter-spacing: 0.1em; color: var(--on-accent); background: var(--accent); padding: 3px 7px 2px; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.hero__stage.is-measuring .hero__hair { opacity: 0.55; }
.hero__stage.is-measuring .hero__readout { opacity: 1; }
.hero__sheet { position: absolute; z-index: 2; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.hero__sheet--tl { top: 16px; left: 18px; }
.hero__sheet--tr { top: 16px; right: 18px; }
.hero__north { position: absolute; right: 22px; bottom: 18px; z-index: 2; color: var(--text-faint); }
.hero__caption { display: flex; justify-content: space-between; gap: 16px; width: 100%; margin-top: 14px; font-size: 12px; letter-spacing: 0.04em; color: var(--text-dim); text-align: start; animation: capIn 0.8s var(--ease) both; }
.hero__caption:hover { color: var(--accent); }
.hero__capgo { color: var(--accent); transition: transform 0.4s var(--ease); }
.hero__caption:hover .hero__capgo { transform: translate(3px, -3px); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-block: 26px 30px; margin-top: clamp(24px, 3vw, 40px); position: relative; }
.hero__bar::before { content: ""; position: absolute; top: 0; inset-inline: var(--gut); height: 1px; background: var(--line); }
.hero__dots { display: flex; gap: 14px; }
.hero__dot { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.hero__dotn { font-size: 10px; color: var(--text-faint); transition: color 0.3s; text-align: start; }
.hero__dot.is-active .hero__dotn, .hero__dot:hover .hero__dotn { color: var(--text); }
.hero__dotbar { width: clamp(36px, 4vw, 60px); height: 1px; background: var(--line-strong); overflow: hidden; }
.hero__dotbar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero__dotbar span { transform-origin: right; }
.hero__dot.is-active .hero__dotbar span { animation: dotFill 6s linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero__dot.is-active .hero__dotbar span { animation: none; transform: scaleX(1); } }
.hero__loc { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.hero__coordv { font-size: 11px; letter-spacing: 0.1em; color: var(--accent); direction: ltr; }
@media (max-width: 640px) { .hero__loc { display: none; } .hero__cv { display: none; } }

/* ---- Statement ---- */
.statement { padding-block: clamp(100px, 13vw, 200px); }
.statement__grid { display: grid; grid-template-columns: minmax(220px, 0.3fr) 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
@media (max-width: 860px) { .statement__grid { grid-template-columns: 1fr; } }
.statement__text { font-size: clamp(28px, 3.5vw, 54px); line-height: 1.22; font-weight: 300; letter-spacing: -0.02em; text-wrap: pretty; }
[dir="rtl"] .statement__text { line-height: 1.6; }
.statement__w { opacity: 0.15; transition: opacity 0.5s var(--ease); }
.statement__w.is-lit { opacity: 1; }
.statement__card { margin-top: 30px; }
.statement__me { display: flex; align-items: center; gap: 16px; text-align: start; }
.statement__portrait { width: 64px; height: 80px; flex-shrink: 0; overflow: hidden; }
.statement__portrait .ph__img { filter: grayscale(1); transition: transform 0.8s var(--ease), opacity 1s, filter 0.6s; }
.statement__me:hover .statement__portrait .ph__img { transform: scale(1.08); filter: none; }
.statement__metxt { display: flex; flex-direction: column; gap: 4px; }
.statement__name { font-weight: 400; font-size: 17px; }
.statement__more { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .statement__more { letter-spacing: 0; font-family: var(--arabic); }

/* ---- Stats ---- */
.stats { position: relative; z-index: 1; border-block: 1px solid var(--line); padding-top: 40px; }
.stats__eyebrow { margin-bottom: 8px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat { position: relative; padding: clamp(28px, 3.4vw, 52px) clamp(16px, 2.2vw, 34px) clamp(32px, 4vw, 60px); transition: background 0.5s var(--ease); }
.stat:hover { background: var(--panel); }
.stat:not(:last-child) { border-inline-end: 1px solid var(--line); }
@media (max-width: 860px) { .stat:nth-child(2n) { border-inline-end: none; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat:first-child { padding-inline-start: 0; }
.stat__num { font-size: clamp(54px, 6.2vw, 104px); font-weight: 200; line-height: 0.9; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 6px; }
.stat__suf { color: var(--accent); font-size: 0.42em; font-weight: 300; letter-spacing: 0; }
.stat__label { font-size: 14px; line-height: 1.5; color: var(--text-dim); margin-top: 18px; max-width: 28ch; }

/* ---- Section heads ---- */
.section__title { font-size: clamp(38px, 5.4vw, 86px); font-weight: 300; letter-spacing: -0.03em; }
.section__count { font-size: 11px; letter-spacing: 0.22em; color: var(--text-faint); text-transform: uppercase; }
.section__link { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); position: relative; padding-bottom: 4px; }
.section__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0.3); transform-origin: left; transition: transform 0.5s var(--ease); }
.section__link:hover::after { transform: scaleX(1); }

/* ---- Progression (sticky, draws on scroll) ---- */
.prog { position: relative; height: 170vh; }
.prog__sticky { position: sticky; top: 76px; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.prog__sticky > .wrap { width: 100%; }
.prog__list { position: relative; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-top: 48px; }
.prog__track { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.prog__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--d, 0)); transform-origin: left; height: 2px; top: -0.5px; }
[dir="rtl"] .prog__fill { transform-origin: right; }
.prog__step { position: relative; display: flex; flex-direction: column; gap: 10px; opacity: 0.3; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.prog__step.is-on { opacity: 1; transform: none; }
.prog__dot { position: absolute; top: -54px; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.prog__step.is-on .prog__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.prog__n { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.prog__t { font-size: clamp(20px, 2vw, 30px); font-weight: 300; }
.prog__d { font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; line-height: 1.5; }
@media (max-width: 900px) {
  .prog { height: auto; }
  .prog__sticky { position: relative; top: 0; min-height: 0; padding-block: 80px; }
  .prog__list { grid-template-columns: 1fr 1fr; gap: 40px 20px; padding-top: 0; }
  .prog__track, .prog__dot { display: none; }
  .prog__step { opacity: 1; transform: none; }
}

/* ---- Selected work strip ---- */
.strip { position: relative; padding-block: clamp(60px, 8vw, 100px); }
.strip--pinned { padding-block: 0; }
.strip--pinned .strip__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 76px; }
.strip__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 44px); }
.strip__meta { display: flex; align-items: center; gap: 22px; }
.strip__bar { width: clamp(80px, 12vw, 180px); height: 1px; background: var(--line-strong); overflow: hidden; }
.strip__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
[dir="rtl"] .strip__bar span { transform-origin: right; }
.strip__viewport { overflow: hidden; }
.strip:not(.strip--pinned) .strip__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.strip:not(.strip--pinned) .strip__viewport::-webkit-scrollbar { display: none; }
.strip__track { display: flex; gap: clamp(18px, 2.4vw, 36px); padding-inline: var(--gut); width: max-content; will-change: transform; }
.scard { flex: 0 0 auto; width: clamp(270px, 30vw, 460px); scroll-snap-align: start; }
.scard__btn { display: block; width: 100%; text-align: start; }
.scard__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; max-height: 58vh; }
.strip:not(.strip--pinned) .scard__media { max-height: none; }
.scard__ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.scard__btn:hover .ph__img { transform: scale(1.05); }
.scard__ai { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 3; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: rgba(32,22,14,0.55); backdrop-filter: blur(6px); padding: 4px 8px 3px; }
.scard__info { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.scard__idx { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.scard__title { font-size: clamp(24px, 2.2vw, 34px); font-weight: 300; transition: color 0.4s; }
.scard__btn:hover .scard__title { color: var(--accent); }
.scard__meta { font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); }
.scard--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; width: clamp(220px, 20vw, 300px); aspect-ratio: 4 / 5; max-height: 58vh; border: 1px solid var(--line-strong); padding: 32px; color: var(--accent); transition: background 0.5s var(--ease), color 0.5s; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.scard--end:hover { background: var(--accent); color: var(--on-accent); }
.scard__endn { font-size: clamp(64px, 7vw, 120px); font-weight: 100; line-height: 1; letter-spacing: -0.04em; }

/* ---- Platform teaser ---- */
.platform { background: var(--bg-1); border-block: 1px solid var(--line); }
.platform__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
@media (max-width: 1000px) { .platform__grid { grid-template-columns: 1fr; } }
.platform__title { font-size: clamp(40px, 5vw, 80px); line-height: 1; margin: 22px 0 26px; letter-spacing: -0.03em; }
.platform__tline { display: block; }
.platform__tline:last-child { font-weight: 100; color: var(--accent); }
.platform__lede { max-width: 46ch; line-height: 1.7; margin-bottom: 32px; }
.platform__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px; }
.pstat { background: var(--bg-1); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pstat__v { font-size: clamp(30px, 3vw, 44px); font-weight: 200; letter-spacing: -0.03em; line-height: 1; }
.pstat__k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.platform__ribbon { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; background: var(--panel-2); border: 1px solid var(--line); padding: 16px 12px 22px; box-shadow: 0 30px 60px -40px var(--shadow); }
[data-theme="dark"] .platform__ribbon { box-shadow: none; }
.rcol { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rcol__h { width: 100%; text-align: center; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg); background: var(--text); padding: 5px 2px 4px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtool { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 6px 2px; transition: background 0.3s, transform 0.35s var(--ease), opacity 0.6s var(--ease); opacity: 0; transform: translateY(10px) scale(0.9); }
.rcol.in .rtool { opacity: 1; transform: none; }
.rcol.settled .rtool { opacity: 1; transform: none; transition: background 0.3s, transform 0.35s var(--ease); }
.rtool:hover { background: var(--accent-soft); transform: translateY(-3px); }
.rtool .tool-icon { width: 34px; height: 34px; }
.rtool__n { font-size: 9px; line-height: 1.2; text-align: center; color: var(--text-dim); font-family: var(--mono); }
@media (max-width: 640px) { .platform__ribbon { grid-template-columns: repeat(5, minmax(0, 1fr)); } .rtool__n { display: none; } }

/* ---- Capabilities ---- */
.caps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .caps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .caps__grid { grid-template-columns: 1fr; } }
.cap { position: relative; background: var(--bg); padding: clamp(26px, 3vw, 40px); min-height: 300px; display: flex; flex-direction: column; overflow: hidden; transition: background 0.5s var(--ease); }
.cap::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.cap:hover { background: var(--panel-2); }
.cap:hover::before { transform: scaleX(1); }
.cap__top { display: flex; align-items: center; justify-content: space-between; }
.cap__icon { color: var(--accent); display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform 0.6s var(--ease), border-color 0.4s; }
.cap:hover .cap__icon { transform: rotate(-12deg) scale(1.06); border-color: var(--accent); }
.cap__num { font-size: 11px; color: var(--text-faint); }
.cap__title { font-size: clamp(20px, 1.7vw, 24px); font-weight: 400; margin-top: clamp(56px, 7vw, 96px); margin-bottom: 12px; letter-spacing: -0.01em; }
.cap__desc { font-size: 15px; line-height: 1.6; }
