:root {
  --bg: #111214;
  --bg-soft: #17191c;
  --surface: #1b1d21;
  --surface-2: #202329;
  --text: #f2f2f0;
  --muted: #b4b7bd;
  --muted-2: #8d9199;
  --line: #2b2f36;
  --line-strong: #3a3f48;
  --accent: #e8e8e6;
  --max: 1080px;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #18191c 0%, #1d1f23 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

input,
textarea,
button {
  font: inherit;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

main {
  padding-bottom: 2rem;
}

.hero {
  padding: 4.75rem 0 3rem;
  text-align: center;
}

.hero-photo-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.95rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0e0f11;
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 5%;
  transform: scale(1.56);
  transform-origin: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-intro {
  width: min(100%, 760px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2rem;
}

.hero-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.15rem;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hero-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.button,
.text-link {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.52rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.774);
  color: black;
}

.button-full {
  width: 100%;
}

.section {
  padding: 1.5rem 0 4rem;
}

#contact {
  padding-bottom: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin-bottom: 0;
  max-width: 760px;
  color: var(--muted-2);
}

.simple-text {
  max-width: 820px;
}

.simple-text p {
  color: var(--muted);
}

.simple-text p:last-child {
  margin-bottom: 0;
}

.project-list {
  display: grid;
  gap: 1.2rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(290px, 390px) 1fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow);
}

.project-media {
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
  object-position: center;
}

.project-content {
  padding: 1.55rem;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-topline h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.project-topline span {
  color: var(--muted-2);
  font-size: 0.93rem;
  white-space: nowrap;
}

.project-content p,
.project-content li {
  color: var(--muted);
}

.project-content ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.15rem;
}

.text-link {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.08rem;
  border-color: var(--muted);
}

.text-link:hover {
  color: #ffffff;
  border-color: black;
}

.profile-sheet {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.profile-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.profile-line {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-line:last-child {
  border-bottom: 0;
}

.profile-label {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  padding-top: 0.22rem;
}

.profile-body h3,
.entry-head h4 {
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.profile-body > p,
.entry p,
.skill-label,
.skills-grid p {
  color: var(--muted);
}

.entry + .entry {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.entry-head span {
  color: var(--muted-2);
  font-size: 0.93rem;
  white-space: nowrap;
}

.entry-role,
.skill-label {
  color: white;
  font-size: 0.95rem;
}

.skill-label {
  margin-bottom: 0.2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 3.5rem;
}

.button-minimal {
  min-height: 38px;
  padding: 0.58rem 0.9rem;
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 0.92rem;
}

.button-minimal:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

#contact .section-heading {
  align-items: left;
  text-align: left;
}

#contact .section-heading p {
  max-width: 520px;
}

.contact-form {
  width: min(100%, 640px);
}

.contact-side,
.contact-grid .panel,
aside.contact-side {
  display: none;
}

.field + .field {
  margin-top: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: 0.9rem 0;
  outline: none;
  transition: border-color 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.contact-submit {
  min-height: 40px;
  min-width: 112px;
  padding: 0.5rem 0.85rem;
  border-color: #ffffff;
  background: #ffffff;
  color: #111214;
  gap: 0.45rem;
}

.contact-submit:hover {
  background: #f2f2f0;
  border-color: #f2f2f0;
  color: #111214;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  line-height: 1;
}

.button-icon svg {
  width: 100%;
  height: 100%;
}

.hp {
  position: absolute;
  left: -9999px;
}

.contact-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95rem;
  text-align: left;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-card img {
    min-height: 240px;
  }

  .profile-line {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

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

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

@media (max-width: 640px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-photo-frame {
    width: 140px;
    height: 140px;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .project-content {
    padding: 1.2rem;
  }

  .project-topline,
  .entry-head,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
