:root {
  color-scheme: light;
  --paper: #eaf1f5;
  --ink: #153c56;
  --muted: #536c7c;
  --accent: #165e9d;
  --line: #b8cbd7;
  --panel: #d8e8f1;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
* { box-sizing: border-box; }
body { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #b8d3ff; color: #10274a; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 86px; border-bottom: 1px solid var(--line); }
nav { display: flex; flex-wrap: wrap; gap: 30px; }
nav a { text-decoration: none; color: var(--muted); font-size: 12px; padding: 8px 0; }
nav a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--accent); }
main { margin: 0 0 80px; }
.introduction { position: relative; isolation: isolate; overflow: hidden; padding: 24px 30px; margin: 24px 0; border: 1px solid #124d75; border-radius: 3px 8px 2px 5px; background: #176497; min-height: 180px; display: flex; flex-direction: column; justify-content: center; box-shadow: 3px 4px 0 #b4ccd9; }
.introduction h1 { font-family: var(--display); font-size: clamp(68px, 10vw, 112px); font-weight: 900; line-height: 1.05; letter-spacing: -5px; margin: 0; color: #edf5f5; text-shadow: -1px 1px 0 #9dbfce, 1px -1px 0 #fff; transform: rotate(-1deg); transform-origin: left center; }
.homepage-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.homepage-columns > section { min-width: 0; padding: 30px 26px 34px; }
.homepage-columns > section:first-child { text-align: left; }
.homepage-columns > section:last-child { text-align: right; }
h2 { font-family: var(--display); font-weight: 800; font-size: 29px; letter-spacing: -1.3px; margin: 0 0 22px; }
p { color: var(--muted); line-height: 1.8; font-size: 13px; }
.homepage-columns > section > p:last-child { margin-top: 26px; font-size: 11px; }
.homepage-columns > section:last-child > p:nth-last-child(2) { color: var(--muted); }
.scroll-cue { text-align: center; margin: 35px 0; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.site-footer { display: flex; justify-content: flex-end; padding: 22px 0 35px; border-top: 1px solid var(--line); font-size: 10px; }
body:not(.home) main { max-width: 740px; margin: 60px auto 100px; }
.article-header h1, .intro h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 60px); font-weight: 400; letter-spacing: -2px; }
.post-card { padding: 20px 0; border-top: 1px solid var(--line); }
.post-card h2 { font-size: 25px; margin: 10px 0; }
time, .tags, .back-link { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.prose { line-height: 1.85; overflow-wrap: anywhere; }
.prose p { font-size: 16px; }
.prose h2 { margin-top: 40px; }
img, video { max-width: 100%; height: auto; }
pre { overflow: auto; padding: 20px; background: var(--panel); }
.prose table { display: block; overflow: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 600px) {
  body { padding: 0 24px; }
  .site-header { min-height: 72px; }
  .introduction { min-height: 150px; padding: 22px 24px; }
  .introduction h1 { letter-spacing: -3px; font-size: clamp(48px, 13vw, 78px); }
  .homepage-columns { grid-template-columns: 1fr; gap: 20px; }
  .homepage-columns > section:first-child { padding: 28px 24px; }
  .homepage-columns > section:last-child { padding: 28px 24px; }
  h2 { font-size: 28px; }
}

/* A restrained print texture: surface grain, not an illustrative motif. */
.introduction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .19;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.8%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Cpath%20fill%3D%22%23fff%22%20filter%3D%22url%28%23grain%29%22%20d%3D%22M0%200h180v180H0z%22%2F%3E%3C%2Fsvg%3E");
}
.site-header { border-bottom: 2px solid var(--line); }
nav a { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
nav a[aria-current] { border-bottom: 2px solid var(--accent); }

/* Images and foreground share one grid area; photo rows set the page height. */
.image-field { display: grid; grid-template-columns: minmax(0, 1fr); isolation: isolate; position: relative; margin-top: 36px; }
.image-field > * { grid-area: 1 / 1; }
.image-collage { display: flex; flex-direction: column; gap: 0; padding: 0; pointer-events: none; user-select: none; }
.collage-row { display: flex; gap: 0; height: clamp(200px, 28vw, 330px); }
.collage-row:nth-child(even) { height: clamp(240px, 34vw, 400px); }
.collage-frame { flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; background: #c3d6e3; }
.collage-row:nth-child(odd) .collage-frame:first-child, .collage-row:nth-child(even) .collage-frame:last-child { flex-grow: 2; }
.collage-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-field .scroll-cue { align-self: start; justify-self: center; z-index: 1; margin: 46px 0 0; background: #eaf1f5f5; padding: 12px 20px; border: 1px solid var(--line); }
@media (max-width: 600px) {
  .image-field { margin-top: 28px; }
  .collage-row { height: 180px; }
  .collage-row:nth-child(even) { height: 240px; }
}

.about-section > h2 { margin-bottom: 24px; }
.about-intro { max-width: 46ch; }
.about-intro .about-lead { color: var(--ink); font-size: 19px; line-height: 1.6; letter-spacing: -.35px; margin: 0 0 14px; }
.about-intro > p { margin: 0 0 18px; }
.about-portfolio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding-top: 4px; }
.about-portfolio a { font-size: 12px; font-weight: 600; }
.about-status { color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.about-interests { display: grid; gap: 30px; margin-top: 38px; }
.about-interest { min-width: 0; }
.about-interest-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.about-interest h3 { font-size: 17px; font-weight: 700; letter-spacing: -.45px; margin: 0; }
.about-interest h3 a { text-decoration: none; color: var(--ink); }
.about-interest h3 a:hover { color: var(--accent); text-decoration: underline; }
.about-interest p { margin: 9px 0; max-width: 46ch; }
.about-interest .about-empty { font-size: 11px; font-style: italic; margin: 14px 0; }
.about-detail-link { font-size: 11px; }
@media (max-width: 600px) {
  .about-interests { margin-top: 30px; gap: 26px; }
  .about-intro .about-lead { font-size: 18px; }
}

.media-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 12px; }
.media-cover-placeholder { min-width: 0; aspect-ratio: 3 / 4; border-radius: 8px; background: #c3d6e3; }
.media-cover-placeholder:nth-child(3n + 2) { background: #aec8d9; }
.media-cover-placeholder:nth-child(3n) { background: #d3e1ea; }
@media (max-width: 600px) { .media-preview-grid { gap: 10px; } }
@media (max-width: 360px) { .media-preview-grid { gap: 8px; } }

.updates-section .updates-caption { margin: 0 0 12px; }
.updates-section .updates-demo-label { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); margin: 0 0 26px; }
.updates-feed { list-style: none; padding: 0; margin: 0; }
.update-item { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.update-meta { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.update-meta span { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.update-meta time { font-size: 10px; }
.update-item h3 { font-size: 18px; line-height: 1.45; font-weight: 650; letter-spacing: -.45px; margin: 0 0 10px; }
.update-item h3 a { color: var(--ink); text-decoration: none; }
.update-item h3 a:hover { text-decoration: underline; }
.update-item p { margin: 8px 0 14px; }
.update-read, .update-item summary { font-size: 11px; color: var(--accent); }
.update-item summary { cursor: pointer; text-decoration: underline; text-underline-offset: 5px; list-style-position: inside; }
.update-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.updates-section .updates-archive { margin-top: 0; }

/* Paint strokes behind headings. */
.homepage-columns { position: relative; isolation: isolate; }
.homepage-columns > section { position: relative; isolation: isolate; }
.about-section::before, .updates-section::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: 24px; height: 49px; width: 150px; background: #7dafcf55; clip-path: polygon(0 9%,95% 0,100% 88%,4% 100%,2% 76%,0 75%); }
.about-section::before { left: 16px; width: 92px; transform: rotate(-3deg); }
.updates-section::before { right: 16px; transform: rotate(2deg); background: #87b3cb50; }
.about-interest-heading h3 { text-decoration: underline; text-decoration-color: #97bed04d; text-decoration-thickness: 6px; text-underline-offset: 1px; text-decoration-skip-ink: none; }
@media (max-width: 600px) {
}

.introduction .hero-welcome { font-family: var(--display); color: #e0f2ff; font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -.5px; margin: 18px 0 0; align-self: flex-end; text-align: right; transform: rotate(3deg); transform-origin: right center; }

.about-portfolio { gap: 12px 20px; }
.about-portfolio .say-hi { display: inline-block; padding: 9px 17px; background: var(--accent); color: #f4f8fc; border: 1px solid var(--accent); border-radius: 3px; text-decoration: none; font-size: 12px; font-weight: 650; }
.about-portfolio .say-hi:hover { background: var(--ink); border-color: var(--ink); }
.say-hi { font: inherit; cursor: pointer; }
.say-hi:focus-visible, #contact-dialog input:focus-visible, #contact-dialog textarea:focus-visible, .contact-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#contact-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; margin: auto; padding: 30px; color: var(--ink); background: #f3f7fa; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 20px 70px #153c5633; }
#contact-dialog::backdrop { background: #10263899; }
#contact-dialog h2 { margin: 16px 0; }
.contact-close { display: block; margin-left: auto; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: 11px ui-monospace, monospace; }
.contact-email { font-size: 14px; }
#contact-form { margin-top: 26px; }
#contact-form label { display: block; font-size: 12px; margin: 16px 0 7px; }
#contact-form label span { color: var(--muted); }
#contact-form input, #contact-form textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 10px; }
#contact-form textarea { resize: vertical; }
#contact-form .contact-note { font-size: 11px; }
#contact-form .say-hi { padding: 10px 18px; border: 0; border-radius: 3px; background: var(--accent); color: white; font-size: 12px; }
#contact-form .say-hi:disabled { opacity: .6; cursor: wait; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* A consistent, readable set of text actions, without ornamental icons. */
.about-portfolio a, .about-detail-link, .update-read, .updates-archive a,
.back-link, .site-footer a, .scroll-cue a, .update-item summary {
  display: inline-block; min-height: 36px; padding: 8px 0;
  font-size: 13px; font-weight: 600; line-height: 1.5;
  color: var(--accent); text-decoration: none;
  background-image: linear-gradient(#98bed257, #98bed257);
  background-repeat: no-repeat; background-position: left calc(100% - 6px);
  background-size: 100% 2px; transition: background-size .18s ease, color .18s ease;
}
.about-portfolio a:hover, .about-detail-link:hover, .update-read:hover,
.updates-archive a:hover, .back-link:hover, .site-footer a:hover,
.scroll-cue a:hover, .update-item summary:hover { color: var(--ink); background-size: 100% 9px; text-decoration: none; }
.update-item summary { list-style: none; cursor: pointer; }
.update-item summary::-webkit-details-marker { display: none; }
.update-item summary::marker { content: ""; }
.update-item details[open] summary { color: var(--ink); background-size: 100% 9px; }
.about-portfolio .say-hi, #contact-form .say-hi { font-size: 13px; padding: 10px 18px; border-radius: 2px; transition: background-color .18s ease, transform .18s ease; }
.about-portfolio .say-hi:hover, #contact-form .say-hi:hover:not(:disabled) { background-color: var(--ink); transform: translateY(-1px); }
.contact-close { font-size: 12px; padding: 7px 0 7px 12px; }
.site-header nav { gap: 12px 28px; }
.site-header nav a { position: relative; display: inline-block; padding: 12px 0; border-bottom: 0; font-size: 13px; color: var(--muted); transition: color .2s ease, transform .2s ease; }
.site-header nav a::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: 4px; height: 4px; background: #77a9c680; transform: scaleX(0) rotate(-1deg); transform-origin: left center; transition: transform .22s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .site-header nav a[aria-current]::after { transform: scaleX(1) rotate(-1deg); }
.site-header nav a[aria-current] { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .site-header nav a, .site-header nav a::after, .say-hi,
  .about-portfolio a, .about-detail-link, .update-read, .updates-archive a,
  .back-link, .site-footer a, .scroll-cue a, .update-item summary { transition: none; }
  .site-header nav a:hover, .site-header nav a:focus-visible,
  .about-portfolio .say-hi:hover, #contact-form .say-hi:hover:not(:disabled) { transform: none; }
}

/* The title is the update's single primary action. */
.update-item h3 a, .update-item summary {
  display: inline; padding: 0; min-height: 0; font-size: 18px; font-weight: 650;
  line-height: 1.6; letter-spacing: -.45px; color: var(--ink); text-decoration: none;
  background-image: linear-gradient(#98bed257, #98bed257);
  background-repeat: no-repeat; background-position: left bottom;
  background-size: 100% 2px; transition: background-size .18s ease;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.update-item summary { display: block; background: none; }
.update-item summary h3 { display: inline; background-image: linear-gradient(#98bed257, #98bed257); background-repeat: no-repeat; background-position: left bottom; background-size: 100% 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size .18s ease; }
.update-item h3 a:hover, .update-item summary:hover h3, .update-item details[open] summary h3 { background-size: 100% 9px; text-decoration: none; }
.update-item summary:hover, .update-item details[open] summary { background: none; }
.update-item details > p { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .update-item h3 a, .update-item summary h3 { transition: none; } }

/* Portfolio: the selected Studio Grid layout. */
body:has(.portfolio-grid) main { max-width: none; }
.portfolio-placeholder-note { margin: 0 0 24px; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.portfolio-project { min-width: 0; }
.portfolio-project summary { list-style: none; cursor: pointer; }
.portfolio-project summary::-webkit-details-marker { display: none; }
.portfolio-project summary::marker { content: ""; }
.portfolio-project summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.portfolio-project-image { position: relative; overflow: hidden; aspect-ratio: 1.5; display: grid; place-items: center; background: #c7dce9; box-shadow: 3px 4px 0 #153c5617; }
.portfolio-project-image span { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: #3e627a; border: 1px dashed #8eacbf; padding: 18px 26px; }
.portfolio-project:nth-child(2) .portfolio-project-image { background: #acc7d9; }
.portfolio-project:nth-child(3) .portfolio-project-image { background: #d7e3e9; }
.portfolio-project:nth-child(4) .portfolio-project-image { background: #bbcedd; }
.portfolio-project-copy { padding: 20px 0 8px; }
.prose .portfolio-project h2 { font-family: var(--display); font-size: 23px; line-height: 1.35; letter-spacing: -.9px; margin: 0 0 10px; }
.portfolio-project h2 span { background: linear-gradient(#98bed257, #98bed257) left bottom / 100% 2px no-repeat; transition: background-size .18s; }
.portfolio-project summary:hover h2 span, .portfolio-project[open] h2 span { background-size: 100% 9px; }
.prose .portfolio-project p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.8; margin: 0; }
.portfolio-project-detail { padding: 18px 0; border-top: 1px solid var(--line); margin-top: 15px; }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .portfolio-project h2 span { transition: none; } }

/* The complete Updates archive uses the same feed with a reading alignment. */
.updates-page { max-width: 760px; margin: 0 auto; }
.updates-page .update-meta { justify-content: flex-start; }
.update-body { margin-top: 14px; }
.update-body img { max-width: 100%; height: auto; }

.prose .portfolio-project .portfolio-project-status { color: var(--muted); font-size: 12px; }

/* Selected work: typographic covers framed by the neighboring slides. */
.featured-projects { margin: 34px 0 0; }
.featured-projects[hidden], .featured-slide[hidden] { display: none !important; }
.featured-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.prose .featured-heading h2 { margin: 0; font-size: 23px; }
.featured-projects button { font: inherit; cursor: pointer; }
.featured-play { font-size: 11px !important; color: var(--muted); border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 6px 0; }
.featured-stage { position: relative; padding-inline: 28px; }
.featured-slides { position: relative; z-index: 1; box-shadow: none; }
.featured-slide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); min-height: 440px; background: #123752; color: #edf3f7; overflow: hidden; }
.featured-main-image { display: flex; min-width: 0; color: inherit; text-decoration: none; overflow: hidden; }
.featured-art { --cover-bg: #185d8c; --cover-ink: #dceaf3; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; height: 100%; min-height: 440px; padding: 44px 34px; background: var(--cover-bg); color: var(--cover-ink); overflow: hidden; }
.featured-art::before { content: ""; position: absolute; z-index: -1; inset: 24px -20px; border-block: 1px solid #d8edf34d; background: repeating-linear-gradient(0deg, transparent 0 3px, #102f4b0c 3px 4px); }
.featured-art-2 { --cover-bg: #b5cfdf; --cover-ink: #183b54; }
.featured-art-3 { --cover-bg: #22435f; --cover-ink: #d3e3ed; }
.featured-art-4 { --cover-bg: #5c8ba8; --cover-ink: #eef4f8; }
.featured-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-art-name { font-family: var(--display); font-size: clamp(40px, 6.2vw, 86px); font-weight: 900; line-height: .97; letter-spacing: -4px; overflow-wrap: anywhere; }
.featured-art-2 .featured-art-name { font-size: clamp(34px, 5vw, 67px); letter-spacing: -3px; }
.featured-art-note { position: absolute; bottom: 30px; left: 34px; right: 20px; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .7px; text-transform: uppercase; opacity: .85; }
.featured-info { padding: 36px 30px; display: flex; flex-direction: column; justify-content: center; min-width: 0; border-left: 1px solid #c3d9e520; }
.prose .featured-category { margin: 0 0 24px; color: #9fbcd0; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; }
.prose .featured-info h3 { margin: 0 0 20px; font-family: var(--display); font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -1.1px; line-height: 1.2; }
.featured-info h3 a { color: #f0f5f8; text-decoration: none; }
.featured-info h3 a:hover { text-decoration: underline; text-decoration-color: #9ebdd1; }
.prose .featured-description { color: #c6d9e6; font: 14px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0 0 30px; }
.prose .featured-description a { color: #c6e7ff; text-decoration: underline; text-underline-offset: .2em; }
.prose .featured-description a:hover { color: #fff; }
.featured-peek { position: absolute; top: 24px; bottom: 24px; width: 72px; padding: 10px; border: 1px solid #aac5d520; background: #224c68; color: #e8f1f7; display: flex; align-items: center; overflow: hidden; transition: background-color .2s; }
.featured-previous { left: -20px; justify-content: flex-start; }
.featured-next { right: -20px; justify-content: flex-end; }
.featured-peek-title { position: absolute; opacity: .13; font: 34px/1 var(--display); writing-mode: vertical-rl; }
.featured-arrow { font: 42px/1 Arial, sans-serif; position: relative; }
.featured-peek:hover { background: #356780; }
.featured-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 20px; }
.featured-dot { background: transparent; border: 0; width: 34px; height: 28px; padding: 0; }
.featured-dot::before { content: ""; display: block; height: 4px; background: #acc3d2; transition: background-color .2s, transform .2s; }
.featured-dot[aria-pressed=true]::before { background: #254f6a; transform: scaleY(1.5); }
.featured-dot:hover::before { background: #476f89; }
.featured-projects button:focus-visible, .featured-main-image:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.featured-info a:focus-visible { outline-color: #fff; }
.featured-status.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.portfolio-scroll-cue { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0 56px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; }
.portfolio-scroll-cue:hover { color: var(--ink); }
.portfolio-scroll-cue > span:last-child { font-size: 24px; transition: transform .2s; }
.portfolio-scroll-cue:hover > span:last-child { transform: translateY(4px); }
.prose .portfolio-gallery-heading { font-size: 23px; margin: 0 0 28px; }
#all-work, .portfolio-project { scroll-margin-top: 30px; }
.portfolio-project:target .portfolio-project-image { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (max-width: 760px) {
  .featured-slide { grid-template-columns: 1fr; }
  .featured-art { min-height: 300px; }
  .featured-art-name { font-size: clamp(44px, 10vw, 76px); }
  .featured-art-2 .featured-art-name { font-size: clamp(36px, 8vw, 62px); }
  .featured-info { min-height: 310px; padding: 28px; border-left: 0; border-top: 1px solid #c3d9e520; }
  .featured-category { margin-bottom: 14px !important; }
  .featured-info h3 { font-size: 28px !important; }
  .featured-description { font-size: 13px !important; margin-bottom: 20px !important; }
}
@media (max-width: 480px) {
  .featured-stage { padding-inline: 16px; }
  .featured-peek { width: 36px; padding: 5px; top: 16px; bottom: 16px; }
  .featured-previous { left: -10px; }
  .featured-next { right: -10px; }
  .featured-arrow { font-size: 32px; }
  .featured-art { padding: 30px 22px; min-height: 250px; }
  .featured-art-note { left: 22px; font-size: 9px; }
  .featured-info { padding: 24px; min-height: 340px; }
  .featured-heading { gap: 12px; }
  .prose .featured-heading h2 { font-size: 21px; }
  .portfolio-scroll-cue { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-dot::before, .featured-peek, .portfolio-scroll-cue > span:last-child { transition: none; }
}

/* Every slide shares a measured viewport; JS translates an endless circular strip. */
.featured-slides { display: grid; overflow: hidden; touch-action: pan-y pinch-zoom; cursor: grab; }
.featured-slide { grid-area: 1 / 1; min-width: 0; width: 100%; will-change: transform; backface-visibility: hidden; }
.featured-slides.is-dragging, .featured-slides.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.featured-main-image { -webkit-user-drag: none; }
.featured-art img { pointer-events: none; -webkit-user-drag: none; }

/* Upright neighboring cards sit behind the active card in a perspective stage. */
.featured-stage { padding: 28px 0 38px; margin: -28px -24px -38px; overflow: clip; }
.featured-slides { width: 82%; margin-inline: auto; overflow: visible; perspective: 1500px; transform-style: flat; box-shadow: none; }
.featured-slide { transform-origin: center; box-shadow: none; will-change: transform, opacity; }
.featured-peek { z-index: 200; top: calc(50% - 26px); bottom: auto; width: 44px; height: 52px; padding: 0; justify-content: center; background: #12334ed9; border: 1px solid #c9dce733; backdrop-filter: blur(6px); }
.featured-previous { left: 3px; }
.featured-next { right: 3px; }
.featured-peek-title { display: none; }
.featured-arrow { font-size: 36px; }
.featured-peek:hover { background: #2c5c7a; }
@media (max-width: 760px) {
  .featured-stage { margin-inline: -16px; }
  .featured-slides { width: 86%; perspective: 1100px; }
}
@media (max-width: 480px) {
  .featured-stage { padding-block: 20px 30px; margin-block: -20px -30px; }
  .featured-peek { width: 28px; height: 44px; }
  .featured-previous { left: 0; }
  .featured-next { right: 0; }
  .featured-arrow { font-size: 28px; }
  .featured-art-2 .featured-art-name { font-size: clamp(28px, 8vw, 42px); }
}
/* Indicators sit above the overlapping perspective stage's paint area. */
.featured-pagination { position: relative; z-index: 300; }

.portfolio-planned { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
body:has(.shelf-collection:not(.shelf-preview)) main{max-width:none}.shelf-filters{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.shelf-filters button{font:inherit;font-size:12px;border:1px solid var(--line);border-radius:4px;padding:8px 14px;background:transparent;color:var(--muted);cursor:pointer}.shelf-filters button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.shelf-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 18px}.shelf-item{padding:0;background:none;border:0;text-align:left;color:var(--ink);font:inherit;cursor:pointer;min-width:0}.shelf-item[hidden],.shelf-filter-empty[hidden]{display:none}.shelf-item img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;background:var(--panel)}.shelf-item span{display:block;font-size:12px;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}.shelf-item:hover img{outline:2px solid var(--accent);outline-offset:3px}.shelf-item:focus-visible,.shelf-filters button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.shelf-preview .shelf-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px;margin:16px 0}.shelf-preview .shelf-item span{font-size:10px}.shelf-dialog{width:min(420px,calc(100% - 32px));max-height:80dvh;overflow:auto;padding:28px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px}.shelf-dialog::backdrop{background:#10253688}.shelf-dialog button{float:right;background:none;color:var(--ink);border:1px solid var(--line);padding:7px 12px;cursor:pointer}.shelf-dialog h2{font-size:25px;clear:both;padding-top:20px;margin-bottom:12px}@media(max-width:850px){.shelf-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:480px){.shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.shelf-item img{border-radius:9px}}

.shelf-item[data-shelf-category="Music"] img { aspect-ratio: 1; }

/* Website captures share a 10:7 canvas; preserve complete artwork in every frame. */
.portfolio-project-image:has(img) { aspect-ratio: 10 / 7; background: transparent; box-shadow: none; }
.portfolio-project-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.featured-slide:has(img) { min-height: 0; align-self: stretch; }
.featured-main-image:has(img) { align-self: stretch; }
.featured-art:has(img) { aspect-ratio: 10 / 7; height: auto; min-height: 0; padding: 0; background: transparent; }
.featured-art:has(img)::before { content: none; }
.featured-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.featured-info { background: #123752; }

/* Launch polish: keyboard focus, dialog scrolling, and comfortable touch controls. */
button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#main:focus { outline: none; }
body:has(dialog[open]) { overflow: hidden; }
.shelf-item img { height: auto; }
.featured-play, .featured-dot { min-height: 32px; }
@media (max-width: 600px) {
  .site-header nav { gap: 4px 20px; padding-block: 8px; }
  .site-header nav a, .contact-close, .shelf-dialog button, .shelf-filters button, .featured-play, .featured-dot { min-height: 44px; }
  .featured-dot { min-width: 44px; }
  #contact-dialog { padding: 22px; }
  #contact-form input, #contact-form textarea { font-size: 16px; }
}
