/* Scoped visual shell for the unified phone embedded in #about. */
.about-phone-embed {
  --phone-border: #bdbbb7;
  --phone-shadow: #0008;
  --ig-bg: #101216;
  --ig-ink: #f4f0e9;
  --ig-line: #ffffff18;
  --phone-transition: .78s;
  --ig-loop-duration: 28s;
  --ig-loop-duration-reduced: 28s;
}

html[data-theme="light"] .about-phone-embed {
  --phone-border: #d4d0c9;
  --phone-shadow: #5e564833;
  --ig-bg: #f7f4ef;
  --ig-ink: #201d1c;
  --ig-line: #211d1c12;
}

.about-phone-embed .phone-stage {
  width: min(420px, 100%);
  height: 520px;
  margin: 0 auto;
  overflow: hidden;
}

.about-phone-embed .phone {
  position: relative;
  width: 420px;
  max-width: 100%;
  height: 520px;
  transform: translateY(22px);
  border: 4px solid var(--phone-border);
  border-radius: 40px 40px 0 0;
  padding: 6px;
  background: #050507;
  box-shadow: 0 -9px 24px -6px var(--phone-shadow), 0 0 0 1px #85858599, inset 0 0 0 1px #fff4;
}

html[data-theme="light"] .about-phone-embed .phone {
  background: #f8f6f1;
  box-shadow: 0 -9px 24px -6px var(--phone-shadow), 0 0 0 1px #aaa59f, inset 0 0 0 1px #fff;
}

.about-phone-embed .phone::before,
.about-phone-embed .phone::after {
  content: "";
  position: absolute;
  z-index: 30;
  left: -8px;
  width: 3px;
  border-radius: 4px;
  background: #999;
}

.about-phone-embed .phone::before { top: 116px; height: 52px; }
.about-phone-embed .phone::after { top: 184px; height: 27px; }

.about-phone-embed .screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
}

.about-phone-embed .screen::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg, rgb(255 255 255 / 8%), transparent 22%, transparent 72%, rgb(255 255 255 / 5%));
}

.about-phone-embed .island {
  position: absolute;
  z-index: 50;
  top: 12px;
  left: 50%;
  width: 94px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #050507;
  box-shadow: 0 1px 3px #0008;
}

.about-phone-embed .status {
  position: absolute;
  z-index: 45;
  top: 16px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  height: 16px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
}

.about-phone-embed .lock-layer {
  z-index: 4;
  color: #fff;
  text-align: center;
  background: #111;
}

.about-phone-embed .lock-bg {
  position: absolute;
  inset: 0;
  background: url("assets/phone-lock-oriental.jpg") center / cover no-repeat;
}

.about-phone-embed .phone-sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.about-phone-embed .lock-layer::before,
.about-phone-embed .dash-layer::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgb(7 9 14 / 20%);
  pointer-events: none;
}

.about-phone-embed .lock-bg { z-index: 0; }
.about-phone-embed .lock-layer > *:not(.lock-bg):not(.phone-sky-canvas),
.about-phone-embed .dash-layer > * { z-index: 2; }
.about-phone-embed .dash-layer > :not(.status) { position: relative; }
.about-phone-embed .lock-layer .status { z-index: 3; }

.about-phone-embed .lock-time {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  left: 0;
  transform: translateY(-50%);
  color: #f4f6f8d9;
  font: 300 clamp(108px, 28vw, 172px)/.78 Antonio, sans-serif;
  letter-spacing: -.055em;
  text-shadow: 0 3px 14px #25324766;
}

.about-phone-embed .lock-actions {
  position: absolute;
  z-index: 3;
  top: calc(50% + 92px);
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.about-phone-embed .lock-actions a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  text-decoration: none;
  filter: brightness(1);
  transition: transform .22s ease, filter .22s ease;
  transform-origin: center;
  will-change: transform, filter;
}

.about-phone-embed .lock-actions a:hover,
.about-phone-embed .lock-actions a:focus-visible {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.18) drop-shadow(0 7px 7px rgb(216 158 40 / 32%));
}

.about-phone-embed .lock-actions img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.about-phone-embed .dash-layer {
  z-index: 3;
  transform: translateY(100%);
  padding: 68px 18px 20px;
  color: #fff;
  background: #0d0915 url("assets/phone-dash-oriental.jpg") center / cover no-repeat;
}

