:root {
  --ink: #17202a;
  --muted: #64727f;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #d9ded8;
  --teal: #0f766e;
  --coral: #df6b57;
  --gold: #c69a45;
  --shadow: 0 24px 70px rgba(21, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 8px;
  font-weight: 800;
  background: var(--surface);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  color: rgba(23, 32, 42, 0.76);
}

.nav a:hover,
.footer a:hover,
.work-card a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 88px) 54px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.98) 0%, rgba(247, 244, 238, 0.84) 39%, rgba(247, 244, 238, 0.24) 100%),
    linear-gradient(0deg, rgba(247, 244, 238, 0.9), rgba(247, 244, 238, 0));
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 610px;
  color: rgba(23, 32, 42, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(23, 32, 42, 0.14);
}

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

section:not(.hero) {
  padding: clamp(64px, 9vw, 110px) clamp(20px, 6vw, 88px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

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

.intro article,
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro article {
  padding: clamp(24px, 4vw, 40px);
}

.intro p,
.work-card p {
  color: var(--muted);
  line-height: 1.7;
}

.experience {
  background: var(--surface);
}

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

.logo-card {
  min-height: 168px;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.logo-card img {
  max-width: min(220px, 100%);
  max-height: 62px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.logo-card:first-child img {
  max-height: 72px;
}

.logo-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

.work {
  background: #eaf4f0;
}

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

.work-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.work-number {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 8px;
  background: rgba(223, 107, 87, 0.15);
  color: var(--coral);
  font-weight: 800;
}

.work-card a {
  margin-top: auto;
  color: var(--ink);
  font-weight: 800;
}

.apps {
  background: #f3eee4;
}

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

.app-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-card p {
  color: var(--muted);
  line-height: 1.7;
}

.app-card .button {
  margin-top: auto;
}

.app-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: var(--surface);
  font-size: 1.25rem;
  font-weight: 800;
}

.app-type {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-list span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: rgba(23, 32, 42, 0.84);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: var(--surface);
}

.contact .eyebrow {
  color: var(--gold);
}

.contact .button.secondary {
  color: var(--surface);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.26);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 88px);
  color: var(--muted);
  background: var(--surface);
}

.footer p {
  margin: 0;
}

.download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(223, 107, 87, 0.12)),
    var(--paper);
}

.download-panel {
  width: min(640px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.download-panel h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.download-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.download-back {
  display: inline-flex;
  margin-top: 22px;
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    gap: 12px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(247, 244, 238, 0.96), rgba(247, 244, 238, 0.72)),
      linear-gradient(0deg, rgba(247, 244, 238, 0.94), rgba(247, 244, 238, 0.1));
  }

  .section-heading,
  .intro-grid,
  .logo-strip,
  .work-grid,
  .apps-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav {
    font-size: 0.82rem;
  }

  .brand {
    width: 38px;
    height: 38px;
  }

  .button {
    width: 100%;
  }
}
