-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathglobals.css
More file actions
296 lines (256 loc) · 7.1 KB
/
globals.css
File metadata and controls
296 lines (256 loc) · 7.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
@import "tailwindcss";
:root {
--foreground: #ffffff;
--background: linear-gradient(206deg, #4E0088 13.13%, #180029 86.33%);
overflow-x: hidden;
}
/* Lenis Smooth Scroll */
html.lenis,
html.lenis body {
height: auto;
}
.lenis.lenis-smooth {
scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
overscroll-behavior: contain;
}
.lenis.lenis-stopped {
overflow: hidden;
}
.lenis.lenis-scrolling iframe {
pointer-events: none;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
@media (prefers-color-scheme: dark) {
:root {
--background: linear-gradient(206deg, #4E0088 13.13%, #4E0088 13.33%);
--foreground: #ededed;
}
}
body {
background: var(--background);
color: var(--foreground);
font-family:
var(--font-geist-sans),
system-ui,
-apple-system,
"Segoe UI",
Roboto,
Arial,
sans-serif;
}
.font-kanit {
font-family: var(--font-kanit), var(--font-geist-sans), sans-serif;
}
.font-poppins {
font-family: var(--font-poppins), var(--font-geist-sans), sans-serif;
}
.text-stroke-brand-thick {
-webkit-text-stroke: 10px #62009b;
paint-order: stroke fill;
}
.text-stroke-number {
paint-order: stroke fill;
}
.text-stroke-white-thick {
-webkit-text-stroke: 10px #ffffff;
paint-order: stroke fill;
}
.text-stroke-white-medium {
-webkit-text-stroke: 4px #ffffff;
paint-order: stroke fill;
}
.text-stroke-white-thin {
-webkit-text-stroke: 2px #ffffff;
paint-order: stroke fill;
}
.text-stroke-black-thick {
-webkit-text-stroke: 14px #000000;
paint-order: stroke fill;
}
/* View Transitions */
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 0.3s;
}
::view-transition-old(root) {
animation-name: fade-out;
}
::view-transition-new(root) {
animation-name: fade-in;
}
@keyframes fade-out {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
/* ── Interactive Glass Cracks ── */
/* Dim overlay — darkens hero as cracks accumulate */
.crack-dim-overlay {
position: absolute;
inset: 0;
z-index: 29;
pointer-events: none;
background: radial-gradient(
ellipse 120% 100% at 50% 50%,
rgba(5, 0, 12, 0.6) 0%,
rgba(10, 0, 25, 0.85) 100%
);
opacity: 0;
transition: opacity 0.3s ease-out;
}
/* Subtle glass sheen overlay */
.glass-pane {
position: absolute;
inset: 0;
z-index: 30;
pointer-events: none;
background: linear-gradient(
135deg,
rgba(255, 255, 255, 0.025) 0%,
transparent 35%,
rgba(255, 255, 255, 0.012) 55%,
transparent 100%
);
}
/* SVG canvas for persistent crack lines */
.crack-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 31;
pointer-events: none;
overflow: visible;
}
/* Base crack line — responsive via media queries */
.crack-line {
fill: none;
stroke: rgba(235, 225, 255, 0.98);
stroke-width: 1.5;
stroke-linecap: square;
stroke-linejoin: miter;
stroke-miterlimit: 12;
filter: drop-shadow(0 0 7px rgba(150, 90, 255, 0.85))
drop-shadow(0 0 4px rgba(255, 255, 255, 0.7))
drop-shadow(0 0 16px rgba(170, 100, 255, 0.35))
drop-shadow(0 0 24px rgba(130, 70, 220, 0.25));
}
/* Inner core line to add visible thickness down the middle */
.crack-core-line {
fill: none;
stroke: rgba(255, 252, 255, 1);
stroke-width: 0.9;
stroke-linecap: square;
stroke-linejoin: miter;
stroke-miterlimit: 12;
filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
drop-shadow(0 0 14px rgba(190, 130, 255, 0.45));
}
/* Main (thickest) crack per click — strong glow */
.crack-main {
stroke: rgba(235, 220, 255, 1);
stroke-width: 2.5;
filter: drop-shadow(0 0 10px rgba(120, 60, 200, 0.95))
drop-shadow(0 0 4px rgba(255, 255, 255, 0.7))
drop-shadow(0 0 22px rgba(90, 0, 170, 0.55))
drop-shadow(0 0 36px rgba(170, 80, 255, 0.25));
}
/* Secondary branches */
.crack-branch {
fill: none;
stroke: rgba(190, 170, 240, 0.6);
stroke-width: 0.9;
stroke-linecap: round;
stroke-linejoin: round;
filter: drop-shadow(0 0 4px rgba(120, 60, 200, 0.6))
drop-shadow(0 0 8px rgba(160, 90, 255, 0.25));
}
/* Branches off the main crack */
.crack-main-branch {
stroke: rgba(220, 205, 255, 0.75);
stroke-width: 1.3;
filter: drop-shadow(0 0 6px rgba(120, 60, 200, 0.75))
drop-shadow(0 0 3px rgba(255, 255, 255, 0.35))
drop-shadow(0 0 14px rgba(170, 80, 255, 0.25));
}
/* Concentric ring fragments */
.crack-ring {
fill: none;
stroke: rgba(170, 150, 220, 0.45);
stroke-width: 0.7;
stroke-linecap: round;
filter: drop-shadow(0 0 3px rgba(98, 0, 155, 0.35))
drop-shadow(0 0 6px rgba(140, 80, 220, 0.15));
}
/* Yellow impact flash circle */
.crack-impact {
fill: none;
stroke: rgba(255, 238, 0, 0.55);
stroke-width: 1.5;
filter: drop-shadow(0 0 10px rgba(255, 238, 0, 0.4))
drop-shadow(0 0 20px rgba(255, 200, 0, 0.2));
}
/* Radial glow blob at impact center */
.crack-center-glow {
pointer-events: none;
mix-blend-mode: screen;
opacity: 0;
}
.crack-center-core {
fill: rgba(250, 245, 255, 0.9);
stroke: rgba(195, 145, 255, 0.95);
stroke-width: 1.1;
filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7))
drop-shadow(0 0 16px rgba(170, 90, 255, 0.45));
}
/* Persistent glow chip at each impact point */
.crack-glow {
fill: rgba(210, 190, 255, 0.6);
filter: drop-shadow(0 0 5px rgba(98, 0, 155, 0.7))
drop-shadow(0 0 10px rgba(140, 80, 220, 0.4))
drop-shadow(0 0 3px rgba(255, 238, 0, 0.15));
}
/* ── Cursor-Following Cracks ── */
.cursor-crack-line {
fill: none;
filter: drop-shadow(0 0 5px rgba(150, 90, 255, 0.7))
drop-shadow(0 0 10px rgba(190, 130, 255, 0.3));
}
/* ── Responsive crack scaling via stroke-width ── */
@media (min-width: 768px) {
.crack-line { stroke-width: 1.8; }
.crack-core-line { stroke-width: 1.1; }
.crack-main { stroke-width: 3; }
.crack-branch { stroke-width: 1.1; }
.crack-main-branch { stroke-width: 1.6; }
.crack-ring { stroke-width: 0.9; }
.crack-impact { stroke-width: 2; }
}
@media (min-width: 1280px) {
.crack-line { stroke-width: 2.2; }
.crack-core-line { stroke-width: 1.35; }
.crack-main { stroke-width: 3.5; }
.crack-branch { stroke-width: 1.3; }
.crack-main-branch { stroke-width: 1.8; }
.crack-ring { stroke-width: 1.1; }
.crack-impact { stroke-width: 2.5; }
}
@media (min-width: 1920px) {
.crack-line { stroke-width: 2.8; }
.crack-core-line { stroke-width: 1.65; }
.crack-main { stroke-width: 4.2; }
.crack-branch { stroke-width: 1.6; }
.crack-main-branch { stroke-width: 2.2; }
.crack-ring { stroke-width: 1.3; }
.crack-impact { stroke-width: 3; }
}