@charset "utf-8";

:root {
  --bg: #050716;
  --bg-warm: #20150d;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --border-bright: rgba(255, 255, 255, 0.26);
  --text: #f7f5f1;
  --muted: #bcbac3;
  --accent: #e8b45d;
  --accent-soft: #f4d9a8;
  --dark: #080a17;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content: 1180px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 88% 3%, rgba(71, 53, 131, 0.22), transparent 30rem),
    radial-gradient(circle at 48% 110%, rgba(151, 87, 22, 0.44), transparent 50rem),
    linear-gradient(150deg, var(--bg) 0%, #090917 52%, var(--bg-warm) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--dark);
  background: var(--accent);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 12px max(20px, calc((100vw - var(--content)) / 2));
  background: rgba(5, 7, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

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

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

.site-nav .language-link {
  min-width: 42px;
  padding-inline: 11px;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--border);
}

.site-nav .language-link:hover {
  border-color: var(--border-bright);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease;
}

.menu-button[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:nth-of-type(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7.8vw, 7rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
}

h3 {
  font-size: 1.35rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(76px, 10vw, 150px);
}

.hero-copy {
  min-width: 0;
}

.hero-intro {
  max-width: 670px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #1d1306;
  background: var(--accent);
  box-shadow: 0 14px 36px rgba(232, 180, 93, 0.18);
}

.button--primary:hover {
  background: #f0c477;
}

.button--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.button--secondary:hover {
  background: var(--surface-strong);
  border-color: var(--border-bright);
}

.button--disabled,
.button--disabled:hover {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin: 54px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.quick-facts li {
  display: grid;
  gap: 2px;
  padding-right: 20px;
}

.quick-facts strong {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-card {
  position: relative;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: radial-gradient(circle, rgba(232, 180, 93, 0.18), transparent 66%);
  filter: blur(18px);
}

.profile-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.14), transparent 24%),
    linear-gradient(145deg, #24283e, #111322 72%);
  border-radius: 22px;
}

.profile-placeholder::after {
  content: "RM";
  position: absolute;
  right: 16px;
  bottom: 8px;
  color: rgba(255,255,255,.08);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.profile-placeholder__head {
  position: absolute;
  top: 25%;
  width: 29%;
  aspect-ratio: 1;
  background: #72778a;
  border-radius: 50%;
  box-shadow: inset -12px -10px 22px rgba(0,0,0,.16);
}

.profile-placeholder__shoulders {
  position: absolute;
  bottom: -5%;
  width: 72%;
  height: 48%;
  background: #5d6275;
  border-radius: 50% 50% 18% 18%;
  box-shadow: inset -20px -16px 34px rgba(0,0,0,.16);
}

.profile-card__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #8dde9b;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(141, 222, 155, 0.12);
}

.split-section,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 100px);
}

.split-section {
  padding-block: clamp(90px, 12vw, 160px);
  border-top: 1px solid var(--border);
}

.prose-stack {
  max-width: 710px;
}

.prose-stack p,
.section-note,
.mission-card p,
.contact-section > p:not(.eyebrow),
.project-page-intro,
.project-description {
  color: var(--muted);
  font-size: 1.08rem;
}

.prose-stack p:first-child {
  margin-top: 0;
}

.prose-stack p + p {
  margin-top: 24px;
}

#work,
#skills,
#setup {
  padding-block: clamp(80px, 11vw, 145px);
}

.section-heading {
  align-items: end;
  margin-bottom: 46px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading--compact {
  align-items: center;
}

.section-note {
  max-width: 560px;
  margin: 0;
}

.text-link {
  justify-self: end;
  padding-bottom: 8px;
  color: var(--accent-soft);
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 217, 168, 0.35);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.loading-message,
.error-message {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #24283e, #111322);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--card-image-scale, 1));
  transition: transform 500ms ease;
}

.project-card__media--contain::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: var(--project-image) center / cover;
  filter: blur(18px);
  opacity: .42;
}

.project-card__media--contain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 22, .42);
}

.project-card__media--contain img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.project-card:hover .project-card__media img {
  transform: scale(var(--card-image-hover-scale, 1.035));
}

.project-card__media--fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255,255,255,.72);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

.project-card__media--fallback::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-card__eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card__summary {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  color: #d8d5dc;
  font-size: 0.8rem;
  font-weight: 720;
  border-top: 1px solid var(--border);
}

.project-card__arrow {
  color: var(--accent);
  font-size: 1.25rem;
}

