/* Landing v2 base (accounts/home.html): the variable bridge, page frame, buttons, media tiles, model looks, top bar,
   footer and partners. Built on the app's tokens (/web/css/tokens.css: dark first, light kept); media-heavy bands carry
   .vd-dark (dark roles in both themes). The group files (hero, gallery, tools, business) build on these classes.
   Logical properties only. */

@font-face {
  font-family: "Estedad";
  src: url("/web/fonts/Estedad-VF.woff2") format("woff2-variations"), url("/web/fonts/Estedad-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* The shared includes (stats, about, owner credit, theme control) read the old site variables; map them here so
   they sit in this page's palette in both themes. Set on body, so they win over theme.css's :root values. */
/* Declared on body and again on every .vd-dark band: a var() alias resolves where it is declared, so the bands
   (which redefine the --vd-* roles) need their own copy to get the dark values in light mode. */
body.ld, body.ld .vd-dark {
  --bg: var(--vd-bg); --paper: var(--vd-surface); --ink: var(--vd-text-1); --ink-2: var(--vd-text-2); --text: var(--vd-text-1);
  --muted: var(--vd-text-2); --faint: var(--vd-text-3); --line: var(--vd-line-strong); --line-2: var(--vd-line-control);
  --soft: var(--vd-surface-2); --accent: var(--vd-accent-text);
  --ui-stats-bg: var(--vd-surface); --ui-stats-number: var(--vd-text-1); --ui-icon-bg: var(--vd-surface-3);
  --ui-green: var(--vd-accent-text); --ui-violet: var(--vd-src-code); --ui-gold: var(--vd-warning);
  --ui-owner-bg: var(--vd-surface); --ui-owner-ink: var(--vd-text-1); --ui-owner-muted: var(--vd-text-2);
  /* the mockup's names, for the section files */
  --s0: var(--vd-surface-0); --s1: var(--vd-surface); --s2: var(--vd-surface-2); --s3: var(--vd-surface-3);
  --hair: var(--vd-line); --t1: var(--vd-text-1); --t2: var(--vd-text-2); --t3: var(--vd-text-3);
  --acc: var(--vd-accent); --acc-hi: var(--vd-accent-hover); --acc-lo: var(--vd-accent-press);
  --acc-soft: var(--vd-accent-soft); --acc-text: var(--vd-accent-text); --ok: var(--vd-success);
}
/* A .vd-dark band also needs its own text colour (body's is inherited as the light page's) and, unless its section
   paints one, a dark ground; :where() keeps that ground below every section's own background */
.ld .vd-dark { color: var(--vd-text-1); }
body.ld {
  --l-bg: #050506;            /* the one ground of the whole page: the landing never goes light */
  --r-card: 20px;             /* one card radius for every media tile */
  --gap: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --l-gutter: 16px;
  --l-max: 1240px;
  --l-display: "Estedad", "Vazirmatn", system-ui, sans-serif;
  --l-sans: "Vazirmatn", system-ui, sans-serif;
  --l-mono: "IBM Plex Mono", ui-monospace, monospace;
  margin: 0;
  background: var(--l-bg);
  color: var(--vd-text-1);
  color-scheme: dark;
  font: 400 16px/1.75 var(--l-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 720px) { body.ld { --l-gutter: 28px; --r-card: 22px; --gap: 14px; } }
@media (min-width: 1100px) { body.ld { --l-gutter: 40px; } }

.ld *, .ld *::before, .ld *::after { box-sizing: border-box; }
.ld img, .ld video, .ld svg { display: block; max-inline-size: 100%; }
.ld a { color: inherit; }
.ld bdi { unicode-bidi: isolate; }
.ld [hidden] { display: none !important; }
.ld h1, .ld h2, .ld h3, .ld h4, .ld p, .ld ul, .ld ol, .ld figure { margin: 0; }
.ld ul, .ld ol { padding: 0; list-style: none; }
.ld :focus-visible { outline: 2px solid var(--vd-focus); outline-offset: 2px; border-radius: 6px; }
.ld .sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ld .skip { position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 50; padding: 8px 16px; border-radius: 999px;
            background: var(--vd-accent); color: var(--vd-on-accent); font-weight: 600; text-decoration: none; }
.ld .skip:focus { inset-block-start: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; }
h2.big .num { font-feature-settings: normal; } /* Estedad's tabular figures read «6 6» at display size; a lone number needs no columns */

/* Frame: a section, its centred column and its header (eyebrow, big title, lead, «more» link) */
.sec { padding-block: clamp(64px, 8vw, 96px); scroll-margin-block-start: 72px; }
.wrap { inline-size: 100%; max-inline-size: calc(var(--l-max) + 2 * var(--l-gutter)); margin-inline: auto; padding-inline: var(--l-gutter); }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; margin-block-end: 34px; }
.sec-h .l { flex: 1 1 24em; min-inline-size: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 13px;
           color: var(--acc-text); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--vd-line); }
h2.big { margin-block: 14px 10px; font: 900 clamp(30px, 4.2vw, 44px)/1.25 var(--l-display); letter-spacing: -.01em; text-wrap: balance; }
.lead { color: var(--vd-text-2); font-size: clamp(15px, 1.4vw, 16.5px); max-inline-size: 38em; text-wrap: pretty; }
.sec-h .more { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--vd-radius-md); white-space: nowrap;
               color: var(--vd-text-2); font-size: 13.5px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--vd-line-strong); }
