:root {
  --pd-paper: #ece8de;
  --pd-ink: #111111;
  --pd-muted: #595651;
  --pd-line: rgba(17, 17, 17, 0.5);
  --pd-accent: #ff5c00;
}

body.theme-patrick {
  color: var(--pd-ink);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 255, 255, 0.62), transparent 42%),
    radial-gradient(circle at 92% 16%, rgba(0, 0, 0, 0.03), transparent 38%),
    radial-gradient(rgba(0, 0, 0, 0.05) 0.7px, transparent 0.7px),
    linear-gradient(var(--pd-paper), var(--pd-paper));
  background-size: auto, auto, 4px 4px, auto;
}

body.theme-patrick::before,
body.theme-patrick::after {
  display: none;
}

body.theme-patrick .landing-screen,
body.theme-patrick .bg-stage,
body.theme-patrick .liquid-transition,
body.theme-patrick .marquee-strip,
body.theme-patrick #thread-canvas,
body.theme-patrick #object-stage,
body.theme-patrick .works-strip-toolbar,
body.theme-patrick .pointer-orb,
body.theme-patrick .scroll-progress,
body.theme-patrick #to-top-tab,
body.theme-patrick #side-menu-toggle,
body.theme-patrick #side-menu-panel,
body.theme-patrick #side-menu-dim {
  display: none !important;
}

body.theme-patrick .site-shell {
  width: min(100%, 1540px);
  padding: 0 1rem 2.6rem;
}

body.theme-patrick header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -1rem;
  padding: 0.85rem 1rem;
  border-bottom: 0.5px solid var(--pd-line);
  background: rgba(236, 232, 222, 0.93);
  backdrop-filter: blur(7px);
}

