/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
  --ink: #010101;
  --ink-2: #21342d;
  --paper: #f6f8f2;
  --paper-2: #edf2ec;
  --paper-3: #e0e8df;
  --accent: #2e7b61;
  --accent-2: #1d5c49;
  --accent-soft: #d9e9df;
  --muted: #65736d;
  --muted-2: #8a9690;
  --line: rgba(20, 33, 29, 0.14);
  --shadow: 0 28px 70px -42px rgba(20, 33, 29, 0.34);
  --display: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

.arr {
  margin-left: 5px;
  font-style: normal;
  display: inline-block;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

/* ==========================================================================
   UTILITIES & GLOBAL
   ========================================================================== */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  height: 3px;
  width: 0;
  background: var(--accent);
}

.container {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    height 220ms ease,
    backdrop-filter 220ms ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  height: 64px;
  border-bottom-color: var(--line);
  background: rgba(246, 248, 242, 0.82);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.nav__brand {
  justify-self: start;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 220ms ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  right: 0;
}

.nav__cta {
  justify-self: end;
  min-width: 104px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent);
}

.nav__cta:active,
.btn:active,
.project-card__actions a:active {
  transform: translateY(1px);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 260ms ease, opacity 260ms ease;
}

.nav__toggle span+span {
  margin-top: 5px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(20, 33, 29, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: min(320px, 84vw);
  padding: 28px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 48px rgba(20, 33, 29, 0.12);
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-bottom: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.drawer__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.drawer__close span:first-child {
  transform: rotate(45deg);
}

.drawer__close span:last-child {
  transform: rotate(-45deg);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer__nav a {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background 180ms ease;
}

.drawer__nav a:hover {
  background: var(--paper-2);
}

.drawer__cta {
  margin-top: 16px;
  text-align: center;
}

.scroll-stack {
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100dvh;
  padding: 110px 32px 44px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--paper);
  transform-origin: center;
  will-change: transform;
}


.hero__inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.hero__copy {
  align-self: center;
}

.hero__kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero__lede {
  max-width: 36rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 19px);
  font-style: italic;
  line-height: 1.55;
  border-left: 3px solid var(--accent-soft);
  padding-left: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn--primary {
  background: var(--accent);
  color: #f7fbf6;
}

.btn--primary:hover {
  background: var(--accent-2);
}

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

.btn--secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero__visual {
  position: relative;
  min-height: min(88vh, 920px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.hero__halo {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: -1;
  width: clamp(300px, 32vw, 520px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.52), transparent 22%),
    linear-gradient(135deg, #d7e9dc, #8fbaa5 58%, #2e7b61);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 42px 92px -54px rgba(20, 33, 29, 0.72);
}

.hero__portrait {
  width: min(64vw, 860px);
  max-width: 100%;
  max-height: min(88vh, 1000px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 34px rgba(20, 33, 29, 0.22));
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */
.section.about {
  position: relative;
  z-index: 2;
  background: var(--paper);
  transform-origin: top center;
  will-change: transform;
}


.section {
  padding: 112px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.section-head p {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.about__copy p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.62;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.metric-strip div {
  padding: 22px 20px 18px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: none;
}

.metric-strip strong {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.metric-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.about__images {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
  align-items: end;
}

.about__images img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
  filter: saturate(0.94);
  box-shadow: var(--shadow);
}

.about__images img:nth-child(2) {
  height: 360px;
  margin-bottom: 46px;
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */
.experience-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

.experience-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.experience-card__body {
  display: grid;
  grid-template-columns: minmax(220px, 0.76fr) 1fr;
  gap: 36px;
}

.experience-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.experience-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.experience-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}

.experience-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  background: var(--paper-3);
  color: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__media span {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 13px 18px;
  border-radius: 999px;
  transform: translate(-50%, -44%);
  background: rgba(20, 33, 29, 0.84);
  color: var(--paper);
  font-weight: 700;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.project-card__media:hover img {
  transform: scale(1.045);
}

.project-card__media:hover span {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 22px;
}

.project-card__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.project-card h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.project-card time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.project-card p {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.project-card__tags span,
.skills__pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

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

.project-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.project-card__actions a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills__table {
  display: flex;
  flex-direction: column;
}

.skills__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.skills__row:last-child {
  border-bottom: 1px solid var(--line);
}

.skills__cat {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 7px;
}

.skills__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   EDUCATION SECTION
   ========================================================================== */
.education__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 24px;
  align-items: stretch;
}

.education-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 0%, rgba(46, 123, 97, 0.25), transparent 22rem),
    var(--ink);
  color: var(--paper);
}

.education-card__logo {
  width: 78px;
  height: 78px;
  margin-bottom: 74px;
  padding: 10px;
  border-radius: 22px;
  background: var(--paper);
}

.education-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-card span {
  color: rgba(246, 248, 242, 0.68);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.education-card h3 {
  max-width: 12ch;
  margin: 14px 0;
  font-size: 42px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.education-card p,
.education-card small {
  color: rgba(246, 248, 242, 0.76);
}

.education-card p {
  margin: 0 0 8px;
  font-size: 20px;
}

.education-card small {
  font-family: var(--mono);
  font-size: 13px;
}

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

.cert-list article {
  min-height: 198px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.38);
}

.cert-list span {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.cert-list h3 {
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cert-list p {
  margin: 0;
  color: var(--muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
  padding: 112px 0 112px;
  background: var(--ink);
  color: var(--paper);
}

.contact .section-label {
  color: var(--accent);
}

.contact .section-head h2 {
  color: var(--paper);
}

.contact .section-head p {
  color: var(--paper-3);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(30px, 6vw, 88px);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact__val {
  color: var(--paper);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 180ms ease;
}

a.contact__val:hover {
  color: var(--accent);
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.social-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  transition:
    border-color 220ms ease,
    background 220ms ease;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

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

.form__error {
  min-height: 18px;
  color: #f87171;
  font-size: 12px;
}

.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 50px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #f7fbf6;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.form__submit:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.form__submit:active {
  transform: translateY(1px);
}

.form__submit .arr {
  margin-left: 6px;
  font-style: normal;
}

.form__success {
  display: none;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(46, 123, 97, 0.2);
  border: 1px solid rgba(46, 123, 97, 0.4);
  color: #b7dcc8;
  font-size: 14px;
}

.form__success.is-visible {
  display: block;
}

/* ==========================================================================
   FOOTER & ANIMATIONS
   ========================================================================== */
.footer {
  padding: 36px 0;
  background: #010101;
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer span {
  color: rgba(246, 248, 242, 0.5);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

*:focus-visible {
  outline: 3px solid rgba(46, 123, 97, 0.42);
  outline-offset: 4px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 860px) {
  .container {
    width: min(100% - 36px, 1320px);
  }

  .nav {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
    flex-direction: column;
  }

  .hero {
    padding: 92px 18px 48px;
  }

  .hero__inner,
  .about__grid,
  .experience-card,
  .experience-card__body,
  .education__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    text-align: left;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(36px, 10vw, 54px);
  }

  .hero__visual {
    order: -1;
    min-height: 480px;
  }

  .hero__portrait {
    width: min(86vw, 520px);
    max-height: 560px;
  }

  .hero__halo {
    width: min(62vw, 340px);
  }

  .section {
    padding: 82px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-head h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

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

  .about__images img,
  .about__images img:nth-child(2) {
    height: 340px;
    margin: 0;
  }

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

  .project-card__media {
    aspect-ratio: 1.28;
  }

  .skills__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .metric-strip {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .about__images img,
  .about__images img:nth-child(2) {
    height: 310px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}