:root {
  --background: #f1ede5;
  --background-soft: #f8f5ef;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-muted: rgba(246, 241, 232, 0.9);
  --text: #171511;
  --muted: #68635b;
  --line: rgba(33, 28, 20, 0.12);
  --line-strong: rgba(33, 28, 20, 0.2);
  --radius: 20px;
  --shell: min(1180px, calc(100vw - 40px));
  --shadow-soft: 0 24px 52px rgba(29, 24, 18, 0.08);
  --shadow-card: 0 16px 36px rgba(29, 24, 18, 0.07);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-slow: cubic-bezier(0.16, 0.84, 0.25, 1);
  --motion-page: 720ms;
  --motion-open: 1450ms;
  --motion-close: 980ms;
  --project-accent: #4f6de6;
  --project-secondary: #22356e;
  --project-soft: #e8edff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at top left,
      rgba(205, 193, 171, 0.32),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(214, 227, 241, 0.22),
      transparent 28%
    ),
    linear-gradient(180deg, #f6f2ea 0%, #f2ede4 35%, #f7f3ec 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(26, 21, 13, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 21, 13, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

body::after {
  background: radial-gradient(
    circle at 50% -10%,
    rgba(255, 255, 255, 0.5),
    transparent 40%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
.identity__name {
  font-family: "IBM Plex Serif", Georgia, serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header,
.site-footer,
.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.identity__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.identity__role,
.contact-link,
.site-footer {
  color: var(--muted);
  font-size: 13px;
}

.contact-link {
  border-bottom: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--text);
  border-color: var(--text);
}

.page-shell {
  position: relative;
}

.intro {
  min-height: 174px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 58px 0 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.intro__note {
  max-width: 360px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.portfolio {
  position: relative;
  border-top: 1px solid var(--line);
}

.portfolio-seed {
  padding-bottom: 6px;
}

.project-list {
  position: relative;
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(240px, 0.92fr) minmax(320px, 1.35fr) 52px;
  align-items: center;
  gap: 26px;
  min-height: 188px;
  border-bottom: 1px solid var(--line);
  overflow: visible;
  transform-origin: center;
  transition:
    min-height 900ms var(--ease-slow),
    opacity 1100ms ease,
    transform 1350ms var(--ease-slow),
    box-shadow 360ms ease;
  will-change: transform, opacity, min-height;
}

.project-row::before {
  content: "";
  position: absolute;
  inset: 14px 0;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 360ms ease,
    transform 460ms var(--ease);
  z-index: 0;
}

.project-row > * {
  position: relative;
  z-index: 1;
}

.project-row:hover {
  min-height: 224px;
  transform: translateY(-2px) scale(1.006);
}

.project-row:hover::before {
  opacity: 1;
  transform: scale(1);
}

.project-row__hit,
.project-row__seed-action {
  position: absolute;
  inset: 0;
}

.project-row__hit {
  display: block;
  z-index: 3;
  border-radius: 16px;
}

.project-row__hit:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.project-row__index {
  align-self: start;
  padding-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.project-row__summary {
  padding: 30px 0;
}

.project-row__summary h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  transition: transform 450ms var(--ease);
}

.project-row:hover .project-row__summary h2 {
  transform: translateX(8px);
}

.project-row__text-link {
  position: relative;
  z-index: 4;
}

.project-row__meta,
.project-row__description,
.project-detail-fallback__lead,
.project-screens__heading p,
.screen-item__copy p,
.seed-screen-item p {
  color: var(--muted);
  font-size: 13px;
}

.project-row__description {
  max-width: 520px;
  line-height: 1.72;
}

.project-row__preview {
  position: relative;
  height: 150px;
  border: 1px solid rgba(25, 20, 12, 0.12);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--project-soft) 88%, white),
    color-mix(in srgb, var(--project-soft) 64%, white)
  );
  overflow: hidden;
  transition:
    transform 520ms var(--ease),
    box-shadow 360ms ease,
    height 460ms var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.project-row:hover .project-row__preview {
  height: 200px;
  transform: scale(1.022) translateX(-6px);
  box-shadow: var(--shadow-card);
}

.project-row__preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background:
    radial-gradient(
      circle at 12px 12px,
      rgba(0, 0, 0, 0.28) 0 2px,
      transparent 2.5px
    ),
    radial-gradient(
      circle at 22px 12px,
      rgba(0, 0, 0, 0.28) 0 2px,
      transparent 2.5px
    ),
    radial-gradient(
      circle at 32px 12px,
      rgba(0, 0, 0, 0.28) 0 2px,
      transparent 2.5px
    ),
    color-mix(in srgb, var(--project-soft) 84%, white);
}

.preview-layout {
  position: absolute;
  inset: 38px 18px 16px;
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 16px;
}

.preview-layout__side,
.preview-layout__main {
  border-radius: 8px;
  background: color-mix(in srgb, var(--project-soft) 76%, white);
}

.preview-layout__side {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
}

.preview-layout__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.preview-line,
.preview-card {
  border-radius: 5px;
}

.preview-line {
  height: 6px;
  background: color-mix(in srgb, var(--project-accent) 42%, white);
}

.preview-line:nth-child(2) {
  width: 72%;
}

.preview-line:nth-child(3) {
  width: 84%;
}

.preview-card {
  min-height: 42px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--project-accent) 80%, white),
    color-mix(in srgb, var(--project-secondary) 68%, white)
  );
}

