/* Home v3 — hybrid (preview 05) + brand burst and BRANDING tile (preview 09). Base tokens, header, contact and footer are in base.css. */
.works__stick, .works__track { direction: ltr; }
html[dir="rtl"] .works__head, html[dir="rtl"] .work__meta { direction: rtl; }
.works__count { direction: ltr; unicode-bidi: isolate; }
html[lang="en"] .work__en { display: none; }
html[lang="fa"] :is(.statement__text, .work__type, .facts dd) { font-weight: 700; letter-spacing: 0; }
html[dir="rtl"] :is(.step__en, .tile__kicker, .burst__core em, .badge, .work__en, .counter__of) { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.work__type { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work--all .work__frame > span { display: block; }


/* ---------- statement: words fill in as you read ---------- */
.statement { padding-block: clamp(120px, 22svh, 220px) clamp(100px, 16svh, 180px); }
.statement__text { font-family: var(--f-ja); font-weight: 600; font-size: clamp(26px, 6.6vw, 56px); line-height: 1.6; letter-spacing: .02em; max-width: 19em; }
.statement__text .c { color: var(--faint); transition: color .35s ease; }
.statement__text .c.on { color: var(--ink); }
.statement__text .c.hl.on { color: var(--accent); }
.statement__by { margin-top: 36px; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.statement__by::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }

/* ---------- works: pinned horizontal showcase ---------- */
.works { position: relative; background: var(--bg); }
.works__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4svh, 44px); padding-top: var(--nav-h); }
.works__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.works__head h2 { font-family: var(--f-ja); font-size: clamp(34px, 8vw, 64px); line-height: 1.2; margin-top: 8px; }
.works__count { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.works__track { display: flex; gap: clamp(16px, 3vw, 32px); padding-left: var(--gut-l); padding-right: var(--gut-r); width: max-content; will-change: transform; }
.work { width: clamp(232px, 64vw, 380px); flex: none; }
.work__frame { position: relative; aspect-ratio: 4 / 5; max-height: 56svh; border-radius: var(--arch); overflow: hidden; background: var(--paper); transition: border-radius .5s var(--ease); }
.work__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work:hover .work__frame img { transform: scale(1.05); }
.work__meta { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.work__type { font-family: var(--f-ja); font-weight: 600; font-size: 18px; }
.work__en { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.work--all .work__frame { display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); text-align: center; }
.work--all .work__frame span { font-family: var(--f-ja); font-size: 20px; font-weight: 600; line-height: 1.6; }
.work--all .work__frame em { display: block; margin-top: 8px; font-style: normal; color: var(--accent); font-size: 14px; }
/* websites scroll their full-page screenshot inside the arch (same rule as works.css .frame--site) */
.work__frame.frame--site { background: #14120F; container-type: size; }
.work__frame.frame--site > img { height: auto; object-fit: initial; transform: translateY(0); transition: none; }
.work__frame.frame--site.play > img { animation: pageScroll var(--dur, 22s) linear infinite alternate; }
.work:hover .work__frame.frame--site > img { animation-play-state: paused; }
@keyframes pageScroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.works__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.works__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--wp, 0)); }

