:root {
  --background: #101114;
  --foreground: #f4f0e8;
  --muted: #b6b0a6;
  --line: rgba(244, 240, 232, 0.14);
  --panel: #1a1d21;
  --panel-strong: #252a30;
  --gold: #d6a64f;
  --coral: #e36b5f;
  --cyan: #5fb7c8;
  --green: #78a86d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

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

main {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  padding: 24px clamp(18px, 4vw, 64px) 72px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(120deg, rgba(214, 166, 79, 0.2), transparent 34%),
    linear-gradient(235deg, rgba(95, 183, 200, 0.18), transparent 36%),
    repeating-linear-gradient(
      90deg,
      rgba(244, 240, 232, 0.035) 0,
      rgba(244, 240, 232, 0.035) 1px,
      transparent 1px,
      transparent 72px
    );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.topbar,
.hero-grid,
.section,
.contact {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  width: 100%;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 56px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
}

.brand span {
  align-items: center;
  background: var(--foreground);
  border-radius: 6px;
  color: var(--background);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 46px;
}

.navlinks {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

.navlinks a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.navlinks a:hover,
.project-body a:hover {
  color: var(--foreground);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
}

.eyebrow,
.section-kicker,
.project-tone {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 820px;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  max-width: 680px;
}

.hero-actions,
.contact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary,
.secondary,
.project-body a {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.primary {
  background: var(--gold);
  color: #111214;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--foreground);
}

.showcase {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  min-height: 500px;
}

.screen {
  background: linear-gradient(145deg, var(--panel), var(--panel-strong));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.screen img,
.project-visual img {
  background: #111418;
  height: calc(100% - 34px);
  inset: 0;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  width: 100%;
}

.screen img {
  filter: saturate(1.02) brightness(0.92);
  opacity: 0.9;
  top: 34px;
  transform: scale(1);
  transition: transform 240ms ease, filter 240ms ease;
}

.screen:hover img {
  filter: saturate(1.05) brightness(1);
  transform: scale(1.025);
}

.screen::after,
.project-visual::after {
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.02), rgba(16, 17, 20, 0.62) 82%),
    linear-gradient(135deg, rgba(214, 166, 79, 0.22), transparent 42%),
    linear-gradient(315deg, rgba(95, 183, 200, 0.18), transparent 44%);
  content: "";
  inset: 34px 0 0;
  position: absolute;
}

.project-visual::after {
  inset: 0;
}

.screen strong,
.screen small,
.project-visual strong,
.project-visual span {
  position: relative;
  z-index: 1;
}

.screen small {
  color: rgba(244, 240, 232, 0.78);
  margin-top: 6px;
}

.screen-bar {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
  inset: 0 0 auto;
  padding: 12px;
  position: absolute;
}

.screen-bar i {
  background: var(--line);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.screen-1 {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.screen-2,
.screen-3 {
  grid-column: 5 / 7;
}

.screen-4 {
  grid-column: 2 / 4;
}

.screen-5 {
  grid-column: 4 / 7;
}

.section {
  padding: 92px clamp(18px, 4vw, 32px);
}

.intro {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
}

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

.skill-cloud span {
  background: rgba(244, 240, 232, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 780px;
}

.section-heading p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: 280px 1fr;
  min-height: 520px;
  overflow: hidden;
}

.project-visual {
  background: #20242a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
}

.project-visual img {
  filter: saturate(1.02) brightness(0.9);
  border-radius: 6px;
  height: calc(100% - 22px);
  inset: 11px;
  object-fit: cover;
  padding: 0;
  transform: scale(1);
  width: calc(100% - 22px);
}

.project-visual span {
  color: rgba(244, 240, 232, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-visual strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  margin-top: 8px;
  max-width: 260px;
}

.project-card:nth-child(2n) .project-visual::after {
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.02), rgba(16, 17, 20, 0.62) 82%),
    linear-gradient(135deg, rgba(227, 107, 95, 0.28), transparent 44%),
    linear-gradient(315deg, rgba(120, 168, 109, 0.22), transparent 40%);
}

.project-card:nth-child(3n) .project-visual::after {
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.02), rgba(16, 17, 20, 0.62) 82%),
    linear-gradient(135deg, rgba(95, 183, 200, 0.28), transparent 44%),
    linear-gradient(315deg, rgba(214, 166, 79, 0.18), transparent 40%);
}

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.project-body p:not(.project-tone) {
  color: var(--muted);
  line-height: 1.55;
}

.project-body a {
  border: 1px solid var(--line);
  justify-content: flex-start;
  margin-top: 24px;
  width: fit-content;
}

.process {
  border-top: 1px solid var(--line);
}

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

.steps article {
  border-left: 3px solid var(--gold);
  padding: 8px 24px 10px;
}

.steps span {
  color: var(--cyan);
  display: block;
  font-weight: 900;
  margin-bottom: 24px;
}

.steps p,
.contact p {
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  border-top: 1px solid var(--line);
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 720px);
  justify-content: stretch;
  padding: 76px clamp(18px, 4vw, 32px) 96px;
}

.contact div {
  max-width: 720px;
}

.email-canvas {
  border-radius: 8px;
  display: block;
  margin-top: 22px;
  max-width: 100%;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  width: 100%;
}

.contact-form label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(244, 240, 232, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--foreground);
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.contact-form textarea {
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(214, 166, 79, 0.72);
}

.contact-form .primary {
  border: 0;
  cursor: pointer;
  min-width: min(100%, 260px);
  margin-top: 4px;
  width: 100%;
}

@media (max-width: 900px) {
  .topbar {
    padding-bottom: 40px;
  }

  .hero-grid,
  .intro,
  .projects,
  .steps,
  .contact {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .screen,
  .screen-1,
  .screen-2,
  .screen-3,
  .screen-4,
  .screen-5 {
    grid-column: auto;
    grid-row: auto;
    min-height: 150px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding-bottom: 52px;
  }

  .hero-copy,
  .showcase,
  .topbar,
  .intro,
  .section-heading,
  .projects,
  .steps,
  .contact > div {
    max-width: 350px;
    width: 100%;
  }

  h1 {
    font-size: clamp(40px, 13vw, 46px);
    line-height: 1;
  }

  .lead {
    font-size: 19px;
  }

  .topbar,
  .navlinks {
    align-items: flex-start;
    flex-direction: column;
  }

  .navlinks {
    gap: 12px;
  }

  .hero-actions,
  .hero-actions a,
  .contact .primary {
    width: 100%;
  }

  .section {
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .project-card {
    grid-template-rows: 210px 1fr;
    min-height: 0;
  }

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