/* =========================================================
   Ellyson Enterprises — Warm Industrial Design System
   ========================================================= */

:root {
  --charcoal: #1a1a1a;
  --charcoal-2: #2a2a2a;
  --copper: #b45309;
  --copper-dark: #92400e;
  --copper-light: #d97706;
  --cream: #faf7f2;
  --cream-2: #f3ede3;
  --steel: #4a5568;
  --steel-light: #94a3b8;
  --line: #e5e0d6;
  --white: #ffffff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 6px 20px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 26, 0.15);

  --maxw: 1200px;
  --maxw-narrow: 920px;
}

/* ------- Reset ------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--copper); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--copper-dark); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 0.8rem;
}

/* ------- Layout ------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--charcoal); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--copper-light); }
.section-cream-2 { background: var(--cream-2); }

.section-header { max-width: 720px; margin-bottom: 56px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ------- Header / Nav ------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
#navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 56px; width: auto; display: block; }

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--cream-2); color: var(--copper); }
.nav-links a.active { color: var(--copper); }
.nav-links .nav-cta {
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 18px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--copper); color: var(--white); }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: transform .25s ease, opacity .2s ease;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    background: var(--cream);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 16px; font-size: 1rem; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { color: var(--copper); }

/* ------- Hero ------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--charcoal) url('images/album/hero-poster.jpg?v=4') center/cover no-repeat;
  z-index: -2;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.45) 0%, rgba(26,26,26,0.85) 100%);
  z-index: -1;
}
.hero-content { padding: 80px 0; max-width: 760px; }
.hero h1 { color: var(--cream); margin-bottom: 0.4em; }
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(250, 247, 242, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--cream);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(250, 247, 242, 0.85);
  max-width: 580px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-trust {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  color: rgba(250, 247, 242, 0.78);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--copper-light); flex-shrink: 0; }

/* ------- Page Header (non-home) ------- */
.page-header {
  padding: 120px 0 64px;
  background: var(--charcoal);
  color: var(--cream);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(180, 83, 9, 0.25), transparent 60%);
  z-index: -1;
}
.page-header h1 { color: var(--cream); margin-bottom: 12px; }
.page-header--tight { padding-bottom: 40px; }
.section--tight-top { padding-top: 48px; }
.page-header .eyebrow { color: var(--copper-light); }
.page-header p { color: rgba(250, 247, 242, 0.78); max-width: 620px; font-size: 1.1rem; }

/* ------- Cards ------- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--copper);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--cream-2);
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel); margin: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Service card variant with image */
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.service-card img { aspect-ratio: 4/3; object-fit: cover; }
.service-card-body { padding: 28px; }
.service-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.service-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--steel); }
.service-card li { margin-bottom: 6px; }

/* ------- Split (image + text) ------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-image img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.split-image--cover img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Careers — contained photo band breaking up sections */
.photo-band-section { padding: 24px 0; }
.photo-band {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  background: var(--charcoal);
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Careers — 3-photo mosaic inside the split image column */
.split:has(.careers-photo-stack) { align-items: stretch; }
.careers-photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.4fr 1fr;
  gap: 14px;
  align-self: stretch;
  min-height: 520px;
}
.careers-photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.careers-photo-stack img:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
.careers-photo-stack img:nth-child(2) { grid-column: 1; grid-row: 2; }
.careers-photo-stack img:nth-child(3) { grid-column: 2; grid-row: 2; object-position: center 20%; }
@media (max-width: 800px) {
  .careers-photo-stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .careers-photo-stack img { aspect-ratio: 4 / 3; }
  .careers-photo-stack img:nth-child(1),
  .careers-photo-stack img:nth-child(2),
  .careers-photo-stack img:nth-child(3) { grid-column: 1; grid-row: auto; }
}
.split-image--badge {
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-image--badge img {
  width: auto;
  max-width: 100%;
  max-height: 320px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  mix-blend-mode: multiply;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}

/* ------- Stats ------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.stat {
  border-left: 3px solid var(--copper);
  padding: 4px 0 4px 18px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.section-dark .stat-num { color: var(--cream); }
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  font-weight: 600;
}
.section-dark .stat-label { color: var(--steel-light); }

/* ------- Team grid ------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.team-card {
  text-align: left;
}

/* ------- Team stack (photo left, copy right) ------- */
.team-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.team-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.team-row .team-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-2);
}
.team-row .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-copy { padding-top: 4px; }
.team-copy .team-bio + .team-bio { margin-top: 14px; }
@media (max-width: 800px) {
  .team-row { grid-template-columns: 1fr; gap: 20px; }
  .team-row .team-photo { max-width: 320px; }
}
.team-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--cream-2);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.9);
  transition: transform .4s ease;
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-name { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 4px; }
.team-role {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 10px;
}
.team-bio { color: var(--steel); font-size: 0.95rem; margin: 0; }
.team-placeholder-note {
  font-size: 0.75rem;
  color: var(--steel-light);
  font-style: italic;
  margin-top: 8px;
}