/* ---------- services ---------- */
.services { padding-block: clamp(100px, 16svh, 180px) clamp(40px, 8svh, 90px); }
.services__head { max-width: 22em; }
.services__head h2 { font-family: var(--f-ja); font-size: clamp(28px, 6.4vw, 54px); line-height: 1.45; margin-top: 12px; }
.tiles { margin-top: clamp(40px, 7svh, 72px); display: grid; gap: 16px; }
.tile { border-radius: 28px; padding: clamp(28px, 5vw, 56px); padding-bottom: 0; overflow: hidden; display: grid; gap: 14px; align-content: start; min-width: 0; }
.tile--paper { background: var(--paper); }
.tile--ink { background: var(--panel); color: var(--on-panel); }
.tile__kicker { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .26em; color: var(--accent); }
.tile--ink .tile__kicker, .tile--ink .more { color: var(--on-panel-accent); }
.tile h3 { font-family: var(--f-ja); font-size: clamp(28px, 6vw, 44px); }
.tile p { color: var(--ink-soft); font-size: 15px; line-height: 2; max-width: 30em; }
.tile--ink p { color: var(--on-panel-soft); }
.tile__list { font-size: 13px !important; letter-spacing: .06em; }
.tile__media {
	margin-top: 22px; margin-inline: auto; width: min(100%, 460px); aspect-ratio: 1 / 1.02;
	border-radius: 999px 999px 0 0; overflow: hidden;
	transform: translateY(calc((1 - var(--e, 1)) * 60px)) scale(calc(.9 + var(--e, 1) * .1));
	transform-origin: 50% 100%;
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.16 - var(--e, 1) * .16)); }
@media (min-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- brand burst (preview 09): one brand core, its touchpoints fan out ---------- */
.burst { position: relative; height: 300svh; }
.burst__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-top: var(--nav-h); }
.burst__text { position: relative; z-index: 3; text-align: center; padding-top: clamp(18px, 5svh, 56px); }
.burst__text h2 { font-family: var(--f-ja); font-size: clamp(28px, 6.6vw, 60px); line-height: 1.35; margin-top: 8px; }
.burst__text p { margin: 12px auto 0; max-width: 32em; color: var(--ink-soft); font-size: clamp(13.5px, 3.4vw, 16px); line-height: 1.9; }
.burst__field { position: absolute; inset: 0; z-index: 1; direction: ltr; }
.burst__rings { position: absolute; left: 50%; top: var(--cy, 64%); width: min(92vw, 820px); height: auto; translate: -50% -58%; overflow: visible; pointer-events: none; }
.burst__rings path { fill: none; stroke: var(--faint); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--rp, 0)); }
.burst__rings path:first-child { stroke: var(--accent-light); opacity: .7; }
.burst__core {
	position: absolute; left: 50%; top: var(--cy, 64%); width: clamp(118px, 17vw, 210px); aspect-ratio: 4 / 5; translate: -50% -50%;
	border-radius: 999px 999px 14px 14px; background: var(--accent); color: var(--on-accent); display: grid; place-content: center; text-align: center; gap: 4px; z-index: 2;
	box-shadow: 0 30px 60px -30px rgba(var(--accent-rgb), .6);
}
.burst__core::after { content: ""; position: absolute; inset: -10px; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--accent-light); opacity: 0; animation: core-pulse 3.2s var(--ease) infinite; pointer-events: none; }
@keyframes core-pulse { 0% { opacity: .9; transform: scale(.94); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
.burst__core:hover { background: var(--accent-dark); }
.burst__core em { font-family: var(--f-latin); font-size: clamp(20px, 3vw, 34px); line-height: 1; }
.burst__core span { font-family: var(--f-ja); font-weight: 600; font-size: clamp(11px, 1.3vw, 14px); letter-spacing: .14em; opacity: .85; }
.bc { position: absolute; left: 50%; top: var(--cy, 64%); margin: 0; width: clamp(92px, 10.5vw, 170px); translate: -50% -50%; opacity: 0; will-change: transform, opacity; }
.bc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 10px 10px; box-shadow: 0 24px 40px -26px rgba(40, 25, 10, .55); background: var(--paper); }
.bc figcaption { margin-top: 6px; text-align: center; font-family: var(--f-ja); font-weight: 600; font-size: clamp(11px, 1.2vw, 13px); line-height: 1.4; color: var(--ink-soft); }
html[lang="fa"] .bc figcaption { direction: rtl; }
@media (max-width: 699px) { .bc { width: clamp(70px, 20vw, 110px); } .bc figcaption { font-size: 10.5px; margin-top: 3px; } .burst__core { width: clamp(92px, 25vw, 130px); } .burst__text p { font-size: 13px; } }
.burst__cta { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; justify-content: center; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease); pointer-events: none; }
.burst__cta.on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- services: BRANDING tile first, full width ---------- */
.tile--brand { position: relative; background: var(--accent); color: var(--on-accent); }
.tile--brand::before { content: ""; position: absolute; right: -60px; top: -80px; width: 300px; height: 380px; border-radius: 999px 999px 0 0; box-shadow: inset 0 0 0 1.5px rgba(var(--on-accent-soft-rgb), .22); pointer-events: none; }
.tile--brand > * { position: relative; }
.tile--brand .tile__kicker, .tile--brand .more { color: var(--on-accent-soft); }
.tile--brand p { color: rgba(var(--on-accent-rgb), .92); } /* 4.9:1 on --accent */
.tile .tile__ai { font-family: var(--f-ja); font-weight: 600; font-size: clamp(16px, 3.6vw, 19px); color: var(--on-accent-hi); border-inline-start: 2px solid var(--on-accent-soft); padding-inline-start: 12px; line-height: 1.6; }
.tile__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
@media (min-width: 900px) {
	.tile--brand { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 56px; padding-bottom: clamp(28px, 5vw, 56px); }
	.tile--brand > :not(.tile__media) { grid-column: 1; }
	.tile--brand .tile__media { grid-column: 2; grid-row: 1 / span 6; margin: 0; align-self: end; border-radius: 999px 999px 18px 18px; }
	.tile--brand h3 { font-size: clamp(36px, 4.6vw, 56px); }
}
.process__links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- process: pinned arch counter ---------- */
.process { padding-block: clamp(100px, 16svh, 180px); }
.process__head h2 { font-family: var(--f-ja); font-size: clamp(30px, 7vw, 58px); line-height: 1.45; margin-top: 12px; }
.process__head p { margin-top: 18px; color: var(--ink-soft); max-width: 30em; }
.process__body { margin-top: clamp(48px, 8svh, 88px); display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 22px; }
.counter { position: sticky; top: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px)); align-self: start; }
.counter svg { width: 100%; height: auto; overflow: visible; }
.counter .track { fill: none; stroke: var(--line); stroke-width: 3; }
.counter .draw { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--pp, 0)); }
.counter__num { position: absolute; inset: 22% 0 auto; text-align: center; font-family: var(--f-latin); font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.counter__of { position: absolute; inset: auto 0 14%; text-align: center; font-family: var(--f-ui); font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 14svh, 140px); padding-bottom: 8svh; }
.step { transition: opacity .5s ease; }
.js .step { opacity: .28; }
.js .step.is-on { opacity: 1; }
.step__en { font-family: var(--f-ui); font-weight: 700; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-family: var(--f-ja); font-size: clamp(26px, 6vw, 44px); margin-top: 6px; }
.step p { margin-top: 10px; color: var(--ink-soft); max-width: 26em; }
@media (min-width: 900px) {
	.process__body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
	.counter { max-width: 300px; justify-self: center; width: 100%; }
	.counter__num { font-size: 120px; }
	.counter__of { font-size: 12px; }
}

