:root {
  --paper: #f9f6fa;
  --grey: #c3b8b2;
  --ink: #261f17;
  --moss: #3f9a3a;
  --lime: #7ddc4a;
  --mono: "DM Mono", ui-monospace, monospace;
  --dot: "Doto", "DM Mono", ui-monospace, monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  font: 12px/1.5 var(--mono);
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
#dev {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #cfcac4 url(../assets/rock.jpg) center/cover no-repeat;
}
#dm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#home {
  position: absolute;
  inset: 0;
  touch-action: none;
  transition:
    transform 0.75s,
    filter 0.75s,
    opacity 0.75s;
}
.zoom #home {
  transform: scale(1.12);
  filter: blur(5px);
  opacity: 0.3;
}
#col {
  position: absolute;
  inset: calc(70px + env(safe-area-inset-top)) 0 calc(90px + env(safe-area-inset-bottom));
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  list-style: none;
}
.r {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 560px);
  margin: 0 auto;
}
.l {
  padding-left: 18px;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
.tm {
  font: 400 28px/1 var(--dot);
  letter-spacing: 0;
}
.p {
  --sz: clamp(54px, 9.4vh, 84px);
  display: block;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 0;
}
.p.in {
  animation: pin 0.95s cubic-bezier(0.2, 0.85, 0.2, 1) var(--d, 0s) both;
}
@keyframes pin {
  from {
    translate: 0 var(--dy, 0);
    scale: 0.5;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    translate: 0 0;
    scale: 1;
    opacity: 1;
  }
}
@keyframes dr {
  from {
    translate: 0 -90px;
    opacity: 0;
  }
}
@keyframes sd {
  from {
    translate: 40px 0;
    opacity: 0;
  }
}
@keyframes fd {
  from {
    opacity: 0;
  }
}
.go #pill {
  animation: dr 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 0.9s both;
}
.go #tab {
  animation: sd 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 1.1s both;
}
.go .l {
  animation: fd 0.8s 0.1s both;
}
.orb {
  display: block;
  width: var(--sz);
  height: var(--sz);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--ink);
  transition:
    width 0.55s cubic-bezier(0.3, 1.4, 0.5, 1),
    height 0.55s cubic-bezier(0.3, 1.4, 0.5, 1),
    border-radius 0.55s;
}
.p.f .orb {
  width: calc(var(--sz) * 1.5);
  height: calc(var(--sz) * 1.5);
  border-radius: 28%;
}
.orb::before,
.orb::after {
  content: "";
  position: absolute;
}
.o-story::before {
  inset: -25%;
  background: repeating-radial-gradient(circle, var(--grey) 0 4px, var(--ink) 4px 6px);
  animation: br 4s ease-in-out infinite;
}
.o-proj {
  background: #e9e4e0;
}
.o-proj::before {
  inset: 0;
  background: radial-gradient(circle, var(--moss) 2.2px, transparent 2.8px) 0 0/10px 10px;
}
.o-proj::after {
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(transparent, #7ddc4acc, transparent);
  animation: sn 2.4s linear infinite;
}
.o-cam {
  background: radial-gradient(
    circle,
    #050507 0 20%,
    #3a3a42 21% 27%,
    #101014 28% 46%,
    #8a8f99 47% 50%,
    #1a1a1e 51%
  );
}
.o-cam::before {
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #8fc3ff99, transparent 40%);
  animation: br 3s ease-in-out infinite;
}
.o-cam::after {
  top: 15px;
  right: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: bl 3s infinite;
}
.o-cv {
  background: #e4dfdc;
}
.o-cv::before {
  inset: 18% 30%;
  background: repeating-linear-gradient(#fff 0 8px, #cfc9c5 8px 9px);
  box-shadow: 0 3px 8px #0004;
}
.dl .o-cv::before {
  animation: dp 0.9s;
}
.vn {
  background:
    conic-gradient(#fff0, #fff3 12%, #fff0 30%, #fff0 55%, #fff3 67%, #fff0 85%),
    repeating-radial-gradient(circle, #111 0 2px, #2a2a2a 2px 3px);
  animation: rot 5s linear infinite;
}
.o-vinyl::before {
  inset: 35%;
  border-radius: 50%;
  background: var(--grey);
}
.o-ct::before,
.o-ct::after {
  inset: 42%;
  border: 2px solid var(--lime);
  border-radius: 50%;
  animation: pg 2.4s infinite;
}
.o-ct::after {
  animation-delay: 1.2s;
}
@keyframes br {
  50% {
    transform: scale(1.25);
  }
}
@keyframes sn {
  from {
    top: -35%;
  }
  to {
    top: 100%;
  }
}
@keyframes bl {
  0%,
  90%,
  100% {
    opacity: 0.15;
  }
  95% {
    opacity: 1;
  }
}
@keyframes dp {
  40% {
    transform: translateY(45%);
  }
}
@keyframes rot {
  to {
    rotate: 360deg;
  }
}
@keyframes pg {
  to {
    inset: -12%;
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes sw {
  to {
    top: 100%;
    opacity: 0;
  }
}
#pill {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  right: max(16px, calc((100% - 560px) / 2 + 16px));
  width: 50px;
  padding: 9px 0;
  border-radius: 26px;
  background: #0b0b0c;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 30;
}
.av {
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #d9cfc9 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 105%, #d9cfc9 0 38%, transparent 39%), #4a4650;
}
#pill small {
  font-size: 7px;
  letter-spacing: 0.08em;
}
#bolt {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f4f2f5;
  display: grid;
  place-items: center;
  cursor: pointer;
}
#bolt svg {
  width: 16px;
  height: 16px;
}
#tab {
  position: absolute;
  right: 0;
  top: calc(64% - clamp(55px, 10.5vh, 95px));
  width: clamp(26px, 8vw, 34px);
  height: clamp(110px, 21vh, 190px);
  background: #0b0b0c;
  clip-path: polygon(100% 0, 60% 5%, 22% 16%, 0 24%, 0 80%, 22% 88%, 55% 93%, 100% 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 26% 0 14% 5px;
  z-index: 30;
}
#tab button {
  background: none;
  border: 0;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}
#tab svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
}
#bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(66px + env(safe-area-inset-bottom));
  padding: 0 max(18px, calc((100% - 560px) / 2 + 18px)) env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -6px 22px #0001;
  font-size: 10px;
  z-index: 30;
}
.mn {
  display: grid;
  gap: 3px;
  background: none;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
}
.mn i {
  display: block;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
}
#sl {
  position: relative;
  flex: 1;
  height: 30px;
  margin: 0 14px;
  touch-action: none;
  cursor: pointer;
}
#sl i {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 1px;
  background: var(--ink);
}
#sl::before,
#sl::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 2px;
  height: 18px;
  background: repeating-linear-gradient(var(--ink) 0 3px, transparent 3px 6px);
}
#sl::before {
  left: -8px;
}
#sl::after {
  right: -8px;
}
#th {
  position: absolute;
  top: 6px;
  width: 3px;
  height: 18px;
  margin-left: -1px;
  background: var(--ink);
  transition: left 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}
