:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #65717d;
  --line: #e8ecef;
  --paper: #fbfcfc;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

/* Portfolio home */
.portfolio-home {
  --portfolio-bg: #1c1d1f;
  --portfolio-panel: #232426;
  --portfolio-panel-hover: #292a2d;
  --portfolio-ink: #f5f3ef;
  --portfolio-muted: #a8a5a0;
  --portfolio-accent: #d39a56;
  background: var(--portfolio-bg);
  color: var(--portfolio-ink);
}

.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;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  background: rgb(20 21 23 / 92%);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(100% - 40px, 1180px);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  color: var(--portfolio-ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.wordmark span,
.section-kicker,
.portfolio-app-arrow { color: var(--portfolio-accent); }

.site-nav nav { display: flex; gap: clamp(18px, 3vw, 38px); }
.site-nav nav a {
  color: #cfccc6;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav nav a:hover,
.site-nav nav a:focus-visible { color: var(--portfolio-accent); }

.portfolio-hero {
  width: 100%;
  overflow: hidden;
  background: #151618;
}

.portfolio-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-section,
.portfolio-footer {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.portfolio-section {
  padding: clamp(78px, 10vw, 128px) 0;
}

.section-heading { max-width: 590px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 25px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-heading h2,
.portfolio-footer h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.section-heading > p:last-child,
.about-copy { color: var(--portfolio-muted); }

.about-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}

.about-copy { max-width: 650px; font-size: 1rem; }
.about-lead {
  color: var(--portfolio-ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.skill-list span {
  padding: 13px 14px;
  border-left: 2px solid var(--portfolio-accent);
  background: var(--portfolio-panel);
  color: var(--portfolio-ink);
  font-size: .82rem;
  font-weight: 700;
}

.apps-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #202123;
}

.portfolio-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.portfolio-app-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 5%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--portfolio-panel);
  color: var(--portfolio-ink);
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.portfolio-app-card:hover {
  transform: translateY(-6px);
  border-color: rgb(211 154 86 / 55%);
  background: var(--portfolio-panel-hover);
}

.portfolio-app-card:focus-visible {
  outline: 3px solid var(--portfolio-accent);
  outline-offset: 4px;
}

.portfolio-app-icon {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
}
.portfolio-app-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.portfolio-app-copy { display: block; padding-top: 42px; }
.portfolio-app-name { display: block; font-size: 1.35rem; font-weight: 750; }
.portfolio-app-description { display: block; max-width: 380px; margin-top: 7px; color: var(--portfolio-muted); font-size: .92rem; }
.portfolio-app-arrow { position: absolute; top: 30px; right: 30px; font-size: 1.4rem; }

.portfolio-footer {
  position: relative;
  padding: clamp(74px, 9vw, 110px) 0 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.portfolio-footer h2 { margin: 0; }
.contact-button {
  min-height: 52px;
  padding: 0 25px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--portfolio-accent);
  color: #171717;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.contact-button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.copyright {
  grid-column: 1 / -1;
  margin: 54px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: var(--portfolio-muted);
  font-size: .78rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.home-shell,
.app-shell,
.policy-shell {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12vh 0 32px;
}

.intro { max-width: 680px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

.intro h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 5.75rem);
  font-weight: 680;
  letter-spacing: -.065em;
  line-height: .96;
}

.intro-copy {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 70px 0;
}

.app-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgb(26 39 49 / 10%);
}

.app-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.linknexus-card { background: #202428; color: #f5f5f5; }
.lendpal-card { background: #e8f2fb; color: #2d3748; }

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
}

.linknexus-icon { overflow: hidden; background: #202428; }
.linknexus-icon img { width: 100%; height: 100%; object-fit: cover; }
.lendpal-icon { overflow: hidden; background: #fff; }
.lendpal-icon img { width: 100%; height: 100%; object-fit: cover; }

.card-content { display: block; padding-top: 44px; }
.card-label { display: block; font-size: 1.65rem; font-weight: 700; letter-spacing: -.035em; }
.card-description { display: block; max-width: 280px; margin-top: 4px; opacity: .72; }
.card-arrow { position: absolute; top: 28px; right: 28px; font-size: 1.5rem; }

.site-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer a { text-underline-offset: 4px; }

.app-page {
  --accent: #d39a56;
  --soft: #232426;
  --page-background: #1c1d1f;
  --page-ink: #f5f3ef;
  --page-muted: #a8a5a0;
  --page-line: rgb(255 255 255 / 8%);
  background: var(--page-background);
  color: var(--page-ink);
}

.app-page.lendpal {
  --accent: #d39a56;
  --soft: #232426;
  --page-background: #1c1d1f;
  --page-ink: #f5f3ef;
  --page-muted: #a8a5a0;
}

.app-shell { width: min(100% - 40px, 1180px); padding: 0 0 46px; }

.top-nav {
  min-height: 68px;
  border-bottom: 1px solid var(--page-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-wordmark {
  color: var(--page-ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}
.page-wordmark span { color: var(--accent); }
.page-nav-links { display: flex; align-items: center; gap: clamp(22px, 4vw, 42px); }
.back-link, .privacy-link { color: var(--page-muted); font-size: .78rem; font-weight: 700; text-decoration: none; }
.back-link:hover, .privacy-link:hover { color: var(--accent); }

.app-hero {
  min-height: calc(100vh - 115px);
  padding: clamp(78px, 9vw, 118px) 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(54px, 9vw, 120px);
}

.app-badge {
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
  border-radius: 27px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
  border: 1px solid rgb(255 255 255 / 10%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 28%);
}

.app-badge img { width: 100%; height: 100%; object-fit: cover; }
.app-badge svg { width: 56px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.app-page.lendpal .app-badge { background: transparent; }

.app-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 8vw, 6.7rem);
  letter-spacing: -.075em;
  line-height: .9;
}

.app-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
}
.app-page .eyebrow::before { width: 25px; height: 1px; content: ""; background: currentColor; }
.app-description { max-width: 620px; color: var(--page-muted); font-size: 1.15rem; }

.store-button {
  width: fit-content;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--accent);
  color: #171717;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
}

a.store-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.store-button.is-coming-soon {
  border: 1px solid var(--page-line);
  background: var(--soft);
  color: var(--page-ink);
}

.store-detail { color: var(--page-muted); font-size: .8rem; font-weight: 600; }

.feature-note {
  position: relative;
  padding: 38px;
  border: 1px solid var(--page-line);
  border-radius: 0;
  background: var(--soft);
  color: var(--page-ink);
  box-shadow: 0 22px 60px rgb(0 0 0 / 18%);
}

.feature-note::before {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  content: "Highlights";
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.feature-note p { margin: 0; font-size: 1.12rem; font-weight: 650; line-height: 2.1; }
.feature-note p::first-line { color: var(--page-ink); }

.screenshot-showcase {
  padding: 72px 0 48px;
  border-top: 1px solid color-mix(in srgb, var(--page-ink) 9%, transparent);
}

.showcase-heading {
  max-width: 650px;
  margin-bottom: 20px;
}

.showcase-heading .eyebrow { color: var(--accent); }

.showcase-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  letter-spacing: -.055em;
  line-height: 1;
}

.showcase-heading > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--page-muted);
  font-size: 1.08rem;
}

.screenshot-track {
  display: grid;
  grid-auto-columns: minmax(240px, 30%);
  grid-auto-flow: column;
  gap: 22px;
  padding: 8px 4px 30px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: color-mix(in srgb, var(--accent) 50%, transparent) transparent;
}

.screenshot-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--page-ink) 9%, transparent);
  border-radius: 24px;
  background: var(--soft);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--page-ink) 10%, transparent);
  scroll-snap-align: start;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.page-footer {
  padding-top: 28px;
  border-top: 1px solid var(--page-line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--page-muted);
  font-size: .78rem;
}
.page-footer a { color: var(--page-muted); text-underline-offset: 4px; }
.page-footer a:hover { color: var(--accent); }

