:root {
  --ink: #1f2a2e;
  --muted: #637074;
  --line: #dfe5e2;
  --paper: #fbfaf6;
  --white: #ffffff;
  --teal: #2f7f78;
  --teal-dark: #1f5f5a;
  --brass: #b98b3f;
  --rose: #8b3f4d;
  --shadow: 0 22px 50px rgba(22, 32, 36, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand span {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #435052;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--teal-dark);
  background: #eaf3f1;
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: var(--white);
  background: var(--ink);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  color: var(--white);
  background: var(--teal-dark);
}

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

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(16, 25, 28, .86), rgba(16, 25, 28, .48) 48%, rgba(16, 25, 28, .08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 72px 0 96px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.hero-content p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .46);
  background: rgba(255, 255, 255, .12);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  padding: 28px clamp(18px, 4vw, 40px);
  background: var(--white);
}

.stats-band strong {
  display: block;
  color: var(--teal-dark);
  font-size: 34px;
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: clamp(58px, 9vw, 108px) clamp(18px, 5vw, 72px);
}

.muted {
  background: #eef3ef;
}

.two-column,
.quote-section,
.calculator-section,
.contact-layout,
.testimonial-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

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

.feature-grid,
.service-grid,
.project-grid,
.people-grid,
.values,
.testimonial-grid,
.process {
  display: grid;
  gap: 18px;
}

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

.service-grid,
.project-grid,
.people-grid,
.values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.mini-card,
.service-card,
.project-card,
.person-card,
.values article,
.testimonial-card,
.quote-card,
.readiness-card,
.contact-form,
.contact-card,
.process article,
.testimonial-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 42, 46, .06);
}

.mini-card,
.service-card,
.person-card,
.values article,
.testimonial-card,
.process article {
  padding: 24px;
}

.service-card span,
.process span {
  display: inline-flex;
  color: var(--brass);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.project-card {
  overflow: hidden;
}

.project-thumb {
  height: 154px;
  background: linear-gradient(135deg, #2f7f78, #f4efe4 54%, #8b3f4d);
}

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

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #eaf3f1;
  font-size: 12px;
  font-weight: 800;
}

.project-card button,
.filter-bar button,
.slider-controls button {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.project-card button {
  min-height: 40px;
  padding: 9px 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-bar button,
.slider-controls button {
  min-height: 40px;
  padding: 9px 14px;
}

.filter-bar button.active {
  color: var(--white);
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.quote-card {
  padding: clamp(26px, 4vw, 42px);
}

.quote-card blockquote {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.22;
  font-weight: 800;
}

.quote-card cite,
.testimonial-card cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.page-hero {
  padding: clamp(70px, 11vw, 132px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.page-hero.compact {
  padding-bottom: clamp(56px, 8vw, 84px);
}

.stack {
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.person-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose);
  font-weight: 800;
}

.readiness-card,
.contact-form,
.contact-card,
.testimonial-panel {
  padding: clamp(24px, 4vw, 36px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #ccd6d2;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.readiness-card {
  display: grid;
  gap: 18px;
}

.readiness-card output {
  padding: 16px;
  border-radius: 6px;
  color: var(--white);
  background: var(--teal-dark);
  font-size: 22px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.testimonial-layout {
  grid-template-columns: minmax(280px, 420px) 1fr;
}

.testimonial-panel {
  position: sticky;
  top: 104px;
}

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

.slider-controls {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.project-dialog {
  width: min(720px, calc(100% - 36px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(11, 18, 20, .62);
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

.dialog-body {
  padding: 34px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 28px;
  padding: 44px clamp(18px, 5vw, 72px);
  color: #dce5e2;
  background: #172023;
}

.site-footer div {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: #b9c5c2;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 720px;
  }

  .hero-shade {
    background: rgba(16, 25, 28, .7);
  }

  .stats-band,
  .service-grid,
  .project-grid,
  .project-grid.large,
  .people-grid,
  .values,
  .process,
  .testimonial-grid,
  .two-column,
  .quote-section,
  .calculator-section,
  .contact-layout,
  .testimonial-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .testimonial-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
  }

  .brand img {
    width: 118px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
  }

  .feature-grid,
  .section-heading.split,
  .info-row {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: grid;
    align-items: start;
  }
}

/* Animated redevelopment site additions */
.hero-media {
  animation: heroDrift 18s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-content.reveal {
  transition-delay: .12s;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-card,
.project-card,
.person-card,
.testimonial-card,
.mini-card,
.process article,
.guide-block,
.contact-form,
.contact-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.service-card:hover,
.project-card:hover,
.person-card:hover,
.testimonial-card:hover,
.mini-card:hover,
.process article:hover,
.guide-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(31, 42, 46, .13);
  border-color: rgba(47, 127, 120, .34);
}

.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef7f5 62%, #f8f1e3 100%);
}

.guide-copy p:not(.eyebrow) {
  max-width: 760px;
}

.motion-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.motion-timeline::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 38px;
  bottom: 38px;
  width: 3px;
  background: linear-gradient(var(--teal), var(--brass));
  animation: timelineGlow 2.8s ease-in-out infinite alternate;
}

.motion-timeline span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding-left: 56px;
  color: var(--ink);
  font-weight: 800;
}

.motion-timeline span::before {
  content: "";
  position: absolute;
  left: 10px;
  width: 22px;
  height: 22px;
  border: 5px solid #eaf3f1;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(47, 127, 120, .34);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.motion-timeline span:nth-child(2)::before { animation-delay: .2s; }
.motion-timeline span:nth-child(3)::before { animation-delay: .4s; }
.motion-timeline span:nth-child(4)::before { animation-delay: .6s; }
.motion-timeline span:nth-child(5)::before { animation-delay: .8s; }
.motion-timeline span:nth-child(6)::before { animation-delay: 1s; }

.guide-hero {
  background:
    linear-gradient(120deg, rgba(31, 42, 46, .94), rgba(31, 95, 90, .82)),
    url("../images/redevelopment-consultancy-hero.png") center / cover;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 42, 46, .06);
}

.guide-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.guide-nav a:hover {
  color: var(--teal-dark);
}

.guide-content {
  display: grid;
  gap: 22px;
}

.guide-block {
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 42, 46, .06);
}

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

.check-grid span,
.document-list li,
.alert-box {
  border-radius: 6px;
  background: #eef7f5;
}

.check-grid span {
  padding: 14px 16px;
  color: var(--teal-dark);
  font-weight: 800;
}

.step-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.step-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 800;
}

.document-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.document-list li {
  padding: 13px 16px;
  color: var(--ink);
  font-weight: 700;
}

.comparison-table {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table div {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) 1fr;
}

.comparison-table strong,
.comparison-table span {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.comparison-table div:first-child {
  color: var(--white);
  background: var(--ink);
}

.alert-box {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--brass);
  color: var(--ink);
  font-weight: 800;
}

@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translateX(1.5%); }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 127, 120, .34); }
  50% { box-shadow: 0 0 0 12px rgba(47, 127, 120, 0); }
}

@keyframes timelineGlow {
  from { opacity: .55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .guide-intro,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    position: static;
  }
}

@media (max-width: 560px) {
  .check-grid,
  .comparison-table div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }
}

