.page {
  width: min(var(--content-max-width), calc(100% - (var(--layout-inline-padding) * 2)));
  margin: 0 auto;
  padding: 0 0 16px;
}

.hero-video-spacer {
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  min-height: 420px;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--rhythm-section-gap);
  padding-top: var(--rhythm-content-top);
}

.projects {
  margin-top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-company {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border-overlay-subtle);
  background-color: var(--color-surface-company-card);
  box-sizing: border-box;
}

@supports (content-visibility: auto) {
  .project-company,
  .details,
  .bio-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 960px;
  }
}

.project-company + .project-company {
  margin-top: var(--rhythm-company-stack);
}

.project-company-header {
  width: 100%;
  margin: 0;
  padding: 0;
}

.project-company-header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.project-company-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-width: 0;
}

.project-company-icon-shell {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  position: relative;
  background: var(--fx-company-icon-gradient);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--fx-company-icon-shadow);
}

.project-company-icon-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--company-icon-hover-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-company-icon-shell:hover::after {
  opacity: 1;
}

.project-company-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-company-name {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.28px;
  font-weight: 400;
  color: var(--text-strong);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-company-years {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.28px;
  font-weight: 400;
  color: var(--text-default);
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  margin-left: 0;
  margin-right: 4px;
}

.project-company-years-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
}

.now-badge {
  margin-right: 0;
}

.now-badge.inline-badge--compact {
  height: 20px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 11px;
  top: 0;
}

.now-badge .inline-badge__label {
  line-height: 1;
}

.now-badge--yellow {
  --inline-badge-fill: var(--lum-dark-100);
  --inline-badge-punched-text: var(--color-border-accent-brand);
}

.now-badge--company {
  --inline-badge-fill: currentColor;
  --inline-badge-punched-text: var(--color-surface-company-card);
}

.projects-headline-row {
  width: 100%;
  padding-bottom: 9px;
}

.section-headline {
  margin: 0;
  font-family: "Young Serif", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.84px;
  color: var(--text-secondary);
}

.section-headline-tabs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-tab {
  color: var(--border-color);
}

.section-tab-active {
  color: var(--text-secondary);
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  transition:
    filter 260ms ease,
    opacity 260ms ease;
}

.project + .project {
  margin-top: 8px;
  padding-top: 8px;
  position: relative;
}

.project + .project::before {
  content: none;
}

.project-company .project:first-of-type {
  padding-top: 0;
}

.project-company .project:last-child {
  padding-bottom: 8px;
  border-bottom: 0;
}

.project-company .project:last-child::after {
  content: none;
}

.cursor-readmore {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--inline-badge-height);
  padding-inline: var(--inline-badge-padding-inline);
  border-radius: var(--inline-badge-radius);
  border: 0;
  background: var(--brand-color);
  color: var(--text-inverse);
  font-family: "Fragment Mono", monospace;
  font-size: var(--inline-badge-font-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--inline-badge-letter-spacing);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transition: none;
  will-change: auto;
}

.cursor-readmore.is-visible {
  opacity: 1;
}

.cursor-readmore.is-muted {
  background: var(--etc-text-body);
  color: var(--inline-badge-punched-text);
}

.cursor-readmore-text {
  display: inline-flex;
  align-items: center;
  transform: none;
  font-weight: 400;
}

.cursor-readmore-verb,
.cursor-readmore-suffix {
  font-weight: 400;
}

.cursor-readmore-noun {
  font-weight: 400;
}

.cursor-readmore-verb + .cursor-readmore-noun,
.cursor-readmore-noun + .cursor-readmore-suffix {
  margin-left: 6px;
}

.cursor-readmore-arrow {
  display: inline-block;
  margin-left: 4px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.02em;
  font-weight: 400;
  line-height: 1;
  color: currentColor;
  vertical-align: baseline;
  transform: translateY(0.01em);
}

.cursor-readmore.is-muted .cursor-readmore-arrow {
  display: none;
}

.project-media-wrap {
  --hover-scale: 1;
  --lift-y: 0px;
  --shadow-alpha-a: 0.02;
  --shadow-alpha-b: 0.01;
  --media-scale-x: 1;
  --media-scale-y: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--surface-media);
  transform-origin: 50% 50%;
  transform: translateY(var(--lift-y)) scale(var(--hover-scale));
  box-shadow:
    0 12px 26px rgba(12, 20, 32, var(--shadow-alpha-a)),
    0 4px 10px rgba(12, 20, 32, var(--shadow-alpha-b));
  transition:
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, box-shadow;
}

