:root {
  --primary: #111111;
  --accent: #d89b11;
  --accent-soft: #f6e4b5;
  --bg: #fbfbfb;
  --bg-light: #f2f4f8;
  --bg-alt: #ffffff;
  --border: #e6e8ee;
  --text: #20242d;
  --text-light: #5f6674;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.07);
}

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

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  scroll-behavior: smooth;
  /* offset for sticky nav on anchor jumps */
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
  position: relative;
}

#admin-2fa-form {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1rem;
}

#admin-2fa-form .admin-otp-input,
#admin-2fa-form button {
  width: 100%;
  max-width: 320px;
  display: block;
}

.admin-otp-input {
  width: 100%;
  max-width: 320px;
  margin: 0.8rem auto 1.0rem;
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid #f0ad4e;
  background: rgba(255, 255, 255, 0.15);
  color: #444;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3rem;
  box-shadow: 0 0 10px rgba(255, 205, 0, 0.2);
}

.admin-otp-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
}

.admin-otp-input::placeholder {
  color: #999;
  letter-spacing: 0.45rem;
}

.admin-otp-input.otp-incomplete {
  color: #444;
}

.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.5) !important;
}

.ambient-gradient,
.ambient-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
}

.ambient-gradient {
  background:
    radial-gradient(circle at 8% 12%, rgba(216, 155, 17, 0.18) 0, transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(150, 188, 255, 0.14) 0, transparent 30%),
    radial-gradient(circle at 60% 92%, rgba(216, 155, 17, 0.12) 0, transparent 34%);
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-grid {
  background-image: linear-gradient(rgba(32, 36, 45, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 36, 45, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
  opacity: 0.45;
}

/* Diagonal scanty background — replaces square grid on arm sub-sites */
.ambient-diagonal {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(32, 36, 45, 0.028) 0px,
    rgba(32, 36, 45, 0.028) 1px,
    transparent 1px,
    transparent 72px
  );
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 1.3rem;
  font-weight: 650;
  margin-bottom: 0.7rem;
}

p {
  font-size: 1.06rem;
  color: var(--text-light);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #af7b0c;
}

header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 76px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-main {
  display: flex;
  align-items: center;
}

.logo-full {
  height: 40px;
  width: auto;
}

.logo-icon {
  height: 30px;
  width: auto;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.1rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 560;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 640;
  color: #7b8393;
  font-size: 0.76rem;
  margin-bottom: 1rem;
}

.hero,
.landing-hero {
  position: relative;
  text-align: center;
  padding: 5.6rem 2rem;
  max-width: max(1240px, 90%);
  margin: 0 auto;
  overflow: hidden;
  
}

.landing-hero {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
}

.landing-hero h1,
.landing-hero p,
.landing-hero .cta-buttons {
  margin-left: auto;
  margin-right: auto;
}


.content-section {
  padding-top: 20px;
}

.auth-form-wrapper,
.login-card {
  max-width: 360px;
  margin: 0 auto;
}

.form-control,
.admin-otp-input {
  width: 100%;
  max-width: 360px;
  padding: 0.88rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(168, 136, 45, 0.35);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.4;
  color: #272727;
  margin-bottom: 0.8rem;
}

.form-control:focus,
.admin-otp-input:focus {
  outline: none;
  border-color: #d89b11;
  box-shadow: 0 0 0 3px rgba(216, 155, 17, 0.2);
} 

.btn {
  width: 100%;
  max-width: 360px;
  display: block;
  border: none;
  border-radius: 10px;
  padding: 0.84rem 1rem;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-align: center;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
}

.auth-small-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.7rem;
}

.admin-page-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e9f2;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-page-header nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
}

.admin-page-header .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #1f2a3d;
}

.admin-page-header .nav-links {
  display: flex;
  gap: 0.9rem;
  list-style: none;
}

.admin-page-header .nav-links li a {
  color: #34516a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}

.admin-page-header .nav-links li a:hover {
  background: #f4f6fb;
  color: #1a2642;
}

.admin-panel {
  max-width: 1180px;
  margin: 2.2rem auto 2.8rem;
  background: rgba(255, 255, 255, 0.90);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(16, 20, 30, 0.12);
  padding: 1.8rem;
}

.admin-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.admin-panel-header h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #212b3b;
}

.admin-panel-header p {
  margin: 0;
  color: #5a6a82;
}

.admin-panel-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: end;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7e9ed;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(16, 21, 37, 0.08);
  display: grid;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(16, 21, 37, 0.14);
}

.project-card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.project-card-body {
  padding: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.chip {
  background: #f4f6fc;
  color: #4e5a75;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.25rem 0.68rem;
}

.project-card-body h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #18213a;
}

