/*
Theme Name: Lexi Sesock Portfolio
Author: Lexi Sesock
Description: A quiet, editable portfolio theme with a big red wordmark, black and white images that turn to color, and project pages with switchable grids.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lexi-sesock
*/

:root {
  --paper: #ffffff;
  --ink: #171616;
  --ink-2: #6f6c68;
  --mute: #b9b6b0;
  --line: #e4e2dd;
  --ph: #ebe9e4;
  --red: #910808;
  --on-red: #ffffff;
  --r: 5px;
  --gap: 10px;
  --ease: cubic-bezier(.65, .05, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--red); color: var(--on-red); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
p, h1, h2, h3, ul { margin-top: 0; margin-bottom: 0; }
figure { margin: 0; }

/* drifting paper grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .32  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grainshift 14s steps(1, end) infinite;
}
@keyframes grainshift {
  0% { background-position: 0 0; } 12% { background-position: -34px 21px; } 25% { background-position: 27px -48px; }
  37% { background-position: -61px -13px; } 50% { background-position: 44px 38px; } 62% { background-position: -22px 62px; }
  75% { background-position: 58px -27px; } 87% { background-position: -47px 40px; } 100% { background-position: 0 0; }
}

.wp-site-blocks { max-width: 1680px; margin: 0 auto; padding: 0 clamp(0px, 1.6vw, 28px); }
.label { font-size: 12.5px; letter-spacing: 0; font-weight: 500; }
.red { color: var(--red); }
.ulink a, a.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: color .25s; }
.ulink a:hover, a.ulink:hover { color: var(--red); }

/* ---------- header ---------- */
.lexi-header { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.admin-bar .lexi-header { top: 32px; }
.lexi-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 12px; }
.lexi-bar-r { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.lexi-mark { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.lexi-mark a { transition: color .35s ease; }
.lexi-mark .pg { color: var(--red); display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; opacity: 0; transform: translateX(-6px); transition: opacity .5s ease, transform .5s ease, max-width .5s ease; }
.lexi-mark .pg::before { content: "/\00a0"; color: var(--ink-2); margin-left: .45em; }
.lexi-header.showpg .pg { max-width: 30em; opacity: 1; transform: none; }

.lexi-nav { font-size: 13px; font-weight: 500; }
.lexi-nav .wp-block-navigation__container { gap: clamp(18px, 2.4vw, 38px); }
.lexi-nav .wp-block-navigation-item__content { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.lexi-nav .wp-block-navigation-item__content:hover,
.lexi-nav .has-child:hover > .wp-block-navigation-item__content,
.lexi-nav .has-child:focus-within > .wp-block-navigation-item__content,
.lexi-nav .current-menu-item > .wp-block-navigation-item__content,
.lexi-nav .current-menu-ancestor > .wp-block-navigation-item__content,
.lexi-nav .current-menu-parent > .wp-block-navigation-item__content { color: var(--red); border-bottom-color: var(--red); }
.lexi-nav .wp-block-navigation__submenu-icon { margin-left: 6px; }
.lexi-nav .wp-block-navigation__submenu-icon svg { width: 9px; height: 9px; }
.lexi-nav .has-child:hover .wp-block-navigation__submenu-icon { transform: rotate(180deg); }
.lexi-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
  right: -14px !important; left: auto !important; top: 100%; min-width: 240px; padding: 8px 0 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 36px -24px rgba(0,0,0,.4);
  color: var(--ink);
}
.lexi-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 20px; line-height: 1.35; border-bottom: 0; font-weight: 400; }
.lexi-nav .wp-block-navigation__submenu-container .lexi-all > a { color: var(--ink-2); }
.lexi-nav .wp-block-navigation__submenu-container .lexi-parent > a { font-weight: 500; }
.lexi-nav .wp-block-navigation__submenu-container .lexi-grp { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.lexi-nav .wp-block-navigation__submenu-container .lexi-child > a { padding-left: 34px; color: var(--ink-2); }
.lexi-nav .wp-block-navigation__submenu-container a:hover { color: var(--red); }
.lexi-nav .wp-block-navigation__responsive-container-open { padding: 8px 0; }
.lexi-nav .is-menu-open { font-size: 22px; letter-spacing: -.02em; }
.lexi-nav .is-menu-open .wp-block-navigation-item__content { padding: 12px 0; }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0; box-shadow: none; padding: 0 0 8px; }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 16px; padding: 8px 0; }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container .lexi-child > a { padding-left: 18px; }

/* color toggle */
.ctog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 6px 0; }
.ctog .trk { position: relative; width: 28px; height: 16px; border: 1px solid var(--ink); border-radius: 999px; transition: background .3s, border-color .3s; }
.ctog .trk::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s; }
.ctog[aria-checked="true"] .trk { background: var(--red); border-color: var(--red); }
.ctog[aria-checked="true"] .trk::after { transform: translateX(12px); background: #fff; }
.ctog:hover { color: var(--red); }
.lexi-bar-r > .wp-block-html { margin: 0; }

/* ---------- wordmark (big red page title) ---------- */
.wm { margin: clamp(26px, 4.5vw, 64px) 0 0; color: var(--red); font-weight: 500; line-height: .82; letter-spacing: -.055em; text-transform: uppercase; white-space: nowrap; font-size: clamp(2.4rem, 12vw, 14rem); }
.wm-in { display: inline-block; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(.06em); } to { opacity: 1; transform: none; } }
.wm-labels { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.wm-labels p { margin: 0; }

/* ---------- home: intro + featured slideshow ---------- */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(56px, 9vw, 150px); align-items: end; }
.intro-text { grid-column: 1 / 7; display: flex; flex-direction: column; gap: clamp(36px, 6vw, 96px); align-self: center; justify-content: center; }
.intro-text p, .gd-intro p:not(.label), .ab-txt p:not(.label):not(.sm):not(.ab-facts), .cf-note, .rs-side p:not(.label):not(.sm), .stub-note { margin: 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.22; letter-spacing: -.025em; max-width: 24em; }
.show { grid-column: 9 / 13; min-width: 0; }
.show-top { display: flex; justify-content: space-between; padding-bottom: 10px; }
.frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--ph); touch-action: pan-y; }
.sl { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.1s ease; }
.sl.on { opacity: 1; z-index: 1; }
.sl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; font-size: 13px; }
.show-foot .cat { color: var(--ink-2); margin-left: 8px; }
.show-foot .btns { display: flex; gap: 14px; }
.show-foot button { font-size: 15px; line-height: 1; padding: 4px 2px; transition: color .2s; }
.show-foot button:hover { color: var(--red); }
/* before the script builds the slideshow: show the first image only */
.lexi-hero:not(.built) .hero-slide:not(:first-child), .lexi-hero:not(.built) .hero-cap { display: none; }
.lexi-hero:not(.built) .hero-slide .t { aspect-ratio: 4 / 5; }

/* ---------- images ---------- */
.t { position: relative; overflow: hidden; border-radius: var(--r); background: var(--ph); display: block; width: 100%; max-width: 100%; }
.t > a { position: absolute; inset: 0; display: block; z-index: 1; }
.t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .8s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.t:hover img, .card:hover .t img, .rt:hover .t img, .pr:hover .t img { filter: none; transform: scale(1.03); }
.t.live img { filter: none; }
.t.nobw img, .lb img, .s2 img, .lexi-project .t img, .lexi-project .lexi-grid img, .lexi-project .lexi-inuse img { filter: none; }
.t.flip img { transform: scaleX(-1); }
.t.flip:hover img { transform: scaleX(-1) scale(1.03); }
html.colorall .t img, html.colorall .lexi-grid > .wp-block-image img, html.colorall .lexi-inuse > .wp-block-image img, body.lexi-project .lexi-grid > .wp-block-image img, body.lexi-project .lexi-inuse > .wp-block-image img { filter: none; }
html.nofade .t img { transition: none !important; }
.ar-4-3 { aspect-ratio: 4 / 3; } .ar-4-5 { aspect-ratio: 4 / 5; } .ar-1 { aspect-ratio: 1; } .ar-3-4 { aspect-ratio: 3 / 4; }
.ar-16-10 { aspect-ratio: 16 / 10; } .ar-21-8 { aspect-ratio: 21 / 8; }
.wp-block-image.t { margin: 0; }
/* the small "placeholder" tag, which disappears once a real image is used */
.t:has(img[src*="placeholder-"])::after { content: "Placeholder image"; position: absolute; left: 8px; top: 8px; z-index: 3; font-size: 10.5px; letter-spacing: 0; background: rgba(255,255,255,.92); padding: 3px 7px; border-radius: 3px; pointer-events: none; }
.lexi-grid > .wp-block-image:not(:first-child):has(img[src*="placeholder-"])::after,
.lexi-inuse .wp-block-image:has(img[src*="placeholder-"])::after,
.lb .wp-block-image::after, .hero-slide:not(:first-child) .t::after { display: none; }