.sec-h .more:hover { color: var(--vd-text-1); }

.i { inline-size: 18px; block-size: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--vd-icon-stroke); stroke-linecap: round; stroke-linejoin: round; }

/* Buttons: one solid ember action per view (the mockup's gradient), everything else quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding-inline: 22px;
       border-radius: var(--vd-radius-md); border: 0; font: 800 14.5px/1 var(--l-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
       transition: filter var(--vd-dur-fast), box-shadow var(--vd-dur-fast); }
.btn-primary { color: var(--vd-on-accent); background: linear-gradient(180deg, var(--acc-hi), var(--acc) 50%, var(--acc-lo));
               box-shadow: var(--vd-highlight-strong), var(--vd-glow); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: var(--vd-highlight-strong), var(--vd-glow-hover); }
.btn-sec { color: var(--vd-text-1); background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-line-strong); }
.btn-sec:hover { background: var(--vd-surface-3); }
.btn-text { background: none; color: var(--vd-text-2); padding-inline: 12px; }
.btn-text:hover { color: var(--vd-text-1); }
.btn-sm { min-block-size: 36px; padding-inline: 16px; font-size: 14px; }

/* A media tile: the poster is a lazy <img> in flow, the loop a <video> over it (landing.js gives it a src while it is
   on screen and fades it in with .on). The tile fills its parent, or takes the poster's own shape when the parent has none. */
