﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f8fafc;
  color: #334155;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

button {
  cursor: default;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 23, 42, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.logo {
  justify-self: start;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span,
.hero h1 span {
  color: #3b82f6;
}

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
}

.nav-links a {
  position: relative;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links .active {
  color: #ffffff;
}

.nav-links .active::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: #3b82f6;
  content: "";
}

.hero {
  min-height: 540px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 35%, rgba(59, 130, 246, 0.23), transparent 26%),
    linear-gradient(135deg, #0b172a, #10243e);
  color: #ffffff;
}

.hero-content {
  padding-block: 30px;
}

.eyebrow,
.section-label,
.path-label {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 18px;
  color: #93c5fd;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-description {
  max-width: 690px;
  margin-top: 30px;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: #2563eb;
  color: #ffffff;
}

.button-primary:hover {
  background: #1d4ed8;
}

.button-secondary {
  border-color: #64748b;
  color: #ffffff;
}

.button-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.intro-section {
  padding-block: 105px;
}

.intro-heading {
  max-width: 710px;
  margin-bottom: 46px;
}

.intro-heading h2,
.home-statement h2 {
  margin-block: 8px 16px;
  color: #0b172a;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.intro-heading > p:last-child {
  max-width: 620px;
  color: #64748b;
  font-size: 1.05rem;
}

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

.path-card {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.path-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.12);
}

.path-card-featured {
  background: #10243e;
  border-color: #173554;
  color: #cbd5e1;
}

.path-number {
  align-self: flex-end;
  color: #e2e8f0;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.path-card-featured .path-number {
  color: rgba(255, 255, 255, 0.13);
}

.path-card h3 {
  margin-block: 7px 12px;
  color: #0b172a;
  font-size: 1.65rem;
}

.path-card-featured h3 {
  color: #ffffff;
}

.path-arrow {
  color: #2563eb;
  font-size: 1.65rem;
  transition: transform 180ms ease;
}

.path-card-featured .path-arrow {
  color: #93c5fd;
}

.path-card:hover .path-arrow {
  transform: translateX(6px);
}

.home-statement {
  padding-block: 82px;
  background: #f1f5f9;
}

.statement-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(40px, 9vw, 110px);
}

.statement-content p:last-child {
  color: #64748b;
  font-size: 1.08rem;
}

.site-footer {
  padding-block: 15px;
  background: #0b172a;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-content a:hover {
  color: #ffffff;
}

/* Shared interior pages */
.page-hero {
  min-height: 470px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 35%, rgba(59, 130, 246, 0.22), transparent 25%),
    linear-gradient(135deg, #0b172a, #10243e);
  color: #ffffff;
}

.compact-hero {
  min-height: 420px;
}

.page-hero-content {
  padding-block: 80px;
}

.page-hero .eyebrow {
  margin-bottom: 18px;
  color: #93c5fd;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.page-hero h1 span {
  color: #3b82f6;
}

.page-hero-content > p:last-child {
  max-width: 680px;
  margin-top: 25px;
  color: #cbd5e1;
  font-size: 1.12rem;
}

.content-section {
  padding-block: 95px;
}

.tinted-section {
  background: #f1f5f9;
}

.content-section h2,
.contact-details h2 {
  color: #0b172a;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.about-layout,
.split-callout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(45px, 9vw, 115px);
  align-items: start;
}

.about-layout {
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(45px, 8vw, 95px);
  align-items: stretch;
}

.sticky-heading {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
  padding-bottom: 0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 0;
  top: 115px;
}

.sticky-heading h2,
.split-callout h2 {
  margin-top: 8px;
}

.about-name > span {
  display: block;
  color: #64748b;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.about-name strong {
  position: relative;
  display: inline-block;
  padding-bottom: 13px;
  color: #0b172a;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
}

.about-name strong > span {
  color: #3b82f6;
}

.about-name strong::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #3b82f6;
  border-radius: 999px;
  content: "";
}

.prose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  color: #64748b;
  font-size: 1.13rem;
}

.prose p {
  padding-left: 0;
  border-left: 0;
}

.section-heading-block {
  margin-bottom: 38px;
}

.section-heading-block h2,
.section-heading-row h2 {
  margin-top: 7px;
}

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

.value-card {
  min-height: 285px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #0b172a;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.value-card:hover {
  transform: translateY(-4px);
  background: #10243e;
  border-color: #173554;
  color: #ffffff;
}

.value-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.value-card-top > span {
  color: #3b82f6;
  font-weight: 800;
}

.value-icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  background: #dbeafe;
  border-radius: 12px;
  color: #2563eb;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.value-card:hover .value-icon {
  background: rgba(147, 197, 253, 0.14);
  color: #93c5fd;
}

.value-card h3 {
  margin-block: 45px 10px;
  font-size: 1.35rem;
}

