/* Garamond Premier Pro — Caption optical size */
@font-face {
  font-family: "Garamond Premier Pro Caption";
  src: url("../assets/fonts/GaramondPremrPro-MedCapt.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Garamond Premier Pro Caption";
  src: url("../assets/fonts/GaramondPremrPro-MedItCapt.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: block;
}

/*
  Fixed 1440px layout. Every number is a pixel position measured from the
  1440 x 900 reference frame (_screenshot:/home page.png).
  The box and the two side arrows are placed from the window's middle (50%),
  so they stay centred on taller or shorter windows.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #fff;
  color: #000;
  font-family: "Garamond Premier Pro Caption", "Garamond Premier Pro", Garamond, "Times New Roman", serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  overflow-y: hidden;
  overflow-x: auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  width: 1440px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.tri {
  position: absolute;
  display: block;
  fill: #000;
}

/* ---------- Header ---------- */
.site-name,
.about-text {
  position: absolute;
  top: var(--name-y);
  white-space: nowrap;
}
.site-name {
  left: var(--name-x);
}
.about-tri {
  left: 250px;
  top: 40px;
  width: 9px;
  height: 10px;
}
.about-text {
  left: var(--about-x);
}

/* ---------- Project picker ---------- */
.project-picker {
  position: absolute;
  left: 94px;
  top: calc(50% - 13px);
  width: 401px;
  height: 25px;
  z-index: 10;
}
.project-frame {
  /* 1px black line centred on the half pixel, as in the Figma frame
     (outer edge 94.5 / 438.5, size 400 x 24) */
  position: absolute;
  left: 1px;
  top: 2px;
  width: 400px;
  height: 24px;
  transform: translate(-0.5px, -0.5px);
  border: 1px solid #000;
}
.project-title,
.project-year {
  position: absolute;
  white-space: nowrap;
}
.project-title {
  left: var(--undr-x);
  top: var(--undr-y);
}
.project-year {
  font-size: 15px;
  right: var(--year-r);
  top: var(--year-y);
  font-variant-numeric: lining-nums;
}
.picker-up,
.picker-down {
  left: 193px;
  width: 10px;
  height: 9px;
}
.picker-up {
  top: -28px;
}
.picker-down {
  top: 46px;
}

/* ---------- Fixed arrows beside the images ---------- */
.rail {
  z-index: 10;
}
.rail-up,
.rail-down {
  left: 936px;
  width: 11px;
  height: 9px;
}
.rail-left-1,
.rail-left-2 {
  left: 937px;
  width: 9px;
  height: 10px;
}
.rail-up {
  top: 40px; /* centred on the header line (About triangle) */
}
.rail-left-1 {
  top: calc(50% - 111px);
}
.rail-left-2 {
  top: calc(50% + 96px);
}
.rail-down {
  bottom: 28px;
}

/* ---------- Image column (static for now) ----------
   Image files are kept full size and shown smaller (sharper on retina).
   The tree starts above the top edge and the last image runs off the
   bottom, as in the reference. */
.gallery {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 920px;
  right: 0;
  overflow: hidden;
}
.gallery-content {
  position: relative;
  height: 100%;
}
.gallery-content img {
  position: absolute;
  display: block;
  left: 38px;
}
/* x = 920 + 38 = 958 */
.img-tree   { top: -129px; width: 192px; height: 274px; }
.img-book   { top: 174px;  width: 261px; height: 140px; }
.img-visula { top: 344px;  width: 126px; height: 203px; }
.img-rock   { top: 577px;  width: 240px; height: 168px; }
.img-spread { top: 774px;  width: 206px; height: 135px; }

:root {
  /* text positions, tuned so glyphs land on the reference pixels */
  --name-x: 108px;
  --name-y: 38px;
  --about-x: 268px;
  --undr-x: 13px;
  --undr-y: 6px;
  --year-r: 12px;
  --year-y: 6px;
}

/* ---------- About view (opens in place) ----------
   Measured from the 1440 x 900 reference (_screenshot:/about me.png). */
.about-tri-open,
.about-view {
  display: none;
}
.is-about .about-tri-closed,
.is-about .project-picker,
.is-about .gallery {
  display: none;
}
.is-about .about-tri-open,
.is-about .about-view {
  display: block;
}
.about-tri-open {
  left: 249px;
  top: 40px;
  width: 11px;
  height: 10px;
}
.about-view p {
  position: absolute;
  margin: 0;
  line-height: 19px;
  white-space: nowrap; /* line breaks are set to match the design */
}
.about-bio,
.about-updated {
  left: var(--about-col-x);
}
.about-bio {
  top: var(--about-bio-y);
}
.about-updated {
  bottom: var(--about-updated-b);
  color: #808080; /* 50% grey, as in the design */
}
.about-portrait {
  position: absolute;
  left: 958px;
  top: calc(50% - 90px);
  width: 270px;
  height: 180px;
  display: block;
}
.about-contact {
  left: var(--contact-x);
  top: calc(50% + var(--contact-dy));
  white-space: nowrap;
}
.about-contact a {
  color: inherit;
  text-decoration: none;
}
.about-contact a:hover {
  text-decoration: underline;
}

:root {
  --about-col-x: 262px;
  --about-bio-y: 79px;
  --about-updated-b: 33px;
  --contact-x: 958px;
  --contact-dy: 257px;
}

/* Clickable area covering the About triangle and word */
.about-link::before {
  content: "";
  position: absolute;
  left: 244px;
  top: 50px;
  width: 72px;
  height: 22px;
  z-index: 30;
}

/* =====================================================================
   Project pages (i-am-the-grey-one.html, undr.html, …)
   Measured from the 1440px-wide project screenshots. The page scrolls;
   the header and the ▲ ▼ arrows stay fixed.
   ===================================================================== */
body.page-project {
  overflow-y: auto;
  height: auto;
}
.fixed-layer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 720px));
  width: 1440px;
  z-index: 50;
  pointer-events: none;
}
.fixed-layer a {
  pointer-events: auto;
}
.project {
  position: relative;
  display: block;
  width: 1440px;
  margin: 0 auto;
}
.p-img,
.p-video {
  position: absolute;
  display: block;
}
.p-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}
.p-video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.p-video-play svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 20px;
  transform: translate(-50%, -50%);
  fill: #fff;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}
