:root {
  color-scheme: light;
  --desktop: #ececec;
  --wallpaper: #d9e1e8;
  --panel: #fbfbfb;
  --sidebar: #f9f9f9;
  --ink: #222;
  --muted: #969696;
  --rule: #d8d8d8;
  --selection: #e7e7e7;
  --folder: #ee9d55;
  --folder-top: #ffc17d;
  --folder-shadow: #cc7a35;
  --doc-width: clamp(30px, calc(7.4vw - 29px), 112px);
  --folder-width: clamp(42px, calc(10.5vw - 39px), 160px);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
h1 { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-weight: 900; }
h2 { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
figcaption, .caption, .image-note { color: #999; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-weight: 300; }
body, .desktop, .sidebar, .workspace, .workspace-toolbar, .path-bar, .nav-item, .document, .folder, .utility-window, .notes-list, .note-editor { transition: background-color 520ms ease, background 520ms ease, color 420ms ease, border-color 520ms ease, box-shadow 520ms ease; }
html, body { min-width: 700px; min-height: 100vh; }
body { margin: 0; color: var(--ink); }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }

.desktop {
  min-height: 100vh;
  padding: clamp(7px, .75vw, 11px);
  display: grid;
  grid-template-columns: clamp(126px, 16vw, 245px) minmax(0, 1fr);
  gap: 9px;
}

.sidebar, .workspace {
  min-height: calc(100vh - 22px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
}

.sidebar { padding: 8px 8px 14px; background: var(--sidebar); }
.brand { height: 31px; padding: 0 7px; display: flex; align-items: center; gap: clamp(7px, .6vw, 11px); font-size: .84rem; letter-spacing: .01em; white-space: nowrap; }
.brand strong { font-weight: 500; }
.traffic-lights { display: flex; gap: clamp(3px, .3vw, 5px); }
.traffic-lights button { width: clamp(8px, .52vw, 10px); height: clamp(8px, .52vw, 10px); display: block; padding: 0; border-radius: 50%; cursor: pointer; }
.traffic-lights .red { background: #ff5d55; }
.traffic-lights .yellow { background: #ffbd2e; }
.traffic-lights .green { background: #28c941; }

.navigation { padding-top: 5px; }
.nav-section { margin-top: 7px; }
.nav-section h2 { margin: 0 0 2px; padding: 0 1px; color: var(--muted); font-size: .62rem; font-weight: 400; }
.nav-item { width: 100%; min-height: 22px; padding: 3px 6px; display: flex; align-items: center; gap: 7px; overflow: hidden; border-radius: 6px; background: transparent; font-size: .72rem; text-align: left; cursor: pointer; }
.nav-item > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: #efefef; }
.nav-item.active { background: var(--selection); color: #066bed; }
.overview-link { margin-bottom: 4px; }
.globe { width: 15px; color: #2288ff; font-size: 1rem; text-align: center; }
.arrow-link > span:first-child, .contact-link > span:first-child { width: 15px; text-align: center; }
.contact-link { margin-top: 8px; }

.mini-folder { position: relative; width: 15px; height: 12px; flex: 0 0 15px; display: block; border: 0; opacity: .86; }
.mini-folder::before { content: ""; position: absolute; left: 1px; top: 0; width: 7px; height: 5px; border: 1px solid currentColor; border-bottom: 0; border-radius: 2.5px 2.5px 0 0; }
.mini-folder::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 3px; bottom: 0; border: 1px solid currentColor; border-radius: 2.5px; background: var(--sidebar); }
.social { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 4px; color: #fff; font-style: normal; font-size: .62rem; font-weight: 700; }
/* Social icons: matching gray squares with white symbols. */
.social.youtube, .social.instagram, .social.linkedin { border: 0; background: #8e8e8e; color: #fff; }
.social.linkedin { font-size: .72rem; }
.social svg { width: 12px; height: 12px; display: block; }
.dark-mode .social { background: #5e5e5e; }

.workspace { display: grid; grid-template-rows: 38px minmax(0, 1fr) 29px; padding: 0; overflow: hidden; }
.workspace-scroll { padding: clamp(22px, 3vw, 38px) 38px 32px; overflow: auto; }
.view { min-height: 100%; }
.profile-files {
  width: max-content;
  min-height: clamp(132px, calc(9vw + 52px), 224px);
  padding: 1px 0 26px var(--overview-grid-inset);
  display: grid;
  grid-template-columns: repeat(5, var(--folder-width));
  column-gap: var(--overview-column-gap);
  align-items: flex-start;
}
.file-card, .folder-card { padding: 0; display: grid; justify-items: center; background: transparent; cursor: pointer; }
.file-card { width: var(--folder-width); min-width: 0; justify-self: start; gap: clamp(10px, 1.15vw, 22px); color: var(--muted); font-size: .74rem; }
.file-card > span:last-child { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.file-card:hover .document, .folder-card:hover .folder { transform: translateY(-4px); filter: saturate(1.08); }
.file-card:focus-visible, .folder-card:focus-visible, .nav-item:focus-visible, .back-button:focus-visible { outline: 2px solid #2388ea; outline-offset: 4px; }

.document { position: relative; width: var(--doc-width); height: calc(var(--doc-width) * 1.35); display: block; overflow: hidden; border: 1px solid #d2d2d2; border-radius: clamp(2px, calc(var(--doc-width) * .045), 5px); background: linear-gradient(135deg, #f7f7f7 0 69%, #fff 69%); box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform 160ms ease, filter 160ms ease; }
.document::before { content: ""; position: absolute; right: -2px; top: -2px; width: 35%; height: 26%; border-left: 1px solid #d2d2d2; border-bottom: 1px solid #d2d2d2; background: linear-gradient(225deg, var(--panel) 48%, #dedede 50%, #fafafa 54%); }
.desktop-document { color: #737373; background: linear-gradient(135deg,#fafafa 0 69%,#fff 69%); }
.desktop-document > i { position: absolute; left: 17%; right: 17%; height: max(1px, 1.6%); border-radius: 2px; background: #777; opacity: .7; }
.desktop-document > i:nth-child(1) { top: 34%; right: 38%; height: 3%; background: #333; }
.desktop-document > i:nth-child(2) { top: 42%; }
.desktop-document > i:nth-child(3) { top: 48%; }
.desktop-document > i:nth-child(4) { top: 54%; }
.desktop-document > i:nth-child(5) { top: 60%; }
.desktop-document > i:nth-child(6) { top: 66%; right: 31%; }
.resume-document > i:nth-child(1) { right: 25%; height: 4%; background: #555; }
.document .line.one { top: 46%; }
.document .line.two { top: 56%; }
.document .line.three { top: 66%; }
.text-document { color: #f13d23; }
.quote { position: absolute; left: 25%; top: 32%; color: #f13d23; font-size: calc(var(--doc-width) * .6); font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-style: normal; line-height: 1; }
.pdf-document { color: #b7b7b7; }
.pdf-mark { position: absolute; left: 28.5%; top: 31%; width: 20%; height: 15%; border-radius: 20%; background: #bbb; }
.pdf-document b { position: absolute; left: 0; right: 0; bottom: 6.5%; font-size: calc(var(--doc-width) * .18); font-weight: 400; text-align: center; }

.folder-section { border-top: 1px solid var(--rule); }
.folder-section h1, .folder-section h2 { position: relative; z-index: 8; margin: 0; padding: 7px 1px 0; color: var(--muted); font-size: .72rem; }
.folder-section h1 { font-weight: 900; }
.folder-section h2 { font-weight: 700; }
.overview-view { --overview-grid-inset: clamp(20px, 2.4vw, 38px); --overview-column-gap: clamp(18px, 2vw, 36px); min-width: max-content; }
.folder-grid { width: max-content; display: grid; grid-template-columns: repeat(5, var(--folder-width)); column-gap: var(--overview-column-gap); align-items: start; }
.selected-grid { row-gap: 32px; padding: clamp(28px, max(calc(2vw - 6px), calc(4.2vw - 29px)), 38px) 0 clamp(18px, 3.2vw, 35px); }
.more-work { border-bottom: 1px solid var(--rule); }
.more-grid { row-gap: 32px; padding: clamp(28px, max(calc(2vw - 6px), calc(4.2vw - 29px)), 39px) 0 clamp(5px, calc(10vw - 72px), 39px); }
.folder-grid.selected-grid, .folder-grid.more-grid { padding-left: var(--overview-grid-inset); }
.folder-card { width: var(--folder-width); min-width: 0; justify-self: start; gap: clamp(18px, 1.5vw, 28px); color: var(--muted); font-size: .738rem; }
.folder-card > span:last-child { position: relative; z-index: 8; width: var(--folder-width); min-height: 18px; display: block; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.folder-card .status { margin-right: 5px; }

.folder { position: relative; isolation: isolate; width: var(--folder-width); height: min(113px, calc(var(--folder-width) * .7 + 5px)); display: grid; place-items: center; border: 0; color: #b96828; background: transparent; box-shadow: none; transition: transform 160ms ease, filter 160ms ease; }
.folder::before { content: ""; position: absolute; z-index: 0; left: 4%; top: calc(var(--folder-width) * -.10); width: 45%; height: 25%; border: 1px solid var(--folder-shadow); border-bottom: 0; border-radius: clamp(3px, calc(var(--folder-width) * .05), 8px) clamp(4px, calc(var(--folder-width) * .0625), 10px) 0 0; background: linear-gradient(#ffc986,var(--folder-top)); box-shadow: inset 0 1px rgba(255,255,255,.4); }
.folder::after { content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid var(--folder-shadow); border-radius: clamp(3px, calc(var(--folder-width) * .055), 11px); background: linear-gradient(#ffbd77, var(--folder)); box-shadow: inset 0 max(2px, calc(var(--folder-width) * .032)) 0 rgba(255,255,255,.42), 0 2px 5px rgba(0,0,0,.23); }
.folder .photo-mark, .folder .wayfinding-mark { position: relative; z-index: 3; }
.folder-logo-filters { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.folder-project-icon { position: relative; z-index: 3; width: 50%; max-height: 48%; display: block; object-fit: contain; opacity: .56; filter: url(#folder-logo-dark-on-light); }
.folder-project-icon--wide { width: 62%; }
.folder-project-icon--plants { width: 46%; max-height: 54%; object-position: center 34%; }
.folder-project-icon--reverse { filter: url(#folder-logo-light-on-dark); }
/* EMJOUR uses a pre-tinted, pre-shrunk copy of its thin wordmark (folder-icon-emjour-folder.png), so no filter is needed. */
.folder-project-icon--emjour { transform: translateX(7%); filter: none; }
.photo-mark { position: relative; width: 44%; height: 48%; display: block; border: clamp(1px, calc(var(--folder-width) * .031), 5px) solid currentColor; border-radius: 13%; opacity: .56; }
.photo-mark::before { content: ""; position: absolute; left: 20%; top: 20%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.photo-mark::after { content: ""; position: absolute; left: 13%; bottom: 14%; width: 64%; height: 46%; background: currentColor; clip-path: polygon(0 100%, 39% 33%, 55% 58%, 72% 39%, 100% 100%); }
.wayfinding-mark { width: 29%; aspect-ratio: 1; display: grid; place-items: center; transform: rotate(45deg); border: clamp(1px, calc(var(--folder-width) * .031), 5px) solid currentColor; border-radius: 15%; opacity: .55; font-size: calc(var(--folder-width) * .2); font-style: normal; }
.wayfinding-mark::first-letter { transform: rotate(-45deg); }
.status { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
/* Folder dots use a brighter version of each case study's result-box color so they read on light and dark backgrounds. */
.status--plants { background: #3fae6a; }
.status--yenting { background: #8a8a8a; }
.status--kingtony { background: #1a9be8; }
.status--emjour { background: #b8805a; }
.status--nuphy { background: #5b60f0; }
.dark-mode .status--yenting { background: #b5b5b5; }

.detail-view { padding: 0 0 34px; }
.detail-toolbar { padding: 0 0 22px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .78rem; }
.back-button { padding: 0; background: none; color: inherit; cursor: pointer; }
.back-button:hover { color: var(--ink); }
.detail-heading { max-width: 900px; padding: clamp(54px, 9vw, 130px) 0 70px; }
.detail-heading > p:first-child { margin: 0 0 15px; color: var(--muted); font-size: .78rem; }
.detail-heading h1 { margin: 0 0 25px; max-width: 11ch; font-size: clamp(3rem, 6vw, 7rem); line-height: .9; letter-spacing: -.07em; }
.detail-heading > p:last-child { max-width: 58ch; margin: 0; color: #737373; font-size: 1rem; line-height: 1.6; }
.project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-card { min-height: 190px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 10px; background: var(--card-color); color: #fff; }
.project-card span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.project-card strong { max-width: 12ch; font-size: 1.25rem; line-height: 1.08; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Finder chrome and movable-window prototype */
.window-drag-handle { user-select: none; cursor: default; touch-action: none; }
.is-dragging .window-drag-handle { cursor: grabbing; }
.workspace-toolbar { padding: 0 13px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--panel) 90%, transparent); }
.workspace-toolbar strong { color: #5f5f5f; font-size: .76rem; letter-spacing: .02em; }
.toolbar-group { display: flex; gap: 3px; }
.workspace-toolbar button { width: 29px; height: 27px; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.15rem; }
.workspace-toolbar button:hover:not(:disabled) { background: var(--selection); }
.workspace-toolbar button:disabled { opacity: .28; }
.workspace-toolbar .theme-toggle { justify-self: end; display: grid; place-items: center; font-size: 1rem; }
/* Theme toggle dot: a mid gray in light mode; in dark mode it stays light. */
.theme-dot { width: 8.4px; height: 8.4px; display: block; border-radius: 50%; background: #555; }
body.dark-mode .theme-dot { background: currentColor; }
.path-bar { padding: 0 13px; display: flex; align-items: center; gap: 8px; overflow: hidden; border-top: 1px solid var(--rule); color: var(--muted); font-size: .7rem; white-space: nowrap; }
.path-bar b { font-weight: 400; opacity: .55; }
.path-segment { min-width: 0; padding: 3px 5px; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.path-segment .mini-folder { width: 13px; height: 11px; flex-basis: 13px; color: var(--folder-shadow); }
.path-segment .mini-folder::after { background: var(--panel); }
.path-segment:hover, .path-segment:focus-visible { background: var(--selection); color: var(--ink); }
.path-segment.current { font-weight: 600; }
body { overflow: hidden; background: linear-gradient(145deg, #fff 0%, #d0d0d0 100%); }
body::before { display: none; }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(145deg,#000 0%,#4a4a4a 100%); opacity: 0; transition: opacity 650ms ease; }
.desktop { position: fixed; left: 50%; top: 50%; width: min(1480px, calc(100vw - 96px)); height: min(860px, calc(100vh - 96px)); min-height: 0; z-index: 10; overflow: hidden; border: 1px solid rgba(110,110,110,.58); border-radius: 24px; background: var(--desktop); box-shadow: 0 28px 80px rgba(35,48,61,.3), 0 1px 0 rgba(255,255,255,.86) inset; transform: translate(calc(-50% + var(--window-x, 0px)), calc(-50% + var(--window-y, 0px))); transition: opacity 160ms ease, transform 780ms cubic-bezier(.22,.72,.22,1), width 520ms cubic-bezier(.32,.72,.24,1), height 520ms cubic-bezier(.32,.72,.24,1), padding 520ms ease, gap 520ms ease, border-color 520ms ease, box-shadow 520ms ease, border-radius 520ms ease; }
.desktop .sidebar, .desktop .workspace { min-height: 0; height: 100%; }
.desktop.is-dragging { transition: none; }
/* Full screen stays centered and grows its edges outward, so the window never jumps. */
.desktop.is-fullscreen { width: 100vw; height: 100vh; padding: 0; gap: 0; border-color: transparent; border-radius: 0; box-shadow: none; }
.desktop .sidebar, .desktop .workspace { transition: background-color 520ms ease, color 420ms ease, border-color 520ms ease, box-shadow 520ms ease, border-radius 520ms ease; }
.desktop.is-fullscreen .sidebar, .desktop.is-fullscreen .workspace { border-radius: 0; }
/* In full screen the panels touch, so a thin line keeps the sidebar visually separate from the page. */
.desktop.is-fullscreen .sidebar { box-shadow: inset -1px 0 0 var(--rule); }
.window-closed .desktop { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.92) !important; }
/* Minimize: the window shrinks onto the dock thumbnail (position and scale set by script.js), fading only at the very end. */
.window-minimized .desktop { opacity: 0; pointer-events: none; transform: translate(calc(-50% + var(--dock-x, 0px)), calc(-50% + var(--dock-y, 40vh))) scale(var(--dock-sx, .1), var(--dock-sy, .1)) !important; transition: transform 680ms cubic-bezier(.55, .05, .6, .2), opacity 200ms ease 500ms, border-radius 680ms ease; }
.window-restore { position: fixed; left: 28px; bottom: 28px; z-index: 20; width: 150px; padding: 15px 12px; display: grid; gap: 8px; justify-items: center; border-radius: 12px; background: rgba(255,255,255,.82); color: #333; box-shadow: 0 10px 35px rgba(0,0,0,.16); backdrop-filter: blur(16px); cursor: pointer; }
.window-restore[hidden], .window-dock[hidden] { display: none; }
.restore-folder { color: #3ca9df; font-size: 2.4rem; }
.window-dock { position: fixed; left: 50%; bottom: 12px; z-index: 20; transform: translateX(-50%); min-width: 260px; height: 116px; padding: 10px 12px 8px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; background: linear-gradient(rgba(255,255,255,.72), rgba(222,222,222,.6)); box-shadow: 0 10px 36px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(22px) saturate(1.35); }
.window-dock:not([hidden]) { animation: dock-rise 420ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes dock-rise { from { opacity: 0; transform: translate(-50%, 30px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
.window-dock button { position: relative; width: 150px; height: 91px; padding: 0; display: grid; justify-items: center; align-content: end; gap: 4px; background: transparent; cursor: pointer; }
.dock-thumbnail { position: relative; width: 116px; height: 70px; display: block; overflow: hidden; border: 1px solid #aaa; border-radius: 6px; background: #f7f7f7; box-shadow: 0 5px 13px rgba(0,0,0,.28); transition: transform 160ms ease; }
.window-dock button:hover .dock-thumbnail { transform: translateY(-7px) scale(1.08); }
.dock-sidebar { position: absolute; inset: 0 auto 0 0; width: 28%; background: #ebebeb; border-right: 1px solid #ccc; }
.dock-toolbar { position: absolute; left: 28%; right: 0; top: 0; height: 12px; border-bottom: 1px solid #d5d5d5; }
.dock-folder { position: absolute; top: 30px; width: 19px; height: 14px; border-radius: 2px; background: var(--folder); box-shadow: inset 0 2px var(--folder-top), 0 0 0 .5px var(--folder-shadow); }
.dock-folder.one { left: 42px; }.dock-folder.two { left: 67px; }.dock-folder.three { left: 92px; }
.dock-label { max-width: 140px; overflow: hidden; color: #333; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.dock-divider { width: 1px; height: 70px; background: rgba(90,90,90,.25); }
/* The divider and trash sit in the vertical middle of the dock rather than on its bottom edge. */
.window-dock .dock-divider, .window-dock .dock-trash { align-self: center; }
/* Mac-style wire-mesh trash can (inline SVG in index.html). */
.dock-trash { width: 52px; height: 62px; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.22)); }
.dock-trash svg { width: 100%; height: 100%; display: block; }

/* Finder-style document windows */
.floating-layer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 5vh 6vw; background: rgba(0,0,0,0); }
.floating-layer[hidden] { display: none; }
.utility-window { width: min(930px, 82vw); max-height: 78vh; overflow: hidden; border: 1px solid #bcbcbc; border-radius: 22px; background: var(--panel); color: var(--ink); box-shadow: 0 28px 70px rgba(0,0,0,.34); opacity: 0; transform: scale(.06) translateY(58vh) skewX(-8deg); }
.floating-layer.open .utility-window { animation: genie-open 540ms cubic-bezier(.14,.85,.22,1) forwards; }
.floating-layer.closing .utility-window { animation: genie-close 610ms cubic-bezier(.55,0,.84,.2) forwards; }
@keyframes genie-open { 0% { opacity: 0; transform: scale(.06) translateY(58vh) skewX(-8deg); border-radius: 50%; } 68% { opacity: 1; transform: scale(1.025) translateY(-5px) skewX(0); border-radius: 20px; } 100% { opacity: 1; transform: none; } }
@keyframes genie-close { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.05) translateY(62vh) skewX(9deg); border-radius: 50%; } }
.utility-titlebar { height: 53px; padding: 0 22px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--panel) 92%, #ddd); }
.utility-titlebar strong { font-size: 1rem; font-weight: 600; }
/* Same dot size and spacing as the main window's traffic lights. */
.utility-lights { display: flex; gap: clamp(3px, .3vw, 5px); }
.utility-lights button, .utility-lights i { width: clamp(8px, .52vw, 10px); height: clamp(8px, .52vw, 10px); display: block; padding: 0; border-radius: 50%; }
.utility-lights button { cursor: pointer; }
.utility-lights .red { background: #ff5d55; }.utility-lights .yellow { background: #ffbd2e; }.utility-lights .green { background: #28c941; }
.about-content { max-height: calc(78vh - 53px); padding: 34px 28px 42px; overflow: auto; font-size: 1rem; line-height: 1.5; }
.about-hero { max-width: 760px; margin-bottom: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.about-hero h1 { max-width: 18ch; margin: 0 0 14px; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-size: clamp(1.85rem, 4vw, 3.5rem); line-height: .98; letter-spacing: -.035em; }
.about-hero p { max-width: 680px; margin-bottom: 0; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.45; }
.about-note { max-width: 680px; }
.about-content h2 { margin: 0 0 20px; font-size: 1rem; }
.about-content p { margin: 0 0 19px; }
.about-content a { text-decoration: underline; text-underline-offset: 3px; }
.resume-window { width: min(1040px, 84vw); }
.resume-content { max-height: calc(78vh - 53px); padding: 36px 36px 60px; overflow: auto; font-size: .86rem; line-height: 1.38; }
.resume-content h2, .resume-content h3, .resume-content h4 { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; }
.resume-content > h2, .resume-heading h2 { margin: 0; font-size: 2.25rem; letter-spacing: .01em; text-align: center; }
.resume-content h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.resume-content > p { margin: 3px 0 34px; line-height: 1.45; }
.resume-content hr { margin: 0 0 12px; border: 0; border-top: 1px solid var(--rule); }
.resume-content h4 { margin: 0 0 28px; font-size: 1.25rem; }
.resume-content article { margin-bottom: 28px; }
.resume-content article p { margin: 2px 0 14px; line-height: 1.45; }
.resume-content article p:last-child { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; }
.resume-heading { margin-bottom: 28px; text-align: center; }
.resume-heading p { margin: 3px 0; }
.resume-content a { color: #075fd8; text-decoration: underline; text-underline-offset: 2px; }
.resume-section { margin-bottom: 27px; }
.resume-section > h4 { margin: 0 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 1rem; font-weight: 900; }
.resume-section > p { margin: 0; }
.resume-section article { margin: 0 0 24px; }
.resume-section article header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: baseline; }
.resume-section article header strong { white-space: nowrap; }
.resume-section article h3 { font-size: 1rem; }
.resume-section article h3 em { font-weight: 400; }
.resume-company { margin: 1px 0 9px !important; font-style: italic; }
.resume-section ul { margin: 0; padding-left: 24px; }
.resume-section li { margin: 2px 0; }

/* Notes app window */
.notes-window { width: min(1320px, 91vw); height: min(780px, 84vh); max-height: none; border-radius: 20px; }
.notes-toolbar { height: 58px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--panel) 92%, #ddd); }
.notes-toolbar strong { color: var(--muted); font-size: .95rem; }
.notes-tools { justify-self: end; color: var(--muted); font-size: 1rem; letter-spacing: .08em; }
.notes-layout { height: calc(100% - 58px); display: grid; grid-template-columns: 235px minmax(0,1fr); }
.notes-list { padding: 0 12px 20px; overflow: auto; border-right: 1px solid var(--rule); background: color-mix(in srgb, var(--sidebar) 92%, #e7e7e7); }
.notes-list h2 { margin: 18px 4px 9px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.note-row { width: 100%; padding: 10px 12px; display: grid; gap: 3px; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.note-row.active { background: #ffe18a; color: #252525; }
.note-row strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.note-row span, .note-row small { overflow: hidden; color: #777; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.note-editor { padding: 12px 34px 40px; overflow: auto; background: var(--panel); }
.note-editor time { display: block; margin-bottom: 34px; color: var(--muted); font-size: .76rem; text-align: center; }
.note-editor h2 { margin: 0 0 18px; font-size: 1.3rem; }
.note-editor p { max-width: 75ch; margin: 0 0 18px; font-size: 1rem; line-height: 1.5; }

/* Three-image folder fan */
.folder-card { position: relative; isolation: isolate; }
.folder-card:hover, .folder-card:focus-visible { z-index: 30; }
.folder-fan { position: absolute; z-index: 1; top: calc(var(--folder-width) * -.18); left: 0; width: var(--folder-width); height: calc(var(--folder-width) * 1.02); pointer-events: none; }
.folder-fan::before { content: ""; position: absolute; z-index: 0; left: 7%; right: 7%; top: calc(var(--folder-width) * .12); height: 24%; border: 1px solid rgba(180,180,180,.72); border-radius: clamp(3px, calc(var(--folder-width) * .035), 6px) clamp(3px, calc(var(--folder-width) * .035), 6px) 0 0; background: linear-gradient(#fff,#f2f2f2); box-shadow: 0 -1px 3px rgba(0,0,0,.12); }
.folder-fan :is(img, video) { position: absolute; z-index: 1; left: 50%; bottom: 2%; width: 88%; aspect-ratio: 4 / 3; padding: 3px; object-fit: cover; border: 1px solid rgba(255,255,255,.5); border-radius: 7px; background: rgba(255,255,255,.11); box-shadow: none; backdrop-filter: blur(14px) saturate(1.5); visibility: hidden; opacity: 0; transform: translate(-50%, 34%) scale(.62); transition: transform 300ms cubic-bezier(.32,.02,.45,1), opacity 0ms linear, visibility 0s linear 300ms, box-shadow 0ms linear; }
.folder-fan--identity :is(img, video) { width: 104%; aspect-ratio: 1; padding: 2px; object-fit: cover; border-radius: 50%; background: rgba(255,255,255,.3); }
/* Partner logos sit about 20% smaller inside their white circles. */
.folder-card[data-open="partnerships"] .folder-fan img { object-fit: contain; padding: calc(10.4% + 6.4px); background: radial-gradient(circle closest-side, #fff calc(100% - 2px), rgba(255,255,255,.3) calc(100% - 2px)); }
/* NuPhy, in the top/center spot, sits in front of the other two logos. */
.folder-card:hover .folder-fan :is(img, video), .folder-card:focus-visible .folder-fan :is(img, video) { visibility: visible; opacity: 1; box-shadow: 0 8px 20px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.65); transition: transform 430ms cubic-bezier(.16,.85,.24,1.12), opacity 110ms ease, visibility 0s linear, box-shadow 110ms ease; }
.folder-card:hover .folder-fan :is(img, video):nth-child(1), .folder-card:focus-visible .folder-fan :is(img, video):nth-child(1) { transform: translate(-94%, -82%) rotate(-13deg); }
.folder-card:hover .folder-fan :is(img, video):nth-child(2), .folder-card:focus-visible .folder-fan :is(img, video):nth-child(2) { transform: translate(-50%, -98%) rotate(0); }
.folder-card:hover .folder-fan :is(img, video):nth-child(3), .folder-card:focus-visible .folder-fan :is(img, video):nth-child(3) { transform: translate(-6%, -82%) rotate(13deg); }
.folder-card[data-open="emjour"] .folder-fan :is(img, video):nth-child(1) { object-position: center 50%; }
.folder-card[data-open="emjour"] .folder-fan :is(img, video):nth-child(2) { object-position: center 56%; }
.folder-card[data-open="emjour"] .folder-fan :is(img, video):nth-child(3) { object-position: center 54%; }
/* Touch screens and phones never hover, so the preview fans only appear in desktop browsers. */
@media (hover: none), (max-width: 700px) { .folder-fan { display: none; } }

/* Yen Ting Cho Studio case study */
.yen-page { width: 100%; max-width: none; margin: 0; padding-bottom: 24px; color: var(--ink); background: transparent; }
.yen-meta { padding: 2px 0 18px; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 20px; border-bottom: 1px solid #dedede; font-size: .61rem; line-height: 1.4; }
.yen-meta span:last-child { text-align: right; }
.yen-hero, .yen-feature { width: 100%; display: block; object-fit: cover; border-radius: 12px; }
.yen-hero { height: clamp(280px, 54vw, 720px); margin-top: 22px; }
.yen-feature { height: clamp(360px, 62vw, 790px); }
.image-note { margin: 7px 0 55px; color: #999; font-size: .58rem; font-weight: 300; text-align: center; }
.yen-intro { max-width: 650px; margin: 0 auto 62px; text-align: center; }
.yen-intro h1 { margin: 18px auto; font-size: clamp(1.25rem, 2.6vw, 2.5rem); line-height: 1.04; letter-spacing: -.04em; }
.yen-intro p, .yen-copy p { color: var(--muted); font-size: .68rem; line-height: 1.65; }
.yen-strip { margin-bottom: 27px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.yen-strip img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 9px; }
.yen-copy { max-width: 560px; margin: 0 auto 60px; text-align: center; }
.yen-copy h2 { margin: 0 0 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.yen-gallery { margin: 0 0 58px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yen-gallery img { width: 100%; aspect-ratio: 1.22; object-fit: cover; border-radius: 10px; }
.yen-gallery img:nth-child(4n) { object-position: left; }
.yen-gallery img:nth-child(4n + 2) { object-position: right; }
.yen-moodboard { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(100px, 17vw, 225px); gap: 4px; }
.yen-moodboard img { width: 100%; height: 100%; object-fit: cover; }
.yen-moodboard img:nth-child(3n + 1) { grid-row: span 2; }
.yen-moodboard img:nth-child(5n) { grid-column: span 2; }
.yen-footer { margin-top: 38px; padding-top: 16px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #ddd; font-size: .62rem; }
.yen-footer button { padding: 8px 12px; border-radius: 20px; background: #111; color: #fff; cursor: pointer; }

/* Plants Cafe case study */
.case-page { width: 100%; max-width: none; padding-bottom: 26px; color: var(--ink); }
.case-page figure { min-width: 0; margin: 0; }
.case-page figcaption { margin-top: 7px; font-size: .66rem; line-height: 1.35; text-align: center; }
.case-meta { padding: 2px 0 18px; display: grid; grid-template-columns: 1.15fr 1.5fr 1fr; gap: 22px; border-bottom: 1px solid var(--rule); font-size: .68rem; line-height: 1.45; }
.case-meta span:nth-child(2) { text-align: center; }
.case-meta span:last-child { text-align: right; }
.case-opening { padding: clamp(28px, 5vw, 68px) 0 0; }
.case-opening-copy { max-width: 64ch; margin: 0 auto clamp(28px, 4vw, 55px); text-align: center; }
.case-opening-copy p, .case-copy p, .three-point-grid p { margin: 0; font-size: clamp(.82rem, 1.05vw, 1rem); line-height: 1.65; }
.plants-page .case-opening-copy p, .plants-page .case-copy p, .plants-page .three-point-grid p, .plants-page .case-quote p { font-size: .78rem; }
.media-grid { display: grid; gap: clamp(9px, 1.2vw, 18px); }
.media-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-placeholder { position: relative; width: 100%; min-height: 150px; overflow: hidden; display: grid; place-items: center; border: 1px dashed color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 12px; background: linear-gradient(145deg, color-mix(in srgb, var(--selection) 72%, #d7c7a4), color-mix(in srgb, var(--panel) 72%, #678255)); color: color-mix(in srgb, var(--ink) 65%, transparent); }
.media-placeholder::before { content: ""; position: absolute; width: 42%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; opacity: .12; }
.media-placeholder::after { content: ""; position: absolute; width: 72%; height: 1px; background: currentColor; opacity: .15; transform: rotate(-32deg); }
.media-placeholder span { position: relative; z-index: 1; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--panel) 82%, transparent); font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-align: center; backdrop-filter: blur(8px); }
.media-placeholder.portrait { aspect-ratio: 3 / 4; }
.media-placeholder.tall { aspect-ratio: 2 / 3; }
.media-placeholder.landscape { aspect-ratio: 4 / 3; }
.media-placeholder.square { aspect-ratio: 1; }
.media-placeholder.poster { aspect-ratio: 4 / 5; }
.case-photo { width: 100%; display: block; object-fit: cover; border-radius: 12px; background: color-mix(in srgb, var(--panel) 94%, #d8d3c7); }
.case-photo.landscape { aspect-ratio: 4 / 3; }
.case-photo.portrait { aspect-ratio: 3 / 4; }
.case-photo.tall { aspect-ratio: 2 / 3; }
.case-photo.square { aspect-ratio: 1; }
.case-photo.poster { aspect-ratio: 4 / 5; }
.case-video { width: 100%; display: block; object-fit: cover; background: #111; }
.video-player-shell { position: relative; width: 100%; }
/* Icon-only round sound button over videos. */
.video-mute-toggle { position: absolute; z-index: 8; right: 10px; bottom: 10px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(20 20 20 / .62); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color 160ms ease; }
.video-mute-toggle:hover { background: rgb(20 20 20 / .8); }
.video-mute-toggle:focus-visible { outline: 2px solid #2388ea; outline-offset: 2px; }
.video-mute-toggle svg { width: 13px; height: 13px; display: block; }
.video-mute-toggle .icon-sound, .video-mute-toggle.is-unmuted .icon-muted { display: none; }
.video-mute-toggle.is-unmuted .icon-sound { display: block; }
.phone-mockup > .video-mute-toggle { right: 7%; bottom: 4.5%; }
.has-centered-video-caption figcaption { text-align: center; }
.phone-mockup { position: relative; width: min(100%, 300px); aspect-ratio: 356 / 730; margin: 0 auto; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .2)); }
/* The frame sits on top of the screen content with its screen area cut out, so its black bezel always covers the video's edge evenly. */
.phone-frame { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; display: block; pointer-events: none; }
.phone-mockup .case-video { position: absolute; z-index: 2; top: 1.15%; left: 3.4%; width: 93.2%; height: 97.7%; border-radius: 14.5% / 7%; }
.case-study-phone { width: min(100%, 300px); }
.phone-screen-crop { position: absolute; z-index: 2; top: 1.15%; left: 3.4%; width: 93.2%; height: 97.7%; overflow: hidden; border-radius: 14.5% / 7%; background: #000; }
.phone-mockup .phone-screen-crop .exact-feed-video { top: -6.5%; left: 0; width: 100%; height: 106.5%; border-radius: 0; object-fit: fill; background: #000; }
.phone-mockup::after { content: ""; position: absolute; z-index: 5; top: 3.05%; left: 35.5%; width: 29%; height: 4.15%; border-radius: 999px; background: #050505; pointer-events: none; }
.instagram-ui { position: absolute; z-index: 2; top: 1.15%; left: 3.4%; width: 93.2%; height: 97.7%; overflow-x: hidden; overflow-y: auto; padding-top: 8.5%; border-radius: 14.5% / 7%; background: #080d12; color: #f7f7f7; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; scrollbar-width: none; }
.instagram-ui::-webkit-scrollbar { display: none; }
.ig-feed-post { padding-bottom: 5%; border-bottom: 1px solid #242b31; }
.ig-detail-head { min-height: 8%; padding: 2% 5%; display: grid; grid-template-columns: 15% 1fr 15%; align-items: center; text-align: center; }
.ig-detail-head > span:nth-child(2) { display: grid; gap: 1px; }
.ig-detail-head strong { font-size: clamp(.64rem, 1vw, .9rem); }
.ig-detail-head small { color: #d8d8d8; font-size: clamp(.43rem, .62vw, .56rem); font-weight: 400; }
.ig-back { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 200; text-align: left; }
.ig-intro { padding: 2% 5% 4%; color: #e8e8e8; font-size: clamp(.43rem, .62vw, .56rem); line-height: 1.38; }
.ig-intro p { margin: 0 0 3%; }
.ig-intro time { color: #929aa2; }
.ig-audio { min-height: 9%; padding: 2% 5%; display: flex; align-items: center; gap: 4%; border-bottom: 1px solid #242b31; font-size: clamp(.43rem, .62vw, .56rem); }
.ig-audio > span:nth-child(2) { display: grid; gap: 2px; }
.ig-audio small { color: #b2b8be; }
.ig-audio b { margin-left: auto; }
.instagram-ui .ig-profile { height: 7.5%; padding: 0 5%; display: flex; align-items: center; gap: 5%; font-size: clamp(.48rem, .75vw, .68rem); }
.ig-avatar { width: 12%; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid #d24f8b; border-radius: 50%; background: #284a22; color: #fff; font-size: .7em; }
.ig-more { margin-left: auto; letter-spacing: .08em; }
.ig-media, .ig-feed-media { width: 100%; aspect-ratio: 5 / 4; display: block; overflow: hidden; background: #111; }
.phone-mockup .instagram-ui .ig-media .case-video { position: static; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.ig-feed-media { object-fit: cover; }
.ig-insights { padding: 5% 5%; border-bottom: 1px solid #242b31; color: #6e97ff; font-size: clamp(.52rem, .8vw, .72rem); font-weight: 700; }
.ig-dots { padding: 3% 0 1%; color: #596777; font-size: .42rem; letter-spacing: .3em; text-align: center; }
.ig-dots::first-letter { color: #648cff; }
.ig-actions { height: 6%; padding: 0 5%; display: flex; align-items: center; gap: 8%; font-size: clamp(.78rem, 1.35vw, 1.2rem); line-height: 1; }
.ig-save { margin-left: auto; transform: rotate(180deg); }
.ig-likes, .ig-caption { padding: 0 5%; font-size: clamp(.43rem, .62vw, .57rem); line-height: 1.35; }
.ig-likes { margin-bottom: 2%; font-weight: 700; }
.case-hero-grid { max-width: 1080px; margin: 0 auto; }
.case-copy { max-width: 700px; margin: clamp(58px, 8vw, 110px) auto; text-align: center; }
.case-copy h1 { margin: 0 0 28px; font-size: clamp(1.5rem, 2.7vw, 2.7rem); line-height: 1.08; letter-spacing: -.045em; }
.case-copy h2 { margin: 0 0 20px; font-size: clamp(1.15rem, 1.75vw, 1.75rem); line-height: 1.15; letter-spacing: -.03em; }
.plants-page > .case-copy h1, .plants-page > .case-copy h2 { font-size: clamp(.95rem, 1.15vw, 1.12rem); line-height: 1.35; letter-spacing: -.015em; }
.case-copy p + p { margin-top: 15px; }
.compact-copy { max-width: 610px; margin-top: clamp(42px, 6vw, 80px); margin-bottom: clamp(42px, 6vw, 80px); }
.plant-portrait-grid { margin: 0 auto; }
.workshop-grid { margin-bottom: clamp(65px, 10vw, 130px); }
.case-section { padding: clamp(58px, 8vw, 110px) 0; border-top: 1px solid var(--rule); }
.section-title { margin: 0 0 clamp(32px, 5vw, 66px); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.three-point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 68px); }
.three-point-grid article { text-align: center; }
.three-point-grid h3 { margin: 0 0 12px; font-size: .86rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.case-page .case-copy h1, .case-page .case-copy h2, .case-page .section-title, .case-page .three-point-grid h3 { font-size: .78rem; font-weight: 900; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.logo-placeholder { aspect-ratio: 1.35; border-radius: 0; background: color-mix(in srgb, var(--panel) 93%, #e5e0d6); }
.logo-grid { margin-top: clamp(34px, 5vw, 66px); align-items: start; }
.logo-art { aspect-ratio: 1; object-fit: contain; border-radius: 0; background: transparent; }
.identity-board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 38px); }
.identity-board { aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.identity-section { padding-bottom: clamp(28px, 4vw, 52px); }
.identity-section .case-copy { margin-bottom: 0; }
.workshop-feature { max-width: 1100px; margin: 0 auto clamp(58px, 7vw, 92px); }
.workshop-feature figcaption { padding-bottom: clamp(46px, 5vw, 70px); }
.workshop-feature-photo { aspect-ratio: 16 / 8.5; }
.poster-grid { max-width: 920px; margin: 0 auto; }
.brand-use-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.podcast-banner { aspect-ratio: auto; height: auto; object-fit: contain; margin-bottom: 8px; background: linear-gradient(145deg, #18391b, #0a160b); color: #eef5e8; }
.youtube-thumb { aspect-ratio: 16 / 9; }
.podcast-thumbnails { margin-top: 0; }
.podcast-feature { margin-top: clamp(44px, 6vw, 80px) !important; }
.podcast-youtube { width: min(960px, 100%); margin: clamp(34px, 5vw, 64px) auto 0; }
.podcast-youtube iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; border-radius: 12px; background: #111; }
.podcast-youtube figcaption { margin-top: 10px; color: var(--muted); font-size: .68rem; text-align: center; }
.content-card-grid, .social-grid { max-width: 980px; margin: clamp(44px, 6vw, 80px) auto 0; }
.content-section, .merchandise-section { padding-bottom: clamp(28px, 4vw, 52px); }
.content-section > .case-copy:last-child, .merchandise-section > .case-copy:last-child { margin-bottom: 0; }
.merchandise-section, .learning-section { padding-top: clamp(42px, 5vw, 68px); }
.merch-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.merch-grid .media-placeholder { border-radius: 8px; }
.merch-grid .case-photo { border-radius: 8px; }
.case-next { padding: 38px 0 4px; border-top: 1px solid var(--rule); text-align: right; }
.case-next button { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--panel); cursor: pointer; font-size: .72rem; }
.case-next button span { margin-left: 10px; font-weight: 700; }

/* Shared narrative case-study system */
.project-opening { padding-top: clamp(34px, 5vw, 72px); }
.project-hero-copy, .project-section-heading { max-width: 800px; margin: 0 auto clamp(38px, 6vw, 76px); text-align: center; }
.project-hero-copy h1, .project-section-heading h2 { max-width: 720px; margin: 0 auto 22px; }
.project-hero-copy > p:last-child, .project-section-heading > p:last-child { max-width: 68ch; margin: 0 auto; color: var(--muted); font-size: clamp(.82rem, 1.05vw, 1rem); line-height: 1.325; }
.project-metrics { margin: clamp(12px, 2vw, 26px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: 12px; color: #fff; }
.project-metrics article { min-height: 145px; padding: clamp(22px, 3vw, 42px) clamp(16px, 2.5vw, 36px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.project-metrics article + article { border-left: 1px solid rgb(255 255 255 / .3); }
.project-metrics strong { font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.project-metrics span { font-size: .64rem; font-weight: 800; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }

/* Plants Cafe */
.plants-opening { padding-top: clamp(34px, 5vw, 72px); }
.plants-eyebrow { color: #3f7b51; }
.plants-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, minmax(180px, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.plants-hero-grid figure { overflow: hidden; border-radius: 12px; background: #173c27; }
.plants-hero-grid .plants-hero-video { grid-row: 1 / span 2; display: grid; place-items: center; padding: clamp(12px, 2vw, 28px); background: #173c27; }
.plants-hero-grid video { width: min(62%, 460px); height: auto; aspect-ratio: 9 / 16; border-radius: 10px; object-fit: cover; }
.plants-hero-grid img { width: 100%; height: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 0; object-fit: cover; }
.plants-metrics { background: #265b3a; }
.plants-bean-grid { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .8fr; gap: clamp(12px, 2vw, 24px); align-items: stretch; }
.plants-bean-grid figure { overflow: hidden; border-radius: 12px; background: #ead7b5; }
.plants-bean-grid img { width: 100%; height: 100%; max-height: 720px; display: block; border-radius: 0; object-fit: cover; object-position: top; }
.plants-bean-section > .case-copy { margin-bottom: 0; }

/* EMJOUR */
.emjour-eyebrow { color: #7a5d49; }
.vertical-video-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); align-items: start; }
.vertical-video-row figure { overflow: hidden; border-radius: 12px; background: #201b18; }
.vertical-video-row video { width: 100%; aspect-ratio: 9 / 16; display: block; object-fit: cover; }
.phone-video-row figure { overflow: visible; padding: 6px; background: transparent; }
.emjour-hero-videos { max-width: 980px; margin: 0 auto; }
.emjour-metrics { background: #594437; }
.emjour-process-section { border-radius: 12px; background: #eee5d8; padding-inline: clamp(24px, 4vw, 58px); }
.emjour-process-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(12px, 2vw, 24px); align-items: stretch; }
.emjour-process-video { display: grid; place-items: center; overflow: visible; padding: clamp(8px, 1.5vw, 18px); border-radius: 12px; background: transparent; }
.emjour-process-video video { width: 100%; height: 100%; aspect-ratio: 9 / 16; display: block; object-fit: cover; }
.emjour-process-stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.emjour-process-stills img { width: 100%; height: 100%; aspect-ratio: 9 / 16; display: block; border-radius: 10px; object-fit: cover; }
.compact-video-row { width: min(760px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; }
.emjour-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 18px); }
.emjour-photo-grid figure:first-child { grid-column: 1 / -1; }
.emjour-photo-grid img { width: 100%; height: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 12px; object-fit: cover; }
.emjour-social-grid { margin-top: clamp(42px, 6vw, 82px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 18px); }
.emjour-social-grid img { width: 100%; aspect-ratio: 4 / 5; display: block; border-radius: 12px; object-fit: cover; }
.emjour-catalogue-section { border-radius: 12px; background: #f1eee5; padding-inline: clamp(24px, 4vw, 58px); }
.emjour-catalogue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); align-items: start; }
.emjour-catalogue-grid img { width: 100%; height: auto; display: block; border: 1px solid rgb(89 68 55 / .16); border-radius: 10px; box-shadow: 0 12px 28px rgb(56 39 29 / .1); }
.emjour-poster-grid { width: min(860px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: start; }
.emjour-poster-grid img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* NuPhy */
.nuphy-eyebrow { color: #4445c7; }
.nuphy-opening { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.nuphy-opening .project-hero-copy { margin: 0; text-align: left; }
.nuphy-opening .project-hero-copy h1, .nuphy-opening .project-hero-copy > p:last-child { margin-left: 0; }
.nuphy-hero { display: grid; place-items: center; padding: 0; overflow: visible; background: transparent; }
.nuphy-phone { width: min(100%, 360px); }
.nuphy-metrics { background: #2d31a9; }
.nuphy-trust-section { border-radius: 12px; background: #151746; color: #fff; padding-inline: clamp(24px, 4vw, 58px); }
.nuphy-trust-section .nuphy-eyebrow { color: #9fa7ff; }
.nuphy-trust-section .project-section-heading > p:last-child { color: rgb(255 255 255 / .72); }
.nuphy-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid currentColor; border-radius: 12px; overflow: hidden; }
.nuphy-proof article { min-height: 190px; padding: clamp(20px, 3vw, 38px); display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
.nuphy-proof article + article { border-left: 1px solid currentColor; }
.nuphy-proof strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nuphy-proof p { margin: 0; color: inherit; opacity: .72; }
.nuphy-followup-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(18px, 3vw, 42px); align-items: stretch; }
.nuphy-followup-grid figure { display: grid; place-items: center; overflow: visible; padding: clamp(8px, 1.5vw, 18px); border-radius: 12px; background: transparent; }
.nuphy-followup-grid video { width: 100%; height: 100%; max-height: 720px; aspect-ratio: 9 / 16; display: block; object-fit: cover; }
.nuphy-followup-phone { width: min(100%, 320px); }
.nuphy-youtube-card { padding: clamp(28px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; border-radius: 12px; background: #efefff; }
.nuphy-youtube-card > span { color: #5455be; font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nuphy-youtube-card h3 { margin: 18px 0 14px; font-size: clamp(1.35rem, 2.6vw, 2.4rem); }
.nuphy-youtube-card p { max-width: 48ch; margin: 0; color: #646476; }
.nuphy-youtube-preview { width: 100%; aspect-ratio: 16 / 9; margin-top: 26px; display: block; border: 0; border-radius: 10px; background: #111; }
.nuphy-youtube-card a { width: fit-content; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: #30319f; font-size: .76rem; font-weight: 800; }

/* King Tony Tools case study */
.kingtony-opening { padding-top: clamp(34px, 5vw, 72px); }
.kingtony-hero-copy { max-width: 1050px; margin: 0 auto clamp(38px, 6vw, 76px); text-align: center; }
.case-eyebrow { margin: 0 0 18px; color: #0875b9; font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.kingtony-hero-copy h1 { max-width: 700px; margin: 0 auto 26px; }
.kingtony-hero-copy > p:last-child { max-width: 69ch; margin: 0 auto; color: var(--muted); }
.kingtony-hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(210px, .75fr); grid-template-rows: repeat(2, minmax(160px, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.kingtony-hero-grid figure { overflow: hidden; border-radius: 12px; background: #07101f; }
.kingtony-hero-primary { grid-row: 1 / span 2; }
.kingtony-hero-grid .case-photo { width: 100%; height: 100%; border-radius: 2px; }
.kingtony-hero-primary .case-photo { aspect-ratio: 16 / 10; }
.kingtony-hero-grid figure:not(.kingtony-hero-primary) .case-photo { aspect-ratio: 4 / 3; }
.kingtony-hero-grid figure:last-child .case-photo { object-position: center 35%; }
.kingtony-metrics { margin: clamp(12px, 2vw, 26px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: 12px; background: #0875b9; color: #fff; }
.kingtony-metrics article { min-height: 145px; padding: clamp(22px, 3vw, 42px) clamp(16px, 2.5vw, 36px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.kingtony-metrics article + article { border-left: 1px solid rgb(255 255 255 / .32); }
.kingtony-metrics strong { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-size: .78rem; font-weight: 900; font-stretch: normal; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.kingtony-metrics span { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kingtony-intro-copy { max-width: 760px; }
.kingtony-section-heading { max-width: 780px; margin: 0 auto clamp(38px, 6vw, 76px); text-align: center; }
.kingtony-section-heading h2, .arium-title-row h2, .kingtony-results-copy h2 { margin: 0 0 20px; }
.kingtony-section-heading > p:last-child, .arium-title-row > p, .kingtony-results-copy > p { margin: 0; color: var(--muted); }
.kingtony-audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.kingtony-audience-grid article { min-height: 265px; padding: clamp(20px, 3vw, 38px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.kingtony-audience-grid article + article { border-left: 1px solid var(--ink); }
.kingtony-audience-grid span { color: inherit; font-size: .78rem; font-weight: 900; line-height: 1.35; letter-spacing: .08em; }
.kingtony-audience-grid h3 { margin: 0; }
.kingtony-audience-grid p { margin: 0; color: var(--muted); }
.kingtony-system-section { background: #090909; color: #f5f5f5; padding-inline: clamp(24px, 4vw, 58px); }
.kingtony-system-section .case-eyebrow { color: #55b7ef; }
.kingtony-system-section .kingtony-section-heading > p:last-child, .kingtony-system-section .kingtony-production-note p { color: #aaa; }
.kingtony-pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #444; }
.kingtony-pillars article { min-height: 200px; padding: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.kingtony-pillars article + article { border-left: 1px solid #444; }
.kingtony-pillars b { color: inherit; font-size: .78rem; font-weight: 800; line-height: 1.35; letter-spacing: .08em; }
.kingtony-pillars span { font-weight: 800; }
#kingtony-page img, #kingtony-page video { border-radius: 12px; }
.kingtony-production-note { max-width: 980px; margin: clamp(55px, 8vw, 105px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.kingtony-production-note p { margin: 0; }
.kingtony-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 18px); }
.kingtony-type-grid img, .kingtony-torque-grid img, .kingtony-engagement-grid img, .arium-app-grid img, .kingtony-supporting-grid img, .kingtony-context-mockups img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kingtony-type-grid img { aspect-ratio: 1; }
.kingtony-torque-grid { margin-top: clamp(8px, 1.3vw, 18px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 18px); }
.kingtony-torque-grid img { height: auto; aspect-ratio: 4 / 3; }
.kingtony-context-mockups { margin-top: clamp(8px, 1.3vw, 18px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 18px); align-items: stretch; }
.kingtony-context-mockups figure { display: grid; grid-template-rows: 1fr auto; gap: 9px; }
.kingtony-context-mockups figure:first-child { grid-column: 1 / -1; }
.kingtony-context-mockups img { aspect-ratio: 4 / 3; }
.kingtony-context-mockups figure:first-child img { aspect-ratio: 7 / 5; }
.kingtony-photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 18px); }
.kingtony-photo-gallery figure:first-child { grid-column: 1 / -1; }
.kingtony-photo-gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.kingtony-engagement-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 18px); align-items: end; }
.kingtony-engagement-grid img { aspect-ratio: 4 / 5; }
.kingtony-engagement-grid figure:nth-child(3) img { object-position: top; }
.kingtony-results-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: clamp(36px, 7vw, 110px); align-items: center; overflow: hidden; border-radius: 12px; background: #0875b9; color: #fff; padding-inline: clamp(24px, 5vw, 72px); }
.kingtony-results-copy { max-width: 670px; }
.kingtony-results-copy .case-eyebrow { color: #bde4fb; }
.kingtony-results-copy > p { color: rgb(255 255 255 / .76); }
.kingtony-results-copy a { display: inline-block; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: #fff; font-size: .76rem; font-weight: 800; text-decoration: none; }
.kingtony-milestone-video { width: 100%; aspect-ratio: 1; display: block; background: #e6e6e6; object-fit: cover; }
.kingtony-supporting-grid { max-width: 1120px; margin: 0 auto; padding-inline: clamp(34px, 6vw, 92px); }
.kingtony-supporting-grid figure { display: grid; gap: 12px; }
.kingtony-catalogue-preview { container-type: inline-size; margin: 0 auto; width: 100%; }
.kingtony-catalogue-stack { position: relative; isolation: isolate; width: min(100%, 940px); height: clamp(480px, 70cqw, 660px); margin: 0 auto; }
.kingtony-supporting-grid .kingtony-catalogue-stack img { position: absolute; z-index: 1; bottom: 7%; left: var(--fan-left); width: 38%; height: auto; max-width: none; border: 1px solid rgb(0 0 0 / .14); border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgb(0 0 0 / .17); opacity: .76; transform: translateX(-50%) translateY(var(--fan-y)) rotate(var(--fan-angle)); transform-origin: center bottom; pointer-events: none; user-select: none; transition: transform 650ms cubic-bezier(.2, .7, .2, 1), box-shadow 650ms ease, opacity 650ms ease; }
.kingtony-supporting-grid .kingtony-catalogue-stack img.is-active { z-index: 20; opacity: 1; box-shadow: 0 24px 52px rgb(0 0 0 / .29); transform: translateX(-50%) translateY(-26px) rotate(0deg) scale(1.08); }
.kingtony-supporting-grid figcaption, .arium-app-grid figcaption { color: var(--muted); font-size: .64rem; text-align: left; }
.kingtony-catalogue-preview figcaption { margin-top: clamp(30px, 4vw, 48px); text-align: center; }
.arium-section { overflow: hidden; border-top: 0; border-radius: 12px; background: #eb7658; color: #103a37; padding-inline: clamp(24px, 4vw, 58px); }
.arium-section .case-eyebrow { color: #0d7169; }
.arium-title-row { margin-bottom: clamp(38px, 6vw, 76px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(35px, 7vw, 110px); align-items: end; }
.arium-title-row > p { color: rgb(16 58 55 / .75); }
.arium-stylescape img { width: 100%; min-height: 210px; display: block; object-fit: cover; }
.arium-app-grid { margin-top: clamp(8px, 1.3vw, 18px); display: grid; grid-template-columns: 1.35fr .75fr .75fr; gap: clamp(8px, 1.3vw, 18px); align-items: stretch; }
.arium-app-grid figure { display: grid; grid-template-rows: 1fr auto; gap: 8px; }
.arium-app-grid img { min-height: 320px; aspect-ratio: 1; }
.arium-app-grid figure:nth-child(3) img { object-position: center; }
.arium-app-grid figcaption { color: rgb(16 58 55 / .72); }
.kingtony-learning-section .three-point-grid article { padding: 0 clamp(6px, 1vw, 16px); }

/* Match the established Yen Ting Cho case-study typography. */
.kingtony-hero-copy h1,
.kingtony-intro-copy h2,
.kingtony-section-heading h2,
.kingtony-audience-grid h3,
.kingtony-pillars span,
.kingtony-production-note strong,
.kingtony-results-copy h2,
.arium-title-row h2 {
  font-size: .78rem !important;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kingtony-hero-copy > p:last-child,
.kingtony-section-heading > p:last-child,
.kingtony-audience-grid p,
.kingtony-production-note p,
.kingtony-results-copy > p,
.arium-title-row > p {
  font-size: clamp(.82rem, 1.05vw, 1rem);
  line-height: 1.325;
}
.kingtony-pillars span { font-size: .7rem !important; }
.yen-opening { padding-top: clamp(24px, 3vw, 42px); }
.ytc-hero { aspect-ratio: 16 / 8.3; min-height: 300px; background: linear-gradient(160deg, #17141f, #6a3d2c 58%, #c16f48); color: #fff; }
.ytc-feature-video { aspect-ratio: 16 / 8.5; min-height: 320px; background: linear-gradient(150deg, #151515, #30323d 55%, #7655a0); color: #fff; }
.ytc-hero-video, .ytc-feature-video-player { width: 100%; aspect-ratio: 16 / 8.5; min-height: 300px; border-radius: 12px; background: #111; object-fit: cover; }
.ytc-film-still { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 8px; background: #111; object-fit: cover; }
.ytc-art-photo { width: 100%; height: auto; display: block; border-radius: 12px; background: color-mix(in srgb, var(--panel) 94%, #d8d3c7); }
.ytc-film-strip { margin-top: clamp(12px, 1.8vw, 25px); }
.ytc-intro-copy { margin-top: 0; margin-bottom: clamp(42px, 6vw, 74px); }
.case-quote { max-width: 700px; margin: clamp(38px, 5vw, 68px) auto 0; padding: 0; border: 0; color: var(--muted); text-align: center; }
.case-quote p { margin: 0; font-size: clamp(.82rem, 1.05vw, 1rem); line-height: 1.65; }
.case-quote p + p { margin-top: 15px; }
.case-quote a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.yen-page .case-quote { color: var(--ink); }
.case-page .case-opening-copy p, .case-page .case-copy p, .case-page .three-point-grid p, .case-page .case-quote p { line-height: 1.325; }

/* Branding archive */
.branding-page { width: 100%; padding-bottom: 80px; color: var(--ink); }
.branding-page-header { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: clamp(24px, 5vw, 72px); align-items: end; padding: 4px 0 clamp(42px, 7vw, 88px); border-bottom: 1px solid var(--ink); }
.branding-page-header p, .branding-page-header h1 { margin: 0; }
.branding-page-header > div > p { margin-bottom: 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.branding-page-header h1 { max-width: 620px; font-size: clamp(1.55rem, 3.5vw, 3.9rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.branding-page-header > p { max-width: 420px; color: var(--muted); font-size: clamp(.82rem, 1vw, .98rem); line-height: 1.45; }
.branding-page-header > span { align-self: start; font-size: .68rem; white-space: nowrap; }
.branding-project { padding: clamp(44px, 7vw, 90px) 0; border-bottom: 1px solid var(--ink); scroll-margin-top: 30px; }
.branding-project-meta { display: grid; grid-template-columns: 1.1fr 1.5fr .35fr .55fr; gap: 20px; align-items: baseline; padding-bottom: 11px; border-bottom: 1px solid var(--rule); font-size: .68rem; line-height: 1.35; }
.branding-project-meta h2 { margin: 0; font-size: inherit; font-weight: 700; }
.branding-project-meta span:nth-child(3), .branding-project-meta span:last-child { text-align: right; }
.branding-project-intro { max-width: 960px; margin: clamp(26px, 4vw, 48px) 0 clamp(30px, 5vw, 62px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 70px); }
.branding-project-intro p { margin: 0; color: var(--muted); font-size: clamp(.82rem, 1.04vw, .98rem); line-height: 1.48; }
.branding-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.1vw, 16px); align-items: stretch; }
.branding-gallery figure { min-width: 0; margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 7px; }
.branding-gallery .span-12 { grid-column: span 12; }
.branding-gallery .span-8 { grid-column: span 8; }
.branding-gallery .span-7 { grid-column: span 7; }
.branding-gallery .span-6 { grid-column: span 6; }
.branding-gallery .span-5 { grid-column: span 5; }
.branding-gallery .span-4 { grid-column: span 4; }
.branding-gallery img, .branding-gallery video { width: 100%; height: 100%; min-height: 220px; aspect-ratio: 4 / 3; display: block; border: 0; border-radius: 0; background: #ececec; object-fit: cover; }
.branding-gallery .portrait-media img, .branding-gallery .portrait-media video { aspect-ratio: 4 / 5; }
.branding-gallery .brand-art img { padding: clamp(28px, 5vw, 76px); background: #f7f7f4; object-fit: contain; }
.branding-gallery figcaption { color: var(--muted); font-size: .64rem; line-height: 1.35; text-align: left; }
.branding-video video { background: #111; }
.branding-index { margin-top: clamp(54px, 8vw, 110px); border-top: 1px solid var(--ink); }
.branding-index a { display: grid; grid-template-columns: 44px 1fr 1fr 20px; gap: 16px; align-items: center; min-height: 40px; border-bottom: 1px solid var(--rule); color: inherit; font-size: .68rem; text-decoration: none; }
.branding-index a:hover { background: var(--selection); }
.branding-index strong { font-weight: 600; }
.branding-index em { color: var(--muted); font-style: normal; }
.branding-index b { font-weight: 500; text-align: right; }
.video-page-header { padding-bottom: clamp(28px, 4vw, 52px); }
.video-project { padding: clamp(34px, 5vw, 64px) 0; }
.video-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; padding-top: clamp(28px, 4vw, 50px); }
.video-gallery-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.video-gallery figure { margin: 0; min-width: 0; text-align: center; }
.video-gallery .phone-mockup { width: min(100%, 280px); }
.video-gallery figcaption { margin-top: 12px; color: var(--muted); font-size: .72rem; text-align: center; }
.video-youtube { max-width: 900px; margin: clamp(28px, 4vw, 50px) auto 0; text-align: center; }
.video-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #111; }
.video-youtube a { display: inline-block; margin-top: 15px; color: inherit; font-size: .74rem; text-underline-offset: 3px; }
@media (max-width: 760px) { .video-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .video-gallery-two { max-width: none; } }
.photo-page-header { padding-bottom: clamp(28px, 4vw, 52px); }
.photo-project { padding: clamp(34px, 5vw, 64px) 0; }
.photo-project .branding-project-meta { grid-template-columns: 1fr 1fr; }
.photo-project .branding-project-meta span { text-align: right; }
.photo-project-note { margin: 20px 0 24px; color: var(--muted); font-size: .72rem; }
.photo-gallery { --photo-gap: clamp(8px, 1.2vw, 16px); column-gap: var(--photo-gap); margin-top: 26px; }
.photo-project-note + .photo-gallery { margin-top: 0; }
.photo-gallery-three { column-count: 3; }
.photo-gallery-four { column-count: 4; }
.photo-gallery figure { break-inside: avoid; margin: 0 0 var(--photo-gap); }
.photo-gallery img { display: block; width: 100%; height: auto; background: #eee; }
@media (max-width: 900px) { .photo-gallery-four { column-count: 2; } }
@media (max-width: 760px) { .photo-gallery-three { column-count: 2; } }
@media (max-width: 520px) { .photo-gallery-three, .photo-gallery-four { column-count: 1; } }
/* Photography carousel: one photo at a time, shown whole, with side arrows and a thumbnail row (built in script.js). */
.photo-carousel { --carousel-height: clamp(320px, 62vh, 680px); margin-top: 8px; outline: none; }
.photo-carousel:focus-visible { outline: 2px solid #2388ea; outline-offset: 6px; }
.photo-carousel-stage { position: relative; height: var(--carousel-height); padding: 0 56px; display: grid; place-items: center; touch-action: pan-y; }
/* An explicit height cap (a % max-height doesn't resolve inside the grid), so tall photos shrink to fit the frame. */
.photo-carousel-image { max-width: 100%; max-height: var(--carousel-height); width: auto; height: auto; display: block; object-fit: contain; transition: opacity 220ms ease; }
.photo-carousel-image.is-changing { opacity: .25; }
.photo-carousel-arrow { position: absolute; top: 50%; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ink) 9%, transparent); color: color-mix(in srgb, var(--ink) 55%, transparent); transform: translateY(-50%); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.photo-carousel-arrow:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink); }
.photo-carousel-arrow:focus-visible { outline: 2px solid #2388ea; outline-offset: 2px; }
.photo-carousel-arrow svg { width: 18px; height: 18px; }
.photo-carousel-prev { left: 0; }
.photo-carousel-next { right: 0; }
.photo-carousel-count { margin: 12px 0 10px; color: var(--muted); font-size: var(--ed-label, .72rem); letter-spacing: .06em; text-align: center; }
.photo-carousel-thumbs { position: relative; display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.photo-carousel-thumbs::-webkit-scrollbar { display: none; }
.photo-carousel-thumb { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; overflow: hidden; background: transparent; opacity: .45; cursor: pointer; transition: opacity 160ms ease, box-shadow 160ms ease; }
.photo-carousel-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-carousel-thumb:hover { opacity: .8; }
.photo-carousel-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.photo-carousel-thumb:focus-visible { outline: 2px solid #2388ea; outline-offset: 2px; }
@media (max-width: 560px) {
  .photo-carousel-stage { height: auto; padding: 0; }
  .photo-carousel-image { width: 100%; height: auto; max-height: 70vh; }
  .photo-carousel-arrow { width: 30px; height: 30px; background: color-mix(in srgb, var(--panel) 75%, transparent); }
  .photo-carousel-prev { left: 6px; }
  .photo-carousel-next { right: 6px; }
  .photo-carousel-thumbs { justify-content: flex-start; }
  .photo-carousel-thumb { width: 52px; height: 52px; }
}
.partnership-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(30px, 5vw, 60px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.partnership-results span { min-height: 82px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 5px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.partnership-results span + span { border-left: 1px solid var(--rule); }
.partnership-results strong { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.04em; }
.partnership-phone-stage { padding: clamp(16px, 2vw, 28px) 0; place-items: center; background: transparent; }
.partnership-phone-stage figcaption { width: min(100%, 330px); justify-self: center; }
.partnership-phone { width: min(72vw, 330px); aspect-ratio: 356 / 730; }
.branding-gallery .partnership-phone .phone-frame { min-height: 0; aspect-ratio: auto; border-radius: 0; background: transparent; object-fit: contain; }
.branding-gallery .partnership-phone .case-video { min-height: 0; aspect-ratio: auto; background: #111; object-fit: cover; }
.partnership-youtube iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border: 0; background: #111; }
.partnership-youtube a { color: inherit; text-underline-offset: 3px; }

.ytc-art-grid { margin-top: clamp(55px, 8vw, 105px); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.ytc-feed-grid { width: min(900px, 86%); margin: clamp(58px, 8vw, 100px) auto 0; border-radius: 12px; background: #111; }
.ytc-feed-grid.is-enhanced { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; isolation: isolate; }
.ytc-feed-fallback { width: 100%; height: auto; display: block; border-radius: inherit; }
.ytc-feed-grid.is-enhanced .ytc-feed-fallback { display: none; }
.ytc-feed-tile { position: relative; z-index: 0; aspect-ratio: 3 / 4; background-image: var(--feed-image); background-repeat: no-repeat; background-size: 500% 1500%; background-position: var(--feed-x) var(--feed-y); transition: transform 200ms ease-out, filter 200ms ease-out, box-shadow 200ms ease-out, border-radius 200ms ease-out; }
.ytc-feed-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .42) 0 4px, transparent 4px 9px); mix-blend-mode: overlay; transition: opacity 180ms ease-out; }
.ytc-feed-tile:nth-of-type(1) { border-radius: 12px 0 0; }
.ytc-feed-tile:nth-of-type(5) { border-radius: 0 12px 0 0; }
.ytc-feed-tile:nth-of-type(71) { border-radius: 0 0 0 12px; }
.ytc-feed-tile:last-child { border-radius: 0 0 12px; }
.ytc-hero-copy { margin-top: clamp(40px, 6vw, 78px); }
.ytc-metrics { background: #17141f; }
.ytc-workflow-section { border-radius: 12px; background: #ece8f1; padding-inline: clamp(24px, 4vw, 58px); }
@media (hover: hover) and (pointer: fine) {
  .ytc-feed-grid:has(.ytc-feed-tile:hover) .ytc-feed-tile:not(:hover) { filter: brightness(.58) saturate(.6) contrast(1.18) blur(1.25px); image-rendering: pixelated; }
  .ytc-feed-grid:has(.ytc-feed-tile:hover) .ytc-feed-tile:not(:hover)::after { opacity: .72; animation: ytc-feed-fracture 360ms steps(2, end) infinite; }
  .ytc-feed-tile:hover { z-index: 10; transform: scale(1.2); filter: brightness(1.22) saturate(1.14) contrast(1.06); border-radius: 4px; box-shadow: 0 15px 36px rgba(0, 0, 0, .48), 0 0 18px rgba(255, 255, 255, .16); }
}
@keyframes ytc-feed-fracture {
  0%, 100% { transform: translate(0); background-position: 0 0, 0 0; }
  35% { transform: translate(1px, -1px); background-position: 0 2px, 3px 0; }
  70% { transform: translate(-1px, 1px); background-position: 0 -1px, -2px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ytc-feed-grid:has(.ytc-feed-tile:hover) .ytc-feed-tile:not(:hover)::after { animation: none; }
}

/* Night mode */
body.dark-mode { --desktop:#141414; --wallpaper:#111; --panel:#252525; --sidebar:#202020; --ink:#f1f1f1; --muted:#9c9c9c; --rule:#3c3c3c; --selection:#3a3a3a; color-scheme: dark; }
body.dark-mode::after { opacity: 1; }
.dark-mode .nav-item:hover { background: #303030; }
.dark-mode .workspace-toolbar strong { color: #bcbcbc; }
.dark-mode .yen-page { padding-left: 0; padding-right: 0; border-radius: 0; }
.dark-mode .media-placeholder { background: linear-gradient(145deg, #303631, #171c18); }
.dark-mode .logo-placeholder { background: #202020; }
.dark-mode .document::before { --panel:#252525; }
.dark-mode .window-dock button { background: #333; color: #fff; }
.dark-mode .note-row.active { background: #8b6f22; color: #fff; }
.dark-mode .ytc-workflow-section,
.dark-mode .emjour-process-section,
.dark-mode .nuphy-youtube-card { color: #22202a; }
.dark-mode .ytc-workflow-section .project-section-heading > p:last-child,
.dark-mode .emjour-process-section .project-section-heading > p:last-child { color: #77727b; }
.dark-mode .ytc-workflow-section .nuphy-proof { color: #302d38; }
.dark-mode .branding-gallery .brand-art img { background: #f2f2ee; }

@media (max-width: 850px) {
  .desktop { width: calc(100vw - 40px); height: calc(100vh - 40px); }
  .workspace-scroll { padding-left: 36px; padding-right: 36px; }
  .workspace-toolbar strong { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .yen-strip { gap: 6px; }
  .case-meta { grid-template-columns: 1fr; gap: 7px; }
  .case-meta span:nth-child(2), .case-meta span:last-child { text-align: left; }
  .three-point-grid { gap: 18px; }
  .media-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-board-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ytc-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ytc-feed-grid { width: 100%; }
  .project-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-metrics article:nth-child(3) { border-left: 0; border-top: 1px solid rgb(255 255 255 / .3); }
  .project-metrics article:nth-child(4) { border-top: 1px solid rgb(255 255 255 / .3); }
  .plants-hero-grid { grid-template-columns: 1.2fr .8fr; }
  .emjour-catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nuphy-opening { grid-template-columns: 1fr; }
  .nuphy-opening .project-hero-copy { text-align: center; }
  .nuphy-opening .project-hero-copy h1, .nuphy-opening .project-hero-copy > p:last-child { margin-left: auto; }
  .kingtony-hero-grid { grid-template-columns: 1.35fr .8fr; grid-template-rows: repeat(2, minmax(110px, 1fr)); }
  .kingtony-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kingtony-metrics article:nth-child(3) { border-left: 0; border-top: 1px solid rgb(255 255 255 / .32); }
  .kingtony-metrics article:nth-child(4) { border-top: 1px solid rgb(255 255 255 / .32); }
  .kingtony-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kingtony-pillars article:nth-child(3), .kingtony-pillars article:nth-child(5) { border-left: 0; }
  .kingtony-pillars article:nth-child(n + 3) { border-top: 1px solid #444; }
  .kingtony-results-section, .arium-title-row { grid-template-columns: 1fr; }
  .kingtony-results-section { gap: 42px; }
  .kingtony-milestone-video { width: min(100%, 560px); margin: 0 auto; }
  .arium-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arium-app-grid figure:first-child { grid-column: 1 / -1; }
  .branding-page-header { grid-template-columns: 1fr auto; }
  .branding-page-header > p { grid-column: 1 / -1; grid-row: 2; }
  .branding-page-header > span { grid-column: 2; grid-row: 1; }
  .branding-project-meta { grid-template-columns: 1fr 1.2fr auto; }
  .branding-project-meta span:last-child { grid-column: 1 / -1; text-align: left; color: var(--muted); }
}

@media (max-width: 560px) {
  .resume-window { width: 94vw; }
  .resume-content { padding: 30px 22px 52px; }
  .resume-section article header { grid-template-columns: 1fr; gap: 2px; }
  .resume-section article header strong { white-space: normal; }
  .resume-section article h3 em { display: block; margin-top: 2px; }
  .kingtony-hero-copy { text-align: left; }
  .kingtony-hero-copy h1 { margin-left: 0; }
  .kingtony-hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .kingtony-hero-primary { grid-column: 1 / -1; grid-row: auto; }
  .kingtony-metrics article { min-height: 120px; }
  .kingtony-audience-grid, .kingtony-production-note, .kingtony-type-grid, .kingtony-torque-grid, .kingtony-engagement-grid, .kingtony-supporting-grid, .kingtony-context-mockups, .kingtony-photo-gallery, .arium-app-grid { grid-template-columns: 1fr; }
  .kingtony-audience-grid article { min-height: 220px; }
  .kingtony-audience-grid article + article { border-left: 0; border-top: 1px solid var(--ink); }
  .kingtony-pillars { grid-template-columns: 1fr; }
  .kingtony-pillars article { min-height: 130px; }
  .kingtony-pillars article + article { border-left: 0; border-top: 1px solid #444; }
  .kingtony-engagement-grid img { aspect-ratio: 1; object-position: top; }
  .kingtony-context-mockups figure:first-child, .kingtony-photo-gallery figure:first-child { grid-column: auto; }
  .kingtony-supporting-grid { padding-inline: clamp(14px, 4vw, 24px); }
  .kingtony-catalogue-stack { height: clamp(300px, 80cqw, 580px); }
  .kingtony-supporting-grid .kingtony-catalogue-stack img { width: 44%; }
  .arium-app-grid figure:first-child { grid-column: auto; }
  .project-metrics article { min-height: 120px; }
  .plants-hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .plants-hero-grid .plants-hero-video { grid-column: 1 / -1; grid-row: auto; }
  .plants-hero-grid video { width: min(76%, 420px); }
  .plants-bean-grid, .emjour-process-grid, .nuphy-followup-grid { grid-template-columns: 1fr; }
  .vertical-video-row, .emjour-social-grid { grid-template-columns: 1fr; }
  .podcast-thumbnails, .social-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-video-row { grid-template-columns: 1fr; }
  .emjour-photo-grid, .emjour-catalogue-grid, .emjour-poster-grid { grid-template-columns: 1fr; }
  .emjour-photo-grid figure:first-child { grid-column: auto; }
  .nuphy-proof { grid-template-columns: 1fr; }
  .nuphy-proof article + article { border-left: 0; border-top: 1px solid currentColor; }
  .branding-page-header { grid-template-columns: 1fr; }
  .branding-page-header > p, .branding-page-header > span { grid-column: 1; grid-row: auto; }
  .branding-page-header > span { margin-top: 10px; }
  .branding-project-meta { grid-template-columns: 1fr auto; row-gap: 8px; }
  .branding-project-meta h2 { grid-column: 1; }
  .branding-project-meta span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .branding-project-meta span:nth-child(3) { grid-column: 2; grid-row: 1; }
  .branding-project-meta span:last-child { grid-column: 1 / -1; grid-row: 3; }
  .branding-project-intro { grid-template-columns: 1fr; }
  .partnership-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partnership-results span:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule); }
  .partnership-results span:nth-child(4) { border-top: 1px solid var(--rule); }
  .branding-gallery .span-12, .branding-gallery .span-8, .branding-gallery .span-7, .branding-gallery .span-6, .branding-gallery .span-5, .branding-gallery .span-4 { grid-column: span 12; }
  .branding-gallery img, .branding-gallery video { min-height: 0; height: auto; }
  .branding-index a { grid-template-columns: 32px 1fr 18px; }
  .branding-index em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kingtony-supporting-grid .kingtony-catalogue-stack img { transition: none; }
}

/* Tablet and small-laptop widths: keep overview folders large enough that their names don't break mid-word. */
@media (min-width: 701px) and (max-width: 1100px) {
  .overview-view { --folder-width: clamp(64px, calc((100vw - 340px) / 5.6), 80px); --doc-width: calc(var(--folder-width) * .7); }
  /* Leave room between the section titles and the folder tabs, which rise above each folder. */
  .overview-view .folder-grid.selected-grid, .overview-view .folder-grid.more-grid { padding-top: 30px; }
  .folder-card > span:last-child, .file-card > span:last-child { overflow-wrap: normal; }
}

/* Phone layout (700px and under): the Finder frame fills the screen and the sidebar becomes a slide-out menu. */
.menu-toggle, .nav-scrim { display: none; }
@media (max-width: 700px) {
  html, body { min-width: 0; }
  .desktop { left: 0; top: 0; width: 100%; height: 100vh; height: 100dvh; padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr); border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .desktop .workspace { border-radius: 0; }
  .desktop .sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(82vw, 300px); height: 100vh; height: 100dvh; padding: 18px 12px 28px; overflow-y: auto; border-radius: 0 20px 20px 0; transform: translateX(-104%); visibility: hidden; transition: transform 260ms ease, visibility 0s linear 260ms; }
  body.nav-open .desktop .sidebar { transform: none; visibility: visible; box-shadow: 0 0 48px rgba(0, 0, 0, .4); transition: transform 260ms ease; }
  .nav-scrim { display: block; position: fixed; z-index: 25; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity 260ms ease; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .brand { display: none; }
  /* The phone menu uses Helvetica Neue first (falls back to Helvetica/Arial where it isn't installed). */
  .desktop .sidebar, .desktop .sidebar :is(button, a, h2, span) { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
  .nav-section h2 { padding: 6px 4px; font-size: .75rem; }
  .nav-item { min-height: 38px; padding: 6px 10px; font-size: .95rem; }
  .nav-section { margin-top: 4px; }
  .contact-link { margin-top: 4px; }
  .workspace { grid-template-rows: 48px minmax(0, 1fr) 36px; }
  .workspace-toolbar { grid-template-columns: auto 1fr auto; padding: 0 8px; }
  .workspace-toolbar button { width: 40px; height: 40px; }
  .workspace-toolbar strong { text-align: center; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .toolbar-group button[aria-label="Forward"] { display: none; }
  .workspace-scroll { padding: 18px 16px 28px; }
  .path-bar { padding: 0 12px; }

  .overview-view { --overview-grid-inset: 0px; --overview-column-gap: 8px; --folder-width: clamp(84px, 26vw, 120px); --doc-width: calc(var(--folder-width) * .7); min-width: 0; }
  .profile-files, .folder-grid { width: 100%; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; }
  .file-card, .folder-card { justify-self: center; }
  .folder-grid.selected-grid, .folder-grid.more-grid { padding-top: 32px; }

  .floating-layer { padding: 3vh 3vw; }
  .utility-window, .resume-window, .notes-window { width: 94vw; max-height: 90vh; max-height: 90dvh; border-radius: 18px; }
  .notes-window { height: 90vh; height: 90dvh; }
  .utility-titlebar { padding: 0 16px; }
  .utility-lights button, .utility-lights i { width: 16px; height: 16px; }
  .about-content, .resume-content { max-height: calc(90vh - 53px); max-height: calc(90dvh - 53px); }
  .about-content { padding: 24px 20px 32px; }
  .notes-tools { display: none; }
  .notes-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 38%) minmax(0, 1fr); }
  .notes-list { border-right: 0; border-bottom: 1px solid var(--rule); }
  .note-editor { padding: 12px 20px 32px; }

  .kingtony-catalogue-stack { width: 84%; }
  .three-point-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  /* Small labels and captions get a little larger so they stay readable on a phone. */
  .case-meta, .branding-project-meta, .branding-page-header > span, .partnership-results span { font-size: .75rem; }
  .case-eyebrow, .project-metrics span, .kingtony-metrics span, .branding-page-header > div > p { font-size: .72rem; }
  .branding-index a { min-height: 44px; font-size: .8rem; }
  .case-page figcaption, .branding-gallery figcaption, .kingtony-supporting-grid figcaption, .arium-app-grid figcaption, .podcast-youtube figcaption { font-size: .72rem; }
  .image-note { font-size: .7rem; }
}

/* Editorial case study — Cory Ju brand system adapted for the site: follows light/dark mode, Helvetica (bold headings,
   regular body), flush left, square corners, boxed numbered results, generous space between text and images.
   Applied per page with .editorial-case; the More Work galleries (.branding-page) and the About/Resume windows share the type tokens. */
.editorial-case, .branding-page, .about-content, .resume-content {
  --ed-accent: #0875b9;
  --ed-accent-text: #0875b9;
  --ed-line: color-mix(in srgb, var(--ink) 22%, transparent);
  --ed-gutter: clamp(6px, .6vw, 12px);
  --ed-text-gap: clamp(16px, 2vw, 32px);
  --ed-block: clamp(48px, 6.75vw, 96px);
  --ed-to-media: clamp(36px, 4.5vw, 64px);
  --ed-h1: clamp(34px, 3.3vw, 64px);
  --ed-h2: clamp(22px, 2.2vw, 40px);
  --ed-h3: clamp(17px, 1.4vw, 24px);
  --ed-body: clamp(15px, 1.05vw, 17px);
  --ed-label: clamp(11px, .8vw, 13px);
  color: var(--ink);
}
body.dark-mode .editorial-case { --ed-accent-text: #5cb8ef; }
.editorial-case.ed-plants { --ed-accent: #265b3a; --ed-accent-text: #3f7b51; }
.editorial-case.ed-yenting { --ed-accent: #000; --ed-accent-text: #6f6f6f; }
.editorial-case.ed-emjour { --ed-accent: #594437; --ed-accent-text: #7a5d49; }
.editorial-case.ed-nuphy { --ed-accent: #2d31a9; --ed-accent-text: #4445c7; }
body.dark-mode .editorial-case.ed-plants { --ed-accent-text: #7fc596; }
body.dark-mode .editorial-case.ed-yenting { --ed-accent-text: #a3a3a3; }
body.dark-mode .editorial-case.ed-emjour { --ed-accent-text: #d0a98c; }
body.dark-mode .editorial-case.ed-nuphy { --ed-accent-text: #9fa7ff; }
/* Square corners everywhere except inside phone mockups, where the screen follows the phone frame. */
.editorial-case :is(img, video, figure, iframe, .media-placeholder, .case-section, .nuphy-proof, .ytc-feed-grid, .ytc-feed-tile):not(.phone-mockup, .phone-mockup *) { border-radius: 0 !important; }
/* Photos and videos get a soft shadow, like the phone mockups, so they lift off the page. Transparent logos stay flat. */
.editorial-case, .branding-page { --ed-shadow: 0 12px 24px rgb(0 0 0 / .14), 0 2px 6px rgb(0 0 0 / .08); }
body.dark-mode :is(.editorial-case, .branding-page) { --ed-shadow: 0 12px 26px rgb(0 0 0 / .45), 0 2px 6px rgb(0 0 0 / .3); }
.editorial-case figure:not(.phone-mockup *) { overflow: visible !important; }
.editorial-case :is(img, video, iframe):not(.phone-mockup *, .logo-art, .ytc-feed-fallback) { box-shadow: var(--ed-shadow) !important; }
.editorial-case :is(p, h1, h2, h3, figcaption, article, li) { text-align: left; }

/* Type hierarchy: caps bold for titles and headings, small caps bold labels in the project color, regular body. */
.editorial-case .ed-label, .editorial-case p.case-eyebrow { margin: 0 0 6px; color: var(--ed-accent-text) !important; font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.editorial-case .ed-title { margin: 0 0 8px; font-size: var(--ed-h1); font-weight: 700; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.editorial-case :is(.kingtony-section-heading h2, .kingtony-intro-copy h2, .kingtony-results-copy h2, .arium-title-row h2, .section-title, .project-section-heading h2, .case-copy h2, .case-copy h1) { margin: 0 0 clamp(12px, 1.4vw, 18px); font-size: var(--ed-h2) !important; font-weight: 700; line-height: .95; letter-spacing: -.035em; text-align: left; text-transform: uppercase; }
.editorial-case :is(.kingtony-audience-grid h3, .kingtony-pillars span, .three-point-grid h3, .kingtony-production-note strong, .nuphy-proof strong) { margin: 0 0 .45em; font-size: var(--ed-h3) !important; font-weight: 700; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.editorial-case :is(.ed-intro p, .kingtony-section-heading > p:last-child, .kingtony-intro-copy p:not(.case-eyebrow), .kingtony-results-copy > p:not(.case-eyebrow), .arium-title-row > p, .kingtony-production-note p, .three-point-grid p, .kingtony-audience-grid p, .project-section-heading > p:not(.case-eyebrow), .case-copy p:not(.case-eyebrow), .case-quote p, .nuphy-proof p, .nuphy-youtube-card p) { margin: 0; color: var(--ink) !important; font-size: var(--ed-body); font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.editorial-case figcaption { color: var(--muted); font-size: var(--ed-label); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }

/* Header: project stack, then a full-width row of boxed results. */
.editorial-case .ed-header { padding: clamp(8px, 1.5vw, 20px) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px); column-gap: var(--ed-text-gap); align-items: start; }
.editorial-case .ed-project { max-width: 760px; }
.editorial-case .ed-project > .ed-label:first-child { color: var(--muted) !important; }
.editorial-case .ed-project > .ed-title + .ed-label { color: var(--muted) !important; font-weight: 400; }
.editorial-case .ed-intro { margin: clamp(24px, 3vw, 40px) 0; }
.editorial-case .ed-intro p:first-child { font-size: var(--ed-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.editorial-case .ed-intro p + p { margin-top: .8em !important; }
/* Services sit top-right, flush right, so the stack under the title stays short. */
.editorial-case .ed-services { max-width: 30ch; margin: 0; justify-self: end; color: var(--muted) !important; font-weight: 400; line-height: 1.5; text-align: right; }
.editorial-case .ed-role { margin: 0; color: var(--ink) !important; }
.editorial-case .ed-results { margin: clamp(36px, 4.5vw, 60px) 0 var(--ed-to-media); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--ed-accent); color: #fff; }
.editorial-case .ed-results li { min-height: 150px; padding: clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.editorial-case .ed-results li + li { border-left: 1px solid rgb(255 255 255 / .32); }
.editorial-case .ed-results span { font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; opacity: .7; }
.editorial-case .ed-results strong { margin-top: clamp(14px, 2vw, 28px); font-size: var(--ed-h2); font-weight: 700; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; }
.editorial-case .ed-results em { font-size: var(--ed-label); font-style: normal; font-weight: 700; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; }

/* Spacing: big gaps between groups, clear space between text and the images that follow it. */
.editorial-case .case-section { padding: var(--ed-block) 0 0; border-top: 0; }
.editorial-case .case-opening { padding: 0; }
/* Links inside body text are underlined so they read as links. */
.editorial-case :is(.three-point-grid, .case-copy, .project-section-heading, .case-quote) p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* NuPhy's opening once paired text with the phone; the text now lives in the header, so the phone centers on its own. */
.editorial-case .nuphy-opening { grid-template-columns: minmax(0, 1fr); }
.editorial-case .nuphy-phone { width: min(100%, 300px); }
.editorial-case .kingtony-intro-copy { margin-top: clamp(32px, 4vw, 56px); }
.editorial-case :is(.kingtony-section-heading, .kingtony-intro-copy, .kingtony-results-copy, .arium-title-row > div, .case-copy, .project-section-heading, .case-quote) { max-width: 760px; margin-left: 0; margin-right: 0; margin-bottom: var(--ed-to-media); text-align: left; }
.editorial-case .arium-title-row { margin-bottom: var(--ed-to-media); align-items: start; }
.editorial-case .arium-title-row > div { margin-bottom: 0; }
.editorial-case .arium-title-row > p { max-width: 52ch; }

/* Project-colored blocks sit on the page background. */
.editorial-case :is(.kingtony-results-section, .arium-section) { padding-inline: 0; border-radius: 0; background: transparent; color: var(--ink); }
.editorial-case .kingtony-results-copy a { color: var(--ink); font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Text blocks marked .ed-center (e.g. King Tony's Challenge) sit centered over the columns below them. */
.editorial-case .ed-center { margin-left: auto; margin-right: auto; }
.editorial-case .ed-center :is(p, h2) { text-align: center; }

/* Standalone text blocks between image sections: space above, left aligned. */
.editorial-case > .case-copy { margin-top: var(--ed-block); }
.editorial-case .case-opening + .case-copy { margin-top: clamp(32px, 4vw, 56px); }
.editorial-case h2.section-title { margin-bottom: var(--ed-to-media); }
/* A section title followed directly by text stays close to it; text blocks inside a section don't add their own top gap. */
.editorial-case h2.section-title:has(+ .case-copy, + .case-quote) { margin-bottom: clamp(12px, 1.4vw, 18px); }
.editorial-case h2.section-title + :is(.case-copy, .case-quote) { margin-top: 0; }
.editorial-case :is(.case-copy, .project-section-heading, .case-quote) p + p { margin-top: .8em !important; }
.editorial-case .case-quote { margin-top: var(--ed-to-media); color: var(--ink); }
.editorial-case .case-quote p + p { margin-top: .8em; }
.editorial-case .case-quote a { color: var(--ink); }
.editorial-case .image-note { margin: 10px 0 0; color: var(--muted); font-size: var(--ed-label); letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.editorial-case :is(.media-grid, .vertical-video-row, .emjour-photo-grid, .emjour-catalogue-grid, .plants-hero-grid, .plants-bean-grid) { gap: var(--ed-gutter); }
/* The bean menu (1760×2200) and LINE stamp card (1016×2200) share a row; columns in that ratio keep both uncropped at the same height. */
.editorial-case .plants-bean-grid { grid-template-columns: 1760fr 1016fr; align-items: start; }
.editorial-case .plants-bean-grid img { height: auto; max-height: none; object-fit: contain; }

/* Label + content columns, ruled on top (the "What I learned" pattern). */
.editorial-case :is(.kingtony-audience-grid, .three-point-grid) { border: 0; gap: var(--ed-text-gap); }
.editorial-case :is(.kingtony-audience-grid article, .three-point-grid article) { min-height: 0; padding: clamp(14px, 1.4vw, 20px) 0 0; border: 0 !important; border-top: 1px solid var(--ed-line) !important; align-items: flex-start; justify-content: flex-start; gap: 0; text-align: left; }
.editorial-case .kingtony-audience-grid span { margin-bottom: 6px; color: var(--ed-accent-text); font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; }

/* Operating system: a tinted panel with a boxed grid so each part reads as its own chunk. */
.editorial-case .kingtony-system-section { margin-top: var(--ed-block); padding: clamp(32px, 4.5vw, 64px); border-radius: 0; background: color-mix(in srgb, var(--ed-accent) 9%, var(--panel)); color: var(--ink); }
.editorial-case :is(.emjour-process-section, .emjour-catalogue-section, .nuphy-trust-section, .ytc-workflow-section) { margin-top: var(--ed-block); padding: clamp(32px, 4.5vw, 64px); background: color-mix(in srgb, var(--ed-accent) 9%, var(--panel)); color: var(--ink); }
.editorial-case .nuphy-youtube-card { border-radius: 0; background: color-mix(in srgb, var(--ed-accent) 9%, var(--panel)); color: var(--ink); }
body.dark-mode .editorial-case :is(.emjour-process-section, .emjour-catalogue-section, .nuphy-trust-section, .ytc-workflow-section, .nuphy-youtube-card, .nuphy-proof) { color: var(--ink); }
/* Before/after and proof points: a boxed row with thin lines, like the pillars. */
.editorial-case .nuphy-proof { border: 1px solid var(--ed-line); background: var(--panel); }
.editorial-case .nuphy-proof article { min-height: 0; padding: clamp(16px, 1.8vw, 24px); justify-content: flex-start; gap: 6px; text-align: left; }
.editorial-case .nuphy-proof article + article { border-left: 1px solid var(--ed-line); }
.editorial-case .nuphy-proof p { opacity: 1; }
/* The five pillars read as a boxed, numbered index: one ruled row each. */
.editorial-case .kingtony-pillars { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--ed-line); background: var(--panel); }
.editorial-case .kingtony-pillars article { min-height: 0; padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.8vw, 24px); border: 0 !important; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: clamp(16px, 2.4vw, 40px); text-align: left; }
.editorial-case .kingtony-pillars article + article { border-top: 1px solid var(--ed-line) !important; }
.editorial-case .kingtony-pillars b { min-width: 2ch; }
.editorial-case .kingtony-pillars span { margin: 0; }
.editorial-case .kingtony-pillars b { color: var(--ed-accent-text); font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; }
.editorial-case .kingtony-production-note { max-width: none; margin: clamp(28px, 3.5vw, 48px) 0 0; padding-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--ed-line); gap: var(--ed-text-gap); }

/* Image mosaics: thin gutters, edge to edge. */
.editorial-case :is(.kingtony-hero-grid, .kingtony-type-grid, .kingtony-torque-grid, .kingtony-context-mockups, .kingtony-photo-gallery, .kingtony-engagement-grid, .arium-app-grid) { gap: var(--ed-gutter); max-width: none; }
.editorial-case :is(.kingtony-torque-grid, .kingtony-context-mockups, .arium-app-grid) { margin-top: var(--ed-gutter); }
.editorial-case .kingtony-hero-grid figure { background: transparent; }
.editorial-case .kingtony-supporting-grid .kingtony-catalogue-stack img { border-radius: 0; }
.editorial-case .kingtony-catalogue-preview figcaption { text-align: left; }

/* Next project: a square button on the right. */
.editorial-case .case-next { margin-top: var(--ed-block); padding: 20px 0 4px; border-top: 1px solid var(--ed-line); text-align: right; }
.editorial-case .case-next button { min-width: min(100%, 260px); padding: 16px 20px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--panel); text-align: left; font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background-color 160ms ease, color 160ms ease; }
.editorial-case .case-next button span { margin: 0; font-size: var(--ed-h3); line-height: 1; letter-spacing: -.02em; }
.editorial-case .case-next button:hover { background: transparent; color: var(--ink); }
.editorial-case .case-next button:focus-visible { outline: 2px solid #2388ea; outline-offset: 4px; }

/* Sections end flush, so the gap between sections is only the next section's top space (about half the old gap). */
.editorial-case > :is(section, div):has(+ :is(.case-section, .case-copy, .case-next)) { margin-bottom: 0; }
.editorial-case .case-section > :last-child, .editorial-case > .case-copy > :last-child { margin-bottom: 0; }
.editorial-case .case-section > :last-child:is(.case-copy, .project-section-heading, .case-quote) { margin-bottom: 0; }

/* More Work galleries use the Selected Work type hierarchy: gray caps label, big caps title, caps project
   headings, gray caps details and captions, regular body text. */
.branding-page .branding-page-header > div > p { margin: 0 0 8px; color: var(--muted); font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.branding-page .branding-page-header h1 { max-width: 760px; font-size: var(--ed-h1); font-weight: 700; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.branding-page .branding-page-header > p { color: var(--ink); font-size: var(--ed-body); font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.branding-page .branding-page-header > span, .branding-page .branding-project-meta span, .branding-page .photo-project-note { color: var(--muted); font-size: var(--ed-label); font-weight: 400; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.branding-page .branding-project-meta h2 { font-size: var(--ed-h2); font-weight: 700; line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.branding-page .branding-project-intro p { color: var(--ink); font-size: var(--ed-body); font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.branding-page figcaption { color: var(--muted); font-size: var(--ed-label); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.branding-page .partnership-results span { color: var(--muted); font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.branding-page .partnership-results strong { color: var(--ink); font-size: var(--ed-h2); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.branding-page .branding-index a { font-size: var(--ed-label); letter-spacing: .06em; text-transform: uppercase; }
.branding-page .branding-index strong { font-weight: 700; }

/* More Work photos and videos get the same soft shadow as the case studies (not thumbnails or phone screens). */
.branding-page :is(img, video, iframe):not(.phone-mockup *, .photo-carousel-thumb img) { box-shadow: var(--ed-shadow); }

/* About window: big caps title, bold intro line, caps section heading, regular body. */
.about-content .about-hero h1 { max-width: 16ch; margin: 0 0 16px; font-size: var(--ed-h1); font-weight: 700; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.about-content .about-hero p { font-size: var(--ed-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.about-content h2 { margin: 0 0 14px; font-size: var(--ed-h3); font-weight: 700; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.about-content .about-note p { margin: 0 0 1em; font-size: var(--ed-body); font-weight: 400; line-height: 1.45; }
.about-content .about-note strong { font-size: var(--ed-body); font-weight: 700; line-height: 1.45; }

/* Resume window: big caps name, gray caps details, caps section headings, bold caps job titles, regular body. */
.resume-content .resume-heading h2 { font-size: var(--ed-h1); font-weight: 700; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.resume-content .resume-heading p:first-of-type { margin-top: 10px; color: var(--muted); font-size: var(--ed-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.resume-content .resume-heading p { font-size: var(--ed-body); line-height: 1.45; }
.resume-content .resume-section > h4 { margin: 0 0 12px; padding-bottom: 6px; font-size: var(--ed-h3); font-weight: 700; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.resume-content .resume-section article h3 { font-size: var(--ed-body); font-weight: 700; line-height: 1.25; letter-spacing: .01em; text-transform: uppercase; }
.resume-content .resume-section article h3 em, .resume-content .resume-section article header strong { color: var(--muted); font-size: var(--ed-label); font-style: normal; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.resume-content .resume-section > p, .resume-content .resume-section li, .resume-content .resume-company { font-size: var(--ed-body); font-weight: 400; line-height: 1.45; }
.resume-content .resume-company { font-style: normal; }

/* Phone: single column, results stack, 2-up mosaics, hero full width. */
@media (max-width: 560px) {
  .editorial-case .ed-header { grid-template-columns: 1fr; }
  .editorial-case .ed-services { max-width: none; justify-self: start; text-align: left; }
  .editorial-case .ed-results { grid-template-columns: 1fr; }
  .editorial-case .ed-results li { min-height: 0; }
  .editorial-case .ed-results li + li { border-left: 0; border-top: 1px solid rgb(255 255 255 / .32); }
  .editorial-case :is(.kingtony-audience-grid, .three-point-grid) { grid-template-columns: 1fr; }
  .editorial-case :is(.kingtony-type-grid, .kingtony-engagement-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-case .kingtony-hero-grid { grid-template-columns: 1fr 1fr; }
  .editorial-case .case-next button { width: 100%; }
  .editorial-case .plants-bean-grid { grid-template-columns: 1fr; }
  .editorial-case .nuphy-proof article + article { border-left: 0; border-top: 1px solid var(--ed-line); }
}
