:root {
  --purple: #3a1666;
  --purple-dark: #260d47;
  --purple-light: #5c2f96;
  --gray: #5c5d60;
  --gray-light: #8a8b8f;
  --bg: #ffffff;
  --bg-alt: #f5f4f8;
  --panel: #ffffff;
  --text: #1c1a20;
  --text-dim: #63626a;
  --border: #e3e1e8;
}

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

html { scroll-behavior: smooth; touch-action: manipulation; }

a, button { touch-action: manipulation; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.accent { color: var(--purple); }

a { color: inherit; }

.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--purple);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--gray-light);
  transition: background 0.2s, color 0.2s, border-color .2s;
}
.btn-outline:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
header.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
section[id], #contact, #construction-services, #restoration-services {
  scroll-margin-top: 84px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 20px;
}
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav .logo-mark {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.2s;
}
header.scrolled .nav .logo-mark { filter: none; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text-main {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #ffffff;
  transition: color 0.2s;
}
.logo-text-sub {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
  transition: color 0.2s;
}
header.scrolled .logo-text-main { color: var(--text); }
header.scrolled .logo-text-sub { color: var(--gray); }
.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
  margin-left: 32px;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #ffffff; }
header.scrolled .nav-links a { color: var(--text-dim); }
header.scrolled .nav-links a:hover { color: var(--purple); }

/* SERVICES DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dropdown-caret { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .dropdown-caret,
.nav-dropdown:focus-within .dropdown-caret { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(20,10,40,0.22);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-col-title {
  color: var(--purple);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.dropdown-col a {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.dropdown-col a:hover { color: var(--purple); }
.dropdown-note {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--purple);
}
@media (max-width: 1023px) {
  .dropdown-panel { display: none !important; }
  .dropdown-caret { display: none; }
}

.nav-cta { display: none; flex: none; margin-left: auto; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  transition: color 0.2s;
}
header.scrolled .nav-toggle { color: var(--text); }

@media (min-width: 1024px) {
  .nav-cta { display: inline-block; }
}
@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s;
    overflow-y: auto;
    z-index: 150;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    color: var(--text-dim);
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-links a:hover { color: var(--purple); }
  .nav-toggle { display: block; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 130px 0 156px;
  overflow: hidden;
  border-bottom: 4px solid var(--purple);
  background: var(--purple-dark);
}
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
}
.hero .container.hero-grid { width: 100%; }
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(28,10,56,0.94) 0%, rgba(38,13,71,0.86) 45%, rgba(58,22,102,0.6) 100%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-logo { max-width: 380px; margin: 0 auto; }
.hero-copy .eyebrow { margin-bottom: 10px; color: var(--purple-light); }
.hero-copy h1 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(42px, 6.5vw, 74px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 1px;
  color: #ffffff;
}
.hero-copy h1 span { display: block; }
.hero-copy h1 .accent { color: #c9a6f2; }
.hero-copy p {
  margin-top: 18px;
  color: #e3d9f2;
  font-size: 17px;
  max-width: 50ch;
}
.hero-copy .cta-row {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}
.hero .btn-outline:hover {
  background: #ffffff;
  color: var(--purple-dark);
  border-color: #ffffff;
}

/* PAGE HEADER (secondary pages) */
.page-header {
  position: relative;
  padding: 168px 0 72px;
  overflow: hidden;
  border-bottom: 4px solid var(--purple);
  background: var(--purple-dark);
}
@media (max-width: 640px) {
  .page-header { padding: 110px 0 50px; }
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header .eyebrow { color: var(--purple-light); margin-bottom: 10px; }
.page-header h1 {
  color: #ffffff;
  font-size: clamp(28px, 4.5vw, 44px);
}
.page-header p {
  margin-top: 16px;
  color: #e3d9f2;
  font-size: 16.5px;
  max-width: 60ch;
}

/* SECTION HEADINGS */
.section { padding: 130px 0; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
}
.section-alt { background: var(--bg-alt); }
.services-section {
  position: relative;
  overflow: hidden;
}
.services-section .container { position: relative; z-index: 1; }
.services-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.93) 50%, rgba(255,255,255,0.88) 100%);
  z-index: 0;
}
.eyebrow {
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
}
.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-top: 6px;
}
.section .lead {
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 60ch;
}

/* SERVICES */
.service-group { margin-top: 56px; }
.service-group:first-of-type { margin-top: 56px; }
.service-group + .service-group { margin-top: 48px; }
.service-group-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 20px;
}
.service-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .service-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .service-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card2 {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  border-radius: 8px;
  padding: 26px 24px;
}
.service-card2-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card2-icon svg { width: 26px; height: 26px; }
.service-card2 h4 {
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.service-card2 p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.service-card2-cta {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.service-card2-cta:hover { color: var(--purple-light); text-decoration: underline; }
.service-card2-urgent {
  background: var(--bg-alt);
  border-top-color: var(--purple);
}
.service-card2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--purple);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}


