-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
276 lines (242 loc) · 5.55 KB
/
Copy pathstyles.css
File metadata and controls
276 lines (242 loc) · 5.55 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
/* --- GLOBAL RESET & BASE STYLES --- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, sans-serif;
background-color: #fff;
color: #333;
padding: 20px 20px; /* Default mobile padding */
min-height: 100vh;
display: flex;
flex-direction: column;
transition: padding 0.3s ease;
}
/* --- HEADER --- */
.header {
margin-bottom: 20px;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 11px;
font-weight: 900;
letter-spacing: 1px;
}
.logo-separator {
width: 100%;
height: 1px;
background: #eee;
margin-top: 10px;
}
/* --- TITLE SECTION --- */
.title-section {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
gap: 15px;
margin-bottom: 30px;
}
h1 {
font-size: clamp(32px, 8vw, 60px);
font-weight: 900;
line-height: 0.8;
}
h2 {
font-family: 'Playfair Display', serif;
font-size: clamp(32px, 8vw, 60px);
font-weight: 400;
font-style: italic;
line-height: 0.8;
}
.intro {
max-width: 100%;
text-align: left;
font-family: 'Playfair Display', serif;
font-style: italic;
color: #666;
font-size: clamp(13px, 2vw, 15px);
}
/* --- FISHEYE LAYOUT --- */
.fisheye-container {
display: flex;
flex-direction: column;
gap: 2px;
background: #ffffff;
border: 1px solid #eee;
height: auto; /* Stacks naturally on mobile */
}
.fisheye-row {
display: flex;
flex-direction: column; /* Stacked on mobile by default */
height: auto;
gap: 2px;
background: #ffffff;
}
.menu-item {
flex: 1;
background: #f9f9f9;
position: relative;
padding: 30px;
overflow: hidden;
cursor: pointer;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 120px;
}
/* --- CARD CONTENT --- */
.content {
position: relative;
z-index: 2;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px; /* Prevents text overlay in collapsed state */
}
/* Collapsed main label */
.collapsed-label {
font-size: clamp(32px, 5vw, 48px);
font-weight: 900;
transition: 0.3s;
line-height: 1;
margin: 0;
}
/* Subtitle (Small label at bottom) */
.subtitle {
font-size: 9px;
font-weight: 700;
color: #999;
text-transform: uppercase;
text-align: center;
transition: 0.3s;
}
/* Pill (UH#01) - only visible on expansion */
.pill {
background: #fff;
padding: 4px 12px;
border-radius: 50px;
font-size: 11px;
font-weight: 900;
margin-bottom: 20px;
opacity: 0;
transform: translateY(-10px);
transition: 0.3s;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
/* Expanded Title */
.title {
font-size: clamp(20px, 4vw, 32px);
font-weight: 900;
line-height: 1.1;
display: none;
margin-bottom: 15px;
max-width: 100%;
}
/* Expanded Description */
.description {
font-family: 'Playfair Display', serif;
font-style: italic;
font-size: clamp(14px, 2.5vw, 18px);
line-height: 1.4;
color: #333;
display: none;
max-width: 400px;
}
/* Background Number (The big ghost "01.") */
.background-number {
position: absolute;
bottom: -10px;
left: -10px;
font-size: clamp(100px, 15vw, 200px);
font-weight: 900;
color: #eee;
opacity: 0;
transition: 0.5s;
pointer-events: none;
z-index: 1;
}
/* --- INTERACTION STATES (HOVER & CLICK) --- */
.menu-item:hover,
.menu-item.active {
background: #f4f4f4;
min-height: 300px; /* Vertical growth for mobile expansion */
align-items: flex-start;
justify-content: flex-start;
}
.menu-item:hover .content,
.menu-item.active .content {
align-items: flex-start;
justify-content: flex-start;
gap: 10px;
}
/* Toggle visibility between states */
.menu-item:hover .collapsed-label, .menu-item.active .collapsed-label,
.menu-item:hover .subtitle, .menu-item.active .subtitle {
display: none;
}
.menu-item:hover .pill, .menu-item.active .pill {
opacity: 1;
transform: translateY(0);
}
.menu-item:hover .title, .menu-item.active .title,
.menu-item:hover .description, .menu-item.active .description {
display: block;
}
.menu-item:hover .background-number, .menu-item.active .background-number {
opacity: 1;
transform: translate(30px, -20px);
}
/* --- DESKTOP REFINEMENTS (min-width: 1024px) --- */
@media (min-width: 1024px) {
body {
padding: 20px 200px; /* Wide padding from your original design */
}
.title-section {
flex-direction: row;
align-items: flex-end;
}
.intro {
text-align: right;
max-width: 450px;
}
.fisheye-container {
height: 70vh;
}
.fisheye-row {
flex-direction: row; /* Horizontal grid on desktop */
height: 50%; /* Base height */
transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Vertical expansion of the entire row on desktop */
.fisheye-row:hover {
height: 70%;
}
.menu-item {
flex: 1;
min-height: 0;
}
/* Horizontal expansion on desktop */
.menu-item:hover, .menu-item.active {
flex-grow: 2;
min-height: 0;
}
}
/* --- FOOTER --- */
footer {
margin-top: auto;
padding: 40px 0 10px;
text-align: center;
font-size: 12px;
color: #888;
border-top: 1px solid #eee;
}