/* The mark and the engraved plates use new monochrome art. The original layout and motion own their geometry. */
.archive-signature, .project-seal img { filter:none; }
/* A fixed palette stays within reach as the paper passes over the footer. */
.ink-picker { position:fixed; z-index:100; right:max(18px,env(safe-area-inset-right)); bottom:max(18px,env(safe-area-inset-bottom)); color:#fff; }
.ink-picker summary, .ink-options { background:#322b29; border:1px solid #87746e; box-shadow:0 3px 15px #1f171526; }
.ink-picker summary { list-style:none; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; cursor:pointer; }
.ink-picker summary::-webkit-details-marker { display:none; }
.ink-picker summary svg { width:22px; height:22px; }
.ink-picker[open] summary { border-color:white; }
.ink-options { position:absolute; right:0; bottom:52px; display:flex; padding:2px; border-radius:24px; }
.ink-options button { display:grid; place-items:center; width:44px; height:44px; padding:0; background:transparent; border:0; cursor:pointer; }
.ink-options i { width:19px; height:19px; border:1px solid #c8bcb4; background:var(--sample); border-radius:50%; }
.ink-options button[aria-pressed=true] i { outline:2px solid white; outline-offset:2px; }
html:not(.js) .ink-picker, html.is-loading .ink-picker { display:none; }
/* One interpolated ink drives the paper, frame, footer and image treatments together. */
@property --ink-r { syntax:"<number>"; initial-value:120; inherits:true; }
@property --ink-g { syntax:"<number>"; initial-value:27; inherits:true; }
@property --ink-b { syntax:"<number>"; initial-value:53; inherits:true; }
:root { --field-rgb:var(--ink-r) var(--ink-g) var(--ink-b); --field:rgb(var(--field-rgb)); --soft:color-mix(in srgb,var(--field) 25%,white); }
@media(prefers-reduced-motion:no-preference) {
  html[data-ink-transition] { transition:--ink-r .46s ease-in-out, --ink-g .46s ease-in-out, --ink-b .46s ease-in-out; }
}

/* Match the original's full-height reveal and centered typographic composition. */
.contact-section { position:sticky; bottom:0; z-index:1; background:var(--field); color:var(--ink); overflow:clip; }
.closing { position:relative; isolation:isolate; display:flex; flex-direction:column; min-height:100svh; padding-block:clamp(36px,7svh,76px) max(32px,var(--frame)); }
.closing-copy { position:relative; z-index:2; text-align:center; }
.closing-kicker { display:block; font:11px/1.5 var(--mono); letter-spacing:.15em; text-transform:uppercase; }
.closing h2 { margin-top:18px; font:400 clamp(42px,8.6svh,88px)/1 var(--serif); letter-spacing:-.035em; text-transform:uppercase; overflow-wrap:break-word; }
.closing p { margin:18px auto 0; font:12px/1.7 var(--mono); letter-spacing:.09em; text-transform:uppercase; }
.closing-email { display:inline-flex; justify-content:center; align-items:center; gap:24px; margin-top:22px; min-height:44px; padding:12px 24px; background:white; color:var(--field); border:1px solid white; font:12px/1.3 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.closing-email .icon { width:18px; height:18px; transition:transform .2s ease; }
.closing-email:hover .icon { transform:translate(3px,-3px); }
.closing-echo { display:flex; flex:1; flex-direction:column; justify-content:center; gap:.08em; margin:24px var(--frame) 0; padding:0 0 10px; text-align:center;
  font:400 min(35vw,30svh)/.84 var(--serif); letter-spacing:.01em; color:rgb(255 255 255 / .19); pointer-events:none; user-select:none; }
.closing-echo span { display:block; white-space:nowrap; }
.closing-echo span+span { font-size:.9em; }
.closing-bottom { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-top:0; font:9px/1.7 var(--mono); letter-spacing:.1em; text-transform:uppercase; }
.closing-bottom > span { max-width:14em; }
.closing-back { display:flex; flex-direction:column; align-items:center; gap:8px; min-width:44px; min-height:44px; font:9px/1.5 var(--mono); }
.closing-back img { width:34px; height:40px; object-fit:contain; }
.closing-back:hover span { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:760px) {
  .closing { min-height:calc(100svh - var(--closing-word-height,18vw) - 12px); padding-block:38px 24px; }
  .closing-copy.wrap { width:calc(100% - 48px); }
  .closing-kicker { font-size:10px; letter-spacing:.11em; }
  .closing h2 { margin-top:18px; font-size:clamp(32px,9.7vw,62px); }
  .closing p { font-size:11px; margin-top:16px; }
  .closing-email { font-size:11px; margin-top:20px; }
  .closing-echo { font-size:26vw; margin-top:38px; padding-block:28px; }
  .closing-bottom { padding-right:52px; }
}
@media(max-height:550px) and (min-width:761px) {
  .closing { padding-top:28px; }
  .closing h2 { font-size:42px; }
  .closing-echo { font-size:min(28vw,30svh); }
}
@media(prefers-reduced-motion:reduce) { .contact-section { position:relative; } .closing-email .icon { transition:none; } }

.hero-picture { display:contents; }

/* On a phone the typography leads straight into the work; the hero image is desktop-only. */
@media(max-width:760px) {
  .hero.wrap { display:block; height:auto; min-height:0; padding-block:clamp(20px,5vw,32px) 22px; }
  .hero .hero-copy { width:100%; min-height:0; padding:0; }
  .hero .hero-art { display:none; }
  .hero .hero-description { margin-top:14px; }
  .hero .hero-cta { margin-top:14px; }
  .work-section.wrap { padding-top:12px; }
}
html[data-edition="object"] .art-parallax,
html[data-edition="object"] .lore-sprite { mix-blend-mode:normal; filter:none; }
@media(min-width:761px) {
  html[data-edition="object"] .hero { min-height:450px; height:clamp(470px,64vh,640px); align-items:center; }
  html[data-edition="object"] .hero-copy { padding-top:0; }
  html[data-edition="object"] .hero-art { width:92%; justify-self:center; margin:0; height:auto; aspect-ratio:1.5; min-height:0; }
  html[data-edition="object"] .hero-engraving { filter:none; object-fit:contain; object-position:center; }
}
html[data-edition="object"] .project-list { grid-template-columns:repeat(4,minmax(0,1fr)); }
html[data-edition="object"] .project { border:1px solid rgb(255 255 255 / .30); background:transparent; }
html[data-edition="object"] .project::before, html[data-edition="object"] .project::after { content:none; }
html[data-edition="object"] .project summary {
  display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto auto;
  position:static; min-height:0; gap:6px 8px; padding:0 0 14px; text-align:left; align-content:start; }
.category-photo { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; grid-column:1/-1; grid-row:1; }
html[data-edition="object"] .project summary h3 { display:block; grid-column:1/-1; grid-row:2; margin-top:8px;
  min-height:0; font-size:clamp(23px,2.5vw,40px); line-height:1.04; }
html[data-edition="object"] .project .project-type { grid-column:1; grid-row:3; align-self:center; justify-self:start; }
html[data-edition="object"] .project .project-disclosure { grid-column:2; grid-row:3; align-self:center; justify-self:end; }
html[data-edition="object"] .project summary h3 { margin-inline:clamp(8px,1vw,13px); }
html[data-edition="object"] .project-type { margin-inline-start:clamp(8px,1vw,13px); }
html[data-edition="object"] .project-disclosure { margin-inline-end:clamp(8px,1vw,13px); }
html[data-edition="object"] .project[open], html[data-edition="object"] .project:focus-within { border-color:rgb(255 255 255 / .68); }
html[data-edition="object"] .project-edge { background-image:linear-gradient(125deg,transparent 25%,#d8c9bc 40%,white 50%,#d8c9bc 60%,transparent 75%); }
html[data-edition="object"] .project-body { display:block; min-width:0; padding:4px clamp(8px,1vw,13px) 18px; }
html[data-edition="object"] .sprite-hand { background-image:url('assets/arco-band.webp'); }
html[data-edition="object"] .sprite-temple { background-image:url('assets/speaker-detail.webp'); }
html[data-edition="object"] .sprite-eye { background-image:url('assets/earbuds-detail.webp'); }
html[data-edition="object"] .menu-emblem, html[data-edition="object"] .traveling-sigil img { object-fit:contain; transform:none; }
@media(max-width:760px) {
  html[data-edition="object"] .work-section .profile-intro { display:none; }
  html[data-edition="object"] .project-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 10px; }
  html[data-edition="object"] .project summary { gap:4px; }
  html[data-edition="object"] .project summary h3 { font-size:clamp(19px,5.4vw,28px); }
  html[data-edition="object"] .project-type { font-size:10px; }
  html[data-edition="object"] .project-disclosure .detail-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  html[data-edition="object"] .project-disclosure { min-height:24px; }
  html[data-edition="object"] .section-heading { margin-bottom:16px; }
}




html[data-edition="object"] .project-body p { overflow-wrap:anywhere; font:400 15px/1.55 var(--sans); text-transform:none; letter-spacing:normal; }

/* Like the original portfolio, the mobile menu belongs to the opening screen. */
@media(max-width:760px) {
  .menu-toggle { position:absolute; z-index:101; top:max(18px,env(safe-area-inset-top)); right:max(20px,env(safe-area-inset-right)); }
  html.is-loading .menu-toggle { visibility:hidden; }
}