section.wp-block-group, .group { padding-top: clamp(56px, 8vw, 120px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sec-head p { margin: 0; }

/* banner */
.banner-sec { padding-top: clamp(56px, 8vw, 120px); }
.banner { width: 100%; }
.banner-cap { display: flex; justify-content: space-between; padding-top: 12px; gap: 12px; }
.banner-cap p { margin: 0; }

/* reel */
.lexi-reel { display: flex; overflow-x: auto; overflow-y: hidden; gap: var(--gap); padding-top: clamp(18px, 2.6vw, 34px); cursor: grab; scrollbar-width: none; -ms-overflow-style: none; user-select: none; -webkit-user-select: none; overscroll-behavior-x: contain; }
.lexi-reel::-webkit-scrollbar { display: none; }
.lexi-reel.drag { cursor: grabbing; }
.lexi-reel.drag .rt { pointer-events: none; }
.rt { --h: clamp(220px, 30vw, 440px); flex: 0 0 auto; margin: 0; }
.rt .t { height: var(--h); width: calc(var(--h) * var(--ar, 1.333)); aspect-ratio: var(--ar, 1.333); }
.rt .ar-4-3 { --ar: 1.333; } .rt .ar-4-5 { --ar: .8; } .rt .ar-1 { --ar: 1; } .rt .ar-3-4 { --ar: .75; }
.rt img { -webkit-user-drag: none; }
.rcap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 13px; margin: 0; }
.rcap b { font-weight: 500; transition: color .2s; }
.rcap i { font-style: normal; color: var(--ink-2); }
.rt:hover .rcap b { color: var(--red); }
.rbar { position: relative; height: 1px; background: var(--line); margin-top: 22px; }
.rbar span { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--red); }
.hint { color: var(--ink-2); transition: opacity .5s; }
.hint.gone { opacity: 0; }
.more { display: flex; justify-content: center; padding-top: clamp(36px, 5vw, 72px); }
.more p { margin: 0; }
.rv { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rv:not(.in) { transform: translateY(20px); }

/* ---------- section pages and cards ---------- */
.gd-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(56px, 9vw, 150px); }
.gd-intro .label { grid-column: 1 / 4; padding-top: .2em; }
.gd-intro p:not(.label) { grid-column: 4 / 11; line-height: 1.3; letter-spacing: -.02em; max-width: 30em; }
.cards { display: grid; gap: var(--gap); padding-top: clamp(14px, 2vw, 24px); row-gap: clamp(28px, 4vw, 56px); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two .card .t { aspect-ratio: 16 / 10; }
.cards.four .card .t { aspect-ratio: 4 / 5; }
.card { display: block; min-width: 0; position: relative; }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 12px; align-items: baseline; }
.card h3 { margin: 0; font-size: clamp(16px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; transition: color .2s; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card .tg { color: var(--ink-2); text-align: right; margin: 0; }
.card-body p:not(.tg):not(.go) { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 14px; max-width: 38ch; }
.card .go { grid-column: 1 / -1; margin: 8px 0 0; color: var(--red); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.card:hover h3 { color: var(--red); }
.card:hover .go, .card:focus-within .go { opacity: 1; transform: none; }
@media (hover: none) { .card .go { opacity: 1; transform: none; } }
.stub-note { margin-top: clamp(48px, 8vw, 120px); }

/* ---------- project pages ---------- */
.crumb { display: flex; gap: 8px; flex-wrap: wrap; color: var(--ink-2); padding-top: clamp(28px, 4vw, 56px); }
.crumb a { transition: color .2s; }
.crumb a:hover { color: var(--red); }
.crumb .sep { color: var(--mute); }
.pj-title { margin: clamp(20px, 3vw, 40px) 0 0; font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.pj-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 18px; padding-bottom: clamp(32px, 5vw, 72px); }
.pj-id { grid-column: 1 / 5; }
.pj-ov { grid-column: 5 / 10; }
.pj-sc { grid-column: 10 / 13; }
.pj-meta { font-size: 14px; line-height: 1.6; }
.pj-meta strong { font-weight: 400; color: var(--ink-2); display: inline-block; min-width: 78px; }
.pj-ov p:not(.label) { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; max-width: 52ch; }
.pj-sc ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.pj-sc li { padding: 1px 0; }

.proj-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; }
.proj-head p { margin: 0; }
.vsw { display: flex; gap: 8px; align-items: center; }
.vsw button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--mute); transition: color .25s, transform .25s; }
.vsw button svg { width: 18px; height: 18px; fill: currentColor; }
.vsw button:hover { color: var(--red); }
.vsw button[aria-pressed="true"] { color: var(--ink); }
.vsw button:active { transform: scale(.88); }
.bcount { color: var(--ink-2); }

/* the galleries: one grid, the large image is a tile spanning two columns and rows */
.wp-block-gallery.lexi-grid, .wp-block-gallery.lexi-inuse { display: grid !important; gap: var(--gap) !important; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.lexi-grid.v2, .lexi-inuse.v2 { grid-template-columns: repeat(2, 1fr) !important; }
.lexi-grid.v4, .lexi-inuse.v4 { grid-template-columns: repeat(4, 1fr) !important; }
.lexi-grid.v6, .lexi-inuse.v6 { grid-template-columns: repeat(6, 1fr) !important; }
.lexi-grid > .wp-block-image, .lexi-inuse > .wp-block-image {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--ph); aspect-ratio: 4 / 3;
  width: auto !important; margin: 0 !important; flex: none !important; min-width: 0; cursor: pointer; will-change: transform;
}
.lexi-grid > .wp-block-image img, .lexi-inuse > .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .8s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.lexi-grid > .wp-block-image:hover img, .lexi-inuse > .wp-block-image:hover img { filter: none; transform: scale(1.03); }
.lexi-grid > .wp-block-image::after { top: 8px; }
.lexi-grid > .big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.lexi-grid.v2 > .big { grid-row: span 1; aspect-ratio: 4 / 3; }
.lexi-grid.moving img, .lexi-inuse.moving img { transition-duration: .01ms; }
.wp-block-gallery figcaption { display: none; }
.lexi-inuse-wrap[hidden], .allwrap[hidden] { display: none; }
.allwrap { padding-top: clamp(18px, 2.4vw, 28px); }
.inuse { margin-top: clamp(56px, 8vw, 120px); }
.inuse > .label { margin-bottom: 12px; }
.inuse.built > .label { display: none; }
.seeall { padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .25s; }
.seeall:hover { color: var(--red); }
.show2 { position: relative; aspect-ratio: 21 / 9; border-radius: var(--r); overflow: hidden; background: var(--ph); cursor: pointer; }
.s2 { position: absolute; inset: 0; transform: translate3d(100%,0,0); will-change: transform; }
.s2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s2ctl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; font-size: 13px; }
.s2count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.s2count b { color: var(--red); font-weight: 500; }
.s2btns { display: flex; align-items: center; gap: 18px; }
.s2btns button { font-size: 13px; line-height: 1; padding: 4px 2px; transition: color .2s; }
.s2btns button.arrow { font-size: 15px; }
.s2btns button:hover { color: var(--red); }
/* without the script: just show the in-use gallery as a normal grid */
html:not(.js) .lexi-inuse { display: grid; }

