/* DMFX round 3 — light, teal + orange, navy ink. Single light look by choice.
   Layout: 1200px column, sections alternate white / mist bands, rounded 24px objects. */
@font-face{font-family:"Estedad";src:url(/fonts/Estedad-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Estedad";src:url(/fonts/Estedad-Black.woff2) format("woff2");font-weight:900;font-display:swap}

:root{
  color-scheme:light;
  /* color */
  --ink:#0B2540;        /* headings, body ink */
  --ink-2:#3B4A5C;      /* body text */
  --muted:#5B6B7E;      /* captions */
  --bg:#FFFFFF;
  --mist:#F4F9FB;       /* alternate band */
  --line:#E3ECF1;
  --line-2:#CFDDE4;
  --teal:#00789A;       /* text-safe teal (AA on white) */
  --teal-brand:#009BC4; /* logo teal, graphics only */
  --teal-tint:#EAF6FA;
  --orange:#E85F00;     /* CTA ground, white text */
  --orange-hover:#C85000;
  --orange-text:#B84A00;/* orange as text */
  --orange-brand:#FF6C00;
  --orange-tint:#FFF1E6;
  --navy-2:#14365A;
  --ok:#137A4B; --ok-tint:#E5F5EC;
  --warn:#8A5A00; --warn-tint:#FFF4D6;
  --bad:#B42318; --bad-tint:#FDECEA;
  /* type */
  --f-body:"Vazirmatn",Tahoma,"Segoe UI",sans-serif;
  --f-head:"Estedad","Vazirmatn",Tahoma,sans-serif;
  --fs-xs:13px; --fs-sm:15px; --fs-md:17px; --fs-lg:19px;
  --fs-h3:clamp(19px,1.6vw,22px); --fs-h2:clamp(27px,3vw,40px); --fs-h1:clamp(32px,4.2vw,54px);
  /* space, radius, shadow */
  --s1:8px; --s2:12px; --s3:16px; --s4:24px; --s5:32px; --s6:48px; --s7:72px; --s8:96px;
  --r-sm:10px; --r-md:14px; --r-lg:24px; --r-xl:28px; --r-pill:999px;
  --sh-1:0 2px 0 var(--line);
  --sh-2:0 24px 60px rgba(11,37,64,.08);
  --sh-3:0 30px 70px rgba(11,37,64,.13);
  --sh-cta:0 12px 28px rgba(232,95,0,.28);
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;direction:rtl}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.9;overflow-x:hidden;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:40;background:var(--bg)}
h1,h2,h3,h4{font-family:var(--f-head);font-weight:900;line-height:1.45;margin:0;text-wrap:balance;letter-spacing:-.2px}
h1{font-size:var(--fs-h1);line-height:1.35}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3);font-weight:700}
p{margin:0}
a{color:var(--teal);text-underline-offset:4px}
a:hover{color:var(--ink)}
img{max-width:100%;display:block}
:focus-visible{outline:3px solid var(--teal-brand);outline-offset:3px;border-radius:6px}
.hl{color:var(--teal)}
.num{font-variant-numeric:tabular-nums}
.ltr{direction:ltr;unicode-bidi:isolate}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- layout ---------- */
.band{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:var(--s8)}
.band.mist{background:var(--mist)}
.band.tight{padding-block:var(--s7)}
.wrap{max-width:1200px;margin-inline:auto;display:flex;flex-direction:column;gap:var(--s6)}
.wrap.narrow{max-width:860px}
.row{display:flex;flex-wrap:wrap;gap:var(--s4)}
.row>*{min-width:0}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--s4)}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:var(--s4)}
@media (max-width:420px){.grid-2,.grid-3{grid-template-columns:1fr}}