.project-media-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-border-overlay-soft);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.project-media-wrap:hover {
  --hover-scale: 1;
  --lift-y: 0px;
  --media-scale-x: 1;
  --media-scale-y: 1;
  --shadow-alpha-a: 0.02;
  --shadow-alpha-b: 0.01;
  z-index: 1;
}

.project-media-wrap:focus-visible {
  --hover-scale: 1;
  --lift-y: 0px;
  --media-scale-x: 1;
  --media-scale-y: 1;
  --shadow-alpha-a: 0.02;
  --shadow-alpha-b: 0.01;
  z-index: 1;
}

.project-media-wrap.is-pressing {
  --hover-scale: 1;
  --lift-y: 0px;
  --media-scale-x: 1;
  --media-scale-y: 1;
  --shadow-alpha-a: 0.02;
  --shadow-alpha-b: 0.01;
  z-index: 1;
}

.project-media-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.details,
.bio-footer,
.top-nav {
  transition:
    filter 280ms ease,
    opacity 280ms ease;
}

.project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transform: scale3d(var(--media-scale-x), var(--media-scale-y), 1);
  transform-origin: center;
  opacity: 1;
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project-media-wrap:hover .project-media,
.project-media-wrap:focus-visible .project-media,
.project-media-wrap.is-pressing .project-media {
  opacity: 1;
}

.project-copy {
  width: 100%;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.28px;
  font-weight: 400;
  color: var(--text-strong);
}

.project-description {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.28px;
  color: var(--text-secondary);
}

.project-copy-footer {
  margin-top: 4px;
  margin-left: 12px;
  margin-right: 12px;
  width: calc(100% - 24px);
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 7px 0;
}

.project-copy-footer::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -2px;
  bottom: -2px;
  border-radius: 7px;
  border: 1px solid var(--color-border-overlay-subtle);
  background: var(--color-surface-elevated-neutral);
  pointer-events: none;
  z-index: 0;
}

.project-copy-footer > * {
  position: relative;
  z-index: 1;
}

.project-copy-meta {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-copy-meta-label,
.project-copy-meta-value {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.28px;
  color: var(--color-text-content-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-copy-meta-label {
  opacity: 0.5;
}

.project-copy-action-wrap {
  margin-left: auto;
  width: auto;
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.project-copy-action {
  width: auto;
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 7px;
  background: var(--color-surface-success-action-default);
  color: var(--color-text-on-dark-primary);
  text-decoration: none;
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.28px;
  white-space: nowrap;
  cursor: pointer;
  background-image: none !important;
  box-shadow: var(--fx-success-action-shadow-default);
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease,
    transform 80ms ease;
}

.project-copy-action:hover,
.project-copy-action:focus-visible {
  background: var(--color-surface-success-action-hover);
  color: var(--color-text-on-dark-primary);
  outline: none;
  background-image: none !important;
  box-shadow: var(--fx-success-action-shadow-hover);
}

.project-copy-action.is-active {
  background: var(--color-surface-success-action-hover);
  color: var(--color-text-on-dark-primary);
  background-image: none !important;
  box-shadow: var(--fx-success-action-shadow-hover);
}

.project-copy-action.is-active:hover,
.project-copy-action.is-active:focus-visible {
  background: var(--color-surface-success-action-hover);
  color: var(--color-text-on-dark-primary);
  outline: none;
  background-image: none !important;
}

.project-copy-action:active,
.project-copy-action.is-pressing {
  background: var(--color-surface-success-action-pressed);
  color: var(--color-text-on-dark-primary);
  box-shadow: var(--fx-success-action-shadow-pressed);
  transform: translateY(0.5px);
}

.project-copy-action:disabled,
.project-copy-action.project-copy-action--disabled {
  padding: 4px 12px;
  border: 1px solid var(--color-border-overlay-subtle);
  background: var(--color-surface-elevated-neutral);
  color: var(--color-text-content-primary);
  cursor: default;
  box-shadow: none;
  transform: none;
}

.project-copy-action:disabled .project-copy-action-label,
.project-copy-action.project-copy-action--disabled .project-copy-action-label {
  color: var(--color-text-content-primary);
  opacity: 0.5;
}

.project-copy-action-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 4px));
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px 12px;
  border: 1px solid var(--color-border-overlay-subtle);
  border-radius: 7px;
  background: var(--page-background);
  box-shadow: var(--fx-elevated-menu-shadow);
  color: var(--text-secondary);
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.28px;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms ease;
}

.project-copy-action-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--page-background);
  transform: translateX(-50%);
}

.project-copy-action-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 8px));
}

.project-copy-action-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
}

.project-copy-action-label {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-on-dark-primary);
}