/* full-screen viewer */
.lb { position: fixed; inset: 0; z-index: 150; background: var(--paper); display: none; flex-direction: column; opacity: 0; transition: opacity .3s ease; }
.lb.open { display: flex; }
.lb.show { opacity: 1; }
.lb-top, .lb-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.lb-bot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.lb-top button, .lb-btns button { transition: color .2s; }
.lb-top button:hover, .lb-btns button:hover { color: var(--red); }
.lb-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px max(16px, env(safe-area-inset-left, 0px)); touch-action: pan-y; }
.lb-img { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: var(--ar); width: min(92vw, calc((100svh - 240px) * var(--ar))); background: var(--ph); animation: lbin .4s ease both; }
.lb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
@keyframes lbin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb-cap { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.lb-count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb-count b { color: var(--red); font-weight: 500; }
.lb-sub { color: var(--ink-2); }
.lb-btns { display: flex; gap: 22px; }
.lb-btns button { font-size: 22px; line-height: 1; padding: 6px 2px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px max(16px, env(safe-area-inset-left, 0px)) 14px; justify-content: safe center; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-th { flex: none; width: 72px; aspect-ratio: 4 / 3; position: relative; border-radius: 3px; overflow: hidden; opacity: .45; outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity .25s, outline-color .25s; background: var(--ph); }
.lb-th:hover { opacity: .85; }
.lb-th.on { opacity: 1; outline-color: var(--red); }
.lb-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-gap { flex: none; width: 1px; background: var(--ink-2); opacity: .35; margin: 4px 4px; }

/* next project */
.pnext { display: block; margin-top: clamp(48px, 6vw, 90px); border-top: 1px solid var(--ink); padding-top: 14px; }
.pnext .pn { display: block; margin-top: 10px; font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; transition: color .3s; }
.pnext:hover .pn { color: var(--red); }
.pnext .pn i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.pnext:hover .pn i { transform: translateX(6px); }

/* ---------- about ---------- */
.ab-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(56px, 9vw, 150px); align-items: start; }
.ab-pic { grid-column: 1 / 6; }
.ab-pic .t { aspect-ratio: 4 / 5; }
.ab-txt { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 22px; }
.ab-txt p.sm { font-size: 15px; line-height: 1.5; letter-spacing: -.005em; color: var(--ink-2); max-width: 36em; margin: 0; }
.ab-txt p { margin: 0; }
.ab-facts { font-size: 14px; line-height: 1.7; margin-top: 6px !important; }
.ab-facts strong { font-weight: 400; color: var(--ink-2); display: inline-block; min-width: 64px; margin-right: 12px; }
.press { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); padding-top: clamp(14px, 2vw, 24px); }
.pr .t { aspect-ratio: 16 / 10; }
.pr-body { padding-top: 12px; display: grid; gap: 6px; justify-items: start; }
.pr-body p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 38ch; }
.pr-body .pub { color: var(--ink-2); font-size: 12.5px; }
.pr-body h3 { margin: 0; font-size: clamp(16px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }

/* buttons: pill outline */
.btn .wp-block-button__link, .btn a, .contact-submit input, .contact-form input[type="submit"] {
  display: inline-block; margin-top: 10px; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 13px; line-height: 1.4; font-weight: 400;
  background: transparent; color: var(--ink); transition: background .25s, color .25s, border-color .25s; cursor: pointer; font-family: inherit;
}
.btn .wp-block-button__link:hover, .contact-submit input:hover, .contact-form input[type="submit"]:hover { background: var(--red); border-color: var(--red); color: var(--on-red); }
.wp-block-buttons { margin: 0; }
.wp-block-file__button.wp-element-button, .wp-block-file .wp-block-file__button {
  display: inline-block; margin-top: 10px; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 22px; font-size: 14px; line-height: 1.4; font-weight: 400;
  background: transparent; color: var(--ink); transition: background .25s, color .25s, border-color .25s;
}
.wp-block-file__button:hover { background: var(--red) !important; border-color: var(--red); color: var(--on-red) !important; }

/* contact form (Jetpack form or the built-in fallback) */
.cform { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(14px, 2vw, 24px); }
.cform .cf-note { grid-column: 1 / 6; }
.cf-form { grid-column: 7 / 13; }
.cf-form .contact-form, .cf-form form { display: grid; gap: 18px; }
.cf-form .grunion-field-wrap, .cf-form .wp-block-jetpack-field-name, .cf-form .wp-block-jetpack-field-email, .cf-form .wp-block-jetpack-field-textarea { display: grid; gap: 6px; }
.cf-form label { font-size: 13px; color: var(--ink-2); font-weight: 400; }
.cf-form label span { font-size: 11px; color: var(--mute); margin-left: 6px; font-weight: 400; }
.cf-form input[type="text"], .cf-form input[type="email"], .cf-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 8px 0; outline: none; width: 100%; transition: border-color .25s; box-shadow: none;
}
.cf-form textarea { min-height: 120px; resize: vertical; }
.cf-form input:focus, .cf-form textarea:focus { border-bottom-color: var(--red); }
.cf-form .contact-submit { margin: 0; }
.contact-form-submission, .cf-form .form-success { font-size: 18px; }

/* ---------- resume ---------- */
.rs { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(56px, 9vw, 150px); align-items: start; }
.rs-side { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 18px; }
.rs-side p { margin: 0; }
.rs-side .sm { font-size: 14px; line-height: 1.5; letter-spacing: 0; color: var(--ink-2); max-width: 28ch; }
.rs-doc { grid-column: 5 / 13; }
.rs-doc .wp-block-file { margin: 0; }
.rs-doc .wp-block-file__embed { display: block; width: 100%; border-radius: var(--r); box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 18px 40px -22px rgba(20,20,20,.25); background: #fff; min-height: 560px; }
.rs-doc .wp-block-file > a:not(.wp-block-file__button) { display: none; }

/* ---------- footer ---------- */
.lexi-footer { padding-top: clamp(80px, 11vw, 170px); padding-bottom: 24px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--ink); margin-top: clamp(40px, 6vw, 90px); padding-top: 14px; font-size: 12.5px; font-weight: 500; }
.foot-row .foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-row a:hover { color: var(--red); }
.foot-row p { margin: 0; }
.foot-row > .wp-block-shortcode { margin: 0; }
.soc.wp-block-social-links { gap: 14px; margin: 0; padding: 0; }
.soc .wp-social-link { background: none !important; margin: 0; }
.soc .wp-social-link a { padding: 2px; transition: color .2s, transform .25s; }
.soc .wp-social-link a:hover { color: var(--red); transform: translateY(-2px); }
.soc .wp-social-link svg { width: 20px; height: 20px; }

