:root {
  color-scheme: dark;
  --page: #09100e;
  --page-soft: #0d1512;
  --surface: rgba(17, 27, 23, 0.82);
  --surface-solid: #111b17;
  --surface-raised: #17221d;
  --line: rgba(207, 230, 216, 0.11);
  --line-strong: rgba(207, 230, 216, 0.19);
  --text: #f1f5f0;
  --muted: #9aa9a0;
  --quiet: #708077;
  --accent: #a4f3c0;
  --accent-bright: #6de49a;
  --accent-ink: #102117;
  --blue: #91c8ff;
  --content: 1120px;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 82% 8%, rgba(54, 117, 79, 0.14), transparent 34rem),
    radial-gradient(ellipse at 3% 44%, rgba(42, 83, 69, 0.09), transparent 32rem),
    var(--page);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(164, 243, 192, 0.28);
  color: #fff;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 16, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(164, 243, 192, 0.4);
  border-radius: 12px;
  background: rgba(164, 243, 192, 0.08);
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 500;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.main-nav,
.header-socials,
.hero-actions,
.hero-contact,
.section-heading,
.experience-topline,
.project-topline,
.contact-links {
  display: flex;
  align-items: center;
}

.main-nav {
  justify-content: center;
  gap: 30px;
}

.main-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-socials {
  gap: 9px;
}

.social-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 243, 192, 0.45);
  background: rgba(164, 243, 192, 0.09);
  color: var(--accent);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.page-main {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.home-hero {
  position: relative;
  min-height: min(740px, calc(100svh - 76px));
  padding: 96px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 9vw, 128px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 14px rgba(109, 228, 154, 0.8);
  content: "";
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.99;
  overflow-wrap: anywhere;
}

.hero-role {
  margin: 0 0 23px;
  color: var(--accent);
  font-size: clamp(20px, 2.8vw, 29px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.hero-description {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button-primary,
.button-secondary {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #c0f8d1;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 243, 192, 0.42);
  color: var(--accent);
}

.button-arrow {
  font-size: 16px;
  line-height: 1;
}

.hero-contact {
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 30px;
}

.hero-contact a,
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  font-size: 11px;
  text-decoration: none;
  transition: color 180ms ease;
}

.hero-contact a:hover {
  color: var(--accent);
}

.contact-icon {
  color: var(--accent);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  width: min(100%, 400px);
  justify-self: center;
  padding: 15px;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(164, 243, 192, 0.14);
  border-radius: 50%;
  content: "";
  inset: -13px;
}

.hero-visual::after {
  border-color: rgba(145, 200, 255, 0.1);
  inset: -30px;
}

.hero-photo-frame {
  position: relative;
  aspect-ratio: 0.88;
  overflow: hidden;
  border: 1px solid rgba(207, 230, 216, 0.2);
  border-radius: 46% 46% 28px 28px;
  background:
    radial-gradient(circle at 50% 24%, rgba(164, 243, 192, 0.19), transparent 52%),
    var(--surface-raised);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 70px rgba(73, 150, 101, 0.12);
}

.hero-photo-frame::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  content: "";
  inset: 10px;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(164, 243, 192, 0.18), transparent 36%),
    linear-gradient(145deg, #20352a, #111b17 68%);
  color: rgba(225, 247, 232, 0.88);
  font-family: "DM Mono", monospace;
  font-size: clamp(72px, 12vw, 124px);
  font-weight: 500;
  letter-spacing: -0.1em;
}

.hero-image-caption {
  position: absolute;
  right: -13px;
  bottom: 42px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(13, 21, 18, 0.92);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.image-caption-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  vertical-align: 1px;
}

.content-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(29px, 4vw, 41px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.14;
}

.section-description {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 20px;
  margin-bottom: 18px;
}

.about-copy,
.about-note,
.skill-card,
.experience-card,
.education-card,
.toolkit-card,
.project-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(22, 34, 29, 0.82), rgba(14, 22, 19, 0.8));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.1);
}