#rd {
  min-width: 9ch;
  text-align: right;
}
#ts {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  translate: -50% -90px;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 15px;
  border-radius: 12px;
  transition: translate 0.4s;
  z-index: 50;
}
#ts.on {
  translate: -50% 0;
}
#ov {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: auto;
  background: var(--paper);
  clip-path: inset(50% round 0);
  visibility: hidden;
  transition:
    clip-path 0.75s cubic-bezier(0.75, 0, 0.2, 1),
    visibility 0s 0.75s;
}
#ov.on {
  visibility: visible;
  transition: clip-path 0.75s cubic-bezier(0.75, 0, 0.2, 1);
}
#dev[data-s="story"] #ov {
  background: var(--grey);
}
#dev[data-s="cam"] #ov {
  background: var(--cb, #dcdbcc);
  overflow: hidden;
}
#dev[data-s="proj"] #ov {
  background: #c7bdb4;
  overflow: hidden;
}
#dev[data-s="contact"] #ov,
#dev[data-s="index"] #ov {
  background: var(--ink);
  color: var(--paper);
}
#x {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 16px;
  z-index: 40;
  visibility: hidden;
  font: 500 11px var(--mono);
  padding: 9px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.zoom #x {
  visibility: visible;
}
#dev[data-s="contact"] #x,
#dev[data-s="index"] #x {
  background: var(--paper);
  color: var(--ink);
}
.s {
  display: none;
  padding: 80px 22px 110px;
  max-width: 620px;
  margin: auto;
}
.s.on {
  display: block;
}
#ov.on .s.on:not(.full) > * {
  animation: rise 0.6s 0.5s both;
}
.h {
  font: 900 clamp(44px, 14vw, 76px)/0.92 var(--dot);
  margin-bottom: 24px;
}
.row {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid #8884;
  color: inherit;
  text-decoration: none;
}
.yr {
  position: sticky;
  top: 60px;
  z-index: 2;
  font: 900 70px var(--dot);
}
.rings {
  position: fixed;
  left: 50%;
  top: 55%;
  width: 150vmax;
  height: 150vmax;
  margin: -75vmax;
  background: repeating-radial-gradient(circle, #0000 0 22px, #261f1730 22px 23px);
  transform: scale(calc(0.3 + var(--k, 0) * 0.9));
  pointer-events: none;
}
article {
  min-height: 62vh;
  padding-top: 30px;
  position: relative;
}
article h2 {
  font: 900 30px var(--dot);
  margin-bottom: 8px;
}
.cv {
  position: relative;
  height: 250px;
  border-radius: 24px;
  overflow: hidden;
  background: #ece8e6;
  margin-bottom: 22px;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#ro {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 10px/1.4 var(--mono);
}
.card {
  border: 1px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
}
.card b {
  grid-column: 1/-1;
  font: 900 24px var(--dot);
  margin-bottom: 6px;
}
.card em {
  font-style: normal;
  opacity: 0.5;
}
.full {
  padding: 0;
  max-width: none;
  height: 100%;
  position: relative;
}
#cg,
#cf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#cg {
  object-fit: fill;
}
#dev:not([data-s="cam"]) #cg,
#dev:not([data-s="cam"]) #cf {
  visibility: hidden;
}
.ic::before,
.ic::after {
  display: none;
}
[data-screen="proj"] :is(#az, #dn, #an, #tg, .rt) {
  animation: fd 0.5s 0.6s both;
}
#dev[data-s="proj"] #x {
  display: block;
}
.zoom #dev[data-s="cam"] #pill,
.zoom #dev[data-s="cam"] #tab,
.zoom #dev[data-s="cam"] #bar {
  display: none;
}
#az,
#dn,
#an,
#tg {
  position: absolute;
  pointer-events: none;
  white-space: pre;
}
#az {
  left: 18px;
  top: calc(26px + env(safe-area-inset-top));
  font: 700 17px/1.15 var(--mono);
  color: #1d1812;
}
#dn {
  left: 14px;
  top: 47%;
  font: 400 44px/1 var(--dot);
  color: #fff;
  text-shadow: 0 0 2px #0005;
}
#an {
  left: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  font: 9px/1.35 var(--mono);
  color: #fff;
  text-shadow: 0 0 3px #0008;
}
#tg {
  right: 46px;
  top: 42%;
  font: 7px/1.4 var(--mono);
  opacity: 0.6;
}
.rt {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -22px;
  background: none;
  border: 0;
  color: #fff;
  font: 8px var(--mono);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.rt i {
  position: absolute;
  inset: 10px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  animation: pg2 2.2s infinite;
}
@keyframes pg2 {
  50% {
    inset: 6px;
    opacity: 0.5;
  }
}
.rec {
  width: min(70vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  border-radius: 50%;
  box-shadow: 0 12px 30px #0006;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01s !important;
  }
}

/* Viewport-scaled controls; height and width both constrain the composition. */
:root {
  --ui: clamp(12px, min(1.45vw, 2.2dvh), 22px);
  --frame: min(90vw, 72dvh);
  --portal: clamp(40px, min(12vw, 10dvh), 160px);
}
#col {
  inset: 12dvh 0 20dvh;
}
.r {
  width: var(--frame);
}
.l {
  padding-left: 1em;
  font-size: calc(var(--ui) * 0.8);
}
.tm {
  font-size: calc(var(--ui) * 2.3);
}
#gl {
  width: calc(var(--ui) * 2.2);
  height: calc(var(--ui) * 2.2);
}
.p {
  --sz: var(--portal);
}
#pill {
  right: max(16px, calc((100% - var(--frame)) / 2));
  width: calc(var(--ui) * 4.2);
  padding: calc(var(--ui) * 0.7) 0;
  gap: calc(var(--ui) * 0.55);
}
.av {
  width: calc(var(--ui) * 2.7);
  height: calc(var(--ui) * 2.7);
}
#pill small {
  font-size: calc(var(--ui) * 0.58);
}
#bolt {
  width: calc(var(--ui) * 3);
  height: calc(var(--ui) * 3);
}
#bolt svg {
  width: calc(var(--ui) * 1.4);
  height: calc(var(--ui) * 1.4);
}
#tab {
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--ui) * 3.6);
  height: calc(var(--ui) * 14);
  padding: calc(var(--ui) * 1.8) 0 calc(var(--ui) * 1.4) calc(var(--ui) * 0.5);
}
#tab button {
  width: 100%;
  min-height: 44px;
  display: grid;
  place-items: center;
}
#tab svg {
  width: calc(var(--ui) * 1.5);
  height: calc(var(--ui) * 1.5);
}
#bar {
  height: calc(7dvh + 18px + env(safe-area-inset-bottom));
  font-size: calc(var(--ui) * 0.8);
  padding-left: max(18px, calc((100% - var(--frame)) / 2));
  padding-right: max(18px, calc((100% - var(--frame)) / 2));
}
.mn {
  min-width: 36px;
  min-height: 44px;
  align-content: center;
  gap: calc(var(--ui) * 0.3);
}
.mn i {
  width: calc(var(--ui) * 1.1);
}
#socials {
  position: absolute;
  bottom: calc(9dvh + 24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: calc(var(--ui) * 0.85);
  z-index: 15;
}
#socials a,
#socials button {
  width: calc(var(--ui) * 3.4);
  height: calc(var(--ui) * 3.4);
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #261f1733;
  border-radius: 50%;
  background: #f9f6fae8;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
