@font-face {
  font-family: "Comic Cat";
  src: url("assets/Comic_CAT.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #b8b181;
  --ink: #242115;
  --font-main: "Comic Cat", "Comic Sans MS", "Trebuchet MS", sans-serif;
  --main-bg-left: 274px;
  --cursor-normal: url("assets/real-hands-normal.cur"), auto;
  --cursor-pointer: url("assets/real-hands-pointer.cur"), pointer;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  position: relative;
  width: 100vw;
  height: 100dvh;
  font-family: var(--font-main);
  background: var(--bg);
  cursor: var(--cursor-normal);
}

a,
button,
label,
.project-preview-link,
.cat-zone,
.project-preview-frame-empty {
  cursor: var(--cursor-pointer);
}

input,
textarea {
  cursor: var(--cursor-pointer);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.46'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: 0.18;
}

body::after {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--main-bg-left);
  z-index: 0;
  content: "";
  background-image: url("assets/bitmap.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

.telephone-pole {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  display: block;
  width: calc(100dvh * 0.432);
  height: 100dvh;
  min-height: 100dvh;
  overflow: visible;
  pointer-events: auto;
}

.telephone-pole img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}

.telephone-pole img:not([data-frame="1"]) {
  opacity: 0;
}

.telephone-pole[data-phone-state="2"] img[data-frame="1"],
.telephone-pole[data-phone-state="3"] img[data-frame="1"] {
  opacity: 0;
}

.telephone-pole[data-phone-state="2"] img[data-frame="2"],
.telephone-pole[data-phone-state="3"] img[data-frame="3"] {
  opacity: 1;
}

.phone-vibration {
  z-index: 4;
  opacity: 0;
  clip-path: inset(42% 11% 28% 29%);
}

.phone-rings {
  position: absolute;
  top: 37%;
  right: 58%;
  z-index: 7;
  display: grid;
  gap: 0.08rem;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.9rem;
  line-height: 1;
  text-transform: lowercase;
  text-shadow: 1px 1px 0 rgba(196, 189, 141, 0.62);
  transform: rotate(-6deg);
  pointer-events: none;
}

.phone-rings span {
  display: block;
  animation: ringTextVibrate 170ms steps(2, end) infinite;
}

.phone-rings span:nth-child(2) {
  margin-left: 0.75rem;
  animation-delay: 54ms;
}

.phone-rings span:nth-child(3) {
  margin-left: 1.35rem;
  animation-delay: 108ms;
}

.telephone-pole:not([data-phone-interacting]):not([data-contact-active]):not([data-ringing-dismissed]) .phone-vibration {
  opacity: 0.72;
  animation: phoneVibrate 120ms steps(2, end) infinite;
}

.telephone-pole[data-phone-interacting] .phone-rings,
.telephone-pole[data-contact-active] .phone-rings,
.telephone-pole[data-ringing-dismissed] .phone-rings {
  opacity: 0;
}

.telephone-pole[data-contact-active] .phone-contact-text {
  opacity: 0;
  animation: none;
}

@keyframes phoneVibrate {
  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2px, 1px) rotate(-0.25deg);
  }

  50% {
    transform: translate(2px, -1px) rotate(0.25deg);
  }

  75% {
    transform: translate(1px, 2px) rotate(-0.18deg);
  }
}

@keyframes ringTextVibrate {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(1px, -1px);
  }
}

.phone-contact-text {
  position: absolute;
  top: 34%;
  right: 68%;
  z-index: 5;
  display: inline-block;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 1.15rem;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  text-transform: lowercase;
  text-shadow: 1px 1px 0 rgba(196, 189, 141, 0.62);
  transform: translateY(-50%) rotate(-5deg);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

.phone-contact-trigger {
  position: absolute;
  top: 39%;
  right: 0;
  bottom: 23%;
  left: 32%;
  z-index: 6;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor-pointer);
}

