:root{
  --bg:#03050a; --panel:rgba(10,14,25,.72); --line:rgba(129,159,206,.18); --text:#f4f7ff; --muted:#9aa8bd;
  --cyan:#58f4ff; --blue:#4c7dff; --violet:#9a68ff; --magenta:#e36cff; --radius:24px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;line-height:1.8;overflow-x:hidden}
a{color:inherit;text-decoration:none}.wrap{width:min(1180px,calc(100% - 48px));margin:auto}.noise:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:2;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E")}.bg{position:fixed;inset:0;z-index:-1;overflow:hidden;background:radial-gradient(circle at 80% 20%,rgba(85,110,255,.09),transparent 32%),radial-gradient(circle at 20% 75%,rgba(46,248,238,.07),transparent 30%),#03050a}.bg-grid{position:absolute;inset:-20%;opacity:.18;background:linear-gradient(rgba(88,244,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(88,244,255,.07) 1px,transparent 1px);background-size:56px 56px;transform:perspective(900px) rotateX(62deg) translateY(22%);transform-origin:50% 100%}.orb{position:absolute;border-radius:50%;filter:blur(65px);opacity:.16;mix-blend-mode:screen}.o1{width:420px;height:420px;right:4%;top:8%;background:#5e66ff}.o2{width:380px;height:380px;left:3%;bottom:8%;background:#26e7dd}.o3{width:250px;height:250px;left:43%;top:34%;background:#bb5cff;opacity:.1}
.nav{position:sticky;top:12px;z-index:20;padding-top:12px}.nav-inner{backdrop-filter:blur(18px);background:rgba(4,7,13,.68);border:1px solid var(--line);border-radius:999px;padding:10px 12px;display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);min-height:60px}.brand{font-weight:800;letter-spacing:-.03em;white-space:nowrap}.brand b{color:var(--cyan)}.navlinks{display:flex;gap:4px;flex-wrap:nowrap;justify-content:center;align-items:center;min-width:0;white-space:nowrap}.navlinks a{padding:7px 9px;border-radius:999px;color:#bec9db;font-size:13px;line-height:1;white-space:nowrap}.navlinks a:hover,.navlinks a.active{background:rgba(255,255,255,.06);color:white}.lang{border:1px solid var(--line);border-radius:999px;padding:6px 9px;font-size:12px}
.hero{min-height:860px;display:grid;grid-template-columns:1.1fr .9fr;gap:54px;align-items:center;padding:90px 0 70px;position:relative}.eyebrow{color:#8fa4c5;text-transform:uppercase;letter-spacing:.22em;font-size:11px}.hero h1{font-size:clamp(58px,9vw,122px);line-height:.9;letter-spacing:-.075em;margin:14px 0 28px;max-width:720px}.hero h1 em{font-style:normal;background:linear-gradient(110deg,#fff,var(--cyan) 38%,#a58cff 72%,#f0a6ff);-webkit-background-clip:text;background-clip:text;color:transparent}.hero .lead{font-size:clamp(19px,2.2vw,26px);line-height:1.75;color:#d8e2f1;max-width:690px}.actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;gap:9px;padding:12px 18px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.035);font-weight:700}.btn.primary{background:linear-gradient(135deg,rgba(88,244,255,.16),rgba(154,104,255,.18));border-color:rgba(88,244,255,.3)}
.portrait-stage{position:relative;min-height:580px;display:grid;place-items:center}.portrait-stage:before{content:"";position:absolute;width:450px;height:450px;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 18%,rgba(88,244,255,.95) 20%,transparent 27% 51%,rgba(155,104,255,.85) 53%,transparent 61%);filter:blur(.4px);opacity:.9;animation:spin 18s linear infinite}.portrait-stage:after{content:"";position:absolute;width:540px;height:540px;border-radius:50%;border:1px solid rgba(88,244,255,.2);box-shadow:0 0 90px rgba(88,244,255,.12),inset 0 0 90px rgba(154,104,255,.08);animation:float 7s ease-in-out infinite}.portrait{position:relative;width:min(420px,85%);z-index:3;border-radius:34px;display:block;object-fit:cover;box-shadow:0 30px 100px rgba(0,0,0,.55)}.halo{position:absolute;inset:8% 10%;z-index:1;border:1px solid rgba(88,244,255,.2);border-radius:32px;transform:rotate(8deg)}.scan{position:absolute;width:75%;height:1px;background:linear-gradient(90deg,transparent,var(--cyan),transparent);opacity:.55;animation:scan 4.8s ease-in-out infinite;z-index:4}
.section{padding:90px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:28px}.section-kicker{font-size:11px;letter-spacing:.2em;color:#7387a7}.section h2{font-size:clamp(42px,6vw,78px);line-height:1;margin:8px 0;letter-spacing:-.06em}.section-head p{max-width:520px;color:var(--muted)}.grid2{display:grid;grid-template-columns:1.15fr .85fr;gap:24px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);backdrop-filter:blur(18px);padding:30px;position:relative;overflow:hidden}.panel:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(88,244,255,.04),transparent 35%,rgba(154,104,255,.06));pointer-events:none}.manifesto{font-size:clamp(28px,4vw,48px);line-height:1.35;letter-spacing:-.035em}.muted{color:var(--muted)}.statement{font-size:20px;color:#d8e1ef}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric{padding:20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025)}.metric strong{display:block;font-size:34px;line-height:1;color:#fff}.metric span{font-size:12px;color:var(--muted)}
.work-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.project{min-height:470px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,rgba(14,19,31,.95),rgba(5,8,14,.96));position:relative;overflow:hidden;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate;transition:transform .5s cubic-bezier(.2,.7,.2,1),border-color .5s}.project:hover{transform:translateY(-8px) rotateX(2deg);border-color:rgba(88,244,255,.34)}.project .art{position:absolute;inset:0;z-index:-1}.project.dev .art{background:radial-gradient(circle at 72% 28%,rgba(88,244,255,.38),transparent 28%),linear-gradient(145deg,#08131b 0%,#050912 45%,#12091e 100%)}.project.sayad .art{background:radial-gradient(circle at 30% 25%,rgba(46,248,238,.24),transparent 30%),linear-gradient(155deg,#071419 0%,#091014 50%,#100816 100%)}.project:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 38%,rgba(0,0,0,.82));z-index:0}.project>*{position:relative;z-index:1}.tag{display:inline-flex;padding:6px 9px;border-radius:999px;border:1px solid var(--line);font-size:11px;color:#b6c6df;align-self:flex-start}.project h3{font-size:44px;line-height:1;margin:14px 0 10px;letter-spacing:-.05em}.project p{color:#b9c6d9;max-width:520px}.arrow{font-size:20px;margin-top:16px;color:var(--cyan)}
.philosophy{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px;align-items:stretch}.quote{font-size:clamp(34px,4.5vw,68px);line-height:1.18;letter-spacing:-.055em}.quote span{color:var(--cyan)}.chips{display:flex;gap:9px;flex-wrap:wrap}.chip{padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);color:#cbd6e5;font-size:13px}.timeline{display:grid;gap:12px}.time-item{display:grid;grid-template-columns:minmax(150px,180px) minmax(0,1fr);gap:28px;padding:24px 0;border-top:1px solid var(--line);align-items:start}.time-item h3{margin:0 0 8px;line-height:1.35}.time-item p{margin:0}.time-item .year{padding-top:3px}.interest-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.interest{min-height:160px;padding:20px;border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;justify-content:end;background:linear-gradient(150deg,rgba(255,255,255,.035),rgba(255,255,255,.01));transition:transform .4s}.interest:hover{transform:translateY(-6px)}.interest strong{font-size:17px}.interest small{color:var(--muted)}
.footer{padding:70px 0 30px;border-top:1px solid var(--line)}.footer-grid{display:flex;justify-content:space-between;gap:30px;align-items:end}.links{display:flex;gap:14px;flex-wrap:wrap;color:#bac5d8}.small{font-size:12px;color:#76869f}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}.reveal.visible{opacity:1;transform:none}
.cursor,.cursor-dot{position:fixed;pointer-events:none;z-index:100;left:0;top:0;will-change:transform}.cursor{width:30px;height:28px;border:1px solid rgba(88,244,255,.65);border-radius:50%;transition:width .18s,height .18s,border-color .18s;mix-blend-mode:screen}.cursor-dot{width:6px;height:5px;border-radius:50%;background:var(--cyan)}body.cursor-hover .cursor{width:44px;height:44px;border-color:rgba(154,104,255,.85)}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes float{50%{transform:scale(1.03) rotate(-3deg)}}@keyframes scan{0%,100%{transform:translateY(-170px);opacity:0}18%{opacity:.5}55%{opacity:.2}78%{opacity:.6}to{transform:translateY(170px);opacity:0}}
@media(max-width:900px){.hero,.grid2,.philosophy{grid-template-columns:1fr}.portrait-stage{min-height:520px}.interest-grid{grid-template-columns:repeat(2,1fr)}.nav-inner{border-radius:22px}.navlinks{display:none}.section{padding:65px 0}.work-grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr}.footer-grid{align-items:start;flex-direction:column}}@media(max-width:560px){.wrap{width:min(100% - 28px,1180px)}.hero{padding-top:50px}.portrait{width:min(360px,88%)}.portrait-stage:before{width:340px;height:340px}.portrait-stage:after{width:400px;height:400px}.time-item{grid-template-columns:1fr;gap:4px}.interest-grid{grid-template-columns:1fr}.section h2{font-size:46px}}

.timeline .time-item:first-child{border-top:0;padding-top:0}

.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:26px}
.contact-card{position:relative;display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid rgba(120,244,255,.13);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.012));color:#eef7ff;overflow:hidden;transition:transform .35s ease,border-color .35s ease,background .35s ease}
.contact-card:before{content:"";position:absolute;inset:auto 15% 0 auto;width:45%;height:1px;background:linear-gradient(90deg,transparent,#58f4ff,transparent);opacity:.35;transform:translateX(80px);transition:transform .45s ease}
.contact-card:hover{transform:translateY(-4px);border-color:rgba(88,244,255,.38);background:linear-gradient(135deg,rgba(88,244,255,.07),rgba(154,104,255,.045))}
.contact-card:hover:before{transform:translateX(0)}
.contact-card span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
.contact-card b{font-size:15px;letter-spacing:-.01em}
.contact-card small{font-size:12px;color:#8e9bb0;direction:ltr;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.contact-card i{margin-inline-start:auto;color:#58f4ff;font-style:normal;font-size:18px}
.contact-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;border:1px solid rgba(88,244,255,.2);background:rgba(88,244,255,.06);color:#8ef8ff;font:700 12px/1 Arial,sans-serif;flex:none}
@media(max-width:700px){.contact-grid{grid-template-columns:1fr}}

/* requested polish: first timeline item starts cleanly without a separator */
.timeline .time-item:first-child{border-top:0;padding-top:0}
.hero h1{max-width:100%;overflow:visible;word-break:normal;overflow-wrap:anywhere}
.project-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.project-action{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:12px;border:1px solid rgba(130,160,205,.18);background:rgba(255,255,255,.035);font-size:12px;font-weight:800;letter-spacing:.02em;transition:transform .3s ease,border-color .3s ease,background .3s ease}.project-action:hover{transform:translateY(-2px);border-color:rgba(88,244,255,.35);background:rgba(88,244,255,.06)}.project-action--disabled{color:#748197;cursor:default;border-style:dashed}.project-action--disabled:hover{transform:none}.project-action--demo{color:#82f7ff;border-color:rgba(88,244,255,.28);background:linear-gradient(135deg,rgba(88,244,255,.10),rgba(154,104,255,.08))}.project-state{position:absolute;top:24px;left:24px;z-index:3;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.14em;border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px)}.project-state--soon{color:#b5bfd0;background:rgba(10,14,24,.72)}.project-state--demo{color:#7defff;background:rgba(4,28,34,.72);border-color:rgba(88,244,255,.24)}
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:26px}
.contact-card{position:relative;display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid rgba(120,244,255,.13);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.012));color:#eef7ff;overflow:hidden;transition:transform .35s ease,border-color .35s ease,background .35s ease}
.contact-card:hover{transform:translateY(-4px);border-color:rgba(88,244,255,.38);background:linear-gradient(135deg,rgba(88,244,255,.07),rgba(154,104,255,.045))}
.contact-card span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
.contact-card b{font-size:15px}.contact-card small{font-size:12px;color:#8e9bb0;direction:ltr;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-card i{margin-inline-start:auto;color:#58f4ff;font-style:normal;font-size:18px}
.contact-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;border:1px solid rgba(88,244,255,.2);background:rgba(88,244,255,.06);color:#8ef8ff;font:700 12px/1 Arial,sans-serif;flex:none}
@media(max-width:700px){.contact-grid{grid-template-columns:1fr}}
@media(max-width:760px){.navlinks a{padding:6px 8px;font-size:12px}.nav-inner{gap:8px}}

html{scrollbar-width:none}html::-webkit-scrollbar{width:0;height:0}body{scrollbar-width:none}body::-webkit-scrollbar{width:0;height:0}
@media(max-width:1120px) and (min-width:901px){.nav-inner{gap:10px}.navlinks{gap:1px}.navlinks a{padding:7px 6px;font-size:12px}}

.timeline .time-item:first-child{border-top:0 !important;padding-top:0 !important}


/* --- Card interaction polish: deeper 3D, aligned content, no content changes --- */
.skills-page .skills-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch;perspective:1400px}
.skills-page .interest{
  min-height:230px;
  height:100%;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  align-content:stretch;
  justify-items:start;
  gap:18px;
  position:relative;
  transform-style:preserve-3d;
  will-change:transform;
  transition:transform .48s cubic-bezier(.2,.75,.2,1),border-color .35s ease,box-shadow .35s ease,background .35s ease;
  overflow:hidden;
}
.skills-page .interest:before{
  content:"";position:absolute;inset:-1px;pointer-events:none;opacity:0;
  background:radial-gradient(260px circle at var(--sx,50%) var(--sy,50%),rgba(88,244,255,.14),transparent 62%);
  transition:opacity .35s ease;
}
.skills-page .interest:after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.0;
  background:linear-gradient(125deg,transparent 25%,rgba(255,255,255,.08) 47%,transparent 63%);
  transform:translateX(-115%) skewX(-12deg);transition:opacity .25s ease,transform .8s cubic-bezier(.2,.7,.2,1);
}
.skills-page .interest strong,.skills-page .interest small{position:relative;z-index:1}
.skills-page .interest small{align-self:end;line-height:1.8;max-width:95%}
.skills-page .interest:hover{
  border-color:rgba(88,244,255,.38);
  box-shadow:0 24px 70px rgba(0,0,0,.32),0 0 34px rgba(88,244,255,.07);
}
.skills-page .interest:hover:before{opacity:1}
.skills-page .interest:hover:after{opacity:1;transform:translateX(115%) skewX(-12deg)}

[data-tilt]{--rx:0deg;--ry:0deg;--sx:50%;--sy:50%}
[data-tilt]{transform-style:preserve-3d}
.skills-page [data-tilt] strong,.skills-page [data-tilt] small{transform:translateZ(22px)}
.project[data-tilt]{transform:perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);transform-style:preserve-3d;will-change:transform;transition:transform .52s cubic-bezier(.2,.75,.2,1),border-color .45s ease;}
.project[data-tilt]:hover{transform:perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px);}
.project[data-tilt] .art{transform:translateZ(0);transition:transform .8s cubic-bezier(.2,.75,.2,1)}
.project[data-tilt]:hover .art{transform:translateZ(24px) scale(1.025)}
.interest-media[data-tilt]{transform:perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);transform-style:preserve-3d;will-change:transform;transition:transform .55s cubic-bezier(.2,.75,.2,1),border-color .45s ease;}
.interest-media[data-tilt]:hover{transform:perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);}
.interest-media[data-tilt] .interest-overlay{transform:translateZ(28px)}
.interest-media[data-tilt] .interest-image-wrap{transform:translateZ(0)}

