 :root {
  --ink: #141414;
  --muted: #777672;
  --paper: #F5F5F7;
  --orange: #ff5a16;
  --side: 31vw;
}


/* =================================
   RESET
================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Sora", Arial, sans-serif;
}

body.viewer-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}


/* =================================
   MAIN LAYOUT
================================= */

.site-shell {
  height: 100vh;

  display: grid;
  grid-template-columns: var(--side) 1fr;

  overflow: hidden;
}


/* =================================
   LEFT PANEL
================================= */

.identity-panel {
  position: relative;

  width: 100%;
  height: 100vh;

  padding: 4.9vw 3.7vw 3.4vw;

  display: flex;
  flex-direction: column;

  background: var(--paper);

  min-width: 0;
}

.identity-main {
  width: 100%;
  min-width: 0;
}


/* =================================
   PROFILE
================================= */

.profile {
  display: flex;
  align-items: center;

  gap: 16px;
}

.avatar {
  width: 50px;
  height: 50px;

  flex: 0 0 50px;

  border-radius: 11px;

  overflow: hidden;

  background: #e7e3de;

  box-shadow:
    inset 0 0 0 1px #e3e1dc;
}

.avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.profile strong {
  display: block;

  font-size: 24px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: -1.3px;
}

.profile span {
  display: block;

  margin-top: 8px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 400;

  line-height: 1.45;
}


/* =================================
   HERO
================================= */

/* =================================
   HERO MESSAGE
================================= */

.hero-message {
  margin-top: 32px;

  font-size: 40px;
  font-weight: 750;

  /*
    40px line spacing exactly.
  */
  line-height: 40px;

  letter-spacing: -2.8px;
}


/* "NEED HELP WITH" */

.hero-static {
  color: #9B9B9B;

  white-space: nowrap;

  height: 40px;

  line-height: 40px;
}


/* Rotating word container */

.hero-rotating {
  position: relative;

  width: 100%;
  height: 40px;

  overflow: hidden;

  color: #000000;
}


/* Individual words */

.hero-rotating span {
  position: absolute;

  left: 0;
  top: 0;

  display: block;

  width: max-content;

  height: 40px;

  line-height: 40px;

  opacity: 0;

  transform: translateY(40px);

  /*
    One complete cycle = 6 seconds.
    Each word gets exactly 2 seconds.
  */
  animation: heroWordLoop 6s cubic-bezier(.4, 0, .2, 1) infinite;
}


/* Word 1 */

.hero-rotating span:nth-child(1) {
  animation-delay: 0s;
}


/* Word 2 */

.hero-rotating span:nth-child(2) {
  animation-delay: 2s;
}


/* Word 3 */

.hero-rotating span:nth-child(3) {
  animation-delay: 4s;
}


/* =================================
   HERO WORD ANIMATION
================================= */

@keyframes heroWordLoop {

  /*
    ENTER
    0 → 8%
    The word comes up slowly.
  */

  0% {
    opacity: 0;

    transform: translateY(40px);
  }

  8% {
    opacity: 1;

    transform: translateY(0);
  }


  /*
    HOLD
    The word stays completely still.
  */

  8% {
    opacity: 1;

    transform: translateY(0);
  }


  25% {
    opacity: 1;

    transform: translateY(0);
  }


  /*
    EXIT
    Word moves upward and disappears.
  */

  30% {
    opacity: 0;

    transform: translateY(-40px);
  }


  /*
    IMPORTANT:
    It stays completely hidden
    until its next 6s cycle.
  */

  100% {
    opacity: 0;

    transform: translateY(-40px);
  }
}


/* =================================
   WORKED WITH
================================= */

.worked-with {
  width: 100%;
  margin-top: 48px;
  min-width: 0;
}

.worked-with-title {
  color: #9B9B9B;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.worked-with-marquee {
  width: 100%;
  height: 26px;
  margin-top: 12px;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

.worked-with-track {
  height: 26px;
  width: max-content;
  display: flex;
  align-items: center;
  will-change: transform;
  animation: workedWithLoop 18s linear infinite;
}

.worked-with-set {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.worked-with-logo {
  flex: 0 0 auto;
  display: block;
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.58;
}

.worked-with-mahindra {
  width: 90px;
}

.worked-with-toll {
  width: 72px;
}

.worked-with-boat {
  width: 54px;
}

.worked-with-tallect {
  width: 86px;
}

@keyframes workedWithLoop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .worked-with-track {
    animation: none;
  }
}

@keyframes workedWithLoop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .worked-with-track {
    animation: none;
  }
}


/* =================================
   CTA AREA
================================= */

.actions {
  margin-top: 66px;

  display: grid;

  gap: 12px;
}


/* =================================
   CTA BASE
================================= */

.cta {
  position: relative;

  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
}

.cta-label {
  position: relative;

  z-index: 2;

  white-space: nowrap;
}


/* =================================
   PRIMARY CTA
================================= */