@media (min-width: 721px) {
  .project-grid > .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr);
  }

  .project-grid > .project-card:last-child:nth-child(odd) .project-card__media {
    min-height: 100%;
    aspect-ratio: 16 / 9;
  }
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-group {
  position: relative;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.skill-group__number {
  display: block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.skill-group h3 {
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.project-tag {
  padding: 7px 11px;
  color: #d9d7de;
  font-size: 0.78rem;
  font-weight: 680;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
}

.mission-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
  margin-block: clamp(40px, 8vw, 110px);
  padding: clamp(34px, 6vw, 76px);
  background: linear-gradient(125deg, rgba(232,180,93,.13), rgba(255,255,255,.04));
  border: 1px solid rgba(232, 180, 93, 0.25);
  border-radius: var(--radius-lg);
}

.mission-card h2 {
  max-width: 18ch;
}

.mission-card p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.orbit-mark {
  position: relative;
  width: 160px;
  aspect-ratio: 1;
  border: 1px solid rgba(232,180,93,.4);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(.42);
}

.orbit-mark::before,
.orbit-mark::after {
  content: "";
  position: absolute;
  inset: 29%;
  border: 1px solid rgba(232,180,93,.55);
  border-radius: 50%;
}

.orbit-mark::after {
  inset: 47%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(232,180,93,.8);
}

.orbit-mark span {
  position: absolute;
  top: 45%;
  right: -4px;
  width: 12px;
  height: 12px;
  background: var(--text);
  border-radius: 50%;
}

.setup-section {
  border-top: 1px solid var(--border);
}

.setup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  margin-bottom: 22px;
}

.setup-photo,
.setup-summary,
.setup-group {
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.setup-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  background: #10121f;
}

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

.setup-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 48px);
}

.setup-summary h3 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
}

.setup-summary p:last-child {
  margin: 0;
  color: var(--muted);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.setup-group {
  padding: clamp(24px, 3vw, 34px);
}

.setup-group--wide {
  grid-column: 1 / -1;
}

.setup-group--wide .setup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
}

.setup-group__heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.setup-group__heading span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 850;
}

.setup-group__heading h3 {
  margin: 0;
}

.setup-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-list li {
  display: grid;
  grid-template-columns: minmax(108px, .38fr) minmax(0, 1fr);
  gap: 18px;
  padding-block: 12px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.setup-list span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 680;
}

.setup-list strong {
  font-size: .9rem;
  font-weight: 680;
}

.contact-section {
  max-width: 920px;
  padding-block: clamp(100px, 15vw, 190px);
  text-align: center;
}

.contact-section h2 {
  max-width: 14ch;
  margin-inline: auto;
}

.contact-section > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 32px;
}

.button-row--centered {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 38px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

/* Privacy */
.privacy-index-page,
.privacy-policy-page {
  padding-bottom: clamp(90px, 12vw, 160px);
}

.privacy-hero {
  padding-bottom: clamp(50px, 7vw, 80px);
}

.privacy-hero h1 {
  max-width: 14ch;
}

.privacy-hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.privacy-directory {
  display: grid;
  gap: 18px;
  margin-top: clamp(72px, 10vw, 130px);
}

.privacy-directory__heading {
  max-width: 760px;
  margin-bottom: 12px;
}

.privacy-directory__heading h2 {
  max-width: 15ch;
}

.privacy-directory__heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.privacy-app-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.privacy-app-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow);
}

.privacy-app-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
}

.privacy-app-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.privacy-app-card p {
  margin: 0;
  color: var(--muted);
}

.privacy-app-card__arrow {
  color: var(--accent);
  font-size: 1.8rem;
}