.about-copy,
.about-note {
  min-height: 100%;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius);
}

.about-copy p,
.about-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-note {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.about-note::after {
  position: absolute;
  right: -30px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(164, 243, 192, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(164, 243, 192, 0.025), 0 0 0 44px rgba(164, 243, 192, 0.02);
  content: "";
}

.about-note-label {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-note p {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  min-height: 190px;
  padding: 23px;
  border-radius: 18px;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.skill-card:hover,
.project-card:hover,
.education-card:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 243, 192, 0.3);
  background-color: rgba(164, 243, 192, 0.025);
}

.skill-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(164, 243, 192, 0.16);
  border-radius: 14px;
  background: rgba(164, 243, 192, 0.07);
  color: var(--accent);
  font-size: 22px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.experience-list {
  display: grid;
  gap: 15px;
}

.experience-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius);
  transition: border-color 180ms ease, transform 180ms ease;
}

.experience-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(164, 243, 192, 0.05));
  content: "";
}

.experience-topline,
.project-topline {
  justify-content: space-between;
  gap: 16px;
}

.experience-dates,
.project-category {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.experience-location,
.project-period {
  color: var(--quiet);
  font-size: 11px;
  text-align: right;
}

.experience-role {
  margin: 18px 0 5px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.experience-company {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.experience-employment {
  margin: 7px 0 0;
  color: var(--quiet);
  font-size: 11px;
}

.experience-tasks {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.experience-task {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.experience-task::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "↗";
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.tag {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #bac8bf;
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-width: 0;
  min-height: 260px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: var(--radius);
  transition: transform 200ms ease, border-color 200ms ease;
  overflow-wrap: anywhere;
}

.project-card-featured {
  grid-column: 1 / -1;
  min-height: 300px;
  background:
    radial-gradient(ellipse at 90% 4%, rgba(91, 167, 117, 0.15), transparent 52%),
    linear-gradient(145deg, rgba(22, 34, 29, 0.95), rgba(14, 22, 19, 0.9));
}

.project-number {
  position: absolute;
  right: 27px;
  bottom: 4px;
  color: rgba(214, 237, 221, 0.045);
  font-family: "DM Mono", monospace;
  font-size: clamp(92px, 15vw, 170px);
  line-height: 1;
  pointer-events: none;
}

.project-topline,
.project-card h3,
.project-card p,
.project-card .tag-list {
  position: relative;
  z-index: 1;
}

.project-topline {
  flex-wrap: wrap;
  gap: 8px 14px;
}

.project-card h3 {
  max-width: 620px;
  margin: 30px 0 12px;
  color: var(--text);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.project-card:not(.project-card-featured) h3 {
  margin-top: 26px;
  font-size: 22px;
}

.project-card p {
  display: -webkit-box;
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.education-card {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 23px;
  border-radius: 18px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.education-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(145, 200, 255, 0.18);
  border-radius: 14px;
  background: rgba(145, 200, 255, 0.07);
  color: var(--blue);
  font-size: 18px;
}

.education-school {
  margin: 1px 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.education-degree,
.education-dates {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.education-dates {
  margin-top: 7px;
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.toolkit-card {
  padding: 24px;
  border-radius: 18px;
}

.toolkit-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.toolkit-category::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(109, 228, 154, 0.35);
  content: "";
  transform: rotate(45deg);
}

.toolkit-copy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 7vw, 68px);
  border: 1px solid rgba(164, 243, 192, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(164, 243, 192, 0.13), transparent 40%),
    linear-gradient(140deg, #14221a, #101815 70%);
  text-align: center;
}

.contact-panel::after {
  position: absolute;
  right: -105px;
  bottom: -240px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(164, 243, 192, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(164, 243, 192, 0.02), 0 0 0 60px rgba(164, 243, 192, 0.018);
  content: "";
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-title {
  max-width: 700px;
  margin: 0 auto 14px;
  color: var(--text);
  font-size: clamp(29px, 5vw, 47px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.contact-copy {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-links .button-secondary {
  background: rgba(255, 255, 255, 0.035);
}

.site-footer {
  margin-top: 35px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--quiet);
  font-size: 10px;
}

.footer-brand {
  color: var(--muted);
  font-weight: 700;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.back-to-top:hover {
  color: var(--accent);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-detail-link,
.blog-read-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: gap 180ms ease, color 180ms ease;
}

.project-detail-link:hover,
.blog-read-more:hover {
  gap: 13px;
  color: #c0f8d1;
}

.page-intro {
  padding-bottom: 42px;
  border-top: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 88px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 34, 29, 0.82), rgba(14, 22, 19, 0.8));
  transition: transform 200ms ease, border-color 200ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 243, 192, 0.3);
}

.blog-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-raised);
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.035);
}

.blog-card-body {
  padding: clamp(20px, 4vw, 28px);
}

.blog-date {
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.blog-card-title {
  margin: 12px 0 9px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.blog-card-title a {
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.empty-state {
  margin: 0 0 88px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state .button-secondary {
  margin-top: 20px;
}

.article-page {
  width: 100%;
  min-width: 0;
  max-width: 860px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.article-back:hover {
  color: var(--accent);
}

.article-header {
  min-width: 0;
  margin-bottom: 38px;
}

.article-title {
  margin: 15px 0;
  color: var(--text);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.article-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-content {
  color: #c3d0c7;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.8em 0 0.7em;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.article-content h2 {
  font-size: 29px;
}

.article-content h3 {
  font-size: 23px;
}

.article-content p {
  margin: 0 0 1.15em;
}

.article-content > div {
  margin: 0 0 1.15em;
}

.article-content a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 8px 0 8px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text);
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 8px;
  margin: 1em 0;
  padding-left: 1.5em;
}

.article-gallery {
  margin-top: 58px;
}

.article-gallery .section-title {
  margin-bottom: 22px;
  font-size: 24px;
}


.gallery-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}

.gallery-item {
display: block;
overflow: hidden;
aspect-ratio: 4 / 3;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--surface-raised);
}

.gallery-item img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
transition: transform 250ms ease;
}

.gallery-item:hover img {
transform: scale(1.02);
}
.gallery-item:hover img {
  transform: scale(1.035);
}

@media (max-width: 900px) {
  .header-inner {
    gap: 16px;
  }

  .main-nav {
    gap: 17px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.78fr);
    gap: 42px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 125px;
  }

  .header-inner,
  .page-main,
  .footer-inner {
    width: min(100% - 36px, var(--content));
  }

  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0 14px;
    padding: 13px 0 0;
  }

  .brand {
    margin-right: auto;
    padding-bottom: 12px;
  }

  .header-socials {
    order: 1;
    padding-bottom: 12px;
  }

  .main-nav {
    order: 2;
    width: calc(100% + 36px);
    margin: 0 -18px;
    padding: 0 18px 12px;
    justify-content: flex-start;
    gap: 23px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding-top: 11px;
    font-size: 11px;
  }

  .home-hero {
    min-height: 0;
    padding: 72px 0 78px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-title {
    font-size: clamp(47px, 13vw, 72px);
  }

  .hero-visual {
    width: min(77%, 330px);
    justify-self: center;
  }

  .hero-image-caption {
    right: -22px;
    bottom: 28px;
  }

  .content-section {
    padding: 68px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-bottom: 25px;
  }

  .about-intro,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding-bottom: 68px;
  }

  .about-note {
    min-height: 190px;
  }

  .project-card-featured {
    grid-column: auto;
    min-height: 280px;
  }

  .project-card:not(.project-card-featured) {
    min-height: 230px;
  }

  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .skills-grid,
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 0;
  }

  .experience-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .experience-location {
    text-align: left;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--page);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--page);
  border-radius: 999px;
  background: #354b3d;
}

::-webkit-scrollbar-thumb:hover {
  background: #52765e;
}