.cta-primary {
  padding: 10px 16px;

  background: linear-gradient(
    90deg,
    #FF3700 0%,
    #FF6600 100%
  );

  color: #fff;

  border-radius: 14px;

  box-shadow:
    0 0 28px rgba(255, 102, 0, 0.28);

  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    box-shadow .25s ease;

  will-change: transform;
}

.cta-primary:hover {
  background: #ff6725;

  transform:
    translateY(-3px)
    rotate(-.35deg)
    scale(1.012);

  box-shadow:
    0 0 22px rgba(255,90,22,.42),
    0 9px 20px rgba(255,90,22,.25);
}


/* =================================
   CTA PHOTO
================================= */

.cta-photo {
  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  overflow: hidden;

  border-radius: 4px;

  opacity: 0;

  transform: translateX(-18px);

  transition:
    transform .45s cubic-bezier(.22,.8,.2,1),
    opacity .2s ease;
}

.cta-photo img {
  width: 18px;
  height: 18px;

  display: block;

  object-fit: cover;
}


/* =================================
   CTA ARROW
================================= */

.cta-arrow {
  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: currentColor;

  opacity: 0;

  transform: translateX(18px);

  transition:
    transform .45s cubic-bezier(.22,.8,.2,1),
    opacity .2s ease;
}

.cta-arrow svg,
.cta-arrow img {
  width: 18px;
  height: 18px;

  display: block;
}

.cta-primary:hover .cta-photo,
.cta-primary:hover .cta-arrow {
  opacity: 1;

  transform: translateX(0);
}


/* =================================
   SECONDARY CTA
================================= */