.phone-contact-trigger:focus-visible {
  outline: 2px dotted var(--ink);
  outline-offset: -8px;
}

.telephone-pole[data-contact-mode="write"] .phone-contact-text {
  opacity: 1;
  animation: writeContact 720ms steps(10, end) forwards;
}

.telephone-pole[data-contact-mode="erase"] .phone-contact-text {
  opacity: 1;
  animation: eraseContact 220ms steps(10, end) forwards;
}

@keyframes writeContact {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes eraseContact {
  from {
    clip-path: inset(0 0 0 0);
  }

  to {
    clip-path: inset(0 100% 0 0);
  }
}

.profile-divider {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 272px;
  z-index: 1;
  width: 2px;
  background: rgba(36, 33, 21, 0.28);
  box-shadow:
    1px 0 0 rgba(255, 255, 255, 0.12),
    -1px 0 0 rgba(36, 33, 21, 0.08);
  pointer-events: none;
}

.profile-card {
  position: fixed;
  top: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 1;
  width: min(220px, calc(100vw - 32px));
  margin: 0;
  text-align: center;
}

.profile-avatar {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  outline: none;
}

.profile-avatar:focus-visible {
  outline: 2px dotted var(--ink);
  outline-offset: 6px;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.92;
  filter: saturate(0.9) contrast(1.08) brightness(0.98) drop-shadow(0 8px 12px rgba(42, 37, 20, 0.12));
  transition: opacity 1ms linear;
}

.profile-avatar img[data-frame="half"],
.profile-avatar img[data-frame="closed"],
.profile-avatar[data-blink-state="half"] img[data-frame="open"],
.profile-avatar[data-blink-state="closed"] img[data-frame="open"] {
  opacity: 0;
}

.profile-avatar[data-blink-state="half"] img[data-frame="half"],
.profile-avatar[data-blink-state="closed"] img[data-frame="closed"] {
  opacity: 0.92;
}

.profile-card h1 {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: lowercase;
}

.profile-bio,
.profile-interests {
  margin-top: 1.1rem;
  color: var(--ink);
  font-family: var(--font-main);
  text-align: left;
  text-transform: lowercase;
}

.profile-bio h2,
.profile-interests h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.1;
}

.profile-bio p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.24;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

.section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 1rem auto 0.9rem;
  background: rgba(36, 33, 21, 0.46);
}

.profile-interests ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-interests li {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.18;
}

.profile-interests li::before {
  content: "- ";
}

.cat-zone {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 168px;
  height: 104px;
}

.profile-cat {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
  mix-blend-mode: multiply;
  filter: saturate(0.86) contrast(1.04) brightness(0.96);
  pointer-events: none;
}

.petting-hand {
  position: absolute;
  left: 82px;
  bottom: 60px;
  z-index: 2;
  display: block;
  width: 52px;
  height: auto;
  opacity: 0;
  transform: rotate(-11deg);
  transform-origin: 18% 52%;
  filter: saturate(0.9) contrast(1.05) brightness(0.98) drop-shadow(0 2px 2px rgba(36, 33, 21, 0.16));
  transition: opacity 90ms ease;
  pointer-events: none;
}

.cat-zone:hover .petting-hand,
.cat-zone:focus-within .petting-hand {
  opacity: 0.96;
}

.cat-callout {
  position: absolute;
  left: 126px;
  bottom: 66px;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.9rem;
  line-height: 1;
  text-transform: lowercase;
  transform: rotate(4deg);
  pointer-events: none;
}

.social-link {
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.1;
  text-align: left;
  text-transform: lowercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.social-link:hover {
  text-decoration-thickness: 2px;
}

.projects-section {
  position: fixed;
  top: 42px;
  bottom: 50dvh;
  left: 314px;
  right: 42px;
  z-index: 1;
  display: grid;
  align-content: start;
}

.products-section {
  position: fixed;
  top: 50dvh;
  bottom: 42px;
  left: 314px;
  right: 42px;
  z-index: 1;
  display: grid;
  align-content: start;
  padding-top: 34px;
}

.projects-section h2,
.products-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: clamp(3rem, 6.6vw, min(6.1rem, 11dvh));
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.projects-list,
.products-list {
  display: flex;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.3rem;
}

.project-card {
  width: min(340px, 32dvh, 100%);
}

.project-preview-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 698 / 504;
  background: transparent;
  overflow: hidden;
}

