:root {
  --bg: #f4f2ec;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --ink: #171714;
  --muted: #6f6d66;
  --line: rgba(23, 23, 20, 0.12);
  --accent: #315f4a;
  --accent-soft: #dce8df;
  --warm: #d8a05d;
  --shadow: 0 24px 70px rgba(35, 35, 29, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(216, 160, 93, 0.13), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(49, 95, 74, 0.12), transparent 24%),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.brand-text {
  font-family: "Manrope", sans-serif;
}

.site-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  transition: color 180ms ease;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.menu-button span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 88px);
  padding: 76px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.6rem, 7vw, 7rem);
  line-height: 0.94;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-description {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 28px rgba(23, 23, 20, 0.18);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: grid;
  gap: 5px;
}

.hero-meta strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.22rem;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.visual-glow-one {
  width: 260px;
  height: 260px;
  top: 40px;
  right: -20px;
  background: rgba(216, 160, 93, 0.28);
}

.visual-glow-two {
  width: 200px;
  height: 200px;
  bottom: 30px;
  left: -40px;
  background: rgba(49, 95, 74, 0.2);
}

.profile-card {
  position: relative;
  width: min(100%, 440px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45a66b;
  box-shadow: 0 0 0 5px rgba(69, 166, 107, 0.12);
}

.portrait-placeholder {
  height: 260px;
  margin: 22px 0;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(23, 23, 20, 0.08), rgba(23, 23, 20, 0)),
    linear-gradient(145deg, #547665, #d9b17c);
  overflow: hidden;
}

.portrait-placeholder span {
  font-family: "Manrope", sans-serif;
  font-size: 6.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.88);
}

.profile-label,
.project-type {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card-content h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech-stack span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 600;
}

.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.02;
}

.about-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.muted-note {
  max-width: 250px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: right;
}

.project-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(35, 35, 29, 0.07);
}

.project-card-large {
  grid-column: 1 / -1;
}

.project-visual {
  min-height: 310px;
  padding: 34px;
  display: grid;
  place-items: center;
}

.project-card-large .project-visual {
  min-height: 440px;
}

.project-visual-one {
  background: linear-gradient(135deg, #234438, #5f826f);
}

.project-visual-two {
  background: linear-gradient(145deg, #ddb177, #f2ddbd);
}

.project-visual-three {
  background: linear-gradient(145deg, #242525, #555b59);
}

.mock-window {
  width: min(100%, 760px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.mock-toolbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #eeeee9;
}

.mock-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b4b4ad;
}

.mock-dashboard {
  min-height: 250px;
  display: grid;
  grid-template-columns: 110px 1fr;
}

.mock-sidebar {
  background: #18382e;
}

.mock-content {
  padding: 34px;
}

.mock-line {
  width: 72%;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #dfe2dd;
}

.mock-line.short {
  width: 34%;
}

.mock-chart {
  height: 125px;
  margin-top: 30px;
  border-radius: 12px;
  background:
    linear-gradient(to top, rgba(49, 95, 74, 0.14), transparent),
    repeating-linear-gradient(to right, transparent 0 50px, rgba(23, 23, 20, 0.06) 51px),
    repeating-linear-gradient(to bottom, transparent 0 30px, rgba(23, 23, 20, 0.06) 31px);
}

.mobile-mock {
  width: 180px;
  height: 320px;
  padding: 18px;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 36px;
  background: #f8f4eb;
  box-shadow: 0 25px 42px rgba(86, 61, 27, 0.18);
}

.mobile-pill {
  width: 48px;
  height: 7px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #2c2c28;
}

.mobile-card {
  height: 130px;
  border-radius: 18px;
  background: linear-gradient(150deg, #385d4c, #9bb19f);
}

.mobile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.mobile-row span {
  height: 60px;
  border-radius: 14px;
  background: #e3d2b7;
}

.code-card {
  width: min(100%, 390px);
  display: grid;
  gap: 9px;
  padding: 28px;
  border-radius: 18px;
  background: #111312;
  color: #e8efe9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.28);
}

.project-copy {
  padding: 28px 30px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.project-copy h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.project-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact {
  margin: 70px 0;
  padding: 60px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
}

.contact .eyebrow {
  color: #b9d6c5;
}

.contact p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.7;
}

.button-light {
  flex: 0 0 auto;
  background: white;
  color: var(--ink);
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .profile-card {
    width: min(100%, 560px);
  }

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

  .project-card-large {
    grid-column: auto;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 14px;
    z-index: 20;
    width: 180px;
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .menu-button {
    display: block;
  }

  .hero {
    padding: 56px 0 74px;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-meta {
    gap: 24px;
  }

  .hero-visual {
    min-height: auto;
  }

  .profile-card {
    padding: 18px;
  }

  .portrait-placeholder {
    height: 220px;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid {
    gap: 20px;
  }

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

  .muted-note {
    text-align: left;
  }

  .project-visual,
  .project-card-large .project-visual {
    min-height: 290px;
    padding: 22px;
  }

  .mock-dashboard {
    grid-template-columns: 72px 1fr;
  }

  .mock-content {
    padding: 22px;
  }

  .project-copy {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .contact {
    margin: 48px 0;
    padding: 36px 28px;
  }

  .site-footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