@media(max-width:900px){
  .skills-page .skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .skills-page .skills-grid{grid-template-columns:1fr}
  .skills-page .interest{min-height:190px}
}


/* ---- v14 visual polish: content-preserving UI improvements ---- */
.nav-inner{min-height:62px;grid-template-columns:minmax(210px,max-content) 1fr max-content}
.navlinks a{min-height:30px;display:inline-flex;align-items:center;justify-content:center}
.navlinks a.active{color:#fff;background:rgba(255,255,255,.11);box-shadow:0 0 0 1px rgba(255,255,255,.06) inset,0 0 24px rgba(88,244,255,.05)}

/* Home story cards: pattern + restrained motion, while keeping existing copy intact. */
.hero + .section .panel{isolation:isolate}
.hero + .section .panel::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.65;background-image:radial-gradient(circle at 13% 18%,rgba(88,244,255,.16) 0 1px,transparent 1.8px),linear-gradient(120deg,transparent 0 42%,rgba(154,104,255,.06) 42.2%,transparent 42.6%);background-size:34px 34px,100% 100%;mask-image:linear-gradient(135deg,#000,transparent 72%);animation:storyDrift 14s ease-in-out infinite alternate}
.hero + .section .panel::before{background:linear-gradient(120deg,rgba(88,244,255,.07),transparent 42%,rgba(154,104,255,.08));}
.hero + .section .panel:first-child{box-shadow:0 28px 90px rgba(0,0,0,.28),inset 0 0 80px rgba(88,244,255,.025)}
.hero + .section .panel:nth-child(2){box-shadow:0 28px 90px rgba(0,0,0,.22),inset 0 0 90px rgba(154,104,255,.025)}

@keyframes storyDrift{from{transform:translate3d(-8px,-4px,0) scale(1)}to{transform:translate3d(10px,5px,0) scale(1.03)}}

/* Project cards: richer composition + soft pulse behind the artwork. */
.work-grid .project{box-shadow:0 28px 100px rgba(0,0,0,.26);transform-style:preserve-3d}
.work-grid .project .art::before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:12%;top:14%;border:1px solid rgba(88,244,255,.18);box-shadow:0 0 70px rgba(88,244,255,.08),inset 0 0 60px rgba(154,104,255,.05);animation:projectPulse 7s ease-in-out infinite}
.work-grid .project .art::after{content:"";position:absolute;inset:18px;border:1px dashed rgba(255,255,255,.08);border-radius:22px;transform:rotate(-3deg);animation:projectFrame 12s linear infinite}
.work-grid .project.sayad .art::before{right:auto;left:10%;top:18%;width:180px;height:180px;border-color:rgba(46,248,238,.18);box-shadow:0 0 70px rgba(46,248,238,.07)}
@keyframes projectPulse{0%,100%{transform:scale(.92);opacity:.38}50%{transform:scale(1.08);opacity:.7}}
@keyframes projectFrame{to{transform:rotate(357deg)}}

/* Truth card: editorial split, clear hierarchy, stronger framing. */
.philosophy .panel{box-shadow:0 30px 100px rgba(0,0,0,.25)}
.philosophy .panel:first-child{background:linear-gradient(150deg,rgba(11,18,31,.9),rgba(5,8,14,.76));}
.philosophy .panel:first-child::after{content:"TRUTH";position:absolute;left:-18px;bottom:-44px;font-size:clamp(110px,17vw,220px);font-weight:900;letter-spacing:-.08em;color:rgba(255,255,255,.018);pointer-events:none;line-height:1}
.philosophy .panel:nth-child(2){display:flex;flex-direction:column;justify-content:space-between;min-height:100%}
.philosophy .chips{margin-top:24px}

/* Home interests: the cards feel intentional even without changing their text. */
.interest-grid .interest{position:relative;overflow:hidden;min-height:175px}
.interest-grid .interest::before{content:"";position:absolute;inset:auto -16% -38% 18%;height:130px;background:radial-gradient(circle,rgba(88,244,255,.13),transparent 68%);filter:blur(10px);opacity:.55;transition:transform .55s ease,opacity .55s ease}
.interest-grid .interest::after{content:"";position:absolute;inset:11px;border:1px solid rgba(255,255,255,.035);border-radius:15px;opacity:.7;transform:scale(.98);transition:transform .5s ease,border-color .5s ease}
.interest-grid .interest:hover{transform:translateY(-10px)}
.interest-grid .interest:hover::before{transform:translate3d(-12px,-16px,0) scale(1.18);opacity:.95}
.interest-grid .interest:hover::after{transform:scale(1);border-color:rgba(88,244,255,.15)}
.interest-grid .interest strong,.interest-grid .interest small{position:relative;z-index:2}

/* Metrics: calm editorial cards; no rotating indicator. */
.metric{position:relative;overflow:hidden;transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;background-image:radial-gradient(circle at 88% 16%,rgba(88,244,255,.10) 0 1px,transparent 1.7px),linear-gradient(120deg,transparent 0 58%,rgba(154,104,255,.06) 58.3%,transparent 59%);background-size:18px 18px,100% 100%}
.metric::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;background:linear-gradient(135deg,transparent 0 46%,rgba(88,244,255,.05) 46.4%,transparent 47%),linear-gradient(315deg,transparent 0 66%,rgba(154,104,255,.05) 66.3%,transparent 67%);background-size:100% 100%,100% 100%}
.metric strong,.metric span{position:relative;z-index:1}
.metric:hover{transform:translateY(-6px);border-color:rgba(88,244,255,.2);box-shadow:0 18px 60px rgba(0,0,0,.24)}
.metric:nth-child(2){background-image:radial-gradient(circle at 14% 18%,rgba(154,104,255,.10) 0 1px,transparent 1.7px),repeating-linear-gradient(45deg,transparent 0 14px,rgba(154,104,255,.03) 14px 15px,transparent 15px 28px);background-size:18px 18px,100% 100%}
.metric:nth-child(3){background-image:radial-gradient(circle at 84% 80%,rgba(46,248,238,.10) 0 1px,transparent 1.7px),repeating-linear-gradient(-45deg,transparent 0 16px,rgba(46,248,238,.03) 16px 17px,transparent 17px 32px);background-size:18px 18px,100% 100%}