.project-preview-frame::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  content: "";
  background-image: url("assets/vintage-gold-frame-cropped.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.project-preview-frame:focus-within {
  outline: 2px dotted var(--ink);
  outline-offset: 5px;
}

.project-preview-frame-empty {
  opacity: 0.96;
}

.project-preview-frame-empty::before {
  position: absolute;
  top: 10.4%;
  right: 7.1%;
  bottom: 9.7%;
  left: 7.1%;
}

.project-preview-frame-empty::before {
  z-index: 1;
  content: "";
  background: #050403;
}

.boarded-window {
  position: absolute;
  top: 2.5%;
  right: -1.5%;
  bottom: 2%;
  left: -1.5%;
  z-index: 5;
  background-image: url("assets/woodenboards.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 112% auto;
  filter: saturate(0.86) contrast(1.08) brightness(0.78);
  pointer-events: none;
}

.project-preview-frame-empty:hover .boarded-window {
  animation: boardShake 500ms steps(2, end);
}

@keyframes boardShake {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-1px, 1px) rotate(-0.4deg);
  }

  50% {
    transform: translate(1px, -1px) rotate(0.35deg);
  }

  75% {
    transform: translate(1px, 1px) rotate(-0.25deg);
  }
}

.project-preview-inner {
  position: absolute;
  top: 10.4%;
  right: 7.1%;
  bottom: 9.7%;
  left: 7.1%;
  overflow: hidden;
  background: #16150f;
}

.project-preview {
  display: block;
  width: 393%;
  height: 393%;
  border: 0;
  background: #f5f3e8;
  overflow: hidden;
  pointer-events: none;
  transform: scale(0.2545);
  transform-origin: top left;
  transition: filter 160ms ease, opacity 160ms ease;
}

.project-description {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(0.28rem, 0.62dvh, 0.48rem) clamp(0.34rem, 0.74dvh, 0.58rem);
  color: #f1eedc;
  font-family: var(--font-main);
  font-size: clamp(0.52rem, 1.03dvh, 0.74rem);
  line-height: 1.04;
  text-align: center;
  text-align-last: center;
  word-spacing: 0;
  text-transform: lowercase;
  background: rgba(36, 33, 21, 0.84);
  opacity: 0;
  transition: opacity 160ms ease;
  text-shadow: 0 1px 1px rgba(36, 33, 21, 0.45);
  pointer-events: none;
}

.project-preview-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

.project-preview-link:focus {
  outline: none;
}

.project-preview-frame:hover .project-preview,
.project-preview-frame:focus-within .project-preview {
  filter: brightness(0.34) saturate(0.72);
}

.project-preview-frame:hover .project-description,
.project-preview-frame:focus-within .project-description {
  opacity: 1;
}

.project-card h3 {
  margin: 0.05rem 0 0;
  font-family: var(--font-main);
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-transform: lowercase;
}

.project-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.project-card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.project-card-empty h3 {
  text-transform: none;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(36, 33, 21, 0.24), rgba(36, 33, 21, 0.24)),
    rgba(184, 177, 129, 0.42);
}

.contact-overlay[hidden] {
  display: none;
}

.contact-popup {
  position: relative;
  width: min(420px, calc(100vw - 2rem));
  padding: 1.4rem 1.35rem 1.25rem;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(36, 33, 21, 0.08)),
    var(--bg);
  border: 2px solid rgba(36, 33, 21, 0.82);
  box-shadow:
    7px 7px 0 rgba(36, 33, 21, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: var(--cursor-normal);
}