.project-card-body .muted {
  margin: 0.4rem 0 1rem;
  color: #6e7d99;
}

.project-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-grid-footer {
  margin-top: 1.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0 auto;
  border: 1px dashed #c8d2e3;
  border-radius: 14px;
  padding: 1.8rem;
  background: #fafbfe;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 0.3rem;
}

/* Diagonal accent shape behind hero */
.hero::after,
.landing-hero::after {
  content: '';
  pointer-events: none;
  position: absolute;
  top: -25%;
  right: -12%;
  width: 52%;
  height: 150%;
  background: linear-gradient(135deg,
    rgba(216, 155, 17, 0.055) 0%,
    rgba(150, 188, 255, 0.022) 50%,
    transparent 80%);
  transform: skewX(-10deg);
  z-index: -1;
  border-radius: 0 0 0 40%;
}

/* Arm page path label above hero */
.arm-eyebrow {
  font-size: 0.7rem;
  /* font-weight: 700; */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

/* Capability marquee strip */
.capability-strip {
  overflow: hidden;
  white-space: nowrap;
  margin: 2rem auto 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.7;
}

.capability-strip-inner {
  display: inline-flex;
  gap: 2.8rem;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1,
.landing-hero h1 {
  max-width: 980px;
  animation: fadeInUp 0.7s ease;
  margin: 0 auto 1.0rem;
}

.hero-subtitle,
.landing-hero p {
  /* font-size: 1.2rem; */
  max-width: 860px;
  margin: 0 auto 1.0rem;
  color: #626b7a;
  animation: fadeInUp 0.9s ease;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.btn {
  padding: 0.92rem 1.8rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 620;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text);
  border-color: #cfd5e1;
}

.btn-secondary:hover {
  border-color: #9aa5bb;
  transform: translateY(-3px);
}

.btn-accent {
  background: linear-gradient(135deg, #e7b33a, #d89b11);
  color: #1f1a0e;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(216, 155, 17, 0.26);
  color: #1f1a0e;
}

.trust-strip {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.05);
}

.trust-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.trust-item p {
  font-size: 0.93rem;
  margin: 0;
}

.services,
.content-section,
.features-content,
.max-w-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 2rem 0 2rem;
}

.services {
  padding-top: 4rem;
}

.section-intro {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #667185;
}

.services-grid,
.feature-grid,
.content-grid,
.showcase-grid {
  display: grid;
  gap: 1.25rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.service-card,
.feature-item,
.content-item,
.showcase-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.service-card:hover,
.feature-item:hover,
.content-item:hover,
.showcase-card:hover {
  transform: translateY(-7px);
  border-color: #d8bc77;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.service-card {
  text-align: center;
}

.service-icon {
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
}

.features {
  margin-top: 4rem;
  padding: 4.6rem 0;
  background: linear-gradient(180deg, rgba(242, 244, 248, 0.75), rgba(255, 255, 255, 0.4));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-item {
  text-align: center;
}

.showcase {
  margin-top: 4.2rem;
  padding: 1.2rem 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.chip-row span {
  border: 1px solid #ead39b;
  background: #fff8ea;
  color: #8f680e;
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
}

footer {
  background: rgba(245, 247, 251, 0.88);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4.6rem;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.footer-section h4 {
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.42rem;
}

.footer-section a,
.footer-section p {
  color: #687080;
  font-size: 0.93rem;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-credits {
  margin-top: 0.55rem;
}

.footer-credits a {
  color: var(--accent);
  font-weight: 620;
}

.contact-section {
  max-width: 1240px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 233, 0.96));
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.section-intro.left {
  margin-left: 0;
  text-align: left;
}

.compact-hero {
  padding-bottom: 2rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
  font-size: 0.88rem;
}

.filter-chip.is-active {
  background: #fff5dc;
  border-color: #e2bf69;
  color: #8f680e;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  grid-auto-flow: dense;
}

.portfolio-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px;
  background: #eef1f7;
  border: 1px solid var(--border);
}

.portfolio-card-featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 535px;
}

.portfolio-media,
.portfolio-media img {
  width: 100%;
  height: 100%;
}

.portfolio-media img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.76));
}

.portfolio-overlay h3,
.portfolio-overlay p,
.portfolio-link,
.portfolio-category {
  color: #ffffff;
}

.portfolio-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f7d98d;
  margin-bottom: 0.45rem;
}

.portfolio-link {
  margin-top: 0.7rem;
  font-size: 0.86rem;
}

