:root {
  color-scheme: light;
  --ink: #15151a;
  --muted: #686977;
  --line: rgba(21, 21, 26, 0.12);
  --paper: #f7f8f4;
  --panel: rgba(255, 255, 255, 0.76);
  --coral: #ff6b5f;
  --mint: #45c7a5;
  --violet: #6f5cff;
  --gold: #f2b544;
  --blue: #2b7fff;
  --sky: #9fd2ff;
  --shadow: 0 22px 70px rgba(20, 22, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

code {
  padding: 0.12rem 0.32rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.92em;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.78);
  box-shadow: 0 12px 42px rgba(22, 24, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.project-links,
.contact-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #15151a;
  font-size: 0.78rem;
}

.main-nav {
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: rgba(21, 21, 26, 0.07);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 74px 0 48px;
}

.eyebrow,
.project-type {
  margin: 0;
  color: #7c4b18;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 6.2rem;
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: 4.1rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.hero-copy p,
.section-heading p,
.about-section p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.project-card:hover {
  transform: translateY(-3px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 34px rgba(21, 21, 26, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
}

.hero-visual {
  min-width: 0;
}

.browser-shell {
  overflow: hidden;
  border: 1px solid rgba(21, 21, 26, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.browser-bar span:nth-child(2) {
  background: var(--gold);
}

.browser-bar span:nth-child(3) {
  background: var(--mint);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.preview-card {
  min-height: 156px;
  padding: 18px;
  border-radius: 20px;
  color: #111;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22)),
    var(--sky);
}

.preview-card.tall {
  min-height: 326px;
  grid-row: span 2;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent),
    var(--coral);
}

.preview-card.dark {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent),
    #15151a;
}

.preview-tag {
  display: inline-flex;
  margin-bottom: 70px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.74rem;
  font-weight: 800;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 94px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
}

.stats-strip div {
  padding: 26px;
  background: rgba(255, 255, 255, 0.58);
}

.stats-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.38rem;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 0 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

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

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 54px rgba(22, 24, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  box-shadow: 0 24px 64px rgba(22, 24, 31, 0.14);
}

.project-art {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-rows: 56px 72px 28px;
  height: 220px;
  min-height: 220px;
  padding: 20px;
  background: #f3d0cb;
}

.project-art span {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.06);
}

.project-art span:nth-child(1) {
  grid-row: 1;
}

.project-art span:nth-child(2) {
  grid-row: 2;
  align-self: center;
}

.project-art span:nth-child(3) {
  grid-row: 3;
  align-self: end;
  justify-self: end;
}

.accent-mint .project-art {
  background: #bfe9dc;
}

.accent-violet .project-art {
  background: #d9d3ff;
}

.accent-gold .project-art {
  background: #f4d99b;
}

.accent-forest .project-art {
  background: #b7d89a;
}

.accent-wellness .project-art {
  background: #e6d2b8;
}

.accent-nightlife .project-art {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #ff7a21, #ff3bbd 46%, #3724d8 100%);
}

.accent-coral .project-type {
  color: #9a3129;
}

.accent-mint .project-type {
  color: #116c59;
}

.accent-violet .project-type {
  color: #4033a6;
}

.accent-gold .project-type {
  color: #78510b;
}

.accent-forest .project-type {
  color: #31572c;
}

.accent-wellness .project-type {
  color: #7a5d43;
}

.accent-nightlife .project-type {
  color: #7b1d7a;
}

.dashboard-art {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.dashboard-art span:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1;
}

.dashboard-art span:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}

.dashboard-art span:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2;
}

.dashboard-art span:nth-child(4) {
  grid-column: 1 / -1;
  grid-row: 3;
}

.shop-art,
.mobile-art,
.nature-art,
.wellness-art,
.nightlife-art {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.nature-art {
  grid-template-columns: 1.2fr 0.8fr;
}

.nature-art span:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.nature-art span:nth-child(2),
.nature-art span:nth-child(3) {
  grid-column: 2 / 3;
}

.nature-art span:nth-child(4) {
  grid-column: 1 / -1;
  grid-row: 3;
}

.wellness-art {
  grid-template-columns: 0.8fr 1.2fr;
}

.wellness-art span:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  border-radius: 999px 999px 8px 8px;
}

.wellness-art span:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1;
  align-self: end;
}

.wellness-art span:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2;
}

.wellness-art span:nth-child(4) {
  grid-column: 1 / -1;
  grid-row: 3;
  border-radius: 8px 999px 999px 8px;
}

.accent-coral .project-art {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.accent-coral .project-art span:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1;
}

.accent-coral .project-art span:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.accent-coral .project-art span:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 3;
  justify-self: stretch;
}

.nightlife-art {
  grid-template-columns: repeat(2, 1fr);
}

.nightlife-art span:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: rgba(255, 255, 255, 0.78);
}

.nightlife-art span:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1;
  background: rgba(8, 8, 12, 0.76);
}

.nightlife-art span:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2;
  background: rgba(255, 255, 255, 0.72);
}

.nightlife-art span:nth-child(4) {
  grid-column: 1 / -1;
  grid-row: 3;
  background: rgba(8, 8, 12, 0.82);
}

.mobile-art {
  padding-inline: 54px;
}

.project-content {
  padding: 24px;
}

.project-content p:not(.project-type) {
  color: var(--muted);
  line-height: 1.65;
}

.project-links {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.project-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-links a:first-child {
  color: #fff;
  background: var(--ink);
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.about-section {
  grid-template-columns: 0.72fr 1.28fr;
}

.profile-card {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: end;
  min-height: 470px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, #9fd2ff 0%, #f4d99b 54%, #ffb8b2 100%);
  box-shadow: 0 18px 54px rgba(22, 24, 31, 0.08);
  perspective: 1100px;
}

.profile-photo {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  border: 1px dashed rgba(21, 21, 26, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(21, 21, 26, 0.58);
  font-weight: 800;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
  will-change: transform;
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(255, 255, 255, 0.28) 42%,
    transparent 64%
  );
  transform: translateX(-130%);
  transition: opacity 260ms ease, transform 520ms ease;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  transition: transform 260ms ease;
}

.profile-card:hover .profile-photo {
  box-shadow: 0 26px 70px rgba(22, 24, 31, 0.18);
  filter: saturate(1.04) contrast(1.02);
  transform: rotateX(4deg) rotateY(-6deg) translateY(-5px);
}

.profile-card:hover .profile-photo::after {
  opacity: 1;
  transform: translateX(130%);
}

.profile-card:hover .profile-photo img {
  transform: scale(1.07) translateX(2px);
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  font-size: 1.26rem;
}

.profile-card > div:last-child span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.skill-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-section {
  padding-bottom: 76px;
}

.contact-section h2 {
  margin-bottom: 0;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

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

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    border-radius: 22px;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3.2rem;
  }

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

  .stats-strip {
    margin-bottom: 70px;
  }

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

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    gap: 32px;
  }

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

  h2 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-actions .button,
  .contact-actions .button,
  .project-links a {
    width: 100%;
  }

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

  .preview-card,
  .preview-card.tall {
    min-height: 170px;
    grid-row: auto;
  }

  .project-art {
    height: 180px;
    min-height: 180px;
    grid-template-rows: 46px 58px 28px;
    padding: 14px;
  }

  .project-content {
    padding: 20px;
  }

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

  .profile-photo,
  .profile-photo img {
    min-height: 300px;
  }

  .shop-art,
  .mobile-art {
    padding-inline: 20px;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }
}

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

  h2 {
    font-size: 1.82rem;
  }

  .stats-strip div {
    padding: 20px;
  }
}