.contact-popup h2 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 0.95;
  text-transform: lowercase;
}

.contact-close {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.85rem;
  text-decoration: underline;
  text-transform: lowercase;
  background: transparent;
  border: 0;
  cursor: var(--cursor-pointer);
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.95rem;
  line-height: 1;
  text-transform: lowercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.9rem;
  background: rgba(241, 238, 220, 0.7);
  border: 1px solid rgba(36, 33, 21, 0.72);
  border-radius: 0;
  outline: none;
}

.contact-form input {
  height: 2rem;
  padding: 0.3rem 0.45rem;
}

.contact-form textarea {
  min-height: 8.5rem;
  padding: 0.45rem;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(241, 238, 220, 0.88);
  box-shadow: 0 0 0 2px rgba(36, 33, 21, 0.28);
}

.contact-form button {
  justify-self: end;
  min-width: 5.25rem;
  padding: 0.32rem 0.65rem 0.24rem;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.9rem;
  text-transform: lowercase;
  background: rgba(196, 189, 141, 0.72);
  border: 1px solid rgba(36, 33, 21, 0.82);
  border-radius: 0;
  cursor: var(--cursor-pointer);
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: rgba(36, 33, 21, 0.82);
  color: #f1eedc;
}

.contact-status {
  min-height: 1rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.1;
  text-align: right;
}

@media (max-height: 880px) and (min-width: 521px) {
  .profile-card {
    top: 18px;
    bottom: 18px;
    width: 200px;
  }

  .profile-avatar {
    width: 150px;
    margin: 0 auto;
  }

  .profile-card h1 {
    margin-top: 0.18rem;
    font-size: 1.22rem;
  }

  .profile-bio,
  .profile-interests {
    margin-top: 0.68rem;
  }

  .profile-bio h2,
  .profile-interests h2 {
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
  }

  .profile-bio p,
  .profile-interests li {
    font-size: 0.75rem;
    line-height: 1.12;
  }

  .profile-bio p {
    margin-bottom: 0.45rem;
  }

  .profile-interests li {
    margin-bottom: 0.12rem;
  }

  .section-divider {
    margin: 0.55rem auto 0.5rem;
  }

  .cat-zone {
    bottom: 30px;
    width: 112px;
    height: 70px;
  }

  .petting-hand {
    left: 54px;
    bottom: 42px;
    width: 36px;
  }

  .cat-callout {
    left: 84px;
    bottom: 48px;
    font-size: 0.68rem;
  }

  .social-link {
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) and (min-width: 521px) {
  .telephone-pole {
    right: -42px;
    z-index: 2;
    width: calc(100dvh * 0.18);
    opacity: 0.7;
    pointer-events: none;
  }

  .phone-contact-trigger {
    right: 14%;
    left: 22%;
    pointer-events: auto;
  }

  .phone-contact-text {
    display: none;
  }

  .project-description {
    padding: 0.2rem 0.24rem;
    font-size: 0.46rem;
    line-height: 1;
    word-spacing: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --compact-profile-width: clamp(118px, calc(30.56vw - 40.9px), 173px);
    --compact-divider-left: calc(var(--compact-profile-width) + 30px);
    --compact-content-left: calc(var(--compact-profile-width) + 46px);
    --main-bg-left: calc(var(--compact-divider-left) + 2px);
  }

  .profile-divider {
    left: var(--compact-divider-left);
  }

  .profile-card {
    top: 12px;
    bottom: 18px;
    left: 12px;
    width: var(--compact-profile-width);
  }

  .profile-avatar {
    width: min(calc(var(--compact-profile-width) - 6px), 150px);
    margin: 0 auto;
  }

  .profile-card h1 {
    margin-top: 0.18rem;
    font-size: clamp(1.05rem, 3.3vw, 1.28rem);
  }

  .profile-bio,
  .profile-interests {
    margin-top: clamp(0.62rem, 1.4vw, 0.78rem);
  }

  .profile-bio h2,
  .profile-interests h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(0.82rem, 2.2vw, 0.92rem);
  }

  .profile-bio p,
  .profile-interests li,
  .social-link {
    font-size: clamp(0.72rem, 1.9vw, 0.8rem);
    line-height: 1.15;
  }

  .profile-bio p {
    margin-bottom: clamp(0.38rem, 1.1vw, 0.54rem);
  }

  .profile-interests li {
    margin-bottom: 0.12rem;
  }

  .section-divider {
    margin: 0.62rem auto 0.58rem;
  }

  .cat-zone {
    bottom: 26px;
    width: clamp(104px, 22vw, 128px);
    height: clamp(66px, 14vw, 80px);
  }

  .petting-hand {
    left: 48%;
    bottom: 60%;
    width: clamp(34px, 7vw, 42px);
  }

  .cat-callout {
    left: 74%;
    bottom: 68%;
    font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  }

  .projects-section {
    top: 18px;
    bottom: 50dvh;
    left: var(--compact-content-left);
    right: 8px;
  }

  .products-section {
    top: 50dvh;
    bottom: 18px;
    left: var(--compact-content-left);
    right: 8px;
    padding-top: 18px;
  }

  .projects-section h2,
  .products-section h2 {
    font-size: clamp(2rem, 8.4vw, 3.1rem);
  }

  .projects-list,
  .products-list {
    gap: 0.5rem;
    margin-top: 0.85rem;
  }

  .project-card {
    width: min(148px, calc((100vw - var(--compact-content-left) - 18px) / 2));
  }

  .project-card h3 {
    font-size: clamp(0.88rem, 2.35vw, 1.04rem);
  }

  .project-description {
    padding: 0.1rem 0.12rem;
    font-size: clamp(0.22rem, 0.78vw, 0.36rem);
    line-height: 1;
    word-spacing: 0;
  }
}

