/* Tueri website. Navy and gold from the logo; the logo's lit window is the one recurring motif. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #072A5F;
  --midnight: #0B1C38;
  --gold: #C8922A;
  --gold-text: #86600F;
  --porcelain: #F4F6FA;
  --slate: #566277;
  --line: #DCE3EE;
  --white: #FFFFFF;
  --critical: #B83A2E;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Persian and Arabic use Vazirmatn; Chinese and Russian fall back to the system's own fonts for their letters. */
:root:lang(fa), :root:lang(ar) { --font: "Vazirmatn", "Inter", system-ui, sans-serif; --display: "Vazirmatn", "Inter Display", system-ui, sans-serif; }
:root:lang(zh) { --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif; --display: "Inter Display", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
:root:lang(ru) { --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --display: "Inter Display", system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
/* Tight Latin tracking hurts other scripts. */
:root:lang(fa) h1, :root:lang(fa) h2, :root:lang(fa) h3, :root:lang(ar) h1, :root:lang(ar) h2, :root:lang(ar) h3,
:root:lang(zh) h1, :root:lang(zh) h2, :root:lang(zh) h3 { letter-spacing: 0; }
:root:lang(fa) .hero h1, :root:lang(ar) .hero h1 { line-height: 1.3; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--midnight); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -0.022em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--midnight); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--slate); }

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 12px; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn.gold { background: var(--gold); color: var(--midnight); }
.btn.gold:hover { background: #B7841F; }
.btn.outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--porcelain); }
.btn.ghost-light { color: #fff; border-color: rgb(255 255 255 / .45); }
.btn.ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / .06); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }

