/* emilianocar.com — one stylesheet for every page.
   Home: eight stacked material bands; every section opens in a plain "window" (<dialog>).
   Inner pages (projects, posts, 404) use the same window, sitting on a material background. */

@font-face{font-family:"Newsreader";font-weight:400 700;font-style:normal;font-display:swap;src:url(../fonts/newsreader-var.woff2) format("woff2")}
@font-face{font-family:"Newsreader";font-weight:400 700;font-style:italic;font-display:swap;src:url(../fonts/newsreader-var-italic.woff2) format("woff2")}

:root{
  --ink:#1A1511; --wall:#F7F5F0; --sep:#F7F5F0; --link:#0b3d91;
  --serif:"Newsreader","Times New Roman",Times,"Liberation Serif",serif;
  --rule:rgba(0,0,0,.25);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--wall);color:#000;font:16px/1.45 var(--serif);font-optical-sizing:auto}
[hidden]{display:none!important}
a{color:#000;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
img{max-width:100%}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:8px;top:-80px;z-index:100;padding:10px 14px;background:#fff;color:#000;border:1px solid #000}
.skip:focus{top:8px}
:focus-visible{outline:3px solid var(--link);outline-offset:2px}
.win-body:focus-visible{outline-offset:-3px}

/* ---------- Home: the bands, hung inside a white gallery margin ---------- */
.bands{position:relative;display:flex;flex-direction:column;gap:8px;height:100vh;height:100dvh;min-height:520px;padding:20px 20px 52px;background:var(--wall);overflow:hidden}
.band{position:relative;flex:1 1 0%;min-height:0;background-color:var(--bg);background-image:var(--img),var(--lqip,none);background-repeat:no-repeat,no-repeat;
  background-size:max(1440px,100%) auto,cover;background-position:50% var(--py),50% 50%}
.band-h{margin:0;font:inherit}
.band-link{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:flex-start;padding:0 0 0 16px;text-decoration:none;color:inherit;outline:0}
.band-link:focus-visible{outline:3px solid #fff;outline-offset:-3px;box-shadow:inset 0 0 0 6px #000}
/* the title is a museum wall label: a small white card, black type */
.band-title{position:relative;display:inline-block;max-width:calc(100% - 32px);padding:7px 16px 6px;background:#fff;border:1px solid #000;color:#000;font:400 17px/1.2 var(--serif);letter-spacing:.01em}
.band-link:hover .band-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}

/* wall text: a caption line hung in the bottom margin, like the small type beside a gallery door */
.wall-text{position:absolute;left:20px;right:20px;bottom:0;height:52px;margin:0;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;line-height:1.2;letter-spacing:.01em}
.wall-text a{display:inline-block;padding:10px 2px}

/* each band: base colour, picture and vertical crop */
.band--top{--bg:#C58F7D;--img:url(../images/materials/iznik-band.webp);--py:30%}
.band--work{--bg:#EDE6DA;--img:url(../images/materials/plaster-band.webp);--py:50%}
.band--about{--bg:#B7C7AE;--img:url(../images/materials/celadon-band.webp);--py:45%}
.band--experience{--bg:#A9B9C8;--img:url(../images/materials/azulejo-band.webp);--py:45%}
.band--services{--bg:#E0A878;--img:url(../images/materials/kakiemon-band.webp);--py:78%}
.band--skills{--bg:#6F685F;--img:url(../images/materials/talavera-tile.webp);background-image:var(--img);background-size:auto 100%;background-repeat:repeat-x;background-position:50% 50%}
.band--writing{--bg:#B56F76;--img:url(../images/materials/zellige-band.webp);--py:50%}
.band--contact{--bg:#E3CFAE;--img:url(../images/materials/sandstone-band.webp);--py:50%}

/* tiny blurred previews that show while each band photo loads */
.band--top{--lqip:url(data:image/webp;base64,UklGRrQAAABXRUJQVlA4IKgAAAAwAwCdASogAA0APrVKnkonJCKhsAgA4BaJZACdAGFVQghIAPZgpfd2ww5inIbJFeSwiYLoa9sItfpkQy4BUPCQGuAqX6fMfSPtn8eZAOnNkllb+GxJHmuqO1tDl17Nf6RNAI1KeCRu++uVRO2ywxe8KwmV3Sq/GNO3bQA1huP0Mxl6p3H/s7e3fnrZcnsobhwoBWmt4ra4Wi0vm6O0dPBG4qbmEyfDcAA=)}
.band--work{--lqip:url(data:image/webp;base64,UklGRjwAAABXRUJQVlA4IDAAAADQAgCdASogAA0APrVInkmnJCKhMAgA4BaJaQAAfj4AAP7w88LJ5LniG94ftYCAAAA=)}
.band--about{--lqip:url(data:image/webp;base64,UklGRloAAABXRUJQVlA4IE4AAADQAwCdASogAA0APrVInkmnJCKhMAgA4BaJZQC7B6gArx6t6VlF+SgA/uJMUwmVdLVqaLmnBWWkQ9Plci1eQ78ZRUGvCHga6gzAphvE0AA=)}
.band--experience{--lqip:url(data:image/webp;base64,UklGRnwAAABXRUJQVlA4IHAAAADQAwCdASogAA0APrVOoUmnJKOhMAgA4BaJQBOgBDuCYosOi4bZtgAA/uCWxL7bJWVA8c/SxGhB3+N1rCE6rzW43BjUbfBa2MyOwK/uFbWJH+d9PbiaLeFKP6wNif16HEuxpngkXAMIdfcIl1IHDwAA)}
.band--services{--lqip:url(data:image/webp;base64,UklGRpAAAABXRUJQVlA4IIQAAAAwBACdASogAA0APrVMoUqnJCMhsAgA4BaJYwC06BwsbsheMVfPotRNjIAA/sT9aVE7EmIcbh5F058hhGQq2iqnYWSAoZZRJLbqP7vfKYvUNvt6cdjs7AyNqLtLoGwoGhGprcwsu4IGHrv56a37e0Nttvp6fLTddk16/Wv30hC7GjbXAAA=)}
.band--writing{--lqip:url(data:image/webp;base64,UklGRmQAAABXRUJQVlA4IFgAAADwAwCdASogAA0APrVInkmnJCKhMAgA4BaJQBYdgyUO8K5qJ1p4sE8AAPyFSDWi2aTzsKvy/tgpv277eea3YbfgoFgZVvDAmCW1xAVEg9bdJWOz5c9bg0AA)}
.band--contact{--lqip:url(data:image/webp;base64,UklGRoQAAABXRUJQVlA4IHgAAAAQBACdASogAA0APrVKn0onJCKhsAgA4BaJQBOmUABWJYaoi+XaDNtVAAD+gsnvaRok+0PG2ykRsqw0Z/lePW1cegN9g+UDQIqgq7PorWoGXuxykP9kUTlcZBInwP/Dn8xtj30M396j9+v9kh01HDxigAVhH9Zq4AA=)}


@media (max-width:759px){
  .bands{gap:6px;padding:12px 12px 44px}
  .wall-text{left:12px;right:12px;height:44px;font-size:13px}
  .band{background-size:760px auto,cover}
  .band--skills{background-size:auto 100%}
  .band-link{padding-left:10px}
  .band-title{padding:6px 12px 5px;font-size:16px}
  .band--top{--img:url(../images/materials/iznik-band-sm.webp)}
  .band--work{--img:url(../images/materials/plaster-band-sm.webp)}
  .band--about{--img:url(../images/materials/celadon-band-sm.webp)}
  .band--experience{--img:url(../images/materials/azulejo-band-sm.webp)}
  .band--services{--img:url(../images/materials/kakiemon-band-sm.webp)}
  .band--writing{--img:url(../images/materials/zellige-band-sm.webp)}
  .band--contact{--img:url(../images/materials/sandstone-band-sm.webp)}
}

/* ---------- The window ---------- */
.win{width:min(880px,calc(100vw - 24px));max-height:min(830px,calc(100vh - 24px));max-height:min(830px,calc(100dvh - 24px));margin:auto;padding:0;
  border:1px solid #000;background:#fff;color:#000;font:17px/1.5 var(--serif);text-align:left;overflow:hidden}
.win[open],.win--page{display:flex;flex-direction:column}
.win--work{width:min(720px,calc(100vw - 24px))}
.win--name{width:min(620px,calc(100vw - 24px))}
.win--about{width:min(940px,calc(100vw - 24px))}
.win--contact{width:min(560px,calc(100vw - 24px))}
.win--resume{width:min(620px,calc(100vw - 24px));height:min(830px,calc(100dvh - 24px))}
.win--page{width:100%;max-height:none;overflow:visible}
.win::backdrop{background:rgba(247,245,240,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:veil .38s ease-out backwards}
.win.is-closing::backdrop{animation:veil-out .28s ease-in forwards}
.win--resume::backdrop{background:rgba(247,245,240,.5)}
@keyframes veil{from{opacity:0}to{opacity:1}}
@keyframes veil-out{from{opacity:1}to{opacity:0}}

.win-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:30px 20px 8px 40px;flex:none}
.win-head h1,.win-head h2{margin:0;font:400 26px/1.2 var(--serif);text-wrap:balance}
.win-sub{margin:2px 0 0}
.win-actions{display:inline-flex;align-items:center;gap:22px;flex:none}
.win-scroll{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.win-scroll::after{content:"";position:absolute;left:0;right:0;bottom:0;height:28px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);pointer-events:none}
.win-body{flex:1 1 auto;min-height:0;overflow:auto;padding:12px 40px 40px;overscroll-behavior:contain}
.win-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 40px;min-height:52px;flex:none}
.win-foot .cap,.cap{font-style:italic}

.tap{display:inline-flex;align-items:center;min-height:44px}
.link{padding:0;border:0;background:none;color:#000;font:inherit;text-decoration:underline;cursor:pointer}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid #000;border-radius:0;background:#fff;color:#000;font:inherit;text-decoration:none;cursor:pointer}
.btn:hover{background:#f2f2f2}
.win h3,.win h2.item{margin:0;font-size:17px;font-weight:600;line-height:1.3;text-wrap:balance}
.win p{margin:0 0 10px;max-width:62ch;text-wrap:pretty}
.win li{text-wrap:pretty}

/* date | content rows (Work, Experience, Writing) */
.row{display:grid;grid-template-columns:150px 1fr;gap:0 32px;padding:0 0 18px}
.row+.row,.post:not([hidden])~.post:not([hidden]){padding-top:18px;border-top:1px solid var(--rule)}   /* a hairline between entries, like a label rail */
.row-main{max-width:62ch}
.row-meta{padding-top:3px;font-variant-numeric:lining-nums tabular-nums}
.row-meta em{display:block;margin-top:1px}
.row-main p{margin:1px 0 0}
.row-main p+p{margin-top:3px}
.row-main .org{margin:0 0 3px;font-style:italic}
.lede{margin:0 0 22px}
.block{margin:0 0 16px}
.block h3{margin:0 0 2px}
.block div,.block li{margin-bottom:2px}
.block ul{margin:0;padding:0;list-style:none}
.sub{margin:0 0 4px}

/* About */
.about-grid{display:grid;grid-template-columns:1fr 270px;gap:0 44px}
.about-right{padding-top:4px}
.about-right>p{margin:0 0 14px;line-height:1.45}
.portrait{float:right;width:156px;margin:2px 0 10px 22px}
.portrait img{display:block;width:156px;height:auto;border:1px solid #000}
.portrait figcaption{margin-top:5px;font-style:italic}
.lead{margin:0 0 12px}
/* Beyond the résumé: an editorial spread, large photo left, text column right */
.beyond{margin-top:30px;padding-top:12px;border-top:1px solid #000}
.beyond .sub{margin:0 0 14px}
.beyond-grid{display:grid;grid-template-columns:minmax(0,280px) 1fr;gap:0 30px;align-items:end}
.snap{margin:0}
.beyond-text{display:flex;flex-direction:column;justify-content:space-between;align-self:stretch}
.beyond-copy p{margin:0 0 10px}
.snap img{display:block;width:100%;height:auto;border:1px solid #000}
.snap-cap{margin:0;font-style:italic;display:inline-block;align-self:flex-start;padding-top:7px;border-top:1px solid #000;min-width:56px}
.after-lead{margin-bottom:18px!important}

/* Services / Skills */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:0 44px}
.two-col>div{padding:0 0 16px}
.two-col p{margin:2px 0 0}
.cta-row{margin-top:4px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.cta-row p{margin:0}
.skills-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0 28px}
.skills-grid h3{margin:0 0 4px}
.skills-grid div div{line-height:1.5;margin-bottom:3px}

/* Writing */
.w-tools{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid var(--rule);margin:0 0 12px}
.w-browse{display:flex;flex-wrap:wrap;align-items:center}
.w-browse>span{margin-right:14px}
.w-browse button{min-height:44px;margin:0 22px 0 0;padding:0;border:0;background:none;color:#000;font:inherit;text-decoration:underline;cursor:pointer}
.w-browse button[aria-pressed="true"]{color:#000;font-weight:600;text-decoration:none;cursor:default}
.w-search{display:flex;align-items:center;gap:8px;min-height:44px}
.w-search input{width:190px;height:32px;padding:0 8px;border:1px solid #000;border-radius:0;background:#fff;color:#000;font:16px var(--serif)}
.w-year{margin:0 0 8px;font-style:italic}
.post{display:grid;grid-template-columns:150px 1fr;gap:0 32px;padding:0 0 20px}
.post .when{padding-top:3px}
.post h3{line-height:1.3}
.post p{margin:1px 0 0}
.post .by{margin-top:2px}
/* editorial lead: the newest piece runs full width with a larger title; the date becomes a kicker */
.post--lead{display:block;padding-bottom:26px}
.post--lead .when{padding:0 0 6px;font-style:italic}
.post--lead h3{margin:0 0 8px;font-size:clamp(23px,3.4vw,29px);font-weight:400;line-height:1.2;letter-spacing:-.005em}
.post--lead p{max-width:56ch;font-size:18px;line-height:1.55}
.post--lead .by{margin-top:8px;font-size:16px}
.w-note{margin:0 0 10px;font-style:italic}
.w-empty{margin:8px 0}
.w-pager{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--rule)}
.w-pager button{min-height:44px;padding:0;border:0;background:none;color:#000;font:inherit;text-decoration:underline;cursor:pointer}
.w-pager button:disabled{color:#000;text-decoration:none;cursor:default;opacity:.55}

/* Contact */
.contact-row{display:grid;grid-template-columns:90px 1fr;gap:0 16px;padding:3px 0}
.contact-actions{margin-top:18px;display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center}
.copy-status{font-style:italic}

/* Résumé viewer */
.resume-page{display:block;width:min(572px,100%);height:auto;margin:0 auto;border:1px solid #888}
.only-phone{display:none}

/* ---------- Inner pages: material background + window ---------- */
body.page{background:var(--wall)}
body.page::before{content:"";position:fixed;inset:20px;z-index:-1;background:var(--bg,#999) var(--page-bg) 50% 50%/cover no-repeat}
.theme-plaster{--bg:#EDE6DA;--page-bg:url(../images/materials/plaster-page.webp)}
.theme-zellige{--bg:#B56F76;--page-bg:url(../images/materials/zellige-page.webp)}
.theme-iznik{--bg:#C58F7D;--page-bg:url(../images/materials/iznik-page.webp)}
.sheet{width:min(1100px,100%);margin:0 auto;padding:52px 40px 68px}
.sheet--narrow{width:min(820px,100%)}
.sheet--small{width:min(560px,100%);padding-top:12vh}
.proj-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-areas:"main meta" "main facts";grid-template-rows:auto 1fr;gap:0 40px;padding:14px 40px 32px}
.proj-main{grid-area:main;min-width:0;overflow-wrap:anywhere}
.proj-meta{grid-area:meta;padding-top:2px}
.proj-facts{grid-area:facts;min-width:0}
.proj-meta p{margin:0 0 4px}
.proj-meta .tags-line{margin:0 0 14px;font-style:italic}
.proj-meta .cta{margin:0 0 18px;display:flex;align-items:center;min-height:44px}
.proj-facts section{margin:0 0 18px}
.proj-facts h2{margin:0 0 3px}
.proj-facts dl{margin:0}
.proj-facts dt{font-style:italic}
.proj-facts dd{margin:0 0 6px}
.proj-facts p{margin:0 0 5px}
.proj-main h2{margin:30px 0 8px;font-size:21px;font-weight:400;line-height:1.3}
.proj-main h2:first-child{margin-top:0}
.proj-main h3{margin:12px 0 4px}
.proj-main p{margin:0 0 12px}
.proj-main figure{margin:0 0 10px}
.proj-main figure img{display:block;width:100%;height:auto;border:1px solid #888}
.layer,.fact,.box{margin:0 0 14px}
.layer p,.box p{margin:0 0 6px}
.layer h3,.box h3,.fact h3{margin:0 0 2px}
.fact p{margin:0}
.fact-line{font-weight:600;line-height:1.3}
.fact-line em{font-weight:400}
pre,code{font-family:"Courier New",Courier,monospace}
code{font-size:.85em}
pre{margin:6px 0 14px;padding:10px 14px;background:#f2f2f2;font-size:13.5px;line-height:1.55;white-space:pre-wrap;overflow-x:auto}
pre code{font-size:inherit}
.tbl-wrap{margin:4px 0 14px;overflow-x:auto}
.tbl-wrap table{width:100%;border-collapse:collapse}
.tbl-wrap th,.tbl-wrap td{padding:5px 14px 5px 0;text-align:left;vertical-align:top}
.tbl-wrap th{font-weight:600;border-bottom:1px solid var(--rule)}

/* writing posts */
.prose{max-width:calc(62ch + 80px);padding:14px 40px 36px}
.prose h2{margin:30px 0 8px;font-size:22px;font-weight:400;line-height:1.3}
.prose h3{margin:16px 0 4px}
.prose p{margin:0 0 12px}
.prose ul,.prose ol{margin:0 0 12px;padding-left:24px}
.prose blockquote{margin:0 0 14px;padding:0 0 0 18px;border-left:1px solid #000;font-style:italic}
.prose img{display:block;height:auto;border:1px solid #888}
.prose hr{border:0;border-top:1px solid var(--rule);margin:18px 0 12px}
.prose table{border-collapse:collapse;margin:4px 0 14px;width:100%}
.prose th,.prose td{padding:5px 18px 5px 0;text-align:left;vertical-align:top}
.prose th{border-bottom:1px solid var(--rule)}
.prose .footnote{font-size:14px}
.prose-end{padding:0 40px 14px}

/* ---------- Phone ---------- */
@media (max-width:759px){
  .win{max-height:calc(100dvh - 16px)}
  .win--page{max-height:none}
  .win-head{padding:18px 6px 6px 20px}
  .win-head h1,.win-head h2{padding-top:4px}
  .win-body{padding:8px 20px 32px}
  .win-foot{padding:0 20px}
  .row,.post{grid-template-columns:1fr;gap:0}
  .row-meta,.post .when{padding-top:0;display:flex;flex-wrap:wrap;gap:0 10px;margin-bottom:1px}
  .row-meta em{display:inline;margin:0}
  .row-main h3,.post h3{padding:3px 0}
  .row-main p,.post p{margin-top:0}
  .about-grid{grid-template-columns:1fr;gap:16px 0}
  .portrait{float:none;margin:0 0 16px;width:132px}
  .portrait img{width:132px}
  .beyond-grid{grid-template-columns:1fr;gap:10px 0}.snap{max-width:300px}
  .two-col{grid-template-columns:1fr;gap:0}
  .skills-grid{grid-template-columns:repeat(2,1fr);gap:0 16px}
  .cta-row{flex-direction:column;align-items:flex-start;gap:0}
  .w-tools{flex-direction:column;align-items:stretch;gap:0}
  .w-search input{flex:1;width:auto;height:44px;padding:0 10px}
  .w-search span{display:none}
  .win-actions{gap:12px}
  .win--resume{height:fit-content;max-height:calc(100dvh - 16px)}
  .only-phone{display:block}
  .btn.only-phone{display:flex}
  .only-desktop{display:none!important}
  .win--page .win-head h1{font-size:24px}
  .win--page .win-foot .cap{display:none}
  body.page::before{inset:12px}
  .sheet{padding:24px 24px 44px}
  .sheet--small{padding-top:8vh}
  .proj-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"meta" "main" "facts";grid-template-rows:none;padding:8px 20px 20px}
  .proj-main h2:first-child{margin-top:4px}
  .prose,.prose-end{padding-left:20px;padding-right:20px}
  .contact-row{grid-template-columns:80px 1fr}
}

/* ---------- No JavaScript: windows become ordinary sections below the bands ---------- */
.nojs .bands{height:auto;min-height:0}
.nojs .band{min-height:96px}
.nojs dialog.win{display:flex;position:static;margin:24px auto;max-height:none}
.nojs .win-scroll::after,.nojs [data-close],.nojs .w-tools,.nojs .w-pager{display:none}
.nojs .win-body{overflow:visible}
.js-only{display:none}
.js .js-only{display:inline-flex}

@media print{
  .bands,.skip,.win::backdrop,.win-actions,.win-foot{display:none!important}
  html,body{background:#fff}
  body.page::before{display:none}
  dialog.win[open],.win--page{position:static;width:100%;max-height:none;height:auto;margin:0;border:0;box-shadow:none;overflow:visible}
  .win-scroll{display:block}.win-scroll::after{display:none}.win-body{overflow:visible;padding:0}
  .win--page .win-head{position:static}
  /* printing while the résumé is open prints just the résumé, full page */
  body:has(#resume[open]) dialog[open]:not(#resume){display:none}
  #resume .win-head{display:none}
  #resume .resume-page{width:100%;border:0}
}

/* writing: empty state */
.w-empty-state h3{margin:0 0 4px}

/* ---------- finishing touches ---------- */
.win--colophon{width:min(640px,calc(100vw - 24px))}
.win--colophon .row{grid-template-columns:110px 1fr;padding-bottom:8px}
.win--colophon .row-main p{margin:0}
/* spotlight: the band under the cursor (or keyboard focus) stays at full strength,
   the others recede under a wash of the wall colour. Nothing moves. */
.band::after{content:"";position:absolute;inset:0;z-index:0;background:var(--wall);opacity:0;pointer-events:none;transition:opacity .16s ease}
.band-link{z-index:1}
/* bridge the gaps between bands so crossing one never drops the spotlight */
@media (hover:hover){.band::before{content:"";position:absolute;inset:-4px 0;z-index:0}}
@media (hover:hover){.bands:has(.band:hover) .band:not(:hover)::after{opacity:.62}}
.bands:has(.band-link:focus-visible) .band:not(:has(.band-link:focus-visible))::after{opacity:.62}
html[data-motion="off"] .band::after{transition:none}
/* experience duties read as a list: a hairline marker, hanging indent, a little air between */
#experience .org~p{position:relative;padding-left:20px;margin-top:8px}
#experience .org~p::before{content:"";position:absolute;left:1px;top:.72em;width:9px;height:1px;background:currentColor;opacity:.5}
/* long pages keep their title in view */
.win--page .win-head{position:sticky;top:0;z-index:5;background:#fff}
/* project "at a glance" strip */
.glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 28px;margin:8px 40px 0;padding:14px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.glance dt{font-style:italic;font-size:15px}
.glance dd{margin:0;font-weight:400;line-height:1.3}
.proj-main figure{margin:0 0 16px}
.proj-main figcaption{margin-top:5px;font-size:16px;line-height:1.4}
.proj-main figcaption strong{font-weight:700}
@media (max-width:759px){.glance{margin:6px 20px 0;grid-template-columns:1fr 1fr}}

/* ---------- Work as an exhibition checklist ---------- */
.row--cat{grid-template-columns:44px 1fr;gap:0 12px}
.row--cat .num{padding-top:3px;font-variant-numeric:lining-nums tabular-nums}
.row--cat .cap-line{margin:1px 0 5px;font-style:italic}
@media (max-width:759px){.row--cat{grid-template-columns:34px 1fr;gap:0 8px}.row--cat .row-main h3{padding:0}}

/* ---------- One calm entrance: the page comes up out of the white wall, once ---------- */
@keyframes page-in{from{opacity:0}to{opacity:1}}
/* Motion switch: 'off' (chosen, or the system's Reduce Motion) removes every fade and transition */
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after{animation:none!important;transition:none!important}
html[data-motion="off"] ::view-transition-group(*),html[data-motion="off"] ::view-transition-old(*),html[data-motion="off"] ::view-transition-new(*){animation:none!important}
[hidden]{display:none!important}
/* home: the eight bands come up one after another, top to bottom */
.js .band{animation:page-in .9s ease-out backwards;animation-delay:calc(var(--i,0) * 140ms + 120ms)}
.band:nth-child(1){--i:0}.band:nth-child(2){--i:1}.band:nth-child(3){--i:2}.band:nth-child(4){--i:3}
.band:nth-child(5){--i:4}.band:nth-child(6){--i:5}.band:nth-child(7){--i:6}.band:nth-child(8){--i:7}

/* ---------- Catalogue navigation at the foot of each project ---------- */
.cat-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:0 24px;margin:8px 40px 0;padding:18px 0 20px;border-top:1px solid var(--rule)}
.cat-nav a{display:block;min-height:44px}
.cat-nav .cat-next{text-align:right}
.cat-k{display:block;font-style:italic}
.cat-t{display:block;line-height:1.3}
.cat-mid{margin:0;text-align:center;font-style:italic}
.cat-mid a{display:block;font-style:normal;padding-top:2px}
@media (max-width:759px){
  .cat-nav{grid-template-columns:1fr 1fr;grid-template-areas:"mid mid" "prev next";margin:8px 20px 0;gap:14px 16px}
  .cat-mid{grid-area:mid}
  .cat-prev{grid-area:prev}.cat-next{grid-area:next}
}

/* ---------- Soft fade between pages (browsers that support cross-document view transitions) ---------- */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.45s;animation-timing-function:ease}

/* ---------- Finishing details ---------- */
::selection{background:#1A1511;color:#F7F5F0}
.win-body,.win-scroll{scrollbar-width:thin;scrollbar-color:#9a958c transparent}
a{transition:text-underline-offset .3s ease,text-decoration-thickness .3s ease}
a:hover{text-decoration-thickness:1px;text-underline-offset:.32em}
.band-sub{display:block;margin-top:1px;font-size:13px;font-style:italic;line-height:1.25;letter-spacing:0}
.hide-phone{display:inline}
@media (max-width:759px){.hide-phone{display:none}}
@media (max-height:700px){.band-sub{display:none}}
.sec-nav{margin:26px 0 0}
.nojs .sec-nav{display:none}
@media print{.sec-nav,.cat-nav{display:none!important}}
.win .standfirst{margin:0 40px 6px;max-width:62ch;font-size:19px;font-style:italic;line-height:1.45}
@media (max-width:759px){.win .standfirst{margin:0 20px 6px}}
.win--article .win-head h1{font-size:32px;line-height:1.15}
.js-only>span[aria-hidden]+button{margin-left:.45em}
.wall-text .js-only,.win-foot .js-only{margin-left:.45em;align-items:baseline}

/* ---------- Every window opens with its top edge in the same place ---------- */
@media (min-width:760px){
  dialog.win{margin:clamp(20px,6vh,60px) auto auto;max-height:min(830px,calc(100vh - clamp(20px,6vh,60px) - 20px));max-height:min(830px,calc(100dvh - clamp(20px,6vh,60px) - 20px))}
}
/* the home entrance plays once per browser session */
.seen .band{animation:none!important}
dialog.win:focus,dialog.win:focus-visible{outline:none}   /* the window itself is not a control; its buttons and links keep their rings */

/* ---------- Editorial treatment for articles ---------- */
.kicker{margin:0 0 4px;font-style:italic}
.win--article .prose{font-size:18px;line-height:1.65;hanging-punctuation:first}
.win--article .prose p{text-wrap:pretty}
.win--article .prose h2{margin-top:38px;text-wrap:balance}
/* drop cap */
.win--article .prose>p:first-child::first-letter{float:left;margin:.06em .1em 0 0;font-size:3.7em;line-height:.78;font-weight:400}
/* pull quote: {{pull: …}} */
.prose .pull{margin:30px 0;padding:18px 0 20px;border-top:1px solid #000;border-bottom:1px solid #000;font-size:clamp(21px,3vw,26px);line-height:1.3;font-style:italic;text-wrap:balance}
/* section break: a line of three dots */
.prose hr{margin:30px 0;border:0;text-align:center;height:auto}
.prose hr::after{content:"·  ·  ·";font-size:1.4em;line-height:1;letter-spacing:.5em;padding-left:.5em}
/* figures, numbered */
.prose{counter-reset:fig}
.prose figure{margin:24px 0;counter-increment:fig}
.prose figure img{width:100%}
.prose figcaption{margin-top:7px;font-size:15px;line-height:1.4}
.prose figcaption::before{content:"Fig. " counter(fig) "  ";font-style:italic}
/* margin note: {{note: …}} sits in the right margin on wide screens, indented inline otherwise */
.prose .note{display:block;margin:6px 0 10px;padding-left:14px;border-left:1px solid var(--rule);font-size:15px;font-style:italic;line-height:1.4}
@media (min-width:1060px){.sheet--narrow:has(.win--article){width:min(980px,100%)}.prose .note{float:right;clear:right;width:176px;margin:3px -204px 10px 24px;padding:0 0 0 12px}}
/* reading progress */
.read-bar{position:fixed;top:0;left:0;right:0;height:2px;z-index:50;pointer-events:none}
.read-bar span{display:block;height:100%;background:#000;transform:scaleX(0);transform-origin:0 50%}
@media print{.read-bar{display:none}}
/* the current role leads the Experience list */
#experience .row--current .row-main h3{font-size:21px;line-height:1.25}