#socials svg {
  width: calc(var(--ui) * 1.6);
  height: calc(var(--ui) * 1.6);
  fill: currentColor;
}
.zoom #socials {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .p {
    opacity: 1;
  }
}

/* Edge-mounted profile and smoked-glass social controls. */
#pill {
  right: max(12px, env(safe-area-inset-right));
  border-radius: calc(var(--ui) * 2.1);
}
.av {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 37%, #c3b8b2 0 19%, transparent 20%),
    radial-gradient(ellipse at 50% 108%, #c3b8b2 0 38%, transparent 39%), #252725;
  box-shadow: inset 0 0 0 1px #7ddc4a55;
}
.av::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle, #101410aa 0.8px, transparent 1px) 0 0/4px 4px;
  animation: avatarSignal 5s ease-in-out infinite;
}
.av::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -50% 0 auto;
  height: 42%;
  background: linear-gradient(transparent, #7ddc4a55, #b7ff9266, transparent);
  border-bottom: 1px solid #7ddc4a99;
  animation: avatarScan 5s ease-in-out infinite;
}
.av:hover::after,
.av:focus-visible::after {
  animation-duration: 1.5s;
}
@keyframes avatarScan {
  0%,
  15% {
    transform: translateY(0);
    opacity: 0;
  }
  23% {
    opacity: 1;
  }
  65% {
    transform: translateY(370%);
    opacity: 1;
  }
  75%,
  100% {
    transform: translateY(370%);
    opacity: 0;
  }
}
@keyframes avatarSignal {
  0%,
  15%,
  80%,
  100% {
    opacity: 0.75;
  }
  40%,
  60% {
    opacity: 0.25;
  }
}
#socials a,
#socials button {
  background: rgba(38, 31, 23, 0.07);
  border-color: rgba(38, 31, 23, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #ffffff25;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
#socials a:hover,
#socials button:hover,
#socials a:focus-visible,
#socials button:focus-visible {
  background: #7ddc4a26;
  border-color: #3f9a3a88;
  transform: translateY(-3px);
}
#tab {
  display: none;
}
@media (max-width: 767px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  #tab {
    display: flex;
    right: 0;
    top: 46%;
    width: clamp(28px, 8vw, 42px);
    height: clamp(150px, 25dvh, 210px);
    padding: 18px 0 18px 5px;
  }
  #tab svg {
    width: clamp(14px, 4vw, 20px);
    height: clamp(14px, 4vw, 20px);
  }
}

