: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:var(--panel,#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>.letter:last-child { 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; }
.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; }
.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:var(--panel,#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); }
.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:var(--panel,#e4e7dd); }
.about-layout { display:grid; grid-template-columns:1fr 1fr; gap:96px; padding-top:48px; }
.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:#efeee7; 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; }
}
@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; }
  .section-foot { align-items:start; }
  .section-foot>.eyebrow { padding-top:12px; max-width:130px; }
  .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}}
/* Page-wide interactions. Content stays readable before JavaScript loads. */
.letter{display:inline-block;transition:transform .45s cubic-bezier(.2,.9,.3,1.3);transform-origin:50% 90%;color:var(--ink)}
#type-play{display:block;min-height:44px;padding:0;margin-top:16px;background:transparent;color:var(--green);border:0;border-bottom:1px solid var(--line);font:10px var(--mono);text-align:left}
.project-tabs:not([hidden]){display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid var(--line);border-bottom:0}
.project-tabs button{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:80px;padding:20px 24px;background:transparent;color:var(--ink);border:0;border-right:1px solid var(--line);text-align:left;font:14px var(--sans);transition:background .25s,color .25s}
.project-tabs button:last-child{border-right:0}.project-tabs button[aria-selected=true]{background:var(--green);color:var(--paper)}
.project-tabs button>span:last-child{font-size:22px}.project-tabs button>.eyebrow{font-size:10px}
.project-panel[hidden],.interest-panel[hidden]{display:none}.project-panel{min-height:460px}.project-panel .result-image{aspect-ratio:2/1;object-fit:contain}
.project-pagination:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:16px 0}
.project-pagination>div{display:flex;align-items:center;gap:20px;flex-shrink:0}.project-pagination button{width:48px;height:48px;flex-shrink:0;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:22px}.project-pagination button:hover{background:var(--panel,#e4e7dc)}
.interest-map{margin-top:32px;max-width:410px}.orbit-art{height:240px;position:relative;transform:rotate(var(--orbit-turn,0deg));transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.orbit-art i{position:absolute;left:12%;top:30%;width:76%;height:40%;border:1px solid var(--green);border-radius:50%}.orbit-art i:nth-child(2){transform:rotate(60deg)}.orbit-art i:nth-child(3){transform:rotate(-60deg)}
.orbit-art:before,.orbit-art:after{content:'';position:absolute;background:var(--green);border-radius:50%;width:14px;height:14px;left:calc(50% - 7px);top:calc(50% - 7px)}.orbit-art:after{width:9px;height:9px;left:85%;top:48%}.orbit-art span{position:absolute;inset:10% 27%;border:1px dashed var(--line);border-radius:50%}
.interest-buttons:not([hidden]){display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.interest-buttons button{min-height:48px;border:1px solid var(--line);background:transparent;color:var(--ink);font:12px var(--sans)}.interest-buttons button[aria-pressed=true]{background:var(--green);color:var(--paper);border-color:var(--green)}
.interest-map>p{margin-top:16px;font-size:9px;color:var(--muted)}.interest-label{display:block;color:var(--green);margin-bottom:24px}.interest-panel{min-height:240px}
.another-project:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:56px;width:min(360px,100%);margin:0 0 40px;padding:0 16px;border:1px solid #84937b;background:transparent;color:#efeee7;font:12px var(--sans)}.another-project:hover{background:#385146}
.page-tools:not([hidden]){position:fixed;right:24px;bottom:24px;z-index:8;display:flex;gap:6px;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:4px}
.page-tools button,.page-tools summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;padding:0 14px;background:transparent;color:var(--ink);border:0;font:11px var(--mono);cursor:pointer;list-style:none}.page-tools summary::-webkit-details-marker{display:none}.page-tools button[aria-pressed=true]{background:var(--green);color:var(--paper)}
.page-index nav{position:absolute;right:0;bottom:calc(100% + 8px);display:flex;flex-direction:column;gap:0;min-width:240px;padding:8px;background:var(--paper);border:1px solid var(--line)}.page-index nav a{padding:0 12px;min-height:48px;font:11px var(--mono)}.page-index a[aria-current]{background:var(--green);color:var(--paper)}
.reading-progress{position:fixed;top:0;left:0;width:100%;height:3px;background:var(--green);z-index:10;transform:scaleX(0);transform-origin:left}
.will-reveal{transition:translate .7s,opacity .7s}.will-reveal:not(.revealed){translate:0 28px;opacity:.45}
.blueprint{--paper:#142c25;--ink:#e1eadb;--muted:#b4c6b5;--line:#516a59;--green:#c0d3a8;--field:#0c211a;--panel:#203b30}
body,.project-art,.about,.page-tools{transition:background-color .35s,color .35s}.blueprint .result-image{mix-blend-mode:normal}.blueprint .tags>span,.blueprint .about-facts>div{border-color:var(--line)}.blueprint .about-facts dt{color:var(--muted)}.blueprint .flow-controls button{color:var(--ink)}.blueprint .flow-controls button:hover{background:var(--panel)}
.blueprint .about{background-image:linear-gradient(#516a5925 1px,transparent 1px),linear-gradient(90deg,#516a5925 1px,transparent 1px);background-size:32px 32px}
footer{padding-bottom:72px}.closing .text-link{color:#efeee7}
@media(max-width:760px){.wordmark-note #type-play{font-size:8px;margin-top:4px;max-width:66px}.project-tabs button{min-height:76px;padding:12px;gap:8px;flex-wrap:wrap;font-size:11px}.project-tabs button>.eyebrow{font-size:8px}.project-tabs button>span:last-child{display:none}.project-tabs button>span:nth-child(2){width:100%}.project-pagination>p{max-width:120px;font-size:8px}.project-pagination>div{gap:12px}.project-panel{min-height:0}.interest-panel{min-height:0}.interest-map{max-width:none}.orbit-art{max-width:360px;margin:auto}.page-tools:not([hidden]){right:12px;bottom:12px}.page-tools button,.page-tools summary{padding-inline:12px;font-size:10px}.interest-label{margin-top:12px}}
@media(max-width:450px){.wordmark-note{top:6%;max-width:44px}.wordmark-note #type-play{font-size:7px;line-height:1.4;min-width:44px}.project-tabs button{padding:10px}.page-tools:not([hidden]){bottom:max(12px,env(safe-area-inset-bottom))}.letter{transition-duration:.3s}}
@media(prefers-reduced-motion:reduce){.will-reveal:not(.revealed){translate:none;opacity:1}.letter,.orbit-art,body,.project-art,.about,.page-tools{transition:none!important}}