.sec-head{display:flex;flex-direction:column;gap:14px;max-width:680px}
.sec-head.center{align-items:center;text-align:center;margin-inline:auto}
.sec-head.split{max-width:none;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:var(--s4)}
.sec-head.split>div{display:flex;flex-direction:column;gap:12px;max-width:640px}
.eyebrow{font-size:var(--fs-sm);font-weight:800;color:var(--orange-text)}
.lead{font-size:var(--fs-md);line-height:2;color:var(--ink-2);max-width:62ch}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 26px;border-radius:var(--r-md);font-family:inherit;font-size:var(--fs-md);font-weight:800;text-decoration:none;cursor:pointer;border:2px solid transparent;transition:background .2s,transform .2s,border-color .2s,color .2s;white-space:nowrap}
.btn svg{width:20px;height:20px;flex:none}
.btn-main{background:var(--orange);color:#fff;box-shadow:var(--sh-cta)}
.btn-main:hover{background:var(--orange-hover);color:#fff;transform:translateY(-2px)}
.btn-ghost{background:#fff;color:var(--teal);border-color:#CFE6EE}
.btn-ghost:hover{background:var(--teal-tint);color:var(--teal);border-color:var(--teal-brand)}
.btn-ink{background:var(--ink);color:#fff}
.btn-ink:hover{background:var(--navy-2);color:#fff}
.btn-sm{min-height:44px;padding:8px 18px;font-size:var(--fs-sm);border-radius:12px}
.btn-lg{min-height:56px;padding:15px 32px;font-size:var(--fs-lg)}
.btn-block{width:100%}
.link-arrow{font-weight:800;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.link-arrow::after{content:"←";transition:transform .2s}
.link-arrow:hover::after{transform:translateX(-4px)}

/* ---------- chips, pills, tags ---------- */
.chip{display:inline-flex;align-items:center;gap:8px;background:var(--teal-tint);color:var(--teal);font-size:14px;font-weight:700;padding:7px 14px;border-radius:var(--r-pill)}
.chip .dot{width:8px;height:8px;border-radius:50%;background:var(--orange-brand)}
.tag{display:inline-flex;align-items:center;background:var(--mist);color:var(--ink);font-size:14px;font-weight:600;padding:7px 13px;border-radius:var(--r-sm)}
.tag.o{background:var(--orange-tint);color:var(--orange-text)}
.tag.t{background:var(--teal-tint);color:var(--teal)}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;padding:5px 11px;border-radius:var(--r-pill);white-space:nowrap}
.pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.pill.ok{background:var(--ok-tint);color:var(--ok)}
.pill.warn{background:var(--warn-tint);color:var(--warn)}
.pill.bad{background:var(--bad-tint);color:var(--bad)}
.pill.draft{background:var(--mist);color:var(--muted)}
.sample{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--muted);background:#fff;border:1px dashed var(--line-2);padding:3px 10px;border-radius:var(--r-pill)}
.checks{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:var(--fs-sm);color:var(--ink-2);font-weight:500}
.checks span{display:inline-flex;align-items:center;gap:8px}
.ico{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.checks .ico{color:var(--teal);width:20px;height:20px}

/* ---------- header ---------- */
.site-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:rgba(255,255,255,.93);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.site-header .in{max-width:1200px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.brand img{height:42px;width:auto}
.brand b{font-family:var(--f-head);font-size:17px;font-weight:900;padding-inline-start:10px;border-inline-start:1px solid var(--line)}
.nav{display:flex;gap:4px;font-size:15px;font-weight:700}
.nav a{color:var(--ink);text-decoration:none;padding:10px 14px;border-radius:10px;position:relative}
.nav a:hover{background:var(--mist)}
.nav a[aria-current=page]{color:var(--teal)}
.nav a[aria-current=page]::after{content:"";position:absolute;inset:auto 14px 4px;height:3px;border-radius:3px;background:var(--orange-brand)}
.head-cta{display:flex;align-items:center;gap:14px}
.head-tel{font-size:15px;font-weight:800;color:var(--teal);text-decoration:none}
.menu-btn{display:none;width:46px;height:46px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);align-items:center;justify-content:center;cursor:pointer}
.drawer{position:fixed;inset:0;z-index:50;background:rgba(11,37,64,.45);display:flex;justify-content:flex-start}
.drawer[hidden]{display:none}
.drawer-panel{width:min(86vw,340px);height:100%;background:#fff;padding:calc(env(safe-area-inset-top,0px) + 18px) 22px calc(env(safe-area-inset-bottom,0px) + 22px);display:flex;flex-direction:column;gap:6px;overflow:auto;box-shadow:var(--sh-3)}
.drawer-panel .top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.drawer-panel nav{display:flex;flex-direction:column}
.drawer-panel nav a{font-size:18px;font-weight:800;color:var(--ink);text-decoration:none;padding:14px 4px;border-bottom:1px solid var(--line)}
.drawer-panel nav a[aria-current=page]{color:var(--teal)}
.drawer-panel .btn{margin-top:18px}
.drawer-panel .tels{display:flex;flex-direction:column;gap:6px;margin-top:16px;font-weight:700}
@media (max-width:1060px){.nav{display:none}.menu-btn{display:inline-flex}.head-tel{display:none}}
@media (max-width:520px){.head-cta .btn{display:none}.brand b{display:none}.brand img{height:38px}}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);padding:var(--s6) max(16px,env(safe-area-inset-right,0px)) calc(var(--s5) + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.site-footer .in{max-width:1200px;margin-inline:auto;display:flex;flex-direction:column;gap:var(--s5)}
.foot-cols{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--s5)}
.foot-cols>div{display:flex;flex-direction:column;gap:10px;font-size:15px;min-width:0}
.foot-cols .about{flex:1 1 280px;max-width:360px;gap:14px}
.foot-cols .about img{height:50px;width:auto;align-self:flex-start}
.foot-cols .about p{color:var(--muted);line-height:2}
.foot-cols b{font-family:var(--f-head);font-size:16px;margin-bottom:4px}
.foot-cols a{color:var(--ink-2);text-decoration:none}
.foot-cols a:hover{color:var(--teal)}
.foot-cols address{font-style:normal;color:var(--ink-2);max-width:260px;line-height:2}
.foot-bottom{border-top:1px solid var(--line);padding-top:22px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted)}

/* ---------- breadcrumb + page hero ---------- */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);list-style:none;margin:0;padding:0}
.crumbs li:not(:last-child)::after{content:"/";margin-inline-start:8px;color:var(--line-2)}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--teal)}
.page-hero{position:relative;overflow:hidden;padding-block:56px 72px}
.page-hero .wrap{gap:22px;position:relative}
.page-hero h1{max-width:20ch}
.page-hero .blob{position:absolute;border-radius:50%;pointer-events:none}
.blob.t{top:-120px;left:-140px;width:420px;height:420px;background:var(--teal-tint)}
.blob.o{bottom:-80px;right:-90px;width:220px;height:220px;background:var(--orange-tint)}

/* ---------- cards ---------- */
.card{background:#fff;border-radius:var(--r-lg);padding:30px;box-shadow:var(--sh-1);display:flex;flex-direction:column;gap:16px;min-width:0}
.card.bordered{border:1px solid var(--line);box-shadow:none}
.mist .card{box-shadow:var(--sh-1)}
.lift{transition:transform .3s,box-shadow .3s}
.lift:hover{transform:translateY(-6px);box-shadow:0 22px 48px rgba(11,37,64,.12)}
.icon-tile{width:56px;height:56px;border-radius:17px;display:flex;align-items:center;justify-content:center;flex:none;background:var(--teal-tint);color:var(--teal)}
.icon-tile.o{background:var(--orange-tint);color:var(--orange-hover)}
.icon-tile .ico{width:28px;height:28px;stroke-width:2}
.card p{color:var(--ink-2);font-size:var(--fs-sm);line-height:2}
.card .link-arrow{margin-top:auto}

/* browser frame (used for mockups + portfolio placeholders) */
.browser{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
.browser .bar{display:flex;align-items:center;gap:6px;padding:10px 12px;background:var(--mist);border-bottom:1px solid var(--line);direction:ltr}
.browser .bar i{width:10px;height:10px;border-radius:50%;background:var(--orange-brand)}
.browser .bar i:nth-child(2){background:#F5C04A}
.browser .bar i:nth-child(3){background:var(--teal-brand)}
.browser .bar span{margin-left:10px;flex:1;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--muted);padding:3px 10px;font-family:var(--f-body)}

/* ---------- hero (home) ---------- */
.hero{position:relative;overflow:hidden;padding-block:64px 88px}
.svc-row{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start;background:#fff;border-radius:var(--r-xl);padding:32px;box-shadow:var(--sh-1);scroll-margin-top:100px}
.svc-row>.head{flex:1 1 300px;display:flex;flex-direction:column;gap:14px;min-width:0}
.svc-row>.inc{flex:1.4 1 360px;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 20px;list-style:none;margin:0;padding:0}
.svc-row .inc li{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:var(--ink-2);line-height:1.9}
.svc-row .inc .ico{color:var(--teal);width:20px;height:20px;margin-top:4px}
.jump{display:flex;flex-wrap:wrap;gap:10px}
.jump a{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:700;font-size:15px;text-decoration:none;padding:10px 16px;border-radius:12px;min-height:44px}
.jump a:hover{border-color:var(--teal-brand);color:var(--teal)}
.jump .ico{width:18px;height:18px;color:var(--teal)}
.split-2{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start}
.split-2>*{flex:1 1 380px;min-width:0}
.aside-sticky{position:sticky;top:96px;display:flex;flex-direction:column;gap:16px}
.hero .wrap{flex-direction:row;flex-wrap:wrap;align-items:center;gap:56px;position:relative}
.hero-copy{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:24px}
.hero-copy .chip{align-self:flex-start}
.hero-copy .lead{font-size:var(--fs-lg)}
.hero-art{flex:1 1 440px;min-width:0;position:relative;padding:22px 10px}
.dash{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-3);padding:24px;display:flex;flex-direction:column;gap:16px}
.dash-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.dash-top small{display:block;font-size:14px;color:var(--muted);font-weight:600}
.dash-top strong{font-family:var(--f-head);font-size:24px;font-weight:900}
.dash svg.chart{width:100%;height:auto;display:block;overflow:visible}
.dash .axis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.chart .grid{stroke:#EDF3F6;stroke-width:1}
.chart .area{fill:var(--teal-brand);opacity:0;transition:opacity 1.4s ease .5s}
.chart .line{fill:none;stroke:var(--teal-brand);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;transition:stroke-dashoffset 2s cubic-bezier(.4,0,.2,1)}
.chart .end{fill:var(--orange-brand);stroke:#fff;stroke-width:3;opacity:0;transition:opacity .4s ease 1.8s}
.is-on .chart .area{opacity:.1}.is-on .chart .end{opacity:1}
.float{position:absolute;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 36px rgba(11,37,64,.12);padding:12px 16px;display:flex;align-items:center;gap:12px;font-size:14px}
.float.serp{top:-14px;left:-12px;max-width:270px;flex-direction:column;align-items:flex-start;gap:2px}
.serp .u{font-size:12px;color:var(--muted);direction:ltr}
.serp .t{color:#1A0DAB;font-weight:700;font-size:15px;line-height:1.6}
.serp .d{font-size:12px;color:var(--ink-2);line-height:1.8}
.float.speed{bottom:-10px;right:20px;background:var(--teal);color:#fff;border:0;box-shadow:0 16px 36px rgba(0,120,154,.3);font-weight:700}
.gauge{width:42px;height:42px;border-radius:50%;background:conic-gradient(#fff 0 92%,rgba(255,255,255,.25) 0);display:grid;place-items:center;flex:none}
.gauge b{width:32px;height:32px;border-radius:50%;background:var(--teal);display:grid;place-items:center;font-size:13px}
@media (max-width:560px){.float.serp{position:static;margin-bottom:14px;max-width:none}.float.speed{right:8px}}

/* ---------- services (home) ---------- */
.svc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s4)}
.svc-grid .feature{grid-column:span 2;flex-direction:row;flex-wrap:wrap;gap:28px;align-items:center}
.svc-grid .feature>.txt{flex:1 1 280px;display:flex;flex-direction:column;gap:16px;min-width:0}
.svc-grid .feature>.browser{flex:1 1 260px}
@media (max-width:980px){.svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.svc-grid{grid-template-columns:1fr}.svc-grid .feature{grid-column:auto}}
.mini-site{aspect-ratio:16/10;padding:14px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#fff,var(--mist))}
.mini-site .h{height:12px;width:60%;border-radius:6px;background:var(--ink)}
.mini-site .p{height:7px;border-radius:4px;background:var(--line-2)}
.mini-site .p.s{width:70%}
.mini-site .b{height:22px;width:38%;border-radius:7px;background:var(--orange)}
.mini-site .cards{display:flex;gap:8px;margin-top:auto}
.mini-site .cards i{flex:1;height:44px;border-radius:8px;background:#fff;border:1px solid var(--line)}

/* ---------- audit bars (why us) ---------- */
.why{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.why>*{flex:1 1 420px;min-width:0}
.why-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:20px}
.why-list li{display:flex;gap:16px;align-items:flex-start}
.why-list h3{font-size:19px;margin-bottom:4px}
.why-list p{color:var(--ink-2);font-size:var(--fs-sm);line-height:2}
.report{background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--sh-2);padding:28px;display:flex;flex-direction:column;gap:20px}
.report-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.report-head b{font-family:var(--f-head);font-size:18px}
.meter{display:flex;flex-direction:column;gap:8px}
.meter .lbl{display:flex;justify-content:space-between;font-size:15px;font-weight:700}
.meter .lbl span:last-child{color:var(--teal)}
.meter .track{height:12px;border-radius:12px;background:var(--mist);overflow:hidden}
.meter .fill{height:100%;width:0;border-radius:12px;background:var(--teal-brand);transition:width 1.2s cubic-bezier(.4,0,.2,1)}
.meter.last .fill{background:var(--orange-brand)}

/* ---------- steps ---------- */
.steps{position:relative}
.steps .rail{position:absolute;top:31px;right:12%;left:12%;height:4px;background:var(--line);border-radius:4px}
.steps .rail i{position:absolute;inset:0 0 0 auto;width:0;background:var(--orange-brand);border-radius:4px;transition:width .2s ease-out}
.steps ol{position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s4)}
.steps li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.steps .n{width:66px;height:66px;border-radius:50%;background:#fff;color:var(--muted);border:3px solid #DCE7EC;display:flex;align-items:center;justify-content:center;font-family:var(--f-head);font-size:24px;font-weight:900;transition:background .3s,color .3s,border-color .3s,transform .3s}
.steps li.on .n{background:var(--orange);color:#fff;border-color:var(--orange);transform:scale(1.06)}
.steps h3{font-size:20px}
.steps p{font-size:15px;color:var(--ink-2);max-width:250px;line-height:1.95}
@media (max-width:820px){
  .steps .rail{top:0;bottom:0;right:31px;left:auto;width:4px;height:auto}
  .steps .rail i{inset:0 0 auto 0;width:100%!important;height:var(--fillv,0%)}
  .steps ol{grid-template-columns:1fr}
  .steps li{flex-direction:row;text-align:right;align-items:flex-start}
  .steps li>div{display:flex;flex-direction:column;gap:6px}
  .steps .n{flex:none}
}

/* ---------- principles ---------- */
.principles{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:var(--s4)}
.pcol{border-radius:var(--r-xl);padding:32px;display:flex;flex-direction:column;gap:18px}
.pcol.do{background:var(--teal-tint)}
.pcol.dont{background:#fff;border:2px solid var(--orange-tint)}
.pcol h3{display:flex;align-items:center;gap:12px;font-size:22px}
.pcol ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.pcol li{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.9;color:var(--ink-2)}
.pcol li .ico{margin-top:4px;width:20px;height:20px}
.pcol.do li .ico{color:var(--teal)}
.pcol.dont li .ico{color:var(--orange-hover)}

/* ---------- portfolio placeholder ---------- */
.pf-empty{background:#fff;border:1.5px dashed var(--line-2);border-radius:var(--r-xl);padding:36px;display:flex;flex-wrap:wrap;gap:32px;align-items:center}
.pf-empty .txt{flex:1 1 300px;display:flex;flex-direction:column;gap:14px;min-width:0}
.pf-empty .shots{flex:2 1 460px;display:flex;gap:16px;min-width:0}
.pf-empty .shots .browser{flex:1;min-width:0}
.pf-empty .shots .browser:nth-child(2){transform:translateY(22px)}
.ph{aspect-ratio:16/10;background:repeating-linear-gradient(135deg,var(--mist) 0 12px,#fff 12px 24px);display:grid;place-items:center;color:var(--muted);font-size:13px;font-weight:700}
@media (max-width:560px){.pf-empty .shots .browser:nth-child(3){display:none}}

/* ---------- article cards ---------- */
.post{background:#fff;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-1);display:flex;flex-direction:column;text-decoration:none;color:var(--ink);min-width:0}
.bordered-cards .post{border:1px solid var(--line);box-shadow:none}
.post .cover{aspect-ratio:16/9;position:relative;overflow:hidden;display:flex;align-items:flex-end;padding:18px}
.post .cover .tag{position:relative;z-index:1}
.cover.c1{background:linear-gradient(135deg,#EAF6FA,#D6EEF5)}
.cover.c2{background:linear-gradient(135deg,#FFF1E6,#FFE2CC)}
.cover.c3{background:linear-gradient(135deg,#EEF2FA,#DCE6F3)}
.cover svg{position:absolute;inset:auto 18px 18px auto;width:44%;height:auto;opacity:.9}
.post .body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.post h3{font-size:19px;line-height:1.7}
.post p{font-size:15px;color:var(--ink-2);line-height:1.95}
.post .meta{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted)}
.post:hover h3{color:var(--teal)}

/* ---------- mag band ---------- */
.mag-band{background:var(--ink);color:#fff;border-radius:var(--r-xl);padding:52px 48px;display:flex;flex-wrap:wrap;gap:40px;align-items:center;position:relative;overflow:hidden}
.mag-band::before{content:"";position:absolute;top:-80px;left:-80px;width:240px;height:240px;border-radius:50%;border:38px solid rgba(255,255,255,.06)}
.mag-band>*{position:relative}
.mag-band .txt{flex:1 1 380px;display:flex;flex-direction:column;gap:16px}
.mag-band .eyebrow{color:#FF9A4D}
.mag-band p{color:#D5E2EC;line-height:2;font-size:var(--fs-md)}
.mag-band .paper{flex:1 1 340px;background:#fff;color:var(--ink);border-radius:var(--r-lg);padding:24px;display:flex;flex-direction:column;gap:12px;transform:rotate(-1.5deg);box-shadow:0 30px 60px rgba(0,0,0,.25)}
.paper .by{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.paper .av{width:36px;height:36px;border-radius:50%;background:var(--orange-tint);color:var(--orange-text);display:grid;place-items:center;font-weight:900}
.paper .ln{height:8px;border-radius:4px;background:var(--line)}
@media (max-width:560px){.mag-band{padding:36px 22px}}

/* ---------- faq ---------- */
.faq{display:flex;flex-direction:column;gap:14px}
.faq details{background:#fff;border:1px solid var(--line);border-radius:18px;padding:0 24px}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;font-family:var(--f-head);font-size:18px;font-weight:700;min-height:44px}
.faq summary::-webkit-details-marker{display:none}
.faq .plus{flex:none;width:34px;height:34px;border-radius:10px;background:var(--teal-tint);color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:24px;transition:transform .25s}
.faq details[open] .plus{transform:rotate(45deg)}
.faq details p{margin:0 0 22px;font-size:16px;line-height:2;color:var(--ink-2)}

/* ---------- forms ---------- */
.field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:700;min-width:0}
.field input,.field select,.field textarea{font-family:inherit;font-size:16px;color:var(--ink);background:#fff;padding:12px 14px;border:1.5px solid var(--line-2);border-radius:12px;min-height:48px;width:100%;transition:border-color .2s,box-shadow .2s}
.field textarea{min-height:110px;resize:vertical;line-height:1.9}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--teal-brand);box-shadow:0 0 0 4px var(--teal-tint)}
.field .hint{font-weight:500;color:var(--muted);font-size:13px}
.field.err input{border-color:var(--bad)}
.field .msg{color:var(--bad);font-weight:600;font-size:13px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.form-ok{display:flex;gap:12px;align-items:flex-start;background:var(--ok-tint);color:var(--ok);border-radius:14px;padding:16px;font-weight:700}

.cta-band{background:var(--teal);border-radius:32px;padding:56px 48px;color:#fff;display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;position:relative;overflow:hidden}
.cta-band::before{content:"";position:absolute;top:-90px;left:-90px;width:260px;height:260px;border-radius:50%;border:40px solid rgba(255,255,255,.08)}
.cta-band>*{position:relative}
.cta-band .txt{flex:1 1 340px;display:flex;flex-direction:column;gap:16px}
.cta-band p{color:#E6F4F8;font-size:var(--fs-md);line-height:2}
.cta-band .contact-lines{display:flex;flex-direction:column;gap:12px;margin-top:8px;font-size:16px}
.cta-band .contact-lines div{display:flex;gap:12px;align-items:flex-start}
.cta-band .contact-lines a{color:#fff;font-weight:800;text-decoration:none}
.cta-band form{flex:1 1 440px;background:#fff;border-radius:var(--r-lg);padding:28px;display:flex;flex-direction:column;gap:14px;color:var(--ink);min-width:0}
@media (max-width:560px){.cta-band{padding:32px 18px;border-radius:24px}.cta-band form{padding:20px}}

/* ---------- prose (article) ---------- */
.prose{font-size:17.5px;line-height:2.15;color:var(--ink-2);display:flex;flex-direction:column;gap:20px;min-width:0}
.prose h2{font-size:clamp(23px,2.2vw,28px);color:var(--ink);margin-top:20px;scroll-margin-top:100px}
.prose h3{font-size:20px;color:var(--ink);margin-top:6px}
.prose ul,.prose ol{margin:0;padding-inline-start:24px;display:flex;flex-direction:column;gap:8px}
.prose li::marker{color:var(--teal);font-weight:800}
.prose code{font-family:ui-monospace,Consolas,monospace;font-size:.88em;background:var(--mist);border:1px solid var(--line);padding:1px 7px;border-radius:6px;direction:ltr;unicode-bidi:isolate}
.prose pre{margin:0;direction:ltr;text-align:left;background:var(--ink);color:#E4EEF5;border-radius:16px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.8}
.prose pre code{background:none;border:0;padding:0;color:inherit}
.callout{display:flex;gap:14px;background:var(--teal-tint);border-radius:16px;padding:18px 20px;color:var(--ink)}
.callout.o{background:var(--orange-tint)}
.callout .ico{color:var(--teal);margin-top:5px}
.callout.o .ico{color:var(--orange-hover)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px}
.table-wrap table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px}
.table-wrap th,.table-wrap td{padding:13px 16px;text-align:right;border-bottom:1px solid var(--line);vertical-align:top}
.table-wrap th{background:var(--mist);font-weight:800;color:var(--ink)}
.table-wrap tr:last-child td{border-bottom:0}

/* ---------- crawler mascot (home hero) ---------- */
.crawler-lane{position:absolute;left:24px;right:24px;bottom:14px;height:72px;pointer-events:none;visibility:hidden}
.crawler-layer{position:absolute;top:0;left:0;width:0;height:0;pointer-events:none;direction:ltr;z-index:1}
.crawler-thread{position:absolute;top:0;left:0;width:2px;height:0;background:#1F2937;border-radius:1px;opacity:0}
.crawler-thread.on{opacity:.5}
.crawler-thread.fade{opacity:0;transition:opacity .35s}
.crawler{position:absolute;left:0;top:0;width:68px;opacity:0;transition:opacity .4s;will-change:transform}
.crawler.ready{opacity:1}
.crawler svg{display:block;width:100%;height:auto;overflow:visible}
.crawler[data-dir=l] svg{transform:scaleX(-1)}
.crawler .v-side,.crawler[data-view=side] .v-front{display:none}
.crawler[data-view=side] .v-side{display:inline}
.crawler .leg,.crawler .eye,.crawler .body{transform-box:fill-box}
.crawler .leg{transform-origin:50% 0}
.crawler.walking .leg{animation:crawl-leg .34s ease-in-out infinite alternate}
.crawler.walking .leg.b{animation-delay:-.34s}
.crawler.walking .body{animation:crawl-bob .17s ease-in-out infinite alternate}
.crawler .eye{transform-origin:50% 50%;transition:transform .08s}
.crawler.blink .eye{transform:scaleY(.12)}
.crawler-hop{transform-origin:50% 0}
.crawler-hop.hop{animation:crawl-hop .28s ease-out}
.crawler.hang .crawler-hop{animation:crawl-sway 1.1s ease-in-out infinite alternate}
.crawler.hang .v-front .legs{transform-box:fill-box;transform-origin:50% 30%;transform:translateY(-3px) scale(.9)}
.crawler.paused *{animation-play-state:paused!important}
@keyframes crawl-leg{from{transform:rotate(-16deg)}to{transform:rotate(16deg)}}
@keyframes crawl-bob{from{transform:translateY(0)}to{transform:translateY(-2px)}}
@keyframes crawl-sway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@keyframes crawl-hop{0%{transform:translateY(0) scale(1,1)}40%{transform:translateY(-5px) scale(.96,1.05)}100%{transform:translateY(0) scale(1,1)}}
@media (max-width:640px){.crawler{width:54px}.crawler-lane{left:12px;right:12px;bottom:10px;height:60px}}

/* ---------- mobile tab bar (layout idea: CircleBar, MIT) ---------- */
.tabbar{display:none}
@media (max-width:760px){
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  .tabbar{--cx:calc((4.5 - var(--i)) * 20vw);display:flex;position:fixed;left:0;right:0;bottom:0;z-index:35;height:calc(64px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);filter:drop-shadow(0 -2px 10px rgba(11,37,64,.10))}
  .tabbar-bg{position:absolute;top:0;bottom:0;left:0;width:calc(200vw + 128px);display:flex;direction:ltr;transform:translateX(calc(var(--cx) - 100vw - 64px));transition:transform .32s ease-in-out}
  .tabbar-bg i{flex:0 0 100vw;background:#fff}
  .tabbar-bg svg{flex:0 0 128px;height:100%;fill:#fff;background:linear-gradient(#fff,#fff) 0 37px/100% 100% no-repeat}
  .tabbar.none .tabbar-bg path{visibility:hidden}
  .tabbar.none .tabbar-bg svg{background-position:0 0}
  .tabbar-dot{position:absolute;top:-22px;left:0;width:52px;height:52px;border-radius:50%;background:var(--orange);box-shadow:0 6px 14px rgba(232,95,0,.32);display:grid;place-items:center;transform:translateX(calc(var(--cx) - 26px));transition:transform .32s ease-in-out}
  .tabbar.none .tabbar-dot{display:none}
  .tabbar-dot svg{grid-area:1/1;width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .15s}
  .tabbar-dot svg.on{opacity:1;transition-delay:.15s}
  .tabbar a{flex:1;position:relative;z-index:1;height:64px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;padding-bottom:9px;color:var(--ink-2);font-size:12px;font-weight:700;line-height:1.4;text-decoration:none;-webkit-tap-highlight-color:transparent}
  .tabbar a .ico{width:22px;height:22px;transition:opacity .2s,transform .2s}
  .tabbar a[aria-current] .ico{opacity:0;transform:translateY(-8px)}
  .tabbar a[aria-current]{color:var(--orange-text)}
  .tabbar a:focus-visible{outline-offset:-4px}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){.tabbar-bg,.tabbar-dot,.tabbar-dot svg,.tabbar a .ico{transition:none}}

/* ---------- photos ---------- */
img.photo{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--r-xl);box-shadow:var(--sh-1);background:var(--mist)}
.hero-photo{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-xl);box-shadow:var(--sh-2);background:var(--mist)}
.hero-photo + .report{position:relative;margin:-120px 28px 0}
@media (max-width:640px){.hero-photo + .report{margin:-56px 10px 0;padding:20px}}
img.face{flex:none;display:block;border-radius:50%;object-fit:cover;background:var(--mist);box-shadow:0 0 0 4px #fff,var(--sh-1)}
.author-hero img.face{width:160px;height:160px}
.person img.face{width:84px;height:84px}
img.office-photo{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-xl);box-shadow:var(--sh-1);background:var(--mist)}
img.av{object-fit:cover;padding:0;background:var(--mist)}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* ---------- portfolio + team (content round) ---------- */
.pf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:var(--s4)}
.pf-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;min-width:0;text-decoration:none;color:inherit;transition:border-color .2s,transform .2s}
.pf-card:hover{border-color:var(--teal-brand);transform:translateY(-3px)}
.pf-card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;background:var(--mist)}
.pf-card .b{padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.pf-card h3{font-size:17px;line-height:1.7}
.pf-card .facts{display:flex;flex-wrap:wrap;gap:6px}
.pf-filter{display:flex;flex-wrap:wrap;gap:8px}
.pf-filter button{font:inherit;font-size:14px;font-weight:700;border:1px solid var(--line-2);background:#fff;color:var(--ink-2);border-radius:999px;padding:7px 14px;cursor:pointer;min-height:40px}
.pf-filter button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.team{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:var(--s4)}
.person{display:flex;gap:18px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;min-width:0}
.person .ph{flex:none;width:84px;height:84px;border-radius:50%;background:repeating-linear-gradient(135deg,var(--mist) 0 8px,#fff 8px 16px);border:1.5px dashed var(--line-2);display:grid;place-items:center;font-size:11px;color:var(--muted);text-align:center;line-height:1.5}
.person .t{display:flex;flex-direction:column;gap:6px;min-width:0}
.person h3{font-size:19px}
.person .role{font-size:14px;font-weight:700;color:var(--teal)}
.person p{font-size:15px;line-height:2;color:var(--ink-2)}
.what-table td:first-child{font-weight:800;color:var(--ink);white-space:nowrap}
