:root {
  color-scheme: light;
  --ink: #22221f;
  --muted: #77766e;
  --paper: #f7f7f3;
  --line: #e7e7e0;
  --lime: #c8f169;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.page-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  width: min(1120px, calc(100% - 64px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 800 27px var(--display); letter-spacing: -2px; }
.wordmark span, .section-heading h2 span { color: #8aad38; }
.site-header nav { display: flex; align-items: center; gap: 38px; font-size: 13px; }
.site-header nav > a:not(.nav-contact) { color: #68675f; transition: color .2s ease; }
.site-header nav > a:hover { color: var(--ink); }
.nav-contact { padding: 11px 15px; border: 1px solid #d9d9d1; border-radius: 4px; }
.nav-contact span { margin-left: 8px; }

.hero {
  position: relative;
  min-height: 585px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 70px;
  padding-top: 18px;
  padding-bottom: 56px;
}
.hero-copy { padding-bottom: 12px; }
.eyebrow {
  font: 500 10px var(--mono);
  letter-spacing: 1.15px;
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: #77766e; }
.availability-dot { width: 7px; height: 7px; border-radius: 50%; background: #8bb746; box-shadow: 0 0 0 3px #e7efd9; }
.hero h1, .contact-section h2 {
  margin: 26px 0 19px;
  font: 600 clamp(44px, 6.3vw, 76px)/1.08 var(--display);
  letter-spacing: -5px;
}
.hero h1 span, .contact-section h2 span { font-family: Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -4px; }
.hero h1 span { color: #829a53; }
.hero-description { max-width: 425px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-description strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; gap: 22px; padding: 14px 17px; border-radius: 4px; font-size: 12px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #41413a; }
.text-link { font-size: 12px; font-weight: 600; }
.text-link span { margin-left: 7px; }

.profile-card { width: min(100%, 360px); justify-self: end; }
.profile-art {
  display: grid;
  height: 290px;
  place-items: center;
  perspective: 900px;
}
.profile-flip-card {
  position: relative;
  width: 260px;
  height: 260px;
  max-width: 100%;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.2,.7,.25,1);
}
.profile-art:hover .profile-flip-card,
.profile-art:focus .profile-flip-card { transform: rotateY(180deg); }
.profile-art:focus { outline: none; }
.profile-art:focus-visible .profile-flip-card { outline: 3px solid #8aad38; outline-offset: 5px; border-radius: 50%; }
.profile-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.profile-front { background: #e8eadf; }
.profile-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 37%; }
.profile-back {
  display: grid;
  place-items: center;
  transform: rotateY(180deg);
  background: #e8eadf;
}
.profile-avatar { display: block; width: 100%; height: 100%; }
.avatar-initials {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 2px solid #f7f7f3;
  border-radius: 50%;
  background: #30352b;
  color: white;
  font: 600 11px var(--mono);
}
.profile-details { display: flex; align-items: center; justify-content: space-between; padding: 17px 1px; }
.profile-details h2 { margin: 0 0 4px; font: 600 14px var(--display); }
.profile-details p, .location { margin: 0; color: var(--muted); font-size: 11px; }
.location { white-space: nowrap; }
.location span { margin-right: 4px; font-size: 15px; }
.hero-note { position: absolute; bottom: 22px; left: 0; color: #89887f; font: 9px var(--mono); letter-spacing: 1px; }
.hero-note span { padding-right: 10px; color: #8aad38; }

.work-section { padding: 87px 0 91px; background: #efefe9; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 35px; }
.section-heading .eyebrow { margin: 0 0 13px; }
.section-heading h2 { margin: 0; font: 600 40px var(--display); letter-spacing: -2px; }
.section-intro { max-width: 310px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-tile { overflow: hidden; background: #fbfbf8; border: 1px solid #e7e7e0; transition: transform .2s ease, box-shadow .2s ease; }
.project-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #24271a12; }
.project-preview { overflow: hidden; aspect-ratio: 16 / 9; background: #e9eee8; }
.project-screenshot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.project-tile:hover .project-screenshot { transform: scale(1.025); }
.tile-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px; }
.tile-info h3 { margin: 0 0 5px; font: 600 15px var(--display); }
.tile-info p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tile-arrow { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; }
.dobi360-preview { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #e9eee8; color: #354438; }
.dobi360-status { position: absolute; top: 22px; padding: 7px 11px; border: 1px solid #c9d2c5; border-radius: 20px; background: #f7f7f3; color: #62745d; font: 9px var(--mono); letter-spacing: 1.2px; }
.dobi360-wordmark { z-index: 1; font: 700 clamp(38px, 5vw, 58px)/1 var(--display); letter-spacing: -3px; }
.dobi360-wordmark span { color: #88a06f; }
.dobi360-tagline { z-index: 1; margin-top: 12px; color: #667466; font: 9px var(--mono); letter-spacing: 2px; }
.dobi360-orbit { position: absolute; width: 300px; height: 300px; border: 1px solid #cbd5c7; border-radius: 50%; }
.orbit-a { transform: scaleX(1.5) rotate(-24deg); }
.orbit-b { transform: scaleX(1.5) rotate(24deg); }
.skills-section { padding-top: 78px; padding-bottom: 78px; }
.skills-section .section-heading { margin-bottom: 24px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill-list li { min-width: 105px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 4px; background: #fbfbf8; font: 500 12px var(--mono); text-align: center; }

.experience-section { padding-top: 86px; padding-bottom: 86px; }
.experience-section .section-heading { margin-bottom: 30px; }
.resume-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.resume-column { padding: 23px; background: #fff; border: 1px solid var(--line); }
.resume-label { margin: 0 0 8px; color: #89887f; font: 500 10px var(--mono); letter-spacing: 1.15px; }
.resume-entry { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.resume-entry:last-child { border-bottom: 0; }
.resume-entry h4 { margin: 0 0 5px; font: 600 13px var(--display); }
.resume-entry p { margin: 0; color: var(--muted); font-size: 11px; }
.resume-entry time { flex-shrink: 0; color: #89887f; font: 10px var(--mono); }

.contact-section { padding-top: 94px; padding-bottom: 94px; }
.contact-section .eyebrow { margin: 0; }
.contact-section h2 { margin: 19px 0 25px; font-size: clamp(46px, 6vw, 68px); }
.contact-section h2 span { color: #829a53; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.contact-phone { color: var(--muted); font-size: 12px; }
.contact-phone:hover { color: var(--ink); }
.button-light { background: var(--lime); }
.button-light:hover { background: #bce75b; }
.site-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 22px; }
.site-footer p { color: #77766e; font-size: 10px; }
.site-footer p span { margin-left: 14px; color: #a09f96; }
.back-top { font-size: 10px; }

@media (max-width: 760px) {
  .page-wrap, .site-header { width: min(100% - 40px, 560px); }
  .site-header { height: 68px; }
  .site-header nav { gap: 18px; font-size: 11px; }
  .nav-contact { padding: 9px 10px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-top: 66px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(48px, 11vw, 70px); letter-spacing: -3.8px; }
  .profile-card { width: min(100%, 420px); justify-self: start; }
  .profile-art { height: 282px; }
  .hero-note { bottom: 22px; }
  .work-section { padding: 68px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .section-heading h2 { font-size: 35px; }
  .section-intro { max-width: 390px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-preview { min-height: 220px; }
  .skills-section { padding-top: 62px; padding-bottom: 62px; }
  .skill-list { gap: 8px; }
  .skill-list li { min-width: 85px; padding: 11px 14px; }
  .experience-section { padding-top: 68px; padding-bottom: 68px; }
  .resume-grid { grid-template-columns: 1fr; }
  .contact-section { padding-top: 72px; padding-bottom: 72px; }
  .site-footer { flex-wrap: wrap; gap: 10px; padding-block: 15px; }
  .site-footer p { order: 3; width: 100%; margin: 0; }
}
@media (max-width: 420px) {
  .page-wrap, .site-header { width: calc(100% - 32px); }
  .site-header nav { gap: 12px; }
  .site-header nav > a:first-child { display: none; }
  .profile-details { align-items: flex-start; flex-direction: column; gap: 10px; }
  .resume-entry { flex-direction: column; gap: 7px; }
  .project-info h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