/* ------- Sector tiles ------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.sector-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.sector-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.sector-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0) 30%, rgba(26,26,26,0.92) 100%);
}
.sector-tile:hover img { transform: scale(1.06); }
.sector-tile-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: var(--cream);
  z-index: 1;
}
.sector-tile h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--cream);
  margin: 0 0 4px;
}
.sector-tile p { color: rgba(250, 247, 242, 0.8); font-size: 0.9rem; margin: 0; }

/* ------- Values ------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.value h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.value-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--copper);
  margin-bottom: 14px;
  display: block;
  border-top: 2px solid var(--copper);
  padding-top: 14px;
  width: 36px;
}

/* ------- CTA Band ------- */
.cta-band {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(180,83,9,0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180,83,9,0.15), transparent 55%);
  z-index: -1;
}
.cta-band h2 { color: var(--cream); margin-bottom: 16px; }
.cta-band p { color: rgba(250, 247, 242, 0.78); margin-bottom: 24px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin: 4px 6px; }

/* ------- Trademark Disclaimer ------- */
.trademark-disclaimer-inline {
  margin-top: 36px;
}
.trademark-disclaimer-inline p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--steel);
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ------- Forms ------- */
.form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color .15s ease, background .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field .hint { font-size: 0.78rem; color: var(--steel); margin-top: 4px; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 28px 20px; }
}

/* ------- Contact info block ------- */
.contact-info {
  display: grid;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--cream-2);
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { margin: 0 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--steel); }
.contact-item p { margin: 0; color: var(--charcoal); }

.map-wrap {
  margin-top: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ------- Footer ------- */
footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
  /* Logo's wordmark is black; flip to white so it reads on the dark footer */
  filter: brightness(0) invert(1);
}
.footer-brand p { color: rgba(250, 247, 242, 0.7); max-width: 320px; font-size: 0.93rem; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(250, 247, 242, 0.85); font-size: 0.93rem; }
.footer-col a:hover { color: var(--copper-light); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(250, 247, 242, 0.55);
}
.footer-bottom .licenses { color: rgba(250, 247, 242, 0.7); }

/* ------- Misc ------- */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 48px 0;
}
.text-center { text-align: center; }
.muted { color: var(--steel); }
.lede { font-size: 1.2rem; color: var(--steel); }

/* ------- Client wordmark strip ------- */
.client-strip {
  padding: 56px 0;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.client-strip-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel);
  margin: 0 0 28px;
}
.client-marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 36px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.client-mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  text-align: center;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  opacity: 0.55;
  transition: opacity .25s ease, color .25s ease, transform .25s ease;
  line-height: 1.1;
  padding: 6px 4px;
}
.client-mark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 4px;
  font-weight: 600;
}
.client-mark:hover { opacity: 1; color: var(--copper); transform: translateY(-2px); }
@media (max-width: 720px) {
  .client-marks { grid-template-columns: repeat(2, 1fr); }
}

/* Image-based client logos — uniform optical height with per-logo correction */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  padding: 4px;
  transition: opacity .25s ease, transform .25s ease;
  opacity: 0.78;
}
.client-logo img {
  max-height: 44px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.95);
  transition: filter .25s ease;
}
.client-logo:hover { opacity: 1; transform: translateY(-2px); }
.client-logo:hover img { filter: grayscale(0%) contrast(1); }

/* Optical scaling — square/round badges read smaller than wide wordmarks at the same height,
   tall seals need extra room. Apply these modifiers per logo for visual balance. */
.client-logo--icon img { max-height: 56px; max-width: 56px; }
.client-logo--wide img { max-height: 32px; max-width: 150px; }
.client-logo--tall img { max-height: 60px; max-width: 70px; }

/* Photo-only project grid (no captions) — ~3 per row on desktop */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
.photo-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-2);
  cursor: zoom-in;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile img.zoom-in { transform: scale(1.25); }
.photo-tile:hover img.zoom-in { transform: scale(1.32); }
.photo-tile img.zoom-out { object-fit: contain; background: var(--charcoal); transform: none; }
.photo-tile:hover img.zoom-out { transform: scale(1.03); }

/* ------- Initials avatar (for team members without a photo yet) ------- */
.team-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--steel) 100%);
}
.team-initials {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 4rem;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ------- Careers / Open Positions ------- */
.positions-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
.position {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--cream);
  border: 1px solid var(--cream-2);
  border-left: 3px solid var(--copper);
  border-radius: var(--r-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.position:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.position-main h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.position-main p {
  color: var(--steel);
  font-size: 0.95rem;
  margin: 0;
}
.position-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  white-space: nowrap;
}
.position-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  background: var(--cream-2);
  padding: 6px 12px;
  border-radius: 999px;
}
@media (max-width: 700px) {
  .position {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .position-meta {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.community-teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.community-teaser-image {
  aspect-ratio: 5/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream-2);
}
.community-teaser-image img { width: 100%; height: 100%; object-fit: cover; }
.community-teaser-image--badge {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.community-teaser-image--badge img {
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.community-badge {
  display: inline-block;
  background: var(--copper);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
@media (max-width: 800px) {
  .community-teaser { grid-template-columns: 1fr; gap: 32px; }
}

/* ------- Real-project card (image + structured caption) ------- */
.project-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card-image {
  aspect-ratio: 16/10;
  background: var(--cream-2);
  overflow: hidden;
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.05); }
.project-card-body { padding: 24px; }
.project-card-client {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.project-card-meta {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 12px;
}
.project-card-scope { color: var(--steel); font-size: 0.95rem; margin: 0; }
