:root {
  color-scheme: dark;
  --ink: #f7f1df;
  --muted: rgba(247, 241, 223, 0.62);
  --panel: #050505;
  --panel-strong: #050505;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ffb454;
  --accent-2: #62f2ff;
  --cursor: url("cursor-arrow.svg") 5 3;
  font-family:
    "Courier New", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050505;
  color: var(--ink);
}

body {
  min-height: 100dvh;
  overflow: hidden;
  cursor: var(--cursor), default;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

#asciiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  cursor: var(--cursor), crosshair;
  z-index: 0;
}

#macbookStage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#macbookStage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.foreground-safe-zone {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Foreground "project screen" box (project-panel.js).                  */
/* macOS Sonoma dark window (design 5): translucent graphite, rounded,   */
/* traffic-light title bar, blue accent, Inter. Docks on the right and   */
/* swaps as projects scroll. Inter is injected by the 3D scene.          */
/* ------------------------------------------------------------------ */
.project-screen {
  --ps-accent: #0a84ff;
  --ps-ink: #e8e8ea;
  --ps-dim: #9a9a9e;
  --ps-faint: #6a6a6e;
  --ps-text: #c4c4c8;
  --ps-sans: "Inter", "Helvetica Neue", system-ui, Arial, sans-serif;
  --ps-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --ps-open: #28c840;

  position: fixed;
  top: 50%;
  right: clamp(1rem, 3vw, 3rem);
  transform: translateY(-50%);
  z-index: 3;
  width: clamp(22rem, 33vw, 30rem);
  max-height: min(92vh, 60rem);
  display: flex;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.84);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-family: var(--ps-sans);
  opacity: 0;
}

.project-screen[hidden] {
  display: none;
}

.project-screen.is-visible {
  opacity: 1;
}

.ps-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

/* Title bar with traffic lights + centred window title. */
.ps-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-lights {
  display: inline-flex;
  gap: 8px;
}

.ps-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.ps-dot--r { background: #ff5f57; }
.ps-dot--y { background: #febc2e; }
.ps-dot--g { background: #28c840; }

.ps-wtitle {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ps-dim);
  pointer-events: none;
}

.ps-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 2rem 1.8rem 1.9rem;
  gap: 0.65rem;
}

.ps-title {
  margin: 0;
  font-family: var(--ps-sans);
  font-size: clamp(2.1rem, 3.1vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ps-ink);
}

.ps-tagline {
  margin: 0.1rem 0 0;
  color: var(--ps-text);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
}

.ps-meta {
  margin: 0.15rem 0 0;
  color: var(--ps-faint);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.ps-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.ps-scroll::-webkit-scrollbar {
  width: 8px;
}
.ps-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.ps-desc {
  margin: 0;
  color: var(--ps-text);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.75;
}

.ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.ps-tag {
  padding: 0.32rem 0.72rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ps-text);
  font-size: 0.8rem;
  white-space: nowrap;
}

.ps-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.65rem;
}