.cta-secondary {
  padding: 10px 16px;

  background: #fff;

  color: #141414;

  border: 1px solid #d8d7d3;

  border-radius: 14px;

  transition:
    transform .25s cubic-bezier(.2,.8,.2,1);
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

.cta-secondary:hover .cta-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* =================================
   GMAIL
================================= */

.gmail-icon {
  width: 18px;
  height: 18px;

  flex: 0 0 18px;
}

.gmail-icon img {
  width: 18px;
  height: 18px;

  display: block;
}


/* =================================
   RESPONSE
================================= */

.cta-secondary-wrap {
  position: relative;
}

.cta-response {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;

  width: max-content;
  margin: 0;

  text-align: center;
  color: #8b8985;
  font-size: 13px;
  line-height: 1.3;

  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;

  transition:
    opacity .3s ease,
    transform .45s cubic-bezier(.22,.8,.2,1);
}

.cta-secondary-wrap:hover .cta-response {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* =================================
   MESSAGE CARD
================================= */

.message-card {
  position: relative;

  width: 100%;
  max-width: 100%;

  margin: 72px auto 0;

  padding: 8px;

  min-height: 0px;

  display: flex;
  align-items: center;

  background: #FFFFFF;

  border: 1px solid #EEEEEE;
  border-radius: 20px;

  box-shadow:
    -8px 7px 25px rgba(0, 0, 0, 0.12);

  color: #141414;

  text-align: left;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  overflow: visible;

  min-width: 0;

  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    box-shadow .25s ease;
}

.message-card:hover {
  transform: translateY(-2px);
}

.message-card:active {
  transform: translateY(0);
}

.message-card:focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 3px;
}


/* Orange notification dot */

.message-dot {
  position: absolute;

  top: -4px;
  left: -4px;

  width: 16px;
  height: 16px;

  background: #FF5A1F;
  border-radius: 50%;

  z-index: 10;
}


/* =================================
   ENVELOPE INSIDE CARD
================================= */

.message-card .message-envelope {
  position: relative;

  flex: 0 0 88px;

  width: 88px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;

  padding: 0;

  min-width: 88px;

  overflow: visible;

  opacity: 1;
  transform: none;

  animation: none;
}

.message-card .message-envelope img {
  display: block;

  width: 88px;
  height: 72px;

  margin: 0;
  padding: 0;

  object-fit: contain;

  flex: 0 0 auto;

  /* Compensate for the extra whitespace inside Envelope.svg */
  transform: translateY(10px);
}


/* =================================
   MESSAGE COPY
================================= */

.message-card .message-copy {
  flex: 1;

  min-width: 0;

  margin: 0 0 0 12px;

  padding: 0;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: flex-start;

  text-align: left;
}

.message-card .message-title {
  margin: 0 !important;
  padding: 0;

  font-size: 14px !important;
  line-height: 1.2 !important;

  font-weight: 400 !important;

  color: #000000 !important;

  white-space: nowrap;
}

.message-card .message-subtitle {
  margin: 10px 0 0 !important;
  padding: 0;

  font-size: 14px !important;
  line-height: 1.2 !important;

  font-weight: 400 !important;

  color: #999999 !important;

  white-space: nowrap;
}

/* =================================
   FOOTER
================================= */

.identity-footer {
  position: absolute;
  left: 3.7vw;
  right: 3.7vw;
  bottom: 32px;

  width: auto;

  margin-top: 0;
  padding-top: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 29px;
}

.wordmark {
  display: block;

  width: 172px;

  flex: 0 0 auto;
}

.wordmark img {
  width: 100%;
  height: auto;

  display: block;
}

.socials {
  width: 100%;

  display: flex;

  justify-content: center;

  gap: 34px;

  color: #767570;

  font-size: 15px;
}

.socials a:hover {
  color: var(--orange);
}


/* =================================
   WORK PANEL
================================= */

.work-panel {
  position: relative;
  height: 100vh;
  min-width: 0;

  overflow-y: auto;
  overflow-x: hidden;

  padding: 16px 3.1vw 7vw 16px;

  background: var(--paper);

  overscroll-behavior: contain;

  scrollbar-width: thin;

  scrollbar-color:
    #d8d6d1
    transparent;

  cursor: none;
}


/* =================================
   PROJECT GRID
================================= */

.project-grid {
  display: grid;

  gap: 16px;
}

.project-card,
.project-trigger {
  width: 100%;

  padding: 0;

  border: 0;

  background: none;

  text-align: left;
}

.project-trigger {
  display: block;

  cursor: none;
}


/* =================================
   PROJECT ART
================================= */

.art {
  position: relative;

  width: 100%;

  overflow: hidden;

  border-radius: 20px;

  background: #efefed;

  transition:
    transform .5s cubic-bezier(.2,.8,.2,1),
    border-radius .45s ease;
}

.media-element {
  width: 100%;
  height: auto;

  display: block;

  object-fit: contain;
}

.project-trigger:hover .art {
  transform: scale(.986);

  border-radius: 12px;
}


/* =================================
   CUSTOM CURSOR
================================= */

.view-cursor {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 100;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 9px 11px;

  background: #1e1e1d;

  color: #fff;

  border-radius: 999px;

  font: 11px "Sora", sans-serif;

  pointer-events: none;

  opacity: 0;

  transition: opacity .18s ease;

  will-change: transform;
}
 .view-cursor span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-cursor span img {
  width: 12px;
  height: 12px;
  display: block;
  object-fit: contain;
}

.view-cursor.show {
  opacity: 1;
}


/* =================================
   PROJECT VIEWER
================================= */

.project-viewer {
  position: fixed;

  inset: 0;

  z-index: 30;

  background: var(--paper);

  visibility: hidden;

  opacity: 0;

  transform: scale(.985);

  transition:
    opacity .45s ease,
    transform .55s cubic-bezier(.2,.75,.15,1),
    visibility 0s linear .55s;
}

.project-viewer.is-open {
  visibility: visible;

  opacity: 1;

  transform: scale(1);

  transition-delay: 0s;
}

.viewer-scroll {
  height: 100%;

  overflow-y: auto;
}

.viewer-content {
  width: 100%;

  margin: 0;

  padding: 0;
}


/* =================================
   CLOSE VIEWER
================================= */

.close-viewer {
  position: fixed;

  top: 25px;
  right: 32px;

  z-index: 2;

  padding: 9px 14px 9px 11px;

  color: var(--ink);

  background: #fff;

  border: 1px solid #d7d5d0;

  border-radius: 999px;

  font: 11px "Sora", sans-serif;

  cursor: pointer;
}

.close-viewer:hover {
  background: #ededeb;
}

.close-viewer span {
  margin-right: 3px;

  font-size: 17px;

  vertical-align: -1px;
}


/* =================================
   EXPANDED WORK
================================= */

.expanded-work-grid {
  display: grid;

  gap: 16px;

  padding: 16px 3.5vw 5vw;
}

.expanded-work-card {
  min-width: 0;

  display: grid;

  gap: 22px;
}

.expanded-art {
  position: relative;

  width: 100%;
  height: auto;

  overflow: hidden;

  border-radius: 20px;

  background: transparent;
}

.expanded-art .media-element {
  width: 100%;
  height: auto;

  display: block;

  object-fit: contain;
}


/* =================================
   VIEWER MEDIA
================================= */

.viewer-media {
  width: 100%;

  overflow: hidden;

  border-radius: 20px;

  background: #efefed;
}

.viewer-media-element {
  width: 100%;
  height: auto;

  display: block;

  object-fit: contain;
}


/* =================================
   MESSAGE VIEW
================================= */

.message-view {
  position: absolute;

  inset: 0;

  z-index: 5;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 40px 5vw;

  background: var(--paper);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .35s ease,
    visibility 0s linear .55s;
}

.message-view.is-active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transition-delay: 0s;
}

.work-panel.message-open {
  overflow: hidden;

  background: var(--paper);
}

.work-panel.message-open .project-grid {
  opacity: 0;

  transform: translateY(24px);

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .4s ease,
    transform .55s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear .55s;
}

.message-scene {
  width: 100%;
  max-width: 720px;

  display: flex;

  flex-direction: column;

  align-items: center;
}


/* =================================
   MESSAGE VIDEO
================================= */