/* WHY CHOOSE US */
.why-us-section {
  position: relative;
  overflow: hidden;
}
.why-us-section .eyebrow { color: var(--purple-light); position: relative; z-index: 1; }
.why-us-section h2 { color: #ffffff; position: relative; z-index: 1; }
.why-us-section .container { position: relative; z-index: 1; }
.why-us-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28,10,56,0.92) 0%, rgba(38,13,71,0.88) 50%, rgba(58,22,102,0.82) 100%);
  z-index: 0;
}
.why-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.why-item {
  background: rgba(20,8,40,0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  padding: 30px 26px;
}
.why-item .icon {
  width: 46px;
  height: 46px;
  border: 2px solid #c9a6f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 16px;
}
.why-item .icon svg { width: 22px; height: 22px; }
.why-item h3 {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.why-item p {
  color: #d9cdec;
  font-size: 14.5px;
  line-height: 1.65;
}

/* FEATURE STRIP */
.feature-strip {
  background: var(--purple-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}
@media (min-width: 700px) {
  .feature-strip .container { grid-template-columns: repeat(4, 1fr); }
}
.feature-strip .feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  color: #e4d9f5;
}
.feature svg { width: 26px; height: 26px; color: #b98cf0; }

/* GALLERY */
.gallery-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(20,8,40,0.85), transparent);
}
.gallery-feature {
  margin-top: 12px;
  grid-column: span 2;
  aspect-ratio: 16/9;
}
@media (max-width: 639px) {
  .gallery-feature { grid-column: span 2; }
}

/* TEAM */
.team-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card {
  background: var(--purple);
  color: #fff;
  border-radius: 6px;
  padding: 30px 26px;
}
.team-card .role {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 4px;
}
.team-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}
.team-card ul {
  list-style: none;
}
.team-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.team-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  font-weight: 900;
}

/* ADDITIONAL + SERVICE AREA + CTA */
.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .trio { grid-template-columns: 1fr 1fr; }
}
.trio > div {
  background: var(--bg-alt);
  padding: 40px 32px;
}
.trio h3 {
  color: var(--purple);
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--purple);
  display: inline-block;
  padding-bottom: 8px;
}
.trio ul { list-style: none; }
.trio li {
  padding: 8px 0;
  color: var(--text-dim);
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}
.trio li:last-child { border-bottom: none; }
.service-area p { color: var(--text-dim); margin-bottom: 12px; font-size: 15px; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list span {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--gray);
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 3px;
}
.contact-list { margin-top: 4px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  border-bottom: none;
  padding: 6px 0;
}
.contact-list svg { width: 18px; height: 18px; color: var(--purple); flex: none; }
.contact-list .dim { color: var(--text-dim); font-style: italic; }
.trio .btn { margin-top: 22px; }

/* FOOTER */
footer {
  background: var(--purple-dark);
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-inner img { height: 42px; filter: brightness(0) invert(1); }
.footer-tagline {
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  color: #e4d9f5;
}
.footer-tagline .accent { color: #d9b8ff; }
.footer-address {
  text-align: center;
  color: #cbb8e0;
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
}
.footer-bottom {
  margin-top: 20px;
  text-align: center;
  color: #cbb8e0;
  font-size: 13px;
}

/* NAV ACTIVE STATE */
.nav-links a.active { color: var(--purple); }

/* QUOTE FORM */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .quote-layout { grid-template-columns: 1.3fr 1fr; }
}
.quote-form-panel {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (min-width: 620px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.quote-side h3 {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 14px;
}
.quote-side .contact-list { margin-bottom: 32px; }
.quote-side .contact-list:last-child { margin-bottom: 0; }

/* SERVICE DETAIL PAGES */
.service-detail-content h2 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 14px;
}
.service-detail-content h2 + p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.service-detail-phone {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.service-detail-phone-label {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 8px;
}
.service-detail-phone-number {
  display: inline-block;
  color: var(--purple);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  text-decoration: none;
}
.service-detail-phone-number:hover { color: var(--purple-light); }

/* RESOURCES / ARTICLE PAGES */
.article-body {
  max-width: 72ch;
  margin: 0 auto;
}
.article-cta {
  margin-top: 20px;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: 10px;
  text-align: center;
}
.article-cta h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}
.article-cta p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 20px;
}

/* STORY PAGE */
.story-content {
  max-width: 72ch;
  margin: 0 auto;
}
.story-quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 130px;
  line-height: 0.6;
  color: var(--purple);
  opacity: 0.9;
  margin-bottom: 4px;
}
.story-content p {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  font-size: 18.5px;
  line-height: 1.85;
  margin-bottom: 28px;
}
.story-pullquote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.5;
  color: var(--purple);
  text-align: center;
  padding: 36px 10px;
  margin: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.story-close {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.story-close p {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 0;
}

/* TEAM CARD GRID (team.html) */
.team-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 700px) {
  .team-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.team-card-photo {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: border-color 0.2s, background 0.2s;
}
.team-card-link:hover .team-card-photo {
  border-color: var(--purple);
  background: #efe9f7;
}
.team-card-photo:has(img) {
  border-style: solid;
  border-color: var(--border);
  background: none;
  padding: 0;
  overflow: hidden;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.team-card-photo .team-avatar {
  width: 84px;
  height: 84px;
  font-size: 26px;
}
.team-card-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.team-card-title {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.team-card-view {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.team-card-link:hover .team-card-view { color: var(--purple-light); }

.team-avatar {
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* INDIVIDUAL PERSON PAGE */
.person-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .person-layout { grid-template-columns: 260px 1fr; }
}
.person-photo {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-photo:has(img) {
  border-style: solid;
  border-color: var(--border);
  background: none;
  overflow: hidden;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.person-photo .team-avatar {
  width: 96px;
  height: 96px;
  font-size: 30px;
}
.person-bio p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.person-bio p:last-child { margin-bottom: 0; }
.back-link {
  display: inline-block;
  margin-top: 56px;
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover { color: var(--purple-light); }
