Wire forms to the Meshkee contact API, tighten page-title spacing, and polish outline button hover so it fades cleanly. Co-authored-by: Cursor <cursoragent@cursor.com>
643 lines
12 KiB
CSS
643 lines
12 KiB
CSS
@import "tailwindcss";
|
|
|
|
:root {
|
|
--ink: #0e1116;
|
|
--ink-soft: #2a313c;
|
|
--muted: #5c6672;
|
|
--line: #d5dbe3;
|
|
--paper: #eef1f4;
|
|
--paper-deep: #e2e7ee;
|
|
--surface: #fafafa;
|
|
--accent-from: #ff5a7a;
|
|
--accent-to: #9c4dff;
|
|
--accent: #c44db8;
|
|
--accent-deep: #8b3adb;
|
|
--glow: rgba(196, 77, 184, 0.16);
|
|
--brand-gradient: linear-gradient(135deg, var(--accent-from), var(--accent-to));
|
|
--background: var(--paper);
|
|
--foreground: var(--ink);
|
|
--header-height: 9rem;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
:root {
|
|
--header-height: 11rem;
|
|
}
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-ink: var(--ink);
|
|
--color-ink-soft: var(--ink-soft);
|
|
--color-muted: var(--muted);
|
|
--color-line: var(--line);
|
|
--color-paper: var(--paper);
|
|
--color-paper-deep: var(--paper-deep);
|
|
--color-surface: var(--surface);
|
|
--color-accent: var(--accent);
|
|
--color-accent-deep: var(--accent-deep);
|
|
--color-accent-from: var(--accent-from);
|
|
--color-accent-to: var(--accent-to);
|
|
--font-sans: var(--font-vazirmatn);
|
|
--font-display: var(--font-montserrat);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
overflow-x: clip;
|
|
}
|
|
|
|
body {
|
|
overflow-x: clip;
|
|
}
|
|
|
|
/* Rule: all interactive elements animate smoothly on hover */
|
|
button,
|
|
a {
|
|
transition:
|
|
background 0.25s ease,
|
|
background-color 0.25s ease,
|
|
color 0.25s ease,
|
|
border-color 0.25s ease,
|
|
box-shadow 0.25s ease,
|
|
transform 0.2s ease,
|
|
opacity 0.2s ease;
|
|
}
|
|
|
|
/* Headings: consistent weight matching hero h1 */
|
|
h1,
|
|
h2 {
|
|
font-weight: 400;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
}
|
|
|
|
h3,
|
|
h4 {
|
|
font-weight: 400;
|
|
}
|
|
|
|
::selection {
|
|
background: color-mix(in srgb, var(--accent) 28%, white);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.latin {
|
|
font-family: var(--font-montserrat), var(--font-vazirmatn), sans-serif;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
/* English subtitle under FA titles */
|
|
:is(h1, h2):has(+ .title-en) {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.title-en {
|
|
margin-top: 0.25rem;
|
|
font-size: 0.8125rem;
|
|
letter-spacing: 0.28em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.title-en-sm {
|
|
margin-top: 0.15rem;
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.22em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.text-body {
|
|
text-align: justify;
|
|
text-justify: inter-word;
|
|
}
|
|
|
|
/* Gradient hover utilities */
|
|
/* Simple fade for primary CTAs */
|
|
.btn-primary {
|
|
position: relative;
|
|
isolation: isolate;
|
|
background: var(--ink);
|
|
color: var(--surface);
|
|
cursor: pointer;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.btn-primary::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
border-radius: inherit;
|
|
background: var(--brand-gradient);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled)::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Outline CTA: opacity-only fades (no blink on mouse-out) */
|
|
.btn-outline {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
isolation: isolate;
|
|
border: 1px solid transparent;
|
|
background-color: #fff;
|
|
color: var(--ink-soft);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-outline::before,
|
|
.btn-outline::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
border-radius: inherit;
|
|
padding: 1px;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
-webkit-mask:
|
|
linear-gradient(#fff 0 0) content-box,
|
|
linear-gradient(#fff 0 0);
|
|
mask:
|
|
linear-gradient(#fff 0 0) content-box,
|
|
linear-gradient(#fff 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask-composite: exclude;
|
|
}
|
|
|
|
.btn-outline::after {
|
|
background: var(--line);
|
|
opacity: 1;
|
|
}
|
|
|
|
.btn-outline::before {
|
|
background: var(--brand-gradient);
|
|
opacity: 0;
|
|
}
|
|
|
|
.btn-outline:hover::after {
|
|
opacity: 0;
|
|
}
|
|
|
|
.btn-outline:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.btn-outline-label {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.btn-outline-label-base {
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.btn-outline-label-grad {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: inherit;
|
|
gap: 0.375rem;
|
|
background-image: var(--brand-gradient);
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
color: transparent;
|
|
-webkit-text-fill-color: transparent;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.btn-outline:hover .btn-outline-label-base {
|
|
opacity: 0;
|
|
}
|
|
|
|
.btn-outline:hover .btn-outline-label-grad {
|
|
opacity: 1;
|
|
}
|
|
|
|
.link-hover {
|
|
display: inline-block;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
background-image: var(--brand-gradient);
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: currentColor;
|
|
color: inherit;
|
|
transition:
|
|
color 0.35s ease,
|
|
-webkit-text-fill-color 0.35s ease;
|
|
}
|
|
|
|
.link-hover:hover {
|
|
-webkit-text-fill-color: transparent;
|
|
color: transparent;
|
|
}
|
|
|
|
/* Keep flex layout when the link is already a flex row (nav + icon) */
|
|
a.link-hover.inline-flex,
|
|
.link-hover.inline-flex {
|
|
display: inline-flex;
|
|
}
|
|
|
|
/* Pill / button-style links: solid accent, no gradient fill */
|
|
a.link-hover.rounded-full,
|
|
.link-hover.rounded-full,
|
|
.link-hover.btn-primary {
|
|
background-image: none;
|
|
background-clip: unset;
|
|
-webkit-background-clip: unset;
|
|
-webkit-text-fill-color: unset;
|
|
}
|
|
|
|
a.link-hover.rounded-full:hover,
|
|
.link-hover.rounded-full:hover,
|
|
.link-hover.btn-primary:hover {
|
|
color: var(--accent);
|
|
-webkit-text-fill-color: var(--accent);
|
|
}
|
|
|
|
.border-hover {
|
|
transition:
|
|
border-color 0.25s ease,
|
|
box-shadow 0.25s ease;
|
|
}
|
|
|
|
.border-hover:hover,
|
|
.group:hover .border-hover {
|
|
border-color: transparent;
|
|
background:
|
|
linear-gradient(#fff, #fff) padding-box,
|
|
var(--brand-gradient) border-box;
|
|
box-shadow: 0 0 0 1px transparent;
|
|
}
|
|
|
|
.group-border-hover {
|
|
transition:
|
|
border-color 0.25s ease,
|
|
box-shadow 0.25s ease;
|
|
}
|
|
|
|
.group-border-hover:hover,
|
|
.group:hover.group-border-hover,
|
|
.group:hover .group-border-hover,
|
|
a.group-border-hover:hover {
|
|
border-color: color-mix(in srgb, var(--accent) 55%, white);
|
|
}
|
|
|
|
.group-text-hover {
|
|
display: inline;
|
|
background-image: var(--brand-gradient);
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: currentColor;
|
|
color: inherit;
|
|
transition:
|
|
color 0.35s ease,
|
|
-webkit-text-fill-color 0.35s ease;
|
|
}
|
|
|
|
.group:hover .group-text-hover {
|
|
-webkit-text-fill-color: transparent;
|
|
color: transparent;
|
|
}
|
|
|
|
.carousel-mask {
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.carousel-mask::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.carousel-track {
|
|
animation: carousel-scroll 48s linear infinite;
|
|
will-change: transform;
|
|
}
|
|
|
|
.carousel-track:hover {
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
@keyframes carousel-scroll {
|
|
0% {
|
|
transform: translateX(0);
|
|
}
|
|
100% {
|
|
transform: translateX(-50%);
|
|
}
|
|
}
|
|
|
|
.mesh-grid {
|
|
background-image:
|
|
linear-gradient(rgba(14, 17, 22, 0.035) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(14, 17, 22, 0.035) 1px, transparent 1px);
|
|
background-size: 48px 48px;
|
|
mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
|
|
}
|
|
|
|
.page-title-band {
|
|
border-bottom: 1px solid rgba(14, 17, 22, 0.08);
|
|
background-color: #fafafa;
|
|
background-image:
|
|
radial-gradient(rgba(14, 17, 22, 0.05) 1px, transparent 1px),
|
|
linear-gradient(rgba(14, 17, 22, 0.02) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(14, 17, 22, 0.02) 1px, transparent 1px);
|
|
background-size: 20px 20px, 40px 40px, 40px 40px;
|
|
}
|
|
|
|
.project-link-bar {
|
|
position: fixed;
|
|
inset-inline: 0;
|
|
bottom: 0;
|
|
z-index: 40;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
background-color: rgba(14, 17, 22, 0.94);
|
|
background-image:
|
|
radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
|
|
linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
|
|
background-size: 18px 18px, 36px 36px, 36px 36px;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.mesh-glow {
|
|
background:
|
|
radial-gradient(ellipse 55% 45% at 78% 35%, var(--glow), transparent 70%),
|
|
radial-gradient(ellipse 40% 35% at 12% 70%, rgba(42, 49, 60, 0.08), transparent 65%),
|
|
linear-gradient(165deg, #f5f7fa 0%, #e8edf3 48%, #eef2f6 100%);
|
|
}
|
|
|
|
@keyframes float-y {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-12px);
|
|
}
|
|
}
|
|
|
|
@keyframes rise-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(28px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.animate-float {
|
|
animation: float-y 7s ease-in-out infinite;
|
|
}
|
|
|
|
.reveal {
|
|
opacity: 0;
|
|
transform: translateY(28px);
|
|
transition:
|
|
opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
|
|
transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.reveal.is-visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.reveal-delay-1 {
|
|
transition-delay: 0.12s;
|
|
}
|
|
.reveal-delay-2 {
|
|
transition-delay: 0.24s;
|
|
}
|
|
.reveal-delay-3 {
|
|
transition-delay: 0.36s;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.animate-float,
|
|
.reveal,
|
|
.carousel-track {
|
|
animation: none !important;
|
|
transition: none !important;
|
|
opacity: 1 !important;
|
|
transform: none !important;
|
|
}
|
|
}
|
|
|
|
.prose-content {
|
|
color: var(--ink-soft);
|
|
font-size: 0.975rem;
|
|
line-height: 2;
|
|
text-align: justify;
|
|
text-justify: inter-word;
|
|
}
|
|
|
|
.prose-content > *:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.prose-content p,
|
|
.prose-content ul,
|
|
.prose-content ol,
|
|
.prose-content blockquote,
|
|
.prose-content pre,
|
|
.prose-content table,
|
|
.prose-content figure {
|
|
margin: 1.1em 0;
|
|
}
|
|
|
|
.prose-content h1,
|
|
.prose-content h2,
|
|
.prose-content h3,
|
|
.prose-content h4 {
|
|
color: var(--ink);
|
|
font-weight: 400;
|
|
white-space: normal;
|
|
margin: 1.6em 0 0.6em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.prose-content h2 {
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.prose-content h3 {
|
|
font-size: 1.15rem;
|
|
}
|
|
|
|
.prose-content a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
background-image: var(--brand-gradient);
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: currentColor;
|
|
transition:
|
|
color 0.35s ease,
|
|
-webkit-text-fill-color 0.35s ease;
|
|
}
|
|
|
|
.prose-content a:hover {
|
|
-webkit-text-fill-color: transparent;
|
|
color: transparent;
|
|
}
|
|
|
|
.prose-content img {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin: 1.5rem auto;
|
|
border-radius: 1rem;
|
|
}
|
|
|
|
.prose-content ul,
|
|
.prose-content ol {
|
|
padding-inline-start: 1.4rem;
|
|
}
|
|
|
|
.prose-content li {
|
|
margin: 0.35em 0;
|
|
}
|
|
|
|
.prose-content blockquote {
|
|
border-inline-start: 3px solid var(--line);
|
|
padding-inline-start: 1rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.prose-content table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.prose-content th,
|
|
.prose-content td {
|
|
border: 1px solid var(--line);
|
|
padding: 0.55rem 0.75rem;
|
|
text-align: start;
|
|
}
|
|
|
|
.footer-bottom-bar {
|
|
border-top: 1px solid #e5e5e5;
|
|
background: #f7f7f7;
|
|
}
|
|
|
|
.meshkee-credit {
|
|
position: relative;
|
|
}
|
|
|
|
.meshkee-credit__frame {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.meshkee-credit__line {
|
|
position: absolute;
|
|
background: #c8c8c8;
|
|
transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.meshkee-credit__line--l {
|
|
top: 0;
|
|
left: 0;
|
|
width: 1px;
|
|
height: 100%;
|
|
transform: scaleY(0);
|
|
transform-origin: top;
|
|
transition-delay: 0s;
|
|
}
|
|
|
|
.meshkee-credit__line--b {
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 1px;
|
|
transform: scaleX(0);
|
|
transform-origin: left;
|
|
transition-delay: 0.14s;
|
|
}
|
|
|
|
.meshkee-credit__line--r {
|
|
top: 0;
|
|
right: 0;
|
|
width: 1px;
|
|
height: 100%;
|
|
transform: scaleY(0);
|
|
transform-origin: bottom;
|
|
transition-delay: 0.28s;
|
|
}
|
|
|
|
.meshkee-credit__line--t {
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 1px;
|
|
transform: scaleX(0);
|
|
transform-origin: right;
|
|
transition-delay: 0.42s;
|
|
}
|
|
|
|
.meshkee-credit:hover .meshkee-credit__line--l,
|
|
.meshkee-credit:hover .meshkee-credit__line--r {
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
.meshkee-credit:hover .meshkee-credit__line--t,
|
|
.meshkee-credit:hover .meshkee-credit__line--b {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
.meshkee-credit:not(:hover) .meshkee-credit__line--l {
|
|
transition-delay: 0.42s;
|
|
}
|
|
|
|
.meshkee-credit:not(:hover) .meshkee-credit__line--b {
|
|
transition-delay: 0.28s;
|
|
}
|
|
|
|
.meshkee-credit:not(:hover) .meshkee-credit__line--r {
|
|
transition-delay: 0.14s;
|
|
}
|
|
|
|
.meshkee-credit:not(:hover) .meshkee-credit__line--t {
|
|
transition-delay: 0s;
|
|
}
|