.privacy-updated {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.privacy-updated strong {
  color: var(--text);
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(64px, 9vw, 110px);
}

.privacy-summary__item {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.privacy-summary__item span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.privacy-summary__item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.privacy-summary__item p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(210px, .34fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  padding: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.privacy-toc p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.privacy-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-toc a {
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
}

.privacy-toc a:hover {
  color: var(--accent-soft);
}

.privacy-content {
  min-width: 0;
  max-width: 780px;
}

.privacy-section {
  padding-block: 34px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.privacy-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.privacy-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
}

.privacy-section h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
  letter-spacing: -.015em;
}

.privacy-section p,
.privacy-section li {
  color: var(--muted);
}

.privacy-section p {
  margin: 0 0 18px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 20px;
  padding-left: 22px;
}

.privacy-section a {
  color: var(--accent-soft);
  text-underline-offset: 3px;
}

.privacy-callout {
  margin: 26px 0;
  padding: 22px;
  background: linear-gradient(125deg, rgba(232,180,93,.13), rgba(255,255,255,.035));
  border: 1px solid rgba(232,180,93,.26);
  border-radius: var(--radius-sm);
}

.privacy-callout strong {
  color: var(--text);
}

.privacy-contact {
  padding: clamp(28px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Support */
.support-page {
  min-height: calc(100svh - var(--header-height));
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: start;
  padding-block: clamp(70px, 9vw, 126px) clamp(90px, 12vw, 150px);
}

.support-intro {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.support-intro h1 {
  max-width: 8ch;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6.7vw, 6.4rem);
}

.support-intro__lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.23rem);
}

.support-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  max-width: 560px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.support-note__mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: #1d1306;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
  place-items: center;
}

.support-note h2 {
  margin: 2px 0 8px;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.support-note p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.support-form-card {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  background: rgba(255, 255, 255, .075);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.support-form-card::before {
  position: absolute;
  top: -110px;
  right: -100px;
  width: 250px;
  height: 250px;
  content: "";
  pointer-events: none;
  background: rgba(232, 180, 93, .13);
  border-radius: 50%;
  filter: blur(12px);
}

.support-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field--full,
.form-notice,
.support-submit {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: .88rem;
  font-weight: 760;
}

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.form-label-row span {
  color: var(--muted);
  font-size: .72rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: inherit;
  background: rgba(5, 7, 22, .72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.form-field input,
.form-field select {
  min-height: 54px;
  padding: 0 15px;
}

.form-field select {
  padding-right: 40px;
}

.form-field textarea {
  min-height: 178px;
  padding: 14px 15px;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--border-bright);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: rgba(5, 7, 22, .9);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 180, 93, .12);
}

.form-field select:disabled {
  color: var(--muted);
  cursor: wait;
  opacity: .72;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #85838d;
}

.form-notice {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.form-notice a {
  color: var(--accent-soft);
  text-underline-offset: 3px;
}

.support-submit {
  width: 100%;
  cursor: pointer;
  border: 0;
}

.support-submit span {
  margin-left: 8px;
  font-size: 1.1rem;
}

.support-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.support-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.support-success {
  max-width: 650px;
}

.support-success__mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  color: #1d1306;
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
  place-items: center;
}

.support-success p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--muted);
}

/* Project index */
.page-hero {
  padding-block: clamp(80px, 11vw, 145px) 60px;
}

.page-hero h1 {
  max-width: 13ch;
}

.project-page-intro {
  max-width: 680px;
  margin: 0;
}

.projects-page-grid {
  padding-bottom: clamp(100px, 14vw, 180px);
}

/* Project detail */
.project-detail {
  padding-block: clamp(68px, 9vw, 120px) clamp(100px, 13vw, 170px);
}

.back-link {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 42px;
  color: var(--accent-soft);
  font-weight: 750;
  text-decoration: none;
}

.project-detail__header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: end;
  margin-bottom: 52px;
}

.project-detail__header h1 {
  max-width: 14ch;
}

.project-detail__meta {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.project-detail__meta .tag-list {
  margin-bottom: 24px;
}

.project-detail__meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-facts {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.project-facts div {
  display: grid;
  grid-template-columns: minmax(82px, .55fr) minmax(0, 1fr);
  gap: 14px;
}

.project-facts dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  font-size: .82rem;
  font-weight: 680;
}

.project-visual,
.live-preview,
.project-carousel {
  overflow: hidden;
  background: #101321;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.project-visual img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.project-visual--fallback {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 32px;
  color: var(--muted);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 850;
  text-align: center;
}

.project-carousel {
  background: #03040a;
}

.project-carousel__stage {
  position: relative;
  overflow: hidden;
}

.project-carousel__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(52, 126, 206, .13), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 45%);
}

.project-carousel__track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 27%, 300px);
  gap: 18px;
  overflow-x: auto;
  padding: 28px 78px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.project-carousel__track::-webkit-scrollbar {
  display: none;
}

.project-carousel__slide {
  position: relative;
  aspect-ratio: 1320 / 2868;
  margin: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  opacity: .74;
  scroll-snap-align: center;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-carousel__slide--active {
  opacity: 1;
  border-color: rgba(232, 180, 93, .54);
  transform: translateY(-4px);
}

.project-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-carousel__slide--error::after {
  content: attr(data-error-label);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 720;
  text-align: center;
}

.project-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  background: rgba(8, 10, 23, .78);
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.project-carousel__button:hover {
  background: rgba(232, 180, 93, .2);
  transform: translateY(-50%) scale(1.05);
}

.project-carousel__button--previous {
  left: 22px;
}

.project-carousel__button--next {
  right: 22px;
}

.project-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px 20px;
  background: rgba(255,255,255,.045);
  border-top: 1px solid var(--border);
}