.m { position: relative; display: block; inline-size: 100%; block-size: 100%; overflow: hidden; background: var(--vd-surface-2); }
.m img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.m video.lv { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; transition: opacity var(--vd-dur-slow); }
.m video.lv.on { opacity: 1; }
.m[data-missing] video { display: none; }
.sh { position: absolute; inset: 0; background: linear-gradient(0deg, #000d 0%, #0000 50%); pointer-events: none; }

/* A model tag over media: the model's own mesh swatch (studio/web/js/model-look.js PALETTES) and its name */
.mtag { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 7px;
        padding-block: 4px; padding-inline: 5px 10px; border-radius: 999px; background: #0b0c0ebb; color: #fff; backdrop-filter: blur(10px);
        font-size: 11.5px; font-weight: 600; direction: ltr; white-space: nowrap; box-shadow: inset 0 0 0 1px #ffffff1a; }
.look { display: block; inline-size: 16px; block-size: 16px; flex: none; border-radius: 50%; }
.look[data-look="lavender"] { background: radial-gradient(at 20% 20%, #c9a3ff, transparent 60%), radial-gradient(at 85% 30%, #ffb38a, transparent 60%), radial-gradient(at 60% 95%, #6f7dff, transparent 60%), #3a2f55; }
.look[data-look="mint"] { background: radial-gradient(at 20% 20%, #9fe3c9, transparent 60%), radial-gradient(at 85% 30%, #e8d6b0, transparent 60%), radial-gradient(at 60% 95%, #2f8f7a, transparent 60%), #1f3b36; }
.look[data-look="nude"] { background: radial-gradient(at 20% 20%, #f1d9c6, transparent 60%), radial-gradient(at 85% 30%, #d7b8a6, transparent 60%), radial-gradient(at 60% 95%, #8a7a72, transparent 60%), #4a403c; }
.look[data-look="rose"] { background: radial-gradient(at 20% 20%, #ffb3c7, transparent 60%), radial-gradient(at 85% 30%, #f6c9a8, transparent 60%), radial-gradient(at 60% 95%, #a35a8a, transparent 60%), #4a2a3d; }
.look[data-look="ember"] { background: radial-gradient(at 20% 20%, #ffd0a1, transparent 60%), radial-gradient(at 85% 30%, #f88736, transparent 60%), radial-gradient(at 60% 95%, #b8562a, transparent 60%), #4a2a1a; }
.look[data-look="sky"] { background: radial-gradient(at 20% 20%, #bfe0ff, transparent 60%), radial-gradient(at 85% 30%, #9ab0d8, transparent 60%), radial-gradient(at 60% 95%, #6f7dff, transparent 60%), #2a3550; }

/* Drift: a track that scrolls past (landing.js adds .paused off screen and while the visitor holds it); the copy
   inside [data-copy] only exists for the loop, so reduced motion hides it and stops the movement */
[data-drift] { animation: ld-drift-y var(--d, 60s) linear infinite; will-change: transform; }
[data-drift="x"] { animation-name: ld-drift-x; }
[data-drift="down"] { animation-direction: reverse; }
[data-drift].paused, .paused [data-drift] { animation-play-state: paused; }
@keyframes ld-drift-y { to { transform: translateY(-50%); } }
@keyframes ld-drift-x { to { transform: translateX(50%); } }
[dir="rtl"] [data-drift="x"] { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
  [data-drift] { animation: none; }
  [data-copy] { display: none; }
  .m video.lv { transition: none; }
}

/* Top bar: dark roles in both themes, a hairline once the page scrolls */
.top { position: sticky; inset-block-start: 0; z-index: 20; background: #050506b8; backdrop-filter: blur(16px) saturate(1.2); color: var(--vd-text-1); border-block-end: 1px solid transparent;
       transition: border-color var(--vd-dur-base); }
.top.scrolled { border-block-end-color: var(--vd-line); }
.top .wrap { display: flex; align-items: center; gap: 24px; block-size: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--l-display); text-decoration: none; color: var(--vd-text-1); }
.brand img { inline-size: 30px; block-size: auto; }
.brand .on-light { display: none; }
:root[data-theme="light"] .site-foot .brand .on-dark { display: none; }
:root[data-theme="light"] .site-foot .brand .on-light { display: block; }
.top nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.top nav a { padding: 8px 12px; border-radius: 999px; color: var(--vd-text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.top nav a:hover { color: var(--vd-text-1); background: var(--vd-surface-2); }
.top .acts { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
@media (max-width: 899px) { .top nav { display: none; } }
@media (max-width: 420px) { .top .wrap { gap: 8px; } .top .acts .lang { display: none; } .top .btn-sm { padding-inline: 14px; } }

/* Partners: the model strip's drift, quieter (lower opacity until hover or focus) and slower, still under the pointer;
   brands without a logo file are their name as a text wordmark. Reduced motion: one static, wrapped row. */
.trust { padding-block: clamp(40px, 5vw, 64px); }
.ld .partners-label { text-align: center; color: var(--vd-text-3); font-size: 13px; margin-block-end: 16px; }
.pq { overflow: hidden; opacity: .55; transition: opacity var(--vd-dur-base);
      mask-image: linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000); }
.pq:hover, .pq:focus-within { opacity: 1; }
.pq:hover [data-drift], .pq:focus-within [data-drift] { animation-play-state: paused; }
.ptrack { --d: 64s; display: flex; align-items: center; inline-size: max-content; gap: 12px; padding-inline-end: 12px; }
.partner { flex: none; display: inline-flex; align-items: center; gap: 10px; block-size: 52px; padding-inline: 8px 18px; border-radius: 999px;
           background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-line); color: var(--vd-text-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.partner:hover { color: var(--vd-text-1); }
.partner img { block-size: 36px; inline-size: auto; max-inline-size: 110px; object-fit: contain; border-radius: 999px; background: #f5f5f0; padding: 4px; }
.partner .textmark { display: grid; place-items: center; inline-size: 52px; block-size: 36px; border-radius: 999px; background: #e6ecff; color: #315fd1; font: 800 14px/1 var(--l-sans); }
.partner.wordmark { padding-inline: 22px; color: var(--vd-text-1); font: 800 16px/1 var(--l-display); letter-spacing: .01em; }
@media (prefers-reduced-motion: reduce) {
  .pq { mask-image: none; }
  .ptrack { flex-wrap: wrap; justify-content: center; inline-size: auto; padding-inline: var(--l-gutter); }
}
body.ld .public-stats { max-inline-size: none; margin: 32px 0 0; border-radius: var(--vd-radius-2xl); border-color: var(--vd-line); }
body.ld .stats-item strong { font-family: var(--l-display); }
body.ld .veedo-about { padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 96px); }
body.ld .about-story .h2 { font-family: var(--l-display); font-weight: 800; }
body.ld .about-principles span::before { background: var(--vd-accent); }
body.ld .about-owner, body.ld .about-owner-link { border-color: var(--vd-line); }
body.ld .about-brand-pair span { color: var(--vd-text-3); }

/* Footer: five columns, then the base row (copyright, owner credit, trust badges, theme toggle) */
.site-foot { border-block-start: 1px solid var(--vd-line); padding-block: 48px 32px; font-size: 14px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px 32px; }
.site-foot h2 { margin-block-end: 12px; font-size: 13px; font-weight: 600; color: var(--vd-text-1); }
.site-foot ul { display: grid; gap: 8px; }
.site-foot a { color: var(--vd-text-2); text-decoration: none; }
.site-foot a:hover { color: var(--vd-text-1); }
.site-foot .brand { color: var(--vd-text-1); }
.site-foot .about-line { margin-block-start: 12px; color: var(--vd-text-2); max-inline-size: 24em; font-size: 13px; }
.site-foot .base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-block-start: 40px; padding-block-start: 20px;
                   border-block-start: 1px solid var(--vd-line); color: var(--vd-text-3); font-size: 13px; }
@media (max-width: 900px) { .site-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---- One black page ------------------------------------------------------------------------------------------------
   Every section sits on the body's black; what separates them is space, a hairline that fades at both ends and a soft
   glow that alternates sides. Nothing here paints a light band. */
.ld .sec { position: relative; isolation: isolate; overflow-x: clip; background: transparent; }
.ld main > .sec::before { content: ""; position: absolute; inset-inline: var(--l-gutter); inset-block-start: 0; block-size: 1px; z-index: -1; pointer-events: none;
                          background: linear-gradient(90deg, transparent, var(--vd-line-strong) 18%, var(--vd-line-strong) 82%, transparent); }
.ld main > .sec::after { content: ""; position: absolute; inset-block-start: -120px; inset-inline: 0; block-size: 520px; z-index: -1; pointer-events: none;
                         background: radial-gradient(40% 60% at 86% 0%, #f8873614, transparent 70%); }
.ld main > .sec:nth-of-type(even)::after { background: radial-gradient(40% 60% at 14% 0%, #8b6cff14, transparent 70%); }
.ld main > .sec.trust::before, .ld main > .sec.trust::after { display: none; }
.ld .models { border: 0; background: transparent; }

/* ---- One media tile --------------------------------------------------------------------------------------------------
   .tile: the radius, the hairline frame, the bottom gradient, the slow zoom on hover and the play badge. Cases, model cards,
   the Iran collection, styles, presets, product shots, the image marquee and the model showcase all wear it. */
.tile { position: relative; overflow: hidden; border-radius: var(--r-card); background: #0c0d10; color: #fff; isolation: isolate;
        box-shadow: 0 0 0 1px var(--hair); }
.tile .m img, .tile .m video.lv { transition: transform 1.2s var(--ease-out), opacity var(--vd-dur-slow); }
.tile .sh { background: linear-gradient(0deg, #000e 0%, #0000 52%); opacity: .8; transition: opacity .6s; }
.tile .m.has-v::after { content: ""; position: absolute; inset-block-end: 12px; inset-inline-end: 12px; inline-size: 34px; block-size: 34px; border-radius: 50%; z-index: 1;
                        background: #0b0c0e99 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6 3.5v17a1 1 0 0 0 1.5.86l14-8.5a1 1 0 0 0 0-1.72l-14-8.5A1 1 0 0 0 6 3.5z'/%3E%3C/svg%3E") 55% 50% / 12px no-repeat;
                        backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px #ffffff2a; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease-out); pointer-events: none; }
.tile .m:has(video.on)::after, .case .m::after { display: none; }
@media (hover: hover) {
  .tile:hover { box-shadow: 0 0 0 1px #ffffff40, 0 30px 70px -34px #000; }
  .tile:hover .m img, .tile:hover .m video.lv { transform: scale(1.06); }
  .tile:hover .sh { opacity: 1; }
  .tile:hover .m.has-v::after { opacity: 1; transform: none; }
}
/* the caption every tile shares: title over a muted note, bottom start corner */
.tile .lb, .tile > b { color: #fff; }
.lb b, .lf b, .fsx b { font-size: 14.5px; font-weight: 700; text-shadow: 0 1px 10px #0009; }
.lb small, .fsx small { color: #ffffffb8; font-size: 12px; }

/* ---- Reveal on scroll: landing.js marks the elements and the page's first look is unchanged without it ------------------- */
.js-rv .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out) var(--rd, 0ms), transform .9s var(--ease-out) var(--rd, 0ms), box-shadow .5s; }
.js-rv .rv.in { opacity: 1; transform: none; }

/* ---- Marquees: pause under the pointer or keyboard focus, fade at both edges, stand still (and scroll by hand) when motion is reduced -- */
.mq, .marq, .pq { --fade: 7%; mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.mq:hover [data-drift], .marq:hover [data-drift], .mq:focus-within [data-drift], .marq:focus-within [data-drift] { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .mq, .marq { overflow-x: auto; scrollbar-width: none; mask-image: none; }
  .js-rv .rv { opacity: 1; transform: none; transition: none; }
  .fc { animation: none; }
  .tile .m img, .tile .m video.lv { transition: none; }
}

/* ---- Grids that fill their last row -----------------------------------------------------------------------------------------
   .flow: equal tiles in rows of --n; the final row's tiles stretch to take the whole width, so a count that does not divide
   evenly never leaves a hole. */
.flow { display: flex; flex-wrap: wrap; gap: var(--gap); --n: 4; }
.flow > * { flex: 1 1 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-inline-size: 0; }
/* .jgrid: justified rows (the Flickr idiom). Every tile's basis and growth follow its own shape (--w / --h, the poster's size), so a
   row of mixed portrait and landscape shares one height and fills the width exactly at any viewport; the spacer takes the last
   row's slack, so a short last row keeps the same height instead of stretching. --rh is the target row height. */
.jgrid { --rh: 230px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gap); }
.jgrid::after { content: ""; flex: 999 1 0; }
.jgrid > .tile { flex: calc(var(--w) / var(--h)) 1 calc(var(--rh) * var(--w) / var(--h)); aspect-ratio: var(--w) / var(--h); min-inline-size: 0; }
.jgrid > .tile > .m { position: absolute; inset: 0; }
@media (max-width: 1000px) { .jgrid { --rh: 190px; } }
@media (max-width: 719.98px) { .jgrid { --rh: 100px; --gap: 10px; } .jgrid > .tile { min-inline-size: 30%; } }

/* the About section's own stylesheet is light: here it is the same dark glass as every other panel */
body.ld .about-eyebrow { color: var(--vd-accent-text); }
body.ld .about-story p, body.ld .about-owner p { color: var(--vd-text-2); }
body.ld .about-principles { color: var(--vd-text-2); }
body.ld .about-owner { border-radius: calc(var(--r-card) + 4px); color: var(--vd-text-1); box-shadow: inset 0 0 0 1px var(--vd-line);
                       background: radial-gradient(120% 120% at 100% 0%, #f8873620, transparent 60%), linear-gradient(180deg, #ffffff0d, #ffffff05); }
body.ld .about-owner-link { color: var(--vd-accent-text); border-color: var(--vd-line); }
body.ld .about-brand-pair img { padding: 6px; border-radius: 12px; background: #f5f5f0; box-sizing: content-box; }
.tile > img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .tile > img:hover, .tile:hover > img { transform: scale(1.06); } }