.project-row__action,
.project-row__seed-action {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
  transition:
    transform 350ms var(--ease),
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.project-row__action {
  justify-self: end;
  pointer-events: none;
}

.project-row__seed-action {
  position: relative;
  inset: auto;
  justify-self: end;
  z-index: 4;
}

.project-row__action svg,
.project-row__seed-action svg,
.control-link svg,
.project-link svg,
.browse-button svg,
.carousel-button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-row:hover .project-row__action,
.project-row:hover .project-row__seed-action {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  transform: translateX(5px) rotate(-7deg) scale(1.08);
}

.project-row.is-entering {
  opacity: 0;
  transform: translateY(-36px) scale(0.985);
  animation: dropIn var(--motion-page) var(--ease-slow) forwards;
  animation-delay: var(--delay, 0ms);
}

.project-row.is-leaving {
  animation: pageOut 420ms var(--ease) forwards;
}

.project-row.is-dimmed {
  opacity: 0.15;
}

.project-row.is-dimmed:hover {
  opacity: 0.42;
  min-height: 198px;
  transform: translateY(0) scale(0.995);
}

.project-row.is-before {
  transform: translateY(-54px) scale(0.955);
}

.project-row.is-after {
  transform: translateY(54px) scale(0.955);
}

.project-row.is-active {
  display: block;
  min-height: auto;
  background: transparent;
  animation: activeReveal var(--motion-open) var(--ease-slow) both;
}

.project-row.is-active::before {
  display: none;
}

.project-expanded {
  padding: 36px 0 56px;
}

.project-expanded__top {
  display: grid;
  grid-template-columns: 74px minmax(0, 0.95fr) minmax(320px, 1.35fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 34px;
}

.project-expanded__header {
  padding-right: 20px;
  opacity: 0;
  transform: translateY(18px);
  animation: revealBlock 1000ms 340ms var(--ease-slow) forwards;
}

.project-expanded__header h2,
.project-detail-fallback h2 {
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.project-expanded__lead {
  color: var(--muted);
  line-height: 1.72;
  max-width: 560px;
}

.project-expanded__controls,
.project-link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.control-link,
.project-link,
.browse-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  transition:
    background 250ms ease,
    color 250ms ease,
    transform 250ms ease,
    border-color 250ms ease;
}

.control-link:hover,
.project-link:hover,
.browse-button:hover,
.control-link:focus-visible,
.project-link:focus-visible,
.browse-button:focus-visible {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.project-expanded__cover {
  min-height: 370px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--project-soft) 86%, white),
    color-mix(in srgb, var(--project-soft) 68%, white)
  );
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94) translateY(24px);
  box-shadow: var(--shadow-soft);
  animation: coverReveal 1450ms 180ms var(--ease-slow) forwards;
}