.about-phone-embed .dash-title {
  margin: 25px 0;
  text-align: center;
  font: 600 27px "Space Grotesk", sans-serif;
}

.about-phone-embed .app-grid {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  justify-content: center;
  gap: 14px;
}

.about-phone-embed .app {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  filter: brightness(1);
  transition: transform .22s ease, filter .22s ease;
  transform-origin: center;
  will-change: transform, filter;
}

.about-phone-embed .app:hover,
.about-phone-embed .app:focus-visible {
  transform: translateY(-5px) scale(1.07);
  filter: brightness(1.16) drop-shadow(0 8px 8px rgb(216 158 40 / 30%));
}

.about-phone-embed .app img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.about-phone-embed .instagram {
  padding-top: 38px;
  color: var(--ig-ink);
  background: var(--ig-bg);
}

.about-phone-embed .instagram .status {
  z-index: 45;
  color: var(--ig-ink);
  font-size: 14px;
  line-height: 16px;
}

.about-phone-embed .instagram .ig-profile,
.about-phone-embed .instagram .ig-bottom-nav,
.about-phone-embed .instagram .ig-carousel {
  position: relative;
  z-index: 3;
}

.about-phone-embed .ig-profile {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 16px 18px 20px 27px;
  text-align: left;
}

.about-phone-embed .avatar {
  --avatar-size: 102px;
  --story-ring-size: 3px;
  position: relative;
  isolation: isolate;
  flex: 0 0 var(--avatar-size);
  width: var(--avatar-size);
  height: var(--avatar-size);
  transform: translateY(6px);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.about-phone-embed .avatar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--story-ring-size));
  border-radius: 50%;
  background: conic-gradient(#ffb52e 0 22%, #ff4b63 40%, #c92bc8 63%, #645ce7 82%, #ffb52e);
}

.about-phone-embed .avatar::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  background: url("assets/seickalab-avatar.png") center / cover no-repeat;
}

.about-phone-embed .ig-info { min-width: 0; padding-top: 3px; }

.about-phone-embed .ig-name {
  display: block;
  margin-bottom: 5px;
  color: var(--ig-ink);
  font: 600 22px/1.2 "Space Grotesk", sans-serif;
  text-decoration: none;
}

.about-phone-embed .ig-bio { max-width: none; font-size: 15px; line-height: 1.45; }

.about-phone-embed .ig-link {
  display: block;
  margin-top: 6px;
  color: #e7ad39;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

html[data-theme="light"] .about-phone-embed .ig-link { color: #7b243b; }
.about-phone-embed .ig-link:hover { text-decoration: underline; }

.about-phone-embed .ig-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 48px;
  margin: 0 0 8px;
  border-block: 1px solid var(--ig-line);
}

.about-phone-embed .ig-bottom-nav img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  opacity: .92;
  filter: invert(1);
}

html[data-theme="dark"] .about-phone-embed .ig-bottom-nav img { filter: none; }

html[data-theme="light"] .about-phone-embed .lock-bg {
  background-image: url("assets/phone-lock-oriental-light.jpg");
}

html[data-theme="light"] .about-phone-embed .phone-sky-canvas {
  opacity: 0.25;
}

html[data-theme="light"] .about-phone-embed .lock-time {
  color: #1a161f;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .about-phone-embed .lock-actions a img {
  filter: brightness(0.2) drop-shadow(0 1px 3px rgba(255, 255, 255, 0.8));
}

html[data-theme="light"] .about-phone-embed .status {
  color: #2a2430;
}

html[data-theme="light"] .about-phone-embed .dash-layer {
  background: #fdfbf7 radial-gradient(circle at 80% 20%, rgba(220, 160, 60, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(130, 20, 50, 0.08) 0%, transparent 50%),
              url("assets/phone-dash-oriental.jpg") center / cover no-repeat;
  background-blend-mode: screen;
}

html[data-theme="light"] .about-phone-embed .lock-layer::before,
html[data-theme="light"] .about-phone-embed .dash-layer::before {
  background: rgb(255 255 255 / 10%);
}

@media (max-width: 768px) {
  .about-phone-embed { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .about-phone-embed .app,
  .about-phone-embed .lock-actions a { transition: none; }
}