/* My Story: hide the profile and lightning replay pill while the overlay is open.
   The control automatically returns when the visitor uses BACK. */
.zoom #dev[data-s="story"] #pill {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s 0.2s;
}

/* Project collection: scene targets and an accessible, scrollable case-study panel. */
.zoom #dev[data-s="proj"] #pill,
.zoom #dev[data-s="proj"] #tab,
.zoom #dev[data-s="proj"] #bar {
  display: none;
}
#dev[data-s="proj"] #az {
  top: 80px;
  font-size: 12px;
}
#dev[data-s="proj"] #tg,
#dev[data-s="proj"] #an {
  display: none;
}
#project-panel {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  top: 80px;
  bottom: 24px;
  width: min(440px, 42vw);
  padding: clamp(20px, 3vw, 34px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #f9f6faeb;
  backdrop-filter: blur(18px);
  border: 1px solid #261f1726;
  border-radius: 24px;
  box-shadow: 0 16px 60px #261f171a;
}
#project-panel .eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--moss);
}
#project-panel h2 {
  font: 900 clamp(32px, 4vw, 52px)/1 var(--dot);
  margin: 14px 0 20px;
}
#project-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 24px;
}
#project-tabs button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #261f1744;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
#project-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
}
#project-panel h3 {
  font: 900 28px/1.1 var(--dot);
  margin: 10px 0 12px;
}
#project-panel #project-status {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 9px;
  border: 1px solid #3f9a3a66;
  border-radius: 6px;
  color: #296a24;
  background: #7ddc4a20;
  font-size: 9px;
  letter-spacing: 0.075em;
  font-weight: 500;
}
#project-panel p {
  line-height: 1.7;
}
#project-panel dl {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;
  border-top: 1px solid #261f1722;
  padding-top: 18px;
}
#project-panel dt {
  opacity: 0.55;
}
#project-panel dd {
  margin: 0;
}
#project-visual {
  height: 140px;
  border-radius: 14px;
  background:
    radial-gradient(circle, #3f9a3a88 1px, transparent 2px) 0 0/12px 12px,
    #261f17;
  display: grid;
  place-items: center;
  color: var(--lime);
  font: 900 42px var(--dot);
  overflow: hidden;
}
#project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
#project-links a {
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  text-decoration: none;
}
#project-links:empty {
  display: none;
}
#project-panel .placeholder-note {
  margin-top: 18px;
  font-size: 10px;
  opacity: 0.6;
}
#dev[data-s="proj"] .rt[data-p="1"] {
  left: 15% !important;
  top: 45% !important;
}
#dev[data-s="proj"] .rt[data-p="2"] {
  left: 32% !important;
  top: 56% !important;
}
#dev[data-s="proj"] .rt[data-p="3"] {
  left: 45% !important;
  top: 44% !important;
}
.rt[aria-pressed="true"] {
  color: var(--lime);
}
.rt[aria-pressed="true"] i {
  border-color: var(--lime);
}
@media (max-width: 700px) {
  #project-panel {
    top: 35%;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    padding: 20px;
    border-radius: 20px;
  }
  #project-panel h2 {
    font-size: 32px;
    margin: 8px 0;
  }
  #project-visual {
    height: 100px;
  }
  #dev[data-s="proj"] .rt[data-p="1"] {
    left: 30% !important;
    top: 25% !important;
  }
  #dev[data-s="proj"] .rt[data-p="2"] {
    left: 55% !important;
    top: 23% !important;
  }
  #dev[data-s="proj"] .rt[data-p="3"] {
    left: 80% !important;
    top: 26% !important;
  }
  #dev[data-s="proj"] #dn {
    display: none;
  }
  #dev[data-s="proj"] #az {
    font-size: 9px;
  }
}