.project-expanded__cover--seed {
  margin: 0 0 32px;
  opacity: 1;
  transform: none;
  animation: none;
}

.project-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover-image--preview {
  min-height: 128px;
}

.project-cover-image--detail {
  min-height: 370px;
}

.app-window {
  height: 100%;
  min-height: inherit;
  display: grid;
  grid-template-rows: 38px 1fr;
}

.app-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  background: color-mix(in srgb, var(--project-soft) 84%, white);
}

.app-window__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--project-accent) 56%, black);
}

.app-window__body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 330px;
}

.app-sidebar {
  border-right: 1px solid rgba(0, 0, 0, 0.09);
  padding: 22px 16px;
  background: color-mix(in srgb, var(--project-soft) 80%, white);
}

.app-sidebar__brand {
  width: 72px;
  height: 10px;
  border-radius: 4px;
  background: var(--project-accent);
  margin-bottom: 30px;
}

.app-sidebar__item {
  height: 8px;
  margin-bottom: 13px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--project-secondary) 25%, white);
}

.app-sidebar__item:nth-child(3) {
  width: 76%;
}

.app-sidebar__item:nth-child(4) {
  width: 88%;
}

.app-main {
  padding: 28px;
  background: color-mix(in srgb, var(--project-soft) 58%, white);
}

.app-main__heading {
  width: 36%;
  height: 16px;
  border-radius: 5px;
  background: var(--project-secondary);
  margin-bottom: 22px;
}

.app-main__toolbar {
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--project-secondary) 26%, white);
  border-radius: 8px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.app-main__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.app-main__card {
  min-height: 108px;
  border: 1px solid color-mix(in srgb, var(--project-secondary) 18%, white);
  border-radius: 9px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--project-accent) 42%, white),
    color-mix(in srgb, var(--project-secondary) 22%, white)
  );
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 56px 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  animation: revealBlock 950ms 620ms var(--ease-slow) forwards;
}