.value-card p {
  color: #64748b;
  transition: color 180ms ease;
}

.value-card:hover p {
  color: #cbd5e1;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.skill-list span {
  padding: 10px 15px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #173554;
  font-weight: 700;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 42px;
}

.section-heading-row > p {
  max-width: 480px;
  color: #64748b;
}

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

.project-directory {
  position: sticky;
  top: 72px;
  z-index: 8;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
}

.project-directory-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  padding-block: 15px;
  scrollbar-width: thin;
}

.project-directory a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 180ms ease;
}

.project-directory a:hover,
.project-directory a:focus-visible {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #2563eb;
}

.project-category {
  padding-block: 85px;
}

.category-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 45px;
}

.category-heading h2 {
  margin-top: 7px;
  color: #0b172a;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.category-heading > p {
  max-width: 540px;
  color: #64748b;
}

.project-group + .project-group {
  margin-top: 65px;
  padding-top: 55px;
  border-top: 1px solid #e2e8f0;
}

.project-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}

.project-group-heading h3 {
  color: #10243e;
  font-size: 1.35rem;
}

.project-group-heading p {
  color: #64748b;
  font-size: 0.9rem;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 22px;
}

.project-card-small {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card-small:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.12);
}

.project-thumbnail {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.project-thumbnail span {
  padding: 20px;
}

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

.thumbnail-navy {
  background:
    radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.35), transparent 30%), #10243e;
}

.thumbnail-blue {
  background: linear-gradient(135deg, #2563eb, #173554);
}

.thumbnail-slate {
  background: linear-gradient(135deg, #64748b, #10243e);
}

.project-card-body {
  padding: 24px;
}

.project-kind {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-card-body h4 {
  margin-block: 7px 10px;
  color: #0b172a;
  font-size: 1.3rem;
  line-height: 1.25;
}

.project-card-body > p:not(.project-kind) {
  color: #64748b;
}

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

.tag-list li {
  padding: 5px 10px;
  background: #f1f5f9;
  border-radius: 5px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-link {
  display: inline-block;
  color: #2563eb;
  font-weight: 750;
}

.project-placeholder-card {
  border-style: dashed;
}

.resume-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: clamp(45px, 8vw, 100px);
  align-items: start;
}

.resume-sidebar {
  top: 105px;
  display: grid;
  gap: 40px;
  padding: 30px;
  background: #10243e;
  border-radius: 14px;
  color: #cbd5e1;
}

.profile-photo,
.profile-photo-image {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  border-radius: 10px;
}

.profile-photo {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at 50% 35%, rgba(147, 197, 253, 0.25), transparent 28%),
    rgba(255, 255, 255, 0.05);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 750;
}

.profile-photo-image {
  display: block;
  object-fit: cover;
}

.resume-sidebar h2 {
  margin-top: 7px;
  color: #ffffff;
  font-size: 1.7rem;
}

.resume-sidebar a {
  display: inline-block;
  margin-top: 14px;
  color: #93c5fd;
  font-weight: 750;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  list-style: none;
}

.plain-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-main,
.resume-section {
  display: grid;
  gap: 24px;
}

.resume-main {
  gap: 65px;
}

.resume-section > p:last-child {
  color: #64748b;
  font-size: 1.05rem;
}

.resume-skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.resume-skill-groups div {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.resume-skill-groups h3 {
  margin-bottom: 7px;
  color: #0b172a;
  font-size: 1.05rem;
}

.resume-skill-groups p {
  color: #64748b;
  font-size: 0.94rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 26px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
}

.timeline-date {
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin-bottom: 7px;
  color: #0b172a;
  font-size: 1.25rem;
}

.timeline-item div:last-child p {
  color: #64748b;
}

.certificate-section {
  padding-block: 95px;
}

.certificate-section h2 {
  color: #0b172a;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.certificate-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.12);
}

/* A single certificate uses a wide layout. Adding a second card restores the grid. */
.certificate-card:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.certificate-card:only-child .certificate-preview {
  min-height: 500px;
  aspect-ratio: auto;
  border-right: 1px solid #e2e8f0;
  border-bottom: 0;
}

.certificate-card:only-child .certificate-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.certificate-preview {
  aspect-ratio: 4 / 3.2;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.certificate-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 25px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 36, 62, 0.04)), #ffffff;
  border: 2px dashed #bfdbfe;
  color: #173554;
  text-align: center;
}

.certificate-placeholder span {
  font-size: 1.05rem;
  font-weight: 800;
}

.certificate-placeholder small {
  color: #64748b;
}

.certificate-image-link {
  width: 100%;
  height: 100%;
  display: block;
}

.certificate-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.certificate-image:hover {
  cursor: pointer;
}

.certificate-body {
  padding: clamp(25px, 4vw, 34px);
}

.certificate-organization {
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certificate-body h3 {
  margin-block: 7px 10px;
  color: #0b172a;
  font-size: 1.5rem;
  line-height: 1.25;
}

.certificate-description {
  color: #64748b;
}

.certificate-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-block: 25px;
  padding-block: 20px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.certificate-details div {
  min-width: 0;
}

.certificate-details dt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.certificate-details dd {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #10243e;
  font-weight: 700;
}

.certificate-link {
  display: inline-block;
  color: #2563eb;
  font-weight: 750;
}

.certificate-link-disabled {
  color: #64748b;
}

.certificate-verification {
  color: #334155;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(45px, 8vw, 100px);
  align-items: start;
}

.contact-details h2 {
  margin-block: 8px 16px;
}

.contact-details > p:last-of-type {
  color: #64748b;
}

.contact-methods {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}

.contact-methods div {
  display: grid;
  gap: 2px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.contact-methods span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
}

.contact-methods a {
  color: #10243e;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(25px, 5vw, 42px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.form-field label {
  color: #10243e;
  font-size: 0.88rem;
  font-weight: 750;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #0b172a;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #3b82f6;
  outline: 3px solid rgba(59, 130, 246, 0.18);
}

.form-note {
  color: #64748b;
  font-size: 0.82rem;
}

:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

#wide {
  max-width: 540px;
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 11px;
  }

  .nav-links {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    padding-block: 8px 14px;
    scrollbar-width: thin;
  }

  .project-directory {
    position: static;
  }

  .project-directory-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 625px;
  }

  .hero-content,
  .intro-section {
    padding-block: 75px;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 290px;
  }

  .statement-content {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-block: 70px;
  }

  .about-layout,
  .split-callout,
  .resume-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .sticky-heading,
  .resume-sidebar {
    position: static;
  }

  .sticky-heading {
    min-height: auto;
    display: block;
    padding-right: 0;
    padding-bottom: 28px;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .prose {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 235px;
  }

  .category-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 15px;
  }

  .certificate-gallery {
    grid-template-columns: 1fr;
  }

  .certificate-card:only-child {
    grid-template-columns: 1fr;
  }

  .certificate-card:only-child .certificate-preview {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
}

