*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

html, body, main, section, header, p, h1, h2, h3, h4, a, li, span, div {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root{
  --bg: #0c0d10;
  --fg: #e8ecf1;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: clamp(24px, 3vw, 32px);

  --welcome-fg:#f3f4f6;
  --accent-home:#ffbe10;

  --p1-bg:#0a0e12;
  --p1-fg:#e7edf4;
  --p1-soft:#a9b6c6;
  --p1-line:#1b2230;

  --dot: rgba(255,255,255,.45);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Inter, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  color: var(--fg);
  background: var(--bg);
}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  background:#111;
  color:#fff;
  padding:8px 12px;
  border-radius:10px;
}
.skip:focus{
  left:12px;
  top:12px;
  z-index:1000;
}

/* Language switch */
.lang-switch{
  position: fixed;
  top: 16px;
  right: 64px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.6);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
}

.lang-btn{
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.lang-btn:hover{ transform: translateY(-1px); }

.lang-btn.is-active{
  background: var(--accent-home);
  color: #111827;
  box-shadow: 0 0 0 1px rgba(15,23,42,.2), 0 4px 16px rgba(0,0,0,.4);
}

.snap{
  height:100vh;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  outline:none;
  overscroll-behavior-y: contain;
}

.screen{
  min-height:100vh;
  scroll-snap-align:start;
  scroll-snap-stop: always;
  position:relative;
  padding: var(--space-6);
  display:grid;
  place-items:center;
}

.inner{
  width:min(1200px, 92vw);
  margin-inline:auto;
}

.screen::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(1200px 900px at 50% 20%, rgba(255,255,255,.06), transparent 60%);
  mix-blend-mode: soft-light;
}

/* HOME background video */
.welcome{
  position: relative;
  color: var(--welcome-fg);
  background: #05070b;
  overflow: hidden;
  display: block;
}

.welcome-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(1.1);
  z-index: 0;
}

.welcome::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(90% 70% at 50% 0%, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.welcome::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(4,5,9,0.9) 0%,
    rgba(4,5,9,0.8) 18%,
    rgba(4,5,9,0.5) 36%,
    transparent 65%
  );
  mix-blend-mode: normal;
}

