:root { --paper:#efeee7; --ink:#272f28; --muted:#62685d; --line:#c8ccc0; --green:#2e5141; --field:#253e35; --light:#dce5ce; --sans:'Manrope',Arial,sans-serif; --display:'Barlow Condensed','Arial Narrow',Impact,sans-serif; --mono:ui-monospace,SFMono-Regular,Consolas,monospace; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:var(--paper); color:var(--ink); font:400 16px/1.75 var(--sans); -webkit-font-smoothing:antialiased; }
::selection { background:var(--green); color:var(--paper); }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
a,button,input { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
button,a { touch-action:manipulation; }
button:active,.header-github:active,.project-link:active { transform:scale(.97); }
button { cursor:pointer; }
img,svg { display:block; max-width:100%; }
h1,h2,h3,p,figure { margin:0; }
em { font-style:normal; color:var(--green); }
.wrap { width:min(1320px,calc(100% - 96px)); margin-inline:auto; }
.eyebrow { font:400 10px/1.6 var(--mono); letter-spacing:.055em; font-variant-numeric:tabular-nums; }
.skip { position:fixed; top:-100px; left:24px; z-index:20; background:var(--ink); color:var(--paper); padding:12px 24px; }
.skip:focus { top:16px; }
.header { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:12px; min-height:44px; font-size:15px; font-weight:700; letter-spacing:-.04em; }
.brand-divider { color:#959b8f; padding-inline:8px; font-weight:400; }
.brand-note { font-size:12px; font-weight:400; color:var(--muted); letter-spacing:0; }
nav { display:flex; gap:32px; }
nav a { display:flex; align-items:center; gap:7px; min-width:44px; min-height:44px; font-size:12px; }
.nav-number { font:9px var(--mono); color:var(--muted); align-self:center; translate:0 -4px; }
.header-github { display:flex; gap:28px; align-items:center; min-height:44px; padding:0 16px; border:1px solid var(--line); border-radius:2px; font-size:12px; transition:border-color .2s,background .2s; }
.header-github:hover { border-color:var(--ink); background:#e5e7dc; }
nav a:hover,.text-link:hover { color:var(--green); }
.hero { padding-top:32px; }
.hero-eyebrow { display:flex; justify-content:space-between; gap:24px; }
.hero-eyebrow>span:first-child { display:flex; align-items:center; gap:10px; }
.status-dot { width:6px; height:6px; border-radius:50%; background:var(--green); display:inline-block; }
.wordmark { position:relative; border-bottom:1px solid var(--line); margin-top:8px; }
h1 { font:700 clamp(110px,25.2vw,362px)/.86 var(--display); letter-spacing:-.026em; padding:0 0 24px; }
h1>span { color:var(--green); }
.wordmark-note { position:absolute; right:4px; top:28%; font:10px/1.6 var(--mono); letter-spacing:.04em; }
.hero-intro { display:grid; grid-template-columns:1fr 1fr; gap:64px; padding:32px 0 36px; align-items:start; }
.hero-intro h2 { font-size:clamp(23px,2.6vw,36px); line-height:1.3; font-weight:500; letter-spacing:-.055em; }
.hero-copy { display:flex; justify-content:space-between; align-items:start; gap:32px; padding-top:4px; }
.hero-copy p { font-size:13px; color:var(--muted); max-width:272px; line-height:1.8; }
.text-link { display:inline-flex; align-items:center; gap:20px; min-height:44px; font-size:12px; font-weight:500; white-space:nowrap; }
.text-link>span { font-size:22px; transition:translate .2s; }
.text-link:hover>span { translate:2px -2px; }
.hero-copy>.text-link { align-self:end; white-space:normal; max-width:160px; line-height:1.6; }
.flow-stage { position:relative; height:clamp(260px,28vw,380px); background:var(--field); color:var(--light); overflow:hidden; }
.flow-stage canvas,.flow-fallback { position:absolute; inset:0; width:100%; height:100%; }
.flow-fallback { color:#718c79; }
.flow-stage.ready .flow-fallback { visibility:hidden; }
.flow-body:not([hidden]) { position:absolute; z-index:2; padding:0; display:grid; place-items:center; min-width:44px; min-height:44px; border:0; border-radius:50%; background:transparent; color:var(--green); cursor:grab; touch-action:none; }
.flow-body:active { cursor:grabbing; transform:none; }
.flow-body>span { font-size:26px; opacity:0; transition:opacity .2s; }
.flow-body:hover>span,.flow-body:focus-visible>span { opacity:1; }
.flow-body:focus-visible { outline:2px dashed var(--paper); outline-offset:8px; }
.flow-probe:not([hidden]) { position:absolute; right:24px; top:50px; display:grid; gap:2px; padding:12px; background:var(--field); border:1px solid #70866e; pointer-events:none; }
.flow-probe output { font:18px var(--mono); }
.experiment-tools:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:16px; border-bottom:1px solid var(--line); }
.experiment-tools button { min-height:44px; padding:0 14px; border:1px solid var(--line); background:transparent; border-radius:2px; font-size:11px; color:var(--ink); }
.view-switch { display:flex; flex-shrink:0; gap:4px; }
.view-switch button[aria-pressed=true] { background:var(--green); border-color:var(--green); color:var(--paper); }
.experiment-tools p { font-size:11px; color:var(--muted); max-width:330px; }
#flow-reset { white-space:nowrap; }
.result-zoom { display:block; width:100%; padding:0; border:0; background:transparent; color:var(--ink); text-align:left; }
.result-zoom>span { display:flex; justify-content:space-between; align-items:center; min-height:44px; margin-top:12px; font:11px var(--mono); border-top:1px solid var(--line); }
.result-zoom:hover>span { color:var(--green); }
dialog { width:min(1200px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:24px; border:1px solid var(--line); background:var(--paper); color:var(--ink); }
dialog::backdrop { background:rgb(20 31 25 / .8); }
.dialog-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.dialog-bar h2 { font-size:18px; font-weight:500; }
.dialog-bar button { min-height:44px; padding:0 16px; background:var(--green); color:var(--paper); border:0; }
dialog img { width:100%; height:auto; }
dialog p { font-size:12px; margin-top:16px; }
dialog p a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; }
@media(max-width:760px) { .experiment-tools:not([hidden]) { flex-wrap:wrap; gap:12px; }.experiment-tools p { order:3; max-width:none; width:100%; }.experiment-tools button { padding-inline:10px; font-size:10px; }.flow-probe:not([hidden]) { right:16px; top:42px; padding:8px; }.flow-probe output { font-size:14px; } }
.field-top,.field-bottom { position:absolute; z-index:1; left:24px; right:24px; display:flex; justify-content:space-between; pointer-events:none; font-size:9px; color:#cfdbc9; }
.field-top { top:20px; }
.field-bottom { bottom:18px; }
.field-coordinate { font-size:18px; line-height:1; }
.flow-caption { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:16px 0; border-bottom:1px solid var(--line); }
.flow-caption>div:first-child { display:flex; flex-direction:column; gap:2px; }
.caption-title { font-size:12px; font-weight:600; }
.caption-note { font-size:10px; color:var(--muted); }
.flow-controls:not([hidden]) { display:flex; align-items:center; gap:16px; }
.flow-controls .flow-setting { width:112px; font:9px var(--mono); display:grid; grid-template-columns:1fr auto; align-items:center; gap:0 4px; }
.tabular-nums { font-variant-numeric:tabular-nums; }
output { min-width:4ch; }
input[type=range] { width:100%; grid-column:1/-1; min-height:44px; margin:0; accent-color:var(--green); cursor:pointer; }
.flow-controls button { display:flex; gap:8px; align-items:center; justify-content:center; min-width:82px; min-height:44px; padding:0 12px; background:transparent; border:1px solid var(--line); border-radius:2px; font-size:11px; }
.flow-controls button:hover { background:#e1e4d8; }
.hero-foot { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:4px; color:var(--muted); }
.hero-foot a { display:flex; gap:24px; align-items:center; min-height:44px; }
.hero-foot a>span { font-size:18px; }
.section { padding-block:96px; }
.section-label { display:flex; justify-content:space-between; gap:24px; padding-bottom:20px; border-bottom:1px solid var(--line); color:var(--muted); }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:40px; margin:40px 0; }
.section-heading h2,.about h2 { font-size:clamp(32px,4.1vw,56px); line-height:1.15; font-weight:500; letter-spacing:-.055em; }
.section-heading>p { font-size:12px; color:var(--muted); margin-bottom:8px; }
.featured-project { display:grid; grid-template-columns:1.3fr 1fr; border:1px solid var(--line); }
.project-art { background:#e4e7dc; padding:24px; display:flex; flex-direction:column; justify-content:space-between; gap:24px; }
.art-heading,.art-caption { display:flex; justify-content:space-between; gap:16px; font-size:9px; }
.result-image { width:100%; height:auto; mix-blend-mode:multiply; }
.project-copy { padding:40px; border-left:1px solid var(--line); }
.project-copy>.eyebrow { color:var(--green); font-size:9px; }
.project-copy h3 { font-size:clamp(27px,2.5vw,36px); line-height:1.2; font-weight:500; letter-spacing:-.045em; margin:20px 0; }
.project-copy p { color:var(--muted); font-size:13px; line-height:1.8; }
.project-copy .project-note { font-size:11px; margin-top:16px; }
.tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.tags>span { font:9px var(--mono); padding:6px 9px; border:1px solid var(--line); border-radius:2px; }
.project-link { display:flex; justify-content:space-between; align-items:center; gap:24px; font-size:12px; font-weight:600; min-height:48px; border-top:1px solid var(--line); margin-top:32px; padding-top:4px; }
.project-link>span { font-size:24px; }
.project-link:hover { color:var(--green); }
.project-list { margin-top:24px; }
.project-row { display:grid; grid-template-columns:60px 1fr 180px 44px; align-items:center; gap:24px; min-height:140px; border-bottom:1px solid var(--line); transition:background .2s; }
.project-row:hover { background:#e5e7dc; }
.project-index { color:var(--muted); }
.project-row h3 { font-size:23px; font-weight:500; letter-spacing:-.045em; }
.project-row p { color:var(--muted); font-size:12px; margin-top:8px; max-width:520px; }
.project-category { font-size:9px; justify-self:end; }
.project-arrow { font-size:32px; justify-self:center; transition:translate .2s; }
.project-row:hover .project-arrow { translate:3px -3px; }
.section-foot { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:20px; }
.section-foot>.eyebrow { color:var(--muted); font-size:9px; }
.about { background:#e4e7dd; }
.about-layout { display:grid; grid-template-columns:1fr 1fr; gap:96px; padding-top:48px; }
.about-diagram { width:min(320px,100%); color:var(--green); margin-top:32px; }
.about-diagram svg { width:100%; height:auto; }
.about-diagram>.eyebrow { display:block; text-align:center; font-size:9px; margin-top:8px; }
.about-copy .large-copy { font-size:23px; color:var(--ink); line-height:1.55; letter-spacing:-.04em; margin-bottom:24px; }
.about-copy p { color:var(--muted); font-size:14px; margin-bottom:16px; }
.about-facts { margin:32px 0 0; }
.about-facts>div { display:grid; grid-template-columns:110px 1fr; gap:16px; padding:16px 0; border-top:1px solid #c2c9b9; }
.about-facts dt { font:9px/1.75 var(--mono); color:var(--muted); }
.about-facts dd { margin:0; font-size:12px; }
[lang=fa] { font-family:'Vazirmatn',sans-serif; font-feature-settings:'ss01','cv01'; }
.closing { background:var(--field); color:var(--paper); padding-top:48px; }
.closing .section-label { border-color:#5a7062; color:#c7d2c1; }
.closing-content { display:flex; align-items:end; justify-content:space-between; gap:64px; padding:48px 0 72px; }
.closing h2 { font-size:clamp(42px,6.5vw,88px); font-weight:500; line-height:1.04; letter-spacing:-.06em; }
.closing em { color:#c7d7b4; }
.closing-link { display:flex; flex-direction:column; gap:24px; justify-content:space-between; min-width:190px; border-top:1px solid #84937b; padding-top:20px; font:11px var(--mono); }
.closing-arrow { font:100px/.9 var(--sans); align-self:end; transition:translate .25s; }
.closing-link:hover .closing-arrow { translate:6px -6px; }
footer { display:flex; align-items:center; justify-content:space-between; gap:24px; border-top:1px solid #5a7062; min-height:88px; }
footer>.eyebrow { color:#c7d2c1; font-size:9px; }
footer .text-link:hover { color:#c7d7b4; }
@media(min-width:1500px) { h1 { font-size:380px; } }
@media(max-width:1100px) {
  .wrap { width:calc(100% - 64px); }
  .hero-copy { display:block; }
  .hero-copy p { max-width:350px; }
  .hero-copy>.text-link { max-width:none; }
  .hero-intro { gap:40px; }
  .wordmark-note { font-size:9px; }
  .project-copy { padding:28px; }
  .project-row { grid-template-columns:40px 1fr 130px 44px; gap:16px; }
  .project-category { font-size:8px; }
}
@media(max-width:760px) {
  .wrap { width:calc(100% - 40px); }
  .header { flex-wrap:wrap; gap:0 16px; padding-block:12px; min-height:100px; }
  .brand { font-size:14px; }
  .brand-note { font-size:11px; }
  .brand-divider { padding-inline:3px; }
  nav { order:3; flex-basis:100%; justify-content:space-between; gap:16px; }
  nav a { font-size:11px; }
  .header-github { gap:12px; padding-inline:12px; font-size:11px; }
  .hero { padding-top:24px; }
  .hero-edition { display:none; }
  .hero-eyebrow { font-size:9px; }
  .wordmark { margin-top:16px; }
  h1 { font-size:27vw; padding-bottom:20px; }
  .wordmark-note { right:0; font-size:7px; top:21%; }
  .hero-intro { gap:24px; padding:24px 0; }
  .hero-intro h2 { font-size:24px; }
  .hero-copy p { font-size:12px; }
  .hero-copy>.text-link { font-size:11px; gap:12px; }
  .flow-stage { height:280px; }
  .field-top,.field-bottom { left:16px; right:16px; font-size:8px; }
  .flow-caption { flex-wrap:wrap; gap:8px; }
  .flow-controls:not([hidden]) { gap:12px; }
  .hero-foot { font-size:8px; gap:12px; }
  .hero-foot a { gap:12px; }
  .section { padding-block:64px; }
  .section-label { font-size:9px; }
  .section-label>span:last-child { display:none; }
  .section-heading { display:block; margin:32px 0; }
  .section-heading>p { margin-top:20px; }
  .section-heading>p br { display:none; }
  .featured-project { grid-template-columns:1fr; }
  .project-art { padding:20px; gap:24px; min-height:260px; }
  .project-copy { border-left:0; border-top:1px solid var(--line); padding:28px; }
  .project-copy h3 { font-size:32px; }
  .project-row { grid-template-columns:28px 1fr 32px; gap:12px; padding:24px 0; min-height:140px; }
  .project-row h3 { font-size:21px; }
  .project-category { display:none; }
  .project-row p { font-size:11px; }
  .section-foot { align-items:start; }
  .section-foot>.eyebrow { padding-top:12px; max-width:130px; }
  .about-diagram { margin-top:24px; width:220px; }
  .about-copy .large-copy { font-size:23px; }
  .closing { padding-top:32px; }
  .closing-content { display:block; padding:32px 0 48px; }
  .closing h2 { font-size:50px; }
  .closing-link { flex-direction:row; align-items:center; margin-top:32px; gap:24px; padding-top:12px; }
  .closing-arrow { font-size:64px; }
  footer { flex-wrap:wrap; justify-content:space-between; gap:0 24px; padding-block:16px; }
  footer>.eyebrow { order:3; width:100%; margin-top:8px; font-size:8px; }
}
@media(max-width:450px) {
  .brand-note,.brand-divider { display:none; }
  .hero-intro { grid-template-columns:1fr; gap:16px; }
  .hero-intro h2 { font-size:28px; }
  .hero-copy { display:flex; align-items:start; gap:16px; }
  .hero-copy p { max-width:230px; }
  .hero-copy>.text-link { min-width:84px; max-width:100px; align-self:start; }
  .wordmark-note { font-size:6px; line-height:1.5; }
  .flow-caption>div:first-child { width:100%; }
  .flow-controls:not([hidden]) { width:100%; justify-content:space-between; }
  .flow-controls .flow-setting { width:76px; font-size:8px; }
  .hero-foot>span { max-width:160px; }
  .hero-foot>a { white-space:nowrap; }
  .caption-note { font-size:9px; }
  .section-heading h2,.about h2 { font-size:33px; }
  .art-caption { font-size:7px; }
  .closing h2 { font-size:44px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}

@media(max-width:1100px){.about-layout{gap:48px}}
@media(max-width:760px){.about-layout{grid-template-columns:1fr;gap:32px;padding-top:32px}}