.project-facts--seed {
  margin-left: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

.project-fact {
  padding: 20px 20px 20px 0;
}

.project-fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-fact strong {
  font-size: 13px;
  font-weight: 560;
}

.project-handled {
  display: grid;
  grid-template-columns: minmax(200px, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0 0 40px 100px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealBlock 1000ms 760ms var(--ease-slow) forwards;
}

.project-handled--seed {
  margin-left: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

.project-handled h3,
.project-screens__heading h3,
.project-final-cta h3,
.seed-screen-item h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.handled-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.handled-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.project-screens {
  margin-left: 100px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealBlock 1000ms 820ms var(--ease-slow) forwards;
}

.project-screens__heading {
  max-width: 620px;
  margin-bottom: 28px;
}

.screen-carousel {
  position: relative;
}

.screen-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.screen-viewport.is-dragging {
  cursor: grabbing;
}

.screen-track {
  display: flex;
  gap: 24px;
  transition: transform 750ms var(--ease-slow);
  will-change: transform;
}

.screen-item {
  min-width: min(880px, 82vw);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  gap: 30px;
  align-items: start;
}

.screen-item__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-item__visual > .app-window {
  width: 100%;
  min-height: 330px;
}

.screen-item__image {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
}

.seed-screen-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seed-screen-item__image {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.screen-item__copy {
  padding: 12px 0;
  user-select: none;
  -webkit-user-select: none;
}

.screen-item__copy span,
.seed-screen-item span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.screen-item__copy h3 {
  margin: 10px 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.screen-item__copy p {
  margin-bottom: 0;
  line-height: 1.65;
  font-size: 14px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.carousel-buttons {
  display: flex;
  gap: 8px;
}

.carousel-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 250ms ease,
    color 250ms ease,
    transform 250ms ease;
}

.carousel-button:hover:not(:disabled),
.carousel-button:focus-visible:not(:disabled) {
  background: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.carousel-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-progress {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 24px;
  height: 2px;
  border: 0;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--text);
}

.project-final-cta {
  margin-top: 42px;
  padding: 26px 28px;
  border-radius: 18px;
  background: #15130f;
  color: #f8f6f0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.project-final-cta p,
.project-final-cta .eyebrow {
  color: rgba(248, 246, 240, 0.76);
}

.project-final-cta__button {
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.project-final-cta__button:hover,
.project-final-cta__button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #15130f;
}

.portfolio-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 34px 0 10px;
  flex-wrap: wrap;
}

.project-detail-fallback {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.54)
  );
  box-shadow: var(--shadow-soft);
}

.project-detail-fallback__intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.project-detail-fallback__lead {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.72;
}

.seed-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.seed-screen-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.seed-screen-item h3 {
  font-size: 22px;
  margin: 10px 0 8px;
}

.site-footer {
  min-height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

@keyframes dropIn {
  0% {
    opacity: 0;
    transform: translateY(-36px) scale(0.985);
  }
  65% {
    opacity: 1;
    transform: translateY(5px) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes pageOut {
  to {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

@keyframes activeReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
  }
  55% {
    opacity: 1;
    transform: translateY(4px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes revealBlock {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes coverReveal {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.955);
  }
  62% {
    opacity: 1;
    transform: translateY(0) scale(1.008);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .project-row {
    grid-template-columns: 54px 1fr 1fr 42px;
    gap: 18px;
  }

  .project-expanded__top {
    grid-template-columns: 54px 1fr;
  }

  .project-expanded__cover {
    grid-column: 2;
  }

  .project-facts,
  .project-screens,
  .project-handled {
    margin-left: 72px;
  }

  .project-facts {
    grid-template-columns: 1fr 1fr;
  }

  .project-handled {
    grid-template-columns: 1fr;
  }

  .seed-screens {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 24px, 680px);
  }

  .site-header {
    min-height: 72px;
  }

  .identity__role,
  .intro__note {
    display: none;
  }

  .intro {
    min-height: 130px;
    padding-top: 42px;
  }

  .project-row {
    grid-template-columns: 34px 1fr;
    gap: 14px;
    min-height: 164px;
  }

  .project-row:hover {
    min-height: 188px;
  }

  .project-row__preview {
    grid-column: 2;
    height: 112px;
    margin-bottom: 24px;
  }

  .project-row__summary {
    padding: 24px 0 8px;
  }

  .project-row__description {
    display: none;
  }

  .project-row__action,
  .project-row__seed-action {
    display: none;
  }

  .project-expanded__top {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .project-expanded__cover {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .app-window__body {
    grid-template-columns: 110px 1fr;
  }

  .app-main {
    padding: 18px;
  }

  .app-main__grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-facts,
  .project-screens,
  .project-handled,
  .project-facts--seed,
  .project-handled--seed {
    margin-left: 0;
  }

  .project-facts,
  .project-facts--seed {
    grid-template-columns: 1fr;
  }

  .handled-list {
    grid-template-columns: 1fr;
  }

  .screen-item {
    min-width: 88vw;
    grid-template-columns: 1fr;
  }

  .screen-item__visual {
    padding: 12px;
  }

  .screen-item__visual > .app-window {
    min-height: 240px;
  }

  .screen-item__image {
    max-height: 240px;
  }

  .project-final-cta,
  .project-detail-fallback__intro,
  .project-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .project-expanded__controls,
  .project-link-row,
  .portfolio-pagination {
    width: 100%;
  }

  .project-expanded__controls > *,
  .project-link-row > *,
  .portfolio-pagination > *,
  .project-final-cta__button {
    width: 100%;
  }

  .carousel-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .carousel-buttons {
    justify-content: space-between;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
