:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: rgb(3, 2, 19);
  --foreground: oklch(0.145 0 0);
  --muted: rgb(113, 113, 130);
  --muted-alpha: oklab(0.554577 0.00701806 -0.0251765 / 0.8);
  --wash: oklch(0.95 0.0058 264.53);
  --line: oklab(0.145 0 0 / 0.1);
  --line-strong: oklab(0.107364 0.00829297 -0.0438724 / 0.2);
  --accent: rgb(3, 2, 19);
  --primary-soft: oklab(0.107364 0.00829297 -0.0438724 / 0.1);
  --card: oklab(0.999994 0.0000455678 0.0000200868 / 0.5);
  --card-strong: oklab(0.999994 0.0000455678 0.0000200868 / 0.9);
  --card-glow: rgba(3, 2, 19, 0.06);
  --success: oklch(0.723 0.219 149.579);
  --radius: 0.625rem;
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

[data-theme="dark"] {
  --bg: #0c0c14;
  --surface: #0c0c14;
  --ink: rgb(240, 240, 252);
  --foreground: oklch(0.96 0 0);
  --muted: rgb(140, 140, 162);
  --muted-alpha: rgba(160, 160, 185, 0.75);
  --wash: #13131f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: rgb(240, 240, 252);
  --primary-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.08);
  --card-glow: rgba(255, 255, 255, 0.08);
  --success: oklch(0.723 0.219 149.579);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  transition: background-color 250ms ease, color 250ms ease;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 57px 0 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 9% 12%, oklab(0.107364 0.00829297 -0.0438724 / 0.05), transparent 6rem),
    radial-gradient(circle at 86% 23%, oklab(0.95 -0.000552882 -0.00577359 / 0.3), transparent 9rem),
    radial-gradient(circle at 13% 72%, oklab(0.939677 -0.000509471 -0.00574923 / 0.2), transparent 8rem);
  background-size: 106.5px 100%, auto, auto, auto;
}

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

img {
  max-width: 100%;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 57px;
  padding: 0 max(28px, calc((100vw - 1120px) / 2 + 28px));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(4px);
  transition: background-color 250ms ease, border-color 250ms ease;
}

.brand {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

nav a {
  color: var(--muted);
  padding: 7px 10.5px;
  font-size: 12.25px;
  font-weight: 400;
  line-height: 17.5px;
  letter-spacing: 0;
}

nav a:hover,
.text-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--ink);
  transform: rotate(12deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
  pointer-events: none;
}

:root:not([data-theme="dark"]) .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 57px);
  display: grid;
  grid-template-columns: 448px 448px;
  gap: 70px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 33px 28px;
}

.hero__content {
  width: 448px;
  max-width: 100%;
}

.availability {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  margin: 0 0 28px;
  border: 1px solid var(--line-strong);
  border-radius: 6.75px;
  padding: 10.5px 21px;
  background: var(--primary-soft);
  box-shadow: none;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 14px;
}

.availability span {
  font-size: 1rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 21px;
  color: var(--foreground);
  font-size: 63px;
  font-weight: 400;
  line-height: 63px;
}

h1 span {
  display: block;
}

h2 {
  margin: 0 0 14px;
  color: var(--foreground);
  font-size: 31.5px;
  font-weight: 500;
  line-height: 35px;
}

h3 {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.hero__summary {
  max-width: 448px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 21px;
  font-weight: 400;
  line-height: 28px;
}

.hero__summary strong {
  color: var(--ink);
}

.hero__focus {
  max-width: 392px;
  margin: 0;
  color: var(--muted-alpha);
  font-size: 15.75px;
  font-weight: 400;
  line-height: 24.5px;
}

.hero__links,
.text-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero__links {
  margin-top: 28px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6.75px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  line-height: 17.5px;
}

.button--primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface);
}

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

/* Lucide Icons Global Styling */
.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.8px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Specific alignments and overrides */
.theme-toggle .lucide {
  width: 20px;
  height: 20px;
}