body.theme-patrick .brand-chip {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-patrick .brand-orb {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 0;
  background: var(--pd-accent);
  box-shadow: none;
}

body.theme-patrick .logo-wordmark {
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-weight: 900;
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.theme-patrick .brand-text small {
  color: var(--pd-muted);
  letter-spacing: 0.12em;
  font-size: 0.64rem;
}

body.theme-patrick .top-nav {
  position: static;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-patrick .top-nav ul {
  padding: 0;
  gap: 0;
}

body.theme-patrick .top-nav a {
  padding: 0.25rem 0.7rem;
  border-radius: 0;
  color: var(--pd-muted);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.theme-patrick .top-nav a:hover,
body.theme-patrick .top-nav a[aria-current="page"] {
  color: var(--pd-ink);
  background: transparent;
  transform: none;
}

body.theme-patrick .top-nav a::after {
  background: var(--pd-ink);
}

body.theme-patrick .top-mini-nav a {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

body.theme-patrick .right-bar-menu {
  position: fixed;
  right: clamp(0.35rem, 1.2vw, 0.9rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: grid;
  gap: 0.35rem;
}

body.theme-patrick .right-bar-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 7.2rem;
  min-height: 2rem;
  padding: 0.25rem 0.62rem;
  border: 0.5px solid var(--pd-line);
  background: rgba(236, 232, 222, 0.9);
  color: var(--pd-ink);
  text-decoration: none;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.theme-patrick .right-bar-link:hover,
body.theme-patrick .right-bar-link[aria-current="page"] {
  background: var(--pd-ink);
  color: var(--pd-paper);
}

body.theme-patrick .status-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 0.5px solid var(--pd-line);
  border-left: 0.5px solid var(--pd-line);
  border-right: 0.5px solid var(--pd-line);
  background: var(--pd-ink);
  color: var(--pd-paper);
}

body.theme-patrick .status-marquee-bottom {
  border-top: 0.5px solid var(--pd-line);
  border-bottom: 0.5px solid var(--pd-line);
  margin-top: -0.5px;
}

body.theme-patrick .status-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  min-width: 100%;
  padding: 0.42rem 0;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: statusMove 26s linear infinite;
}

body.theme-patrick .status-marquee-track span {
  opacity: 0.94;
}

@keyframes statusMove {
  0% {
    transform: translateX(-24%);
  }

  100% {
    transform: translateX(0%);
  }
}

body.theme-patrick main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-left: 0.5px solid var(--pd-line);
  border-right: 0.5px solid var(--pd-line);
}

body.theme-patrick .window-panel {
  position: relative;
  margin: 0;
  padding: clamp(16vh, 18vh, 22vh) clamp(0.9rem, 2.2vw, 1.6rem);
  border-top: 0.5px solid var(--pd-line);
  border-right: 0.5px solid var(--pd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-patrick .window-panel:nth-of-type(2n) {
  border-right: 0;
}

body.theme-patrick .window-panel.full-row,
body.theme-patrick #about,
body.theme-patrick .manifesto {
  grid-column: 1 / -1;
  border-right: 0;
}

body.theme-patrick .window-panel::before {
  content: "[" attr(data-window-label) "]";
  position: absolute;
  left: 0.8rem;
  top: 0.62rem;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  color: var(--pd-muted);
  text-transform: uppercase;
}

body.theme-patrick #home {
  grid-column: 1 / -1;
  min-height: 84vh;
  display: grid;
  align-items: end;
}

body.theme-patrick .hero-copy {
  padding: 0;
  max-width: 82rem;
}

body.theme-patrick .intro-landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

body.theme-patrick .intro-stage {
  position: relative;
  width: min(94vw, 1260px);
  min-height: min(76vh, 760px);
  padding: clamp(1.2rem, 2.8vw, 2.6rem);
  border: 0.5px solid rgba(0, 0, 0, 0.4);
  background: #111;
  color: var(--pd-paper);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  --ix: 0px;
  --iy: 0px;
  --gx: 0px;
  --gy: 0px;
}

body.theme-patrick .intro-stage::before {
  content: "";
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 92, 0, 0.28), transparent 32%),
    radial-gradient(circle at calc(var(--mx) + 12%) calc(var(--my) - 12%), rgba(255, 255, 255, 0.1), transparent 36%);
  pointer-events: none;
  transition: opacity 160ms ease;
}

body.theme-patrick .intro-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: screen;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.65px, transparent 0.65px);
  background-size: 3px 3px;
  transform: translate3d(var(--gx), var(--gy), 0);
  animation: introGrain 180ms steps(2) infinite;
}

@keyframes introGrain {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.36;
  }
  100% {
    opacity: 0.24;
  }
}