.project-carousel__counter {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 720;
}

.project-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.project-carousel__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255,255,255,.28);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.project-carousel__dots button[aria-current="true"] {
  width: 26px;
  background: var(--accent);
  border-radius: 999px;
}

/* REM project showcase */
[data-project-id="rem-ai"] .project-detail__header h1 {
  color: #f8faff;
  text-shadow: 0 0 42px rgba(111, 142, 255, .26);
}

[data-project-id="rem-ai"] .project-detail__meta {
  background: linear-gradient(145deg, rgba(77, 105, 190, .14), rgba(255, 255, 255, .045));
  border-color: rgba(133, 158, 255, .23);
}

.rem-showcase {
  display: grid;
  gap: clamp(64px, 9vw, 112px);
}

.rem-showcase__banner {
  position: relative;
  aspect-ratio: 1586 / 992;
  margin: 0;
  overflow: hidden;
  background: #02030b;
  border: 1px solid rgba(131, 155, 255, .28);
  border-radius: var(--radius-lg);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .42),
    0 0 80px rgba(62, 88, 216, .1);
}

.rem-showcase__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 68%, rgba(4, 7, 25, .28)),
    radial-gradient(circle at 31% 56%, rgba(107, 134, 255, .09), transparent 30%);
}

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

.rem-showcase__highlights {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 64px), 820px);
  margin: clamp(-140px, -10vw, -86px) auto 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: rgba(9, 13, 33, .78);
  border: 1px solid rgba(140, 164, 255, .26);
  border-radius: 999px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .36);
  backdrop-filter: blur(20px);
}

.rem-showcase__highlights li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px 20px;
  color: #dce4ff;
  font-size: clamp(.7rem, 1.25vw, .84rem);
  font-weight: 760;
  letter-spacing: .01em;
}

.rem-showcase__highlights li + li {
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.rem-showcase__highlight-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: #9bb4ff;
  place-items: center;
  background:
    radial-gradient(circle at 36% 28%, rgba(164, 185, 255, .19), transparent 48%),
    rgba(83, 109, 207, .12);
  border: 1px solid rgba(145, 170, 255, .25);
  border-radius: 15px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .08),
    0 0 24px rgba(67, 98, 220, .11);
}

.rem-showcase__highlight-icon svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.rem-showcase__highlight-label {
  max-width: 15ch;
  line-height: 1.3;
}

.rem-showcase__section {
  position: relative;
  display: grid;
  gap: 34px;
}

.rem-showcase__section::before {
  content: "";
  position: absolute;
  top: 24%;
  left: 50%;
  z-index: -1;
  width: min(80vw, 880px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(59, 83, 203, .15), transparent 68%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
}

.rem-showcase__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: end;
}

.rem-showcase__heading h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.rem-showcase__heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.project-carousel--mobile {
  background:
    radial-gradient(circle at 50% 30%, rgba(74, 103, 224, .2), transparent 44%),
    linear-gradient(155deg, #060817, #02030a 70%);
  border-color: rgba(126, 155, 255, .25);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .38),
    inset 0 1px rgba(255, 255, 255, .035);
}

.project-carousel--mobile .project-carousel__stage::before {
  background:
    linear-gradient(90deg, rgba(3, 4, 13, .9), transparent 11%, transparent 89%, rgba(3, 4, 13, .9)),
    radial-gradient(circle at 50% 36%, rgba(80, 111, 239, .21), transparent 48%);
}

.project-carousel--mobile .project-carousel__track {
  grid-auto-columns: clamp(220px, 26%, 294px);
  gap: clamp(18px, 2.5vw, 28px);
  padding-block: clamp(30px, 4vw, 48px);
}

.project-carousel--mobile .project-carousel__slide {
  border-color: rgba(140, 161, 243, .22);
  border-radius: 28px;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .48),
    0 0 0 5px rgba(90, 112, 202, .045);
}

.project-carousel--mobile .project-carousel__slide--active {
  border-color: rgba(135, 165, 255, .74);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, .56),
    0 0 36px rgba(77, 108, 230, .2),
    0 0 0 5px rgba(101, 129, 235, .08);
}

.project-carousel--mobile .project-carousel__button:hover {
  background: rgba(85, 116, 238, .25);
}

.project-carousel--mobile .project-carousel__dots button[aria-current="true"] {
  background: #81a2ff;
  box-shadow: 0 0 16px rgba(102, 137, 255, .5);
}

