:root {
  color-scheme: light;
  --color-page: #f7f8f5;
  --color-surface: #ffffff;
  --color-surface-muted: #eef2ec;
  --color-ink: #18201c;
  --color-muted: #58645e;
  --color-subtle: #d9dfd7;
  --color-primary: #245d4a;
  --color-primary-strong: #184536;
  --color-primary-soft: #dbeee6;
  --color-blue: #dceaf8;
  --color-amber: #f8e5c8;
  --color-mint: #dcefe1;
  --color-lavender: #e8e3f5;
  --shadow-soft: 0 18px 50px rgb(24 32 28 / 0.08);
  --radius-card: 8px;
  font-family: "Google Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.88), rgb(247 248 245 / 0.94)),
    repeating-linear-gradient(90deg, rgb(24 32 28 / 0.035) 0 1px, transparent 1px 72px),
    var(--color-page);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-bottom: 40px;
}

.brand-link,
.contact-link,
.filled-button,
.tonal-button,
.outlined-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
}

.brand-link {
  gap: 12px;
  color: var(--color-ink);
}

.brand-link img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-subtle);
  border-radius: 8px;
  background: var(--color-surface);
}

.contact-link {
  padding: 0 14px;
  border: 1px solid var(--color-subtle);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.74);
}

.intro {
  display: grid;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-subtle);
}

.intro-copy {
  max-width: 900px;
}

.eyebrow,
.project-type {
  margin: 0;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 900px;
  margin: 14px 0 22px;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.intro p:not(.eyebrow),
.project-copy p {
  max-width: 66ch;
  color: var(--color-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.filled-button,
.tonal-button,
.outlined-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.filled-button:hover {
  background: var(--color-primary-strong);
}

.tonal-button {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.tonal-button:hover {
  background: #cce5d9;
}

.outlined-button {
  border: 1px solid var(--color-subtle);
  color: var(--color-primary-strong);
  background: rgb(255 255 255 / 0.7);
}

.outlined-button:hover {
  border-color: var(--color-primary);
}

.muted-button {
  color: var(--color-muted);
  cursor: default;
}

.muted-button:hover {
  border-color: var(--color-subtle);
}

.filled-button:active,
.tonal-button:active,
.outlined-button:active:not(.muted-button) {
  transform: scale(0.98);
}

.material-symbols-rounded {
  font-size: 1.25rem;
}

.project-section {
  padding-top: 32px;
}

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

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.project-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--color-subtle);
  border-radius: var(--radius-card);
  background: rgb(255 255 255 / 0.86);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  border-color: #c8ded5;
  background:
    linear-gradient(135deg, rgb(219 238 230 / 0.9), rgb(255 255 255 / 0.9) 62%),
    var(--color-surface);
}

.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--color-ink);
}

.project-icon .material-symbols-rounded {
  font-size: 1.7rem;
}

.finance-icon {
  background: var(--color-mint);
}

.home-icon {
  background: var(--color-amber);
}

.ai-icon {
  background: var(--color-blue);
}

.kryptos-icon {
  background: var(--color-lavender);
}

.project-icon img.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: block;
}

.project-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.project-copy p {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 28px, 1160px);
    padding-top: 16px;
  }

  .topbar {
    margin-bottom: 36px;
  }

  .intro {
    grid-template-columns: 1fr;
    align-items: start;
    padding-bottom: 44px;
  }

  .intro-actions {
    justify-content: flex-start;
  }

  h1 {
    max-width: 14ch;
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

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

  .project-card {
    min-height: 0;
  }
}

@media (max-width: 540px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-link span {
    max-width: 9rem;
    line-height: 1.15;
  }

  .contact-link {
    width: 44px;
    padding: 0;
  }

  .contact-label {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading h2 {
    margin-top: 0;
  }

  .intro-actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card {
    padding: 20px;
  }
}