/* Readable logo treatment */
.site-header {
  min-height: 92px;
}

.brand {
  flex-shrink: 0;
  gap: 14px;
}

.brand img {
  width: 72px;
  height: 58px;
  padding: 4px;
  object-fit: contain;
  background: #12293c;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(18, 41, 60, .16);
}

.brand span {
  display: block;
  max-width: 150px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.12;
  font-weight: 800;
}

.footer-brand span {
  color: var(--white);
}

.footer-brand img {
  filter: none;
  box-shadow: none;
}

@media (max-width: 560px) {
  .site-header {
    min-height: 82px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 58px;
    height: 48px;
  }

  .brand span {
    max-width: 116px;
    font-size: 14px;
  }
}

/* Larger logo lockup */
.site-header {
  min-height: 112px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand img {
  width: 104px;
  height: 82px;
  padding: 5px;
}

.brand span {
  max-width: 190px;
  font-size: 21px;
  line-height: 1.08;
}

.footer-brand img {
  width: 96px;
  height: 76px;
}

.footer-brand span {
  max-width: 210px;
  font-size: 20px;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 94px;
  }

  .brand img {
    width: 76px;
    height: 60px;
  }

  .brand span {
    max-width: 138px;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 68px;
    height: 54px;
  }

  .brand span {
    max-width: 112px;
    font-size: 14px;
  }
}

/* Real profile project image presentation */
.project-thumb {
  position: relative;
  height: 240px;
  background: #12293c;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .7s ease, filter .7s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.02);
}

.project-grid.large .project-thumb {
  height: 310px;
}

.project-card:nth-child(1) .project-thumb img,
.project-card:nth-child(2) .project-thumb img,
.project-card:nth-child(3) .project-thumb img,
.project-card:nth-child(4) .project-thumb img {
  object-position: center top;
}

.dialog-thumb {
  height: min(62vh, 560px);
}

.dialog-thumb img {
  object-fit: cover;
  object-position: center top;
}

.project-dialog {
  width: min(980px, calc(100% - 36px));
}

.profile-showcase {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: #172023;
  color: var(--white);
}

.profile-showcase p:not(.eyebrow) {
  color: rgba(255, 255, 255, .76);
}

.profile-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-collage img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.profile-collage img:first-child {
  grid-row: span 2;
  height: 574px;
  object-position: center top;
}