/* ---------- about ---------- */
.about { padding-block: clamp(60px, 10svh, 120px) clamp(110px, 18svh, 200px); }
.about__grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.about__frame { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--paper); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - var(--e, 1) * .14)); }
.badge { position: absolute; left: 50%; bottom: -16px; translate: -50% 0; white-space: nowrap; background: var(--accent); color: var(--on-accent); font-family: var(--f-ui); font-weight: 700; font-size: 11.5px; letter-spacing: .2em; padding: 8px 16px; border-radius: 999px; }
.about__body { min-width: 0; display: grid; gap: 20px; }
.about__body h2 { font-family: var(--f-ja); font-size: clamp(28px, 6.2vw, 48px); line-height: 1.5; }
.about__body > p { color: var(--ink-soft); max-width: 32em; }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 16px 12px 0 0; }
.facts dt { font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }
.facts dd { margin: 4px 0 0; font-family: var(--f-ja); font-weight: 600; font-size: clamp(15px, 3.8vw, 19px); line-height: 1.5; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 5fr 6fr; } }


@media (prefers-reduced-motion: reduce) {
	.works { height: auto !important; }
	.burst { height: auto; }
	.burst__stick { position: relative; height: auto; padding-block: 80px; overflow: visible; }
	.burst__field { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 28px var(--gut-r) 0 var(--gut-l); max-width: 900px; margin: 0 auto; }
	.burst__core, .burst__rings { display: none; }
	.bc { position: static; translate: none; opacity: 1; width: auto; transform: none !important; }
	.burst__cta { position: static; opacity: 1; transform: none; margin-top: 28px; pointer-events: auto; }
	.works__stick { position: relative; height: auto; padding-block: 80px; }
	.works__track { transform: none !important; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
	.work { scroll-snap-align: center; }
	.works__bar { display: none; }
	.statement__text .c { color: var(--ink); }
	.tile__media, .tile__media img, .about__frame img { transform: none; }
	.burst__core::after { animation: none; }
	.work__frame.frame--site.play > img { animation: none; }
	.work__frame.frame--site { overflow-y: auto; }
}


/* ---------- hero: the arch wall (option B) ---------- */
.hero { position: relative; height: calc(100svh - var(--nav-h)); min-height: 600px; overflow: hidden; background: var(--bg); }
.hero__cols { position: absolute; inset: -6% 0 -6% auto; width: min(58%, 780px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-right: var(--gut-r); transform: rotate(-4deg) scale(1.08); transform-origin: 60% 50%; direction: ltr; }
.hero__col { display: grid; gap: 14px; align-content: start; animation: hero-drift 52s linear infinite; will-change: transform; }
.hero__col:nth-child(2) { animation-direction: reverse; animation-duration: 60s; }
.hero__col:nth-child(3) { animation-duration: 46s; }
.hero__col figure { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--paper); }
.hero__col img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hero-drift { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 36%, rgba(var(--bg-rgb), .82) 47%, rgba(var(--bg-rgb), 0) 66%); pointer-events: none; }
.hero__text { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 1180px; margin-inline: auto; padding: 40px var(--gut-r) 40px var(--gut-l); }
.hero__text > div { max-width: 640px; }
.hero__title { margin-top: 18px; font-family: var(--f-ja); font-weight: 600; font-size: clamp(34px, 4.9vw, 72px); line-height: 1.24; letter-spacing: .02em; word-break: auto-phrase; }
.hero__title > span, .hero__title > em { display: inline-block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 28em; color: var(--ink-soft); line-height: 2; font-size: clamp(15px, 3.8vw, 17px); }
.hero__tags { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--paper); font-size: 12.5px; color: var(--ink-soft); transition: background-color .2s ease, color .2s ease; }
.hero__tags a:hover { background: var(--ink); color: var(--on-ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero .rv-in { animation: rise .9s var(--ease) both; }
@media (max-width: 860px) {
	.hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
	.hero__text { order: -1; height: auto; margin: 0; padding-top: clamp(48px, 9svh, 80px); padding-bottom: 32px; }
	.hero__cols { position: relative; inset: auto; width: 100%; height: 60svh; transform: none; overflow: hidden; gap: 10px; padding: 0 var(--gut-r) 0 var(--gut-l);
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
	.hero__col { gap: 10px; }
	.hero__veil { display: none; }
}
html[dir="rtl"] .hero__veil { background: linear-gradient(270deg, var(--bg) 0%, var(--bg) 36%, rgba(var(--bg-rgb), .82) 47%, rgba(var(--bg-rgb), 0) 66%); }
html[dir="rtl"] .hero__cols { inset: -6% auto -6% 0; padding-right: 0; padding-left: var(--gut-l); }
html[lang="fa"] .hero__title { font-weight: 700; letter-spacing: 0; }
@media (max-width: 860px) { html[dir="rtl"] .hero__cols { inset: auto; } }
@media (prefers-reduced-motion: reduce) { .hero__col { animation: none; } }