body.theme-patrick .intro-word {
  position: relative;
  margin: 0;
  font-size: clamp(3.6rem, 15vw, 16rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  transform: translate3d(var(--ix), var(--iy), 0);
  will-change: transform;
  filter: drop-shadow(0 0 0 rgba(255, 92, 0, 0));
}

body.theme-patrick .intro-word .intro-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

body.theme-patrick .intro-stage.is-glitching .intro-word {
  filter: drop-shadow(2px 0 0 rgba(255, 92, 0, 0.55)) drop-shadow(-2px 0 0 rgba(120, 180, 255, 0.45));
}

body.theme-patrick .intro-slogan {
  position: relative;
  margin: 0.9rem 0 0;
  font-size: clamp(0.92rem, 1.3vw, 1.24rem);
  letter-spacing: -0.01em;
  color: rgba(236, 232, 222, 0.88);
}

body.theme-patrick .intro-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  border: 0.5px solid rgba(236, 232, 222, 0.56);
  background: transparent;
  color: rgba(236, 232, 222, 0.92);
  padding: 0.36rem 0.66rem;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

body.theme-patrick .hero-kicker {
  margin: 0;
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-patrick .hero-logo-stamp {
  display: none;
}

body.theme-patrick .hero-tagline {
  margin: 0.8rem 0 0;
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(2.6rem, 8.2vw, 8rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-patrick .hero-tagline span {
  color: var(--pd-accent);
}

body.theme-patrick .hero-description {
  margin: 1rem 0 0;
  max-width: none;
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-patrick .section-head {
  align-items: flex-end;
  gap: 0.8rem;
}

body.theme-patrick .section-head h2,
body.theme-patrick .manifesto-left h2 {
  margin: 0;
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(2rem, 5vw, 5.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

body.theme-patrick .section-head p,
body.theme-patrick .manifesto-left p {
  margin: 0;
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

body.theme-patrick .manifesto {
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

body.theme-patrick .manifesto-right {
  gap: 0;
  border-top: 0.5px solid var(--pd-line);
  border-left: 0.5px solid var(--pd-line);
}

body.theme-patrick .mini-card {
  min-height: 136px;
  border-radius: 0;
  border-right: 0.5px solid var(--pd-line);
  border-bottom: 0.5px solid var(--pd-line);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body.theme-patrick .mini-card strong {
  color: var(--pd-accent);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

body.theme-patrick .mini-card p {
  color: var(--pd-ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.theme-patrick .manifesto-log {
  margin-top: 0.3rem;
}

body.theme-patrick .manifesto-log-kicker {
  margin: 0 0 0.7rem;
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.theme-patrick .dream-canvas {
  margin-top: 1rem;
  min-height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.9rem;
  border-top: 0.5px solid var(--pd-line);
}

body.theme-patrick .dream-window {
  position: relative;
  width: 100% !important;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  border-bottom: 0.5px solid var(--pd-line);
  box-shadow: none;
  background: transparent;
  padding: 0.8rem 0;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr) 8rem;
  align-items: center;
  gap: 0.8rem;
  animation: none;
  overflow: hidden;
}

body.theme-patrick .dream-window .window-screen {
  display: block;
  min-height: 58px;
  height: 58px;
  border: 0.5px solid var(--pd-line);
  background: rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

body.theme-patrick .dream-window .window-screen img,
body.theme-patrick .dream-window .window-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-patrick .dream-window h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-patrick .dream-window p {
  margin: 0;
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  text-align: right;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-patrick .about-flow {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

body.theme-patrick .about-visual {
  margin: 0;
  border: 0;
  border-radius: 0;
  width: min(70vw, 980px);
  margin-inline: auto;
}

body.theme-patrick .about-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0.5px solid var(--pd-line);
  background: rgba(255, 255, 255, 0.5);
}

body.theme-patrick .about-visual figcaption {
  margin-top: 0.54rem;
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-patrick .timeline {
  margin-top: 1rem;
}

body.theme-patrick .timeline-archive {
  border-top: 0.5px solid var(--pd-line);
}

body.theme-patrick .timeline-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 7.5rem 4rem;
  align-items: center;
  min-height: 70px;
  gap: 0.8rem;
  border-bottom: 0.5px solid var(--pd-line);
}

body.theme-patrick .timeline-row .idx,
body.theme-patrick .timeline-row .cat,
body.theme-patrick .timeline-row .year {
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.theme-patrick .timeline-row .title {
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-patrick .works-field {
  margin-top: 1rem;
  min-height: auto;
  border-top: 0.5px solid var(--pd-line);
  display: block;
}

body.theme-patrick .work-row {
  position: relative;
  width: 100%;
  min-height: 88px;
  border: 0;
  border-bottom: 0.5px solid var(--pd-line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: 3.8rem 11rem minmax(0, 1fr) minmax(40px, 1fr) 7.2rem 3.8rem;
  align-items: center;
  gap: 0.72rem;
  transition: background-color 170ms ease;
  overflow: hidden;
  contain: layout paint;
}

body.theme-patrick .work-row:hover,
body.theme-patrick .work-row:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

body.theme-patrick .work-row .idx,
body.theme-patrick .work-row .cat,
body.theme-patrick .work-row .year {
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.theme-patrick .work-row .thumb {
  position: relative;
  height: 64px;
  border: 0.5px solid var(--pd-line);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  min-width: 0;
  display: block;
  cursor: grab;
  user-select: none;
  isolation: isolate;
}

body.theme-patrick .work-row .thumb:active {
  cursor: grabbing;
}

body.theme-patrick .thumb-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: auto;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

body.theme-patrick .thumb-track::-webkit-scrollbar {
  display: none;
}

body.theme-patrick .thumb-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

body.theme-patrick .thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.theme-patrick .thumb-dots {
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.08rem 0.18rem;
  background: rgba(0, 0, 0, 0.3);
}

body.theme-patrick .thumb-dot {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

body.theme-patrick .thumb-dot.is-active {
  background: rgba(255, 255, 255, 0.86);
}

body.theme-patrick .work-row .title,
body.theme-patrick .work-row .cat,
body.theme-patrick .work-row .year {
  min-width: 0;
}

body.theme-patrick .work-row .title {
  font-size: clamp(1.12rem, 1.8vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-patrick .work-row .line {
  height: 0.5px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08));
}

.cursor-preview {
  position: fixed;
  left: 0;
  top: 0;
  width: min(400px, 34vw);
  aspect-ratio: 16 / 10;
  border: 0.5px solid rgba(0, 0, 0, 0.38);
  background: #0d0d0d;
  overflow: hidden;
  pointer-events: none;
  z-index: 20000;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0) scale(0.93);
}

.cursor-preview.is-active {
  animation: previewMorph 2.2s ease-in-out infinite alternate;
}

@keyframes previewMorph {
  0% {
    clip-path: polygon(2% 6%, 94% 2%, 98% 90%, 6% 98%);
  }

  100% {
    clip-path: polygon(5% 3%, 98% 8%, 92% 97%, 2% 93%);
  }
}

.cursor-preview img,
.cursor-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) contrast(1.08) saturate(1.15);
  transform: scale(1.08);
}

.cursor-preview img,
.cursor-preview video {
  display: none;
}

body.theme-patrick .prompt-reveal {
  display: none;
}

.data-window-modal {
  position: fixed;
  inset: 0;
  z-index: 22000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.data-window-open {
  overflow: hidden;
}

.data-window-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.data-window-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.56);
}

.data-window-panel {
  position: relative;
  width: min(1200px, 94vw);
  height: min(82vh, 760px);
  margin: min(9vh, 72px) auto 0;
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  background: #101010;
  color: #f3f3f3;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.data-window-close {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  width: 34px;
  height: 34px;
  border: 0.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #f5f5f5;
  cursor: pointer;
}

.data-window-media {
  border-right: 0.5px solid rgba(255, 255, 255, 0.25);
  padding: 1.15rem;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.72rem;
}

.data-window-media-view {
  min-height: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.data-window-media-view img,
.data-window-media-view video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.data-window-media-caption {
  margin: 0;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.data-window-terminal {
  padding: 1.15rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.7rem;
}

.data-window-terminal h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.data-window-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.data-window-meta span {
  border: 0.5px solid rgba(255, 255, 255, 0.36);
  padding: 0.21rem 0.46rem;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-window-code {
  margin: 0;
  padding: 0.85rem;
  border: 0.5px solid rgba(255, 255, 255, 0.26);
  background: #0c0c0c;
  color: #dbdbdb;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow: auto;
}

body.theme-patrick .contact-wrap {
  margin-top: 1rem !important;
  grid-template-columns: 1fr;
  gap: 1rem;
}

body.theme-patrick .contact-panel {
  border-radius: 0;
  border: 0.5px solid var(--pd-line);
  background: transparent;
  box-shadow: none;
}

body.theme-patrick .contact-panel h3 {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.theme-patrick .input,
body.theme-patrick .textarea,
body.theme-patrick .dropzone {
  border-radius: 0;
  border: 0.5px solid var(--pd-line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--pd-ink);
}

body.theme-patrick .upload-side-btn {
  border-radius: 0;
  border: 0.5px solid var(--pd-line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--pd-ink);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-patrick .upload-side-btn.is-active {
  background: var(--pd-ink);
  color: var(--pd-paper);
}

body.theme-patrick .input::placeholder,
body.theme-patrick .textarea::placeholder {
  color: #7f7a73;
}

body.theme-patrick .btn {
  border-radius: 0;
  border: 0.5px solid var(--pd-line);
  background: var(--pd-ink);
  color: var(--pd-paper);
}

body.theme-patrick .btn:hover {
  background: #000;
}

body.theme-patrick .footer-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--pd-line);
  color: var(--pd-muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal-char {
  display: inline-block;
  will-change: transform, opacity;
}

html.has-scroll-smooth,
html.has-scroll-smooth body {
  overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
  min-height: 100vh;
}

@media (max-width: 1024px) {
  body.theme-patrick main {
    grid-template-columns: 1fr;
  }

  body.theme-patrick .window-panel {
    border-right: 0;
  }

  body.theme-patrick .right-bar-menu {
    right: 0.45rem;
    gap: 0.25rem;
  }

  body.theme-patrick .right-bar-link {
    min-width: 5.8rem;
    min-height: 1.75rem;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  body.theme-patrick .about-flow {
    grid-template-columns: 1fr;
  }

  body.theme-patrick .about-visual {
    width: min(94vw, 700px);
  }

  body.theme-patrick #home {
    min-height: 72vh;
  }

  body.theme-patrick .hero-tagline {
    font-size: clamp(1.82rem, 8.1vw, 3.1rem);
  }

  body.theme-patrick .intro-stage {
    min-height: min(72vh, 560px);
  }

  body.theme-patrick .work-row {
    min-height: 82px;
    grid-template-columns: 3.1rem 7.5rem minmax(0, 1fr) 5.2rem;
  }

  body.theme-patrick .timeline-row {
    grid-template-columns: 3.3rem minmax(0, 1fr) 5.5rem;
  }

  body.theme-patrick .work-row .line,
  body.theme-patrick .work-row .cat,
  body.theme-patrick .timeline-row .cat {
    display: none;
  }

  body.theme-patrick .work-row .thumb {
    height: 56px;
  }

  body.theme-patrick .dream-window {
    grid-template-columns: 6.2rem minmax(0, 1fr) 5.2rem;
  }

  body.theme-patrick .dream-canvas {
    grid-template-columns: 1fr;
  }

  .data-window-panel {
    width: 96vw;
    height: 86vh;
    margin-top: 5vh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .data-window-media {
    border-right: 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.25);
  }

  .cursor-preview {
    width: min(72vw, 320px);
  }
}

@media (max-width: 760px) {
  body.theme-patrick .site-shell {
    padding: 0 0.7rem calc(4.8rem + env(safe-area-inset-bottom));
  }

  body.theme-patrick header {
    margin: 0 -0.7rem;
    padding: 0.72rem 0.7rem;
  }

  body.theme-patrick .status-marquee-track {
    gap: 1rem;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  body.theme-patrick .right-bar-menu {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(0.55rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    gap: 0.28rem;
    max-width: calc(100vw - 1rem);
    overflow-x: auto;
    padding: 0.24rem;
    border: 0.5px solid var(--pd-line);
    background: rgba(236, 232, 222, 0.9);
    backdrop-filter: blur(7px);
    z-index: 120;
  }

  body.theme-patrick .right-bar-link {
    min-width: auto;
    min-height: 1.65rem;
    padding: 0.2rem 0.46rem;
    font-size: 0.47rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  body.theme-patrick .window-panel {
    padding: clamp(5.2rem, 12vh, 7rem) 0.7rem clamp(2.2rem, 6vh, 4rem);
  }

  body.theme-patrick .window-panel::before {
    left: 0.65rem;
    top: 0.5rem;
    font-size: 0.54rem;
  }

  body.theme-patrick .intro-stage {
    width: 100%;
    min-height: min(66vh, 500px);
    padding: 1rem;
  }

  body.theme-patrick .intro-word {
    font-size: clamp(2.4rem, 16vw, 5.3rem);
    line-height: 0.9;
    letter-spacing: -0.045em;
  }

  body.theme-patrick .intro-slogan {
    margin-top: 0.7rem;
    font-size: 0.84rem;
  }

  body.theme-patrick #home {
    min-height: auto;
  }

  body.theme-patrick .hero-kicker {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  body.theme-patrick .hero-tagline {
    margin-top: 0.66rem;
    font-size: clamp(1.56rem, 9.8vw, 2.5rem);
    line-height: 1.02;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body.theme-patrick .hero-description {
    margin-top: 0.74rem;
    font-size: 0.58rem;
    line-height: 1.6;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body.theme-patrick .section-head {
    align-items: flex-start;
    gap: 0.45rem;
  }

  body.theme-patrick .section-head h2,
  body.theme-patrick .manifesto-left h2 {
    font-size: clamp(1.46rem, 8.6vw, 2.4rem);
    line-height: 1;
  }

  body.theme-patrick .section-head p,
  body.theme-patrick .manifesto-left p {
    font-size: 0.58rem;
    line-height: 1.55;
  }

  body.theme-patrick .manifesto-right {
    grid-template-columns: 1fr;
  }

  body.theme-patrick .mini-card {
    min-height: 0;
    padding: 0.76rem;
  }

  body.theme-patrick .dream-window {
    grid-template-columns: 5.2rem minmax(0, 1fr);
    gap: 0.56rem;
    min-height: 64px;
    padding: 0.6rem 0;
  }

  body.theme-patrick .dream-window .window-screen {
    min-height: 48px;
    height: 48px;
  }

  body.theme-patrick .dream-window h3 {
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: normal;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.theme-patrick .dream-window p {
    display: none;
  }

  body.theme-patrick .about-visual {
    width: min(100%, 680px);
  }

  body.theme-patrick .about-visual figcaption {
    font-size: 0.54rem;
    line-height: 1.5;
  }

  body.theme-patrick .timeline-row {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  body.theme-patrick .timeline-row .year {
    display: none;
  }

  body.theme-patrick .timeline-row .title {
    font-size: 0.84rem;
    line-height: 1.3;
    white-space: normal;
    text-overflow: clip;
  }

  body.theme-patrick .work-row {
    min-height: 76px;
    grid-template-columns: 2.6rem 5.6rem minmax(0, 1fr);
    gap: 0.5rem;
    padding-right: 0.2rem;
  }

  body.theme-patrick .work-row .year {
    display: none;
  }

  body.theme-patrick .work-row .thumb {
    height: 50px;
  }

  body.theme-patrick .work-row .title {
    font-size: clamp(0.84rem, 4.2vw, 1rem);
    line-height: 1.25;
    white-space: normal;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.theme-patrick .link-meta-row,
  body.theme-patrick .inline-row {
    flex-direction: column;
  }

  body.theme-patrick .inline-row .btn {
    width: 100%;
  }

  .data-window-close {
    right: 0.5rem;
    top: 0.5rem;
    width: 30px;
    height: 30px;
  }

  .data-window-panel {
    width: 97vw;
    height: 88vh;
    margin-top: 3.5vh;
  }

  .data-window-media,
  .data-window-terminal {
    padding: 0.82rem;
  }
}

@media (max-width: 420px) {
  body.theme-patrick .right-bar-link {
    font-size: 0.45rem;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.42rem;
  }

  body.theme-patrick .hero-tagline {
    font-size: clamp(1.38rem, 9vw, 2.1rem);
  }

  body.theme-patrick .window-panel {
    padding-top: clamp(4.7rem, 10.5vh, 6.2rem);
  }
}
