:root {
  color-scheme: light;
  --ink: #0b0d12;
  --text: #262b35;
  --muted: #687182;
  --faint: #eceff3;
  --line: #d9dee7;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --blue: #1f5eff;
  --blue-strong: #1744b8;
  --green: #006f68;
  --amber: #9a5b00;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(11, 13, 18, 0.1);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(11, 13, 18, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 13, 18, 0.035) 1px, transparent 1px),
    var(--soft);
  background-size: 56px 56px;
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

a,
button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 94, 255, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 247, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a,
.button,
.document-list a,
.link-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav a {
  padding: 0.55rem 0.78rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper);
}

.nav .nav-action {
  color: #ffffff;
  background: var(--ink);
}

.nav .nav-action:hover,
.nav .nav-action[aria-current="page"] {
  color: #ffffff;
  background: var(--blue);
}

.section-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.portfolio-hero {
  min-height: min(700px, calc(80vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: 3.5rem 0 2.25rem;
}

.hero-copy {
  max-width: 760px;
}

.page-hero {
  max-width: 860px;
  padding: 5.5rem 0 2.25rem;
}

.content-section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.eyebrow,
.kicker {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  color: var(--amber);
  font-size: 0.72rem;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: 5rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 3.2rem;
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

h4 {
  font-size: 1rem;
}

.lead,
.section-heading p,
.about-text p,
.info-panel p,
.app-card p,
.support-strip p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.lead {
  max-width: 690px;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-strong);
}

.button.secondary {
  background: var(--paper);
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.hero-panel,
.app-card,
.info-panel,
.legal-language,
.legal-content,
.support-strip {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1rem;
}

.panel-heading {
  margin-bottom: 1rem;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.artifact-stack {
  display: grid;
  gap: 0.75rem;
}

.artifact {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  min-height: 112px;
  color: var(--ink);
  text-decoration: none;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.artifact:hover,
.artifact:focus-visible {
  border-color: var(--blue);
  background: #ffffff;
  transform: translateY(-2px);
}

.artifact img,
.app-identity img {
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(11, 13, 18, 0.14);
}

.artifact strong,
.artifact small {
  display: block;
}

.artifact small {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.48fr);
  gap: 2rem;
  align-items: end;
  max-width: none;
}

.app-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-card {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: 1.25rem;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-identity h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.app-card p {
  margin-bottom: 0;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-meta span {
  padding: 0.42rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.info-panel {
  padding: 1.25rem;
}

.document-list,
.link-grid {
  display: grid;
  gap: 0.55rem;
}

.document-list a,
.link-grid a {
  justify-content: space-between;
  gap: 1rem;
  padding: 0.76rem 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.document-list a:last-child,
.link-grid a:last-child {
  border-bottom: 0;
}

.document-list a:hover span,
.document-list a:focus-visible span,
.link-grid a:hover span,
.link-grid a:focus-visible span {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.document-list small,
.link-grid small {
  color: var(--muted);
  font-weight: 800;
}

.document-list.compact {
  margin-top: 1rem;
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 4rem;
}

.support-strip h2 {
  max-width: 720px;
  font-size: 2.2rem;
}

.support-strip p {
  margin-bottom: 0;
}

.support-dashboard {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 1rem;
  padding-bottom: 5rem;
}

.primary-panel {
  grid-row: span 2;
}

.info-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.info-panel li {
  margin: 0.4rem 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(245, 247, 250, 0.82);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--blue);
}

.legal-page {
  padding: 4.5rem 0 5rem;
}

.legal-narrow {
  max-width: 940px;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.legal-meta span {
  padding: 0.35rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
}

.legal-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}

.legal-language > span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.language-list a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--soft);
  font-weight: 800;
  text-decoration: none;
}

.language-list a[aria-current="page"] {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.language-list small {
  color: inherit;
  opacity: 0.74;
}

.legal-content {
  padding: 2rem;
}

.legal-content h1 {
  display: none;
}

.legal-content h2 {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1.8rem;
  line-height: 1.2;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin-top: 1.6rem;
}

.legal-content a {
  color: var(--blue-strong);
  font-weight: 700;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content li {
  margin: 0.4rem 0;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 4.15rem;
  }

  h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 900px) {
  .portfolio-hero,
  .split-heading,
  .support-dashboard {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    min-height: auto;
  }

  .primary-panel {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .portfolio-hero,
  .content-section {
    padding: 3.75rem 0;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.2rem;
  }

  .app-showcase {
    grid-template-columns: 1fr;
  }

  .support-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 1rem, 1180px);
  }

  .nav a {
    padding-inline: 0.64rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel,
  .app-card,
  .info-panel,
  .legal-content,
  .support-strip {
    padding: 1rem;
  }

  .artifact,
  .app-identity {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .app-identity {
    display: grid;
  }

  .artifact img,
  .app-identity img {
    width: 64px;
    height: 64px;
  }

  .legal-language {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-list {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.9rem;
  }
}

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