.availability .lucide {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.button .lucide {
  width: 16px;
  height: 16px;
}

.social-links .lucide {
  width: 18px;
  height: 18px;
}

.skill-card h3,
.role-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-head p {
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-head p .lucide {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}


.project-actions a .lucide {
  width: 14px;
  height: 14px;
}


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

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-size: 12.25px;
  font-weight: 500;
  line-height: 17.5px;
  box-shadow: none;
}

.social-links a:hover {
  border-color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
  margin-top: 28px;
}

.hero-stats p {
  margin: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--foreground);
  font-size: 21px;
  font-weight: 500;
  line-height: 28px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12.25px;
  font-weight: 400;
  line-height: 17.5px;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: 336px;
  aspect-ratio: 1;
}

.hero__visual::before {
  position: absolute;
  inset: -18px;
  z-index: 0;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-soft), oklab(0.95 -0.000552882 -0.00577359 / 0.1));
  border-radius: inherit;
  filter: blur(20px);
}

.hero__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid oklab(0.999994 0.0000455678 0.0000200868 / 0.5);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hire-badge {
  position: absolute;
  right: -20px;
  bottom: -22px;
  z-index: 2;
  width: auto;
  white-space: nowrap;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10.5px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 21px;
  background: var(--card-strong);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

@keyframes badge-blink {
  0%, 49.99% {
    background: var(--success);
  }
  50%, 100% {
    background: color-mix(in srgb, var(--success), white 50%);
  }
}

.hire-badge span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--success);
  animation: badge-blink 1.5s infinite;
}