.message-video-wrap {
  width: min(1200px, 96%);

  display: flex;

  align-items: center;
  justify-content: center;
}

.message-video {
  width: 100%;
  height: auto;

  display: block;

  max-height: 86vh;

  object-fit: contain;

  border-radius: 16px;

  outline: none;

  background: transparent;

  transform: scale(2);

  transform-origin: center center;
}


/* =================================
   BACK TO WORK
================================= */

.back-to-work {
  width: fit-content;
  margin-top: 30px;
  padding: 16px 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  background: #fff;
  color: #141414;
  border: 1px solid #d8d7d3;
  border-radius: 14px;

  font-family: "Sora", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);

  animation: messageBackIn .45s 1.05s ease forwards;

  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    box-shadow .25s ease;
}

.back-arrow {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.back-arrow svg,
.back-arrow img {
  width: 18px;
  height: 18px;
  display: block;
}

.back-label {
  white-space: nowrap;
}

.back-to-work:hover {
  color: #141414;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.back-to-work:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@keyframes messageBackIn {

  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* =================================
   MOBILE
================================= */

@media (max-width: 800px) {

  :root {
    --side: 1fr;
  }

  .site-shell {
    height: auto;

    display: block;

    overflow: visible;
  }

  .identity-panel {
    height: auto;

    min-height: 760px;

    padding: 40px 24px 28px;
  }

  .profile strong {
    font-size: 28px;
  }

  .hero-message {
    font-size: 40px;
  }

  .worked-with {
    margin-top: 112px;
  }

  .worked-with-title {
    font-size: 17px;
  }

  .worked-with-marquee {
    width: 100%;
    margin-left: 0;
    margin-top: 26px;
    overflow: hidden;
  }

  .worked-with-set {
    gap: 30px;
    padding-right: 30px;
  }

  .worked-with-logo {
    height: 25px;
  }

  .worked-with-mahindra {
    width: 126px;
  }

  .worked-with-toll {
    width: 102px;
  }

  .worked-with-boat {
    width: 78px;
  }

  .worked-with-tallect {
    width: 118px;
  }

  .actions {
    margin-top: 44px;

    gap: 12px;
  }

  .message-card {
    margin-top: 60px;
  }

  .message-envelope {
    width: 100px;
    height: 80px;

    flex-basis: 100px;
  }

  .message-copy {
    padding-left: 16px;
  }

  .message-title {
    font-size: 20px;
  }

  .message-subtitle {
    font-size: 18px;
  }

  .identity-footer {
    margin-top: 75px;
  }

  .wordmark {
    width: 154px;
  }

  .work-panel {
    height: auto;

    overflow: visible;

    padding: 16px 16px 60px;

    cursor: auto;
  }

  .project-trigger {
    cursor: pointer;
  }

  .art {
    border-radius: 13px;
  }

  .view-cursor {
    display: none;
  }

  .message-view {
    position: fixed;

    z-index: 50;

    inset: 0;

    padding: 70px 20px 30px;
  }

  .message-video {
    max-height: 68vh;

    border-radius: 12px;
  }

  .expanded-work-grid {
    padding: 10px 10px 32px;
  }

  .expanded-art {
    border-radius: 13px;
  }

  .close-viewer {
    top: 17px;
    right: 17px;
  }

}


/* =================================
   REDUCED MOTION
================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: .01ms !important;

    transition-duration: .01ms !important;
  }

}

/* =================================
   MESSAGE CARD — MOBILE
================================= */

@media (max-width: 800px) {
  .message-card {
    margin-top: 60px;
    min-height: 100px;
    padding: 10px;
  }

  .message-card .message-envelope {
    flex-basis: 76px;
    width: 76px;
    height: 62px;
    min-width: 76px;
  }

  .message-card .message-envelope img {
    width: 76px;
    height: 62px;
  }

  .message-card .message-copy {
    margin-left: 16px;
  }

  .message-card .message-title {
    font-size: 12px !important;
  }

  .message-card .message-subtitle {
    font-size: 12px !important;
  }
}
 /* =================================
   MESSAGE NOTIFICATION
================================= */

#messageCard {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.96);
  transform-origin: center bottom;

  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.65s;
}


/* =================================
   NOTIFICATION APPEARS
================================= */

#messageCard.notification-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0) scale(1);

  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;

  border: 2px solid #FF5A1F;

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.10);

  animation: messageCardFloat 2.8s ease-in-out 0.8s infinite;
}
 /* Notification has already been opened */
#messageCard.notification-dismissed {
  display: none !important;
  animation: none !important;
}

/* =================================
   FLOATING MOTION
================================= */

@keyframes messageCardFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1);
  }
}


/* =================================
   TITLE
================================= */

#messageCard .message-title {
  color: #FF5A1F;
}


/* =================================
   HOVER
================================= */

#messageCard.notification-visible:hover {
  transform: translateY(-8px) scale(1.01);

  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.15);

  cursor: pointer;

  animation-play-state: paused;
}