/* "View" cursor over project previews */
.vcur { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--red); color: var(--on-red); display: grid; place-items: center; font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: 0; translate: -100px -100px; scale: .4; transition: opacity .25s ease, scale .3s cubic-bezier(.2,.7,.2,1); }
.vcur.on { opacity: .92; scale: 1; }
.vcur.down { scale: .8; }
.vcur-live, .vcur-live * { cursor: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .gd-intro .label, .gd-intro p:not(.label) { grid-column: 1 / -1; }
  .intro-text { grid-column: 1 / -1; gap: 28px; }
  .show { grid-column: 1 / -1; }
  .intro { align-items: start; }
  .banner { aspect-ratio: 16 / 10; }
  .pj-id, .pj-ov, .pj-sc { grid-column: 1 / -1; }
  .pj-top { row-gap: 28px; }
}
@media (max-width: 760px) {
  .cards.two { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .rt { --h: clamp(220px, 62vw, 340px); }
  .lexi-grid.v2, .lexi-inuse.v2 { grid-template-columns: repeat(2, 1fr) !important; }
  .lexi-grid.v4, .lexi-inuse.v4 { grid-template-columns: repeat(3, 1fr) !important; }
  .lexi-grid.v6, .lexi-inuse.v6 { grid-template-columns: repeat(4, 1fr) !important; }
  .wp-block-gallery.lexi-grid, .wp-block-gallery.lexi-inuse { gap: 8px !important; }
  .show2 { aspect-ratio: 4 / 3; }
  .lb-th { width: 56px; }
  .ab-pic, .ab-txt, .cform .cf-note, .cf-form { grid-column: 1 / -1; }
  .ab-top { row-gap: 28px; }
  .cform { row-gap: 24px; }
  .press { grid-template-columns: 1fr; row-gap: 32px; }
  .rs-side, .rs-doc { grid-column: 1 / -1; }
  .rs-side { position: static; }
  .rs { row-gap: 28px; }
}
@media (max-width: 640px) {
  .wm-labels .mid { display: none; }
  .wm .ln { display: block; }
  .wm .sp { display: none; }
  .wm { line-height: .84; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv:not(.in) { transform: none; }
}

/* mobile menu overlay: left aligned list */
.lexi-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 16px; }
.lexi-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; }
.lexi-nav .is-menu-open .wp-block-navigation__container,
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; width: 100%; gap: 0; }
.lexi-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start; width: 100%; border-bottom: 1px solid var(--line); }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border-bottom: 0; }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container .lexi-grp { border-top: 0; margin-top: 0; padding-top: 0; }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
html:has(.lb.open) .vcur { opacity: 0 !important; }
.lexi-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-size: 22px; letter-spacing: -.02em; font-weight: 500; }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container { padding-left: 0 !important; }
.lexi-nav .is-menu-open .wp-block-navigation__submenu-container .lexi-child > a { padding-left: 16px; }