/* Contact page footer and global footer identity. */
.site-footer{margin-top:42px}
.footer-identity{display:flex;flex-direction:column;gap:6px}
.footer-tagline{font-size:13px;color:#9eacc1;letter-spacing:.02em}
.footer-contacts{display:flex;gap:12px;flex-wrap:wrap;margin-top:4px}
.footer-contacts a{font-size:11px;color:#6f8099;direction:ltr}
.footer-contacts a:hover{color:#8ef8ff}

/* Keep photo itself clean: only its stage receives atmospheric effects. */
.portrait{filter:none!important;mix-blend-mode:normal!important}

@media(max-width:900px){
  .nav-inner{grid-template-columns:1fr max-content;}
  .brand{font-size:14px}
}
@media(max-width:700px){
  .footer-contacts{flex-direction:column;gap:2px}
  .philosophy .panel:first-child::after{font-size:96px}
}

/* v15 — visual card polish, content-preserving */
.story-card{min-height:310px;display:flex;align-items:flex-end;box-shadow:0 30px 100px rgba(0,0,0,.24);transform-style:preserve-3d}
.story-card .manifesto,.story-card .statement{position:relative;z-index:2}
.story-card--cyan{background:linear-gradient(135deg,rgba(7,20,29,.9),rgba(5,8,14,.78))}
.story-card--violet{background:linear-gradient(135deg,rgba(16,9,29,.9),rgba(5,8,14,.78))}
.story-card--cyan:after,.story-card--violet:after{content:"";position:absolute;inset:20px;border:1px solid rgba(255,255,255,.05);border-radius:18px;pointer-events:none;transition:transform .6s ease,border-color .6s ease}
.story-card--cyan:after{background-image:linear-gradient(135deg,transparent 0 49%,rgba(88,244,255,.08) 49.5%,transparent 50%),linear-gradient(45deg,transparent 0 49%,rgba(88,244,255,.05) 49.5%,transparent 50%);background-size:38px 38px;opacity:.85}
.story-card--violet:after{background-image:radial-gradient(circle,rgba(154,104,255,.12) 0 1px,transparent 1.6px);background-size:26px 26px;opacity:.65}
.story-card:hover:after{transform:scale(.985) rotate(-.4deg);border-color:rgba(88,244,255,.13)}

.home .work-grid .project{min-height:500px}
.work-grid .project .art{overflow:hidden}
.work-grid .project .art:before{pointer-events:none}
.work-grid .project .tag,.work-grid .project .project-state{backdrop-filter:blur(10px)}

/* More intentional interest cards on the home page. */
.interest-grid .interest{min-height:184px;background:linear-gradient(145deg,rgba(11,17,29,.88),rgba(6,9,16,.85));box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 18px 55px rgba(0,0,0,.18)}
.interest-grid .interest:nth-child(1){background:linear-gradient(145deg,rgba(8,20,27,.9),rgba(6,9,16,.86))}
.interest-grid .interest:nth-child(2){background:linear-gradient(145deg,rgba(14,12,27,.9),rgba(6,9,16,.86))}
.interest-grid .interest:nth-child(3){background:linear-gradient(145deg,rgba(13,9,22,.9),rgba(6,9,16,.86))}
.interest-grid .interest:nth-child(4){background:linear-gradient(145deg,rgba(9,17,25,.9),rgba(6,9,16,.86))}
.interest-grid .interest:nth-child(5){background:linear-gradient(145deg,rgba(8,22,21,.9),rgba(6,9,16,.86))}
.interest-grid .interest:hover{box-shadow:0 28px 80px rgba(0,0,0,.28),0 0 35px rgba(88,244,255,.05);}
.interest-grid .interest:after{z-index:1}

/* About cards: editorial index marks and layered border detail. */
.about-page .grid2 .panel{min-height:350px;box-shadow:0 24px 90px rgba(0,0,0,.2)}
.about-page .grid2 .panel:after{content:"";position:absolute;left:22px;top:20px;width:54px;height:54px;border:1px solid rgba(88,244,255,.16);border-radius:16px;transform:rotate(45deg);pointer-events:none}
.about-page .grid2 .panel:nth-child(2):after{border-color:rgba(154,104,255,.16);transform:rotate(12deg)}
.about-page .grid2 .panel p{position:relative;z-index:2}

/* Ideas cards: richer composition, no copy changes. */
.ideas-page .grid2 .panel{min-height:330px;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 28px 90px rgba(0,0,0,.22);transition:transform .45s cubic-bezier(.2,.7,.2,1),border-color .45s ease,box-shadow .45s ease}
.ideas-page .grid2 .panel:hover{transform:translateY(-8px);border-color:rgba(88,244,255,.24);box-shadow:0 36px 110px rgba(0,0,0,.28),0 0 30px rgba(88,244,255,.05)}
.ideas-page .grid2 .panel:after{content:"01";position:absolute;left:24px;top:16px;font-size:72px;font-weight:900;letter-spacing:-.08em;color:rgba(88,244,255,.055);line-height:1}
.ideas-page .grid2 .panel:nth-child(2):after{content:"02";color:rgba(154,104,255,.055)}
.ideas-page .grid2 .panel h3,.ideas-page .grid2 .panel p{position:relative;z-index:2}

/* Footer is intentionally identical across pages. */
.site-footer .footer-grid{min-height:110px}
.site-footer .small{direction:ltr}

@media(max-width:900px){
  .story-card{min-height:260px}
  .about-page .grid2 .panel{min-height:290px}
}


/* ===== v15.1 targeted repair pass ===== */

/* 1) Header: all pages keep the full navigation accessible at every width. */
.nav-inner{min-width:0}
.navlinks{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;padding-inline:2px}
.navlinks::-webkit-scrollbar{display:none;width:0;height:0}
@media (max-width:1120px) and (min-width:901px){
  .nav-inner{grid-template-columns:minmax(195px,max-content) minmax(0,1fr) max-content;gap:8px}
  .navlinks{justify-content:flex-start}
  .navlinks a{padding-inline:7px;font-size:11.5px}
}
@media (max-width:900px){
  .nav-inner{grid-template-columns:1fr max-content;grid-template-rows:auto auto;gap:8px 10px;padding:10px 11px;border-radius:22px}
  .navlinks{display:flex;grid-column:1 / -1;grid-row:2;justify-content:flex-start;width:100%;padding-bottom:2px}
  .navlinks a{flex:0 0 auto}
}
@media (max-width:560px){
  .nav{top:8px;padding-top:8px}
  .nav-inner{padding:9px}
  .navlinks a{font-size:11px;padding:7px 8px}
}

/* 2) Footer: contained, aligned with the page grid, no oversized rule or edge-hugging text. */
.site-footer{
  width:min(1180px,calc(100% - 48px));
  margin:34px auto 0;
  padding:0 0 28px;
  border-top:1px solid rgba(129,159,206,.10);
}
.site-footer .footer-grid{
  width:100%;
  min-height:0;
  padding-top:26px;
  display:flex;
  justify-content:space-between;
  gap:26px;
  align-items:flex-end;
}
.site-footer .footer-identity{gap:4px}
.site-footer .footer-tagline{font-size:12px;color:#8291a9}
.site-footer .footer-contacts{gap:12px;margin-top:3px}
.site-footer .small{font-size:11px;color:#687892;white-space:nowrap}
@media(max-width:700px){
  .site-footer{width:min(100% - 28px,1180px);margin-top:24px;padding-bottom:22px}
  .site-footer .footer-grid{padding-top:22px;align-items:flex-start}
  .site-footer .small{white-space:normal}
}

/* 3) Story cards: text remains comfortably inside the card at all viewports. */
.story-card{align-items:center!important;justify-content:center}
.story-card .manifesto,.story-card .statement{margin:0;max-width:100%}
@media(max-width:900px){.story-card{min-height:280px;padding:28px!important}}

/* 4) Project cards: replace the heavy rotating decoration with a restrained dot pattern + slow pulse. */
.work-grid .project .art::before{
  width:260px;height:260px;right:8%;top:12%;
  background:radial-gradient(circle,rgba(88,244,255,.11) 0 2px,transparent 2.6px);
  background-size:18px 18px;
  border:0;box-shadow:none;
  animation:projectDotPulse 8s ease-in-out infinite;
  opacity:.48;
}
.work-grid .project .art::after{
  inset:16px;
  border:0;
  border-radius:0;
  background-image:radial-gradient(circle,rgba(255,255,255,.10) 0 1px,transparent 1.6px);
  background-size:24px 24px;
  opacity:.22;
  transform:none;
  animation:none;
}
.work-grid .project.sayad .art::before{left:8%;right:auto;top:16%;width:220px;height:220px;background-image:radial-gradient(circle,rgba(46,248,238,.12) 0 2px,transparent 2.6px);background-size:17px 17px}
@keyframes projectDotPulse{0%,100%{transform:scale(.96);opacity:.28}50%{transform:scale(1.05);opacity:.52}}

/* 5) General point patterns for cards that benefit from a visual surface. */
.story-card--cyan,.story-card--violet,
.philosophy .panel,
.ideas-page .grid2 .panel,
.about-page .grid2 .panel,
.metric,
.skills-page .interest{
  background-image:radial-gradient(circle at 92% 14%,rgba(88,244,255,.085) 0 1px,transparent 1.7px);
  background-size:22px 22px;
}
.story-card--violet{background-image:radial-gradient(circle at 12% 16%,rgba(154,104,255,.105) 0 1px,transparent 1.7px)}

/* 6) Skills: fixed card proportions, aligned typography, clean lift on hover (no tilt). */
.skills-page .skills-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(210px,1fr);align-items:stretch;gap:16px;perspective:none}
.skills-page .interest{
  min-height:0;height:100%;
  padding:28px!important;
  display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;
  gap:18px;
  transform:none!important;
  will-change:transform;
  transition:transform .38s cubic-bezier(.2,.72,.2,1),border-color .32s ease,box-shadow .38s ease,background .38s ease;
}
.skills-page .interest::before{
  content:"";position:absolute;inset:0;opacity:.42;pointer-events:none;
  background:radial-gradient(circle at 84% 18%,rgba(88,244,255,.12) 0 1px,transparent 1.8px);
  background-size:18px 18px;
}
.skills-page .interest strong,.skills-page .interest small{position:relative;z-index:2;transform:none!important}
.skills-page .interest strong{line-height:1.2;margin:0}
.skills-page .interest small{margin:0;line-height:1.95;max-width:100%;align-self:flex-start}
.skills-page .interest:hover{transform:translateY(-9px)!important;border-color:rgba(88,244,255,.34);box-shadow:0 24px 70px rgba(0,0,0,.32),0 0 28px rgba(88,244,255,.05)}
@media(max-width:900px){.skills-page .skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.skills-page .skills-grid{grid-template-columns:1fr;grid-auto-rows:auto}.skills-page .interest{min-height:185px}}

/* 7) Achievement timeline: guarantee no stray first separator. */
.achievements-page .timeline .time-item:first-child{border-top:0!important;padding-top:0!important}

/* 8) Interests mosaic: sports stays immediately left of learning on desktop, with equal card heights. */
@media(min-width:901px){
  .interest-mosaic{grid-template-rows:500px 290px 290px!important}
  .interest-mosaic .interest-media--sport,.interest-mosaic .interest-media--learning{min-height:0!important;height:290px}
}

/* 9) Avoid text collisions on every content block when Persian wraps. */
.panel,.project,.interest-media,.interest,.metric{min-width:0}
.panel p,.project p,.interest small,.interest-overlay p{overflow-wrap:anywhere}

/* v16 — project card pattern system: no rotating frame; static/slow ambient pattern only. */
.work-grid .project{position:relative}
.work-grid .project .art::before{
  width:300px;height:220px;right:7%;top:8%;border-radius:0;box-shadow:none;border:0;
  background-image:radial-gradient(circle,rgba(88,244,255,.14) 0 1.4px,transparent 1.9px);
  background-size:16px 16px;opacity:.30;transform:none;animation:none;
}
.work-grid .project .art::after{
  inset:auto 22px 22px auto;width:180px;height:130px;border:0;border-radius:22px;
  background:linear-gradient(135deg,transparent 47%,rgba(255,255,255,.05) 47.5%,transparent 48%),
             linear-gradient(315deg,transparent 47%,rgba(88,244,255,.045) 47.5%,transparent 48%);
  background-size:28px 28px;opacity:.55;transform:none;animation:none;
}
.work-grid .project.dev .art::before{
  background-image:radial-gradient(circle,rgba(88,244,255,.16) 0 1.5px,transparent 2px),
                   linear-gradient(135deg,transparent 44%,rgba(154,104,255,.055) 44.5%,transparent 45%);
  background-size:16px 16px,100% 100%;
}
.work-grid .project.sayad .art::before{
  left:7%;right:auto;top:11%;width:250px;height:190px;
  background-image:radial-gradient(circle,rgba(46,248,238,.16) 0 1.5px,transparent 2px),
                   repeating-linear-gradient(0deg,transparent 0 13px,rgba(46,248,238,.025) 13px 14px);
  background-size:15px 15px,100% 100%;
}
.work-grid .project .art{background-size:auto}
.work-grid .project:hover .art::before{opacity:.48;transform:translate3d(6px,-4px,0);transition:opacity .45s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.work-grid .project:hover .art::after{transform:translate3d(-4px,-4px,0);transition:transform .7s cubic-bezier(.2,.7,.2,1),opacity .45s ease}

/* Work cards must not disappear while their reveal transition is running. */
.work-page .work-grid .project.reveal{opacity:1!important;transform:translateY(0)!important}
.work-page .work-grid .project[data-tilt]{transition:transform .45s cubic-bezier(.2,.72,.2,1),border-color .35s ease,box-shadow .45s ease}

/* About / VALUES gets a distinct geometric pattern instead of reusing the home pattern. */
.about-page .grid2 .panel:nth-child(1)::after{
  content:"";position:absolute;right:22px;top:22px;width:120px;height:120px;border:0;border-radius:24px;
  background-image:linear-gradient(30deg,transparent 46%,rgba(88,244,255,.08) 46.5%,transparent 47.5%),
                    linear-gradient(150deg,transparent 46%,rgba(154,104,255,.07) 46.5%,transparent 47.5%);
  background-size:26px 26px;opacity:.7;transform:rotate(8deg);pointer-events:none;
}
.about-page .grid2 .panel:nth-child(2)::after{
  content:"";position:absolute;left:22px;top:22px;width:120px;height:120px;border:1px solid rgba(154,104,255,.12);
  border-radius:50%;background:repeating-radial-gradient(circle at center,transparent 0 12px,rgba(154,104,255,.055) 12px 13px);
  opacity:.65;pointer-events:none;
}

/* Skills: every card gets its own restrained visual language. */
.skills-page .skills-grid .interest{
  position:relative;overflow:hidden;isolation:isolate;
  background-image:radial-gradient(circle at 85% 16%,rgba(88,244,255,.10) 0 1px,transparent 1.8px);
  background-size:18px 18px;
}
.skills-page .skills-grid .interest::after{
  content:"";position:absolute;right:18px;bottom:18px;width:92px;height:92px;border-radius:50%;
  border:1px solid rgba(255,255,255,.06);
  background:radial-gradient(circle,transparent 0 28%,rgba(88,244,255,.04) 28.5% 29.5%,transparent 30%),
             conic-gradient(from 20deg,transparent 0 34%,rgba(88,244,255,.06) 34.4% 35%,transparent 35.5% 65%,rgba(154,104,255,.05) 65.4% 66%,transparent 66.5%);
  opacity:.75;transition:transform .5s ease,opacity .35s ease;pointer-events:none;z-index:0;
}
.skills-page .skills-grid .interest:nth-child(2n)::after{
  border-radius:20px;transform:rotate(45deg);
  background-image:linear-gradient(45deg,transparent 0 47%,rgba(154,104,255,.06) 47.5%,transparent 48%),
                    linear-gradient(-45deg,transparent 0 47%,rgba(88,244,255,.05) 47.5%,transparent 48%);
  background-size:24px 24px;
}
.skills-page .skills-grid .interest:nth-child(3n)::after{
  border-radius:0;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
  background:radial-gradient(circle,rgba(46,248,238,.06) 0 1px,transparent 1.8px);
  background-size:12px 12px;
  border:1px solid rgba(46,248,238,.08);
}
.skills-page .skills-grid .interest:hover::after{transform:translateY(-5px) scale(1.04);opacity:.95}
.skills-page .skills-grid .interest:nth-child(2n):hover::after{transform:rotate(45deg) translateY(-5px) scale(1.04)}


/* v16.1 — project identity marks: visual symbols instead of decorative motion. */
.work-page .work-grid .project::before{
  content:"";
  position:absolute;
  top:24px;
  right:24px;
  width:74px;
  height:74px;
  border-radius:20px;
  z-index:2;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.08em;
  color:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 30% 30%,rgba(88,244,255,.18),transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 16px 44px rgba(0,0,0,.24);
  transform:rotate(-5deg);
  transition:transform .45s cubic-bezier(.2,.72,.2,1),border-color .35s ease,box-shadow .45s ease;
  backdrop-filter:blur(12px);
}
.work-page .work-grid .project.dev::before{content:"DH";font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#92f8ff;}
.work-page .work-grid .project.sayad::before{content:"SJ";color:#9bf9ee;transform:rotate(5deg);}
.work-page .work-grid .project:hover::before{transform:translateY(-5px) rotate(0deg) scale(1.04);border-color:rgba(88,244,255,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 52px rgba(0,0,0,.30),0 0 34px rgba(88,244,255,.06)}

/* Keep project metadata readable beneath the identity mark. */
.work-page .work-grid .project .tag{padding-inline-end:94px;max-width:calc(100% - 80px)}
@media(max-width:560px){
  .work-page .work-grid .project::before{top:18px;right:18px;width:62px;height:62px;border-radius:17px}
  .work-page .work-grid .project .tag{padding-inline-end:78px;max-width:calc(100% - 60px)}
}

/* Pattern-only finish for the first home metrics: slow drift, never a rotating symbol. */
.metrics .metric::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;background:radial-gradient(circle at 78% 72%,rgba(255,255,255,.11) 0 1px,transparent 1.6px);background-size:20px 20px;transform:translate3d(0,0,0);transition:transform .8s ease,opacity .4s ease}
.metrics .metric:hover::after{transform:translate3d(-8px,-6px,0);opacity:.38}

/* ===== v17 — project visual system + responsive hardening ===== */

/* Project cards: visual-only artwork, no text marks, no rotation loops. */
.work-grid .project::before{content:none!important;display:none!important}
.work-grid .project{min-width:0;min-height:520px;overflow:hidden;isolation:isolate;perspective:1200px}
.work-grid .project .art{position:absolute;inset:0;overflow:hidden;z-index:-1;background-repeat:no-repeat!important;background-position:center!important;background-size:cover!important;transition:transform .75s cubic-bezier(.2,.72,.2,1),filter .75s ease}
.work-grid .project.dev .art{background-image:url("assets/project-art/devhub.svg"),radial-gradient(circle at 80% 24%,rgba(88,244,255,.16),transparent 28%),radial-gradient(circle at 26% 76%,rgba(154,104,255,.12),transparent 32%),linear-gradient(145deg,#06101A,#060911 52%,#100A19)!important}
.work-grid .project.sayad .art{background-image:url("assets/project-art/sayad.svg"),radial-gradient(circle at 24% 24%,rgba(46,248,238,.12),transparent 28%),radial-gradient(circle at 78% 38%,rgba(154,104,255,.10),transparent 30%),linear-gradient(155deg,#061319,#070C11 54%,#110817)!important}
.work-grid .project .art::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(255,255,255,.16) 0 1px,transparent 1.45px);background-size:20px 20px;opacity:.11;mix-blend-mode:screen;transform:translate3d(0,0,0);transition:transform .9s ease,opacity .6s ease}
.work-grid .project .art::after{content:"";position:absolute;width:58%;height:58%;right:-14%;top:-16%;border:1px solid rgba(88,244,255,.16);border-radius:46%;transform:rotate(18deg);box-shadow:0 0 120px rgba(88,244,255,.07),inset 0 0 70px rgba(154,104,255,.04);opacity:.75;transition:transform .9s cubic-bezier(.2,.72,.2,1),opacity .6s ease}
.work-grid .project.sayad .art::before{background-image:radial-gradient(circle,rgba(46,248,238,.15) 0 1px,transparent 1.5px);background-size:18px 18px;opacity:.10}
.work-grid .project.sayad .art::before,.work-grid .project.sayad .art::after{content:none!important;display:none!important}
.work-grid .project.sayad .art::after{right:auto;left:-18%;top:6%;width:62%;height:42%;border-color:rgba(46,248,238,.14);transform:rotate(-12deg);border-radius:55% 45% 58% 42%}
.work-grid .project:hover .art{transform:scale(1.035);filter:saturate(1.08) contrast(1.03)}
.work-grid .project:hover .art::before{transform:translate3d(-10px,-7px,0);opacity:.18}
.work-grid .project:hover .art::after{transform:rotate(13deg) translate3d(-5px,5px,0) scale(1.03);opacity:.95}
.work-grid .project.sayad:hover .art::after{transform:rotate(-8deg) translate3d(6px,-4px,0) scale(1.03)}
.work-page .work-grid .project.reveal{opacity:1!important;visibility:visible!important}
.work-grid .project > .tag,.work-grid .project > h3,.work-grid .project > p,.work-grid .project > .arrow,.work-grid .project > .project-state,.work-grid .project > .project-actions{min-width:0}
.work-grid .project > p{overflow-wrap:anywhere}

/* Keep project typography above the artwork without changing copy. */
.work-grid .project h3{max-width:100%;text-wrap:balance}
.work-grid .project .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.work-page .work-grid .project .tag{padding-inline-end:0;max-width:100%}

/* Global responsive hardening: the same layout must survive narrow phones through very wide screens. */
html,body{max-width:100%;overflow-x:clip}
img,svg,video,canvas{max-width:100%;height:auto}
button,input,textarea,select{max-width:100%;font:inherit}
.wrap{min-width:0}
section,.section,main,footer,header,.panel,.project,.interest,.metric,.contact-card,.time-item{min-width:0}
.section-head>div,.section-head>p,.grid2>*,.philosophy>*,.work-grid>*,.interest-grid>*,.skills-grid>*,.footer-grid>*{min-width:0}
.section-head p,.statement,.quote,.manifesto,.project p,.interest small,.footer-tagline{overflow-wrap:anywhere}

@media (min-width:1400px){
  .wrap{width:min(1280px,calc(100% - 80px))}
  .site-footer{width:min(1280px,calc(100% - 80px))}
  .work-grid{gap:22px}
}

@media (max-width:1200px){
  .wrap{width:min(1180px,calc(100% - 40px))}
  .nav-inner{grid-template-columns:max-content minmax(0,1fr) max-content;gap:10px}
  .navlinks{gap:1px}
  .navlinks a{padding-inline:7px}
  .hero{gap:36px}
}

@media (max-width:980px){
  .hero{grid-template-columns:1fr;min-height:auto;padding:74px 0 42px}
  .portrait-stage{min-height:500px;order:-1}
  .hero h1{max-width:100%;font-size:clamp(54px,11vw,92px)}
  .grid2,.philosophy,.work-grid{grid-template-columns:1fr}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head p{max-width:100%}
  .work-grid .project{min-height:500px}
}

@media (max-width:760px){
  .wrap{width:min(100% - 28px,1180px)}
  .nav{padding-top:8px}
  .nav-inner{grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:auto auto;gap:8px;border-radius:22px;padding:9px}
  .brand{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .navlinks{grid-column:1/-1;grid-row:2;max-width:100%;justify-content:flex-start}
  .navlinks a{flex:0 0 auto}
  .lang{justify-self:end}
  .portrait-stage{min-height:430px}
  .portrait{width:min(380px,82vw)}
  .portrait-stage:before{width:min(410px,90vw);height:min(410px,90vw)}
  .portrait-stage:after{width:min(480px,102vw);height:min(480px,102vw)}
  .section{padding:54px 0}
  .section h2{font-size:clamp(38px,9vw,58px)}
  .panel{padding:24px}
  .work-grid .project{min-height:460px;padding:24px}
  .project h3{font-size:clamp(34px,10vw,50px)}
  .site-footer{width:min(100% - 28px,1180px)}
}

@media (max-width:480px){
  .hero{padding-top:52px}
  .eyebrow{font-size:9px;letter-spacing:.16em}
  .hero h1{font-size:clamp(46px,14vw,70px);line-height:.94;letter-spacing:-.065em}
  .hero .lead{font-size:18px;line-height:1.72}
  .portrait-stage{min-height:360px}
  .portrait{width:min(320px,86vw);border-radius:26px}
  .portrait-stage:before{width:min(330px,88vw);height:min(330px,88vw)}
  .portrait-stage:after{width:min(385px,102vw);height:min(385px,102vw)}
  .section{padding:44px 0}
  .panel{padding:20px;border-radius:20px}
  .story-card{min-height:260px}
  .work-grid .project{min-height:430px;padding:20px;border-radius:22px}
  .work-grid .project .art::before{background-size:16px 16px}
  .work-grid .project .art::after{opacity:.58}
  .project-state{top:18px;left:18px}
  .project-actions{gap:7px}
  .project-action{padding:9px 10px}
  .site-footer .footer-grid{gap:18px}
  .footer-contacts{max-width:100%}
}

@media (max-width:360px){
  .wrap{width:calc(100% - 20px)}
  .nav-inner{padding:8px}
  .brand{font-size:12px}
  .lang{font-size:11px;padding:6px 8px}
  .navlinks a{font-size:10px;padding:7px 7px}
  .work-grid .project{min-height:410px;padding:18px}
  .work-grid .project p{font-size:14px;line-height:1.7}
}

@media (hover:none), (pointer:coarse){
  .cursor,.cursor-dot{display:none!important}
  .work-grid .project:hover .art{transform:none;filter:none}
  .work-grid .project:hover .art::before{transform:none}
  .work-grid .project:hover .art::after{transform:rotate(18deg)}
  .work-grid .project.sayad:hover .art::after{transform:rotate(-12deg)}
}
