:root {
  --bg: #080706;
  --panel: #11100e;
  --panel-soft: #171410;
  --text: #f5f0e8;
  --muted: #b8aea3;
  --line: rgba(245, 240, 232, 0.14);
  --ink: #120a04;
  --orange: #55bfff;
  --accent-rgb: 85, 191, 255;
  --content-max: 1480px;
  --font-display: "Archivo", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0;
}

body.design-theme {
  --orange: #ff7a1a;
  --accent-rgb: 255, 122, 26;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(8, 7, 6, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.site-section {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.site-section.current {
  color: var(--ink);
  background: var(--orange);
}

body:not(.design-theme) .site-section:not(.current):hover {
  color: var(--orange);
  background: rgba(var(--accent-rgb), 0.12);
}

body.design-theme .site-section:not(.current):hover {
  color: var(--orange);
  background: rgba(var(--accent-rgb), 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-copy,
.site-nav,
.kicker,
.reel-notes,
.publication-list span,
.site-footer {
  font-family: var(--font-mono);
}

.brand-copy,
.site-nav {
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--orange);
}

.site-nav .nav-accent {
  color: var(--orange);
}

[data-secret-target] {
  display: none !important;
}

body.secret-preparing .site-nav [data-secret-target],
body.secret-unlocked .site-nav [data-secret-target] {
  display: inline-flex !important;
}

body.secret-preparing .site-nav [data-secret-target] {
  visibility: hidden;
}

body.secret-preparing .content-layout [data-secret-target],
body.secret-unlocked .content-layout [data-secret-target] {
  display: grid !important;
}

body.secret-preparing .content-layout [data-secret-target] {
  visibility: hidden;
}

body.secret-unlocked .site-nav [data-secret-target] {
  animation: secretNavReveal 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.secret-unlocked .content-layout [data-secret-target] {
  animation: secretSectionReveal 820ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

@keyframes secretNavReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes secretSectionReveal {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }

  65% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    box-shadow: 0 0 42px rgba(var(--accent-rgb), 0.16);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 48px clamp(20px, 5vw, 64px);
  background: var(--bg);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(560px, 900px);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent 42%),
    var(--bg);
}

.hero-intro,
.hero-reel,
.reel-screen {
  min-width: 0;
}

.hero-intro,
.hero-reel {
  display: grid;
  align-content: start;
}

.hero-reel {
  justify-self: stretch;
}

.kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

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

h1 {
  margin-bottom: 18px;
}

h1,
.disrecall-title h2 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
}

h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.hero-copy,
.publication-list strong,
.lead-copy {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

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

.hero-copy em {
  color: var(--text);
  font-style: normal;
}

.resume-preview {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  aspect-ratio: 16 / 2.35;
  min-height: 64px;
  max-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04)),
    var(--panel);
  max-width: 100%;
}

.resume-link {
  flex: 0 0 auto;
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.resume-link:hover {
  background: var(--orange);
}

section:not(.hero) {
  border-top: 1px solid var(--line);
}

.reel-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: var(--panel);
}

.reel-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-status {
  margin: 0;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.loading-dots::after {
  content: "";
  display: inline-block;
  min-width: 1.8em;
  text-align: left;
  animation: loadingDots 1.2s steps(1, end) infinite;
}

@keyframes loadingDots {
  0%,
  24% {
    content: ".";
  }

  25%,
  49% {
    content: "..";
  }

  50%,
  74% {
    content: "...";
  }

  75%,
  100% {
    content: "";
  }
}

.disrecall-reel {
  padding-top: 32px;
  padding-bottom: 60px;
}

.disrecall-screen {
  border: 32px solid rgba(255, 177, 92, 0.88);
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, 0.38),
    0 0 36px rgba(255, 122, 26, 0.16);
}

.disrecall-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 122, 26, 0.48), rgba(255, 122, 26, 0.18) 38%, rgba(8, 7, 6, 0.12) 70%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.1), rgba(8, 7, 6, 0.42));
  pointer-events: none;
}

.disrecall-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.disrecall-title {
  position: absolute;
  top: clamp(34px, 6vw, 86px);
  right: clamp(28px, 5vw, 76px);
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min-content;
  text-align: center;
}

.disrecall-title h2 {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  color: var(--orange);
}

.disrecall-title h2 span {
  display: block;
}

.reel-notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.reel-notes p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
}

.reel-notes span {
  color: var(--orange);
}

