:root {
  --bg: #f6f1eb;
  --paper: #ffffff;
  --ink: #1d1b16;
  --muted: #5f5a52;
  --accent: #ff7a18;
  --accent-dark: #cd4c00;
  --sky: #3662ff;
  --sage: #3ca37c;
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

@keyframes gentle-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.background-texture {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 122, 24, 0.08) 1px, transparent 0);
  background-size: 160px 160px;
  opacity: 0.8;
  pointer-events: none;
  z-index: -2;
}

.doodle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.doodle {
  position: absolute;
  width: 120px;
  height: 120px;
  color: rgba(205, 76, 0, 0.4);
  animation: float 16s ease-in-out infinite;
  filter: drop-shadow(0 8px 15px rgba(29, 27, 22, 0.08));
}

.doodle path,
.doodle circle,
.doodle rect {
  stroke: currentColor;
  fill: none;
}

.doodle-bike {
  width: 150px;
  height: 150px;
  top: 18vh;
  right: 2%;
  animation-duration: 19s;
}

.doodle-code {
  top: 6vh;
  left: 2%;
}

.doodle-coffee {
  bottom: 20vh;
  left: 3%;
  color: rgba(58, 163, 124, 0.4);
  animation-duration: 18s;
}

.doodle-wave {
  bottom: 8vh;
  right: 4%;
  width: 180px;
  height: 140px;
  color: rgba(54, 98, 255, 0.35);
  animation-duration: 20s;
}

.doodle-note {
  top: 34vh;
  left: 70%;
  color: rgba(255, 122, 24, 0.3);
  animation-duration: 14s;
}

.doodle-melbourne {
  width: 220px;
  height: 140px;
  left: 18%;
  bottom: 24vh;
  color: rgba(29, 27, 22, 0.12);
  animation-duration: 22s;
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(14px, -10px, 0) rotate(2deg);
  }
  50% {
    transform: translate3d(10px, 8px, 0) rotate(-1.5deg);
  }
  75% {
    transform: translate3d(-12px, -6px, 0) rotate(1.5deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  position: relative;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  border: 1px solid rgba(29, 27, 22, 0.2);
  border-radius: 99px;
  background: transparent;
  padding: 0.3rem 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(29, 27, 22, 0.08);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.hero-copy > p {
  max-width: 45ch;
  line-height: 1.7;
  color: var(--muted);
}

.hero-copy {
  max-width: 520px;
}

.hero-copy .hero-lead {
  font-size: 1.06rem;
  color: var(--ink);
}

.hero-copy .hero-sub {
  margin-top: 0.75rem;
}

.tag,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--accent-dark);
  margin: 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(205, 76, 0, 0.24);
}

.btn.ghost {
  border-color: rgba(29, 27, 22, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 26px rgba(205, 76, 0, 0.3);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.92);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  margin: 0.4rem 0 0;
  font-weight: 600;
}

.hero-panel {
  background: var(--paper);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(29, 27, 22, 0.08);
  box-shadow: 0 20px 40px rgba(29, 27, 22, 0.08);
}

.profile-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.headshot-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(54, 98, 255, 0.32), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 122, 24, 0.3), transparent 55%),
    #ffe9d6;
  display: grid;
  place-items: center;
  align-self: center;
  box-shadow: 0 15px 40px rgba(29, 27, 22, 0.1);
}

.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.headshot-frame img.hide {
  display: none;
}

.headshot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.09), rgba(60, 163, 124, 0.08));
  transition: opacity 0.5s ease;
}

.headshot-placeholder.hide-placeholder {
  opacity: 0;
}

.profile-copy h3 {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.6rem;
}

.profile-copy p {
  margin: 0 0 1rem;
}

.profile-tagline {
  margin: 0.9rem 0 0.8rem;
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.profile-stats a {
  color: inherit;
  text-decoration: none;
}

.profile-stats p {
  margin: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 27, 22, 0.04);
  color: rgba(29, 27, 22, 0.55);
}

.stat-icon svg {
  width: 16px;
  height: 16px;
}

.profile-links svg {
  width: 18px;
  height: 18px;
}

.stat-primary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.profile-links {
  display: flex;
  gap: 0.75rem;
}

.profile-links a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(29, 27, 22, 0.04);
  color: rgba(29, 27, 22, 0.6);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.profile-links a:hover {
  transform: translateY(-2px);
  background: rgba(29, 27, 22, 0.12);
}