.p-video.is-playing .p-video-play {
  display: none;
}
.project p {
  position: absolute;
  margin: 0;
}
.p-text {
  font-variant-numeric: lining-nums;
  left: 958px;
  width: 392px;
  font-size: 17px;
  line-height: 20px;
}
.p-text.nowrap {
  white-space: nowrap;
}
.p-text .blank {
  display: inline-block;
  width: 101px;
  height: 1px;
  background: #000;
  vertical-align: -2px; /* the line sits just under the baseline, as in the design */
  margin-left: 2px;
}
.p-caption {
  font-size: 17px;
  line-height: 20px;
  font-style: italic;
  white-space: nowrap;
}

/* Clickable ▲ ▼ (previous / next project) */
.rail-nav::before {
  content: "";
  position: absolute;
  left: 926px;
  width: 31px;
  height: 29px;
}
.rail-nav-up::before {
  top: 30px;
}
.rail-nav-down::before {
  bottom: 18px;
}

/* ---------- Audio player (The Fiest) ---------- */
.player {
  position: absolute;
  left: 94px;
  top: 520px;
  width: 788px;
  height: 56px;
  font-size: 17px;
  line-height: 20px;
}
.player-time {
  position: absolute;
  top: 2px;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.player-current {
  left: var(--pl-cur-x);
}
.player-total {
  right: var(--pl-tot-r);
}
.player-bar {
  /* 1px black line on the half pixel: outer edge 94.5 / 550.5, 787 x 24 */
  position: absolute;
  left: 1px;
  top: 31px;
  width: 787px;
  height: 24px;
  transform: translate(-0.5px, -0.5px);
  border: 1px solid #000;
  cursor: pointer;
  overflow: hidden;
}
.player-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #e6e6e6;
}
.player-toggle {
  position: absolute;
  left: 9px;
  top: 34px;
  width: 15px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.player-toggle svg {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 9px;
  height: 10px;
  fill: #000;
}
.player .icon-pause,
.player.is-playing .icon-play {
  display: none;
}
.player.is-playing .icon-pause {
  display: block;
}

:root {
  --pl-cur-x: 13px;
  --pl-tot-r: 13px;
}

/* ---------- Home: project picker is clickable ---------- */
.picker-btn {
  position: absolute;
  left: 183px;
  width: 30px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.picker-btn-up {
  top: -37px;
}
.picker-btn-down {
  top: 38px;
}
.project-open {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.picker-up,
.picker-down {
  pointer-events: none; /* clicks go to the buttons underneath */
}

/* ---------- Home: endless image reel ----------
   Images sit in one column at x = 958 with 30px between them; the one nearest
   the middle of the window snaps to the centre (between the two ◀ arrows). */
.reel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 920px;
  right: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  visibility: hidden;
}
.reel.is-ready {
  visibility: visible;
}
.reel-track {
  position: absolute;
  inset: 0;
}
.reel-item {
  position: absolute;
  left: 38px; /* x = 920 + 38 = 958 */
  top: 0;
  display: block;
  cursor: pointer;
  will-change: transform;
  -webkit-user-drag: none;
}
.reel.is-dragging .reel-item {
  cursor: grabbing;
}
.is-about .reel {
  display: none;
}

/* ▲ ▼ beside the images are buttons (prev / next image) */
.rail-btn {
  position: absolute;
  left: 926px;
  width: 31px;
  height: 29px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 20;
}
.rail-btn-up {
  top: 30px;
}
.rail-btn-down {
  bottom: 18px;
}
.rail {
  pointer-events: none;
}
.is-about .rail-btn {
  pointer-events: none;
}

/* ---------- Project pages: two sides scroll separately ----------
   Left of the arrow column (x < 926): images. Right of it (x >= 947): text.
   Both keep the designed positions; scrollbars are hidden. */
body.page-project {
  overflow: hidden;
  height: 100%;
}
.pane {
  position: fixed;
  top: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pane::-webkit-scrollbar {
  display: none;
}
.pane-left {
  left: max(0px, calc(50% - 720px));
  width: 926px;
}
.pane-right {
  left: calc(max(0px, calc(50% - 720px)) + 947px);
  width: 493px;
}
.pane-inner {
  position: relative;
}
.pane-right .pane-inner {
  width: 1440px;
  margin-left: -947px; /* keep page coordinates: text stays at x 958 */
}
.pane p {
  position: absolute;
  margin: 0;
}

/* ---------- Header box ----------
   One white box behind "Līva Jakobsone ▶ About", fitted around the text with the
   same padding as the project box (≈13px left/right, 24px tall). No outline. */
.header-box {
  position: absolute;
  left: 95px;
  top: 35px;
  width: 226px;
  height: 24px;
  background: #fff;
  pointer-events: none;
}

/* ---------- Cursor ----------
   The site's black triangle, tilted like a normal pointer. Over the parts that
   scroll it stands upright and points ▲ or ▼ with the scroll direction. */
html,
html * {
  cursor: url("../assets/cursor/pointer@1x.png") 3 2, default !important;
  cursor: -webkit-image-set(url("../assets/cursor/pointer@1x.png") 1x, url("../assets/cursor/pointer@2x.png") 2x) 3 2, default !important;
}
html[data-cursor="down"],
html[data-cursor="down"] * {
  cursor: url("../assets/cursor/down@1x.png") 7 11, default !important;
  cursor: -webkit-image-set(url("../assets/cursor/down@1x.png") 1x, url("../assets/cursor/down@2x.png") 2x) 7 11, default !important;
}
html[data-cursor="up"],
html[data-cursor="up"] * {
  cursor: url("../assets/cursor/up@1x.png") 7 2, default !important;
  cursor: -webkit-image-set(url("../assets/cursor/up@1x.png") 1x, url("../assets/cursor/up@2x.png") 2x) 7 2, default !important;
}

/* Project pages: both scroll sides show ▼ from the start (no mouse move needed),
   ▲ after scrolling up. Header and arrows keep the tilted pointer. */
body.page-project .pane,
body.page-project .pane * {
  cursor: url("../assets/cursor/down@1x.png") 7 11, default !important;
  cursor: -webkit-image-set(url("../assets/cursor/down@1x.png") 1x, url("../assets/cursor/down@2x.png") 2x) 7 11, default !important;
}
html[data-dir="up"] body.page-project .pane,
html[data-dir="up"] body.page-project .pane * {
  cursor: url("../assets/cursor/up@1x.png") 7 2, default !important;
  cursor: -webkit-image-set(url("../assets/cursor/up@1x.png") 1x, url("../assets/cursor/up@2x.png") 2x) 7 2, default !important;
}

/* =====================================================================
   PHONES (narrower than 700px) — mobile designs, 390px wide, scaled to
   the screen width: 1 design px = var(--mu). Desktop is unaffected.
   ===================================================================== */
.m-arrow,
.about-bio-m,
.m-about-arrow,
.m-col,
.m-nav {
  display: none;
}
@media (max-width: 699px) {
  :root {
    --mu: calc(100vw / 390);
    --vh: 1dvh;
  }
  body {
    font-size: calc(15 * var(--mu));
    overflow-x: hidden;
  }
  .page {
    width: 100%;
    height: 100dvh;
    margin: 0;
  }

  /* header */
  .site-name,
  .about-text {
    top: calc(75 * var(--mu));
  }
  .site-name {
    left: calc(38 * var(--mu));
  }
  .about-text {
    left: calc(175 * var(--mu));
  }
  .about-tri {
    left: calc(156 * var(--mu));
    top: calc(76 * var(--mu));
    width: calc(9 * var(--mu));
    height: calc(10 * var(--mu));
  }
  .about-tri-open {
    left: calc(155 * var(--mu));
    width: calc(11 * var(--mu));
    height: calc(10 * var(--mu));
  }
  .about-link::before {
    left: calc(148 * var(--mu));
    top: calc(68 * var(--mu));
    width: calc(76 * var(--mu));
    height: calc(28 * var(--mu));
  }
  .header-box {
    left: calc(25 * var(--mu));
    top: calc(71 * var(--mu));
    width: calc(200 * var(--mu));
    height: calc(24 * var(--mu));
  }

  /* project box: 341 x 27 at y 260 (of an 844px-tall screen) */
  .project-picker {
    left: calc(25 * var(--mu));
    top: calc(260 / 844 * 100 * var(--vh));
    width: calc(341 * var(--mu));
    height: calc(27 * var(--mu));
    touch-action: none;
  }
  .project-frame {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .project-title {
    left: calc(12 * var(--mu));
    top: calc(7 * var(--mu));
  }
  .project-year {
    font-size: calc(15 * var(--mu));
    right: calc(17 * var(--mu));
    top: calc(7 * var(--mu));
  }
  .picker-up,
  .picker-down {
    left: calc(165 * var(--mu));
    width: calc(10 * var(--mu));
    height: calc(9 * var(--mu));
  }
  .picker-up {
    top: calc(-25 * var(--mu));
  }
  .picker-down {
    top: calc(43 * var(--mu));
  }
  .picker-btn {
    left: calc(152 * var(--mu));
    width: calc(36 * var(--mu));
    height: calc(30 * var(--mu));
  }
  .picker-btn-up {
    top: calc(-36 * var(--mu));
  }
  .picker-btn-down {
    top: calc(33 * var(--mu));
  }

  /* sideways image reel, top edge at y 501 */
  .reel {
    left: 0;
    right: 0;
    top: calc(501 / 844 * 100 * var(--vh));
    bottom: auto;
    height: calc(175 * var(--mu));
    touch-action: none;
  }
  .reel-item {
    left: 0;
    top: 0;
  }
  .rail,
  .rail-btn {
    display: none;
  }
  .m-arrow {
    display: block;
    position: absolute;
    top: calc(470 / 844 * 100 * var(--vh) - 10 * var(--mu));
    width: calc(30 * var(--mu));
    height: calc(30 * var(--mu));
    padding: 0;
    border: 0;
    background: none;
    z-index: 20;
  }
  .m-arrow .tri {
    top: calc(10 * var(--mu));
    width: calc(9 * var(--mu));
    height: calc(10 * var(--mu));
  }
  .m-arrow-left {
    left: 0;
  }
  .m-arrow-left .tri {
    left: calc(6 * var(--mu));
  }
  .m-arrow-right {
    right: 0;
  }
  .m-arrow-right .tri {
    left: calc(13 * var(--mu));
  }

  /* About view on phones: the page scrolls (design is 1113px tall) */
  body.is-about {
    overflow-y: auto;
  }
  .is-about .page {
    height: calc(1113 * var(--mu));
  }
  .is-about .m-arrow {
    display: none;
  }
  .about-view p {
    line-height: calc(18 * var(--mu));
  }
  .about-bio {
    display: none !important;
  }
  .is-about .about-bio-m {
    display: block;
    left: calc(163 * var(--mu));
    top: calc(115 * var(--mu));
  }
  .about-portrait {
    left: calc(24 * var(--mu));
    top: calc(630 * var(--mu));
    width: calc(272 * var(--mu));
    height: calc(181 * var(--mu));
  }
  .is-about .m-about-arrow {
    display: block;
    left: calc(85 * var(--mu));
    width: calc(9 * var(--mu));
    height: calc(10 * var(--mu));
  }
  .m-about-arrow-1 {
    top: calc(608 * var(--mu));
  }
  .m-about-arrow-2 {
    top: calc(824 * var(--mu));
  }
  .about-contact {
    left: calc(24 * var(--mu));
    top: calc(940 * var(--mu));
  }
  .about-updated {
    left: calc(22 * var(--mu));
    top: calc(1079 * var(--mu));
    bottom: auto;
    color: #d9d9d9;
  }
}
.project-open {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- Project pages on phones ---------- */
@media (max-width: 699px) {
  body.page-project {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }
  .pane {
    display: none;
  }
  .fixed-layer {
    left: 0;
    width: 100%;
  }
  .page-project .about-link,
  .page-project .rail-nav {
    display: none;
  }
  .page-project .header-box {
    width: calc(110 * var(--mu));
  }
  .m-nav {
    display: block;
  }
  .m-nav .m-arrow {
    position: fixed;
    z-index: 50;
  }
  .m-col {
    display: block;
    position: relative;
    width: calc(342 * var(--mu));
    margin: 0 0 0 calc(24 * var(--mu));
    padding: calc(118 * var(--mu)) 0 calc(137 * var(--mu));
  }
  .m-text,
  .m-caption {
    margin: 0;
    font-size: calc(15 * var(--mu));
    line-height: calc(18 * var(--mu));
    font-variant-numeric: lining-nums;
  }
  .m-text.m-indent {
    margin-left: calc(149 * var(--mu)); /* x 173 */
  }
  .m-caption {
    font-style: italic;
  }
  .m-text .blank {
    display: inline-block;
    width: calc(80 * var(--mu));
    height: 1px;
    background: #000;
    vertical-align: -2px;
  }
  .m-row {
    position: relative;
  }
  .m-img {
    display: block;
  }
  .m-abs {
    position: absolute;
  }
  .m-slot-video .p-video {
    position: relative;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .m-slot-audio .player {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(56 * var(--mu));
    font-size: calc(15 * var(--mu));
  }
  .m-slot-audio .player-bar {
    width: 100%;
  }
  /* the cursor is irrelevant on touch screens; keep the default */
}

/* =====================================================================
   Nov 22 redesign (desktop only — phones keep their own layout above)
   15px text, outlined header box, arrows at x 1015, images / texts from x 1035.
   ===================================================================== */
.rail-right-2,
.rail-side {
  display: none;
}
@media (min-width: 700px) {
  body {
    font-size: 15px;
  }
  :root {
    --name-x: 107px;
    --name-y: 38px;
    --about-x: 267px;
    --undr-x: 13px;
    --undr-y: 4px;
    --year-r: 13px;
    --year-y: 5px;
    --about-col-x: 262px;
    --about-bio-y: 79px;
    --about-updated-b: 31px;
    --contact-x: 1036px;
    --contact-dy: 86px;
    --text-x: 1035px;
    --text-dy: 0px;
  }
  /* header: one outlined box, the same as the project box (line centres x 95 / 494, y 35 / 55) */
  .header-box {
    left: 95px;
    top: 35px;
    width: 400px;
    height: 21px;
    transform: translate(-0.5px, -0.5px);
    border: 1px solid #000;
    background: #fff;
  }
  .about-tri-closed {
    left: 250px;
    top: 41px;
    width: 7px;
    height: 8px;
  }
  .about-tri-open {
    left: 250px;
    top: 41px;
    width: 8px;
    height: 7px;
  }
  .about-link::before {
    left: 244px;
    top: 35px;
    width: 64px;
    height: 21px;
  }

  /* project box: line centres x 95 / 494, y 440 / 460 */
  .project-picker {
    top: calc(50% - 12px);
    height: 23px;
  }
  .project-frame {
    height: 21px;
  }
  .project-year {
    font-size: 14px;
  }
  .picker-up,
  .picker-down {
    left: 194px;
    width: 8px;
    height: 8px;
  }
  .picker-up {
    top: -28px;
  }
  .picker-down {
    top: 45px;
  }
  .picker-btn {
    left: 183px;
  }
  .picker-btn-up {
    top: -36px;
  }
  .picker-btn-down {
    top: 36px;
  }

  /* arrow column at x 1015 */
  .rail-up,
  .rail-down {
    left: 1015px;
    width: 8px;
    height: 8px;
  }
  .rail-up {
    top: 37px;
  }
  .rail-down {
    top: auto;
    bottom: 29px;
  }
  .rail-left-1,
  .rail-left-2,
  .rail-right-2 {
    left: 1015px;
    width: 8px;
    height: 8px;
  }
  .rail-left-1 {
    top: calc(50% - 98px);
  }
  .rail-left-2,
  .rail-right-2 {
    top: calc(50% + 90px);
  }
  .is-about .rail-left-2 {
    display: none;
  }
  .is-about .rail-right-2 {
    display: block;
  }
  .rail-btn,
  .rail-nav::before {
    left: 1004px;
  }

  /* home reel: images at x 1035 (reel box starts at 996, arrows end at 1023) */
  .reel {
    left: 996px;
  }
  .reel-item {
    left: 39px;
  }

  /* About */
  .about-view p {
    line-height: 18px;
  }
  .about-portrait {
    left: 850px;
    top: calc(50% - 65px);
    width: 173px;
    height: 129px;
  }

  /* project pages */
  .rail-side {
    display: block;
    top: 92px;
    width: 8px;
    height: 8px;
  }
  .rail-side-1 {
    left: 1015px;
  }
  .rail-side-2 {
    left: 1402px;
  }
  .pane-left {
    width: 1004px;
  }
  .pane-right {
    left: calc(max(0px, calc(50% - 720px)) + 1027px);
    width: 413px;
  }
  .pane-right .pane-inner {
    margin-left: -1027px;
  }
  .p-text {
    left: var(--text-x);
    width: auto;
    font-size: 15px;
    line-height: 18px;
    transform: translateY(var(--text-dy));
  }
  .p-caption {
    font-size: 15px;
    line-height: 18px;
    transform: translateY(var(--text-dy));
  }
  .p-text .blank {
    width: 91px;
  }

  /* The Fiest: the player sits on the hero photo, in white */
  .player {
    left: 96px;
    top: 495px;
    width: 540px;
    height: 43px;
    font-size: 15px;
    line-height: 18px;
    color: #fff;
  }
  .player-time {
    top: 1px;
  }
  .player-current {
    left: 11px;
  }
  .player-total {
    right: -1px;
  }
  .player-bar {
    left: 0;
    top: 25px;
    width: 540px;
    height: 18px;
    transform: none;
    border: 0;
    background: #fff;
  }
  .player-progress {
    background: #c4c4c4;
  }
  .player-toggle {
    left: 3px;
    top: 26px;
    width: 16px;
    height: 16px;
  }
  .player-toggle svg {
    left: 4px;
    top: 4px;
    width: 7px;
    height: 8px;
  }
}
.p-caption.p-plain {
  font-style: normal;
  font-variant-numeric: lining-nums;
}
@media (min-width: 700px) {
  .p-caption {
    font-size: 14px;
  }
  .p-caption.p-plain {
    font-size: 15px;
  }
}

/* =====================================================================
   PHONES — Nov 22 mobile designs (mobile_*.png, 390px wide)
   ===================================================================== */
@media (max-width: 699px) {
  /* header: outlined box, as on the computer */
  .header-box {
    left: calc(24 * var(--mu));
    top: calc(70 * var(--mu));
    width: calc(209 * var(--mu));
    height: calc(24 * var(--mu));
    border: 1px solid #000;
    background: #fff;
  }
  .page-project .header-box {
    width: calc(209 * var(--mu));
  }
  .page-project .about-link {
    display: block;
  }

  /* About */
  .is-about .page {
    height: calc(844 * var(--mu));
  }
  .is-about .about-bio-m {
    left: calc(163 * var(--mu));
    top: calc(var(--m-bio-y) * var(--mu));
  }
  .is-about .m-about-arrow {
    left: calc(24 * var(--mu));
    width: calc(9 * var(--mu));
    height: calc(10 * var(--mu));
  }
  .m-about-arrow-1 {
    top: calc(445 * var(--mu));
  }
  .m-about-arrow-2 {
    top: calc(582 * var(--mu));
  }
  .about-portrait {
    left: calc(24 * var(--mu));
    top: calc(469 * var(--mu));
    width: calc(132 * var(--mu));
    height: calc(99 * var(--mu));
  }
  .about-contact {
    left: calc(163 * var(--mu));
    top: calc(var(--m-contact-y) * var(--mu));
  }
  .about-updated {
    left: calc(163 * var(--mu));
    top: calc(var(--m-date-y) * var(--mu));
  }
  :root {
    --m-bio-y: 115;
    --m-contact-y: 633;
    --m-date-y: 780;
  }

  /* project pages: everything placed as in the design; ▶ (01) opens the info text */
  .m-col {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .m-it {
    position: absolute;
  }
  .m-img {
    display: block;
    object-fit: cover;
  }
  .m-text {
    white-space: nowrap;
  }
  .m-text.m-cap {
    font-size: calc(12 * var(--mu));
    line-height: calc(18 * var(--mu));
    font-style: italic;
  }
  .m-info {
    display: none;
  }
  .m-info.is-open {
    display: block;
  }
  .m-text .blank {
    width: calc(91 * var(--mu));
  }
  .m-toggle {
    height: calc(18 * var(--mu));
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: calc(15 * var(--mu));
    line-height: calc(18 * var(--mu));
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
  }
  .m-toggle span {
    margin-left: calc(16 * var(--mu));
    font-variant-numeric: lining-nums;
  }
  .m-toggle .tri {
    left: calc(1 * var(--mu));
    width: calc(9 * var(--mu));
    height: calc(9 * var(--mu));
  }
  .m-tog-closed {
    top: calc(4 * var(--mu));
  }
  .m-tog-open {
    top: calc(6 * var(--mu));
    display: none;
  }
  .m-toggle.is-open .m-tog-closed {
    display: none;
  }
  .m-toggle.is-open .m-tog-open {
    display: block;
  }
  .m-slot-video .p-video video {
    object-fit: cover;
  }
  .m-slot-audio .player {
    height: 100%;
  }
  .m-slot-audio .player-time {
    top: calc(12 * var(--mu));
  }
  .m-slot-audio .player-bar {
    top: calc(31 * var(--mu));
    height: calc(24 * var(--mu));
  }
  /* ◀ moves down the left edge as the page scrolls; ▶ goes to the next project */
  .m-scrollmark {
    position: fixed;
    left: calc(6 * var(--mu));
    top: calc(125 * var(--mu));
    width: calc(9 * var(--mu));
    height: calc(10 * var(--mu));
    z-index: 50;
    pointer-events: none;
  }
  .m-nav .m-arrow {
    top: calc(429 * var(--mu));
  }
}

/* text side: no scrolling of its own and no ◀ at the right edge */
@media (min-width: 700px) {
  .pane-right {
    overflow-y: hidden;
  }
  .rail-side-2 {
    display: none !important;
  }
}
/* the text side doesn't scroll, so it keeps the normal tilted pointer */
html body.page-project .pane-right,
html body.page-project .pane-right *,
html[data-dir="up"] body.page-project .pane-right,
html[data-dir="up"] body.page-project .pane-right * {
  cursor: url("../assets/cursor/pointer@1x.png") 3 2, default !important;
  cursor: -webkit-image-set(url("../assets/cursor/pointer@1x.png") 1x, url("../assets/cursor/pointer@2x.png") 2x) 3 2, default !important;
}