/* ---------- phone refinements ---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wm { margin-top: 22px; }
  .intro, .gd-intro, .ab-top, .rs { margin-top: 40px; }
  .intro { row-gap: 32px; }
  .intro-text { gap: 20px; }
  section.wp-block-group, .group, .banner-sec { padding-top: 56px; }
  .inuse { margin-top: 56px; }
  .cards { row-gap: 36px; }
  .rt { --h: clamp(200px, 56vw, 320px); }
  .lexi-header .lexi-bar-in { padding: 14px 0 10px; }
  /* bigger tap targets */
  .show-foot button { font-size: 20px; min-width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; }
  .show-foot .btns { gap: 0; }
  .vsw button { width: 40px; height: 40px; }
  .vsw { gap: 2px; margin-left: -8px; }
  .s2btns button { min-height: 44px; padding: 0 6px; }
  .s2btns { gap: 8px; }
  .lb-btns button { min-width: 48px; min-height: 48px; }
  .lb-top button { min-height: 44px; padding: 0 4px; }
  .ctog { min-height: 44px; }
  .lexi-nav .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn .wp-block-button__link, .wp-block-file__button { padding: 12px 22px; font-size: 14px; }
  .cf-form input[type="text"], .cf-form input[type="email"], .cf-form textarea { font-size: 16px; padding: 12px 0; }
  .foot-row { gap: 14px 18px; }
  .foot-row .copy { width: 100%; order: 3; color: var(--ink-2); }
  .foot-row .foot-nav a { padding: 8px 0; }
  .soc .wp-social-link a { padding: 8px; }
  /* resume: phones do not preview PDFs well, so show clear buttons instead */
  .rs-doc .wp-block-file__embed { display: none; }
  .rs-doc .wp-block-file { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); }
  .rs-doc .wp-block-file > a:not(.wp-block-file__button) { display: inline-block; font-size: clamp(18px, 5vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
  .rs-doc .wp-block-file > a:not(.wp-block-file__button)::after { content: " \2197"; color: var(--red); }
}


/* =====================================================================
   DARK MODE (switch in the phone menu)
   ===================================================================== */
html[data-lexi="dark"] { --paper: #121110; --ink: #f0ede8; --ink-2: #a39e97; --mute: #8c8780; --line: #2d2a28; --ph: #1d1b1a; --red: #e2574c; --on-red: #121110; color-scheme: dark; }
html[data-lexi="dark"] { --wp--preset--color--paper: #121110; --wp--preset--color--ink: #f0ede8; --wp--preset--color--grey: #a39e97; --wp--preset--color--line: #2d2a28; --wp--preset--color--red: #e2574c; }
html[data-lexi="dark"] body { background: var(--paper); color: var(--ink); }
html[data-lexi="dark"] .soc .wp-social-link a, html[data-lexi="dark"] .soc .wp-social-link { color: var(--ink) !important; }
html[data-lexi="dark"] body::after { mix-blend-mode: screen; filter: invert(1); opacity: .28; }
html[data-lexi="dark"] .t:has(img[src*="placeholder-"])::after, html[data-lexi="dark"] .lexi-grid > .wp-block-image:has(img[src*="placeholder-"])::after { background: rgba(18,17,16,.9); color: var(--ink); }
html[data-lexi="dark"] .rs-doc .wp-block-file__embed { box-shadow: 0 0 0 1px var(--line); }
html[data-lexi="dark"] .ctog[aria-checked="true"] .trk::after { background: #121110; }

.m-hello, .m-cs, .m-toast, .m-pal, .m-sw, .m-peek { display: none; }

/* =====================================================================
   PHONE EXPERIENCE: swipe slideshow, header menu sheet, one big image per card
   ===================================================================== */
.m-hero, .m-menubtn, .m-sheet { display: none; }
.lb-stage { touch-action: none; }
.lexi-grid.v1, .lexi-inuse.v1 { grid-template-columns: 1fr !important; }
.lexi-grid.v1 > .big { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }

@media (max-width: 760px) {
  .lexi-nav, .lexi-header .wp-block-navigation { display: none !important; }
  html, body { overflow-x: clip; }
  .lexi-header, .admin-bar .lexi-header { position: sticky; top: 0; z-index: 90; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
  .lexi-bar-r { gap: 6px; }

  /* menu button + drop-down sheet */
  .m-menubtn { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -6px; color: var(--ink); -webkit-tap-highlight-color: transparent; }
  .m-menubtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .m-menubtn path { transition: transform .35s cubic-bezier(.2,.8,.2,1); transform-origin: 12px 12px; }
  .m-menubtn.on .l1 { transform: translateY(4px) rotate(45deg); }
  .m-menubtn.on .l2 { transform: translateY(-4px) rotate(-45deg); }
  .m-sheet { display: block; position: fixed; inset: 0; z-index: 80; pointer-events: none; }
  .m-sheet-bg { position: absolute; inset: 0; background: rgba(10,10,10,.4); opacity: 0; transition: opacity .3s ease; }
  .m-sheet-panel { position: absolute; left: 0; right: 0; top: 0; max-height: 96svh; overflow-y: auto; background: var(--paper); border-radius: 0 0 20px 20px; padding: calc(58px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-left, 0px)) 22px; transform: translateY(-105%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .m-sheet.open { pointer-events: auto; }
  .m-sheet.open .m-sheet-bg { opacity: 1; }
  .m-sheet.open .m-sheet-panel { transform: none; }
  .m-menubtn.on { position: relative; z-index: 90; }
  .m-link { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 6px 0; font-size: 24px; letter-spacing: -.035em; font-weight: 500; -webkit-tap-highlight-color: transparent; }
  .m-link:active, .m-sl:active { color: var(--red); }
  .m-acc i { width: 14px; height: 14px; position: relative; flex: none; color: var(--red); }
  .m-acc i::before, .m-acc i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.6px; background: currentColor; transition: transform .3s; }
  .m-acc i::after { transform: rotate(90deg); }
  .m-acc[aria-expanded="true"] i::after { transform: rotate(0); }
  .m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1); }
  .m-sub.open { grid-template-rows: 1fr; }
  .m-sub > div { overflow: hidden; display: grid; padding-left: 2px; }
  .m-sl { padding: 5px 0; font-size: 16px; color: var(--ink-2); }
  .m-sl.all { color: var(--ink); font-weight: 500; padding-top: 6px; }
  .m-sl.parent { color: var(--ink); font-weight: 500; margin-top: 6px; }
  .m-sl.child { padding-left: 16px; font-size: 15px; padding-block: 4px; }
  .m-sub.open > div { padding-bottom: 10px; }

  /* home: swipe slideshow with story bars */
  .lexi-hero.built .show-top, .lexi-hero.built .frame, .lexi-hero.built .show-foot { display: none; }
  .m-hero { display: block; position: relative; }
  .m-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 4px; }
  .m-track::-webkit-scrollbar { display: none; }
  .m-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 4 / 5; max-height: 70svh; position: relative; }
  .m-slide::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); z-index: 2; pointer-events: none; }
  .m-slide.t:has(img[src*="placeholder-"])::after { top: 12px; left: 12px; }
  .m-cap { position: absolute; left: 14px; right: 14px; bottom: 18px; z-index: 3; color: #fff; display: grid; gap: 4px; pointer-events: none; }
  .m-cap b { font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
  .m-cap i { font-style: normal; font-size: 13px; opacity: .88; }
  .m-hero { display: flex; flex-direction: column; }
  .m-bars { order: 2; display: flex; gap: 6px; margin-top: 14px; }
  .m-bars i { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
  .m-bars i::after { content: ""; display: block; height: 100%; width: 0; background: var(--red); }
  .m-bars i.done::after { width: 100%; }
  .m-bars i.on::after { animation: mfill 3.6s linear forwards; }
  .m-hero.hold .m-bars i.on::after { animation-play-state: paused; }
  @keyframes mfill { to { width: 100%; } }
  .intro { row-gap: 22px; }

  .banner-sec .banner { aspect-ratio: 4 / 3; }
  .lexi-reel { scroll-snap-type: x mandatory; cursor: auto; }
  .lexi-reel { scroll-padding-inline: 0; gap: 10px; }
  .rt { width: min(84vw, 440px); scroll-snap-align: start; }
  .rt .t { width: 100%; height: auto; aspect-ratio: 4 / 3; }

  /* collections: one large card per row, title on the image */
  .cards.two, .cards.four { grid-template-columns: 1fr; }
  .cards { gap: 10px; row-gap: 10px; }
  .cards .card .t, .cards.two .card .t, .cards.four .card .t { aspect-ratio: 4 / 5; }
  .card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 70px 14px 16px; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; gap: 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; pointer-events: none; border-radius: 0 0 4px 4px; }
  .card h3, .card:hover h3 { font-size: 26px; letter-spacing: -.035em; color: #fff; }
  .card .tg { color: rgba(255,255,255,.85); margin: 0 0 4px; font-size: 12.5px; }
  .card-body p:not(.tg), .card .go { display: none; }
  .card h3 a { pointer-events: auto; }
  .card .t:has(img[src*="placeholder-"])::after { top: 12px; left: 12px; }


  /* dark mode switch in the menu */
  .m-opts { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
  .m-sw { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 0; font-size: 15px; color: var(--ink-2); }
  .lexi-header .ctog, .lexi-header .dtog { display: none; }
  .m-sw i { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--ink-2); transition: background .3s, border-color .3s; }
  .m-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s; }
  .m-sw[aria-checked="true"] i { background: var(--red); border-color: var(--red); }
  .m-sw[aria-checked="true"] i::after { transform: translateX(18px); background: #fff; }

  /* palette strip */
  .m-pal { display: block; padding: 0 0 26px; }
  .m-pal-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-top: 12px; }
  .m-sw-c { display: grid; gap: 8px; text-align: left; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
  .m-sw-c:active { transform: scale(.94); }
  .m-sw-c i { display: block; aspect-ratio: 1 / 1.25; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.25); }
  .m-sw-c span { font-size: 10.5px; color: var(--ink-2); letter-spacing: .01em; }
  .m-toast { display: block; position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 13px; padding: 10px 16px; border-radius: 999px; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
  .m-toast.on { opacity: 1; transform: translate(-50%, 0); }

  /* say hello pill and pop-up */
  .m-hello { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--red); color: var(--on-red); font-size: 14px; font-weight: 500; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 28px -10px rgba(0,0,0,.55); opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none; transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1); -webkit-tap-highlight-color: transparent; }
  .m-hello.show { opacity: 1; transform: none; pointer-events: auto; }
  .m-hello:active { transform: scale(.94); }
  .m-hello i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-red); animation: mping 2.4s ease-in-out infinite; }
  @keyframes mping { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  html.m-lock { overflow: hidden; }
  .m-cs { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
  .m-cs-bg { position: absolute; inset: 0; background: rgba(10,10,10,.45); opacity: 0; transition: opacity .3s; }
  .m-cs-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; background: var(--paper); border-radius: 20px 20px 0 0; padding: 10px max(20px, env(safe-area-inset-left, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 50px -30px rgba(0,0,0,.5); }
  .m-cs.open { pointer-events: auto; }
  .m-cs.open .m-cs-bg { opacity: 1; }
  .m-cs.open .m-cs-panel { transform: none; }
  .m-cs .m-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; padding: 12px 40px; background-clip: content-box; touch-action: none; box-sizing: content-box; }
  .m-cs-x { position: absolute; right: 14px; top: 18px; width: 36px; height: 36px; font-size: 28px; line-height: 1; color: var(--ink-2); }
  .m-cs-lead { margin: 6px 0 22px; font-size: 20px; letter-spacing: -.02em; line-height: 1.3; max-width: 22em; }
  .m-cs .cf-form { grid-column: auto; }

  /* press and hold peek */
  .lexi-grid > .wp-block-image, .lexi-inuse > .wp-block-image, .cards .card, .rt, .pr .t { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .lexi-grid img, .lexi-inuse img, .cards img, .rt img, .pr img { -webkit-touch-callout: none; -webkit-user-drag: none; }
  .m-peek { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: fixed; inset: 0; z-index: 140; background: rgba(10,10,10,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .22s ease; pointer-events: none; }
  .m-peek.on { opacity: 1; }
  .m-peek figure { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); transform: scale(.86); transition: transform .35s cubic-bezier(.2,.8,.2,1); background: var(--ph); }
  .m-peek.on figure { transform: none; }
  .m-peek img { display: block; width: 100%; height: 100%; object-fit: cover; filter: none; }
  .m-peek p { margin: 0; color: #fff; opacity: .85; }

  /* about: press articles scroll sideways */
  .press { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; overscroll-behavior-x: contain; padding-bottom: 30px; margin-bottom: -22px; }
  .press::-webkit-scrollbar { display: none; }
  .pr { flex: 0 0 82%; scroll-snap-align: start; }

  /* project: text first, then images, like desktop */
  .pj-top { padding-bottom: 28px; }
  .proj-head { padding-bottom: 14px; }
  .pj-title { font-size: 38px; letter-spacing: -.045em; }
  .proj-head .bcount { display: none; }
  .proj-head .vsw { margin-left: -8px; margin-right: auto; }
  .lexi-grid > .wp-block-image { grid-column: auto; }

  /* colour follows scroll position */
  html.sg:not(.colorall) body:not(.lexi-project) .t:not(.m-slide) img { filter: grayscale(var(--g, 1)) contrast(calc(1 + .05 * var(--g, 1))); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }

  /* viewer */
  .lb-img { width: min(calc(100vw - 32px), calc((100svh - 240px) * var(--ar))); }
}


/* ---------- desktop dark toggle, palette strip, true-shape project images, etching feature image ---------- */
.lexi-bar-r { gap: 0; }
.lexi-bar-r .ctog { margin-left: 24px; }
.lexi-bar-r .dtog { margin-left: 20px; }
.ctog span:first-child { white-space: nowrap; }
@media (min-width: 761px) {
  .m-pal { display: block; padding: 0 0 clamp(32px, 5vw, 72px); }
  .m-pal-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); padding-top: 12px; }
  .m-sw-c { display: grid; gap: 8px; text-align: left; cursor: pointer; }
  .m-sw-c i { display: block; height: clamp(64px, 7vw, 108px); border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(128,128,128,.25); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  .m-sw-c:hover i { transform: translateY(-3px); }
  .m-sw-c span { font-size: 12px; color: var(--ink-2); letter-spacing: .02em; }
  .m-sw-c:hover span { color: var(--red); }
  .m-toast { display: block; position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 13px; padding: 10px 16px; border-radius: 999px; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
  .m-toast.on { opacity: 1; transform: translate(-50%, 0); }
}

/* project images keep their own shape: masonry columns (placed by lexi.js), no cropping */
body.lexi-project .wp-block-gallery.lexi-grid, body.lexi-project .wp-block-gallery.lexi-inuse { grid-auto-rows: 1px; row-gap: 0 !important; grid-auto-flow: row; align-items: start; }
body.lexi-project .lexi-grid > .wp-block-image, body.lexi-project .lexi-inuse > .wp-block-image { width: 100% !important; aspect-ratio: auto !important; align-self: start; }
body.lexi-project .lexi-grid > .wp-block-image img, body.lexi-project .lexi-inuse > .wp-block-image img { position: static; inset: auto; width: 100%; height: auto; object-fit: initial; }

/* etching: main image beside the text, laid out like the About page */
.pj-feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 96px); }
.pj-feature > .pj-main { grid-column: 1 / 6; margin: 0; }
.pj-feature .pj-main img { display: block; width: 100%; height: auto; border-radius: var(--r); filter: none; }
.pj-feature > .pj-top { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 22px; margin-top: 0; padding-bottom: 0; }
.pj-feature .pj-ov { order: 1; display: flex; flex-direction: column; gap: 22px; }
.pj-feature .pj-id { order: 2; }
.pj-feature .pj-sc { order: 3; }
.pj-feature .pj-ov .label { color: var(--red); margin: 0; }
.pj-feature .pj-ov p:not(.label) { margin: 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.22; letter-spacing: -.025em; max-width: 24em; }
.pj-feature .pj-meta { font-size: 14px; line-height: 1.7; margin: 0; }
.pj-feature .pj-meta strong { min-width: 64px; margin-right: 12px; }
.pj-feature .pj-sc .label { margin-bottom: 2px; }
.pj-feature > .pj-mainwrap, .pj-feature > .pj-mains { grid-column: 1 / 6; }
.pj-mains.built { position: relative; display: block !important; aspect-ratio: var(--pr, 4 / 3); border-radius: var(--r); overflow: hidden; background: var(--ph); margin: 0; cursor: pointer; touch-action: pan-y; }
.wp-block-gallery.pj-mains.built > figure.wp-block-image { position: absolute !important; inset: 0; margin: 0 !important; width: 100% !important; height: 100% !important; flex: none !important; opacity: 0; transition: opacity .9s ease; }
.wp-block-gallery.pj-mains.built > figure.wp-block-image.on { opacity: 1; }
.wp-block-gallery.pj-mains.built figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; }
.pj-mains:not(.built) > .wp-block-image { margin: 0 0 var(--gap); }
@media (max-width: 900px) {
  .pj-feature { margin-top: 22px; padding-bottom: 36px; row-gap: 28px; }
  .pj-feature > .pj-main, .pj-feature > .pj-mainwrap, .pj-feature > .pj-mains, .pj-feature > .pj-top { grid-column: 1 / -1; }
}