@media (max-width: 520px) {
  .nav-links a {
    font-size: 0.86rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }

  .page-hero,
  .compact-hero {
    min-height: 390px;
  }

  .page-hero-content {
    padding-block: 60px;
  }

  .page-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.1rem);
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .certificate-gallery,
  .form-row,
  .resume-skill-groups {
    grid-template-columns: 1fr;
  }

  .certificate-details {
    grid-template-columns: 1fr;
  }

  .project-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.skill-list span:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  cursor: default;
}

.link {
  color: #1d4ed8;
  font-weight: bold;
}

.link:hover {
  color: #002792;
  text-decoration: underline;
  cursor: pointer;
}

/* Private owner dashboard */
.owner-dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.22), transparent 31%), #f8fafc;
}

.owner-dashboard-header {
  background: #0b172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-dashboard-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.owner-dashboard-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #93c5fd;
  font-size: 0.86rem;
  font-weight: 750;
}

.owner-dashboard-nav-links a {
  color: #ffffff;
}

.owner-dashboard-nav-links a:hover {
  color: #bfdbfe;
}

.owner-dashboard-nav-links form {
  margin: 0;
}

.owner-dashboard-logo-form {
  margin: 0;
}

.owner-dashboard-logo-form .logo {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Public maintenance screen */
.maintenance-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.22), transparent 27%),
    radial-gradient(circle at 88% 80%, rgba(14, 116, 144, 0.18), transparent 30%), #0b172a;
}

.maintenance-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
}

.maintenance-card {
  width: min(100%, 660px);
  padding: clamp(36px, 7vw, 68px);
  background: rgba(16, 36, 62, 0.9);
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 18px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.28);
}

.maintenance-logo {
  margin-bottom: clamp(58px, 11vw, 105px);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.maintenance-logo span {
  color: #3b82f6;
}

.maintenance-card .section-label {
  color: #93c5fd;
}

.maintenance-card h1 {
  max-width: 560px;
  margin: 8px 0 18px;
  color: #ffffff;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.maintenance-card > p:not(.section-label, .maintenance-logo) {
  max-width: 530px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.75;
}

.maintenance-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  padding: 10px 13px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 999px;
  color: #bfdbfe;
  font-size: 0.84rem;
  font-weight: 750;
}

