/* Scribble transition showpiece, in the Truus kit (~/Dev/parts/kits.json "truus"): warm off-white page swapping
   with a full black one, giant lowercase Epilogue 900, one word per headline swapped for a Lora italic and circled
   by a hand-drawn loop, DM Sans body, rounded 1.25em frames, the kit's loud accents for the stroke. */
:root { --paper: #f0ebe6; --ink: #000; --grey: #2d2d2d; --orange: #f5693c; --pink: #f0befa; --blue: #4b69f0; --lime: #e6fab9;
  --pad: clamp(16px, 4.5vw, 52px); --ease: cubic-bezier(.625, .05, 0, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); overflow: hidden; font: 400 16px/1.45 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body[data-page="home"] { --bg: var(--paper); --fg: var(--ink); }
body[data-page="work"] { --bg: #000; --fg: var(--paper); }
body[data-page="about"] { --bg: var(--pink); --fg: var(--ink); }
a { color: inherit; text-decoration: none; }
em { font: italic 400 1em/1 Lora, Georgia, serif; letter-spacing: -.02em; }

.nav { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 26px var(--pad); }
.mark { display: block; width: 64px; height: 32px; }
.mark svg { display: block; width: 100%; height: 100%; }
.links { display: flex; gap: 6px; font-weight: 600; font-size: 16px; }
.links a { padding: 9px 16px; border-radius: 99px; }
.links a.say { background: var(--fg); color: var(--bg); }

.page { position: absolute; inset: 0; padding: 120px var(--pad) var(--pad); display: flex; flex-direction: column; }
.page[hidden] { display: none; }
h1 { font: 900 clamp(56px, 13.4vw, 150px)/.9 Epilogue, sans-serif; letter-spacing: -.035em; text-transform: lowercase; }
.page--home h1, .page--about h1 { margin: auto 0; font-size: clamp(56px, 15.6vw, 168px); }
.page--about .swap { color: var(--blue); }
.sticker { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: var(--lime); color: #000; border: 6px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); font: 900 22px/1 Epilogue, sans-serif; text-align: center; transform: rotate(-12deg); flex: none; }
.swap { position: relative; display: inline-block; margin: 0 .1em 0 .06em; color: var(--orange); }
.swap em { position: relative; z-index: 1; }
.loop { position: absolute; z-index: 0; left: -8%; top: -4%; width: 116%; height: 118%; color: var(--ink); overflow: visible; }
.foot { padding-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot p { max-width: 28ch; font-size: clamp(17px, 2vw, 21px); }
.btn { display: inline-flex; align-items: center; height: 58px; padding: 0 30px; border-radius: 99px; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 18px; transition: transform .4s cubic-bezier(.35, 1.75, .6, 1), background .4s var(--ease); }
.btn.is-hover { transform: scale(1.06) rotate(-2deg); background: var(--orange); color: var(--ink); }

.page--work h1 em { color: var(--pink); }
.grid { flex: 1; min-height: 0; margin-top: clamp(20px, 3vh, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 18px); }
.card { position: relative; min-height: 0; border-radius: 1.25em; overflow: hidden; background: var(--grey);
  transition: transform .6s cubic-bezier(.35, 1.75, .6, 1); }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card span { position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 99px; background: var(--lime); color: #000; font-weight: 700; font-size: 15px; }
.card:nth-child(2) span { background: var(--pink); } .card:nth-child(3) span { background: var(--orange); } .card:nth-child(4) span { background: #82a0ff; }
.card.is-hover { transform: rotate(-2.5deg) scale(1.03); }
@media (max-width: 600px) { .foot { flex-direction: column; align-items: flex-start; } }