@media (max-width: 520px) {
  :root {
    --main-bg-left: 150px;
  }

  .profile-divider {
    left: 148px;
  }

  .profile-card {
    width: 118px;
    top: 12px;
    bottom: 18px;
    left: 12px;
  }

  .profile-avatar {
    width: 112px;
    margin: 0 auto;
  }

  .profile-card h1 {
    font-size: 1.05rem;
  }

  .profile-bio,
  .profile-interests {
    margin-top: 0.75rem;
  }

  .profile-bio h2,
  .profile-interests h2 {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
  }

  .profile-bio p,
  .profile-interests li,
  .social-link {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .section-divider {
    margin: 0.65rem auto 0.6rem;
  }

  .profile-cat {
    width: 100%;
  }

  .cat-zone {
    bottom: 26px;
    width: 104px;
    height: 66px;
  }

  .petting-hand {
    left: 50px;
    bottom: 40px;
    width: 34px;
  }

  .cat-callout {
    left: 76px;
    bottom: 44px;
    font-size: 0.68rem;
  }

  .projects-section {
    left: 164px;
    right: 8px;
    top: 18px;
    bottom: 50dvh;
  }

  .products-section {
    left: 164px;
    right: 8px;
    top: 50dvh;
    bottom: 18px;
    padding-top: 18px;
  }

  .projects-section h2,
  .products-section h2 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .projects-list,
  .products-list {
    gap: 0.5rem;
    margin-top: 0.85rem;
  }

  .project-card {
    width: min(104px, calc((100vw - 180px) / 2));
  }

  .project-card h3 {
    font-size: 0.88rem;
  }

  .project-description {
    padding: 0.06rem 0.08rem;
    font-size: 0.19rem;
    line-height: 1;
    word-spacing: 0;
  }

  .telephone-pole {
    z-index: 2;
    right: -55px;
    width: calc(100dvh * 0.22);
    opacity: 0.72;
    pointer-events: none;
  }

  .phone-contact-trigger {
    right: 14%;
    left: 22%;
    pointer-events: auto;
  }

  .phone-contact-text {
    right: 76%;
    font-size: 0.82rem;
  }
}

@media (orientation: portrait) and (max-width: 700px) {
  .projects-section h2,
  .products-section h2 {
    font-size: clamp(0.9rem, 4.55vw, 1.1rem);
  }

  .projects-section,
  .products-section {
    right: calc(100dvh * 0.2);
  }

  .projects-list {
    flex-direction: column;
    gap: 0.45rem;
  }

  .projects-section .project-card {
    width: min(104px, calc(100vw - var(--compact-content-left) - 12px));
  }

  .project-card h3 {
    font-size: 0.76rem;
  }

  .phone-vibration {
    clip-path: inset(38% 7% 18% 0);
  }
}

@media (pointer: coarse) and (orientation: landscape) and (max-width: 950px) and (max-height: 430px) {
  :root {
    --compact-profile-width: 118px;
    --compact-divider-left: 148px;
    --compact-content-left: 164px;
    --main-bg-left: 150px;
  }

  .profile-divider {
    left: var(--compact-divider-left);
  }

  .profile-card {
    top: 10px;
    bottom: 10px;
    left: 12px;
    width: var(--compact-profile-width);
  }

  .profile-avatar {
    width: min(66px, calc(var(--compact-profile-width) - 22px));
    margin: 0 auto;
  }

  .profile-card h1 {
    margin-top: 0.1rem;
    font-size: 0.7rem;
  }

  .profile-bio,
  .profile-interests {
    display: block;
    margin-top: 0.28rem;
  }

  .profile-bio h2,
  .profile-interests h2 {
    margin-bottom: 0.12rem;
    font-size: 0.48rem;
    line-height: 1;
  }

  .profile-bio p,
  .profile-interests li {
    font-size: 0.43rem;
    line-height: 1.02;
  }

  .profile-bio p {
    margin-bottom: 0.2rem;
  }

  .profile-interests li {
    margin-bottom: 0.02rem;
  }

  .section-divider {
    display: block;
    margin: 0.25rem auto 0.22rem;
  }

  .cat-zone {
    display: block;
    bottom: 18px;
    width: 54px;
    height: 34px;
  }

  .profile-cat {
    width: 100%;
  }

  .petting-hand {
    left: 50%;
    bottom: 60%;
    width: 20px;
  }

  .cat-callout {
    left: 72%;
    bottom: 64%;
    font-size: 0.42rem;
  }

  .social-link {
    bottom: 0;
    font-size: 0.54rem;
  }

  .projects-section,
  .products-section {
    left: var(--compact-content-left);
    right: calc(100dvh * 0.2);
  }

  .projects-section {
    top: 8px;
    bottom: 50dvh;
  }

  .products-section {
    top: 50dvh;
    bottom: 8px;
    padding-top: 6px;
  }

  .projects-section h2,
  .products-section h2 {
    font-size: clamp(1.05rem, 4.2dvh, 1.22rem);
    line-height: 0.9;
  }

  .projects-list,
  .products-list {
    gap: 0.4rem;
    margin-top: 0.35rem;
  }

  .project-card {
    width: min(82px, calc((100vw - var(--compact-content-left) - 72px) / 2));
  }

  .project-card h3 {
    margin-top: 0.02rem;
    font-size: 0.62rem;
    line-height: 1;
  }

  .project-description {
    padding: 0.04rem 0.05rem;
    font-size: 0.17rem;
    line-height: 1;
    word-spacing: 0;
  }

  .telephone-pole {
    right: -36px;
    width: calc(100dvh * 0.2);
  }

  .phone-contact-trigger {
    right: 14%;
    left: 22%;
  }

  .phone-rings {
    top: 31%;
    right: 6%;
    font-size: 0.68rem;
  }

  .phone-vibration {
    clip-path: inset(38% 7% 18% 0);
  }
}