#dev[data-s="cam"] #cg {
  display: none;
}
#dev[data-s="cam"] #cf {
  background: #dcdbcc;
}
.zoom #dev[data-s="contact"] #pill,
.zoom #dev[data-s="contact"] #tab,
.zoom #dev[data-s="contact"] #bar {
  display: none;
}
[data-screen="contact"] {
  max-width: 800px;
  padding-top: 90px;
  padding-bottom: 50px;
}
[data-screen="contact"] .contact-title {
  font: 900 clamp(40px, 9vw, 72px)/1 var(--dot);
  margin-bottom: 18px;
}
[data-screen="contact"] .contact-sub {
  color: #c3b8b2;
  margin-bottom: 32px;
}
[data-screen="contact"] .contact-form {
  display: grid;
  gap: 22px;
}
[data-screen="contact"] .field {
  display: grid;
  gap: 8px;
}
[data-screen="contact"] .name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
[data-screen="contact"] .field-half {
  display: grid;
  gap: 8px;
  min-width: 0;
}
[data-screen="contact"] .field-sublabel,
[data-screen="contact"] .req {
  color: #c3b8b2;
}
.req {
  margin-left: 8px;
}
[data-screen="contact"] input,
[data-screen="contact"] textarea {
  width: 100%;
  min-width: 0;
  background: #ffffff09;
  border: 1px solid #c3b8b266;
  border-radius: 10px;
  padding: 14px;
  color: #f9f6fa;
  font: 16px var(--mono);
}
[data-screen="contact"] textarea {
  min-height: 160px;
  resize: vertical;
}
[data-screen="contact"] input:focus,
[data-screen="contact"] textarea:focus {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
[data-screen="contact"] .hp-field {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}
[data-screen="contact"] .submit-btn {
  justify-self: start;
  min-height: 48px;
  padding: 12px 32px;
  border: 1px solid var(--lime);
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
[data-screen="contact"] .submit-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
[data-screen="contact"] .form-status {
  min-height: 24px;
}
.form-status.success {
  color: #7ddc7d;
}
.form-status.error {
  color: #ffaaaa;
}

/* Wide landscape: use the outer left area while preserving central portals. */
@media (min-width: 1000px) and (orientation: landscape) {
  #col .l {
    transform: translateX(clamp(-360px, calc(-18vw + 85px), -70px));
    padding-left: 0;
    font-size: clamp(17px, 1.45vw, 28px);
  }
  #col .tm {
    font-size: clamp(42px, 3.8vw, 74px);
  }
  #gl {
    width: clamp(46px, 4vw, 78px);
    height: clamp(46px, 4vw, 78px);
  }
}
/* A muted olive aperture complements the warm neutral landing page. */
.o-cam {
  background: #d4d3c5;
  display: grid;
  place-items: center;
}
.o-cam::before,
.o-cam::after {
  display: none;
}
.aperture {
  width: 76%;
  height: 76%;
  overflow: visible;
}
.aperture-rim {
  fill: #353b30;
  stroke: #eeeade;
  stroke-width: 1.5;
}
.aperture-blades {
  fill: #626a55;
  stroke: #eeeade;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.o-cam.shutter-active .aperture {
  animation: shutter-turn 480ms ease-in-out;
}
@keyframes shutter-turn {
  0%,
  100% {
    transform: rotate(0deg);
  }
  48% {
    transform: rotate(18deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .o-cam.shutter-active .aperture {
    animation: none;
  }
}

/* One compact introduction, without the old timeline's empty scroll space. */
[data-screen="story"] article p {
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 20px;
  max-width: 58ch;
}
[data-screen="story"] article {
  min-height: 0;
  padding-bottom: 32px;
}