/* ---------- award banner on project pages: skinny full-bleed red strip, text scrolls ---------- */
body.lexi-project { overflow-x: clip; }
.pj-top > .pj-award { grid-column: 1 / -1; position: relative; overflow: hidden; margin: 10px calc(50% - 50vw) clamp(10px, 1.6vw, 20px); padding: 0; height: 26px; background: var(--red); color: var(--on-red); font-size: 0; line-height: 0; white-space: nowrap; border-radius: 0; }
.pj-top > .pj-award::before { content: "Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 Gold ADDY Award\2003 \2003 \2003 \2003 \2003 AAF Lansing\2003 \2003 \2003 \2003 \2003 "; display: inline-block; font-size: 12px; line-height: 26px; font-weight: 500; letter-spacing: .02em; animation: pj-tick 160s linear infinite; will-change: transform; }
@keyframes pj-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pj-top > .pj-award::before { animation: none; } }

/* resume, desktop: large page preview on the right, download button under the intro text */
.rs-doc .rs-ph { margin: 0; }
.rs-doc .rs-ph img { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 18px 40px -22px rgba(20,20,20,.25); }
.rs-doc .wp-block-file { margin: 0; }
html[data-lexi="dark"] .rs-doc .rs-ph img { box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 761px) {
  .rs { grid-template-rows: auto auto 1fr; }
  .rs-side { grid-row: 1; }
  .rs-doc, .rs-doc .wp-block-file { display: contents; }
  .rs-doc .rs-ph { grid-column: 5 / 13; grid-row: 1 / span 3; }
  .rs-doc .wp-block-file__button.wp-element-button { grid-column: 1 / 5; grid-row: 2; justify-self: start; align-self: start; margin: 0; padding: 10px 22px; font-size: 14px; display: inline-flex; align-items: center; }
  .rs-doc .wp-block-file__button.wp-element-button::after { content: "\00a0resume (PDF) \2193"; }
}
@media (max-width: 760px) { .rs-doc .rs-ph { display: none; } }

.pj-palette-data { display: none !important; }

/* carousels row: all slides in one sideways strip, extra space between each post */
.lexi-reel.car .rt.car-first:not(:first-child) { margin-left: clamp(24px, 4vw, 64px); }
.lexi-reel.car .rcap { gap: 18px; }
.lexi-reel.car .rcap b { max-width: 24ch; }
@media (max-width: 760px) {
  .lexi-reel.car .rt { width: 72vw; max-width: 340px; }
  .lexi-reel.car .rt .t { width: 100%; height: auto; aspect-ratio: var(--ar, 1); }
  .lexi-reel.car .rt.car-first:not(:first-child) { margin-left: 22px; }
}

