/* =========================================================
   Faculty of Economics, University of Tehran — Programs landing
   Theme: University of Tehran blue (from the logo), night navy, lamp gold
   All sizes are in rem: on desktops the root size follows the screen,
   so 1366–1600px screens get the proportions of a ~70–75% browser zoom.
   ========================================================= */

@font-face { font-family: "Vazirmatn"; src: url(../fonts/Vazirmatn-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ut: #0EADDE;          /* logo blue */
  --ut-deep: #08729F;     /* accessible action blue on white */
  --ut-ink: #0A4F70;
  --ut-tint: #E8F6FC;
  --ut-tint-2: #D3EEF9;
  --night: #0A1828;
  --night-2: #0F2238;
  --night-3: #173250;
  --paper: #FFFFFF;
  --mist: #F4F8FA;
  --line: #DCE6EC;
  --line-2: #C6D5DF;
  --ink: #0F1B27;
  --ink-2: #435464;
  --ink-3: #75879A;
  --gold: #F0BE5E;
  --gold-2: #F7D48F;
  --err: #C0293B;

  --wrap: 78rem;
  --gutter: 1.25rem;
  --hdr-h: 4.75rem;
  --stick-top: var(--hdr-h);
  --r-sm: .5rem;
  --r: .875rem;
  --r-lg: 1.375rem;
  --shadow: 0 1.5rem 3rem -1.75rem rgba(10, 40, 70, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="fa"] {
  --f-display: "Vazirmatn", Tahoma, sans-serif;
  --f-body: "Vazirmatn", Tahoma, sans-serif;
  --w-hero: 850;
  --w-title: 800;
  --w-sub: 700;
  --lh-body: 1.9;
  --lh-display: 1.3;
  --track-display: -0.015em;
  --shade-dir: to left;
}
html[lang="en"] {
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-hero: 600;
  --w-title: 600;
  --w-sub: 600;
  --lh-body: 1.6;
  --lh-display: 1.06;
  --track-display: -0.02em;
  --shade-dir: to right;
}

/* fluid root size */
html { font-size: 100%; }
@media (min-width: 761px) and (max-width: 1099px) { html { font-size: 14px; } }
@media (min-width: 1100px) { html { font-size: clamp(11.5px, min(0.8vw, 1.62vh), 16px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + var(--pswitch-h, 0px) + 1rem); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--f-body); font-size: 1.0625rem; line-height: var(--lh-body);
  color: var(--ink); background: var(--night);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--ut); color: #fff; }
:focus-visible { outline: 2px solid var(--ut); outline-offset: 3px; border-radius: 3px; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: .5rem; inset-inline-start: .5rem; z-index: 200; background: var(--gold); color: var(--night); padding: .625rem 1rem; transform: translateY(-160%); transition: transform .2s; text-decoration: none; font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { transform: none; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
[dir="ltr"] .flip-start { transform: scaleX(-1); }
[dir="rtl"] .flip-end { transform: scaleX(-1); }
[dir="rtl"] .hero__path-i { transform: scaleX(-1); }

/* pearls — the ring of the University of Tehran emblem, used as a quiet section mark */
.pearls { display: flex; gap: .3rem; margin-bottom: 1.1rem; }
.pearls i { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--ut); }
.pearls i:nth-child(2) { opacity: .6; }
.pearls i:nth-child(3) { opacity: .3; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  height: 3.375rem; padding: 0 1.75rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .3s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--lamp { background: var(--gold); color: #2A1A05; box-shadow: 0 .75rem 2.25rem -.9rem rgba(240, 190, 94, .85); }
.btn--lamp:hover { background: var(--gold-2); }
.btn--ut { background: var(--ut-deep); color: #fff; box-shadow: 0 .75rem 1.75rem -1rem rgba(8, 114, 159, .8); }
.btn--ut:hover { background: var(--ut-ink); }
.btn--line { height: 2.75rem; padding: 0 1.15rem; border-color: currentColor; background: transparent; font-weight: 600; font-size: .94rem; }
.btn--line:hover { background: rgba(14, 173, 222, .12); }
.btn--text { background: none; color: var(--ink-2); padding: 0 .75rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; color: #fff;
  transition: background-color .35s, color .35s, border-color .35s, transform .35s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(255, 255, 255, .96); color: var(--ink); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; gap: 2.25rem; height: var(--hdr-h); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; flex: none; }
.brand__logo { width: 2.85rem; height: 2.85rem; object-fit: contain; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.3; font-size: .88rem; }
.brand__txt span:first-child { font-weight: 800; font-size: 1.02rem; }
html[lang="en"] .brand__txt span:first-child { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.nav { display: flex; gap: 1.9rem; margin-inline-start: auto; font-size: .97rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: .86; padding-block: .4rem; background: linear-gradient(var(--ut), var(--ut)) bottom right / 0 2px no-repeat; transition: background-size .3s var(--ease), opacity .2s; }
[dir="ltr"] .nav a { background-position: bottom left; }
.nav a:hover { opacity: 1; background-size: 100% 2px; }
.hdr__end { display: flex; align-items: center; gap: 1.25rem; }
.nav + .hdr__end { margin-inline-start: .5rem; }
.hdr__lang { font-size: .9rem; text-decoration: none; opacity: .85; }
.hdr__lang:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hdr__tel { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: .98rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hdr__tel .ico { width: 1.1rem; height: 1.1rem; color: var(--ut); }
.hdr__menu { display: none; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; place-items: center; }
.hdr__menu .ico { width: 1.6rem; height: 1.6rem; }

@media (max-width: 1099px) {
  .nav { display: none; }
  .hdr__end { margin-inline-start: auto; }
  .hdr__menu { display: grid; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 4rem; --gutter: 1rem; }
  .hdr__cta, .hdr__lang { display: none; }
  .hdr__tel span { display: none; }
  .hdr__tel { width: 2.75rem; height: 2.75rem; justify-content: center; border: 1px solid currentColor; border-radius: 50%; }
  .hdr__tel .ico { color: inherit; }
  .brand__logo { width: 2.5rem; height: 2.5rem; }
  .brand__txt { font-size: .78rem; }
  .brand__txt span:first-child { font-size: .9rem; }
  .hdr__end { gap: .5rem; }
  .hdr__in { gap: .75rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand__txt { min-width: 0; }
  .brand__txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[lang="en"] .brand__txt span:first-child { font-size: 1.02rem; }
}

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 120; background: var(--night); color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--hdr-h); }
.menu__close { width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.menu__close .ico { width: 1.6rem; height: 1.6rem; }
.menu__nav { display: flex; flex-direction: column; padding-block: 1.5rem; flex: 1; }
.menu__nav a { font-family: var(--f-display); font-weight: var(--w-title); font-size: clamp(1.7rem, 7.5vw, 2.4rem); line-height: 1.6; text-decoration: none; padding-block: .35rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menu__foot { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .14); }
.menu__foot a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; }
.menu.is-open { animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(14, 173, 222, .2) 0%, rgba(14, 173, 222, .05) 45%, transparent 72%),
    linear-gradient(180deg, #0C1D31 0%, #0A1828 55%, #07111D 100%);
}
.hero__stage { position: absolute; inset: 0; z-index: -2; }
#hero-canvas { width: 100%; height: 100%; }
.hero__fallback { display: none; position: absolute; width: min(70%, 62rem); left: 50%; top: 13%; transform: translateX(-50%); opacity: .85; }
.no-webgl .hero__fallback { display: block; }
.no-webgl #hero-canvas { display: none; }
.hero__shade { position: absolute; inset: auto 0 0; height: 62%; z-index: -1; background: linear-gradient(to top, rgba(7, 17, 29, .97) 10%, rgba(7, 17, 29, .72) 48%, rgba(7, 17, 29, 0)); pointer-events: none; }

.hero__content { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: clamp(2rem, 5vw, 6rem); align-items: end; padding-block: calc(var(--hdr-h) + 44vh) 3rem; }
.hero__kicker { font-size: 1.4rem; font-weight: 500; color: var(--ut); margin-bottom: .75rem; }
.hero__title {
  font-family: var(--f-display); font-weight: var(--w-hero);
  font-size: 3rem; line-height: var(--lh-display);
  letter-spacing: var(--track-display); text-wrap: balance;
}
html[lang="en"] .hero__title { font-size: 4.9rem; max-width: 16ch; }
.hero__lede { margin-top: 1.1rem; max-width: 52ch; color: rgba(255, 255, 255, .8); font-size: 1.12rem; }
.hero__paths { list-style: none; padding: 0; margin: 1.9rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 46rem; }
.hero__paths a {
  display: grid; grid-template-columns: 1fr auto; column-gap: .75rem; height: 100%;
  padding: 1rem 1.15rem; border-radius: var(--r); text-decoration: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .25s, border-color .25s;
}
.hero__paths a:hover { background: rgba(14, 173, 222, .14); border-color: rgba(14, 173, 222, .55); }
.hero__path-t { font-weight: 800; font-size: 1.08rem; grid-column: 1; }
html[lang="en"] .hero__path-t { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.hero__path-s { font-size: .88rem; color: rgba(255, 255, 255, .64); grid-column: 1; }
.hero__path-i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ut); transition: translate .3s var(--ease); }
.hero__paths a:hover .hero__path-i { translate: .25rem 0; }
[dir="rtl"] .hero__paths a:hover .hero__path-i { translate: -.25rem 0; }

.hero__form {
  padding: 1.6rem; border-radius: var(--r-lg);
  background: rgba(15, 34, 56, .62); border: 1px solid rgba(14, 173, 222, .28);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 2rem 4rem -2rem rgba(0, 0, 0, .6);
}
.hero__form-t { font-size: 1.2rem; font-weight: var(--w-sub); }
html[lang="en"] .hero__form-t { font-family: var(--f-display); font-size: 1.55rem; }
.hero__form-n { font-size: .92rem; color: rgba(255, 255, 255, .7); margin: .35rem 0 1.1rem; line-height: 1.75; }
.hero__or { display: block; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: rgba(255, 255, 255, .72); text-decoration: none; }
.hero__or span { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > *, .js .hero__form { opacity: 0; transform: translateY(1rem); animation: rise 1s var(--ease) forwards; }
  .js .hero__kicker { animation-delay: 1.2s; }
  .js .hero__title { animation-delay: 1.35s; }
  .js .hero__lede { animation-delay: 1.55s; }
  .js .hero__paths { animation-delay: 1.7s; }
  .js .hero__form { animation-delay: 1.9s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 1099px) {
  .hero__content { grid-template-columns: 1fr; padding-top: calc(var(--hdr-h) + 36vh); }
  .hero__form { display: none; }
}
@media (max-width: 760px) {
  .hero__content { padding-top: calc(var(--hdr-h) + 76vw); padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .hero__shade { height: 55%; }
  .hero__kicker { display: none; }
  .hero__title { font-size: clamp(2rem, 8.6vw, 2.75rem); }
  html[lang="en"] .hero__title { font-size: clamp(2.4rem, 10.5vw, 3.2rem); }
  .hero__lede { font-size: 1rem; margin-top: .8rem; }
  .hero__paths { grid-template-columns: 1fr; margin-top: 1.25rem; gap: .5rem; }
  .hero__paths a { padding: .8rem 1rem; }
}

/* ---------- sections ---------- */
.sec { padding-block: 7rem; }
.sec__head { max-width: 48rem; margin-bottom: 3.5rem; }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.sec__head--row > div:first-child { max-width: 48rem; }
.sec__title {
  font-family: var(--f-display); font-weight: var(--w-title);
  font-size: 3rem; line-height: 1.3; letter-spacing: var(--track-display);
  text-wrap: balance; margin-bottom: .5rem; color: var(--ink);
}
html[lang="en"] .sec__title { font-size: 3.6rem; line-height: 1.04; }
.sec__lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.h-sm { font-size: 1.08rem; font-weight: var(--w-sub); color: var(--ink); margin-bottom: 1rem; line-height: 1.5; }
html[lang="en"] .h-sm { font-family: var(--f-display); font-size: 1.35rem; }
@media (max-width: 760px) {
  .ppanel:nth-last-child(1){padding-top:4.5rem}
  .sec { padding-block: 4.5rem; }
  .sec__head { margin-bottom: 2.25rem; }
  .sec__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  html[lang="en"] .sec__title { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .sec__lede { font-size: 1.02rem; }
}

/* ---------- programs ---------- */
.programs { padding-top:0; background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--mist) 100%); }
.pzone { position: relative; }
.pswitch-sentinel { height: 1px; margin-bottom: -1px; }
.pswitch {
  position: sticky; top: var(--stick-top); z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .5rem; margin-bottom: 3rem;
  background: var(--ut-tint); border-radius: calc(var(--r-lg) + .25rem);
  transition: top .35s var(--ease), padding .3s, box-shadow .3s, border-radius .3s;
}
.pswitch::before { content: ""; position: absolute; inset: -.75rem -100vmax; z-index: -1; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: none; }
.pswitch.is-stuck { padding: .35rem; box-shadow: 0 1rem 2rem -1.5rem rgba(10, 40, 70, .35); }
.pswitch.is-stuck::before { opacity: 1; }
.pswitch__tab {
  appearance: none; border: 0; cursor: pointer; text-align: start; position: relative;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
  padding: 1.35rem 1.5rem; border-radius: var(--r-lg); background: transparent; color: var(--ink-2);
  transition: background-color .3s, color .3s, padding .3s, box-shadow .3s;
}
.pswitch__tab:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.pswitch__tab[aria-selected="true"] { background: var(--night); color: #fff; box-shadow: 0 1rem 2rem -1.25rem rgba(10, 24, 40, .8); }
.pswitch__lamp { grid-row: 1 / span 2; width: 1rem; height: 1.4rem; border: 2px solid currentColor; border-radius: 2px; position: relative; opacity: .55; transition: background-color .4s, box-shadow .4s, opacity .3s; }
.pswitch__lamp::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 2px; background: currentColor; transform: translateX(-50%); }
.pswitch__tab[aria-selected="true"] .pswitch__lamp { opacity: 1; background: var(--gold); border-color: #C4913A; color: #8A6222; box-shadow: 0 0 1.1rem .15rem rgba(240, 190, 94, .65); }
.pswitch__t { font-family: var(--f-display); font-weight: var(--w-title); font-size: 1.75rem; line-height: 1.35; transition: font-size .3s; }
html[lang="en"] .pswitch__t { font-size: 2rem; line-height: 1.1; }
.pswitch__s { font-size: .95rem; opacity: .75; grid-column: 2; transition: opacity .2s; }
.pswitch.is-stuck .pswitch__tab { padding: .7rem 1.2rem; }
.pswitch.is-stuck .pswitch__t { font-size: 1.2rem; }
html[lang="en"] .pswitch.is-stuck .pswitch__t { font-size: 1.4rem; }
.pswitch.is-stuck .pswitch__s { display: none; }
.pswitch.is-stuck .pswitch__lamp { grid-row: auto; width: .8rem; height: 1.1rem; }

.ppanel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; }
.ppanel[hidden] { display: none; }
.ppanel.is-entering { animation: panelIn .5s var(--ease); }
.ppanel:nth-last-child(1){padding-top:7rem}
@keyframes panelIn { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
.ppanel__main { position: sticky; top: calc(var(--stick-top) + var(--pswitch-h, 4rem) + 1.5rem); align-self: start; transition: top .35s var(--ease); }
.pcard { padding: 2rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pcard__tagline { font-family: var(--f-display); font-weight: var(--w-sub); font-size: 1.4rem; line-height: 1.75; color: var(--ink); text-wrap: pretty; }
html[lang="en"] .pcard__tagline { font-size: 1.65rem; line-height: 1.25; font-weight: 500; }
.pcard__stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.6rem 0; }
.pcard__stat { padding: 1rem 1.1rem; border-radius: var(--r); background: var(--ut-tint); display: grid; gap: .1rem; }
.pcard__stat strong { font-family: var(--f-display); font-size: 1.8rem; font-weight: var(--w-hero); color: var(--ut-ink); line-height: 1.3; }
html[lang="en"] .pcard__stat strong { font-size: 2rem; }
.pcard__stat span { font-size: .88rem; color: var(--ink-2); }
.facts { margin: 0 0 1.6rem; }
.facts__row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3rem; }
.fit__col { padding: 1.6rem; border-radius: var(--r-lg); }
.fit__col--yes { background: var(--ut-tint); }
.fit__col--no { background: var(--mist); border: 1px solid var(--line); }
.fit__h { font-size: 1.08rem; font-weight: var(--w-sub); margin-bottom: 1rem; }
html[lang="en"] .fit__h { font-family: var(--f-display); font-size: 1.35rem; }
.fit__col--yes .fit__h { color: var(--ut-ink); }
.fit__col--no .fit__h { color: var(--ink-2); }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.fit li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; font-size: 1rem; line-height: 1.8; }
html[lang="en"] .fit li { line-height: 1.55; }
.fit__i { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; margin-top: .2em; }
.fit__i .ico { width: .95rem; height: .95rem; stroke-width: 2.4; }
.fit__col--yes .fit__i { background: var(--ut-deep); color: #fff; }
.fit__col--no .fit__i { background: var(--line); color: var(--ink-2); }

.terms { list-style: none; margin: 0 0 3rem; padding: 0; position: relative; }
.terms__item { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1.1rem; padding-bottom: 1.6rem; position: relative; }
.terms__item:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 1.375rem; top: 2.9rem; bottom: .2rem; width: 2px; background: var(--ut-tint-2); transform: translateX(50%); }
[dir="ltr"] .terms__item:not(:last-child)::before { transform: translateX(-50%); }
.terms__n { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ut); color: var(--ut-ink); font-weight: 800; font-size: 1.15rem; }
.terms__t { font-size: 1.12rem; font-weight: var(--w-sub); margin: .35rem 0 .7rem; }
html[lang="en"] .terms__t { font-family: var(--f-display); font-size: 1.4rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { padding: .35rem .85rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font-size: .92rem; color: var(--ink-2); line-height: 1.6; }

.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.outcomes li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; }
.outcomes__i { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--gold); color: #3A2608; display: grid; place-items: center; margin-top: .2em; }
.outcomes__i .ico { width: .95rem; height: .95rem; stroke-width: 2.4; }

.compare { margin-top: 5.5rem; }
.compare__title { font-family: var(--f-display); font-weight: var(--w-title); font-size: 2rem; margin-bottom: 1.4rem; }
html[lang="en"] .compare__title { font-size: 2.4rem; }
.compare__card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: 1rem; }
.compare__table th, .compare__table td { text-align: start; padding: 1.05rem 1.4rem; vertical-align: top; }
.compare__table thead th { background: var(--night); color: #fff; font-weight: var(--w-sub); font-size: 1.05rem; }
html[lang="en"] .compare__table thead th { font-family: var(--f-display); font-size: 1.3rem; }
.compare__table tbody tr:nth-child(even) { background: var(--mist); }
.compare__table tbody th { font-weight: 600; color: var(--ut-ink); width: 22%; }

@media (max-width: 1099px) {
  .ppanel { grid-template-columns: 1fr; gap: 2.5rem; }
  .ppanel__main { position: static; }
}
@media (max-width: 760px) {
  .pswitch { gap: .35rem; padding: .35rem; margin-bottom: 2rem; }
  .pswitch__tab { grid-template-columns: 1fr; padding: .9rem .8rem; row-gap: .2rem; }
  .pswitch__lamp { display: none; }
  .pswitch__t { font-size: 1.05rem; line-height: 1.5; }
  html[lang="en"] .pswitch__t { font-size: 1.2rem; }
  .pswitch__s { grid-column: 1; font-size: .8rem; line-height: 1.5; }
  .pswitch.is-stuck .pswitch__tab { padding: .55rem .7rem; }
  .pswitch.is-stuck .pswitch__t { font-size: .95rem; white-space: nowrap; }
  .pswitch.is-stuck .pswitch__pre { display: none; }
  .pcard { padding: 1.35rem; }
  .pcard__tagline { font-size: 1.18rem; }
  .pcard__stat strong { font-size: 1.45rem; }
  .fit { grid-template-columns: 1fr; }
  .fit__col { padding: 1.25rem; }
  .facts__row { grid-template-columns: 7em minmax(0, 1fr); }
  .compare { margin-top: 3.5rem; }
  .compare__title { font-size: 1.5rem; }
}

body.instamode .hero, body.instamode .ftr__scene-shade, body.instamode .stories{background:linear-gradient(115deg, #f9ce3490 10%, #ee2a7b90, #6228d790)!important}
body.instamode .dock{background:linear-gradient(115deg, #f9ce34 10%, #ee2a7b, #6228d7)!important}
.instamode .apply__direct, .instamode .hdr__tel, .instamode address p:not(:nth-child(1)), .instamode .hero__or{display:none!important}
body:not(.instamode) .apply, body:not(.instamode) .ftr__statement-sub, body:not(.instamode) .lead--footer, body:not(.instamode) .dock, body:not(.instamode) .hero__form{display:none!important;}

html[lang="en"] body:not(.instamode) .hero__title , body:not(.instamode) .hero__lede, body:not(.instamode) .hero__paths{max-width:100%!important;}
body:not(.instamode) .hero__content{display:flex;}
body:not(.instamode) .hero__copy{margin:auto;text-align:center;}

/* ---------- faculty (horizontal teaching videos) ---------- */
.faculty { background: linear-gradient(180deg, var(--mist) 0%, var(--ut-tint) 100%); overflow: hidden; }
.rail-nav { display: flex; gap: .6rem; flex: none; }
.rail-nav__b { width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; cursor: pointer; display: grid; place-items: center; transition: background-color .25s, border-color .25s, opacity .2s; color: inherit; }
.rail-nav__b:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
.rail-nav__b:disabled { opacity: .3; cursor: default; }
.rail-nav--light .rail-nav__b { border-color: var(--line-2); background: var(--paper); color: var(--ut-ink); }
.rail-nav--light .rail-nav__b:hover { border-color: var(--ut); background: var(--paper); }
.rail {
  --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  padding-bottom: 1.5rem; margin-bottom: -1.5rem;
}
.rail::-webkit-scrollbar { display: none; }
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; width: max-content; }
.rail__item { width: 17rem; scroll-snap-align: start; }
.rail__item--lect { width: 34rem; }

.lect { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; text-align: start; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.lect:hover { transform: translateY(-.25rem); box-shadow: 0 2rem 3.5rem -2rem rgba(10, 40, 70, .45); }
.lect__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.lect__img, .lect__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lect__preview { opacity: 0; transition: opacity .4s; }
.lect.is-previewing .lect__preview { opacity: 1; }
.lect__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 24, 40, .45)); }
.lect__play { position: absolute; z-index: 1; inset-inline-start: 1.1rem; bottom: 1.1rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ut); color: #fff; box-shadow: 0 .75rem 1.5rem -.75rem rgba(14, 173, 222, .9); transition: transform .3s var(--ease); }
.lect__play .ico { width: 1.25rem; height: 1.25rem; margin-left: .15rem; }
.lect:hover .lect__play { transform: scale(1.08); }
.lect__body { display: grid; gap: .2rem; padding: 1.2rem 1.4rem 1.35rem; }
.lect__topic { font-family: var(--f-display); font-weight: var(--w-title); font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
html[lang="en"] .lect__topic { font-size: 1.7rem; line-height: 1.15; }
.lect__name { font-size: .95rem; font-weight: 600; color: var(--ink); }
.lect__role { font-weight: 400; color: var(--ink-3); }
.lect__cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; font-size: .9rem; font-weight: 700; color: var(--ut-deep); }
.lect__cta-i { width: .9rem; height: .9rem; }
@media (max-width: 760px) {
  .rail-nav { display: none; }
  .rail__item--lect { width: 84vw; }
  .lect__topic { font-size: 1.2rem; }
  .lect__body { padding: 1rem 1.1rem 1.1rem; }
}

/* theater (full-screen lecture player) */
.theater { position: fixed; inset: 0; z-index: 130; background: rgba(5, 12, 22, .96); color: #fff; display: grid; place-items: center; padding: 1.5rem; overflow-y: auto; }
.theater[hidden] { display: none; }
.theater.is-open .theater__in { animation: reelIn .4s var(--ease); }
.theater__in { width: min(100%, 72rem, (100vh - 14rem) * 16 / 9); display: grid; gap: 1rem; }
.theater__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.theater__who { display: grid; gap: .15rem; }
.theater__who strong { font-family: var(--f-display); font-weight: var(--w-title); font-size: 1.5rem; line-height: 1.4; }
.theater__who span { color: rgba(255, 255, 255, .7); font-size: .95rem; }
.theater__close { width: 3rem; height: 3rem; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); display: grid; place-items: center; cursor: pointer; }
.theater__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.theater__video { width: 100%; height: 100%; background: #000; }
.theater__list { display: flex; gap: .75rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .25rem; }
.theater__item { flex: 0 0 11rem; display: grid; gap: .4rem; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; color: rgba(255, 255, 255, .75); font-size: .85rem; line-height: 1.5; }
.theater__item img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--r-sm); border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.theater__item:hover img { opacity: 1; }
.theater__item[aria-current="true"] { color: #fff; font-weight: 700; }
.theater__item[aria-current="true"] img { border-color: var(--ut); opacity: 1; }
@media (max-width: 760px) {
  .theater { padding: 1rem; align-content: center; }
  .theater__who strong { font-size: 1.15rem; }
  .theater__item { flex-basis: 8.5rem; }
}

/* ---------- stories ---------- */
.stories { background: radial-gradient(60% 70% at 85% 0%, rgba(14, 173, 222, .16), transparent 70%), var(--night); color: #fff; overflow: hidden; }
.stories .sec__title { color: #fff; }
.stories .sec__lede { color: rgba(255, 255, 255, .7); }
.story { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: var(--night-2); color: #fff; text-align: start; box-shadow: 0 1.5rem 3rem -2rem rgba(0, 0, 0, .8); }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 17, 29, .9) 0%, rgba(7, 17, 29, 0) 55%); }
.story::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; border: 2px solid transparent; transition: border-color .3s; pointer-events: none; }
.story:hover::before { border-color: var(--ut); }
.story:hover .story__img { transform: scale(1.045); }
.story__play { position: absolute; top: .9rem; inset-inline-start: .9rem; z-index: 1; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--ut); box-shadow: 0 .5rem 1rem -.5rem rgba(14, 173, 222, .9); }
.story__play .ico { width: 1rem; height: 1rem; }
.story__txt { position: absolute; inset-inline: 1rem; bottom: 1rem; z-index: 1; display: grid; gap: .1rem; }
.story__name { font-weight: 800; font-size: 1.05rem; }
.story__meta { font-size: .84rem; color: rgba(255, 255, 255, .75); line-height: 1.6; }
@media (max-width: 760px) { .stories .rail__item { width: 62vw; max-width: 16rem; } }

/* reels viewer */
.reels { position: fixed; inset: 0; z-index: 130; background: #050C16; color: #fff; display: grid; place-items: center; --fh: min(100dvh - 3rem, 56rem); }
.reels[hidden] { display: none; }
.reels__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(44px) brightness(.38) saturate(1.1); transform: scale(1.25); }
.reels__frame { position: relative; height: var(--fh); aspect-ratio: 9 / 16; background: #000; overflow: hidden; border-radius: var(--r-lg); touch-action: pan-y; }
.reels__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reels__bars { position: absolute; top: .6rem; inset-inline: .6rem; z-index: 4; display: flex; gap: .25rem; }
.reels__bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.reels__bar i { display: block; height: 100%; width: 0; background: #fff; }
.reels__top { position: absolute; top: 1.4rem; inset-inline: .75rem; z-index: 4; display: flex; align-items: center; gap: .4rem; }
.reels__who { flex: 1; display: grid; line-height: 1.5; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); min-width: 0; }
.reels__who strong { font-size: 1rem; }
.reels__who span { font-size: .82rem; opacity: .85; }
.reels__icon { width: 2.6rem; height: 2.6rem; border: 0; background: rgba(0, 0, 0, .3); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.reels__zone { position: absolute; top: 5.25rem; bottom: 7.5rem; width: 38%; z-index: 3; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reels__zone--prev { inset-inline-start: 0; }
.reels__zone--next { inset-inline-end: 0; }
.reels__bottom { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; display: flex; justify-content: center; padding: 2.5rem 1rem calc(1.4rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.reels__side { position: absolute; top: 50%; z-index: 2; width: 3.5rem; height: 3.5rem; margin-top: -1.75rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); display: grid; place-items: center; cursor: pointer; }
.reels__side--prev { inset-inline-start: calc(50% - var(--fh) * 9 / 32 - 5.5rem); }
.reels__side--next { inset-inline-end: calc(50% - var(--fh) * 9 / 32 - 5.5rem); }
.reels__side:hover { background: rgba(255, 255, 255, .14); }
.reels.is-open .reels__frame { animation: reelIn .4s var(--ease); }
@keyframes reelIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .reels { --fh: 100dvh; }
  .reels__frame { width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
  .reels__side { display: none; }
}

/* ---------- living backgrounds (assets/js/ambient.js) ---------- */
.faculty, .stories, .admissions { position: relative; isolation: isolate; overflow: hidden; }
.amb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.amb--soft { filter: blur(6px); }

/* ---------- admissions ---------- */
.steps { list-style: none; padding: 3.5rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: s; position: relative; }
.steps__item { position: relative; padding: 1.9rem; border-radius: var(--r-lg); background: rgba(244, 248, 250, .92); border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s, background-color .5s; }
.steps__item.is-lit { border-color: var(--ut); background: #fff; box-shadow: 0 0 0 4px rgba(14, 173, 222, .12), 0 1.5rem 3rem -2rem rgba(10, 60, 100, .45); }
.steps__n { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ut-deep); color: #fff; font-weight: 800; font-size: 1.45rem; font-family: var(--f-display); }
.steps__t { font-size: 1.22rem; font-weight: var(--w-sub); margin: 1.2rem 0 .5rem; }
html[lang="en"] .steps__t { font-family: var(--f-display); font-size: 1.5rem; }
.steps__d { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: .75rem; padding: 0; padding-inline-start: 2rem; }
  .steps__item { padding: 1.35rem; }
  .steps__n { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
}

/* ---------- faq ---------- */
.faq { background: var(--paper); }
.admissions { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
.faq__title { font-size: 2.4rem; }
.faq__list { display: grid; gap: .6rem; }
.qa { border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); transition: background-color .3s, border-color .3s; }
.qa[open] { background: var(--ut-tint); border-color: var(--ut-tint-2); }
.qa__q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.15rem 1.35rem; cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--ut-deep); }
.qa__i { position: relative; width: 1.8rem; height: 1.8rem; flex: none; border-radius: 50%; background: var(--ut-tint); color: var(--ut-deep); }
.qa[open] .qa__i { background: var(--ut-deep); color: #fff; }
.qa__i::before, .qa__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: .75rem; height: 2px; margin: -1px 0 0 -.375rem; background: currentColor; transition: transform .3s var(--ease); }
.qa__i::after { transform: rotate(90deg); }
.qa[open] .qa__i::after { transform: rotate(0); }
.qa__a p { padding: 0 1.35rem 1.25rem; color: var(--ink-2); max-width: 66ch; }
@media (max-width: 760px) {
  .faq__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq__title { font-size: 1.9rem; }
  .qa__q { padding: 1rem 1.1rem; font-size: 1rem; }
  .qa__a p { padding: 0 1.1rem 1.1rem; }
}

/* ---------- apply ---------- */
.apply { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--ut-tint) 0%, #F7FBFD 60%, #fff 100%); }
.apply::before { content: ""; position: absolute; width: 34rem; height: 34rem; inset-inline-start: -8rem; bottom: -10rem; background: url(../img/logo-512.png) center / contain no-repeat; opacity: .05; pointer-events: none; }
.apply__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
.apply__direct { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--ink-3); font-size: .95rem; }
.contact-list a { font-size: 1.25rem; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; color: var(--ut-ink); }
.contact-list a:hover { color: var(--ut); }
.apply__hours { margin-top: .75rem; font-size: .92rem; color: var(--ink-3); }
.apply__form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.5rem; box-shadow: 0 2.5rem 5rem -3rem rgba(10, 60, 100, .4); border-top: 4px solid var(--ut); }
@media (max-width: 1099px) { .apply__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 760px) {
  .apply__form { padding: 1.4rem; }
  .apply__direct { padding: 1.1rem; margin-top: 1.75rem; }
  .apply::before { width: 20rem; height: 20rem; }
}

/* ---------- forms ---------- */
.lead { position: relative; }
.lead__hp { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.field { margin: 0 0 1.4rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .95rem; font-weight: 700; margin-bottom: .5rem; padding: 0; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; height: 3.4rem; padding: 0 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font: inherit; font-size: 1.05rem; transition: border-color .2s, box-shadow .2s;
}
.field input[type="tel"] { letter-spacing: .03em; font-variant-numeric: tabular-nums; }
[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field input:focus { outline: none; border-color: var(--ut); box-shadow: 0 0 0 3px rgba(14, 173, 222, .2); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field input::placeholder { color: #A3B1BD; }
.phone-row { display: flex; gap: .5rem; }
.phone-row input { flex: 1; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; margin: 0 !important; }
.pill input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; height: 2.7rem; padding: 0 1.05rem; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: .95rem; font-weight: 500; background: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.pill span:hover { border-color: var(--ut); }
.pill input:checked + span { background: var(--ut-deep); border-color: var(--ut-deep); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--ut); outline-offset: 2px; }
.lead__err { color: var(--err); font-size: .9rem; margin-top: .5rem; line-height: 1.6; }
.lead__err:empty { display: none; }
.lead__privacy { font-size: .82rem; color: var(--ink-3); margin-top: .75rem; line-height: 1.7; }
.lead__ok { display: flex; gap: .9rem; align-items: flex-start; }
.lead__ok[hidden] { display: none; }
.lead__ok strong { display: block; font-size: 1.08rem; }
.lead__ok p { font-size: .94rem; opacity: .85; }
.lead__ok-mark { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gold); color: #2A1A05; display: grid; place-items: center; flex: none; box-shadow: 0 0 1.5rem rgba(240, 190, 94, .5); }
.lead__ok-mark .ico { width: 1.25rem; height: 1.25rem; }
.lead.is-done > :not(.lead__ok) { display: none !important; }
.lead.is-done .lead__ok { animation: rise .5s var(--ease); }

/* dark-surface forms */
.hero .field input, .ftr .field input, .dock .field input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .24); color: #fff; }
.hero .field input::placeholder, .ftr .field input::placeholder, .dock .field input::placeholder { color: rgba(255, 255, 255, .45); }
.hero .field input:focus, .ftr .field input:focus, .dock .field input:focus { border-color: var(--ut); box-shadow: 0 0 0 3px rgba(14, 173, 222, .25); }
.hero .lead__err, .ftr .lead__err, .dock .lead__err { color: #FFB3BD; }
.hero .lead__privacy, .ftr .lead__privacy { color: rgba(255, 255, 255, .52); }
.lead--hero .field, .lead--dock .field, .lead--footer .field { margin: 0; }
.lead--hero .phone-row { flex-direction: column; }
.lead--hero .phone-row input { flex: none; }
.lead--hero .btn { width: 100%; }
.lead--footer { max-width: 34rem; margin-top: 2rem; }
.lead--footer .field input, .lead--footer .btn { height: 3.6rem; }
@media (max-width: 560px) {
  .lead--footer .phone-row { flex-direction: column; }
  .lead--footer .phone-row input { flex: none; }
  .lead--footer .btn { width: 100%; }
}

/* ---------- dock (fixed lead bar) ---------- */
.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(10, 24, 40, .97); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(14, 173, 222, .3);
  transition: transform .45s var(--ease), opacity .3s;
}
.dock.is-away { transform: translateY(110%); }
.dock__in { display: flex; align-items: center; gap: .5rem; max-width: 48rem; margin-inline: auto; }
.dock .lead { flex: 1; min-width: 0; }
.dock .phone-row input { height: 3rem; padding: 0 .85rem; font-size: 1rem; }
.dock .btn { height: 3rem; padding: 0 1rem; font-size: .95rem; }
.dock .lead__err { position: absolute; bottom: calc(100% + .9rem); inset-inline: 0; margin: 0; background: #3A0F1A; border: 1px solid rgba(255, 180, 190, .3); padding: .5rem .75rem; border-radius: var(--r-sm); }
.dock .lead__ok { align-items: center; min-height: 3rem; }
.dock .lead__ok-mark { width: 2.1rem; height: 2.1rem; }
.dock .lead__ok strong { font-size: .95rem; }
.dock .lead__ok p { font-size: .8rem; }
.dock__label, .dock__lamp { display: none; }
.dock__call { width: 3rem; height: 3rem; flex: none; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-sm); text-decoration: none; }
body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
  .dock {
    inset-inline: auto; left: 50%; bottom: 1.25rem; width: min(50rem, calc(100% - 2.5rem));
    padding: .6rem; padding-inline-start: 1.35rem; border-radius: var(--r-lg);
    border: 1px solid rgba(14, 173, 222, .3); box-shadow: 0 2rem 4rem -1.25rem rgba(0, 0, 0, .55);
    transform: translate(-50%, 0);
  }
  .dock.is-away { transform: translate(-50%, 160%); opacity: 0; }
  .dock__in { max-width: none; gap: .9rem; }
  .dock__lamp { display: block; width: .75rem; height: 1.05rem; flex: none; border-radius: 2px; background: var(--gold); box-shadow: 0 0 1rem .2rem rgba(240, 190, 94, .55); position: relative; }
  .dock__lamp::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1.5px; background: rgba(42, 26, 5, .6); }
  .dock__label { display: block; white-space: nowrap; font-weight: 700; font-size: 1rem; }
  .dock__call { display: none; }
}

/* enrich sheet */
.sheet { position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(5, 12, 22, .6); }
.sheet__panel { position: relative; width: 100%; max-width: 33rem; background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 1.6rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); animation: sheetUp .45s var(--ease); max-height: 92dvh; overflow-y: auto; border-top: 4px solid var(--ut); }
.sheet__ok { display: flex; gap: .9rem; align-items: flex-start; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.sheet__ok strong { display: block; }
.sheet__ok p { font-size: .94rem; color: var(--ink-2); }
.sheet__t { font-size: 1.15rem; font-weight: var(--w-sub); }
.sheet__n { font-size: .92rem; color: var(--ink-3); margin: .25rem 0 1.25rem; }
.sheet__actions { display: flex; gap: .5rem; align-items: center; }
@keyframes sheetUp { from { transform: translateY(2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: var(--r-lg); padding: 2rem; }
}

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.ftr__scene { position: relative; min-height: min(88vh, 54rem); display: flex; align-items: center; isolation: isolate; }
#footer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ftr__scene-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--shade-dir), rgba(10, 24, 40, .95) 0%, rgba(10, 24, 40, .72) 34%, rgba(10, 24, 40, 0) 70%),
    linear-gradient(to top, var(--night) 0%, rgba(10, 24, 40, 0) 26%),
    linear-gradient(to bottom, var(--night) 0%, rgba(10, 24, 40, 0) 18%);
}
.ftr__cta { padding-block: 8rem; }
.ftr__statement { font-family: var(--f-display); font-weight: var(--w-hero); font-size: 3.6rem; line-height: 1.35; max-width: 14em; letter-spacing: var(--track-display); text-wrap: balance; }
html[lang="en"] .ftr__statement { font-size: 4.2rem; line-height: 1.05; max-width: 12em; }
.ftr__statement-sub { margin-top: 1.1rem; color: rgba(255, 255, 255, .7); max-width: 46ch; font-size: 1.1rem; }

.ftr__cols { display: grid; grid-template-columns: minmax(0, 2.3fr) repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 2.5rem 2.75rem; padding-block: 4.5rem 3.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.brand--ftr .brand__logo { width: 3.25rem; height: 3.25rem; }
.ftr__about p { margin-top: 1.35rem; color: rgba(255, 255, 255, .64); font-size: .95rem; max-width: 44ch; line-height: 2; }
html[lang="en"] .ftr__about p { line-height: 1.7; }
.ftr__col h3 { font-size: .95rem; font-weight: 700; color: var(--ut); margin-bottom: 1.1rem; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ftr__col a { color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .97rem; }
.ftr__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--ut); }
.ftr__contact address { font-style: normal; display: grid; gap: .75rem; font-size: .95rem; }
.ftr__contact a, .ftr__addr { display: flex; gap: .6rem; align-items: flex-start; }
.ftr__contact a span[dir="ltr"] { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: #fff; font-weight: 700; }
.ftr__addr { color: rgba(255, 255, 255, .72); line-height: 1.9; }
.ftr__contact .ico { width: 1.1rem; height: 1.1rem; margin-top: .3em; color: var(--ut); }
.ftr__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ftr__social a { width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; display: grid; place-items: center; }
.ftr__social .ico { margin: 0; }
.ftr__seal { grid-column: 1; }
.ftr__seal-ph { display: grid; place-items: center; width: 7.25rem; height: 8rem; border: 1px dashed rgba(255, 255, 255, .22); border-radius: var(--r-sm); font-size: .8rem; color: rgba(255, 255, 255, .45); text-align: center; padding: .6rem; line-height: 1.6; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: rgba(255, 255, 255, .58); }
.ftr__base-links { display: flex; gap: 1.4rem; }
.ftr__base-links a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; color: rgba(255, 255, 255, .82); }
.ftr__base-links a:hover { color: #fff; }
.ftr__base-links .ico { width: 1rem; height: 1rem; }
.ftr__mark { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 2.5rem var(--gutter) 3rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.ftr__mark-logo { width: 4.5rem; height: 4.5rem; opacity: .9; flex: none; }
.ftr__wordmark { font-family: var(--f-display); font-weight: var(--w-hero); font-size: 3.4rem; line-height: 1.45; color: rgba(255, 255, 255, .9); letter-spacing: var(--track-display); }
html[lang="en"] .ftr__wordmark { font-size: 3rem; line-height: 1.15; }

@media (max-width: 1099px) {
  .ftr__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__about { grid-column: 1 / -1; }
  .ftr__contact { grid-column: span 2; }
  .ftr__seal { grid-column: auto; }
  .ftr__wordmark { font-size: 2.4rem; }
  .hdr__end{margin-left:0!important;margin-right:auto!important;}
  html[lang="en"] .hdr__end{margin-right:0!important;margin-left:auto!important;}
}
@media (max-width: 760px) {
  .ftr__scene { min-height: 0; align-items: flex-end; }
  .ftr__cta { padding-block: 44vh 4rem; }
  .ftr__statement { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }
  html[lang="en"] .ftr__statement { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .ftr__scene-shade { background: linear-gradient(to top, var(--night) 8%, rgba(10, 24, 40, .85) 45%, rgba(10, 24, 40, 0) 80%), linear-gradient(to bottom, var(--night) 0%, rgba(10, 24, 40, 0) 14%); }
  .ftr__cols { grid-template-columns: 1fr 1fr; padding-block: 3.5rem 2.5rem; gap: 2rem 1.5rem; }
  .ftr__contact { grid-column: 1 / -1; }
  .ftr__base { flex-direction: column; align-items: flex-start; }
  .ftr__mark { flex-direction: column; gap: .75rem; text-align: center; padding-block: 2rem 2.5rem; }
  .ftr__mark-logo { width: 3.5rem; height: 3.5rem; }
  .ftr__wordmark { font-size: clamp(1.3rem, 6.2vw, 1.8rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
