.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-section {
  margin: 1.35rem 0 0;
}

.section-header {
  display: flex;
  min-height: 72px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.18rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

#things-mode {
  width: auto;
  margin: 0;
  padding: 0.06rem 1.3rem 0.1rem 0.28rem;
  color: var(--text);
  background-color: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  outline: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
}

#things-mode:hover,
#things-mode:focus-visible {
  border-color: var(--text);
}

.section-description {
  margin: 0.32rem 0 0;
  color: var(--text-secondary);
  font-size: 0.62rem;
}

.cycle-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.08rem;
  color: var(--text-secondary);
  font-size: 0.55rem;
}

.cycle-controls button,
.product-more {
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.cycle-controls button:hover,
.product-more:hover {
  border-color: var(--text);
}

.things-view[hidden],
.product-more-info[hidden],
[data-cycle-controls][hidden] {
  display: none !important;
}

.product-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.product-tab {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: space-between;
  gap: 0.25rem;
  padding: 0.6rem 0.7rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.product-tab:last-child {
  border-right: 0;
}

.product-tab:hover,
.product-tab:focus-visible {
  background: var(--bg-subtle);
  outline: 0;
}

.product-tab.is-active {
  background: var(--bg-subtle);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.product-tab-main {
  display: flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
}

.product-wordmark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--text);
  white-space: nowrap;
}

.product-wordmark-godloop {
  gap: 0.42rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.product-wordmark-godloop img {
  width: 25px;
  height: 25px;
}

[data-theme="light"] .product-wordmark-godloop img {
  filter: invert(1);
}

.product-wordmark-d3bit {
  gap: 0.35rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.product-wordmark-d3bit .d3bit-type > span {
  color: #00e781;
}

.product-wordmark-d3bit i {
  width: 5px;
  height: 22px;
  background: #3ddc97;
}

.product-wordmark-codraw {
  gap: 0.42rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.product-wordmark-codraw img {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  image-rendering: pixelated;
}

.product-wordmark-shitchats {
  gap: 0.3rem;
  color: #f1ead7;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.34rem;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1;
}

[data-theme="light"] .product-wordmark-shitchats {
  color: #15130f;
}

.shitchats-marks {
  display: inline-flex;
  gap: 1px;
  flex: 0 0 auto;
}

.shitchats-marks img {
  width: 19px;
  height: 19px;
}

.product-wordmark-dopa {
  font-family: "Tiny5", Arial, sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.015em;
  line-height: 1;
}

.dopa-dot {
  color: #00b6cb;
}

.product-tab-url {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.54rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-tab-tags {
  display: flex;
  min-width: 0;
  min-height: 0.8rem;
  max-height: 1.7rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  overflow: hidden;
}

.product-tab-tags .project-badge {
  flex: 0 0 auto;
  padding: 1px 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.44rem;
  line-height: 1.1;
}

.product-tab-tags .tag-d3bit {
  color: #ffffff;
  background: #090a0f;
}

.product-panels {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.product-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.42fr);
  grid-template-areas:
    "copy meta"
    "more more";
  gap: 1.5rem 2.5rem;
  align-items: start;
  min-height: 286px;
  padding: 1.45rem;
}

.product-panel.is-active {
  display: grid;
}

.product-panel.has-more {
  min-height: 345px;
}

.product-panel-copy {
  grid-area: copy;
}

.product-panel-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.product-panel-copy > p {
  max-width: 68ch;
  margin: 0;
  color: var(--text-description);
  font-size: 0.76rem;
  line-height: 1.58;
}

.product-highlights {
  display: grid;
  gap: 0.42rem;
  max-width: 64ch;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.product-highlights li {
  position: relative;
  padding-left: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.66rem;
  line-height: 1.45;
}

.product-highlights li::before {
  position: absolute;
  top: 0.57em;
  left: 0;
  width: 3px;
  height: 3px;
  background: var(--text);
  border-radius: 50%;
  content: "";
}

.product-panel-meta {
  display: grid;
  grid-area: meta;
  justify-items: start;
  gap: 0.8rem;
  min-height: 100%;
  align-content: start;
  padding-left: 1.2rem;
  border-left: 1px solid var(--border);
}

.product-panel-meta > strong {
  color: var(--accent-strong);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.product-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: auto;
  font-size: 0.6rem;
}

.product-panel-actions a {
  font-size: inherit;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.tag-d3bit {
  display: inline-flex;
  padding: 1px 4px;
  color: #ffffff;
  background: #090a0f;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}

.tag-d3bit .three {
  color: #00e781;
}

.product-more-info {
  display: grid;
  grid-area: more;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-more-info > span {
  color: var(--text-secondary);
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-more-info p {
  max-width: 70ch;
  margin: 0;
  color: var(--text-description);
  font-size: 0.7rem;
}

.writing-view,
.up-for-view {
  min-height: 385px;
  border: 1px solid var(--border);
}

.mode-intro {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.mode-intro p {
  max-width: 66ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.mode-intro > a,
.about-links a {
  flex: 0 0 auto;
  font-size: 0.62rem;
}

.writing-list {
  display: grid;
}

.writing-item {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.writing-item:last-child {
  border-bottom: 0;
}

.writing-item span,
.writing-item time {
  color: var(--text-secondary);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.writing-item h3 {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
}

.writing-item h3 a {
  text-decoration: none;
}

.empty-mode {
  padding: 3.5rem 1.2rem;
}

.empty-mode strong {
  font-size: 0.9rem;
}

.empty-mode p {
  max-width: 60ch;
  margin: 0.4rem 0 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opportunity-card {
  min-height: 270px;
  padding: 1.25rem;
  border-right: 1px solid var(--border);
}

.opportunity-card:last-child {
  border-right: 0;
}

.opportunity-card > span,
.page-kicker {
  color: var(--text-secondary);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.opportunity-card h3 {
  max-width: 18ch;
  margin: 3.6rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.opportunity-card p {
  max-width: 36ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.55;
}

.opportunity-dopa {
  color: var(--bg);
  background: var(--text);
}

.opportunity-dopa > span,
.opportunity-dopa p {
  color: var(--bg);
  opacity: 0.7;
}

.about-page {
  margin-top: 1.35rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 230px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.about-intro img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
}

.page-kicker {
  margin: 0;
}

.about-intro h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.65rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.about-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--text-description);
  font-size: 0.79rem;
  line-height: 1.62;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.about-grid section {
  min-height: 205px;
  padding: 1.3rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid section:nth-child(2n) {
  border-right: 0;
}

.about-grid h2,
.about-opportunities h2 {
  margin: 2.4rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.about-grid section > p:last-of-type {
  max-width: 56ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.58;
}

.about-availability {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(300px, 1.25fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 150px;
  padding: 1.3rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.about-availability h2 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.about-rate strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.about-rate p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.58;
}

.about-availability > a {
  white-space: nowrap;
  font-size: 0.62rem;
}

.about-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.about-opportunities {
  margin-top: 1.35rem;
  border: 1px solid var(--border);
}

.about-opportunities .mode-intro {
  align-items: flex-end;
}

.about-opportunities h2 {
  margin: 0.25rem 0 0;
}

@media (min-width: 701px) {
  .home-section,
  .about-page {
    margin-top: 1.55rem;
  }

  .section-header {
    min-height: 88px;
  }

  .section-description {
    font-size: 0.68rem;
  }

  .cycle-controls {
    font-size: 0.62rem;
  }

  .product-tab {
    min-height: 104px;
    padding: 0.7rem 0.8rem;
  }

  .product-tab-main {
    min-height: 34px;
  }

  .product-wordmark-godloop img {
    width: 30px;
    height: 30px;
  }

  .product-wordmark-codraw img {
    width: 32px;
    height: 32px;
  }

  .shitchats-marks img {
    width: 22px;
    height: 22px;
  }

  .product-tab-url {
    font-size: 0.62rem;
  }

  .product-tab-tags .project-badge {
    font-size: 0.46rem;
  }

  .product-panel {
    min-height: 330px;
    gap: 1.8rem 2.8rem;
    padding: 1.65rem;
  }

  .product-panel.has-more {
    min-height: 400px;
  }

  .product-panel-copy h3 {
    font-size: 1.12rem;
  }

  .product-panel-copy > p {
    font-size: 0.82rem;
  }

  .product-highlights li {
    font-size: 0.72rem;
  }

  .product-panel-meta > strong {
    font-size: 0.68rem;
  }

  .product-panel-actions {
    font-size: 0.67rem;
  }

  .project-badge {
    font-size: 0.53rem;
  }

  .product-more-info p {
    font-size: 0.76rem;
  }

  .writing-view,
  .up-for-view {
    min-height: 440px;
  }

  .mode-intro {
    min-height: 90px;
    padding: 1.2rem 1.4rem;
  }

  .mode-intro p {
    font-size: 0.74rem;
  }

  .mode-intro > a,
  .about-links a {
    font-size: 0.68rem;
  }

  .writing-item {
    min-height: 92px;
    padding: 1rem 1.4rem;
  }

  .writing-item h3 {
    font-size: 0.92rem;
  }

  .opportunity-card {
    min-height: 310px;
    padding: 1.5rem;
  }

  .opportunity-card h3 {
    font-size: 1.12rem;
  }

  .opportunity-card p {
    font-size: 0.74rem;
  }

  .about-intro {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 270px;
    padding: 1.7rem;
  }

  .about-intro img {
    width: 132px;
    height: 132px;
  }

  .about-lead {
    font-size: 0.86rem;
  }

  .about-grid section {
    min-height: 230px;
    padding: 1.5rem;
  }

  .about-grid h2,
  .about-opportunities h2 {
    font-size: 1.08rem;
  }

  .about-grid section > p:last-of-type {
    font-size: 0.74rem;
  }

  .about-availability {
    min-height: 170px;
    padding: 1.5rem;
  }

  .about-availability h2,
  .about-rate strong {
    font-size: 1.08rem;
  }

  .about-rate p {
    font-size: 0.74rem;
  }
}

@media (max-width: 700px) {
  .section-header {
    min-height: 64px;
  }

  .product-rail {
    grid-template-columns: none;
    grid-auto-columns: minmax(145px, 42vw);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .product-tab {
    scroll-snap-align: start;
  }

  .product-panel {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "meta" "more";
    gap: 1.2rem;
    min-height: 365px;
    padding: 1rem;
  }

  .product-panel.has-more {
    min-height: 445px;
  }

  .product-panel-meta {
    min-height: auto;
    gap: 0.6rem;
    padding: 0;
    border: 0;
  }

  .product-more-info {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-card {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .opportunity-card:last-child {
    border-bottom: 0;
  }

  .opportunity-card h3 {
    margin-top: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid section,
  .about-grid section:nth-child(2n) {
    min-height: 185px;
    border-right: 0;
  }

  .about-availability {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }

  .about-availability > a {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .section-header,
  .mode-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header {
    min-height: 90px;
  }

  .cycle-controls {
    align-self: flex-end;
  }

  .writing-view,
  .up-for-view {
    min-height: 420px;
  }

  .mode-intro {
    justify-content: center;
  }

  .writing-item {
    align-items: flex-start;
  }

  .about-intro {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 1rem;
    min-height: 205px;
    padding: 1rem;
  }

  .about-intro img {
    width: 76px;
    height: 76px;
  }
}