@media (max-width: 900px) {
  .profile-showcase {
    grid-template-columns: 1fr;
  }

  .profile-collage img,
  .profile-collage img:first-child {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .project-thumb,
  .project-grid.large .project-thumb {
    height: 250px;
  }

  .profile-collage {
    grid-template-columns: 1fr;
  }
}

/* Project popup close fix */
.project-dialog {
  max-height: calc(100vh - 56px);
  overflow: auto;
  position: relative;
}

.dialog-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 104px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 86px;
  height: 42px;
  margin: 12px 12px -54px auto;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 32, 35, .92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
  font-weight: 800;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--teal-dark);
}

.project-dialog [data-dialog-content] {
  position: relative;
  z-index: 1;
}

@media (max-width: 560px) {
  .project-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 28px);
  }

  .dialog-close {
    top: 8px;
    min-width: 78px;
    height: 38px;
    margin: 8px 8px -46px auto;
  }
}

/* Project admin demo */
.admin-hero {
  background:
    linear-gradient(120deg, rgba(31, 42, 46, .94), rgba(31, 95, 90, .76)),
    url("../images/profile/aerial-masterplan.jpg") center / cover;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 42, 46, .06);
}

.admin-sidebar {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-sidebar strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.admin-sidebar a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--teal-dark);
  background: #eaf3f1;
}

.admin-workspace {
  display: grid;
  gap: 22px;
}

.admin-panel {
  padding: clamp(22px, 4vw, 34px);
}

.admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

.admin-form .wide {
  grid-column: 1 / -1;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 22px;
  margin-bottom: 18px;
  border: 2px dashed #b7c7c3;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #eef7f5;
  text-align: center;
  font-weight: 800;
}

.upload-box small {
  max-width: 520px;
  color: var(--muted);
  font-weight: 700;
}

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

.admin-gallery article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center top;
}

.admin-gallery div {
  display: grid;
  gap: 2px;
  padding: 12px;
}

.admin-gallery span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr);
  gap: 22px;
}

.admin-flow {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-flow span {
  padding: 13px 14px;
  border-radius: 6px;
  color: var(--ink);
  background: #eef7f5;
  font-weight: 800;
}

@media (max-width: 900px) {
  .admin-shell,
  .admin-preview-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

@media (max-width: 560px) {
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    display: grid;
  }
}

/* Dynamic project portfolio */
.filter-bar a,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.filter-bar a.active,
.filter-bar button.active {
  color: var(--white);
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.project-facts,
.project-detail-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.project-facts div,
.project-detail-list div {
  display: grid;
  gap: 3px;
}

.project-facts dt,
.project-detail-list dt {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-facts dd,
.project-detail-list dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

@media (max-width: 560px) {
  .project-detail-list {
    grid-template-columns: 1fr;
  }
}

/* Dynamic project admin cPanel */
.admin-alert {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.admin-alert.success {
  color: var(--teal-dark);
  background: #eaf3f1;
}

.admin-alert.error {
  color: #7a1e2f;
  background: #f8e8ec;
}

.admin-current-photo {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7f5;
}

.admin-current-photo img {
  width: min(280px, 100%);
  height: 170px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}

.admin-current-photo span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-project-table {
  display: grid;
  gap: 14px;
}

.admin-project-table article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-project-table img {
  width: 130px;
  height: 96px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  background: #12293c;
}

.admin-project-table h3 {
  margin-bottom: 4px;
}

.admin-project-table span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.admin-table-actions form {
  margin: 0;
}

.admin-table-actions a,
.admin-table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-table-actions a {
  color: var(--white);
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.admin-table-actions button {
  color: #7a1e2f;
  border-color: #e5bdc6;
  background: #fff5f7;
}

@media (max-width: 760px) {
  .admin-project-table article {
    grid-template-columns: 1fr;
  }

  .admin-project-table img {
    width: 100%;
    height: 220px;
  }

  .admin-table-actions {
    justify-content: start;
  }
}

/* Dynamic testimonial media */
.testimonial-media-card,
.testimonial-featured-card {
  overflow: hidden;
}

.testimonial-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #12293c;
  object-fit: cover;
  object-position: center top;
}

.testimonial-featured-card .testimonial-media {
  aspect-ratio: 16 / 9;
}

.admin-current-photo video,
.admin-testimonial-table video {
  width: 100%;
  border-radius: 6px;
  background: #12293c;
}

.admin-current-photo video {
  max-width: 320px;
}

.admin-testimonial-table video,
.admin-media-placeholder {
  width: 130px;
  height: 96px;
  object-fit: cover;
}

.admin-media-placeholder {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: #eef7f5;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .admin-testimonial-table video,
  .admin-media-placeholder {
    width: 100%;
    height: 220px;
  }
}