/* clickable 'Interactive 3D rendering' hotspot sitting over the link printed on the mailer page */
.wp-block-gallery figure.hot3d { position: relative; }
.wp-block-gallery figure.hot3d figcaption { cursor: pointer; display: block; position: absolute; left: 1.6%; bottom: 4.6%; width: 12.4%; min-width: 64px; height: 3.2%; min-height: 20px; margin: 0; padding: 0; background: transparent; z-index: 2; }
.wp-block-gallery figure.hot3d figcaption a { display: block !important; position: absolute; inset: 0; width: auto; height: auto; font-size: 0; color: transparent; border-radius: 3px; text-decoration: none; transition: box-shadow .2s, background .2s; }
.wp-block-gallery figure.hot3d figcaption a:hover, .wp-block-gallery figure.hot3d figcaption a:focus-visible { background: rgba(145,8,8,.10); box-shadow: 0 0 0 1.5px var(--accent, #910808); }

/* process reel: slides keep their own proportions */
.rt .ar-125 { --ar: 1.252; aspect-ratio: 1.252; } .rt .ar-131 { --ar: 1.311; aspect-ratio: 1.311; } .rt .ar-183 { --ar: 1.834; aspect-ratio: 1.834; }
.lexi-reel.car .rt .t { background: #fff; }

/* process slides: each keeps its own cropped proportions */
.rt .ar-pr-type { --ar: 2.257; aspect-ratio: 2.257; }
.rt .ar-pr-flow { --ar: 1.448; aspect-ratio: 1.448; }
.rt .ar-pr-logo1 { --ar: 1.914; aspect-ratio: 1.914; }
.rt .ar-pr-logo2 { --ar: 1.946; aspect-ratio: 1.946; }
.rt .ar-pr-logo3 { --ar: 1.898; aspect-ratio: 1.898; }
.rt .ar-pr-logo4 { --ar: 1.219; aspect-ratio: 1.219; }
.rt .ar-pr-box1 { --ar: 1.359; aspect-ratio: 1.359; }
.rt .ar-pr-box2 { --ar: 0.856; aspect-ratio: 0.856; }
.rt .ar-pr-box3 { --ar: 2.544; aspect-ratio: 2.544; }
.lexi-reel.car .rt .t { box-shadow: 0 0 0 1px var(--line, rgba(20,20,20,.1)); }
.lexi-reel.car { align-items: flex-start; }
@media (max-width: 760px) { .lexi-reel.car.proc .rt { width: auto; max-width: none; } .lexi-reel.car.proc .rt .t { height: 185px; width: calc(185px * var(--ar, 1.3)); aspect-ratio: var(--ar, 1.3); } }

/* process slides: original uncropped proportions, white margins kept */
.rt .ar-pr-type { --ar: 1.834; aspect-ratio: 1.834; }
.rt .ar-pr-flow { --ar: 1.834; aspect-ratio: 1.834; }
.rt .ar-pr-logo1 { --ar: 1.252; aspect-ratio: 1.252; }
.rt .ar-pr-logo2 { --ar: 1.252; aspect-ratio: 1.252; }
.rt .ar-pr-logo3 { --ar: 1.252; aspect-ratio: 1.252; }
.rt .ar-pr-logo4 { --ar: 1.252; aspect-ratio: 1.252; }
.rt .ar-pr-box1 { --ar: 1.311; aspect-ratio: 1.311; }
.rt .ar-pr-box2 { --ar: 1.311; aspect-ratio: 1.311; }
.rt .ar-pr-box3 { --ar: 1.311; aspect-ratio: 1.311; }

/* palette rows: primary / secondary */
.m-pal-lab { margin: 18px 0 0; font-size: 12px; color: var(--ink-2); }
.m-pal .label.red + .m-pal-lab { margin-top: 12px; }
.m-pal-lab + .m-pal-row { padding-top: 8px; }

/* looping video tile (carousel slide) */
.t video, .lb-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: none; pointer-events: none; }

/* A/B test pairs: control left, variant right, always side by side */
.lexi-ab { display: grid; gap: clamp(28px, 4vw, 56px); padding-top: clamp(18px, 2.6vw, 34px); }
.ab-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.ab-cell { min-width: 0; display: grid; gap: 10px; align-content: start; }
.ab-cell .wp-block-image.t { margin: 0; cursor: zoom-in; }
.ab-cell .wp-block-image.t img { object-fit: cover; }
.ab-lab { margin: 0; font-size: 12px; color: var(--ink-2); }
.ab-lab.red { color: var(--red); }

/* A/B test: compact, three pairs across on larger screens */
@media (min-width: 761px) {
  .lexi-ab { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); row-gap: 0; }
  .ab-pair { gap: 10px; }
}

/* shirt campaign deck: wide slides, white margins kept */
.rt .ar-deck { --ar: 1.614; aspect-ratio: 1.614; }
.lexi-reel.car.deck .rt { --h: clamp(190px, 23vw, 340px); }
.lexi-reel.car.deck .rt .t { background: #fff; }
@media (max-width: 760px) { .lexi-reel.car.deck .rt { width: 84vw; max-width: 440px; } }

/* about: press articles at a smaller size on desktop (phones keep the sideways scroll) */
@media (min-width: 761px) {
  .press { grid-template-columns: repeat(2, minmax(0, clamp(260px, 28vw, 380px))); justify-content: start; column-gap: clamp(20px, 3vw, 44px); }
}

/* ---------- home: project index with a big image stage ---------- */
.hx { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(36px, 5vw, 80px); padding-bottom: clamp(48px, 8vw, 120px); align-items: start; }
.hx-stage { grid-column: 7 / 13; grid-row: 1 / span 9; position: sticky; top: 84px; aspect-ratio: 4 / 5; max-height: calc(100svh - 120px); width: 100%; border-radius: var(--r); overflow: hidden; background: var(--ph); }
.hx-layer { position: absolute !important; inset: 0; height: 100%; border-radius: 0; opacity: 0; transition: opacity .8s cubic-bezier(.2,.7,.2,1); }
.hx-layer.on { opacity: 1; z-index: 1; }
.hx-layer img { transform: scale(1.04); transition: filter .8s ease, transform 5s cubic-bezier(.2,.7,.2,1); }
.hx-layer.on img { transform: scale(1); }
.hx-stage:hover .hx-layer img, .hx:hover .hx-layer.on img { filter: none; }
.hx-count { position: absolute; left: 14px; bottom: 12px; z-index: 2; margin: 0; color: #fff; mix-blend-mode: difference; }
.hx-row, .hx-all { grid-column: 1 / 7; display: grid; grid-template-columns: 2.4em 1fr auto; align-items: baseline; column-gap: 12px; padding: clamp(14px, 1.6vw, 22px) 0; border-top: 1px solid var(--line, rgba(20,20,20,.14)); color: var(--ink); text-decoration: none; transition: opacity .3s, color .25s; }
.hx-row:last-of-type, .hx-all { border-bottom: 1px solid var(--line, rgba(20,20,20,.14)); }
.hx-all { border-top: 0; }
.hx-all .hx-nm { grid-column: 1 / 3; }
.hx-pic { display: none; }
.hx-n { font-size: 12px; color: var(--ink-2); letter-spacing: .02em; }
.hx-nm { font-size: clamp(24px, 3.1vw, 48px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.hx-ty { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.hx:hover .hx-row:not(:hover) { opacity: .38; }
.hx-row.on .hx-nm, .hx-row:hover .hx-nm, .hx-all:hover .hx-nm { color: var(--red); }
.hx-row.on .hx-n { color: var(--red); }
@media (max-width: 760px) {
  .hx { display: flex; flex-direction: column; align-items: stretch; gap: 30px; margin-top: 28px; }
  .hx-stage { display: none; }
  .hx-row { display: grid; grid-template-columns: 2.2em 1fr auto; border: 0 !important; padding: 0; row-gap: 10px; }
  .hx-row:hover, .hx:hover .hx-row:not(:hover) { opacity: 1; }
  .hx-pic { display: block; grid-column: 1 / -1; aspect-ratio: 5 / 4; }
  .hx-nm { font-size: 22px; }
  .hx-all { border: 0 !important; padding: 0 0 8px; grid-template-columns: 1fr auto; }
  .hx-all .hx-nm { grid-column: 1; }
}

/* ---------- home: wide hero slideshow ---------- */
.hw { margin-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 110px); }
.hw-stage { position: relative; aspect-ratio: 2 / 1; border-radius: var(--r); overflow: hidden; background: var(--ph); }
.hw-slide { position: absolute !important; inset: 0; height: 100%; border-radius: 0; opacity: 0; transition: opacity .9s cubic-bezier(.2,.7,.2,1); display: block; }
.hw-slide.on { opacity: 1; z-index: 1; }
.hw-slide img { transform: scale(1.05); transition: filter .8s ease, transform 6s cubic-bezier(.2,.7,.2,1); }
.hw-slide.on img { transform: scale(1); }
.hw-stage:hover .hw-slide.on img { filter: none; }
.hw-cap { position: absolute; left: clamp(14px, 2vw, 26px); bottom: clamp(12px, 1.8vw, 22px); z-index: 2; display: flex; align-items: baseline; gap: 12px; color: #fff; mix-blend-mode: difference; font-size: clamp(18px, 2.2vw, 32px); letter-spacing: -.03em; font-weight: 500; }
.hw-cap i { font-style: normal; font-size: 13px; letter-spacing: 0; opacity: .85; font-weight: 400; }
.hw-ctl { position: absolute; right: clamp(12px, 1.6vw, 20px); bottom: clamp(10px, 1.5vw, 18px); z-index: 3; display: flex; align-items: center; gap: 14px; color: #fff; mix-blend-mode: difference; }
.hw-ctl .label { margin: 0; color: inherit; }
.hw-ctl button { background: none; border: 0; color: inherit; font: inherit; font-size: 18px; cursor: pointer; padding: 4px 6px; }
.hw-bar { position: relative; height: 1px; background: var(--line); margin-top: 18px; overflow: hidden; }
.hw-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); width: 0; animation: hwfill 5.2s linear forwards; }
@keyframes hwfill { from { width: 0; } to { width: 100%; } }
.hw-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 16px; }
.hw-intro { margin: 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink-2); max-width: 44em; }
.hw-foot .label { margin: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .hw-stage { aspect-ratio: 4 / 3; }
  .hw-cap { font-size: 18px; flex-direction: column; gap: 2px; align-items: flex-start; }
  .hw-foot { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* home (original layout): wider hero slideshow, intro lined up with the top of the image */
@media (min-width: 1001px) {
  .intro { align-items: start; }
  .intro-text { grid-column: 1 / 5; align-self: start; justify-content: flex-start; padding-top: 34px; }
  .show { grid-column: 6 / 13; }
  .frame { aspect-ratio: 4 / 3; }
  .lexi-hero.built .hero-slide .t, .lexi-hero .hero-slide .t { aspect-ratio: 4 / 3; }
}

.intro-text { display: flex; flex-direction: column; gap: 28px; }
.intro-text > p { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.intro-meta { display: flex; flex-direction: column; gap: 8px; }
.intro-meta .meta-list { font-size: 15px; line-height: 1.6; }
.intro-cta { display: flex; gap: 24px; flex-wrap: wrap; }
.intro-cta p { margin: 0; }

.rt .ar-3-2 { --ar: 1.5; aspect-ratio: 1.5; }

.lexi-film .t { border-radius: var(--r); }
.lexi-film .t.lexi-vid { aspect-ratio: 16 / 10; }
.lexi-film .t.lexi-vid, .lexi-film .rcap { max-width: 940px; }
.film-rule { height: 1px; background: var(--line); margin-top: 22px; }
.film-top-rule { margin-bottom: 102px; }
@media (max-width: 760px) { .film-top-rule { margin-bottom: 56px; } }
.lexi-film { margin-top: 33px; }
@media (max-width: 760px) { .lexi-film { margin-top: 18px; } }

.ar-2-3 { aspect-ratio: .648; }
.rt .ar-2-3 { --ar: .648; aspect-ratio: .648; }
.ar-5-2 { aspect-ratio: 2.517; }
.rt .ar-5-2 { --ar: 2.517; aspect-ratio: 2.517; }
.ar-13-10 { aspect-ratio: 1.294; }
.rt .ar-13-10 { --ar: 1.294; aspect-ratio: 1.294; }

/* optical alignment: pull the big title left by the L's side bearing so it lines up with the text beneath */
.wm { margin-left: -.064em; }

/* resume: more room between the intro line and the download button */
@media (min-width: 761px) { .rs-doc .wp-block-file__button.wp-element-button { margin-top: 22px; } }
@media (max-width: 760px) { .rs { row-gap: 40px; } }

.ar-9-16 { aspect-ratio: 9 / 16; } .rt .ar-9-16 { --ar: .5625; aspect-ratio: 9 / 16; }
@media (max-width: 760px) { .lexi-reel.car .rt:has(.ar-9-16) { width: calc(min(72vw, 340px) * .703); } }

/* slide rows: scroll through by default, with an option to lay every slide out as a grid */
.reel-tools { display: flex; align-items: center; gap: 18px; }
.reel-tools .hint { margin: 0; }
.reel-tools .vsw button { width: 28px; height: 28px; }
.reel-tools .vsw button svg { width: 18px; height: 18px; }
.lexi-reel.car.as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 22px; overflow: visible; cursor: auto; align-items: start; }
.lexi-reel.car.as-grid.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 12px; }
.lexi-reel.car.as-grid.g6 .rcap { font-size: 10px; }
.lexi-reel.car.as-grid .rt { width: auto !important; max-width: none !important; margin-left: 0 !important; }
.lexi-reel.car.as-grid .rt .t { width: 100%; height: auto; aspect-ratio: var(--ar, 1); }
.lexi-reel.car.as-grid + .rbar { display: none; }
@media (max-width: 760px) { .reel-tools { gap: 8px; } .reel-tools .vsw button { width: 36px; height: 36px; } .lexi-reel.car.as-grid { gap: 28px 12px; } .lexi-reel.car.as-grid.g6 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; } }

/* Etching cards: matted prints on a pure white mat, three across. Cover images are cropped to the edge of each print. */
.cards.two:has(.t img[alt="Two-Bite Aquatint"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.cards.two:has(.t img[alt="Two-Bite Aquatint"]) .card .t { aspect-ratio: 4 / 5; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20,20,20,.1); }
.cards.two:has(.t img[alt="Two-Bite Aquatint"]) .card .t img { inset: 8%; width: 84%; height: 84%; object-fit: contain; }
@media (max-width: 760px) { .cards.two:has(.t img[alt="Two-Bite Aquatint"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; } }

/* Graphic Design cards (Freelance / Other rows): every cover is the same height. Each picture keeps its own proportions, so horizontal ones are simply wider and nothing is cropped or boxed in. */
@media (min-width: 761px) {
  .cards.four { display: flex; gap: var(--gap); align-items: flex-start; }
  .cards.four .card { min-width: 0; flex: 1 1 0; }
  .cards.four .card .t { aspect-ratio: var(--car, 1); }
  .cards.four .card:has(img[alt="Covenant House"]) { flex-grow: 1; --car: 1; }
  .cards.four .card:has(img[alt="Wings Up"]) { flex-grow: 1.3333; --car: 1.3333; }
  .cards.four .card:has(img[alt="Forever 22 Med Spa"]) { flex-grow: 0.75; --car: 0.75; }
  .cards.four .card:has(img[alt="Global AI Index"]) { flex-grow: 0.836; --car: 0.836; }
  .cards.four .card:has(img[alt="SilkSkin"]) { flex-grow: 1.7778; --car: 1.7778; }
  .cards.four .card:has(img[alt="Gameday"]) { flex-grow: 1.508; --car: 1.508; }
}

/* home: wide featured-project stage with the name, type and controls underneath */
.hw2 .hw-stage { aspect-ratio: 5 / 2; margin-top: clamp(24px, 3vw, 44px); }
.hw2 .hw-slide img { object-fit: cover; }
.hw-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding-top: 16px; }
.hw-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hw-name { font-size: clamp(20px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.hw-type { color: var(--ink-2); font-size: 14px; }
.hw2 .hw-ctl { position: static; color: var(--ink); mix-blend-mode: normal; display: flex; align-items: center; gap: 22px; }
.hw2 .hw-ctl .label { margin: 0; }
.hw-arrows { display: flex; gap: 8px; }
.hw2 .hw-ctl button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; transition: background .2s, color .2s; }
.hw2 .hw-ctl button:hover { background: var(--ink); color: var(--paper); }
.hw2 .hw-bar { margin-top: 22px; }
.hw-links { display: flex; gap: 28px; }
.hw-links .label { font-size: clamp(16px, 1.35vw, 20px); text-transform: none; letter-spacing: -.01em; }
.hw2 .hw-foot { margin-top: clamp(28px, 4vw, 56px); justify-content: flex-start; }
@media (max-width: 760px) { .hw2 .hw-stage { aspect-ratio: 4 / 3; } .hw2 .hw-ctl { gap: 14px; flex-wrap: wrap; } }

/* home: two featured squares side by side */
@media (min-width: 1001px) {
  .intro-text { grid-column: 1 / 4; }
  .show { grid-column: 4 / 13; }
}
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.fr { margin: 0; min-width: 0; }
.frames .frame { aspect-ratio: 1; }
.fcap { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 10px; font-size: 13px; }
.fid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fgo { margin: 0; white-space: nowrap; }
.frames .sl { pointer-events: none; }
.frames .sl.on { pointer-events: auto; }
.fcap b { font-weight: 500; }
.fcap .cat { color: var(--ink-2); margin-left: 0; }
.show-foot { justify-content: flex-end; }
@media (max-width: 760px) { .lexi-hero.built .frames { display: none; } }

/* lightbox video: native controls so the sound can be adjusted */
.lb-img video { pointer-events: auto; object-fit: contain; background: #000; }