.maintenance-status span {
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

/* Private notification center */
.notification-center {
  padding-top: 70px;
  padding-bottom: 100px;
}
.notification-center h1 {
  margin: 7px 0 12px;
  color: #0b172a;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.notification-lede {
  max-width: 680px;
  color: #64748b;
  font-size: 1.04rem;
}
.notification-stats,
.notification-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 35px;
}
.notification-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-bottom: 24px;
}
.notification-stats div {
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.notification-stats strong,
.notification-stats span {
  display: block;
}
.notification-stats strong {
  color: #1d4ed8;
  font-size: 1.8rem;
}
.notification-stats span {
  color: #64748b;
  font-weight: 700;
}
.notification-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}
.notification-form label {
  display: grid;
  gap: 5px;
  color: #173554;
  font-size: 0.86rem;
  font-weight: 750;
}
.notification-form input,
.notification-form textarea,
.notification-form select {
  width: 100%;
  padding: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #0b172a;
  font: inherit;
}
.notification-form textarea {
  min-height: 75px;
  resize: vertical;
}
.notification-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.notification-check input {
  width: auto;
}
.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.notification-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.notification-list strong,
.notification-list small {
  display: block;
}
.notification-list small {
  color: #64748b;
}
.notification-list form {
  display: flex;
  gap: 7px;
  align-items: center;
}
.notification-list button {
  background: #eff6ff;
  border: 0;
  border-radius: 6px;
  padding: 7px;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.notification-endpoint {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #eff6ff;
  border-radius: 7px;
  color: #173554;
}
.notification-center pre {
  overflow: auto;
  padding: 12px;
  background: #0b172a;
  border-radius: 8px;
  color: #dbeafe;
}
@media (max-width: 700px) {
  .notification-stats,
  .notification-grid {
    grid-template-columns: 1fr;
  }
  .notification-center {
    padding-top: 50px;
  }
  .notification-list > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

.owner-dashboard-nav-links button {
  padding: 0;
  background: transparent;
  border: 0;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.owner-dashboard-nav-links button:hover,
.owner-dashboard-nav-links button:focus-visible {
  color: #bfdbfe;
}

.owner-dashboard-main {
  padding-top: 78px;
  padding-bottom: 100px;
}

.owner-dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  margin-bottom: 48px;
}

.owner-dashboard-intro h1 {
  max-width: 720px;
  margin: 8px 0 16px;
  color: #0b172a;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.owner-dashboard-intro > div > p:last-child {
  max-width: 660px;
  color: #64748b;
  font-size: 1.04rem;
}

.owner-dashboard-badge {
  display: grid;
  gap: 2px;
  min-width: 155px;
  padding: 15px 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.owner-dashboard-badge span,
.owner-link-examples span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.owner-dashboard-badge strong {
  color: #1d4ed8;
  font-size: 0.93rem;
}

.owner-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
}

.owner-panel {
  padding: clamp(26px, 4vw, 38px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.08);
}

.owner-panel h2 {
  margin: 7px 0 10px;
  color: #0b172a;
  font-size: 1.85rem;
  line-height: 1.1;
}

.owner-panel-copy {
  color: #64748b;
}

.owner-link-switch {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  margin: 32px 0 24px;
  color: #173554;
  font-size: 0.9rem;
  font-weight: 750;
}

.owner-link-switch > span:last-child {
  text-align: right;
}

.owner-link-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.owner-switch-track {
  width: 52px;
  height: 29px;
  display: flex;
  align-items: center;
  padding: 3px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background-color 180ms ease;
}

.owner-switch-track span {
  width: 23px;
  height: 23px;
  display: block;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
  transition: transform 180ms ease;
}

.owner-link-switch input:checked + .owner-switch-track {
  background: #2563eb;
}

.owner-link-switch input:checked + .owner-switch-track span {
  transform: translateX(23px);
}

.owner-link-switch input:focus-visible + .owner-switch-track {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 4px;
}

.owner-link-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.owner-link-examples div {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.owner-link-examples code {
  overflow-wrap: anywhere;
  color: #173554;
  font-size: 0.88rem;
  font-weight: 700;
}

.owner-panel-note {
  margin-top: 22px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.owner-category-list {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}

.owner-category-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
}

.owner-category-list strong {
  min-width: 30px;
  padding: 2px 8px;
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  text-align: center;
}

.owner-maintenance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 35px;
  margin-top: 24px;
}

.owner-maintenance-form {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.owner-maintenance-switch {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  color: #173554;
  font-size: 0.9rem;
  font-weight: 750;
}

.owner-maintenance-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.owner-maintenance-switch input:checked + .owner-switch-track {
  background: #2563eb;
}

.owner-maintenance-switch input:checked + .owner-switch-track span {
  transform: translateX(23px);
}

.owner-maintenance-switch input:focus-visible + .owner-switch-track {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 4px;
}

.owner-maintenance-switch strong {
  min-width: 25px;
  color: #1d4ed8;
}

@media (max-width: 800px) {
  .owner-dashboard-intro,
  .owner-dashboard-grid,
  .owner-maintenance-panel {
    grid-template-columns: 1fr;
  }

  .owner-dashboard-intro {
    align-items: start;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .owner-dashboard-nav {
    min-height: 82px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .owner-dashboard-nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .owner-dashboard-main {
    padding-top: 55px;
  }

  .owner-link-switch {
    grid-template-columns: 1fr auto;
  }

  .owner-link-switch > span:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .owner-link-examples {
    grid-template-columns: 1fr;
  }

  .owner-maintenance-panel,
  .owner-maintenance-form {
    justify-items: start;
  }
}

/* Private project uploader */
.upload-page {
  min-height: 100vh;
  background: #f8fafc;
}

.upload-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  background:
    radial-gradient(circle at 78% 22%, rgba(59, 130, 246, 0.25), transparent 27%),
    linear-gradient(135deg, #0b172a, #10243e);
}

.upload-login-card {
  width: 100%;
  max-width: 460px;
  padding: 42px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(4, 14, 29, 0.35);
}

.upload-login-logo {
  display: inline-block;
  margin-bottom: 45px;
  color: #0b172a;
}

.upload-login-card h1 {
  margin: 6px 0 12px;
  color: #0b172a;
  font-size: 2.35rem;
  line-height: 1.05;
}

.upload-login-card > p:not(.section-label) {
  color: #64748b;
}

.upload-login-form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.upload-login-form label {
  color: #10243e;
  font-size: 0.88rem;
  font-weight: 750;
}

.upload-login-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0b172a;
  font: inherit;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-align: center;
}

.upload-login-form input:focus {
  border-color: #3b82f6;
  outline: 3px solid rgba(59, 130, 246, 0.18);
}

.upload-login-form .button {
  width: 100%;
  margin-top: 5px;
}

.upload-back-link {
  display: inline-block;
  margin-top: 25px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

.upload-back-link:hover {
  color: #2563eb;
}

.upload-notice {
  margin: 22px 0;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.upload-notice-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.upload-notice-success {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.upload-admin-header {
  background: #0b172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-admin-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.upload-admin-nav-actions,
.upload-admin-nav-actions form {
  display: flex;
  align-items: center;
  gap: 18px;
}

.upload-admin-nav-actions a,
.upload-admin-nav-actions button {
  padding: 0;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.upload-admin-nav-actions a:hover,
.upload-admin-nav-actions button:hover {
  color: #ffffff;
}

.upload-admin-main {
  padding-top: 75px;
  padding-bottom: 100px;
}

.upload-admin-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 45px;
}

.upload-admin-heading h1 {
  margin-top: 7px;
  color: #0b172a;
  font-size: 3.15rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.upload-admin-heading > p {
  color: #64748b;
  font-size: 1.03rem;
}

.upload-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 32px;
}

.project-preview-panel {
  align-self: stretch;
  min-width: 0;
}

.project-editor {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.08);
}

.editor-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 30px;
  background: #10243e;
}

.editor-title-row h2 {
  margin-top: 5px;
  color: #ffffff;
  font-size: 1.75rem;
}

.editor-title-row .section-label {
  color: #93c5fd;
}

.editor-reset-button {
  padding: 9px 12px;
  background: transparent;
  border: 1px solid #64748b;
  border-radius: 7px;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.editor-reset-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #93c5fd;
}

.editor-section {
  padding: 32px 30px;
  border-bottom: 1px solid #e2e8f0;
}

.editor-section[hidden] {
  display: none;
}

.editor-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.editor-section-heading > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  border-radius: 50%;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 800;
}

.editor-section-heading h3 {
  color: #10243e;
  font-size: 1.12rem;
}

.editor-section-heading p {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.88rem;
}

.folder-drop-zone {
  min-height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 25px;
  background: #f8fafc;
  border: 2px dashed #bfdbfe;
  border-radius: 12px;
  color: #10243e;
  text-align: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.folder-drop-zone:hover,
.folder-drop-zone.is-dragging {
  background: #eff6ff;
  border-color: #2563eb;
}

.folder-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.folder-drop-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: #2563eb;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.folder-drop-zone strong {
  font-size: 1rem;
}

.folder-drop-zone small {
  margin-top: 3px;
  color: #64748b;
}

.folder-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 11px 13px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #173554;
  font-size: 0.88rem;
}

.folder-selection[hidden] {
  display: none;
}

.project-editor .form-field {
  margin-top: 18px;
}

.project-editor .form-row .form-field {
  margin-top: 0;
}

.project-editor .form-field input,
.project-editor .form-field textarea,
.project-editor .form-field select {
  width: 100%;
  padding: 12px 13px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #0b172a;
  font: inherit;
}

.project-editor .form-field input:focus,
.project-editor .form-field textarea:focus,
.project-editor .form-field select:focus {
  border-color: #3b82f6;
  outline: 3px solid rgba(59, 130, 246, 0.16);
}

.project-editor .form-field label {
  color: #10243e;
  font-size: 0.86rem;
  font-weight: 750;
}

.project-editor .form-note {
  margin-top: 7px;
}

.image-choice-divider {
  position: relative;
  margin: 20px 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  text-align: center;
}

.image-choice-divider::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #e2e8f0;
  content: "";
}

.image-choice-divider span {
  position: relative;
  padding: 0 10px;
  background: #ffffff;
}

.editor-save-button {
  width: calc(100% - 60px);
  margin: 30px;
}

.preview-sticky {
  position: sticky;
  top: 24px;
}

.preview-sticky h2 {
  margin: 6px 0 20px;
  color: #0b172a;
  font-size: 1.55rem;
}

.admin-card-preview {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  cursor: default;
}

.admin-card-preview:hover {
  transform: none;
  border-color: #e2e8f0;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.12);
}

.admin-card-preview .project-thumbnail {
  height: 205px;
}

.admin-card-preview .project-card-body > p:not(.project-kind) {
  min-height: 78px;
}

.existing-projects {
  margin-top: 85px;
  padding-top: 65px;
  border-top: 1px solid #e2e8f0;
}

.existing-projects-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 28px;
}

.existing-projects-heading h2 {
  margin-top: 6px;
  color: #0b172a;
  font-size: 2.35rem;
  line-height: 1.08;
}

.existing-projects-heading > p {
  color: #64748b;
}

.existing-project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.existing-project-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #10243e;
  font: inherit;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.existing-project-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 25px rgba(15, 35, 60, 0.08);
}

.existing-project-item img {
  width: 70px;
  height: 52px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.existing-project-item span {
  min-width: 0;
  display: grid;
}

.existing-project-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-project-item small {
  color: #64748b;
}

.existing-project-item b {
  color: #2563eb;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .upload-admin-heading,
  .upload-workspace,
  .existing-projects-heading {
    grid-template-columns: 1fr;
  }

  .upload-admin-heading {
    gap: 15px;
  }

  .project-preview-panel {
    grid-row: 1;
  }

  .preview-sticky {
    position: static;
  }

  .admin-card-preview {
    max-width: 430px;
  }
}

@media (max-width: 600px) {
  .upload-login-card {
    padding: 30px 24px;
  }

  .upload-admin-nav {
    min-height: 82px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .upload-admin-main {
    padding-top: 55px;
  }

  .upload-admin-heading h1 {
    font-size: 2.45rem;
  }

  .editor-title-row,
  .editor-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .editor-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-editor .form-row,
  .existing-project-list {
    grid-template-columns: 1fr;
  }

  .project-editor .form-row {
    gap: 18px;
  }

  .project-editor .form-row .form-field + .form-field {
    margin-top: 0;
  }

  .editor-save-button {
    width: calc(100% - 40px);
    margin: 25px 20px;
  }

  .existing-project-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .existing-project-item img {
    width: 58px;
    height: 46px;
  }

  .existing-project-item b {
    display: none;
  }
}

/* Notification Center — private owner tool */
.notification-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.notification-form fieldset {
  border: 1px solid #dbe4ee;
  border-radius: 9px;
  padding: 12px;
}
.notification-form legend {
  padding: 0 6px;
  color: #173554;
  font-size: 0.86rem;
  font-weight: 750;
}
.notification-form small,
.notification-copy-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}
.notification-two-col,
.notification-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.notification-day-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.notification-actions,
.notification-inline-actions,
.notification-section-head,
.notification-copy-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.notification-section {
  margin-top: 24px;
}
.notification-section-head {
  justify-content: space-between;
  align-items: flex-start;
}
.notification-registry-grid {
  margin-top: 20px;
}
.notification-copy-label {
  display: block;
  margin: 17px 0 6px;
  color: #173554;
}
.notification-copy-row {
  align-items: stretch;
}
.notification-copy-row .notification-endpoint,
.notification-copy-row pre {
  flex: 1 1 300px;
  margin: 0;
}
.notification-copy,
.notification-inline-actions a,
.notification-inline-actions button,
.notification-list a {
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
.notification-inline-actions form {
  display: flex;
  gap: 7px;
}
.notification-steps {
  margin: 18px 0;
  padding-left: 21px;
  color: #475569;
}
.notification-steps li {
  margin: 6px 0;
}
.notification-status {
  margin-top: 14px;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 0.9rem;
}
.notification-status.is-good {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.notification-status.is-warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.notification-test-result {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 9px;
  background: #f8fafc;
}
.notification-test-result h3 {
  margin-top: 0;
}
.notification-result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}
.notification-result-row.is-match {
  color: #166534;
}
.notification-empty {
  color: #64748b;
  margin: 10px 0;
}
.notification-history {
  margin-top: 16px;
  overflow-x: auto;
}
.notification-history-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1fr 0.9fr 0.8fr;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.88rem;
}
.notification-history-head {
  border-top: 0;
  color: #173554;
  font-weight: 800;
  background: #f8fafc;
}
.notification-center hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 24px 0;
}
@media (max-width: 900px) {
  .notification-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .notification-two-col,
  .notification-day-grid {
    grid-template-columns: 1fr;
  }
  .notification-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notification-section-head {
    flex-direction: column;
  }
  .notification-inline-actions {
    width: 100%;
  }
}

/* Simplified Notification Center */
.notification-center-simple .notification-main-grid {
  margin-top: 30px;
}
.notification-center-simple .owner-panel h2 {
  margin-top: 0;
}
.notification-center-simple .notification-advanced {
  margin-top: 2px;
  border: 1px solid #dbe4ee;
  border-radius: 9px;
  background: #f8fafc;
}
.notification-center-simple .notification-advanced summary {
  cursor: pointer;
  padding: 12px;
  color: #173554;
  font-weight: 800;
}
.notification-center-simple .notification-advanced-body {
  display: grid;
  gap: 13px;
  padding: 0 12px 12px;
}
.notification-center-simple .notification-trigger-quickform {
  padding-bottom: 4px;
}
.notification-center-simple .notification-reminder-list > div {
  align-items: center;
}
.notification-center-simple .notification-tools-grid {
  margin-top: 24px;
}
.notification-center-simple .notification-shortcut-help {
  margin-top: 16px;
}
.notification-center-simple .notification-history-details {
  padding: 18px;
}
.notification-center-simple .notification-history-details > summary {
  cursor: pointer;
  color: #173554;
}
.notification-center-simple .notification-history-simple {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.notification-center-simple .notification-history-simple > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid #e2e8f0;
}
.notification-center-simple .notification-history-simple small {
  color: #64748b;
  text-align: right;
}
.notification-center-simple .notification-history-clear {
  margin-top: 14px;
}
@media (max-width: 700px) {
  .notification-center-simple .notification-reminder-list form {
    flex-wrap: wrap;
  }
  .notification-center-simple .notification-history-simple > div {
    flex-direction: column;
    gap: 2px;
  }
  .notification-center-simple .notification-history-simple small {
    text-align: left;
  }
}

/* Notification Center alignment cleanup */
.notification-center-simple .notification-main-grid {
  align-items: stretch;
}
.notification-center-simple .notification-main-grid > .owner-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.notification-center-simple .notification-main-grid > .owner-panel > .notification-form {
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .notification-center-simple .notification-main-grid > .owner-panel {
    height: auto;
  }
}
.nd-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 750;
  color: #d8e8ff;
  padding: 0.25rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  grid-column: 3;
  justify-self: end;
}
.nd-header-badge[hidden] {
  display: none !important;
}
.nd-header-badge img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.nd-header-badge:hover,
.nd-header-badge:focus-visible {
  background: #23436788;
  color: #fff;
}
.nd-header-badge[data-badge-tier="sapphire"] img {
  transform: scale(0.9);
}
.nd-header-badge[data-badge-tier="platinum"] img {
  transform: scale(0.92);
}
@media (max-width: 900px) {
  .nav:has(.nd-header-badge:not([hidden])) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .nav:has(.nd-header-badge:not([hidden])) .nav-links {
    order: 2;
    width: 100%;
    flex-basis: 100%;
  }
  .nd-header-badge {
    margin-left: auto;
    padding: 0.15rem 0.35rem;
  }
  .nd-header-badge img {
    width: 30px;
    height: 30px;
  }
  .nd-header-badge span {
    font-size: 0.7rem;
  }
}
.nd-header-badge span {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nd-header-badge.nd-no-image img {
  display: none;
}
.nd-header-badge.nd-no-image::before {
  content: "ND";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e40af;
  color: #fff;
  font-size: 0.68rem;
}

/* Mobile navigation and iPhone safe-area treatment */
html {
  background: #0b172a;
}

.site-header,
.owner-dashboard-header {
  padding-top: env(safe-area-inset-top, 0px);
}

body::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: env(safe-area-inset-top, 0px);
  background: #0b172a;
  pointer-events: none;
  content: "";
}