/* =================================
   CLICK FEEDBACK
================================= */

#messageCard.notification-visible:active {
  transform: translateY(-3px) scale(0.995);
}
/* =========================================================
   RESPONSIVE SYSTEM
   Desktop → Tablet → Mobile → Small Mobile
========================================================= */


/* =========================================================
   1. LARGE DESKTOP
   1200px+
========================================================= */

@media (min-width: 1200px) {

  :root {
    --side: 31vw;
  }

  .hero-message {
    font-size: 40px;
    line-height: 40px;
    letter-spacing: -2.8px;
  }

  .identity-panel {
    padding: 4.9vw 3.7vw 3.4vw;
  }

  .work-panel {
    padding: 16px 3.1vw 7vw 16px;
  }

}


/* =========================================================
   2. TABLET / SMALL DESKTOP
   901px – 1199px
========================================================= */

@media (min-width: 901px) and (max-width: 1199px) {

  :root {
    --side: 36vw;
  }

  .site-shell {
    grid-template-columns: var(--side) 1fr;
  }

  .identity-panel {
    height: 100vh;
    padding: 42px 32px 32px;
    overflow-y: auto;
  }

  .profile {
    gap: 13px;
  }

  .avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .profile strong {
    font-size: 22px;
    letter-spacing: -1px;
  }

  .profile span {
    font-size: 11px;
  }

  .hero-message {
    margin-top: 30px;

    font-size: clamp(30px, 4vw, 38px);
    line-height: 1;
    letter-spacing: -2px;
  }

  .hero-static {
    height: auto;
    min-height: 38px;
    line-height: 1;
  }

  .hero-rotating {
    height: 38px;
  }

  .hero-rotating span {
    height: 38px;
    line-height: 38px;
  }

  .actions {
    margin-top: 54px;
    gap: 12px;
  }

  .message-card {
    margin-top: 55px;
  }

  .message-card .message-envelope {
    width: 76px;
    height: 64px;
    flex-basis: 76px;
    min-width: 76px;
  }

  .message-card .message-envelope img {
    width: 76px;
    height: 64px;
  }

  .message-card .message-copy {
    margin-left: 10px;
  }

  .message-card .message-title,
  .message-card .message-subtitle {
    font-size: 13px !important;
  }

  .identity-footer {
    margin-top: 60px;
    padding-top: 0;
  }

  .wordmark {
    width: 145px;
  }

  .socials {
    gap: 25px;
    font-size: 14px;
  }

  .work-panel {
    height: 100vh;
    padding: 16px 24px 60px 16px;
  }

}


/* =========================================================
   3. TABLET / LARGE MOBILE
   601px – 900px

   This includes:
   - iPad Mini
   - iPad Air
   - iPad Pro portrait
   - Surface Duo style widths
========================================================= */

