:root {
  --bg: #0e1018;
  --panel: #171827;
  --panel-soft: #20213a;
  --text: #f3f0ff;
  --muted: #b9b4cc;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #b79cff;
  --accent-2: #6ee7ff;
  --danger: #f97373;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(183, 156, 255, 0.11), transparent 34%),
    linear-gradient(180deg, #0e1018 0%, #15172a 46%, #0e1018 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  padding: 0 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(11, 17, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.logo {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--bg);
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

main {
  width: min(90%, 1120px);
  margin: auto;
}

section {
  padding: 82px 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.small-title {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 38px;
  color: var(--muted);
  text-align: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #111;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: #cab8ff;
}

.outline-button {
  margin-left: 10px;
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.outline-button:hover {
  color: var(--bg);
  border-color: var(--accent);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 70px;
  align-items: center;
}

.hero-text > p:not(.small-title) {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.profile-photo {
  width: 320px;
  height: 410px;
  object-fit: cover;
  object-position: center 38%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: -18px 18px 0 rgba(183, 156, 255, 0.28), var(--shadow);
}

.hero-buttons,
.project-actions,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-strip {
  max-width: 700px;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-strip span,
.tags span,
.timeline-item {
  padding: 7px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.projects,
.skills,
.journey,
.experience,
.social-section,
.location {
  border-top: 1px solid var(--line);
}

.projects > h2,
.skills > h2,
.journey > h2,
.experience > h2,
.social-section > h2,
.projects > .small-title,
.skills > .small-title,
.journey > .small-title,
.experience > .small-title,
.social-section > .small-title {
  text-align: center;
}

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

.project-card,
.timeline article,
.intro-card,
.contact-note,
form,
.skill,
.job,
.call-to-action,
.profile-links a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--panel-soft);
}

.project-card:first-child img {
  padding: 34px;
  object-fit: contain;
}

.project-content {
  padding: 24px;
}

.project-number,
.skill-number,
.job-label,
.timeline strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-actions {
  margin-top: 22px;
}

.project-actions a,
.profile-links a {
  padding: 9px 11px;
  color: var(--text);
  background: rgba(110, 231, 255, 0.12);
  border: 1px solid rgba(110, 231, 255, 0.42);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.project-actions a:hover,
.profile-links a:hover {
  color: var(--bg);
  background: var(--accent-2);
}

.skill {
  margin: 18px 0;
}

.skill-text {
  padding: 28px;
}

.page-intro {
  text-align: center;
}

.page-intro h1 {
  margin-left: auto;
  margin-right: auto;
}

.intro-card {
  max-width: 820px;
  margin: 38px auto 0;
  padding: 30px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.timeline article {
  padding: 26px;
  border-top: 4px solid var(--accent-2);
}

.timeline article:last-child {
  width: calc(50% - 10px);
  grid-column: 1 / -1;
  justify-self: center;
}

.job {
  margin: 20px 0;
  display: grid;
  grid-template-columns: 95px 1fr;
  overflow: hidden;
}

.learning-number {
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--panel-soft);
  font-size: 28px;
  font-weight: 900;
}

.job div {
  padding: 26px;
}

.call-to-action {
  margin: 70px 0;
  padding: 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(183, 156, 255, 0.18), rgba(110, 231, 255, 0.10)), var(--panel);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.contact-note,
form {
  padding: 28px;
}

.contact-note {
  margin-top: 30px;
}

.contact-note a {
  color: var(--accent);
  font-weight: 800;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #0d151d;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(183, 156, 255, 0.26);
  border-color: var(--accent);
}

form button {
  margin-top: 22px;
}

.form-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-help.success {
  color: #8ee6a0;
}

.form-help.error {
  color: var(--danger);
}

.social-section {
  text-align: center;
}

.profile-links {
  justify-content: center;
}

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.case-study {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.case-media,
.lab-panel,
.evidence-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-media {
  overflow: hidden;
}

.case-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-media img[src$=".svg"] {
  object-fit: contain;
  background: #10111d;
}

.case-copy > p:not(.small-title) {
  color: var(--muted);
  font-size: 17px;
}

.evidence-grid {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.evidence-grid article {
  padding: 20px;
}

.evidence-grid p {
  color: var(--muted);
  font-size: 14px;
}

.lab-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.lab-panel {
  padding: 30px;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 156, 255, 0.14);
}

.evidence-notes {
  border-top: 1px solid var(--line);
}

.map-frame {
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  border: 0;
}

footer {
  padding: 28px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #070b10;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .project-grid,
  .hero,
  .contact,
  .location,
  .case-study,
  .lab-overview {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: min(100%, 360px);
    margin: auto;
  }
}

@media (max-width: 750px) {
  header,
  footer {
    padding: 15px 5%;
  }

  header {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  nav.open {
    display: flex;
  }

  nav a {
    width: 100%;
    padding: 12px;
  }

  section {
    padding: 58px 0;
  }

  .hero {
    min-height: auto;
    gap: 38px;
  }

  .outline-button {
    margin-left: 0;
  }

  .timeline,
  .job,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .timeline article:last-child {
    width: 100%;
    grid-column: auto;
  }

  .learning-number {
    min-height: 74px;
  }

  .call-to-action,
  .contact-note,
  form,
  .intro-card {
    padding: 26px 20px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Navigation, accessibility and project evidence */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; color: var(--bg); background: var(--accent); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
section[id] { scroll-margin-top: 100px; }
.archive-link { margin: 28px 0 0; text-align: center; color: var(--muted); }
.archive-link a { color: var(--accent-2); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.comparison-grid figure { min-width: 0; margin: 0; }
.comparison-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.report-steps { max-width: 800px; padding-left: 24px; }
.report-steps li { padding: 10px 0 10px 8px; color: var(--muted); }
.report-steps strong { color: var(--text); }
button:disabled { opacity: .65; cursor: wait; }
@media (min-width: 901px) { .case-copy .evidence-grid { grid-template-columns: 1fr; } }
@media (max-width: 750px) {
  header .logo { font-size: clamp(10px, 3.3vw, 16px); letter-spacing: .6px; }
  header { gap: 10px; }
  .nav-toggle { flex-shrink: 0; padding: 0; }
  .comparison-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