.ps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.2rem;
  border-radius: 10px;
  font-family: var(--ps-sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.ps-link.is-live {
  background: var(--ps-accent);
  color: #ffffff;
}

.ps-link.is-code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ps-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ps-link:hover,
.ps-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.ps-link.is-live:hover,
.ps-link.is-live:focus-visible {
  background: #3a9bff;
  box-shadow: 0 8px 22px rgba(10, 132, 255, 0.4);
}

.ps-link.is-code:hover,
.ps-link.is-code:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

/* ---- About: identity + spec sheet ("About This Mac") -------------------- */
.ps-title--sm {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.ps-about .ps-id {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ps-id-text .ps-title {
  margin: 0;
}

.ps-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--ps-accent);
  color: #ffffff;
  font-family: var(--ps-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ps-specs {
  margin: 2.25rem 0 0;
}

.ps-spec {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.4rem 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-spec:first-child {
  border-top: 0;
  padding-top: 0;
}

.ps-spec-k {
  margin: 0;
  color: var(--ps-ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.ps-spec-v {
  margin: 0;
  color: var(--ps-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ps-foot {
  margin: 1.05rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ps-faint);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* ---- Skills: resume skills grouped into legible chip categories -------- */
/* On desktop the skills box is sized + positioned in project-panel.js (it fills
   the space to the right of the left-shifted laptop); mobile keeps the shared
   bottom-sheet width. */
.ps-skillgroups {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.ps-skillgroup-title {
  margin: 0 0 0.75rem;
  color: var(--ps-accent);
  font-family: var(--ps-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-chip {
  padding: 0.34rem 0.74rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ps-text);
  font-size: 0.82rem;
  line-height: 1.3;
  white-space: nowrap;
}

/* ---- Contact: headline + click-to-copy email + links ------------------- */
/* Contact: a wider, taller box so the headline + cursor stay on one line. */
@media (min-width: 981px) {
  .project-screen[data-kind="contact"] {
    width: clamp(30rem, 40vw, 38rem);
  }
}

.ps-contact .ps-title {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  white-space: nowrap;
}

.ps-contact .ps-scroll {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 9.5rem;
}

.ps-caret {
  color: var(--ps-accent);
  animation: ps-blink 1.1s steps(1) infinite;
}

@keyframes ps-blink {
  50% {
    opacity: 0;
  }
}

.ps-copy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ps-text);
  font-family: var(--ps-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.ps-copy:hover,
.ps-copy:focus-visible {
  border-color: var(--ps-accent);
  background: rgba(10, 132, 255, 0.1);
  outline: none;
}

.ps-link-icon,
.ps-copy-arrow {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.ps-link-icon svg,
.ps-copy-arrow svg {
  display: block;
}

.ps-copy-arrow {
  color: var(--ps-faint);
}

.ps-copy-state {
  margin-left: auto;
  color: var(--ps-open);
  font-weight: 500;
}

.ps-copy-feedback {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  color: var(--ps-faint);
  font-family: var(--ps-mono);
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  .project-screen {
    transition: none;
  }
  .ps-link,
  .ps-copy {
    transition: none;
  }
  .ps-caret {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* 3D model attribution (CC BY 4.0).                                    */
/* A small info dot anchored bottom-left of the desktop stage. At rest  */
/* it is just the dot; on hover or keyboard focus it expands to reveal   */
/* the full credit. The whole control is a link to the Sketchfab source */
/* and carries the complete credit in its aria-label, so the            */
/* attribution is always present in the DOM, not only on hover.          */
/* ------------------------------------------------------------------ */
.model-credit {
  position: fixed;
  left: 16px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 22px;
  overflow: hidden;
  pointer-events: auto;
  font-family: "Courier New", ui-monospace, monospace;
  text-decoration: none;
  white-space: nowrap;
  transition:
    max-width 0.32s ease,
    gap 0.32s ease;
}

.model-credit__dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(247, 241, 223, 0.32);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.55);
  color: rgba(247, 241, 223, 0.55);
  font-size: 12px;
  font-style: italic;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.model-credit__text {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(5, 5, 5, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(247, 241, 223, 0.9);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.model-credit:hover,
.model-credit:focus-visible {
  max-width: 26rem;
  gap: 10px;
  outline: none;
}

.model-credit:hover .model-credit__text,
.model-credit:focus-visible .model-credit__text {
  opacity: 1;
}

.model-credit:hover .model-credit__dot,
.model-credit:focus-visible .model-credit__dot {
  border-color: var(--accent);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .model-credit,
  .model-credit__text {
    transition: none;
  }
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
    overscroll-behavior: none;
  }

  #asciiCanvas,
  #macbookStage {
    touch-action: none;
  }

  .app-shell {
    min-height: 100dvh;
  }

  /* The laptop scales down and re-centers on narrow screens, so the box drops to
     a bottom sheet that clears the preset rail instead of docking right. */
  .project-screen {
    top: auto;
    bottom: calc(max(0.65rem, env(safe-area-inset-bottom)) + 3.1rem);
    left: max(0.6rem, env(safe-area-inset-left));
    right: max(0.6rem, env(safe-area-inset-right));
    transform: none;
    width: auto;
    max-height: 56vh;
  }
}

/* ====================================================================== */
/* MOBILE STATIC SITE (mobile.js)                                          */
/* Active only when the index.html loader tags <html class="mobile"> (a    */
/* touch device with a phone-sized min side). Phones never load the ASCII  */
/* field or the Three.js laptop; this is a native-scroll stack of window   */
/* cards over a static ASCII backdrop. Everything is scoped to html.mobile */
/* so the desktop experience is untouched.                                 */
/* ====================================================================== */
html.mobile,
html.mobile body {
  overflow-x: hidden;
}

html.mobile body {
  overflow-y: auto;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  cursor: auto;
  background-color: #050505;
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(18, 34, 58, 0.55) 0%, rgba(5, 5, 5, 0) 60%),
    url("mobile-ascii-bg.png");
  background-repeat: no-repeat, repeat;
  background-position: top center, top left;
  background-size: 100% 70vh, 280px 280px;
  background-attachment: scroll, scroll;
}

/* The desktop visual layers are never loaded on phones; hide their shells. */
html.mobile #asciiCanvas,
html.mobile #macbookStage,
html.mobile #macbookSafeZone,
html.mobile .app-shell {
  display: none !important;
}

html.mobile .m-site {
  --ps-accent: #0a84ff;
  --ps-ink: #e8e8ea;
  --ps-dim: #9a9a9e;
  --ps-faint: #6a6a6e;
  --ps-text: #c4c4c8;
  --ps-open: #28c840;
  --ps-sans: "Inter", "Helvetica Neue", system-ui, Arial, sans-serif;
  --ps-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* Spacing is done with margins on the children (below), not flex gap, because
     older mobile Safari ignores flex gap. Margins on flex items are universal. */
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 1.1rem)
    max(1rem, env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + 2rem)
    max(1rem, env(safe-area-inset-left));
  font-family: var(--ps-sans);
}

html.mobile .m-label {
  margin: 0 0 1rem 0.3rem;
  color: var(--ps-faint);
  font-family: var(--ps-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

html.mobile .m-card {
  margin: 0 0 3.5rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  /* Solid-ish graphite, NO backdrop-filter: blur over scrolling content is the
     single most expensive thing we can do on a phone, so it is omitted here. */
  background: rgba(24, 24, 26, 0.94);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.mobile .m-card .ps-titlebar {
  padding: 0.6rem 0.85rem;
}

html.mobile .m-card .ps-wtitle {
  font-size: 0.76rem;
  font-family: var(--ps-mono);
}

/* The whole page scrolls; cards do not scroll internally. Reset the desktop
   panel's flex/min-height and give a comfortable mobile padding. */
html.mobile .m-card .ps-content {
  flex: initial;
  min-height: 0;
  padding: 1.6rem 1.4rem 1.7rem;
  gap: 0.75rem;
}

/* Fixed, predictable mobile type (override the desktop vw-based clamps). */
html.mobile .m-card .ps-title {
  font-size: 1.6rem;
  line-height: 1.12;
  white-space: normal;
}

html.mobile .m-card .ps-title--sm {
  font-size: 1.3rem;
}

html.mobile .m-hero .ps-title {
  font-size: 1.95rem;
}

html.mobile .m-card .ps-tagline {
  font-size: 1.02rem;
}

html.mobile .m-card .ps-desc {
  font-size: 0.96rem;
  line-height: 1.65;
}

html.mobile .m-prompt {
  margin: 0 0 0.15rem;
  color: var(--ps-accent);
  font-family: var(--ps-mono);
  font-size: 0.82rem;
}

html.mobile .m-card .ps-tags {
  margin-top: 1.4rem;
}

html.mobile .m-card .ps-links {
  margin-top: 1.6rem;
}

html.mobile .m-card .ps-specs {
  margin-top: 1.6rem;
}

html.mobile .m-card .ps-foot {
  margin-top: 1.6rem;
}

/* Comfortable tap targets for the links + copy button. */
html.mobile .m-card .ps-link {
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
}

html.mobile .m-foot {
  margin: 0.6rem 0 0;
  text-align: center;
  color: var(--ps-faint);
  font-family: var(--ps-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---- Mobile interactivity (cheap: compositor + CSS only) --------------- */

/* Scroll-reveal: cards/labels fade + rise in as they enter the viewport. The
   :not(.in) hidden state de-selects itself once mobile.js adds .in, so the
   element transitions back to its natural (visible) state. */
html.mobile .m-reveal {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.mobile .m-site.reveal-on .m-reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
}

/* Hero terminal boot: a typed prompt with a blinking cursor, then the identity
   lines fade in one after another. */
html.mobile .m-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 1px;
  background: var(--ps-accent);
  vertical-align: -0.16em;
  animation: m-blink 1.05s steps(1) infinite;
}
@keyframes m-blink {
  50% {
    opacity: 0;
  }
}
html.mobile .m-site.reveal-on .m-hero .m-boot > * {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
html.mobile .m-site.reveal-on .m-hero .m-boot > *:not(.in) {
  opacity: 0;
  transform: translateY(8px);
}

/* Tap-to-expand project cards. */
html.mobile .m-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  cursor: pointer;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
html.mobile .m-toggle:focus-visible {
  outline: 2px solid var(--ps-accent);
  outline-offset: 4px;
  border-radius: 8px;
}
html.mobile .m-toggle-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
html.mobile .m-toggle-main > * {
  margin: 0;
}
html.mobile .m-chevron {
  flex: 0 0 auto;
  margin-top: 0.4rem;
  color: var(--ps-faint);
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}
html.mobile .m-card.is-open .m-chevron {
  transform: rotate(180deg);
}
html.mobile .m-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
html.mobile .m-card.is-open .m-expand {
  grid-template-rows: 1fr;
}
html.mobile .m-expand-inner {
  overflow: hidden;
  padding-top: 1.4rem;
}

/* Contact terminal. */
html.mobile .m-term {
  margin-top: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}
html.mobile .m-term-log {
  max-height: 8.5rem;
  overflow-y: auto;
  padding: 0.8rem 0.9rem;
  color: var(--ps-text);
  font-family: var(--ps-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}
html.mobile .m-term-line {
  margin: 0;
}
html.mobile .m-term-dim {
  color: var(--ps-faint);
}
html.mobile .m-term-cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html.mobile .m-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ps-text);
  font-family: var(--ps-mono);
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.16s ease, background 0.16s ease;
}
html.mobile .m-chip:hover,
html.mobile .m-chip:focus-visible {
  border-color: var(--ps-accent);
  outline: none;
}

/* Press states (tactile tap feedback). */
html.mobile .ps-link:active,
html.mobile .m-chip:active,
html.mobile .m-toggle:active {
  transform: scale(0.97);
}

/* ---- Hero cover screen + roomier sections ----------------------------- */

/* The whoami card fills the first screen so it loads alone; scrolling reveals
   the rest. Content is centred and given room so it never feels cramped. */
html.mobile .m-hero-screen {
  min-height: calc(100vh - env(safe-area-inset-top) - 1.1rem);
  min-height: calc(100dvh - env(safe-area-inset-top) - 1.1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1rem;
}
html.mobile .m-hero-screen .m-hero-card {
  margin-bottom: 0;
}
html.mobile .m-hero-card .ps-content.m-hero {
  padding: 1.9rem 1.6rem;
  gap: 1.1rem;
}
html.mobile .m-hero .m-prompt {
  margin: 0;
}
html.mobile .m-hero .m-boot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Scroll cue at the foot of the cover screen. */
html.mobile .m-scroll-cue {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--ps-faint);
}
html.mobile .m-scroll-word {
  font-family: var(--ps-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
html.mobile .m-scroll-arrow {
  display: flex;
  animation: m-bob 1.8s ease-in-out infinite;
}
@keyframes m-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Roomier About spec rows and Skills groups. */
html.mobile .m-card .ps-spec {
  padding: 1.4rem 0;
}
html.mobile .m-card .ps-skillgroups {
  gap: 2rem;
}
html.mobile .m-card .ps-skillgroup-title {
  margin-bottom: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html.mobile .ps-caret,
  html.mobile .m-cursor,
  html.mobile .m-scroll-arrow {
    animation: none;
  }
  html.mobile .m-reveal,
  html.mobile .m-site.reveal-on .m-hero .m-boot > *,
  html.mobile .m-expand,
  html.mobile .m-chevron,
  html.mobile .m-toggle,
  html.mobile .m-chip,
  html.mobile .ps-link {
    transition: none;
  }
}
