/* dash v3 — Helvetica printed on paper: sharp, slightly dissolved ink. The picture lives in the WebGL canvas (dash.js). */

@font-face { font-family: "Dash Helvetica"; src: local("HelveticaNeue-Light"), local("Helvetica Neue Light"), url("font/HelveticaNeueLt.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Dash Helvetica"; src: local("HelveticaNeue"), local("Helvetica Neue"), url("font/HelveticaNeue.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dash Helvetica"; src: local("HelveticaNeue-Medium"), local("Helvetica Neue Medium"), url("font/HelveticaNeueMed.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Dash Helvetica"; src: local("HelveticaNeue-Bold"), local("Helvetica Neue Bold"), url("font/HelveticaNeueBd.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dash Helvetica"; src: local("HelveticaNeue-Italic"), local("Helvetica Neue Italic"), url("font/HelveticaNeueIt.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Circular"; src: local("CircularStd-Medium"), url("font/circular-std-medium-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --w: 1440px;
  --f: "Dash Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: url(#ink);
  --ink-b: url(#ink-b);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0; min-width: var(--w); color: #000; background: #fff;
  font: 400 12px/1.45 var(--f); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a:focus-visible, button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
input.sr { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; margin: 0 !important; }   /* the form's hidden spam trap must not widen the page on phones */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
p, li, em { text-wrap: pretty; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.page { position: relative; z-index: 1; width: var(--w); margin: 0 auto; }

/* plain Helvetica regular everywhere */
body *:not(.coe-mini *) { font-weight: 400 !important; }
* { text-wrap: pretty; }
.intro, .note b, .g-note b, .blk h1 { text-wrap: balance; }

/* ------------------------------------------------------------------ header: labels on white paper strips */
.top {
  position: fixed; z-index: 50; top: 0; left: 50%;
  width: var(--w); height: 0; margin-left: calc(var(--w) / -2);
  pointer-events: none;
}
.top a, .top button, .top .cvlist { pointer-events: auto; }
.logo { position: absolute; left: 34px; top: 18px; width: 200px; height: 84px; }
#logo { width: 100%; height: 100%; display: block; }
.logo-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo-gl .logo-fb { display: none; }
.logo-fb { filter: invert(1); }   /* white ink on black: under difference blending the black disappears */
/* the logo has its own layer above the page and inverts whatever is behind it */
.logo-layer { position: fixed; z-index: 51; top: 0; left: 50%; width: var(--w); height: 0; margin-left: calc(var(--w) / -2); pointer-events: none; mix-blend-mode: difference; }
.logo-layer .logo { pointer-events: auto; }

/* the labels stand on the logo's baseline (logo box 18 + 84px, letters end at ~87px) */
.view-label { position: absolute; left: 383px; top: 72px; font-size: 13px; line-height: 13px; letter-spacing: .03em; white-space: nowrap; background: #fff; padding: 1px 5px 3px; }

.side {
  position: absolute; left: 1286px; top: 72px; width: 150px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.08; letter-spacing: .02em;
  max-height: calc(100vh - 70px); overflow-y: auto; scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
.side > a, .side > button { background: #fff; padding: 1px 4px 2px; }
.side > .cvbtn { line-height: 13px; padding: 1px 4px 3px; }
.side .gap { height: 38px; flex: none; }
.cv-open .side .gap { height: 26px; }
.side > a:hover, .side > button:hover { text-decoration: underline; text-underline-offset: 3px; }
.cvbtn { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* CV unwraps right under "CV", in the same capitals as the menu */
.cvlist { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s cubic-bezier(.7, 0, .2, 1); margin-top: -10px; }
.cvlist > ul { overflow: hidden; min-height: 0; }
.cv-open .cvlist { grid-template-rows: 1fr; margin-top: 0; }
.cvlist li { font-size: 11px; line-height: 1.15; letter-spacing: .02em; margin-bottom: 5px; }
.cvlist li > * { background: #fff; padding: 0 4px 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cvlist li.gap2 { margin-bottom: 22px; }
.cvlist a { text-decoration: none; }
.cvlist a:hover { text-decoration: underline; }
.cvlist li.h { margin-top: 14px; font-size: 9px; letter-spacing: .18em; background: #fff; padding: 0 4px; width: max-content; }
.cvlist li.h:first-child { margin-top: 4px; }
.cvlist a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ city annotations: museum labels on paper */
.notes { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.note {
  position: absolute; left: 0; top: 0; width: 230px; padding: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s, visibility 0s .4s;
  display: flex; flex-direction: column; gap: 3px; background: none;
  transition: opacity .35s;
}
.note.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s; }
.note .n { font-size: 10px; letter-spacing: .16em; }
.note b { font-weight: 500; font-size: 14px; letter-spacing: .03em; line-height: 1.1; }
.note .k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.note .c { font-size: 12px; line-height: 1.4; margin-top: 5px; }
.note { width: 210px; transition: opacity .4s, visibility 0s .4s, left .6s cubic-bezier(.2,.7,.2,1), top .6s cubic-bezier(.2,.7,.2,1); }
.note:hover b { text-decoration: underline; text-underline-offset: 3px; }

.hud { position: fixed; z-index: 20; left: 40px; bottom: 20px; display: flex; gap: 14px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; white-space: pre; }
.hud span { background: #fff; padding: 1px 5px 2px; }

/* ------------------------------------------------------------------ sections */
#city { height: 100vh; position: relative; }
.intro { position: absolute; left: 383px; bottom: 60px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; background: #fff; padding: 2px 5px; }
#sink { height: 160vh; }
#loop { height: 100vh; }

/* first view: a thin arrow on the left that grows and shrinks upward, like a scroll — up is forward into the projects */
/* under the logo, on the left: a fine black arrow that bounces upward */
.shint { position: fixed; z-index: 21; left: calc(50% - 720px + 126px); top: 290px; pointer-events: none; transition: opacity .6s; animation: shin 1.2s .4s backwards; }
.shint span { display: none; }
.shint i { position: relative; display: block; width: 11px; height: 80px; animation: bounce 1.6s cubic-bezier(.45, 0, .25, 1) infinite; }
.shint i::before { content: ""; position: absolute; left: 5px; top: 1px; bottom: 0; width: 1px; background: #000; }
.shint i::after { content: ""; position: absolute; left: 1px; top: 1px; width: 8px; height: 8px; border-left: 1px solid #000; border-top: 1px solid #000; transform: rotate(45deg); }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 18% { transform: translateY(-26px); } 34% { transform: translateY(0); } 46% { transform: translateY(-9px); } 56% { transform: translateY(0); } }
@keyframes shin { from { opacity: 0; } to { opacity: 1; } }
.hinted .shint { opacity: 0; }

/* the one video, edge to edge */
.hv { position: relative; z-index: 2; width: 100vw; height: 100vh; margin-left: calc(50% - 50vw); overflow: hidden; background: #111; }
.hero { width: 100%; height: 100%; object-fit: cover; display: block; }
/* white text in "difference": the negative of whatever the video shows under it */
#about { position: relative; }
/* the text sits across the bottom edge of the video and runs on into the white, towards SAZINIES */
.about-txt { position: absolute; z-index: 5; left: 34px; top: calc(100vh - 120px); width: 600px; color: #000; pointer-events: none; }
.about-txt h2 { font-size: 11px; letter-spacing: .2em; margin-bottom: 8px; }
.about-txt p { font-size: 17px; line-height: 1.38; }
/* white strips behind each line, like the menu */
.about-txt span { background: #fff; padding: 1px 5px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.about-txt p + p { margin-top: 12px; }

.contact {
  position: relative; background: #fff; z-index: 2;
  display: grid; grid-template-columns: 1fr 260px; align-content: start;
  padding: 40px 220px 40px 60px; min-height: 100vh;
}
.form { position: absolute; z-index: 5; top: -120px; right: 67px; width: 260px; display: flex; flex-direction: column; gap: 12px; }
.form h2 { line-height: 1; }
.form h2 { font-size: 13px; letter-spacing: .03em; text-align: right; margin-bottom: 4px; }
.form label { display: block; }
.form input, .form textarea { display: block; width: 100%; border: 1px solid #000; border-radius: 0; background: #fff; font: 400 13px var(--f); padding: 8px 10px; color: #000; resize: vertical; }
.form textarea { min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: #000; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px #000; }
.form button { align-self: flex-end; font-size: 13px; letter-spacing: .03em; border: 1px solid #000; background: #fff; padding: 5px 18px; }
.form button:hover { background: #000; color: #fff; }
.foot { grid-column: 1 / -1; display: flex; gap: 60px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding-top: 22vh; }

/* ------------------------------------------------------------------ quick look */
.ql { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0); transition: background .35s; cursor: default; }
.ql figure { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; opacity: 0; transform: scale(.96); transition: opacity .35s, transform .35s; }
.ql-open .ql { background: rgba(255,255,255,.94); }
.ql-open .ql figure { opacity: 1; transform: none; }
.ql img, .ql video { max-width: 78vw; max-height: 80vh; display: block; object-fit: contain; }
.ql figcaption { display: flex; gap: 30px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ql-go { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ql-go b { font-weight: 500; }

/* ------------------------------------------------------------------ PROJECT PAGES */
.proj { pointer-events: none; }
.proj a, .proj .coe-mini { pointer-events: auto; }
.col { position: absolute; left: 60px; top: 170px; width: 250px; display: flex; flex-direction: column; gap: 54px; }
.blk h1 { font-weight: 500; font-size: 17px; line-height: 1.1; letter-spacing: .02em; }
.blk .nr { font-size: 10px; letter-spacing: .18em; margin-bottom: 14px; }
.blk .kind { margin-top: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.blk .lead { margin-top: 16px; font-size: 13px; line-height: 1.4; }
.blk h3 { font-weight: 400; font-size: 10px; letter-spacing: .2em; margin-bottom: 8px; }
.blk p { font-size: 12px; line-height: 1.5; }
.blk.files li { font-size: 10.5px; line-height: 1.6; letter-spacing: .03em; }
.blk.files li::before { content: "— "; }

.next { position: absolute; left: 60px; display: flex; flex-direction: column; gap: 6px; background: #fff; padding: 6px 8px; }
.next span { font-size: 10px; letter-spacing: .2em; }
.next b { font-weight: 500; font-size: 17px; letter-spacing: .02em; }
.next:hover b { text-decoration: underline; text-underline-offset: 3px; }
.back { position: fixed; z-index: 49; left: calc(50% - 720px + 40px); bottom: 20px; font-size: 10px; letter-spacing: .18em; background: #fff; padding: 1px 5px 2px; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ colours of earth — the website inside the website */
.coe-wrap { position: absolute; left: 300px; top: 150vh; width: 880px; }
.coe-mini { background: #fff; border: 1px solid #000; font-family: "Circular", var(--f); color: #000; filter: none; }
.coe-mini * { filter: none; }
.bbar { display: flex; gap: 6px; align-items: center; padding: 7px 10px; border-bottom: 1px solid #000; font-size: 10px; font-family: var(--f); }
.bbar i { width: 8px; height: 8px; border: 1px solid #000; border-radius: 50%; }
.bbar span { margin-left: 10px; }
.coe { position: relative; overflow: hidden; }
.c-strip { display: flex; justify-content: center; height: 10px; }
.c-strip i { width: 22px; }
.c-head { display: flex; align-items: flex-end; gap: 20px; padding: 16px 22px 12px; border-bottom: 1px solid #000; }
.c-logo { flex: 1; display: flex; flex-direction: column; }
.c-logo b { font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.c-logo em, .coe em { font-style: normal; color: #1f75fe; }
.c-logo small { font-size: 7px; margin-top: 3px; }
.c-head nav { display: flex; gap: 22px; font-size: 11px; }
.c-tog { display: flex; border: 1px solid #000; height: 16px; align-self: flex-start; }
.c-tog i { width: 16px; border-left: 1px solid #000; }
.c-tog i:first-child { border: 0; position: relative; }
.c-tog i:first-child::after { content: ""; position: absolute; inset: 3px; border: 1px solid #000; border-radius: 50%; }

.c-hero { position: relative; height: 1020px; }
.c-hero h3 { position: absolute; left: 18px; top: 8px; font-weight: 500; font-size: 56px; letter-spacing: -.03em; white-space: nowrap; line-height: 1; }
.ccard { position: absolute; background: #fff; border: 1px solid #555; padding: 10px 10px 6px; display: grid; grid-template-columns: 1fr auto; gap: 6px 0; font-size: 11px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.ccard i { grid-column: 1 / -1; aspect-ratio: 1.6; display: block; }
.ccard b { font-weight: 500; }
.ccard:hover { transform: translate(-6px, -8px) rotate(-1deg); box-shadow: 8px 10px 0 rgba(0,0,0,.08); z-index: 5; }
.c-collab { position: absolute; left: 300px; top: 345px; width: 290px; }
.c-collab b { display: block; font-weight: 500; font-size: 24px; line-height: 1; letter-spacing: -.01em; border-left: 7px solid #fede03; padding-left: 10px; }
.c-collab small { display: block; font-size: 7px; margin-top: 8px; }
.c-month { position: absolute; left: 610px; top: 720px; width: 230px; }
.c-month input { position: absolute; opacity: 0; pointer-events: none; }
.c-month h4 { font-weight: 500; font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 10px 0 8px; }
.chips i { height: 20px; display: block; transition: transform .3s; }
.chips i:hover { transform: scaleY(1.6); }
.m-sep { display: none; }
#coe-prev:checked ~ * .m-oct, #coe-prev:checked ~ .m-oct { display: none; }
#coe-prev:checked ~ * .m-sep, #coe-prev:checked ~ .m-sep { display: revert; }
#coe-prev:checked ~ .chips.m-sep { display: grid; }
.c-link { font-size: 11px; display: inline-block; border-bottom: 1px solid #000; padding-right: 40px; cursor: pointer; margin-top: 4px; }
.c-link:hover { color: #1f75fe; border-color: #1f75fe; }
.c-about { position: absolute; left: 22px; top: 840px; width: 360px; font-size: 11px; line-height: 1.3; }
.c-about .c-link { margin-top: 14px; }

.c-eco { position: relative; height: 1180px; }
.c-eco input { position: absolute; opacity: 0; pointer-events: none; }
.globe { display: block; }
.globe .grid { fill: none; stroke: #1f75fe; stroke-width: .8; }
.globe .tri { stroke: #000; stroke-width: .6; }
.globe text { font-size: 7px; fill: #000; }
.g1 { position: absolute; right: 10px; top: 0; animation: spin 60s linear infinite; }
.g2 { position: absolute; left: 20px; top: 720px; animation: spin 80s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.elist { position: relative; padding: 170px 22px 0; display: flex; flex-direction: column; }
.elist label { font-weight: 500; font-size: 58px; line-height: 1.12; letter-spacing: -.03em; cursor: pointer; width: max-content; transition: color .25s; }
.elist label:hover { color: #1f75fe; }
.elist .e0 { margin-left: 0; } .elist .e1 { margin-left: 0; } .elist .e2 { margin-left: 8px; } .elist .e3 { margin-left: 24px; }
.elist .e4 { margin-left: 380px; } .elist .e5 { margin-left: 500px; } .elist .e6 { margin-left: 590px; } .elist .e7 { margin-left: 560px; }
.elist .e8 { margin-left: 530px; } .elist .e9 { margin-left: 420px; }
.epals { position: absolute; left: 22px; bottom: 30px; width: 360px; height: 120px; }
.epal { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none; }
.epal p { font-size: 11px; margin-bottom: 8px; }
.epal p b { color: #1f75fe; font-weight: 500; }
.epal div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.epal span { height: 60px; position: relative; border: 1px solid #555; }
.epal span b { position: absolute; bottom: -15px; right: 0; font-size: 8px; font-weight: 500; }
#eco-0:checked ~ .epals .p0, .c-eco:has(.e0:hover) .p0, .c-eco:has(.e1:hover) .p1, .c-eco:has(.e2:hover) .p2, .c-eco:has(.e3:hover) .p3, .c-eco:has(.e4:hover) .p4,
.c-eco:has(.e5:hover) .p5, .c-eco:has(.e6:hover) .p6, .c-eco:has(.e7:hover) .p7, .c-eco:has(.e8:hover) .p8, .c-eco:has(.e9:hover) .p9, #eco-1:checked ~ .epals .p1, #eco-2:checked ~ .epals .p2, #eco-3:checked ~ .epals .p3, #eco-4:checked ~ .epals .p4,
#eco-5:checked ~ .epals .p5, #eco-6:checked ~ .epals .p6, #eco-7:checked ~ .epals .p7, #eco-8:checked ~ .epals .p8, #eco-9:checked ~ .epals .p9 { opacity: 1; transform: none; }
#eco-0:checked ~ .elist .e0, #eco-1:checked ~ .elist .e1, #eco-2:checked ~ .elist .e2, #eco-3:checked ~ .elist .e3, #eco-4:checked ~ .elist .e4,
#eco-5:checked ~ .elist .e5, #eco-6:checked ~ .elist .e6, #eco-7:checked ~ .elist .e7, #eco-8:checked ~ .elist .e8, #eco-9:checked ~ .elist .e9 { color: #1f75fe; }

.c-purpose { text-align: center; font-size: 11px; padding: 60px 40px 120px; }
.c-purpose span { color: #1f75fe; }
.c-blur { display: flex; justify-content: center; padding-bottom: 140px; }
.c-blur .ccard { position: relative; width: 240px; filter: blur(5px) !important; transition: filter .6s; }
.c-blur .ccard:hover { filter: none !important; }
.c-foot { position: relative; background: #1f75fe; color: #fff; padding: 22px 22px 120px; display: flex; gap: 120px; align-items: flex-start; }
.c-foot b { font-weight: 500; font-size: 48px; line-height: .9; letter-spacing: -.02em; }
.c-foot nav { display: flex; gap: 50px; font-size: 11px; padding-top: 6px; }
.c-foot .x { position: absolute; right: 22px; top: 28px; font-size: 11px; }
.c-foot p { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: 9px; }

/* ------------------------------------------------------------------ without WebGL */
.nogl #gl { display: none; }
.nogl #deep { height: 0 !important; }
.nogl .notes { position: relative; inset: auto; display: grid; grid-template-columns: repeat(4, 250px); gap: 40px; padding: 140px 60px 60px; width: var(--w); margin: 0 auto; pointer-events: auto; }
.nogl .note { position: relative; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }

@media (prefers-reduced-motion: reduce) { .cvlist { transition: none; } .g1, .g2 { animation: none; } }
.ql[hidden], .ql [hidden] { display: none !important; }

/* ------------------------------------------------------------------ view switch + gallery view */
/* the gallery comes down over the city like a sheet of paper, while the city underneath melts */
.gallery { position: fixed; inset: 0; z-index: 30; background: #fff; display: block; overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; clip-path: inset(0 0 100% 0); opacity: .6;
  transition: clip-path .9s cubic-bezier(.7, 0, .2, 1), opacity .9s, visibility 0s .9s; }
.gal-on .gallery { visibility: visible; clip-path: inset(0 0 0 0); opacity: 1;
  transition: clip-path .9s cubic-bezier(.7, 0, .2, 1), opacity .5s, visibility 0s; }
.g-show.on .g-head, .g-show.on .g-grid { animation: gfade .45s; }
.leaving .page, .leaving .back, .leaving .next { opacity: 0; transition: opacity .5s; }
.gal-on { overflow: hidden; }
.gal-on .notes, .gal-on .hud, .gal-on .shint { display: none; }
.g-list { position: fixed; left: calc(50% - 720px + 60px); top: 170px; list-style: none; margin: 0; padding: 0; width: 260px; }
.g-item { display: flex; gap: 14px; font-size: 13px; letter-spacing: .02em; padding: 3px 0;  }
.g-item span { font-size: 10px; letter-spacing: .14em; width: 22px; padding-top: 2px; }
.g-item:hover, .g-item.on { text-decoration: underline; text-underline-offset: 3px; }
.g-stage { position: relative; margin-left: calc(50% - 720px + 383px); padding: 150px 0 120px; width: 860px; }
.g-show { display: none; }
.g-show.on { display: block; animation: gfade .45s; }
@keyframes gfade { from { opacity: 0; } to { opacity: 1; } }
.g-head { display: flex; align-items: flex-start; gap: 26px; }
.g-head img { max-width: 580px; max-height: calc(100vh - 230px); object-fit: contain; cursor: zoom-in; display: block; }
/* every picture of the folder on a clean grid */
.g-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 70px; }
.g-cell { display: block; padding: 0; border: 0; background: #f2f2f2; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in; }
.g-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.g-cell:hover img { opacity: .82; }
.g-note { width: 230px; display: flex; flex-direction: column; gap: 3px; align-self: flex-end; }
.g-note > * {  }
.g-note .n { font-size: 10px; letter-spacing: .16em; }
.g-note b { font-weight: 500; font-size: 14px; letter-spacing: .03em; line-height: 1.1; }
.g-note .k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.g-note .c { font-size: 12px; line-height: 1.4; margin-top: 5px; }
.g-note:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ quick look: title top right, arrows below */
.ql figure { position: relative; flex-direction: row; align-items: flex-start; gap: 24px; }
.ql figcaption { flex-direction: column; gap: 6px; width: 220px; padding-top: 0; text-transform: uppercase; }
.ql-title { font-size: 13px; letter-spacing: .03em; font-weight: 500; }
.ql-title[href]:hover { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ql-file, .ql-n { font-size: 10px; letter-spacing: .1em; }
.ql-bar { position: absolute; left: 0; right: 244px; bottom: -34px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .1em; }
.ql-bar button { font-size: 20px; line-height: 1; padding: 2px 8px; }
.ql-bar button:hover { text-decoration: underline; }
.ql img, .ql video { max-width: 70vw; max-height: 78vh; }

/* project pages: link to the next one at the end */
.proj .next { position: fixed; top: auto; left: auto; right: 60px; bottom: 34px; z-index: 6; }
.vtoggle { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
  position: relative; display: inline-flex; align-items: baseline; gap: .42em; }
/* GALERIJA / PILSĒTIŅA — the slash turns over into a backslash, the underline slides under the open view */
.vsl { display: inline-block; transition: transform .75s cubic-bezier(.7, 0, .2, 1); }
.gal-on .vsl, .vtoggle.flip .vsl { transform: scaleX(-1); }
.vul { position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; pointer-events: none; }
.vw { transition: opacity .3s; }
.vtoggle:hover .vw:not(.cur) { opacity: .55; }
.v-still .vsl, .v-still .gallery { transition: none !important; }
.view-label { pointer-events: auto; }
/* project pages: the text column slides away under a white band, not through the logo */
.project .top::before { content: ''; position: absolute; left: 0; top: 0; width: 345px; height: 116px; background: #fff; opacity: 0; transition: opacity .2s; }
.project.col-under .top::before { opacity: 1; }

/* ================================================================== PHONES — the same city, re-cut for a narrow screen.
   Applies on phones and in any browser window narrower than 760px, and switches live when the window is resized. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  :root { --w: 100vw; }
  body { min-width: 0; font-size: 12px; }
  body { overflow-x: clip; }

  /* header: logo left, view switch under it, menu top right */
  .top { width: 100vw; margin-left: -50vw; }
  .logo-layer { width: 100vw; margin-left: -50vw; }
  .logo { left: 12px; top: 10px; width: 112px; height: 47px; }
  .view-label { left: 14px; top: 62px; font-size: 11px; line-height: 11px; }
  .shint { left: 22px; top: 40%; } .shint i { height: 90px; }
  .side { left: auto; right: 10px; top: 14px; width: auto; max-width: 62vw; align-items: flex-end; gap: 6px; font-size: 11px; max-height: calc(100vh - 30px); }
  .side .gap, .cv-open .side .gap { height: 8px; }
  .side > a, .side > button { padding: 1px 4px 2px; }
  .cvlist li { font-size: 10px; text-align: right; }
  .cvlist li.gap2 { margin-bottom: 14px; }

  /* city: the label sits at the bottom of the screen, on paper strips */
  .note { left: 14px !important; top: auto !important; bottom: 54px; width: calc(100vw - 28px) !important; gap: 4px; }
  .note > * { background: #fff; width: max-content; max-width: 100%; padding: 1px 5px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .note .c { display: inline; font-size: 12px; }
  .hud { left: 14px; bottom: 14px; gap: 6px; font-size: 9px; }
  
  .intro { left: 14px; bottom: 44px; font-size: 9px; }

  /* about straddles the video edge, then the form follows underneath */
  .about-txt { position: relative; top: auto; left: auto; margin: -150px 14px 0; width: auto; }
  .about-txt p { font-size: 15px; line-height: 1.42; }
  .contact { display: block; padding: 40px 14px 90px; min-height: 0; }
  .form { position: static; width: 100%; }
  .form h2 { text-align: left; }
  .foot { flex-wrap: wrap; gap: 10px 22px; padding-top: 60px; }

  /* quick look: picture on top, title and arrows below */
  .ql figure { flex-direction: column; gap: 12px; padding: 0 14px; }
  .ql img, .ql video { max-width: calc(100vw - 28px); max-height: 66vh; }
  .ql figcaption { width: auto; }
  .ql-bar { position: static; margin-top: 6px; }
  .ql-bar button { font-size: 26px; padding: 6px 14px; }

  /* project pages: text first, full width, then the endless wall of pictures */
  .col { position: relative; left: auto; top: auto; width: auto; margin: 0 14px; padding-top: 118px; gap: 34px; }
  .blk h1 { font-size: 20px; }
  .blk p { font-size: 13px; }
  .project .top::before { width: 100vw; height: 92px; }
  .back { left: 14px; bottom: 14px; }
  .proj .next { right: 14px; bottom: 10px; padding: 4px 6px; }
  .next b { font-size: 13px; }
  .coe-wrap { left: 14px; width: 880px; }

  /* gallery view: projects as a sideways strip, pictures on a 3-column grid */
  .g-list { position: static; display: flex; gap: 16px; overflow-x: auto; width: auto; padding: 100px 14px 12px; scrollbar-width: none; }
  .g-list::-webkit-scrollbar { display: none; }
  .g-item { white-space: nowrap; gap: 6px; }
  .g-stage { margin: 0; padding: 16px 14px 80px; width: auto; }
  .g-head { flex-direction: column; gap: 14px; }
  .g-head img { max-width: 100%; max-height: 58vh; }
  .g-note { width: auto; align-self: flex-start; }
  .g-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 30px; }
}
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .hud .hint { display: none; }
  .hud::after { content: "↑ dziļāk · ↓ par mani · pieskaries — tuvāk"; background: #fff; padding: 1px 5px 2px; }
}

/* 2026-11-22 */
/* the scroll hint sits in the middle of the screen, away from the logo */
.shint { left: calc(50% - 5px); top: calc(50% - 40px); }
/* CV: italic category headings, then the projects */
.cvlist li.h { margin: 14px 0 5px; font-size: 11px; letter-spacing: .02em; font-style: normal; background: none; padding: 0; width: auto; }
.cvlist li.h:first-child { margin-top: 4px; }
.cvlist li.gap2 + li.h { margin-top: 0; }
.cvlist li.h > span { font-style: normal; background: #fff; padding: 0 4px 1px; }
/* project pages: a link to a related project inside the text column */
.rel { display: inline-flex; flex-direction: column; gap: 5px; margin-top: 14px; background: #fff; padding: 6px 8px; }
.rel span { font-size: 10px; letter-spacing: .2em; }
.rel b { font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.rel:hover b { text-decoration: underline; text-underline-offset: 3px; }
h1.intro { font-weight: 400; margin: 0; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .shint { left: calc(50% - 5px); top: calc(50% - 45px); }
  .cvlist li.h { font-size: 10px; text-align: right; margin-top: 10px; }
}

/* 2026-11-22b — the gallery list is grouped by field, like the CV */
.g-list .g-h { font-size: 11px; letter-spacing: .02em; margin: 16px 0 4px; }
.g-list .g-h:first-child { margin-top: 0; }

/* fluid desktop: every width from 901px up, instead of one fixed 1440px page */
:root { --gx: clamp(250px, 26.6vw, 383px); --gl: clamp(24px, 4.2vw, 60px); }
@media (min-width: 901px) and (not ((hover: none) and (pointer: coarse) and (max-height: 500px))) {
  :root { --w: min(100vw, 1920px); }
  html, body { overflow-x: clip; }
  body { min-width: 0; }
  .view-label, .intro { left: var(--gx); }
  .side { left: auto; right: 4px; }
  .back { left: calc(50% - var(--w) / 2 + 40px); }
  .col { left: var(--gl); width: min(250px, calc(var(--gx) - var(--gl) - 20px)); }
  .g-list { left: calc(50% - var(--w) / 2 + var(--gl)); width: calc(var(--gx) - var(--gl) - 16px); }
  .g-stage { margin-left: calc(50% - var(--w) / 2 + var(--gx)); width: min(1240px, calc(var(--w) - var(--gx) - 200px)); }
  .g-head { flex-wrap: wrap; }
  .g-head img { max-width: min(580px, 100%); }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .about-txt { width: min(600px, calc(100vw - 420px)); }
  .nogl .notes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
/* with the CV open, the "next project" link sits left of it instead of under it */
@media (min-width: 901px) { .cv-open .proj .next { right: 176px; } }
/* phones: the field names sit between the projects in the sideways-scrolling list */
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .g-list .g-h, .g-list .g-h:first-child { margin: 0; white-space: nowrap; align-self: center; font-size: 10px; opacity: .55; padding-left: 10px; }
  .g-list .g-h:first-child { padding-left: 0; }
}
@media (min-width: 901px) and (max-width: 1300px) { .coe-wrap { zoom: .85; } }
@media (min-width: 901px) and (max-width: 1120px) { .coe-wrap { zoom: .72; } }
@media (min-width: 901px) and (max-width: 1000px) { .coe-wrap { zoom: .64; } }

/* r3 */
/* CV: the field names are underlined */
.cvlist li.h > span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* SAZINIES on a white paper strip, like the other labels */
.form h2 { align-self: flex-end; width: max-content; background: #fff; padding: 1px 4px 3px; }
/* the scroll hint: two fine arrows, left and right of the picture, that keep pulling upward */
.shint { left: 0; right: 0; top: 0; bottom: 0; width: auto; }
.shint i, .shint i.a, .shint i.b { position: absolute; top: auto; bottom: calc(50% - 70px); width: 11px; height: 44px; animation: pull 2.2s cubic-bezier(.5, 0, .2, 1) infinite; }
.shint i.a { left: calc(50% - min(31vw, 520px)); }
.shint i.b { left: calc(50% + min(29vw, 490px)); animation-delay: .25s; }
@keyframes pull { 0% { height: 34px; opacity: 0; } 12% { opacity: 1; } 55% { height: 118px; opacity: 1; } 80% { height: 118px; opacity: 0; } 100% { height: 34px; opacity: 0; } }
/* about: the film a little smaller than the screen, the liquid city around and under it */
.hv { background: transparent; overflow: visible; }
.hv .hero { position: absolute; left: 7vw; top: 6vh; width: 86vw; height: 84vh; }
/* gallery: full text beside the picture, folder parts named in the grid */
.g-more { flex: 1 1 340px; align-self: flex-end; column-width: 210px; column-gap: 26px; font-size: 12px; line-height: 1.45; margin-top: 18px; }
.g-more > div { break-inside: avoid; margin-bottom: 16px; }
.g-more h3 { font-weight: 400; font-size: 10px; letter-spacing: .2em; margin-bottom: 6px; }
.g-sub { grid-column: 1 / -1; font-size: 10px; letter-spacing: .2em; margin: 22px 0 -4px; }
.g-sub:first-child { margin-top: 0; }
/* quick look: zoom */
.ql { overflow: hidden; touch-action: none; }
.ql img { cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 50%; will-change: transform; position: relative; z-index: 2; }
.ql.zoomed img { cursor: grab; }
.ql.zoomed img:active { cursor: grabbing; }
.ql-x::after { content: "  ·  +/− TUVINĀT"; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .hud::after { content: "↑ dziļāk · ↓ par mani · pieskaries — tuvāk"; }
  .form h2 { align-self: flex-start; }
  .hv .hero { left: 4vw; top: 4vh; width: 92vw; height: 86vh; }
  .shint i.a { left: 8vw; } .shint i.b { left: auto; right: 8vw; }
  .g-more { column-width: auto; columns: 1; flex-basis: 100%; }
  .g-sub { margin-top: 14px; }
  .ql-x::after { content: ""; }
}

/* 2026-11-23 */
/* CV: field names bigger, in italics, no underline */
.cvlist li.h { font-size: 14px; letter-spacing: .01em; margin: 16px 0 6px; }
.cvlist li.h > span { font-style: italic; text-decoration: none; }
/* about: the film runs down to the white edge, the liquid stays only at the sides */
.hv .hero { top: 0; height: 100vh; left: 7vw; width: 86vw; }
/* the text and SAZINIES side by side, tops aligned, over the lower edge of the film */
.about-txt { left: 10vw; top: calc(100vh - 230px); width: min(520px, 40vw); }
#about > .form { position: absolute; z-index: 5; top: calc(100vh - 230px); right: 132px; width: 270px; }
.form h2 { align-self: flex-start; }
/* e-mail: "TAVSEPASTS@.COM" in 80% black, only TAVSEPASTS goes away while typing */
.form label.em { position: relative; }
.form .ghost { position: absolute; left: 11px; top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; white-space: pre; font: 400 13px var(--f); color: rgba(0, 0, 0, .8); overflow: hidden; }
.form .ghost .gm { color: transparent; }
.form input::placeholder { color: transparent; }
.form textarea::placeholder { color: rgba(0, 0, 0, .8); font-size: 21px; line-height: 1.15; letter-spacing: .01em; }
.form textarea { min-height: 140px; }
/* between pages: a soft white fade out and back in */
body::after { content: ""; position: fixed; inset: 0; z-index: 400; background: #fff; pointer-events: none; opacity: 0; transition: opacity .5s cubic-bezier(.6, 0, .4, 1); }
body.fading::after { opacity: 1; }
html::before { content: ""; position: fixed; inset: 0; z-index: 401; background: #fff; pointer-events: none; animation: dash-in .75s cubic-bezier(.3, 0, .2, 1) .05s both; }
@keyframes dash-in { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html::before { animation: none; opacity: 0; } body::after { transition: none; } }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .cvlist li.h { font-size: 12px; }
  .hv .hero { left: 4vw; width: 92vw; top: 0; height: 100vh; }
  .about-txt { left: auto; top: auto; width: auto; }
  #about > .form { position: static; width: auto; margin: 34px 14px 0; }
}

/* 2026-11-23b — scroll hint on the first view: two arrows fade in, stretch twice and fade out;
   then the same two point down and do the same, taking turns */
.shint i, .shint i.a, .shint i.b { height: 34px; opacity: 0; transform-origin: 50% 100%; animation: dash-updown 6.4s cubic-bezier(.45, 0, .25, 1) infinite; }
.shint i.b { animation-delay: .18s; }
@keyframes dash-updown {
  0%    { opacity: 0; height: 34px; transform: none; }
  6%    { opacity: 1; height: 38px; }
  15%   { height: 112px; }
  23%   { height: 62px; }
  33%   { height: 118px; }
  42%   { opacity: 1; height: 118px; }
  48%   { opacity: 0; height: 118px; transform: none; }
  49.9% { opacity: 0; height: 34px; transform: none; }
  50%   { opacity: 0; height: 34px; transform: scaleY(-1); }
  56%   { opacity: 1; height: 38px; }
  65%   { height: 112px; }
  73%   { height: 62px; }
  83%   { height: 118px; }
  92%   { opacity: 1; height: 118px; }
  98%   { opacity: 0; height: 118px; transform: scaleY(-1); }
  100%  { opacity: 0; height: 34px; transform: scaleY(-1); }
}
@media (prefers-reduced-motion: reduce) { .shint i, .shint i.a, .shint i.b { animation: none; opacity: 1; height: 60px; } }
/* "VARI UZRAKSTĪT MAN TE !!" the same size as the e-mail hint */
.form textarea::placeholder { font-size: 13px; line-height: 1.38; letter-spacing: normal; }

/* 2026-11-23c */
/* CV: field names like the numbers in the gallery list — small caps-only, wide letter spacing, upright */
.cvlist li.h { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin: 16px 0 6px; }
.cvlist li.h > span { font-style: normal; text-decoration: none; }
/* "VARI UZRAKSTĪT MAN TE !!" no bigger than SAZINIES */
.form textarea::placeholder { font-family: var(--f); font-weight: 400; font-size: 13px !important; line-height: 1.3; letter-spacing: .03em; }
/* gallery texts: every column starts on the same line */
.g-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 26px; row-gap: 16px; align-items: start; columns: auto; column-width: auto; }
.g-more > div { margin-bottom: 0; break-inside: auto; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .cvlist li.h { font-size: 9px; }
  .g-more { grid-template-columns: 1fr; }
}

/* 2026-11-23d — CV field names: a little flatter and rounder (wider, lower), letters spread further apart */
.cvlist li.h > span { display: inline-block; letter-spacing: .26em; transform: scale(1.14, .86); transform-origin: 0 60%; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) { .cvlist li.h > span { transform-origin: 100% 60%; } }

/* 2026-11-23e — CV field names: a touch less flattened, a touch smaller; message field back to "_" */
.cvlist li.h { font-size: 9px; }
.cvlist li.h > span { transform: scale(1.08, .92); }
.form textarea::placeholder { color: #000; }

/* 2026-11-23f — CV field names: squeezed only slightly */
.cvlist li.h > span { transform: scale(1.04, .96); }

/* 2026-11-23g — phones */
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  /* the film: as tall as a phone screen comfortably shows a wide video, liquid only at the sides */
  .hv { height: 78vh; height: 78svh; }
  .hv .hero { top: 0; height: 100%; left: 4vw; width: 92vw; }
  .about-txt { margin: -120px 14px 0; }
  .about-txt p { font-size: 15px; }
  /* form: 16px text so the phone does not zoom in when typing; big, easy fields and button */
  #about > .form { margin: 30px 14px 0; gap: 14px; }
  .form input, .form textarea { font-size: 16px; padding: 12px 12px; }
  .form .ghost { left: 13px; font-size: 16px; }
  .form textarea::placeholder { font-size: 16px !important; }
  .form textarea { min-height: 150px; }
  .form button { align-self: stretch; font-size: 14px; padding: 12px 18px; }
  .contact { padding-top: 30px; }
  /* CV: larger tap areas */
  .cvlist li { margin-bottom: 2px; }
  .cvlist li > a { display: inline-block; padding: 5px 4px; }
  .cvlist li.h { font-size: 9px; margin: 14px 0 2px; }
  .side > a, .side > button { padding: 6px 6px; }
  /* gallery texts in one column */
  .g-more { grid-template-columns: 1fr; row-gap: 14px; }
  /* scroll hint arrows: a little shorter so they stay clear of the text at the bottom */
  .shint i, .shint i.a, .shint i.b { bottom: calc(50% - 40px); }
}
@media (hover: none) and (pointer: coarse) { .ql-bar button { min-width: 48px; min-height: 44px; } }

/* 2026-11-23h — first visit: white cover until the logo intro runs, then the intro itself */
html.intro body::before { content: ""; position: fixed; inset: 0; z-index: 500; background: #fff; }
.intro-ov { position: fixed; inset: 0; z-index: 501; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .6s cubic-bezier(.5, 0, .3, 1); }
.intro-ov svg { width: min(78vw, 980px); height: auto; overflow: visible; }
.intro-ov g { opacity: 0; will-change: transform, opacity; }
.intro-ov.out { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .intro-ov svg { width: 92vw; } }

/* 2026-11-23i — gallery: "NĀKAMAIS" under each project, phones only (on a computer the list stays in view) */
.g-next { display: none; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .g-next { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 40px 0 70px auto; padding: 10px 4px; background: #fff; text-align: right; }
  .g-next span { font-size: 10px; letter-spacing: .2em; }
  .g-next b { font-weight: 400; font-size: 18px; letter-spacing: .02em; }
  .g-next b::after { content: " →"; }
  .g-next:active b { text-decoration: underline; text-underline-offset: 3px; }
}

/* 2026-11-23j — form: status line under SŪTĪT */
.form-msg { font-size: 11px; letter-spacing: .08em; min-height: 1em; align-self: flex-end; text-align: right; background: #fff; padding: 0 4px; }
.form-msg:empty { display: none; }
.form button[disabled] { opacity: .5; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) { .form-msg { align-self: stretch; text-align: left; } }

/* ================================================================== text can be selected and copied */
html, body, .notes, .note, .g-note, .gallery, .blk, .about-txt, .intro, .cvlist, .foot, .lead, .kind, .proj { -webkit-user-select: text; user-select: text; }
.note .n, .note b, .note .k, .note .c, .about-txt p, .proj .blk, .intro, .foot span { pointer-events: auto; }
.note, .g-note, .proj .next, .cvlist a { -webkit-user-drag: none; }
.note .c, .note .k, .note b, .about-txt p, .blk p, .blk h1, .blk h3, .g-more p, .g-note .c, .foot span { cursor: text; }
::selection { background: #000; color: #fff; }

/* ================================================================== LV / ENG: beside CV, as far from it as GALERIJA / PILSĒTIŅA is from the logo */
.lang-label { position: absolute; top: 72px; right: calc(var(--gx) - 80px); font-size: 13px; line-height: 13px; letter-spacing: .03em; white-space: nowrap; background: #fff; padding: 1px 5px 3px; pointer-events: auto; }
.gal-on .ltoggle .vsl { transform: none; }
html.lang-en .ltoggle .vsl { transform: scaleX(-1); }
@media (max-width: 900px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .lang-label { right: auto; left: 14px; top: 84px; font-size: 11px; line-height: 11px; }
}
