@import url('/base-styles.css');

/* Product proof: make real product work visible immediately after the hero. */
.proof-strip {
  background: var(--ink);
  color: #f4f1ea;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.proof-strip-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 34px;
  align-items: center;
}
.proof-strip-label {
  margin: 0;
  color: #85837d;
  font-size: .66rem;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 780;
}
.proof-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.proof-links a {
  position: relative;
  color: #f4f1ea;
  font-size: .87rem;
  font-weight: 690;
  letter-spacing: -.015em;
  transition: color .2s ease, transform .2s ease;
}
.proof-links a::after {
  content: '↗';
  margin-left: 6px;
  color: #777872;
  font-size: .68rem;
}
.proof-links a:hover { color: #aebeff; transform: translateY(-1px); }

/* A compact evidence layer before the case studies. */
.portfolio-proof {
  margin: -18px 0 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.portfolio-proof > div {
  min-height: 138px;
  padding: 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  background: rgba(255,255,255,.14);
}
.portfolio-proof span {
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 760;
}
.portfolio-proof strong {
  max-width: 250px;
  font-size: .88rem;
  line-height: 1.55;
  letter-spacing: -.015em;
  font-weight: 670;
}

.work-section .section-heading h2 { max-width: 1040px; }
.project-card--product {
  position: relative;
  background: rgba(36,87,255,.055);
}
.project-card--product::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 3px;
  background: var(--accent);
}
.project-card--product:hover { background: rgba(36,87,255,.09); }
.project-group-label {
  grid-column: 1 / -1;
  min-height: 120px;
  padding: 28px 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background: var(--ink);
  color: #f4f1ea;
}
.project-group-label span {
  color: #9e9c96;
  font-size: .67rem;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 760;
}
.project-group-label strong {
  max-width: 620px;
  text-align: right;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 620;
  letter-spacing: -.02em;
}
.project-card--wide {
  grid-column: 1 / -1;
  min-height: 520px;
}
.project-card--wide .project-body > p:not(.project-type),
.project-card--wide .project-footer p { max-width: 820px; }

/* Industry interests: framed as areas to contribute, not claimed expertise. */
.industry-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.industry-card {
  min-height: 300px;
  padding: 28px 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.18);
  transition: background .22s ease, transform .22s ease;
}
.industry-card:hover {
  background: rgba(36,87,255,.055);
  transform: translateY(-2px);
}
.industry-card > span {
  color: var(--accent);
  font: 650 .66rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.industry-card h3 {
  margin: 52px 0 0;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 690;
}
.industry-card p {
  margin: auto 0 0;
  padding-top: 30px;
  color: #5d5a54;
  font-size: .89rem;
  line-height: 1.68;
}
.industry-note {
  max-width: 950px;
  margin: 34px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: #625f58;
  font-size: .9rem;
  line-height: 1.7;
}

/* Reverted enhancement guard.
   These classes only existed in the removed project-visual/case-study experiment.
   Keeping the guard in the primary stylesheet prevents any stale JS from resurfacing them. */
.project-visual,
.case-study-detail,
.portfolio-evidence,
.open-source-section,
.experience-section,
.current-building {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Navbar interaction: subtle highlight on hover, persistent active-section cue. */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .nav-links a:not(.nav-contact) {
    position: relative;
    padding: 9px 12px;
    margin: -9px -12px;
    border-radius: 999px;
    background: transparent;
    transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
  }

  .nav-links a:not(.nav-contact)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
    opacity: 0;
  }

  .nav-links a:not(.nav-contact):hover {
    color: var(--ink);
    background: rgba(36,87,255,.075);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(36,87,255,.08);
  }

  .nav-links a:not(.nav-contact):hover::after {
    width: 22px;
    opacity: 1;
  }

  .nav-links a:not(.nav-contact).is-active {
    color: var(--ink);
    background: rgba(36,87,255,.09);
  }

  .nav-links a:not(.nav-contact).is-active::after {
    width: 26px;
    opacity: 1;
  }

  .nav-links .nav-contact {
    transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
  }

  .nav-links .nav-contact:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(36,87,255,.2);
  }
}

@media (max-width: 1080px) {
  .portfolio-proof { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .industry-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .proof-strip-inner { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
  .proof-links { gap: 13px 22px; }
  .project-card--wide { grid-column: auto; min-height: auto; }
  .project-group-label { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .project-group-label strong { text-align: left; }
  .industry-card { min-height: 260px; }
}

@media (max-width: 620px) {
  .proof-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .proof-links a { font-size: .79rem; line-height: 1.35; }
  .portfolio-proof { grid-template-columns: 1fr; margin-top: -8px; }
  .portfolio-proof > div { min-height: 112px; }
  .project-group-label { min-height: auto; padding: 24px 22px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { min-height: auto; padding: 24px 22px; }
  .industry-card h3 { margin-top: 34px; }
  .industry-card p { margin-top: 28px; padding-top: 0; }
}