@media (max-width: 900px) {

  :root {
    --side: 1fr;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
  }

  /* -----------------------------------------
     LEFT / INTRO PANEL
  ----------------------------------------- */

  .identity-panel {
    width: 100%;
    height: auto !important;

    min-height: 0 !important;

    padding: 48px 40px 40px;

    display: flex;
    flex-direction: column;

    overflow: visible;
  }

  .identity-main {
    width: 100%;
    min-width: 0;
  }


  /* -----------------------------------------
     PROFILE
  ----------------------------------------- */

  .profile {
    width: 100%;
    gap: 14px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .profile strong {
    font-size: 24px;
    letter-spacing: -1.2px;
  }

  .profile span {
    font-size: 12px;
  }


  /* -----------------------------------------
     HERO
  ----------------------------------------- */

  .hero-message {
    width: 100%;

    margin-top: 32px;

    font-size: clamp(32px, 5vw, 40px);
    line-height: 1;
    letter-spacing: -2.4px;
  }

  .hero-static {
    width: 100%;

    height: auto;
    min-height: 1em;

    white-space: nowrap;

    line-height: 1;
  }

  .hero-rotating {
    width: 100%;
    height: 1em;

    overflow: hidden;
  }

  .hero-rotating span {
    height: 1em;
    line-height: 1;
  }


  /* -----------------------------------------
     CTA
  ----------------------------------------- */

  .actions {
    width: 100%;

    margin-top: 52px;

    gap: 12px;
  }

  .cta {
    width: 100%;
    min-width: 0;
  }


  /* -----------------------------------------
     MESSAGE CARD
  ----------------------------------------- */

  .message-card {
    width: 100%;
    max-width: 100%;

    margin-top: 56px;

    min-height: 100px;

    padding: 10px;

    overflow: visible;
  }

  .message-card .message-envelope {
    flex: 0 0 76px;

    width: 76px;
    min-width: 76px;

    height: 62px;
  }

  .message-card .message-envelope img {
    width: 76px;
    height: 62px;
  }

  .message-card .message-copy {
    min-width: 0;

    margin-left: 12px;

    overflow: hidden;
  }

  .message-card .message-title {
    max-width: 100%;

    font-size: 14px !important;

    line-height: 1.25 !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .message-card .message-subtitle {
    max-width: 100%;

    margin-top: 5px !important;

    font-size: 13px !important;

    line-height: 1.25 !important;

    white-space: nowrap;
  }


  /* -----------------------------------------
     FOOTER
  ----------------------------------------- */

  .identity-footer {
    width: 100%;

    margin-top: 72px !important;

    padding-top: 0;

    flex-shrink: 0;
  }

  .wordmark {
    width: 154px;
  }

  .socials {
    width: 100%;

    gap: 30px;

    font-size: 14px;
  }


  /* -----------------------------------------
     WORK PANEL
  ----------------------------------------- */

  .work-panel {
    width: 100%;

    height: auto;

    min-width: 0;

    overflow: visible;

    padding: 16px 24px 60px;

    cursor: auto;
  }

  .project-grid {
    width: 100%;
    gap: 16px;
  }

  .project-card,
  .project-trigger,
  .art {
    width: 100%;
    max-width: 100%;
  }

  .project-trigger {
    cursor: pointer;
  }

  .art {
    height: auto;
    min-height: 0;

    border-radius: 16px;
  }

  .view-cursor {
    display: none;
  }


  /* -----------------------------------------
     MESSAGE FULLSCREEN VIEW
  ----------------------------------------- */

  .message-view {
    position: fixed;

    inset: 0;

    z-index: 50;

    width: 100%;
    height: 100dvh;

    padding:
      max(60px, env(safe-area-inset-top))
      24px
      max(24px, env(safe-area-inset-bottom));

    overflow: hidden;
  }

  .message-scene {
    width: 100%;
    max-width: 720px;
  }

  .message-video-wrap {
    width: 100%;
    max-width: 100%;
  }

  .message-video {
    width: 100%;
    max-width: 100%;

    max-height: 70dvh;

    object-fit: contain;

    transform: scale(1.7);
  }

  .back-to-work {
    margin-top: 24px;
  }

}


/* =========================================================
   4. MOBILE
   431px – 600px
========================================================= */

@media (max-width: 600px) {

  .identity-panel {
    padding: 36px 24px 32px;
  }

  .profile {
    gap: 12px;
  }

  .avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .profile strong {
    font-size: 21px;
    letter-spacing: -1px;
  }

  .profile span {
    margin-top: 6px;
    font-size: 11px;
  }


  /* HERO */

  .hero-message {
    margin-top: 30px;

    font-size: clamp(28px, 8.5vw, 36px);

    line-height: 1;

    letter-spacing: -2px;
  }

  .hero-static {
    min-height: 1em;
  }

  .hero-rotating {
    height: 1em;
  }

  .hero-rotating span {
    height: 1em;
    line-height: 1;
  }


  /* CTA */

  .actions {
    margin-top: 46px;
    gap: 10px;
  }

  .cta {
    min-height: 52px;
  }


  /* MESSAGE */

  .message-card {
    margin-top: 52px;

    min-height: 94px;

    padding: 9px;

    border-radius: 18px;
  }

  .message-card .message-envelope {
    flex-basis: 68px;

    width: 68px;
    min-width: 68px;

    height: 56px;
  }

  .message-card .message-envelope img {
    width: 68px;
    height: 56px;
  }

  .message-card .message-copy {
    margin-left: 10px;
  }

  .message-card .message-title {
    font-size: 12px !important;
  }

  .message-card .message-subtitle {
    margin-top: 4px !important;

    font-size: 12px !important;
  }


  /* FOOTER */

  .identity-footer {
    margin-top: 64px !important;
  }

  .wordmark {
    width: 140px;
  }

  .socials {
    gap: 26px;
    font-size: 13px;
  }


  /* WORK */

  .work-panel {
    padding: 12px 16px 48px;
  }

  .project-grid {
    gap: 12px;
  }

  .art {
    border-radius: 13px;
  }


  /* MESSAGE VIEW */

  .message-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .message-video {
    max-height: 64dvh;
    transform: scale(1.5);
  }

  .back-to-work {
    margin-top: 20px;
    font-size: 12px;
  }

}


/* =========================================================
   5. SMALL PHONE
   376px – 430px
========================================================= */

@media (max-width: 430px) {

  .identity-panel {
    padding: 30px 20px 28px;
  }


  /* PROFILE */

  .profile {
    gap: 11px;
  }

  .avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .profile strong {
    font-size: 20px;
  }

  .profile span {
    font-size: 10px;
  }


  /* HERO */

  .hero-message {
    margin-top: 28px;

    font-size: clamp(26px, 8.7vw, 34px);

    letter-spacing: -1.8px;
  }


  /* CTA */

  .actions {
    margin-top: 42px;
  }


  /* MESSAGE CARD */

  .message-card {
    margin-top: 48px;

    min-height: 88px;

    padding: 8px;
  }

  .message-card .message-envelope {
    flex-basis: 62px;

    width: 62px;
    min-width: 62px;

    height: 52px;
  }

  .message-card .message-envelope img {
    width: 62px;
    height: 52px;
  }

  .message-card .message-copy {
    margin-left: 9px;
  }

  .message-card .message-title {
    font-size: 11px !important;
  }

  .message-card .message-subtitle {
    font-size: 11px !important;
  }


  /* FOOTER */

  .identity-footer {
    margin-top: 58px !important;
  }

  .wordmark {
    width: 132px;
  }

  .socials {
    gap: 22px;
    font-size: 12px;
  }


  /* WORK */

  .work-panel {
    padding: 10px 12px 40px;
  }

}


/* =========================================================
   6. VERY SMALL PHONE
   375px and below
========================================================= */

@media (max-width: 375px) {

  .identity-panel {
    padding-left: 16px;
    padding-right: 16px;
  }


  /* PROFILE */

  .avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .profile strong {
    font-size: 19px;
  }

  .profile span {
    font-size: 9px;
  }


  /* HERO */

  .hero-message {
    font-size: 25px;

    letter-spacing: -1.5px;
  }


  /* CTA */

  .actions {
    margin-top: 38px;
  }


  /* MESSAGE */

  .message-card {
    min-height: 82px;

    border-radius: 16px;
  }

  .message-card .message-envelope {
    flex-basis: 56px;

    width: 56px;
    min-width: 56px;

    height: 48px;
  }

  .message-card .message-envelope img {
    width: 56px;
    height: 48px;
  }

  .message-card .message-copy {
    margin-left: 8px;
  }

  .message-card .message-title {
    font-size: 10px !important;
  }

  .message-card .message-subtitle {
    font-size: 10px !important;
  }


  /* FOOTER */

  .identity-footer {
    margin-top: 52px !important;
  }

  .wordmark {
    width: 120px;
  }

  .socials {
    gap: 18px;
    font-size: 11px;
  }


  /* WORK */

  .work-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

}


/* =========================================================
   7. LANDSCAPE PHONES / SMALL TABLETS
========================================================= */

@media (max-height: 600px) and (orientation: landscape) {

  .identity-panel {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-message {
    margin-top: 22px;
  }

  .actions {
    margin-top: 32px;
  }

  .message-card {
    margin-top: 36px;
  }

  .identity-footer {
    margin-top: 48px !important;
  }

}


/* =========================================================
   8. SAFETY — NEVER ALLOW HORIZONTAL PAGE OVERFLOW
========================================================= */

@media (max-width: 1199px) {

  .identity-panel,
  .identity-main,
  .work-panel,
  .project-grid,
  .project-card,
  .project-trigger,
  .art,
  .message-card {
    max-width: 100%;
    min-width: 0;
  }

  img,
  video,
  svg {
    max-width: 100%;
  }

}

/* =========================================================
   DESIGN BASED — RESPONSIVE NOTIFICATION + FOOTER FIX
   Desktop = 1200px+
   Tablet/mobile = below 1200px
========================================================= */

/*
   Footer is now a sibling of the intro/work panels.
   Desktop still keeps it visually locked to the left column.
*/
.identity-footer {
  position: fixed;
  left: 0;
  right: auto;
  bottom: 32px;
  width: var(--side);
  margin: 0;
  padding-left: 3.7vw;
  padding-right: 3.7vw;
  z-index: 10;
}

@media (min-width: 1200px) {
  #messageCard {
    width: calc(var(--side) - 7.4vw);
  }
}


/* =========================================================
   TABLET + MOBILE
========================================================= */

@media (max-width: 1199px) {

  /*
     FOOTER
     It is after the work section in the HTML, so it now
     appears at the true bottom of the responsive page.
  */
  .identity-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;

    width: 100%;
    margin: 0 !important;
    padding: 72px 24px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 29px;

    background: var(--paper);
  }


  /*
     MESSAGE NOTIFICATION
     It no longer occupies space in the intro section.
     It behaves like a normal phone/tablet notification.
  */
  #messageCard {
    position: fixed;

    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;

    width: auto;
    max-width: none;

    margin: 0;

    min-height: 76px;
    padding: 9px 14px 9px 9px;

    z-index: 1000;

    border: 1px solid #e7e7e7;
    border-radius: 17px;

    background: #fff;

    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.14);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(calc(-100% - 24px));

    transition:
      opacity .25s ease,
      transform .55s cubic-bezier(.16, 1, .3, 1),
      visibility 0s linear .55s;

    touch-action: pan-y;
  }

  #messageCard.notification-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);

    border: 1px solid #e7e7e7;

    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.14);

    animation:
      mobileNotificationIn
      .55s
      cubic-bezier(.16, 1, .3, 1)
      both;
  }

  /* No desktop floating effect on tablet/mobile. */
  #messageCard.notification-visible:hover {
    transform: translateY(0);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.14);
  }

  #messageCard.notification-visible:active {
    transform: translateY(0);
  }

  #messageCard.notification-dismissed {
    display: none !important;
    pointer-events: none !important;
    animation: none !important;
  }

  #messageCard .message-dot {
    top: -4px;
    left: -4px;
    width: 13px;
    height: 13px;
  }

  #messageCard .message-envelope {
    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    height: 50px;
  }

  #messageCard .message-envelope img {
    width: 58px;
    height: 50px;
    transform: translateY(6px);
  }

  #messageCard .message-copy {
    margin-left: 10px;
    overflow: hidden;
  }

  #messageCard .message-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #messageCard .message-subtitle {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: nowrap;
  }

  @keyframes mobileNotificationIn {
    from {
      opacity: 0;
      transform: translateY(calc(-100% - 24px));
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 600px) {

  .identity-footer {
    padding: 64px 24px 36px;
  }

  #messageCard {
    left: 10px;
    right: 10px;
    min-height: 72px;
    border-radius: 16px;
  }

  #messageCard .message-envelope {
    flex-basis: 54px;
    width: 54px;
    min-width: 54px;
    height: 48px;
  }

  #messageCard .message-envelope img {
    width: 54px;
    height: 48px;
  }

  #messageCard .message-title {
    font-size: 12px !important;
  }

  #messageCard .message-subtitle {
    font-size: 11px !important;
  }
}


