:root {
  --bg: #f3efe6;
  --bg-accent: #e6dfd2;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --ink: #1a1b1f;
  --muted: #5e616d;
  --line: rgba(26, 27, 31, 0.12);
  --shadow: 0 24px 60px rgba(24, 26, 31, 0.12);
  --accent: #0c5d56;
  --accent-2: #e96d3f;
  --card-radius: 28px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(233, 109, 63, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(12, 93, 86, 0.15), transparent 24rem),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 100%);
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(24, 26, 31, 0.08);
}

.brand {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1rem 0 1.5rem;
}

.hero-copy,
.hero-panel,
.project-card,
.contact-panel,
.section-about,
.section-heading {
  position: relative;
}

.hero-copy {
  padding: 2rem 0.25rem 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.96;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 5.4vw, 5.1rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.hero-text,
.section-heading p,
.project-copy p,
.project-points,
.about-grid p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 38rem;
  margin: 1.35rem 0 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 27, 31, 0.16);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.hero-card,
.hero-metrics,
.project-card,
.contact-panel,
.section-about {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 1.5rem;
}

.panel-label {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  align-items: start;
}

.metric {
  padding: 1rem;
  min-height: 8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.metric-value {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Syne", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.metric-label {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.88rem;
}

.section {
  padding-top: 4rem;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.section-projects {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.project-stack {
  margin: 0;
  max-width: 18rem;
  text-align: right;
  color: var(--muted);
  line-height: 1.55;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem);
  gap: 1.2rem;
  align-items: stretch;
}

.project-copy p {
  margin-top: 0;
}

.project-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.project-points li + li {
  margin-top: 0.5rem;
}

.demo-slot {
  position: relative;
  min-height: 19rem;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 19rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  padding: 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(14, 16, 21, 0.02) 0%, rgba(14, 16, 21, 0.18) 46%, rgba(14, 16, 21, 0.72) 100%);
  color: #fff;
  pointer-events: none;
}

.demo-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 93, 86, 0.14), rgba(233, 109, 63, 0.24)),
    linear-gradient(135deg, #1f2d2b 0%, #2c1f1e 100%);
  color: #fff;
}

.demo-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.demo-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  line-height: 1.04;
}

.demo-note {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.project-screens {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.project-screens-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.project-screens-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.screenshot-card {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(12, 93, 86, 0.08)),
    linear-gradient(135deg, rgba(12, 93, 86, 0.08), rgba(233, 109, 63, 0.12));
}

.screenshot-card-image {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.screenshot-card-image a {
  display: block;
  color: inherit;
}

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

.screenshot-caption {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
}

.screenshot-caption .screenshot-label,
.screenshot-caption .screenshot-title {
  margin: 0;
}

.screenshot-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.screenshot-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  line-height: 1.15;
}

.section-about {
  margin-top: 0.5rem;
  padding: 1.75rem;
}

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

.about-grid p {
  margin: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 1.75rem;
  align-items: center;
}

.site-footer {
  padding: 1.25rem 0 0.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero,
  .project-grid,
  .contact-panel,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-header {
    flex-direction: column;
  }

  .project-stack {
    max-width: none;
    text-align: left;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.75rem;
  }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .project-card,
  .section-about,
  .contact-panel {
    padding: 1.2rem;
  }

  .project-screens-heading,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .project-screens-heading {
    display: grid;
  }
}