.nav-menu-toggle {
  display: none;
}

@media (max-width: 800px) {
  body::before {
    background: #060e1b;
  }

  .nav .logo,
  .owner-dashboard-nav .logo {
    line-height: 28px;
  }

  .nav .nd-header-badge {
    padding-block: 0;
    border-width: 0;
  }

  .nav .nd-header-badge img,
  .nav .nd-header-badge.nd-no-image::before {
    width: 28px;
    height: 28px;
  }

  .site-header {
    background: #0b172a;
  }

  .site-header,
  .owner-dashboard-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: #0b172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* The clock-area shade separates the header without a top line. */
  .site-header::after,
  .owner-dashboard-header::after {
    content: none;
  }

  .owner-dashboard-header {
    background-color: #0b172a !important;
    background-image: none !important;
    opacity: 1;
    filter: none;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav,
  .nav:has(.nd-header-badge:not([hidden])) {
    position: relative;
    min-height: 38px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
    padding-bottom: 8px;
  }

  .nav .logo {
    grid-column: 1;
  }

  .nav .nd-header-badge {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
  }

  .nav-menu-toggle {
    grid-column: 4;
    grid-row: 1;
    display: grid;
    place-content: center;
    gap: 3px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .nav-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 99px;
    background: #fff;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .nav-menu-open .nav-menu-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-menu-open .nav-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-menu-open .nav-menu-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav .nav-links,
  .nav:has(.nd-header-badge:not([hidden])) .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    grid-column: auto;
    grid-row: auto;
    display: none;
    width: min(240px, calc(100vw - 28px));
    max-height: calc(100dvh - 92px - env(safe-area-inset-top, 0px));
    margin: 0;
    padding: 8px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #10243e;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  }

  .nav.nav-menu-open .nav-links {
    display: grid;
    gap: 3px;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 13px;
    border-radius: 8px;
    font-size: 0.94rem;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links .active {
    background: rgba(59, 130, 246, 0.16);
  }

  .nav-links .active::after {
    top: 9px;
    right: auto;
    bottom: 9px;
    left: 0;
    width: 3px;
    height: auto;
    border-radius: 99px;
  }

  .owner-dashboard-nav {
    position: relative;
    min-height: 38px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
    padding-bottom: 8px;
  }

  .owner-dashboard-nav .logo,
  .owner-dashboard-nav .owner-dashboard-logo-form {
    grid-column: 1;
    grid-row: 1;
  }

  .owner-dashboard-nav .nav-menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .owner-dashboard-nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    grid-column: auto;
    grid-row: auto;
    display: none;
    width: min(270px, calc(100vw - 28px));
    max-height: calc(100dvh - 92px - env(safe-area-inset-top, 0px));
    padding: 8px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #10243e;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  }

  .owner-dashboard-nav.nav-menu-open .owner-dashboard-nav-links {
    display: grid;
    gap: 3px;
  }

  .owner-dashboard-nav-links a,
  .owner-dashboard-nav-links > span,
  .owner-dashboard-nav-links form,
  .owner-dashboard-nav-links button {
    width: 100%;
  }

  .owner-dashboard-nav-links a,
  .owner-dashboard-nav-links > span,
  .owner-dashboard-nav-links button {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    text-align: left;
  }

  .owner-dashboard-nav-links > span,
  .owner-dashboard-nav-links a:hover,
  .owner-dashboard-nav-links a:focus-visible {
    background: rgba(59, 130, 246, 0.16);
    color: #fff;
  }
}

/*
============================================================
---------------- Button Feedback & Focus States -------------
============================================================
*/
:where(
  .button,
  button:not(.project-wheel-card):not(.nav-menu-toggle):not([role="option"])
) {
  transition:
    scale 230ms cubic-bezier(0.2, 0.8, 0.2, 1.35),
    translate 230ms cubic-bezier(0.2, 0.8, 0.2, 1.35),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  :where(
    button:not(.project-wheel-card):not(.nav-menu-toggle):not(
        [role="option"]
      ):not(:disabled)
  ):hover {
    translate: 0 -1px;
  }
}
:where(
    .button,
    button:not(.project-wheel-card):not(.nav-menu-toggle):not([role="option"])
  ):not(:disabled):active {
  scale: 0.96;
  translate: 0 1px;
}
:where(.button, button, input, select, textarea):focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 4px;
}
:where(button:disabled, [aria-disabled="true"]) {
  cursor: not-allowed;
}

/*
============================================================
---------------- Navigation & Selection Motion --------------
============================================================
*/
.has-gliding-indicator {
  position: relative;
}
.nav-gliding-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
  pointer-events: none;
}
.nav-gliding-indicator.is-ready {
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    width 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 801px) {
  .has-gliding-indicator .nav-links .active::after {
    display: none;
  }
}
@media (max-width: 800px) {
  .nav-gliding-indicator {
    display: none;
  }
}
[data-animated-selection] {
  position: relative;
  isolation: isolate;
}
.selection-gliding-highlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 9px;
  background: #244c7c;
  box-shadow: 0 3px 8px #0b172a18;
  pointer-events: none;
}
.selection-gliding-highlight.is-ready {
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    width 360ms cubic-bezier(0.22, 1, 0.36, 1),
    height 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  :where(.button, button:not(.project-wheel-card)),
  .nav-gliding-indicator.is-ready,
  .selection-gliding-highlight.is-ready {
    transition: none;
  }
  :where(.button, button):active,
  :where(.button, button):hover {
    scale: 1;
    translate: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover {
    transform: none;
  }
}