.project-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.project-media-frame,
.media-panel {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.project-media-frame {
  padding: 1rem;
}

.project-media-frame img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.thumb-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.thumb-button {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 16px;
  padding: 0.3rem;
  cursor: pointer;
}

.thumb-button.is-active {
  border-color: #d8bc77;
}

.thumb-button img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.detail-header {
  margin-bottom: 1.2rem;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: rgba(216, 155, 17, 0.28);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff5dc;
  color: #8f680e;
  border: 1px solid #e8c56c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 1;
}

.timeline-body,
.obstacle-card,
.media-panel,
.admin-form,
.admin-project-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.timeline-body {
  padding: 1.2rem;
}

.timeline-image,
.obstacle-image,
.inline-preview,
.existing-media-card img,
.admin-project-card img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.timeline-image,
.obstacle-image,
.inline-preview {
  margin-top: 1rem;
  max-height: 280px;
}

.obstacle-list {
  display: grid;
  gap: 1rem;
}

.obstacle-card {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.label-muted {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c8491;
  margin-bottom: 0.45rem;
}

.label-accent {
  color: #a7750f;
}

.media-panel {
  padding: 1.5rem;
}

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 18px;
}

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

.admin-shell,
.admin-form-shell,
.gallery-shell {
  padding-top: 3rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

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

.admin-project-card {
  overflow: hidden;
}

.admin-project-card img {
  aspect-ratio: 4 / 3;
}

.admin-project-content {
  padding: 1rem;
}

.project-chip {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f680e;
}

.admin-project-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-danger {
  background: #f26a6a;
  color: #ffffff;
}

.btn-danger:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.admin-form {
  padding: 1.5rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-form-grid.three-up {
  grid-template-columns: 1.4fr 0.6fr 1fr;
}

.admin-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 620;
  color: var(--text);
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid #d9dde7;
  border-radius: 14px;
  padding: 0.82rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.admin-form textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: end;
}

.checkbox-field {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-field.small {
  margin-top: 0.5rem;
  font-size: 0.78rem;
}

.checkbox-field input {
  width: auto;
}

.dynamic-section {
  margin-top: 1.5rem;
}

.dynamic-section-head,
.dynamic-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.dynamic-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fbfcff;
}

.dynamic-remove {
  border: 0;
  background: transparent;
  color: #ce5d5d;
  cursor: pointer;
}

.existing-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.existing-media-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.7rem;
}

.help-text,
.form-error {
  font-size: 0.9rem;
}

.help-text {
  margin-top: 0.45rem;
  color: var(--text-light);
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #efb1b1;
  background: #fff5f5;
  color: #a34141;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-12px) scale(1.03);
  }
}

@media (max-width: 1024px) {
  .services-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 768px) {
  nav {
    min-height: 68px;
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .landing-hero {
    padding: 4rem 1rem;
  }

  .trust-strip,
  .services,
  .content-section,
  .features-content,
  .max-w-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .trust-strip,
  .services-grid,
  .feature-grid,
  .content-grid,
  .showcase-grid,
  .footer-content,
  .portfolio-grid,
  .admin-grid,
  .existing-media-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card-featured {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 260px;
  }

  .contact-card,
  .admin-head,
  .dynamic-section-head,
  .dynamic-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-hero,
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    width: 100%;
  }
}

/* -- Arm badges ----------------------------------------------------------- */
.arm-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.arm-badge-devops  { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.arm-badge-pixels  { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.arm-badge-trades  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.arm-badge-unknown { background: var(--bg-light); color: var(--text-light); border: 1px solid var(--border); }

/* -- Admin login ----------------------------------------------------------- */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.8rem 2.4rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-card .logo-icon {
  height: 44px;
  margin-bottom: 1.4rem;
}

.login-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.login-card p {
  margin-bottom: 1.8rem;
  font-size: 0.97rem;
}

.login-card input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.login-card input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: left;
}

/* -- Section scroll offset ------------------------------------------------- */
section[id] {
  scroll-margin-top: 88px;
}

/* -- Admin logout link ----------------------------------------------------- */
.admin-logout {
  font-size: 0.87rem;
  color: var(--text-light);
  margin-left: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}

.admin-logout:hover {
  background: var(--bg-light);
  color: var(--text);
}

/* -- Arm site footer ------------------------------------------------------- */
.arm-footer {
  background: rgba(245, 247, 251, 0.88);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.arm-footer p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0.25rem 0;
}

.arm-footer a {
  color: var(--accent);
}

/* -- Numbered section list (Rokit-inspired) ------------------------------- */
.numbered-list {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.numbered-list h2 {
  margin-bottom: 2.5rem;
}

.numbered-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.numbered-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: start;
}

.numbered-item-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
}

.numbered-item h3 {
  margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
  .numbered-items { grid-template-columns: 1fr; }
}
