/* ==========================================================================
   Antti Uimonen · portfolio — PLAYFUL REDESIGN
   White base, soft pastel tints, loose tilted "cards" that straighten up
   when you touch them. Colours and spacing live in :root.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #232030;
  --muted: #6f6b78;
  --line: rgba(35, 32, 48, 0.12);
  --accent: #6e56cf;

  /* soft tints, used for cards, pills and sheets */
  --lilac: #ebe5ff;
  --butter: #fff1bd;
  --peach: #ffdfd0;
  --mint: #d8f3e6;
  --sky: #dbecff;
  --pink: #ffdcee;

  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(18px, 4vw, 48px);
  --bounce: cubic-bezier(0.3, 1.6, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-color: rgba(110, 86, 207, 0.45); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--butter); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 99px; transition: top .15s; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; transition: transform .3s ease;
  background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding-block: .8rem; }
.brand { font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: .25rem; }
.site-header nav a {
  display: inline-block; padding: .35rem .85rem; border-radius: 99px; text-decoration: none;
  font-size: .9rem; color: var(--muted); transition: background .2s, color .2s, transform .3s var(--bounce);
}
.site-header nav a:hover { background: var(--lilac); color: var(--accent); transform: rotate(-3deg) scale(1.06); }
.site-header nav .nav-cta { background: var(--ink); color: #fff; }
.site-header nav .nav-cta:hover { background: var(--accent); color: #fff; }

/* ---------- Pills & buttons ---------- */
.pill {
  display: inline-block; padding: .38rem .95rem; border-radius: 99px;
  background: var(--lilac); color: var(--accent);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 99px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: 700 .9rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .3s var(--bounce), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: rotate(-3deg) scale(1.05); background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: .6rem 1.1rem; font-size: .8rem; }
.pill-link {
  display: inline-flex; align-items: center; gap: .35em; padding: .55rem 1.05rem; border-radius: 99px;
  background: #fff; color: var(--accent); font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: transform .3s var(--bounce), background .2s, color .2s;
}
.pill-link:hover { background: var(--accent); color: #fff; transform: rotate(-2deg) scale(1.05); }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: 1400px; margin-inline: auto; padding: clamp(2.4rem, 6vw, 4.5rem) var(--gutter) 3rem; min-height: min(92vh, 860px); }
.hero-text { position: relative; z-index: 1; max-width: min(40rem, 50%); }
.hero h1 { font: italic 400 clamp(2.9rem, 6.6vw, 6.2rem)/1.04 var(--serif); letter-spacing: -.02em; margin: 1.3rem 0 1.3rem; }
.lede { max-width: 33rem; color: var(--muted); font-size: 1.15rem; line-height: 1.65; margin-bottom: 1.9rem; }
.hero-text .pill { display: inline-block; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-quotes { display: grid; gap: 1rem; margin-top: 3.4rem; max-width: 30rem; }
.hero-quotes blockquote {
  margin: 0; padding: 1.3rem 1.5rem; border-radius: 2px; background: var(--paper, #faf9f7); border: 1px solid var(--hair, rgba(35, 32, 48, .16));
  font: italic 400 1.2rem/1.55 var(--serif); color: var(--muted);
}
.hero-quotes blockquote .q::before { content: "\201C"; } .hero-quotes blockquote .q::after { content: "\201D"; }
.hero-quotes footer { margin-top: .5rem; font: 700 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-style: normal; }

.field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.drag {
  position: absolute; pointer-events: auto; cursor: grab; touch-action: none;
  padding: 8px 8px 30px; border-radius: 14px; background: #fff;
  box-shadow: 0 12px 34px rgba(70, 50, 140, .18), 0 0 0 1px var(--line);
  transform: rotate(var(--r, 0deg)); transition: transform .35s var(--bounce), box-shadow .3s;
  user-select: none; -webkit-user-select: none;
}
.drag img { width: 100%; border-radius: 7px; pointer-events: none; }
.drag figcaption { position: absolute; left: 14px; bottom: 7px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drag:hover { transform: rotate(0deg) scale(1.03); }
.drag.is-dragging { cursor: grabbing; transform: rotate(0deg) scale(1.06); box-shadow: 0 24px 50px rgba(70, 50, 140, .28), 0 0 0 1px var(--line); transition: box-shadow .3s; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); scroll-margin-top: 3rem; }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); max-width: 46rem; }
.section-head h2, .display { font: italic 400 clamp(2.2rem, 5vw, 4rem)/1.08 var(--serif); letter-spacing: -.015em; margin-top: .9rem; text-wrap: balance; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Work: the loose field of cards ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.chip {
  padding: .5rem 1rem; border-radius: 99px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 600 .88rem/1 var(--sans); cursor: pointer; transition: transform .3s var(--bounce), background .2s, border-color .2s;
}
.chip:hover { transform: rotate(-3deg) scale(1.06); border-color: var(--accent); }
.shuffle { background: var(--butter); border-color: var(--butter); }
.shuffle:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.works { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(1.1rem, 2.6vw, 2.2rem); }
.card {
  --w: 300px; width: min(100%, var(--w)); display: block; text-align: left; font: inherit; color: inherit;
  border: 0; cursor: pointer; padding: 10px; border-radius: 26px; background: var(--tint, var(--lilac));
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--bounce), box-shadow .3s, opacity .3s, filter .3s;
}
.card:hover, .card:focus-visible { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 22px 40px rgba(70, 50, 140, .16); }
.card .thumb { display: block; overflow: hidden; border-radius: 18px; aspect-ratio: var(--ar, 4 / 3); background: #f4f2ef; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .8rem .5rem .4rem; }
.card .t { font-weight: 700; line-height: 1.2; }
.card .y { font-size: .78rem; color: rgba(35, 32, 48, .62); white-space: nowrap; }
.w1 { --w: 250px; } .w2 { --w: 320px; } .w3 { --w: 400px; }
.card:nth-child(6n+1) { --r: -1.8deg; } .card:nth-child(6n+2) { --r: 1.4deg; } .card:nth-child(6n+3) { --r: -.8deg; }
.card:nth-child(6n+4) { --r: 2deg; }   .card:nth-child(6n+5) { --r: -1.4deg; } .card:nth-child(6n+6) { --r: .9deg; }
.card--text { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 1.5rem; }
.card--text .big { font: italic 400 1.9rem/1.1 var(--serif); }
.card--text .y { font-size: .85rem; }
.c-lilac { --tint: var(--lilac); } .c-butter { --tint: var(--butter); } .c-peach { --tint: var(--peach); }
.c-mint { --tint: var(--mint); }   .c-sky { --tint: var(--sky); }       .c-pink { --tint: var(--pink); }

/* ---------- Sheets (a work opened up) ---------- */
.sheet {
  width: min(1120px, 94vw); max-height: 90vh; padding: 0; border: 0; border-radius: 32px; overflow: auto;
  background: var(--tint, var(--lilac)); color: var(--ink); box-shadow: 0 40px 100px rgba(60, 40, 120, .3);
}
.sheet::backdrop { background: rgba(235, 229, 255, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet[open] { animation: pop .45s var(--bounce); }
@keyframes pop { from { opacity: 0; transform: scale(.94) rotate(-1deg); } to { opacity: 1; transform: none; } }
.sheet-close {
  position: sticky; top: 1rem; float: right; margin: 1rem 1rem 0 0; z-index: 3; width: 2.9rem; height: 2.9rem;
  border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(60, 40, 120, .2); transition: transform .3s var(--bounce), background .2s, color .2s;
}
.sheet-close:hover { transform: rotate(90deg) scale(1.1); background: var(--accent); color: #fff; }
.sheet-body { display: grid; gap: 2rem 3rem; padding: clamp(1.4rem, 4vw, 3rem); }
@media (min-width: 860px) { .sheet-body { grid-template-columns: 5fr 7fr; align-items: start; } }
.sheet-media { display: grid; gap: .6rem; }
.sheet-media img { width: 100%; border-radius: 16px; cursor: zoom-in; background: #fff; }
.sheet-media .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sheet-media .grid2 img { aspect-ratio: 4 / 3; object-fit: cover; }
.sheet h3 { font: italic 400 clamp(2rem, 4vw, 3rem)/1.05 var(--serif); margin: .9rem 0 .8rem; letter-spacing: -.01em; }
.sheet .sub { font: italic 400 1.2rem/1.3 var(--serif); color: rgba(35, 32, 48, .7); margin: -.3rem 0 1rem; }
.sheet .pill { background: #fff; }
.sheet p + p { margin-top: .9rem; }
.sheet .small { font-size: .92rem; color: rgba(35, 32, 48, .7); }
.facts { margin-top: 1.5rem; display: grid; gap: .3rem; font-size: .95rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(35, 32, 48, .14); }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(35, 32, 48, .6); padding-top: .2rem; }
.facts dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.quotes { display: grid; gap: .8rem; margin-top: 1.6rem; }
.quotes blockquote { margin: 0; background: #fff; border-radius: 20px; padding: 1rem 1.2rem; font: italic 400 1.02rem/1.5 var(--serif); }
.quotes blockquote:nth-child(odd) { transform: rotate(-.8deg); } .quotes blockquote:nth-child(even) { transform: rotate(.8deg); }
.quotes blockquote .q::before { content: "\201C"; } .quotes blockquote .q::after { content: "\201D"; }
.quotes footer { margin-top: .4rem; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.more-list li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(35, 32, 48, .14); }
.more-list .yr { color: rgba(35, 32, 48, .6); }
.more-list .note { display: block; font-size: .92rem; color: rgba(35, 32, 48, .7); }

/* ---------- Practice areas (tag list, reused in About) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; justify-content: center; }
.chips li { padding: .5rem 1.1rem; border-radius: 99px; background: var(--lilac); color: var(--accent); font-weight: 600; font-size: .9rem; transition: transform .3s var(--bounce); }
.chips li:nth-child(odd) { transform: rotate(-2deg); } .chips li:nth-child(even) { transform: rotate(2deg); }
.chips li:hover { transform: rotate(0deg) scale(1.1); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 4fr 8fr; } }
.portrait { max-width: 380px; padding: 10px 10px 36px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(70, 50, 140, .18), 0 0 0 1px var(--line); transform: rotate(-2.5deg); transition: transform .45s var(--bounce); }
.portrait:hover { transform: rotate(0deg) scale(1.02); }
.portrait img { width: 100%; border-radius: 8px; cursor: zoom-in; }
.portrait figcaption { padding: .7rem .3rem 0; font: italic 400 1.1rem/1 var(--serif); }
.prose p + p { margin-top: 1rem; } .prose p { max-width: 40rem; }
.prose .prose-label { margin-top: 1.6rem; font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose .prose-label + p { margin-top: .5rem; }
.folds { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(2rem, 4vw, 3rem); }
.fold { flex: 0 1 auto; }
.fold[open] { flex-basis: 100%; }
.fold summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.3rem;
  border-radius: 99px; background: var(--tint, var(--lilac)); font-weight: 700; transition: transform .3s var(--bounce);
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font-size: 1.2rem; line-height: 1; transition: transform .3s var(--bounce); }
.fold[open] summary::after { transform: rotate(45deg); }
.fold summary:hover { transform: rotate(-2deg) scale(1.04); }
.fold:nth-child(1) { --tint: var(--sky); } .fold:nth-child(2) { --tint: var(--pink); } .fold:nth-child(3) { --tint: var(--mint); }
.fold:nth-child(4) { --tint: var(--butter); } .fold:nth-child(5) { --tint: var(--peach); }
.fold-body { padding: 1rem .4rem 1.2rem; max-width: 46rem; }
.fold-body li { display: grid; grid-template-columns: 3.8rem 1fr; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .97rem; }
.fold-body .yr { color: var(--muted); }
.fold-body p { margin-bottom: .8rem; color: var(--muted); font-size: .97rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, var(--lilac)); border-radius: 48px 48px 0 0; }
.contact .wrap { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .8; animation: float 9s ease-in-out infinite; }
.blob.b1 { width: 220px; height: 220px; right: 8%; top: 12%; background: var(--butter); }
.blob.b2 { width: 130px; height: 130px; right: 26%; bottom: 14%; background: var(--pink); animation-delay: -3s; }
.blob.b3 { width: 90px; height: 90px; right: 4%; bottom: 26%; background: var(--mint); animation-delay: -6s; }
@keyframes float { 50% { transform: translateY(-22px) rotate(8deg); } }
.contact-title { font: italic 400 clamp(3.4rem, 11vw, 9rem)/.95 var(--serif); letter-spacing: -.03em; margin: 1rem 0 1.2rem; }
.contact-lede { max-width: 32rem; color: var(--muted); font-size: 1.15rem; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin: 1.8rem 0 2.4rem; }
.email { font: italic 400 clamp(1.6rem, 5vw, 3.2rem)/1.1 var(--serif); color: var(--accent); overflow-wrap: anywhere; }
.contact-list { max-width: 32rem; }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.contact-list span { font: 700 .72rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-footer { background: var(--lilac); padding-block: 1.6rem; font-size: .88rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

/* ---------- Enlarged photo (stays dark: the photography is mostly dark) ---------- */
.lightbox { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border: 0; padding: 2rem; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 8, 18, .94); }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: transform .3s var(--bounce), background .2s, color .2s; }
.lightbox-close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }

/* ---------- Small screens: the loose photos become a swipeable row ---------- */
@media (max-width: 820px) {
  .hero { min-height: 0; padding-bottom: 2rem; }
  .hero-text { max-width: none; }
  .field { position: static; display: flex; gap: 14px; overflow-x: auto; padding: 2rem 4px 1.4rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; pointer-events: auto; }
  .drag { position: relative; left: auto !important; top: auto !important; width: 58vw !important; max-width: 260px; flex: 0 0 auto; scroll-snap-align: center; cursor: default; touch-action: pan-x; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 560px) {
  .brand { display: none; }
  .bar { justify-content: center; padding-block: .5rem; }
  .site-header nav a { padding: .4rem .55rem; font-size: .85rem; }
  .w1, .w2 { --w: calc(50% - .6rem); } .w3 { --w: 100%; }
  .card { padding: 7px; border-radius: 20px; } .card .thumb { border-radius: 14px; }
  .card .cap { flex-direction: column; gap: .1rem; padding-inline: .3rem; } .card .t { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   REFINEMENT — quieter, more editorial. Hairlines and type instead of
   coloured chips and sticky-note cards. (Overrides the rules above.)
   ========================================================================== */
:root { --paper: #faf9f7; --hair: rgba(35, 32, 48, .16); }

/* Small labels: plain small caps, no filled pill */
.pill { background: none !important; padding: 0; border-radius: 0; color: var(--muted); font-size: .72rem; letter-spacing: .18em; font-weight: 700; }
.pill::before { content: ""; display: inline-block; width: 1.6rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .7rem; opacity: .6; }

/* Buttons: fine outline, small radius, tracked capitals */
.btn, .chip, .site-header nav .nav-cta {
  border-radius: 2px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.btn { padding: 1rem 1.6rem; }
.btn:not(.btn--ghost) { background: var(--ink); color: #fff; }
.btn:hover, .btn--ghost:hover { transform: none; background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--small { padding: .75rem 1.1rem; }
.site-header nav a { border-radius: 2px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .5rem .8rem; }
.site-header nav a:hover { background: none; color: var(--accent); transform: none; }
.site-header nav .nav-cta { padding: .55rem .9rem; color: var(--ink); background: transparent; }
.site-header nav .nav-cta:hover { background: var(--ink); color: #fff; }

/* Links inside a work: understated underlined text */
.pill-link {
  padding: .2rem 0; border-radius: 0; background: none; color: var(--ink); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); margin-right: 1.2rem;
  transition: color .2s, border-color .2s;
}
.pill-link:hover { background: none; color: var(--accent); border-color: var(--accent); transform: none; }

/* The lone "Surprise yourself" button: a plain outlined button */
.controls { border-bottom: 0; padding-bottom: 0; }
.chip { border: 0; border-radius: 0; padding: .4rem 0; color: var(--muted); }
.shuffle { color: var(--ink); border: 1px solid var(--ink); padding: .85rem 1.4rem; background: transparent; }
.shuffle:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Work: images on the page like prints in a gallery. No frames, no tilt;
   the non-linearity is in the staggered heights and the order you choose. */
.works { align-items: flex-start; gap: clamp(2rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 2.6rem); }
.card {
  padding: 0; border-radius: 0; background: none; box-shadow: none !important;
  transform: translateY(var(--dy, 0)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s, filter .4s;
}
.card:hover, .card:focus-visible { transform: translateY(calc(var(--dy, 0px) - 6px)); box-shadow: none; }
.card:focus-visible { outline-offset: 6px; }
.card .thumb { border-radius: 2px; background: #efece8; }
.card:hover .thumb img { transform: scale(1.035); }
.card .thumb img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.card .cap { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .3rem; padding: .85rem 0 0; border-top: 0; }
.card .t { font: italic 400 1.4rem/1.2 var(--serif); }
.card .y { font-size: .7rem; letter-spacing: .14em; color: var(--muted); text-align: left; }
.card .tags { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card:nth-child(n) { --r: 0deg; }
.card:nth-child(6n+1) { --dy: 0px; } .card:nth-child(6n+2) { --dy: 46px; } .card:nth-child(6n+3) { --dy: 14px; }
.card:nth-child(6n+4) { --dy: 70px; } .card:nth-child(6n+5) { --dy: 8px; }  .card:nth-child(6n+6) { --dy: 36px; }
/* The Optimal Future Body card sat too low and clipped into whatever followed it. */
.works [data-open="w-optimal"] { --dy: 6px; }
.card--text { min-height: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--ink); justify-content: flex-start; gap: .6rem; }
.card--text .big { font-size: 1.7rem; }
.card--text .y { font-size: .7rem; letter-spacing: .14em; color: var(--muted); margin-top: .6rem; }
.card--text .tags { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.works { padding-bottom: 80px; }

/* Work sheets: paper with a fine coloured edge */
.sheet { border-radius: 4px; background: var(--paper); box-shadow: 0 30px 80px rgba(35, 32, 48, .22); }
.sheet::backdrop { background: rgba(250, 249, 247, .82); }
.sheet[open] { animation: rise .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet-close, .lightbox-close {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--hair); box-shadow: none;
  font-size: 1.5rem; line-height: 1; padding: 0; display: grid; place-items: center;
}
.sheet-close:hover, .lightbox-close:hover { transform: none; background: var(--ink); color: #fff; }
.lightbox-close { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.lightbox-close:hover { background: #fff; color: var(--ink); }
.sheet-media img { border-radius: 2px; }
.quotes blockquote { background: none; border-left: 1px solid var(--ink); border-radius: 0; padding: .2rem 0 .2rem 1.2rem; transform: none !important; }

/* Practice areas (tag list, in About) */
.chips { justify-content: flex-start; gap: .4rem 1.4rem; margin-top: 2.6rem; }
.chips li, .chips li:nth-child(n) { background: none; padding: 0; border-radius: 0; color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; transform: none; }
.chips li + li::before { content: "/"; margin-right: 1.4rem; opacity: .4; }

/* About */
.portrait { padding: 0; background: none; box-shadow: none; border-radius: 2px; transform: none; }
.portrait:hover { transform: none; }
.portrait img { border-radius: 2px; }
.portrait figcaption { font-size: 1rem; color: var(--muted); padding-top: .6rem; }
.folds { display: block; border-bottom: 1px solid var(--hair); }
.fold, .fold[open] { border-top: 1px solid var(--hair); }
.fold summary, .fold summary:hover {
  display: flex; justify-content: space-between; width: 100%; padding: 1.1rem 0; border-radius: 0; background: none; transform: none;
  font: italic 400 1.4rem/1.2 var(--serif);
}
.fold summary:hover { color: var(--accent); }

/* Contact and footer: flat, no blobs */
.blob { display: none; }
.contact { background: var(--paper); border-radius: 0; border-top: 1px solid var(--hair); }
.site-footer { background: var(--paper); border-top: 1px solid var(--hair); }
.email { color: var(--ink); text-decoration-thickness: 1px; }

/* Hero: prints, not stickers */
.drag { padding: 6px 6px 26px; border-radius: 2px; box-shadow: 0 14px 34px rgba(35, 32, 48, .16), 0 0 0 1px var(--hair); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.drag img { border-radius: 1px; }
.drag figcaption { left: 8px; bottom: 6px; letter-spacing: .14em; }
.drag:hover, .drag.is-dragging { transform: rotate(0deg) scale(1.02); }

@media (max-width: 560px) {
  .card { padding: 0; }
  .card:nth-child(n) { --dy: 0px !important; }
  .works { padding-bottom: 0; }
}

/* More sharings & Embodied Futures Workshops: mixed-shape photo grids that never
   crop — each picture shares its row by its own proportions, so the row height
   is equal and every photo stays whole. */
.card .thumb.mosaic { display: flex; flex-wrap: wrap; gap: 3px; aspect-ratio: auto; align-items: flex-start; }
.card .mosaic img { width: auto; height: auto; object-fit: contain; }
.card .mosaic img:first-child { flex: 0 0 100%; width: 100%; }
.card .mosaic img:nth-child(2) { flex: 0.75 1 0; min-width: 0; object-position: 50% 62%; }
.card .mosaic img:nth-child(3) { flex: 1.78 1 0; min-width: 0; }
.sheet-media .grid2--wide { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.sheet-media .grid2--wide img { width: auto; height: auto; aspect-ratio: auto; object-fit: contain; min-width: 0; }
.sheet-media .grid2--wide img:first-child { flex: 0 0 100%; width: 100%; aspect-ratio: auto; }
.sheet-media .grid2--wide img:nth-child(2) { flex: 0.75 1 0; aspect-ratio: auto; }
.sheet-media .grid2--wide img:nth-child(3) { flex: 1.78 1 0; aspect-ratio: auto; }

/* ==========================================================================
   MOBILE REFINEMENT — placed last so it wins over the rules above.
   ========================================================================== */
@media (max-width: 820px) {
  /* Header: hides on scroll-down, reappears on scroll-up (see new.js). */
  .site-header.is-hidden { transform: translateY(-100%); }

  /* Hero photos: drop the soft drag-shadow, which reads as a grey halo
     once several photos sit close together in the swipeable row. */
  .drag { box-shadow: 0 0 0 1px var(--hair); }

  /* Sheets: the close cross sits on the photo, and content runs full width. */
  .sheet { position: relative; }
  .sheet-body { padding: 0; gap: 1.5rem 0; }
  .sheet-media img { border-radius: 0; }
  .sheet-media .grid2 { gap: 2px; }
  .sheet-text { padding: 0 1.4rem 3rem; }
  .sheet-close { position: absolute; top: .8rem; right: .8rem; margin: 0; z-index: 5; }

  /* Practice keywords: a tidy two-column grid instead of a ragged wrapped line. */
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
  .chips li + li::before { content: none; }
}

/* Roles kicker: reconstruct the dot-separated line with generated content,
   so the markup can switch to a clean stacked list on phones below. */
.hero-name { display: none; }
.pill--roles span:not(:last-child)::after { content: " · "; }

@media (max-width: 560px) {
  /* The page's title stands in for the header's hidden brand name. */
  .hero-name { display: block; font: 700 1rem/1 var(--sans); letter-spacing: .02em; color: var(--ink); margin-bottom: 1.3rem; }

  /* Roles kicker: a short aligned list instead of text that wraps mid-phrase. */
  .hero-text .pill--roles { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
  .pill--roles::before { display: none; }
  .pill--roles span:not(:last-child)::after { content: none; }
}