.highlight-card {
  border-bottom: 1px solid rgba(29, 27, 22, 0.08);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.highlight-card h3 {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.6rem;
}

.highlight-card ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.highlight-card a {
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
}

.highlight-data {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.highlight-data span {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.mode-switcher {
  background: var(--paper);
  border-radius: 1.3rem;
  padding: 1.5rem;
  border: 1px solid rgba(29, 27, 22, 0.08);
}

.pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid rgba(29, 27, 22, 0.15);
  border-radius: 999px;
  background: transparent;
  padding: 0.4rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  color: var(--muted);
}

.pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

#mode-copy {
  margin-top: 1.1rem;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-heading h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.projects {
  padding: 3rem 0;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 1.25rem;
  border: 1px solid rgba(29, 27, 22, 0.08);
  box-shadow: 0 12px 25px rgba(29, 27, 22, 0.06);
}

.project-media {
  border-radius: 1.25rem 1.25rem 0 0;
  height: 150px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 122, 24, 0.28), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(54, 98, 255, 0.22), transparent 50%),
    rgba(29, 27, 22, 0.04);
}

.project-media-sought {
  background-image: linear-gradient(135deg, rgba(60, 163, 124, 0.35), transparent),
    radial-gradient(circle at 18% 18%, rgba(255, 122, 24, 0.4), transparent 55%);
}

.project-media-aicarer {
  background-image: linear-gradient(135deg, rgba(54, 98, 255, 0.4), transparent),
    radial-gradient(circle at 76% 24%, rgba(255, 122, 24, 0.35), transparent 55%);
}

.project-media-manhattan {
  background-image: linear-gradient(135deg, rgba(29, 27, 22, 0.5), transparent),
    radial-gradient(circle at 30% 60%, rgba(60, 163, 124, 0.45), transparent 55%);
}

.project-body {
  padding: 1.1rem 1.4rem 1.4rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.project-grid .status {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--sage);
}

.project-link {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-dark);
}

.project-link:hover {
  text-decoration: underline;
}

.project-summary {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.experience {
  padding: 3rem 0 1rem;
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 0 2.4rem;
  border-left: 2px solid rgba(29, 27, 22, 0.12);
}

.timeline li {
  padding-left: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  column-gap: 1.8rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: calc(-2.4rem - 7px);
  top: 0.6rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(29, 27, 22, 0.04);
}

.time-date {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.time-location {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(29, 27, 22, 0.55);
}

.timeline-card {
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem 1.2rem;
  border: 1px solid rgba(29, 27, 22, 0.06);
  box-shadow: 0 10px 22px rgba(29, 27, 22, 0.04);
  min-width: 0;
  width: 100%;
}

.timeline-card h3 {
  margin: 0 0 0.4rem;
}

.timeline-summary {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.timeline-more {
  margin-top: 0.9rem;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--accent-dark);
  text-decoration: none;
}

.timeline-more:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.75rem;
    padding-left: 2.2rem;
  }
}

.skills {
  padding: 3rem 0;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.skills-grid article {
  flex: 0 1 260px;
  background: var(--paper);
  border-radius: 1.1rem;
  padding: 1.4rem;
  border: 1px solid rgba(29, 27, 22, 0.08);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.skill-header h3 {
  margin: 0.1rem 0 0;
}

.skill-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(205, 76, 0, 0.08);
  color: var(--accent-dark);
}

.skill-icon svg {
  width: 18px;
  height: 18px;
}

.skill-context {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.skill-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tags li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(29, 27, 22, 0.04);
  color: var(--muted);
}

.skill-group.skill-frontend .skill-icon {
  background: rgba(54, 98, 255, 0.08);
  color: var(--sky);
}

.skill-group.skill-cloud .skill-icon {
  background: rgba(60, 163, 124, 0.08);
  color: var(--sage);
}

.skill-group.skill-qa .skill-icon {
  background: rgba(29, 27, 22, 0.08);
  color: var(--ink);
}

.education {
  padding: 3rem 0 3rem;
}

.edu-list {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.edu-item {
  background: var(--paper);
  border-radius: 1.05rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(29, 27, 22, 0.08);
  box-shadow: 0 10px 22px rgba(29, 27, 22, 0.04);
}

.edu-item h3 {
  margin: 0;
  font-size: 1rem;
}

.edu-meta {
  margin: 0.4rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.edu-location,
.edu-description {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.edu-community h3 {
  color: var(--accent-dark);
}

.experience-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.experience-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.experience-modal {
  position: relative;
  background: var(--paper);
  border-radius: 1.25rem;
  padding: 1.6rem 1.8rem 1.8rem;
  max-width: min(720px, 94vw);
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.experience-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.experience-modal-header {
  margin-bottom: 1rem;
}

.experience-modal-meta {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.experience-modal-body {
  display: grid;
  gap: 1.2rem 1.5rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.experience-modal-column h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.experience-modal-column ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.experience-modal-column .skill-tags {
  padding-left: 0;
}

@media (max-width: 680px) {
  .experience-modal {
    padding: 1.4rem 1.3rem 1.6rem;
  }
  .experience-modal-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.modal-open {
  overflow: hidden;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 1.5rem 4rem;
  background: var(--ink);
  color: #fff;
  border-radius: 2rem 2rem 0 0;
}

.contact .btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

section.shell,
.projects,
.experience,
.skills,
.education,
.contact {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(29, 27, 22, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