.content-layout {
  padding: 76px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.content-layout > .content-main {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.content-layout section {
  padding: 0 0 48px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.content-layout section + section,
.content-layout section + details,
.content-layout details + section,
.content-layout details + details {
  padding-top: 48px;
}

.content-layout section:last-child,
.content-layout details:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.content-layout section.animdirect-section:last-child {
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.content-layout details {
  padding: 0 0 48px;
  border-bottom: 1px solid var(--line);
}

.collapsible-section summary {
  position: relative;
  display: grid;
  gap: 10px;
  padding-right: 44px;
  cursor: pointer;
  list-style: none;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section summary strong {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
}

.collapsible-section summary::after {
  content: "+";
  position: absolute;
  top: 4px;
  right: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 18px;
}

.collapsible-section[open] summary::after {
  content: "-";
}

.collapsible-content {
  margin-top: 28px;
}

.content-main {
  display: grid;
  gap: 0;
  max-width: var(--content-max);
}

.lead-copy em {
  color: var(--text);
  font-style: normal;
}

.experience-item,
.education-list article,
.extra-courses,
.publication-group {
  border: 1px solid var(--line);
  background: var(--panel);
}

.experience-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.experience-item {
  padding: 22px;
}

.experience-item h3 {
  margin-bottom: 6px;
}

.experience-item h3,
.education-list h3,
.publication-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.experience-item p {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.experience-item span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.experience-item span + span {
  margin-top: 2px;
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.education-list article {
  padding: 22px;
}

.education-heading {
  display: block;
}

.education-heading span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.education-heading span + span {
  margin-top: 2px;
}

.education-list h3 {
  margin-bottom: 6px;
}

.education-list p {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}

.education-list ul {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.education-list li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.extra-courses {
  padding: 22px;
}

.extra-courses h3 {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 22px;
}

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

.extra-courses li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.extra-courses strong,
.extra-courses span {
  display: block;
}

.extra-courses strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.extra-courses span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.recommendation-card {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ianimate-recommendation,
.credential-card {
  border-left: 3px solid var(--orange);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent 58%),
    rgba(255, 255, 255, 0.025);
}

.credential-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.credential-card {
  margin: 0;
}

.credential-card h4 {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 18px;
  line-height: 1.2;
}

.credential-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.credential-card a:hover {
  color: var(--text);
}

.recommendation-card p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.credential-card p {
  margin-bottom: 4px;
}

.recommendation-card footer {
  display: grid;
  gap: 3px;
}

.recommendation-card strong,
.recommendation-card span {
  display: block;
}

.recommendation-card strong {
  color: var(--orange);
  font-size: 15px;
}

.recommendation-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.publication-group {
  padding: 22px;
}

.publication-groups {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.publication-title {
  margin-bottom: 6px;
  padding-bottom: 0;
  border-bottom: 0;
}

.publication-list {
  display: grid;
}

.publication-list a {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.publication-list a:first-child {
  border-top: 0;
}

.publication-list a:hover strong {
  color: var(--orange);
}

.publication-list span {
  color: var(--orange);
  font-size: 12px;
}

.publication-list strong {
  max-width: 680px;
}

.content-layout .animdirect-section {
  display: grid;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 48px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08) 44%, rgba(var(--accent-rgb), 0.02) 100%),
    var(--panel);
}

.content-layout .animdirect-section h2,
.content-layout .animdirect-section .lead-copy {
  color: var(--orange);
}

.content-layout .animdirect-section h2 {
  margin: 0;
}

.content-layout .animdirect-section .lead-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 64px);
  background: var(--panel-soft);
}

.contact-section h2 {
  margin: 0;
  margin-right: clamp(10px, 2vw, 24px);
  font-size: clamp(28px, 4vw, 46px);
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--orange);
  background: var(--ink);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link-agora svg {
  width: 26px;
}

.mail-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .disrecall-reel {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    display: block;
  }

  .header-main,
  .brand-row {
    flex-wrap: wrap;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .publication-groups {
    grid-template-columns: 1fr;
  }

  .education-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-copy {
    display: none;
  }

  .site-nav {
    gap: 12px;
    font-size: 11px;
  }

  section:not(.hero) {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .content-layout .animdirect-section .lead-copy {
    white-space: normal;
  }

  .resume-preview {
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.secret-unlocked .site-nav [data-secret-target],
  body.secret-unlocked .content-layout [data-secret-target] {
    animation: none;
  }
}
