|
| 1 | +.section { |
| 2 | + padding: 5rem 2rem; |
| 3 | + max-width: 1100px; |
| 4 | + margin: 0 auto; |
| 5 | +} |
| 6 | + |
| 7 | +.inner { |
| 8 | + display: grid; |
| 9 | + grid-template-columns: 1fr 1.5fr; |
| 10 | + gap: 4rem; |
| 11 | + align-items: center; |
| 12 | +} |
| 13 | + |
| 14 | +.inner.reverse { |
| 15 | + grid-template-columns: 1.5fr 1fr; |
| 16 | +} |
| 17 | + |
| 18 | +.inner.reverse .textCol { |
| 19 | + order: 2; |
| 20 | +} |
| 21 | + |
| 22 | +.inner.reverse .mediaCol { |
| 23 | + order: 1; |
| 24 | +} |
| 25 | + |
| 26 | +.textCol { |
| 27 | + display: flex; |
| 28 | + flex-direction: column; |
| 29 | + gap: 0; |
| 30 | +} |
| 31 | + |
| 32 | +.label { |
| 33 | + font-size: 12px; |
| 34 | + font-weight: 500; |
| 35 | + letter-spacing: 0.09em; |
| 36 | + text-transform: uppercase; |
| 37 | + color: var(--landing-teal); |
| 38 | + margin-bottom: 0.75rem; |
| 39 | +} |
| 40 | + |
| 41 | +.textCol h2 { |
| 42 | + font-size: 2rem; |
| 43 | + font-weight: 600; |
| 44 | + line-height: 1.15; |
| 45 | + letter-spacing: -0.03em; |
| 46 | + color: var(--landing-text); |
| 47 | + margin-bottom: 1rem; |
| 48 | +} |
| 49 | + |
| 50 | +.textCol p { |
| 51 | + font-size: 16px; |
| 52 | + color: var(--landing-muted); |
| 53 | + line-height: 1.75; |
| 54 | + margin-bottom: 1.5rem; |
| 55 | +} |
| 56 | + |
| 57 | +.link { |
| 58 | + font-size: 15px; |
| 59 | + font-weight: 500; |
| 60 | + color: var(--landing-teal); |
| 61 | + text-decoration: none; |
| 62 | + display: inline-flex; |
| 63 | + align-items: center; |
| 64 | + gap: 5px; |
| 65 | +} |
| 66 | + |
| 67 | +.link:hover { |
| 68 | + text-decoration: underline; |
| 69 | +} |
| 70 | + |
| 71 | +.mediaCol { |
| 72 | + position: relative; |
| 73 | + overflow: hidden; |
| 74 | + background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); |
| 75 | + aspect-ratio: 16 / 10; |
| 76 | + border-radius: 16px; |
| 77 | + display: flex; |
| 78 | + align-items: center; |
| 79 | + justify-content: center; |
| 80 | + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); |
| 81 | +} |
| 82 | + |
| 83 | +.mediaCol.hasVideo { |
| 84 | + background: none; |
| 85 | + aspect-ratio: auto; |
| 86 | + border-radius: 0; |
| 87 | + box-shadow: none; |
| 88 | + mask-image: |
| 89 | + linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%), |
| 90 | + linear-gradient(to bottom, transparent 0%, black 4%, black 88%, transparent 100%); |
| 91 | + mask-composite: intersect; |
| 92 | + -webkit-mask-image: |
| 93 | + linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%), |
| 94 | + linear-gradient(to bottom, transparent 0%, black 4%, black 88%, transparent 100%); |
| 95 | + -webkit-mask-composite: source-in; |
| 96 | +} |
| 97 | + |
| 98 | +.mediaCol img { |
| 99 | + width: 100%; |
| 100 | + height: 100%; |
| 101 | + object-fit: cover; |
| 102 | + display: block; |
| 103 | + border-radius: 16px; |
| 104 | +} |
| 105 | + |
| 106 | +.mediaCol video { |
| 107 | + display: block; |
| 108 | + width: 100%; |
| 109 | + height: auto; |
| 110 | +} |
| 111 | + |
| 112 | +.gifPlaceholder { |
| 113 | + display: flex; |
| 114 | + flex-direction: column; |
| 115 | + align-items: center; |
| 116 | + justify-content: center; |
| 117 | + gap: 10px; |
| 118 | + color: rgba(255, 255, 255, 0.7); |
| 119 | + font-size: 14px; |
| 120 | +} |
| 121 | + |
| 122 | +.gifPlaceholder svg { |
| 123 | + opacity: 0.5; |
| 124 | +} |
| 125 | + |
| 126 | +@media (max-width: 820px) { |
| 127 | + .inner, |
| 128 | + .inner.reverse { |
| 129 | + grid-template-columns: 1fr; |
| 130 | + gap: 2rem; |
| 131 | + } |
| 132 | + |
| 133 | + .inner.reverse .textCol { |
| 134 | + order: 0; |
| 135 | + } |
| 136 | + |
| 137 | + .inner.reverse .mediaCol { |
| 138 | + order: 0; |
| 139 | + } |
| 140 | +} |
0 commit comments