:root {
  --paper: #f6f6f6;
  --mist: #d6e4f0;
  --blue: #1e56a0;
  --ink: #163172;
  --line: rgb(22 49 114 / 17%);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  color-scheme: light;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
::selection {
  color: var(--paper);
  background: var(--blue);
}
a {
  color: inherit;
}
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 7vw;
  color: var(--paper);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 3rem);
}
.nav-links a {
  position: relative;
  padding: 0.6rem 0;
  color: var(--mist);
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--paper);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links .cv-link {
  padding: 0.7rem 1rem;
  border: 1px solid rgb(214 228 240 / 48%);
  color: var(--paper);
}
.nav-links .cv-link::after {
  display: none;
}
.nav-links .cv-link:hover {
  background: var(--mist);
  color: var(--ink);
}
.hero {
  position: relative;
  min-height: min(900px, 100svh);
  padding: 105px 7vw 28px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero::before {
  position: absolute;
  top: 10%;
  right: -18%;
  width: min(75vw, 1050px);
  aspect-ratio: 1;
  border: 1px solid rgb(214 228 240 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 6vw rgb(214 228 240 / 2%),
    0 0 0 12vw rgb(214 228 240 / 2%);
  content: "";
}
.hero-topline,
.hero-footer,
.section-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-topline,
.hero-footer,
.eyebrow,
.section-index,
.portrait-index {
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hero-topline {
  color: var(--mist);
}
.hero-topline i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--mist);
  box-shadow: 0 0 0 4px rgb(214 228 240 / 12%);
}
.hero-layout {
  position: relative;
  display: grid;
  min-height: min(680px, calc(100svh - 190px));
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 1rem 0 2.5rem;
}
.hero-copy .eyebrow,
.section-top .eyebrow {
  color: var(--blue);
}
.hero-copy .eyebrow {
  margin-bottom: 1.5rem;
  color: var(--mist);
}
.hero-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font: 700 clamp(4rem, 8vw, 8rem)/0.86 var(--serif);
  letter-spacing: -0.085em;
}
.hero-name-main {
  color: var(--paper);
}
.hero-name-last {
  margin-left: clamp(1rem, 8vw, 9rem);
  color: var(--mist);
  font-style: italic;
}
.hero-bottom {
  display: flex;
  width: min(75%, 480px);
  align-items: center;
  justify-content: space-between;
  margin: 2.4rem 0 0 clamp(1rem, 8vw, 9rem);
}
.hero-role {
  margin: 0;
  color: var(--mist);
  font: 500 clamp(0.9rem, 1.4vw, 1.15rem) var(--mono);
  letter-spacing: 0.03em;
}
.portrait-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  justify-self: end;
  margin: 0 7% 1rem 0;
}
.portrait-wrap::before {
  position: absolute;
  inset: 9% -9% -8% 10%;
  border: 1px solid rgb(214 228 240 / 42%);
  content: "";
  transform: rotate(5deg);
  transition: transform 0.5s;
}
.portrait-wrap:hover::before {
  transform: rotate(1deg) translate(-4px, 4px);
}
.photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: center 23%;
  filter: grayscale(1);
}
.hero-footer {
  gap: 1rem;
  color: var(--mist);
}
.hero-rule {
  height: 1px;
  flex: 1;
  background: rgb(214 228 240 / 28%);
}
.experience-section,
.projects-section,
.skills-section,
.contact-section {
  padding: 7rem 9vw 8rem;
}
.section-top {
  max-width: 1200px;
  margin: 0 auto 3.4rem;
}
.section-index {
  color: var(--blue);
}
.section-heading {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  font: 700 clamp(3rem, 7.5vw, 7rem)/0.93 var(--serif);
  letter-spacing: -0.065em;
}
.section-heading em,
.contact-heading em {
  color: var(--blue);
  font-weight: 600;
}
.experience-section {
  background: var(--mist);
}
.experience-section .section-top .eyebrow {
  color: var(--blue);
}
.experience-list {
  max-width: 1200px;
  margin: auto;
  border-top: 1px solid var(--line);
}
.experience-column {
  display: block;
}
.experience-item {
  display: grid;
  min-height: 145px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0.6rem;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.25s,
    background 0.25s;
}
.experience-item:hover {
  padding-inline: 1.2rem;
  background: rgb(246 246 246 / 55%);
}
.experience-item span {
  color: var(--blue);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.experience-item h3 {
  margin: 0.45rem 0 0;
  font: 600 clamp(1rem, 1.6vw, 1.45rem)/1.2 var(--sans);
  letter-spacing: -0.025em;
}
.experience-at {
  display: contents;
}
.experience-at > div {
  display: contents;
}
.experience-job {
  display: contents;
}
.experience-job span {
  grid-column: 1;
  grid-row: 1;
}
.experience-job h3 {
  grid-column: 1;
  grid-row: 2;
}
.experience-at span {
  grid-column: 2;
  grid-row: 1;
}
.experience-at h3 {
  grid-column: 2;
  grid-row: 2;
}
.view-more {
  padding: 0.75rem 0 0.75rem 0.75rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 0.65rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.view-more i {
  margin-left: 0.5rem;
  color: var(--blue);
  transition: transform 0.2s;
}
.view-more:hover i {
  transform: translateX(4px);
}
.projects-section {
  background: var(--paper);
}
.project-list {
  display: grid;
  max-width: 1200px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5.5rem 1.5rem;
  margin: auto;
}
.project-card {
  grid-column: span 7;
  min-width: 0;
}
.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3) {
  grid-column: span 5;
  margin-top: 6rem;
}
.project-card:nth-child(4n + 3) {
  grid-column: 2 / span 7;
  margin-top: 0;
}
.project-card:nth-child(4n + 4) {
  grid-column: span 5;
  margin-top: 6rem;
}
.project-image {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}
.project-image > a:first-child {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.28;
}
.project-card:nth-child(4n + 2) .project-image > a:first-child,
.project-card:nth-child(4n + 4) .project-image > a:first-child {
  aspect-ratio: 0.95;
}
.project-image > a:first-child::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
  content: "OPEN GALLERY ↗";
  font: 500 0.58rem var(--mono);
  letter-spacing: 0.08em;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.project-image > a:first-child:hover::after {
  transform: translateY(-3px);
  background: var(--mist);
  color: var(--ink);
}
.project-image > a:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.35s;
}
.project-card:hover .project-image > a:first-child img {
  transform: scale(1.045);
  filter: saturate(0.72);
}
.project-gallery {
  display: none;
}
.project-overlay {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  display: flex;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  background: var(--paper);
}
.project-overlay img,
.project-overlay i {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--blue);
  object-fit: contain;
  font-size: 1.1rem;
}
.project-description {
  padding: 1rem 0 0;
}
.project-description h3 {
  margin: 0;
  font: 700 clamp(1.35rem, 2.2vw, 2rem)/1.1 var(--serif);
  letter-spacing: -0.035em;
}
.project-description a {
  text-decoration: none;
}
.project-description a:hover {
  color: var(--blue);
}
.project-description p {
  margin: 0.5rem 0 0;
  color: var(--blue);
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.skills-section {
  background: var(--blue);
  color: var(--paper);
}
.skills-section .section-index,
.skills-section .eyebrow {
  color: var(--mist);
}
.skills-intro {
  display: grid;
  max-width: 1200px;
  grid-template-columns: 1fr;
  align-items: end;
  margin: auto;
}
.skills-intro .section-heading {
  margin-inline: 0;
}
.skills-intro .section-heading em {
  color: var(--mist);
}
.skills-list {
  display: grid;
  max-width: 1200px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: auto;
  border: 1px solid rgb(214 228 240 / 35%);
  background: rgb(214 228 240 / 35%);
}
.skill-item {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--blue);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.skill-item:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-3px);
  background: var(--ink);
}
.skill-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--mist);
  font-size: 1.65rem;
}
.skill-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}
.skill-name {
  color: var(--paper);
  font: 500 0.72rem var(--mono);
}
.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.contact-section::before {
  position: absolute;
  right: -12vw;
  bottom: -34vw;
  width: 65vw;
  aspect-ratio: 1;
  border: 1px solid rgb(214 228 240 / 15%);
  border-radius: 50%;
  box-shadow:
    0 0 0 5vw rgb(214 228 240 / 2%),
    0 0 0 10vw rgb(214 228 240 / 2%);
  content: "";
  pointer-events: none;
}
.contact-section > * {
  position: relative;
}
.contact-section .section-index,
.contact-section .eyebrow {
  color: var(--mist);
}
.contact-heading {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  font: 700 clamp(4rem, 10vw, 9rem)/0.87 var(--serif);
  letter-spacing: -0.07em;
}
.contact-heading em {
  color: var(--mist);
}
.contact-email {
  display: inline-block;
  margin-left: max(calc((100% - 1200px) / 2), 0px);
  color: var(--mist);
  font: 500 clamp(1rem, 2vw, 1.5rem) var(--mono);
  text-decoration-color: rgb(214 228 240 / 45%);
  text-underline-offset: 0.4em;
  transition: color 0.2s;
}
.contact-email:hover {
  color: var(--paper);
}
.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 8rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(214 228 240 / 25%);
  color: var(--mist);
  font: 500 0.6rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-links a {
  color: var(--mist);
  font-size: 1rem;
  transition:
    color 0.2s,
    transform 0.2s;
}
.social-links a:hover {
  display: inline-block;
  transform: translateY(-3px);
  color: var(--paper);
}
.contact-bottom > a {
  text-decoration: none;
}
.experience-dialog {
  position: fixed;
  width: min(760px, calc(100vw - 2rem));
  max-width: none;
  max-height: 88vh;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--mist);
  background: var(--ink);
  color: var(--paper);
}
.experience-dialog[open] {
  animation: dialog-enter 0.24s ease-out both;
}
.experience-dialog::backdrop {
  background: rgb(22 49 114 / 80%);
  backdrop-filter: blur(6px);
}
.dialog-close {
  position: sticky;
  top: 0.8rem;
  float: right;
  z-index: 2;
  margin: 0.8rem 0.8rem -3rem 0;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 2rem;
  cursor: pointer;
}
.dialog-panel {
  padding: 3.5rem 0;
}
.dialog-panel h2 {
  margin: 0;
  color: var(--paper);
  font: 700 2rem var(--serif);
  text-align: center;
}
.dialog-body {
  padding: 0 3rem;
}
.dialog-body--center {
  text-align: center;
}
.dialog-panel ul {
  margin: 1em 0;
  padding-left: 1.4rem;
  list-style: disc;
}
.dialog-panel li,
.dialog-body > p {
  margin: 0.75rem 0;
  color: var(--mist);
  font: 1rem/1.65 var(--sans);
}
.dialog-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  font-family: var(--mono);
  text-align: center;
}
.dialog-meta h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
}
.dialog-meta p {
  color: var(--mist);
  font-size: 0.95rem;
}
.exp-tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.exp-tech-list img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}
.load-error {
  padding: 3rem;
  text-align: center;
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1440px) {
  .hero {
    padding-inline: max(7vw, calc((100vw - 1440px) / 2));
  }
}
@media (max-width: 900px) {
  .hero {
    min-height: 760px;
    padding-inline: 6vw;
  }
  .hero-layout {
    min-height: 610px;
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero-title {
    font-size: clamp(4rem, 10vw, 7rem);
  }
  .portrait-wrap {
    width: min(100%, 300px);
    margin-right: 3%;
  }
  .experience-section,
  .projects-section,
  .skills-section,
  .contact-section {
    padding-inline: 6vw;
  }
  .project-list {
    gap: 4rem 1.2rem;
  }
  .skills-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .site-nav {
    height: 64px;
    padding-inline: 5vw;
  }
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.53rem;
    letter-spacing: 0.03em;
  }
  .nav-links .cv-link {
    padding: 0.55rem 0.6rem;
  }
  .hero {
    min-height: 790px;
    min-height: 100svh;
    padding: 88px 6vw 20px;
  }
  .hero-topline {
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.5rem;
  }
  .hero-topline span:last-child {
    text-align: right;
  }
  .hero-layout {
    min-height: 0;
    height: calc(100svh - 150px);
    grid-template-columns: 1fr;
    align-content: space-between;
    padding: 2.5rem 0 1rem;
  }
  .hero-copy {
    align-self: end;
    padding: 0 0 1.2rem;
  }
  .hero-copy .eyebrow {
    margin-bottom: 1.2rem;
  }
  .hero-title {
    font-size: clamp(4rem, 15vw, 6.2rem);
  }
  .hero-name-last {
    margin-left: 12vw;
  }
  .hero-bottom {
    width: 78%;
    margin: 1.3rem 0 0 12vw;
  }
  .hero-role {
    font-size: 0.76rem;
  }
  .portrait-wrap {
    position: absolute;
    top: 2.8rem;
    right: 5vw;
    width: 39%;
    max-width: 175px;
    margin: 0;
  }
  .portrait-wrap::before {
    inset: 7% -7% -6% 8%;
  }
  .hero-footer {
    gap: 0.6rem;
    font-size: 0.48rem;
  }
  .experience-section,
  .projects-section,
  .skills-section,
  .contact-section {
    padding: 5rem 7vw;
  }
  .section-top {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .section-top .eyebrow,
  .section-index {
    font-size: 0.51rem;
  }
  .section-heading {
    margin-bottom: 2.5rem;
    font-size: clamp(3rem, 12vw, 5rem);
  }
  .experience-item {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    padding: 1.2rem 0.2rem;
  }
  .experience-job {
    grid-column: 1;
    grid-row: 1;
  }
  .experience-job span {
    grid-column: 1;
    grid-row: 1;
  }
  .experience-job h3 {
    grid-column: 1;
    grid-row: 2;
  }
  .experience-at {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    gap: 0.8rem;
  }
  .experience-at > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .experience-at span {
    grid-column: 1;
    grid-row: 1;
  }
  .experience-at h3 {
    grid-column: 1;
    grid-row: 2;
  }
  .experience-item h3 {
    font-size: 1rem;
  }
  .experience-item span {
    font-size: 0.53rem;
  }
  .view-more {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 0.4rem 0 0.4rem 0.2rem;
    font-size: 0.52rem;
  }
  .project-list {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-card:nth-child(n) {
    grid-column: 1;
    margin: 0;
  }
  .project-image > a:first-child,
  .project-card:nth-child(n) .project-image > a:first-child {
    aspect-ratio: 1.12;
  }
  .project-description h3 {
    font-size: 1.45rem;
  }
  .skills-intro {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .skills-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skill-item {
    min-height: 76px;
    gap: 0.65rem;
    padding: 0.7rem;
  }
  .skill-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 1.35rem;
  }
  .skill-name {
    font-size: 0.6rem;
  }
  .contact-heading {
    font-size: clamp(4rem, 17vw, 6.5rem);
  }
  .contact-email {
    margin-left: 0;
    font-size: 0.85rem;
  }
  .contact-bottom {
    flex-wrap: wrap;
    margin-top: 5rem;
    font-size: 0.52rem;
  }
  .contact-bottom > span {
    order: 0;
    width: auto;
  }
  .dialog-body {
    padding: 0 1.3rem;
  }
  .dialog-panel {
    padding: 3rem 0 2rem;
  }
  .dialog-meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Follow-up refinements from the annotated desktop and mobile captures. */
.site-nav {
  justify-content: flex-end;
}
.photo {
  transition: filter 0.45s ease;
}
.portrait-wrap:hover .photo {
  filter: grayscale(0);
}
.project-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem 1.5rem;
}
.project-card:nth-child(n) {
  grid-column: auto;
  margin: 0;
}
.project-image > a:first-child,
.project-card:nth-child(n) .project-image > a:first-child {
  aspect-ratio: 1.3;
}
.skill-mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  font-size: 2.1rem;
}
.skill-mark img {
  transition:
    filter 0.25s,
    transform 0.25s;
}
.skill-item:hover .skill-mark img {
  filter: none;
  transform: scale(1.08);
}
.skill-name {
  font-size: 0.9rem;
}
.hero-topline,
.hero-footer,
.eyebrow,
.section-index {
  font-size: 0.78rem;
}
.nav-links a {
  font-size: 0.76rem;
}
.hero-role {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.experience-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
}
.experience-job {
  display: contents;
}
.experience-item span {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.view-more {
  font-size: 0.84rem;
}
.project-description p {
  font-size: 0.84rem;
}
.skill-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 2rem;
}
.skill-mark img {
  width: 42px;
  height: 42px;
}
.skill-mark i {
  color: var(--paper);
  transition:
    color 0.25s,
    transform 0.25s;
}
.skill-item:hover .skill-mark i {
  color: var(--skill-color, var(--paper));
  transform: scale(1.08);
}
.experience-dialog {
  position: fixed;
}
.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  float: none;
  margin: 0;
  border: 1px solid rgb(214 228 240 / 45%);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.5rem/1 var(--sans);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.dialog-close:hover {
  transform: rotate(90deg);
  background: var(--mist);
  color: var(--ink);
}
.dialog-panel {
  padding-top: 4.2rem;
}
.dialog-meta {
  align-items: start;
}
.dialog-meta h3 {
  margin: 0.5rem 0 0.8rem;
  color: var(--mist);
  font-size: 0.86rem;
  letter-spacing: 0.07em;
}
.exp-tech-list {
  max-width: 320px;
  margin: auto;
}
.exp-tech-item {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(214 228 240 / 25%);
  border-radius: 50%;
  background: rgb(214 228 240 / 9%);
}
.exp-tech-item i {
  font-size: 1.2rem;
}
.exp-tech-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}
.exp-tech-item .fa-laravel { color: #ff2d20; }
.exp-tech-item .fa-php { color: #777bb4; }
.exp-tech-item .fa-js { color: #f7df1e; }
.exp-tech-item .fa-vuejs { color: #42b883; }
.exp-tech-item .fa-react { color: #61dafb; }
.exp-tech-item .fa-docker { color: #2496ed; }
.exp-tech-item .fa-wordpress { color: #21759b; }
.exp-tech-item .fa-bootstrap { color: #7952b3; }
.contact-section > .social-links {
  width: min(1200px, 100%);
  margin: 1.2rem auto 0;
}
.contact-bottom {
  font-size: 0.78rem;
}
.social-links a {
  font-size: 1.7rem;
}
.contact-bottom > a {
  font-size: 0.78rem;
}
@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }
  .hero-layout {
    min-height: 600px;
  }
}
@media (max-width: 640px) {
  .hero::before {
    top: 45%;
    right: -23%;
    width: 85vw;
  }
  .site-nav {
    justify-content: flex-end;
  }
  .hero {
    min-height: 0;
    padding: 88px 6vw 20px;
  }
  .hero-topline {
    justify-content: flex-start;
  }
  .hero-topline,
  .hero-footer,
  .eyebrow,
  .section-index {
    font-size: 0.68rem;
  }
  .nav-links a {
    font-size: 0.66rem;
  }
  .hero-layout {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.5rem;
    padding: 1.5rem 0 1.2rem;
  }
  .portrait-wrap {
    position: relative;
    inset: auto;
    grid-row: 2;
    width: min(39%, 160px);
    justify-self: end;
    margin: 0 4% 0.2rem 0;
  }
  .hero-copy {
    grid-row: 1;
    align-self: auto;
    padding: 0;
  }
  .hero-copy .eyebrow {
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: clamp(3.1rem, 10vw, 4.2rem);
  }
  .hero-name-last {
    margin-left: 8vw;
  }
  .hero-bottom {
    width: auto;
    margin: 1.1rem 0 0 8vw;
  }
  .hero-role {
    font-size: 1.3rem;
    font-weight: 600;
  }
  .hero-footer {
    margin-top: 0.5rem;
  }
  .project-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .project-image > a:first-child,
  .project-card:nth-child(n) .project-image > a:first-child {
    aspect-ratio: 1.25;
  }
  .skills-intro {
    margin-bottom: 2rem;
  }
  .skill-item {
    min-height: 92px;
  }
  .skill-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 1.75rem;
  }
  .skill-mark img {
    width: 36px;
    height: 36px;
  }
  .skill-name {
    font-size: 0.8rem;
  }
  .experience-item span {
    font-size: 0.72rem;
  }
  .experience-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0.35rem 0.75rem;
  }
  .experience-job,
  .experience-at,
  .experience-at > div {
    display: contents;
  }
  .experience-job span {
    grid-column: 1;
    grid-row: 1;
  }
  .experience-job h3 {
    grid-column: 1;
    grid-row: 2;
  }
  .experience-at span {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .experience-at h3 {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .view-more {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    font-size: 0.68rem;
  }
  .project-description p {
    font-size: 0.75rem;
  }
  .section-top .eyebrow,
  .section-top .section-index {
    font-size: 0.68rem;
  }
  .contact-email {
    font-size: clamp(1rem, 3.7vw, 1.3rem);
  }
  .contact-bottom {
    gap: 0.5rem;
    font-size: 0.64rem;
  }
  .contact-bottom > span,
  .contact-bottom > a {
    font-size: 0.78rem;
  }
  .social-links a {
    font-size: 1.3rem;
  }
}
