:root {
  color-scheme: light;
  --ink: #20241f;
  --muted: #737970;
  --paper: #f7f7f3;
  --card: #fff;
  --line: #e8e9e1;
  --accent: #d65e3d;
  --green: #2f7357;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[a="dark"] {
  filter: none;
}

body[a="dark"] img,
body[a="auto"] img {
  filter: none;
}

.w:has(.portfolio-home) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.w:has(.portfolio-home) > header,
.w:has(.portfolio-home) > ul {
  display: none;
}

.portfolio-home * {
  box-sizing: border-box;
}

.portfolio-home :target {
  background: transparent;
}

.portfolio-shell {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.wordmark span,
.wordmark b {
  color: var(--accent);
}

.wordmark b {
  font-weight: inherit;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.social-nav a,
.email-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.social-nav a:hover,
.email-link:hover {
  color: var(--accent);
}

.social-nav a span,
.email-link span {
  color: var(--accent);
}

.intro {
  max-width: 700px;
  padding: clamp(72px, 11vw, 126px) 0 90px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #4b9a68;
  box-shadow: 0 0 0 3px #e2f0e5;
}

.intro h1 {
  margin: 0;
  font-size: clamp(48px, 8.3vw, 88px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.intro h1 span {
  color: var(--accent);
}

.intro-copy {
  max-width: 520px;
  margin: 25px 0 17px;
  color: #5e645c;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration-color: #d7a595;
  text-underline-offset: 4px;
}

.text-link span {
  color: var(--accent);
}

.products {
  padding: 38px 0 94px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.product-count {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: 0 8px 28px rgb(39 45 35 / 3%);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #d5d9cc;
  box-shadow: 0 14px 35px rgb(39 45 35 / 7%);
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
}

.product-symbol {
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 750;
}

.cctrack-symbol {
  border: 1px solid #dce8de;
  background: #edf4ee;
  color: #2f7357;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.splitx-icon {
  padding: 9px;
  background: #eff5ed;
  object-fit: contain;
}

.bookmark-icon {
  border: 1px solid #eee7fa;
}

.envguard-icon {
  padding: 7px;
  border: 1px solid #f0e4dd;
  background: #fff6f1;
  object-fit: contain;
}

.timepass-icon {
  border: 1px solid #f2e6cd;
  background: #ffffff;
  object-fit: contain;
}

.timepass-card {
  grid-column: 1 / -1;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 18px 34px;
}

.timepass-card .product-description {
  margin: 0;
}

.timepass-card .product-footer {
  grid-column: 1 / -1;
}

.product-category {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-identity h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.product-description {
  margin: 22px 0 25px;
  color: #62675f;
  font-size: 14px;
  line-height: 1.7;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eff0eb;
}

.product-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 700;
}

.stage-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.mvp-label {
  background: #fff1d8;
  color: #805717;
}

.experiment-label {
  background: #f1eee8;
  color: #68645d;
}

.live-label .status-dot {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  box-shadow: none;
}

.proof-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.try-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.try-link:hover {
  transform: translateY(-1px);
  background: var(--accent);
}

.try-link:focus-visible,
.social-nav a:focus-visible,
.text-link:focus-visible,
.email-link:focus-visible,
.writing-links a:focus-visible,
.writing-item a:focus-visible,
.work-products a:focus-visible,
.copyright a:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid #de987f;
  outline-offset: 4px;
}

.about-footer {
  padding: 30px 0 28px;
  border-top: 1px solid var(--line);
}

.about-footer > p:not(.eyebrow):not(.copyright) {
  max-width: 570px;
  margin: 0 0 13px;
  color: #62675f;
  font-size: 14px;
  line-height: 1.75;
}

.email-link {
  display: inline-block;
  color: var(--ink);
}

.writing-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-footer .writing-links:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.writing-label {
  color: #91968e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.writing-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.writing-links a:hover {
  color: var(--accent);
}

.writing-links a span {
  color: var(--accent);
}

.copyright {
  margin: 48px 0 0;
  color: #91968e;
  font-size: 11px;
}

.copyright a {
  color: inherit;
  text-decoration-color: #cfd2c9;
  text-underline-offset: 3px;
}

.copyright a:hover {
  color: var(--accent);
}

.writing-page,
.work-page {
  max-width: 760px;
  padding: clamp(64px, 9vw, 104px) 0 24px;
}

.writing-page h1,
.work-page h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 64px);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 1;
}

.writing-page h1 span,
.work-page h1 span {
  color: var(--accent);
}

.writing-intro,
.work-intro {
  max-width: 560px;
  margin: 24px 0 0;
  color: #5e645c;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75;
}

.writing-group {
  margin-top: clamp(46px, 7vw, 70px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.writing-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
}

.writing-group h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.writing-group-note {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.writing-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.writing-item {
  margin: 0;
  border-top: 1px solid var(--line);
}

.writing-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 24px;
  padding: 13px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: color 160ms ease;
}

.writing-item a:hover {
  color: var(--accent);
}

.writing-item time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.social-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #d7a595;
  text-underline-offset: 4px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}

.work-section {
  margin-top: clamp(46px, 7vw, 70px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.work-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.work-copy {
  max-width: 560px;
  margin: 12px 0 0;
  color: #5e645c;
  font-size: 14px;
  line-height: 1.75;
}

.role {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.role:first-of-type {
  margin-top: 18px;
}

.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
}

.role-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.role-title {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.role-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.role-points {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #5e645c;
  font-size: 14px;
  line-height: 1.7;
}

.role-points li {
  margin: 5px 0;
}

.role-contract {
  margin-top: 14px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid #e6c4b8;
}

.role-contract p {
  margin: 0;
  color: #5e645c;
  font-size: 13px;
  line-height: 1.65;
}

.role-contract .role-contract-label {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
}

.work-products a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration-color: #d7a595;
  text-underline-offset: 4px;
}

.work-products a span {
  color: var(--accent);
}

.community-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.community-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 20px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.community-list span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.post-meta {
  text-align: right;
}

@media (max-width: 700px) {
  .portfolio-shell {
    width: min(100% - 36px, 520px);
  }

  .site-header {
    min-height: 72px;
  }

  .social-nav {
    gap: 12px;
  }

  .social-nav a {
    font-size: 11px;
  }

  .intro {
    padding: 78px 0 69px;
  }

  .products {
    padding: 30px 0 70px;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 260px;
  }

  .writing-page,
  .work-page {
    padding: 64px 0 20px;
  }

  .writing-item a {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .portfolio-shell {
    width: min(100% - 30px, 380px);
  }

  .social-nav {
    gap: 9px;
  }

  .social-nav a {
    font-size: 10px;
  }

  .product-card {
    padding: 19px;
  }

  .product-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .try-link {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .timepass-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