/* ───────── Header ───────── */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: block; flex: none; }
.logo { height: 44px; width: auto; }
.wordtext { font: 600 22px var(--display); color: var(--navy); }
.nav { display: flex; gap: 22px; margin-inline-end: auto; }
.nav a, .signin, .lang { color: var(--midnight); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .signin:hover, .lang:hover { color: var(--navy); text-decoration: underline; }
.top-actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.lang { color: var(--slate); }
@media (max-width: 980px) { .nav { display: none; } }
@media (max-width: 560px) { .signin { display: none; } .top-in { gap: 12px; } .logo { height: 38px; } .top-actions { gap: 12px; } }

/* ───────── Hero ───────── */
.hero { background: var(--midnight); color: #fff; overflow: hidden; position: relative; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-text { padding-bottom: 88px; }
.tagline { color: var(--gold); font-weight: 600; letter-spacing: .02em; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; }
.hero .lead { color: rgb(255 255 255 / .84); margin-top: 26px; max-width: 54ch; font-size: 1.12rem; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgb(255 255 255 / .62); }
.hero-art { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hero-house { width: min(620px, 118%); margin-bottom: -4px; }
.h-roof { fill: #fff; opacity: .1; }
.h-window { fill: var(--gold); }
.hero-house .h-window { animation: lamp 1.6s ease-out .3s both; }
@keyframes lamp { from { opacity: 0; } 60% { opacity: .55; } to { opacity: 1; } }
.hero-phone { width: min(330px, 78%); margin: 26px 0 0; border-radius: 40px 40px 0 0; padding: 10px 10px 0; background: #1B2A44; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55); }
.hero-phone img { border-radius: 31px 31px 0 0; height: 470px; width: 100%; object-fit: cover; object-position: top; }
@media (prefers-reduced-motion: reduce) { .hero-house .h-window { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; gap: 0; }
  .hero-text { padding-bottom: 36px; }
  .hero-house { width: min(440px, 100%); }
  .hero-phone { width: min(300px, 80%); }
  .hero-phone img { height: 380px; }
}

/* ───────── Sections ───────── */
section { padding: clamp(64px, 9vw, 112px) 0; }
.sec-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 20ch; }
.lead { font-size: 1.1rem; color: var(--slate); max-width: 62ch; margin-top: 16px; }
.fine { font-size: 14px; color: var(--slate); margin-top: 22px; max-width: 80ch; }
.pane { width: 18px; height: 18px; flex: none; fill: var(--gold); }

.pillars { padding-bottom: clamp(48px, 6vw, 80px); }
.pillar-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.pillar { padding-block: 28px 0; padding-inline: 0 28px; }
.pillar + .pillar { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.pillar h3 { display: flex; gap: 12px; align-items: center; font-size: 1.5rem; }
.pillar p { margin-top: 12px; color: var(--slate); }
@media (max-width: 820px) { .pillar-row { grid-template-columns: 1fr; } .pillar + .pillar { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); } .pillar { padding-bottom: 24px; } }

.how { background: var(--porcelain); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 18px/44px var(--display); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; inset-inline-start: 56px; inset-inline-end: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 8px; color: var(--slate); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.split-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip .split-text { order: 2; }
.split.flip { background: var(--porcelain); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li .pane { margin-top: 4px; }
.ticks.small { gap: 10px; font-size: 15px; margin-top: 20px; }
.ticks.small .pane { width: 14px; height: 14px; margin-top: 5px; }
.phone { margin: 0; justify-self: center; width: min(330px, 100%); padding: 10px; border-radius: 42px; background: var(--midnight); box-shadow: 0 30px 70px -28px rgb(11 28 56 / .55); }
.phone img { border-radius: 32px; width: 100%; height: auto; }
@media (max-width: 860px) { .split-in { grid-template-columns: 1fr; } .split.flip .split-text { order: 0; } .split-art .phone { width: min(290px, 86%); } }

.trust { background: var(--navy); color: #fff; }
.trust .sec-title { color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin: 48px 0 0; }
.trust-grid dt { font: 600 1.25rem/1.25 var(--display); padding-inline-start: 22px; border-inline-start: 3px solid var(--gold); }
.trust-grid dd { margin: 10px 0 0; padding-inline-start: 25px; color: rgb(255 255 255 / .8); max-width: 52ch; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }

.map { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 16px; }
.map th { text-align: start; font: 600 15px var(--font); color: var(--slate); padding-block: 0 12px; padding-inline: 0 20px; border-bottom: 2px solid var(--midnight); }
.map th + th { padding-inline-start: 20px; }
.map td { padding-block: 18px; padding-inline: 0 20px; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.map td + td { padding-inline-start: 20px; }
.map .cell { display: flex; gap: 12px; }
.map .cell .pane { margin-top: 4px; }
@media (max-width: 640px) {
  .map thead { display: none; }
  .map tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .map td { display: block; width: auto; border: 0; padding: 0; }
  .map td:first-child { color: var(--slate); font-size: 15px; margin-bottom: 6px; }
  .map td + td { padding-inline-start: 0; }
}

.plans { background: var(--porcelain); }
.plan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 44px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.5rem; }
.plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan .amount { font: 600 2.6rem/1 var(--display); letter-spacing: -0.03em; }
.plan .per { color: var(--slate); }
.plan-sum { margin-top: 14px; color: var(--slate); font-size: 15px; }
.plan .ticks { margin-bottom: 26px; }
.plan .btn { margin-top: auto; white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
.plan.featured { background: var(--midnight); color: #fff; border-color: var(--midnight); }
.plan.featured .per, .plan.featured .plan-sum { color: rgb(255 255 255 / .72); }
.badge { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--gold); color: var(--midnight); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding-block: 20px; padding-inline: 0 40px; font-weight: 600; font-size: 1.05rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa details p { padding: 0 0 22px; color: var(--slate); max-width: 62ch; }
@media (max-width: 820px) { .faq-in { grid-template-columns: 1fr; gap: 24px; } }

.closing { background: var(--midnight); color: #fff; padding: 72px 0; overflow: hidden; }
.closing-in { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; position: relative; }
.closing-house { width: 150px; flex: none; }
.closing h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.closing p { color: rgb(255 255 255 / .75); margin-top: 8px; }
.closing .btn { margin-inline-start: auto; }
.closing .h-roof, .done .h-roof { opacity: .16; }

/* ───────── Footer ───────── */
.foot { background: #081429; color: rgb(255 255 255 / .74); padding: 56px 0 40px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; }
.foot .logo { height: 46px; }
.foot-brand p { margin-top: 16px; max-width: 40ch; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links h2 { font: 600 15px var(--font); color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.foot-links a { display: block; color: rgb(255 255 255 / .74); text-decoration: none; margin-top: 6px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 14px; }
@media (max-width: 680px) { .foot-in { grid-template-columns: 1fr; } }

/* ───────── Application form ───────── */
.page-apply main { background: var(--porcelain); }
.apply { padding: 48px 0 96px; }
.apply-in { max-width: 820px; }
.apply-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.progress { list-style: none; padding: 0; margin: 32px 0 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: p; }
.progress li { counter-increment: p; font-size: 14px; color: var(--slate); padding-top: 12px; border-top: 4px solid var(--line); }
.progress li span::before { content: counter(p) ". "; }
.progress li.passed { border-color: var(--navy); }
.progress li[aria-current="step"] { border-color: var(--gold); color: var(--midnight); font-weight: 600; }
@media (max-width: 560px) { .progress li span { display: none; } .progress li[aria-current="step"] span { display: inline; white-space: nowrap; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); }
.form .step { padding: 0; }
.step h2 { font-size: 1.6rem; margin-bottom: 6px; }
.step-intro { color: var(--slate); margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; min-width: 0; }
.field label, .choices legend { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--slate); }
.in { font: inherit; font-size: 16px; color: inherit; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #C5CFDE; border-radius: 10px; background: #fff; }
textarea.in { min-height: 110px; resize: vertical; }
.in:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(200 146 42 / .35); }
.in[aria-invalid="true"] { border-color: var(--critical); }
.hint { font-size: 14px; color: var(--slate); }
.err { font-size: 14px; color: var(--critical); font-weight: 500; }
.form-err { margin-top: 20px; padding: 12px 14px; background: #FBEDEB; border-radius: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
.choices { border: 0; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; min-width: 0; }
.choices legend { margin-bottom: 10px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: #F0F4FB; }
.choice input, .tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.tick { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.ticks-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 20px; }
.ticks-grid .tick { margin-top: 6px; }
.consents .tick { margin-top: 6px; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #FFF6E6; border-inline-start: 4px solid var(--gold); font-size: 15px; }
.person { border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 20px 18px; margin: 18px 0 0; }
.person .remove { margin-top: 16px; color: var(--critical); }
#add-person { margin-top: 18px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav #next { margin-inline-start: auto; }
.draft { margin-top: 14px; text-align: center; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 48px clamp(22px, 4vw, 48px); margin-top: 28px; text-align: center; }
.done-house { width: 160px; margin: 0 auto 24px; }
.done .h-roof { fill: var(--navy); }
.done h2 { font-size: 1.9rem; }
.done .ref { font: 600 1.15rem var(--display); color: var(--gold-text); margin: 14px 0; }
.done p { color: var(--slate); max-width: 52ch; margin-left: auto; margin-right: auto; }
.done .btn { margin-top: 28px; }

/* ───────── Prose pages ───────── */
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.3rem; margin-top: 36px; }
.prose p { margin-top: 12px; color: #2A3550; }

/* ───────── Language menu ───────── */
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--slate); padding: 6px 8px; border-radius: 8px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--navy); background: var(--porcelain); }
.langs summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgb(11 28 56 / .35); z-index: 30; }
.langs a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--midnight); text-decoration: none; font-size: 15px; }
.langs a:hover { background: var(--porcelain); }
.langs a[aria-current] { font-weight: 600; color: var(--navy); background: #EEF3FB; }
@media (max-width: 560px) { .langs summary span { display: none; } }

/* ───────── Right-to-left ───────── */
[dir="rtl"] .steps li:not(:last-child)::after { background: repeating-linear-gradient(270deg, var(--line) 0 8px, transparent 8px 14px); }
[dir="rtl"] .hero-house, [dir="rtl"] .closing-house, [dir="rtl"] .done-house { transform: none; }
[dir="rtl"] .logo { direction: ltr; }

/* ───────────── Welcome (home page, once per visit; intro.js switches it on) ───────────── */
.intro { display: none; }
.intro-on body { overflow: hidden; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: clamp(18px, 3vh, 30px);
  background: radial-gradient(120% 90% at 50% 42%, #10264A 0%, var(--midnight) 58%, #07132A 100%); color: #fff; cursor: pointer;
}
.intro-left .intro { animation: i-out .65s cubic-bezier(.4, 0, .2, 1) forwards; }
.intro-left .i-logo { animation: i-lift .65s cubic-bezier(.4, 0, .2, 1) forwards; }
.intro-leaving .intro { animation: i-out .38s ease forwards; }

.i-logo { position: relative; width: min(600px, 84vw); aspect-ratio: 1120 / 448; }
.i-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.i-glow {
  position: absolute; left: 49.1%; top: 34.6%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(200 146 42 / .42), rgb(200 146 42 / 0)); opacity: 0;
  animation: i-glow 1.4s ease-out 1.55s forwards;
}
.i-roof {
  fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: i-draw 1.1s cubic-bezier(.65, 0, .35, 1) .25s forwards, i-fill .5s ease 1.05s forwards;
}
.i-chimney { fill: #fff; opacity: 0; translate: 0 26px; animation: i-rise .5s cubic-bezier(.2, .7, .2, 1) 1.2s forwards; }
.i-pane {
  fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; scale: .4;
  animation: i-pane .45s cubic-bezier(.2, .9, .3, 1.25) calc(1.5s + var(--i) * .14s) forwards;
}
.i-word { fill: #fff; clip-path: inset(0 100% 0 0); animation: i-wipe .95s cubic-bezier(.65, 0, .35, 1) 2.15s forwards; }
.i-check { fill: var(--gold); clip-path: inset(0 100% 0 0); animation: i-wipe .45s cubic-bezier(.3, 0, .2, 1) 3s forwards; }
.i-text span { display: block; font-family: var(--display); font-size: clamp(3rem, 10vw, 6rem); font-weight: 600; text-align: center; opacity: 0; animation: i-fade 1s ease .4s forwards; }
.i-text { aspect-ratio: auto; }

.i-tag { margin: 0; font-size: clamp(13px, 1.6vw, 16px); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); text-align: center; padding-inline: 16px; }
.i-tag span { display: inline-block; opacity: 0; translate: 0 8px; animation: i-word .55s ease calc(3.25s + var(--i) * .13s) forwards; }
:root:lang(fa) .i-tag, :root:lang(ar) .i-tag, :root:lang(zh) .i-tag { letter-spacing: .08em; font-size: clamp(15px, 1.9vw, 19px); }

.i-skip {
  position: absolute; inset-block-end: clamp(16px, 4vh, 32px); inset-inline-end: clamp(16px, 4vw, 40px);
  font: inherit; font-size: 14px; color: rgb(255 255 255 / .72); background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; padding: 7px 16px; cursor: pointer;
  opacity: 0; animation: i-fade .4s ease .8s forwards;
}
.i-skip:hover { color: #fff; border-color: rgb(255 255 255 / .5); }
.i-skip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@keyframes i-draw { to { stroke-dashoffset: 0; } }
@keyframes i-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes i-rise { to { opacity: 1; translate: 0 0; } }
@keyframes i-pane { to { opacity: 1; scale: 1; } }
@keyframes i-glow { 0% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: .7; } }
@keyframes i-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes i-word { to { opacity: 1; translate: 0 0; } }
@keyframes i-fade { to { opacity: 1; } }
@keyframes i-out { to { opacity: 0; visibility: hidden; } }
@keyframes i-lift { to { scale: 1.04; translate: 0 -6px; } }

/* Reduced motion: the finished logo, briefly, then the page. */
@media (prefers-reduced-motion: reduce) {
  .i-roof, .i-chimney, .i-pane, .i-word, .i-check, .i-glow, .i-tag span, .i-skip, .i-text span {
    animation: i-fade .3s ease forwards; opacity: 0; translate: none; scale: none; clip-path: none; stroke: none; fill-opacity: 1; stroke-dashoffset: 0;
  }
  .intro-left .i-logo { animation: none; }
}

/* Copyright and studio credit under the footer. */
.foot-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.foot .credit { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / .6); text-decoration: none; font-size: 13px; margin-top: 0; }
.foot .credit:hover { color: #fff; text-decoration: underline; }
.credit-logo { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