@media (max-width: 430px) {

  .identity-footer {
    padding: 58px 20px 32px;
  }

  #messageCard {
    left: 8px;
    right: 8px;
    min-height: 68px;
    padding: 8px 12px 8px 8px;
    border-radius: 15px;
  }

  #messageCard .message-envelope {
    flex-basis: 50px;
    width: 50px;
    min-width: 50px;
    height: 44px;
  }

  #messageCard .message-envelope img {
    width: 50px;
    height: 44px;
  }

  #messageCard .message-copy {
    margin-left: 8px;
  }
}
 /* =========================================
   TABLET FOOTER — SAFE FIX
   901px–1199px
   ========================================= */

@media (min-width: 901px) and (max-width: 1199px) {

  .site-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  .identity-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .work-panel {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .identity-footer {
    position: static;
    width: 100%;
    margin: 0 !important;
    padding: 72px 32px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
/* =================================
   SCROLL-DRIVEN ENVELOPE
================================= */

.envelope-scroll-section {
  position: relative;
  width: 100%;
  height: 180vh;

  flex: 0 0 auto;
}

.envelope-sticky {
  position: sticky;
  top: 0;

  width: 100%;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.envelope-scene {
  position: relative;

  width: min(720px, 90%);
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-scroll-frame {
  display: block;

  width: min(1250px, 94%);
  height: auto;

  max-width: 1250px;
  max-height: 90vh;

  pointer-events: none;
  user-select: none;

  transform: scale(2);
  transform-origin: center center;
}
/* =================================
   ENVELOPE — MOBILE / TABLET
================================= */

@media (max-width: 1199px) {

  .envelope-scroll-section {
    height: 115vh;
  }

  .envelope-sticky {
    height: 100vh;
  }

  .envelope-scene {
    width: 100%;
    height: 100%;
  }

  .envelope-scroll-frame {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;

    transform: scale(1.6);
  }

}
/* =================================
   ENVELOPE — MOBILE
================================= */

@media (max-width: 1199px) {

  .envelope-scroll-section {
    height: 125vh;
  }
  @media (max-width: 1199px) {

 .envelope-scroll-frame {
  width: 100%;
  max-width: 100%;
  max-height: 90vh;

  transform: translateX(3%) scale(2.15);
  transform-origin: center center;
}

}

}
/* =================================
   UNIVERSAL TABLET + MOBILE LAYOUT
   Everything below 1200px
================================= */

@media (max-width: 1199px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
  }


  /* ---------------------------------
     MAIN CONTENT WIDTH
  --------------------------------- */

  .identity-panel,
  .work-panel {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }


  /* ---------------------------------
     IDENTITY / TOP SECTION
  --------------------------------- */

  .identity-panel {
    height: auto !important;
    min-height: 0 !important;

    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);

    overflow: visible;
  }


  .identity-main {
    width: 100%;
    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;
  }


  /* ---------------------------------
     WORK SECTION
  --------------------------------- */

  .work-panel {
    height: auto !important;

    padding-left: clamp(20px, 5vw, 64px);
    padding-right: clamp(20px, 5vw, 64px);

    overflow: visible;
  }


  .project-grid {
    width: 100%;
    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;
  }


  .project-card,
  .project-trigger,
  .art {
    width: 100%;
    max-width: 100%;
  }


  /* ---------------------------------
     ENVELOPE
  --------------------------------- */

  .envelope-scroll-section {
    width: 100%;
    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;
  }


  .envelope-sticky {
    width: 100%;
  }


  .envelope-scene {
    width: 100%;
  }


  /* ---------------------------------
     FOOTER
  --------------------------------- */

  .identity-footer {
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;
  }

}