.home-inner{
  position: relative;
  z-index: 3;
  min-height: calc(100vh - 2 * var(--space-6));
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.home-hero{
  width: 100%;
  max-width: 980px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-tag{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(243,244,246,.70);
  margin: 0 0 12px;
}

.home-title{
  margin: 0 0 10px;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1.03;
  font-weight: 1000;
  letter-spacing: .08em;
  color: var(--welcome-fg);
  text-shadow: 0 12px 40px rgba(0,0,0,.7);
}

.home-subline{
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(209,213,219,.95);
}

.home-handle{
  font-weight: 1000;
  color: var(--accent-home);
}

.home-sub-sep{ opacity: .6; }
.home-role{ font-weight: 500; }

/* Home contact pills */
.home-contact{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(780px, 92vw);
}

.contact-pill{
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.55);
  border-radius: 999px;
  padding: 10px 12px;
  text-decoration: none;
  color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

button.contact-pill{
  font: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.contact-pill:hover,
.contact-pill:focus-visible{
  transform: translateY(-1px);
  border-color: rgba(148,163,184,.45);
  background: rgba(15,23,42,.72);
  outline: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
}

.pill-k{
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(229,231,235,.9);
  white-space: nowrap;
}

.pill-v{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  color: rgba(229,231,235,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-pill.is-copied .pill-v::after{
  content: "  ✓";
  opacity: .9;
}

.home-hero-bio{
  margin: 34px 0 0;
  padding-top: 18px;
  max-width: 860px;
  font-size: clamp(18px, 1.85vw, 22px);
  line-height: 1.85;
  color: rgba(229,231,235,.95);
  text-align: center;
  text-align-last: center;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* Home projects list */
.home-projects{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  width: 100%;
  margin-top: 0;
}

.home-projects-label{
  max-width: min(1200px, 92vw);
  margin: 0 auto 6px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(243,244,246,.65);
}

.home-projects-row{
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-2);
}

.home-proj-mini{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(15,23,42,.8);
  color: var(--welcome-fg);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease, color .15s ease;
}

.home-proj-mini:hover,
.home-proj-mini:focus-visible{
  background: rgba(15,23,42,.95);
  transform: translateY(-1px);
  outline: none;
}

.home-proj-thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #020617;
}
.home-proj-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-proj-info{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-proj-name{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-proj-role{
  font-size: 12px;
  color: rgba(209,213,219,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-proj-genre{
  font-size: 11px;
  color: rgba(209,213,219,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Projects */
.project.p1{
  background: var(--p1-bg);
  color: var(--p1-fg);
  position:relative;
  overflow:hidden;
}

.project .bg-img{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-blend-mode: multiply, multiply, normal;
  transform: scale(1.02);
  transition: transform .12s ease-out;
}

#project-1 .bg-img{
  background-image:
    linear-gradient(115deg, rgba(6,8,12,0.52) 0%, rgba(6,8,12,0.30) 45%, rgba(6,8,12,0.58) 100%),
    radial-gradient(80% 60% at 15% 15%, rgba(5,7,10,0.40), rgba(5,7,10,0.58) 60%, rgba(5,7,10,0.70) 90%),
    url("images/bg_project1.png");
}
#project-2 .bg-img{
  background-image:
    linear-gradient(115deg, rgba(6,8,12,0.52) 0%, rgba(6,8,12,0.30) 45%, rgba(6,8,12,0.58) 100%),
    radial-gradient(80% 60% at 15% 15%, rgba(5,7,10,0.40), rgba(5,7,10,0.58) 60%, rgba(5,7,10,0.70) 90%),
    url("images/bg_project2.png");
}
#project-3 .bg-img{
  background-image:
    linear-gradient(115deg, rgba(6,8,12,0.52) 0%, rgba(6,8,12,0.30) 45%, rgba(6,8,12,0.58) 100%),
    radial-gradient(80% 60% at 15% 15%, rgba(5,7,10,0.40), rgba(5,7,10,0.58) 60%, rgba(5,7,10,0.70) 90%),
    url("images/bg_project3.png");
}
#project-4 .bg-img{
  background-image:
    linear-gradient(115deg, rgba(6,8,12,0.52) 0%, rgba(6,8,12,0.30) 45%, rgba(6,8,12,0.58) 100%),
    radial-gradient(80% 60% at 15% 15%, rgba(5,7,10,0.40), rgba(5,7,10,0.58) 60%, rgba(5,7,10,0.70) 90%),
    url("images/bg_project4.png");
}

.p1 .p1-head{
  position: relative;
  z-index:1;
  margin-bottom: var(--space-5);
}
.p1 .head-left{
  width: calc((100% - var(--space-6)) * (1.65 / 2.65));
  max-width: 100%;
}
.p1 .p1-eyebrow{ color: var(--p1-soft); }

.proj-year{
  opacity: .7;
  font-weight: 700;
  letter-spacing: .05em;
  margin-left: 0.4em;
  color: var(--p1-soft);
  font-size: 0.85em;
}

.p1 .p1-title{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(38px, 7.2vw, 84px);
  line-height: 1;
  margin: .05rem 0 .15rem;
  font-weight: 900;
  letter-spacing:.01em;
}

.p1 .project-desc{
  margin: var(--space-2) 0 0;
  max-width: none;
  color: var(--p1-soft);
  font-size: clamp(15px, 2.1vw, 18px);
  line-height: 1.5;
}

.p1 .p1-layout{
  position: relative;
  z-index:1;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.p1 .p1-media{
  display:grid;
  gap: var(--space-3);
  align-content: start;
}

/* Genres */
.project-genres{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.genre-label{
  color: var(--p1-soft);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 1000;
}
.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--p1-line);
  color: var(--p1-fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* Videos */
.p1-video-wrap{ position: relative; width: 100%; }
.p1 .p1-video{
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid var(--p1-line);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  object-fit: cover;
}

.mute-btn{
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.5);
  background: rgba(0,0,0,.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mute-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
  background: rgba(0,0,0,.75);
}

/* Thumbs grid */
.p1 .p1-thumbs{
  display:grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g-item{
  display:block;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  border-radius: 10px;
  overflow:hidden;
  position:relative;
  border: 1px solid var(--p1-line);
  aspect-ratio: 16 / 10;
}
.g-item::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.12);
  opacity:.7;
}
.g-item img{
  position: relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform .25s ease, filter .25s ease;
}
#project-2 .g-item:hover img,
#project-3 .g-item:hover img,
#project-4 .g-item:hover img{
  transform: scale(1.04);
  filter: brightness(.96);
}

/* Progress thumbs */
.p1-progress{ display: grid; gap: 10px; }
.progress-title{
  margin: 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 1000;
  color: rgba(229,231,235,.78);
}
.p1-thumbs--progress .g-item{ cursor: pointer; }
.progress-swap{ --thumb: none; }

.progress-swap .ps-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 1;
  transition: opacity .45s ease;
}
.progress-swap .ps-img--after{ opacity: 0; }
.progress-swap.is-after .ps-img--after{ opacity: 1; }
.progress-swap.is-after .ps-img--before{ opacity: 0; }

.ps-label{
  position: absolute;
  top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.ps-label--before{ left: 10px; }
.ps-label--after{ right: 10px; }

.progress-swap.is-after .ps-label--before{ opacity: .55; }
.progress-swap.is-after .ps-label--after{ opacity: 1; }
.progress-swap:not(.is-after) .ps-label--before{ opacity: 1; }
.progress-swap:not(.is-after) .ps-label--after{ opacity: .55; }

.ps-badge{
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .10em;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.ps-bar{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  z-index: 3;
}
.ps-fill{
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(164,255,0,.95);
  box-shadow: 0 0 20px rgba(164,255,0,.35);
  border-radius: 999px;
  animation: psFill 3000ms linear forwards;
}
@keyframes psFill{
  from{ width: 0%; }
  to{ width: 100%; }
}

/* Aside */
.p1-aside{
  display:grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-4);
  align-content: stretch;
}
#project-3 .p1-aside{ grid-template-rows: 1fr; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius: 12px;
  font-weight:800;
  text-decoration:none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.btn-cta{
  width:100%;
  background: #A4FF00;
  color:#061102;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 8px 32px rgba(164,255,0,.25);
}
.btn-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 38px rgba(164,255,0,.33);
}
.btn-cta--itch{
  width:100%;
  background:#ffe300;
  color:#0a0e12;
  border:1px solid rgba(0,0,0,.25);
  box-shadow:0 8px 32px rgba(255,227,0,.25);
}
.btn-cta--itch:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 38px rgba(255,227,0,.35);
}
#project-4 .btn-cta{
  background: #ffb800;
  color: #0a0e12;
  box-shadow: 0 8px 32px rgba(255,184,0,.25);
}
#project-4 .btn-cta:hover{
  box-shadow: 0 10px 38px rgba(255,184,0,.33);
}

/* Role panel */
.role{
  border-radius: 10px;
  border: 1px solid var(--p1-line);
  background: rgba(255,255,255,.02);
  color: var(--p1-fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.role--panel{
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  gap: var(--space-3);
}
.role-header{ display:grid; gap: var(--space-2); }
.role-title{
  margin:0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 900;
}
.role-intro{
  margin:0;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing:.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--p1-line);
  color: var(--p1-fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.role-clarify{
  margin:0;
  color: var(--p1-soft);
  font-size: 14px;
}
.role-body{ flex: 1; display: flex; flex-direction: column; }
.role-list{ margin:0 0 0 1.1rem; padding:0; }
.role-list li{ margin:1.1rem 0; list-style: disc; font-size: 18px; }
.role-list li::marker{ color: rgba(255,255,255,.45); }

/* Dots */
.dots{
  position:fixed;
  right:20px;
  top:50%;
  translate:0 -50%;
  display:flex;
  flex-direction:column;
  gap:14px;
  z-index:10;
}
.dots a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
}
.dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background: var(--dot);
  opacity: .55;
  transition: transform .22s cubic-bezier(0.19, 1, 0.22, 1), background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.dots a:hover .dot{ transform: scale(1.3); opacity: 0.9; }
.dots a[aria-current="true"] .dot{ transform: scale(1.9); opacity: 1; }

.dots a[aria-current="true"][data-section="home"] .dot{
  background: #ffbe10;
  box-shadow: 0 0 0 6px rgba(255,190,16,.35);
}
.dots a[aria-current="true"][data-section="project-1"] .dot{
  background: #A4FF00;
  box-shadow: 0 0 0 6px rgba(164,255,0,.35);
}
.dots a[aria-current="true"][data-section="project-2"] .dot{
  background: #ffe300;
  box-shadow: 0 0 0 6px rgba(255,227,0,.35);
}
.dots a[aria-current="true"][data-section="project-3"] .dot{
  background: #ff4da6;
  box-shadow: 0 0 0 6px rgba(255,77,166,.35);
}
.dots a[aria-current="true"][data-section="project-4"] .dot{
  background: #ffb800;
  box-shadow: 0 0 0 6px rgba(255,184,0,.35);
}
.dots a[aria-current="true"][data-section="contact"] .dot{
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}

.signature{
  position:fixed;
  left:16px;
  bottom:12px;
  z-index:10;
  font-size:12px;
  opacity:.85;
  mix-blend-mode:difference;
  color:#fff;
}

/* Lightbox */
.lightbox[hidden]{ display:none; }
.lightbox{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  background: rgba(4,6,10,.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}
.lightbox.open{ opacity: 1; transform: scale(1); }

.lb-figure{ margin:0; max-width:min(92vw, 1400px); position: relative; }

.lb-img{
  width:100%;
  max-height: 84vh;
  height:auto;
  display:block;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(0,0,0,.4);
}

.lb-compare{
  --pos: 50%;
  display: none;
  position: relative;
  width: min(92vw, 1400px);
  aspect-ratio: 16 / 10;
  max-height: 84vh;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.4);
}

.lb-cimg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* AFTER reveals from left towards --pos */
.lb-cimg--after{
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.lb-c-line{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35);
}

.lb-compare-range{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor: ew-resize;
}

.lb-close,
.lb-prev,
.lb-next{
  position:absolute;
  border:0;
  background: rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:24px;
  transition: transform .15s ease, background-color .15s ease;
}
.lb-close{ top:18px; right:18px; }
.lb-prev{ left:18px; top:50%; translate:0 -50%; font-size:28px; }
.lb-next{ right:18px; top:50%; translate:0 -50%; font-size:28px; }

/* Contact */
.contact-screen{
  position: relative;
  overflow: hidden;
  background: #060812;
  color: #eef2f7;
}

.contact-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(255,190,16,.12), transparent 60%),
    radial-gradient(850px 560px at 78% 74%, rgba(164,255,0,.10), transparent 60%),
    radial-gradient(520px 520px at 55% 45%, rgba(255,255,255,.06), transparent 62%),
    linear-gradient(115deg, rgba(6,8,18,.85), rgba(6,8,18,.75));
}

.contact-center{
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  min-height: calc(100vh - 2 * var(--space-6));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding-bottom: 18px;
}

.contact-center-head{ text-align: center; }

.contact-center-title{
  margin: 0 0 8px;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 1.02;
  font-weight: 1100;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 18px 60px rgba(0,0,0,.55);
}

.contact-center-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.contact-block{
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.55);
  border-radius: 18px;
  padding: 18px 16px;
  text-decoration: none;
  color: #f3f4f6;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

button.contact-block{
  font: inherit;
  text-align: center;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(148,163,184,.22);
}

.contact-block:hover,
.contact-block:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(148,163,184,.45);
  background: rgba(15,23,42,.70);
  outline: none;
  box-shadow: 0 18px 56px rgba(0,0,0,.50);
}

.contact-block-k{
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(229,231,235,.85);
}

.contact-block-v{
  font-size: 18px;
  font-weight: 1100;
  letter-spacing: .01em;
  opacity: .98;
}

.contact-block.is-copied .contact-block-v::after{
  content: "  ✓";
  opacity: .9;
}

.contact-center-back{
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  text-decoration: none;
  color: rgba(229,231,235,.95);
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,.45);
  border: 1px solid rgba(148,163,184,.22);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.contact-center-back:hover,
.contact-center-back:focus-visible{
  transform: translateY(-1px);
  background: rgba(15,23,42,.68);
  border-color: rgba(148,163,184,.45);
  outline: none;
}

/* Responsive */
@media (max-width: 980px){
  .contact-center-grid{
    grid-template-columns: 1fr;
    width: min(560px, 92vw);
  }
  .contact-center{
    align-content: start;
    padding-top: 48px;
    padding-bottom: 72px;
  }
  .contact-center-back{
    position: static;
    translate: 0 0;
    margin-top: 10px;
  }
  .home-contact{
    grid-template-columns: 1fr;
    width: min(520px, 92vw);
  }
}

/* Low height fallback */
@media (max-height: 720px){
  .home-inner{
    justify-content: flex-start;
    padding-top: 32px;
    padding-bottom: 80px;
  }
  .home-projects{
    position: static;
    margin-top: 32px;
  }
}

/* Mobile blocker */
.mobile-blocker{ display: none; }
@media (max-width: 900px){
  .mobile-blocker{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #05070b;
    color: #f9fafb;
    z-index: 9999;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line;
  }

  .snap,
  .lang-switch,
  .dots,
  .signature{
    display: none !important;
  }
}

/* Laptop height tuning */
@media (max-height: 900px){
  :root{ --space-6: 18px; }
  .screen{ padding: 18px; }

  .home-hero{ margin-bottom: 6%; }
  .home-title{ font-size: clamp(34px, 4.8vw, 58px); }
  .home-subline{ font-size: 14px; gap: 8px; }
  .home-contact{ margin-top: 10px; gap: 8px; }
  .contact-pill{ padding: 8px 10px; }
  .pill-k{ font-size: 10px; }
  .pill-v{ font-size: 11px; }

  .home-hero-bio{
    margin-top: 16px;
    padding-top: 10px;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.6;
  }

  .home-projects{ bottom: 8px; }
  .home-projects-label{ margin-bottom: 4px; font-size: 10px; }
  .home-proj-mini{ padding: 6px 8px; gap: 5px; }
  .home-proj-thumb{ aspect-ratio: 16 / 10; }
  .home-proj-name{ font-size: 11px; }
  .home-proj-role{ font-size: 10px; }
  .home-proj-genre{ font-size: 10px; }

  .p1 .p1-head{ margin-bottom: 10px; }
  .p1 .p1-title{ font-size: clamp(28px, 4.9vw, 56px); }
  .p1 .project-desc{
    margin-top: 6px;
    font-size: clamp(12px, 1.45vw, 15px);
    line-height: 1.4;
  }

  .project-genres{ margin-top: 8px; gap: 6px; }
  .genre-label{ font-size: 10px; }
  .chip{ padding: 4px 8px; font-size: 10px; }

  .p1 .p1-layout{ gap: 14px; }
  .p1 .p1-media{ gap: 10px; }

  .role--panel{ padding: 12px; gap: 10px; }
  .role-title{ font-size: clamp(15px, 2.0vw, 18px); }
  .badge{ font-size: 10px; padding: 4px 8px; }
  .role-clarify{ font-size: 12px; }

  .role-list li{
    font-size: 14px;
    margin: .55rem 0;
  }

  .progress-title{ font-size: 10px; }
  .ps-label{ top: 8px; padding: 4px 8px; font-size: 10px; }
  .ps-badge{ bottom: 10px; left: 10px; padding: 4px 8px; font-size: 11px; }
}

@media (max-height: 840px){
  .screen{ padding: 16px; }
  .home-hero{ margin-bottom: 5%; }
  .role-list{ margin-left: 1rem; }
  .role-list li{ font-size: 13px; margin: .45rem 0; }
  .p1 .p1-title{ font-size: clamp(26px, 4.7vw, 52px); }
  .p1 .p1-layout{ gap: 12px; }
}

@media (max-width: 1280px){
  .inner{ width: min(1120px, 92vw); }
  .p1 .p1-layout{ grid-template-columns: 1.35fr 1fr; }
  .p1 .head-left{ width: 100%; }
}

@media (max-width: 1100px){
  .p1 .p1-layout{ grid-template-columns: 1fr; }
  .p1-aside{ grid-template-rows: auto auto; }
}