.policy-shell { width: min(100% - 40px, 820px); max-width: 820px; padding: 0 0 46px; }
.policy-header { padding: clamp(78px, 10vw, 120px) 0 52px; border-bottom: 1px solid var(--page-line); }
.policy-header h1 { margin-bottom: 16px; font-size: clamp(2.9rem, 7vw, 5.2rem); letter-spacing: -.06em; line-height: .95; }
.updated { color: var(--page-muted); font-size: .82rem; }
.policy-content { padding: 28px 0 88px; }
.policy-content h2 {
  margin: 38px 0 14px;
  padding-top: 38px;
  border-top: 1px solid var(--page-line);
  color: var(--page-ink);
  font-size: 1.12rem;
  letter-spacing: -.015em;
}
.policy-content > h2:first-child { border-top: 0; padding-top: 0; }
.policy-content p, .policy-content li { color: var(--page-muted); }
.policy-content a { color: var(--accent); text-underline-offset: 3px; }
.policy-content li + li { margin-top: 10px; }

@media (max-width: 700px) {
  .nav-inner { min-height: 60px; }
  .site-nav nav { gap: 15px; }
  .site-nav nav a { font-size: .7rem; }
  .portfolio-hero img { width: 100%; }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .skill-list { grid-template-columns: repeat(2, 1fr); }
  .portfolio-app-grid { grid-template-columns: 1fr; }
  .portfolio-app-card { min-height: 220px; }
  .portfolio-footer { grid-template-columns: 1fr; }
  .contact-button { justify-self: start; }
  .copyright { margin-top: 20px; }
  .home-shell { padding-top: 9vh; }
  .app-grid { grid-template-columns: 1fr; margin: 52px 0; }
  .app-card { min-height: 230px; }
  .top-nav { min-height: 60px; }
  .app-hero { min-height: 0; grid-template-columns: 1fr; gap: 44px; padding: 70px 0; }
  .app-badge { width: 82px; height: 82px; margin-bottom: 28px; border-radius: 23px; }
  .feature-note { margin-top: 0; padding: 28px; }
  .screenshot-showcase { padding-top: 56px; }
  .screenshot-track {
    grid-auto-columns: minmax(250px, 82%);
    gap: 16px;
    margin-right: -20px;
    padding-right: 20px;
  }
  .policy-header { padding-top: 72px; }
  .policy-content { padding-bottom: 68px; }
  .page-footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card, .store-button, .portfolio-app-card, .contact-button { transition: none; }
}