[data-project-id="rem-ai"] .project-copy-grid {
  margin-top: clamp(74px, 10vw, 124px);
  padding-top: clamp(54px, 7vw, 82px);
  border-top: 1px solid rgba(126, 151, 244, .18);
}

.live-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.8rem;
  background: rgba(255,255,255,.055);
  border-bottom: 1px solid var(--border);
}

.live-preview__bar a {
  color: var(--accent-soft);
  font-weight: 750;
  text-decoration: none;
}

.live-preview iframe {
  display: block;
  width: 100%;
  min-height: min(760px, 76vh);
  background: white;
  border: 0;
}

.project-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.5fr);
  gap: clamp(40px, 8vw, 110px);
  padding-top: 58px;
}

.project-description {
  max-width: 720px;
  white-space: pre-line;
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-actions .button {
  width: 100%;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.redirect-card {
  max-width: 560px;
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.redirect-card h1 {
  max-width: none;
  font-size: clamp(2rem, 7vw, 4rem);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .52fr);
    gap: 40px;
  }

  .project-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-group:last-child {
    grid-column: 1 / -1;
  }

  .support-layout {
    grid-template-columns: minmax(0, .72fr) minmax(440px, 1.28fr);
    gap: 44px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 70px;
    --radius-lg: 24px;
  }

  .section-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .brand span {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 2px;
    padding: 12px;
    visibility: hidden;
    opacity: 0;
    background: rgba(12, 13, 29, 0.97);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 74px;
  }

  .profile-card {
    width: min(100%, 420px);
    margin-inline: auto;
    transform: none;
  }

  .quick-facts {
    gap: 14px;
  }

  .quick-facts li {
    padding-right: 0;
  }

  .split-section,
  .section-heading,
  .project-detail__header,
  .project-copy-grid,
  .setup-hero,
  .setup-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .setup-group--wide {
    grid-column: auto;
  }

  .setup-group--wide .setup-list {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .project-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-group:last-child {
    grid-column: auto;
  }

  .skill-group {
    min-height: 0;
  }

  .skill-group__number {
    margin-bottom: 34px;
  }

  .mission-card {
    grid-template-columns: 1fr;
  }

  .orbit-mark {
    width: 120px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .privacy-summary,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: static;
  }

  .privacy-app-card {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .privacy-app-card img {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .support-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 66px;
  }

  .support-intro {
    position: static;
  }

  .support-intro h1 {
    max-width: 10ch;
  }

  .live-preview iframe {
    min-height: 580px;
  }

  .rem-showcase {
    gap: 66px;
  }

  .rem-showcase__highlights {
    width: calc(100% - 28px);
    margin-top: -86px;
  }

  .rem-showcase__highlights li {
    gap: 9px;
    min-height: 82px;
    padding: 12px 8px;
    line-height: 1.25;
    text-align: left;
  }

  .rem-showcase__highlight-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .rem-showcase__highlight-icon svg {
    width: 21px;
    height: 21px;
  }

  .rem-showcase__heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

@media (max-width: 440px) {
  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .button-row .button {
    width: 100%;
  }

  .support-form {
    grid-template-columns: 1fr;
  }

  .form-field,
  .form-field--full,
  .form-notice,
  .support-submit {
    grid-column: 1;
  }

  .form-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts li {
    grid-template-columns: 58px 1fr;
    align-items: baseline;
  }

  .mission-card {
    padding: 30px 24px;
  }

  .setup-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .live-preview__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-carousel__button {
    width: 46px;
    height: 46px;
  }

  .project-carousel__button--previous {
    left: 10px;
  }

  .project-carousel__button--next {
    right: 10px;
  }

  .project-carousel__track {
    grid-auto-columns: min(78vw, 340px);
    gap: 14px;
    padding: 18px 52px;
  }

  .project-carousel__slide {
    border-radius: 14px;
  }

  .project-carousel__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .project-carousel__dots {
    justify-content: flex-start;
  }

  .rem-showcase__banner {
    aspect-ratio: 4 / 3;
  }

  .rem-showcase__banner img {
    object-position: 40% center;
  }

  .rem-showcase__highlights {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: -78px;
    border-radius: 20px;
  }

  .rem-showcase__highlights li {
    justify-content: flex-start;
    min-height: 58px;
    padding: 9px 16px;
  }

  .rem-showcase__highlights li + li {
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-left: 0;
  }

  .project-carousel--mobile .project-carousel__track {
    grid-auto-columns: min(74vw, 310px);
    padding-block: 24px;
  }

  .project-carousel--mobile .project-carousel__slide {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