.section-block {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.section-block:nth-of-type(even) {
  background: var(--wash);
}

/* ── Scroll indicator ──────────────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  animation: scroll-bob 2.2s ease-in-out infinite;
}

.scroll-indicator__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.scroll-indicator__arrow {
  width: 18px;
  height: 18px;
  color: var(--muted);
  stroke-width: 1.6px;
}

@keyframes scroll-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%       { transform: translate(-50%, 8px); opacity: 1; }
}

.scroll-indicator:hover .scroll-indicator__label,
.scroll-indicator:hover .scroll-indicator__arrow {
  color: var(--ink);
}


.section-title {
  display: block;
  max-width: 784px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15.75px;
  font-weight: 400;
  line-height: 24.5px;
}

.kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.skills-grid,
.project-grid {
  width: min(1008px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
  margin: 0 auto;
}

.glass-panel,
.glass-card,
.case-card,
.skill-card,
.project-card,
.contact-card,
.message-card {
  border: 1px solid var(--line);
  border-radius: 10.5px;
  background: var(--card);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.message-card .button--primary::before {
  content: none;
}

.glass-card,
.skill-card,
.contact-card,
.message-card {
  min-height: 160px;
  padding: 21px;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.glass-card:hover,
.case-card:hover,
.skill-card:hover,
.contact-card:hover,
.message-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.glass-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--foreground);
  font-size: 21px;
  font-weight: 500;
  line-height: 28px;
}

.glass-card > p:not(.role-head p), .case-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.glass-card span,
.case-card p:not(.case-meta),
.project-card p,
.contact-card p,
.contact-card a {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-transform: none;
}

.skill-card {
  min-height: 107px;
}

.skill-card h3 {
  margin-bottom: 17px;
}

.skill-card .tag-row {
  margin-top: 0;
}

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

.case-card {
  overflow: hidden;
  background: var(--card);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.case-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f1f1f4;
  border-bottom: 1px solid var(--line);
}

.case-card--wide img {
  height: 100%;
  min-height: 360px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.case-card > div {
  padding: 21px;
}

.case-card h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 28px;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span,
.tag-cloud span {
  border: 1px solid oklab(0.11 0.01 -0.04 / 0.18);
  border-radius: calc(var(--radius) - 2px);
  padding: 3.5px 10px;
  color: var(--ink);
  background: var(--wash);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
}

.timeline {
  display: grid;
  width: min(784px, 100%);
  margin: 0 auto;
  gap: 21px;
}

.timeline .glass-card {
  display: block;
  min-height: 191px;
}

.role-head {
  display: flex;
  justify-content: space-between;
  gap: 21px;
  margin-bottom: 17px;
}

.role-head > div:last-child {
  text-align: right;
  align-self: flex-start;
}

.role-head > div:last-child p {
  justify-content: flex-end;
}

.role-head p,
.timeline .glass-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-transform: none;
  letter-spacing: 0;
}

.timeline .glass-card > p {
  margin-bottom: 14px;
}

.project-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--border, #0000001a);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card, #ffffff);
  box-shadow: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card::before {
  content: none;
}

.project-preview {
  position: relative;
  display: block;
  height: 188px;
  overflow: hidden;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.project-preview::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.18));
  opacity: 0.55;
}

.project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.project-card:hover .project-preview img {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.025);
}

.project-carousel__track,
.project-carousel__slide {
  position: absolute;
  inset: 0;
}

.project-carousel__slide {
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.project-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.project-carousel__slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(3, 2, 19, 0.68);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  backdrop-filter: blur(8px);
}

.project-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(3, 2, 19, 0.58);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) scale(0.94);
  transition:
    background 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
  backdrop-filter: blur(10px);
}

.project-carousel:hover .project-carousel__button,
.project-carousel:focus-within .project-carousel__button {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.project-carousel__button:hover {
  background: rgba(3, 2, 19, 0.78);
}

.project-carousel__button--prev {
  left: 12px;
}

.project-carousel__button--next {
  right: 12px;
}

.project-carousel__button .lucide {
  width: 17px;
  height: 17px;
}

.project-carousel__dots {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-carousel__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 160ms ease, background 160ms ease;
}

.project-carousel__dots span.is-active {
  width: 18px;
  background: #ffffff;
}

.project-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 24px;
}

.project-body h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.project-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.project-card .tag-row {
  gap: 10px;
}



.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.project-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  border: 1px solid var(--line-strong);
  border-radius: 6.75px;
  padding: 8px 14px;
  background: var(--card);
  color: var(--foreground);
  font-size: 12.25px;
  font-weight: 500;
  line-height: 17.5px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.project-actions a:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.project-actions a:not(.project-actions__code) {
  background: var(--accent);
  color: var(--surface);
}

.project-actions__code {
  min-width: 128px;
}

.contact-section {
  background: var(--wash);
}

.contact-grid {
  width: min(784px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin: 0 auto;
}

.contact-list {
  display: grid;
  gap: 21px;
}

.contact-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--wash);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.contact-card__icon .lucide {
  width: 18px;
  height: 18px;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__body h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  display: block;
}

.contact-card__body a,
.contact-card__body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: block;
}

.message-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.message-card h3 {
  margin-bottom: 4px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6.75px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field textarea {
  min-height: 90px;
}

.text-links {
  margin-top: 16px;
}

.text-links a {
  border-bottom: 1px solid var(--foreground);
  color: var(--foreground);
  font-weight: 500;
}

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

.site-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  padding: 48px 28px 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.site-footer__name {
  margin: 0;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer__copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .home-nav {
    padding-inline: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
  }

  .hero__visual {
    width: min(336px, 86vw);
  }

  .profile-grid,
  .compact-grid,
  .skills-grid,
  .project-grid,
  .contact-grid,
  .case-grid,
  .case-card--wide,
  .timeline .glass-card,
  .section-title {
    grid-template-columns: 1fr;
  }

  .case-card--wide {
    grid-column: span 1;
  }

  .case-card--wide img {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .role-head {
    display: block;
  }

  .role-head > div:last-child {
    margin-top: 10px;
    text-align: left;
  }
}

@media (max-width: 700px) {
  body::before {
    background-size: 58px 58px, 58px 58px, auto, auto;
  }

  .home-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .hero {
    gap: 48px;
    padding: 42px 18px 54px;
  }

  .hero__content {
    width: 100%;
  }

  .availability {
    min-height: 48px;
    margin-bottom: 34px;
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 63px);
    line-height: 1;
  }

  .hero__summary {
    font-size: 21px;
  }

  .hero__links {
    margin-top: 32px;
  }

  .button {
    width: 100%;
    min-height: 58px;
  }

  .project-grid,
  .skills-grid {
    width: min(100% - 36px, 520px);
  }

  .project-card {
    min-height: 0;
  }

  /* Buttons shouldn't stretch on mobile */

  .project-carousel__button {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .social-links {
    margin-top: 32px;
  }

  .hero__visual {
    width: min(360px, 88vw);
  }

  .hero__visual::before {
    inset: -18px;
  }

  .hire-badge {
    right: 50%;
    bottom: -24px;
    min-height: 54px;
    padding-inline: 18px;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .section-block {
    padding: 56px 0;
  }
}
