:root {
  --page-bg: #e5e5e5;
  --surface: #ffffff;
  --muted-surface: #f7f7f7;
  --media: #ececec;
  --line: #d8d8d8;
  --line-strong: #bdbdbd;
  --text: #1f1f1f;
  --muted: #666666;
  --button: #2c2c2c;
  --button-text: #ffffff;
  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(calc(100% - 64px), var(--container));
  margin: 0 auto;
}

.site-header,
.site-footer,
.section,
.product-subnav,
.product-section {
  background: var(--surface);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.brand { font-weight: 700; }
.primary-nav,
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}
.primary-nav a,
.footer-nav a { color: #454545; }
.primary-nav a:hover,
.footer-nav a:hover { text-decoration: underline; }
.header-contacts,
.footer-contacts {
  display: flex;
  gap: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.menu-toggle { display: none; }

.section { padding: 78px 0; }
.section-muted { background: var(--muted-surface); }
.section-white { background: var(--surface); }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin-bottom: 18px; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-bottom: 28px; }
h3 { font-size: 18px; margin-bottom: 6px; }
p { color: #414141; }
.lead { font-size: 21px; max-width: 620px; }
.meta, .meta-line { color: var(--muted); font-size: 14px; }

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 84px;
  align-items: center;
  min-height: 390px;
}
.hero-copy { max-width: 540px; }
.hero-copy p:not(.lead) { max-width: 540px; }

.media-placeholder {
  display: grid;
  place-items: center;
  background: var(--media);
  border: 1px solid #e2e2e2;
  color: #6c6c6c;
  text-align: center;
  padding: 20px;
}
.hero-media { min-height: 300px; }
.card-media { height: 155px; }
.small-media { min-height: 190px; }
.product-media { min-height: 270px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.button-dark { background: var(--button); color: var(--button-text); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  border: 1px solid var(--line);
  background: var(--surface);
}
.product-card:hover { border-color: var(--line-strong); }
.card-body { padding: 16px 18px 20px; }
.card-body p { margin-bottom: 4px; font-size: 14px; }

.development-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.development-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.link-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* First-release cooperation section displays two cards; keep one column below 900px. */
@media (min-width: 901px) {
  #cooperation .link-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.link-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.link-card p { margin: 0; font-size: 14px; color: var(--muted); }

.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta-row h2 { margin-bottom: 6px; }
.cta-row p { margin-bottom: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.product-subnav { border-bottom: 1px solid var(--line); }
.product-subnav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.product-subnav a {
  min-width: 170px;
  text-align: center;
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 13px;
}

.product-section { padding: 78px 0 26px; }
.product-section + .product-section { padding-top: 94px; }
.product-intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 90px;
  align-items: start;
}
.product-title { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 10px; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 16px; }
.status-chip {
  display: inline-flex;
  min-width: 180px;
  justify-content: center;
  background: #f1f1f1;
  border: 1px solid #e1e1e1;
  padding: 7px 14px;
  font-size: 13px;
}
.spec-heading { margin: 44px 0 12px; font-size: 22px; }
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th,
.spec-table td { border: 1px solid #d3d3d3; padding: 9px 14px; text-align: left; vertical-align: top; }
.spec-table th { background: #e9e9e9; font-weight: 600; }
.spec-table td:first-child { width: 42%; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}
.wireframe-form { display: grid; gap: 12px; }
.wireframe-form label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.wireframe-form input,
.wireframe-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
}
.wireframe-form textarea { resize: vertical; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 901px) {
  .header-inner,
  .footer-inner {
    font-size: 14px;
  }
}

.page-hero {
  padding: 78px 0 58px;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 84px;
  align-items: center;
}
.page-hero-copy {
  max-width: 560px;
}
.process-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process-card,
.result-card,
.case-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
}
.process-card {
  min-height: 190px;
}
.process-number {
  display: block;
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}
.process-card p,
.result-card p,
.case-card p,
.contact-card p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted);
}
.result-grid {
  grid-template-columns: repeat(3, 1fr);
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.case-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}
.case-media {
  min-height: 130px;
}
.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}
.contact-details {
  display: grid;
  gap: 18px;
}
.contact-card strong {
  display: block;
  margin-bottom: 6px;
}
.contact-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 60px; gap: 12px; }
  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--muted-surface);
    padding: 7px 11px;
  }
  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 16px;
  }
  .primary-nav.is-open { display: flex; }
  .header-contacts { display: none; }
  .hero-grid,
  .development-grid,
  .product-intro-grid,
  .contact-grid,
  .page-hero-grid,
  .support-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-media { min-height: 220px; }
  .product-grid,
  .link-card-grid { grid-template-columns: 1fr; }
  .development-media-grid { grid-template-columns: 1fr 1fr; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; padding: 24px 0; align-items: start; }
  .footer-nav { justify-content: flex-start; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .footer-contacts { flex-direction: column; gap: 4px; }
  .product-subnav-inner { justify-content: flex-start; overflow-x: auto; padding: 12px 0; }
  .product-subnav a { flex: 0 0 auto; min-width: 145px; }
  .product-section { padding-top: 54px; }
  .product-media { min-height: 210px; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .lead { font-size: 18px; }
  .development-media-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 34px; }
  .status-row { display: grid; grid-template-columns: 1fr 1fr; }
  .status-chip { min-width: 0; }
  .spec-table { font-size: 12px; }
  .spec-table th, .spec-table td { padding: 8px 9px; }
  .spec-table td:first-child { width: 48%; }
}

.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button-outline { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.project-list { display: grid; gap: 32px; }
.portfolio-project {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 42px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}
.portfolio-project-reverse .portfolio-media { order: 2; }
.portfolio-project-reverse .portfolio-copy { order: 1; }
.portfolio-media { min-height: 320px; }
.media-pending {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  background: #e8e8e8;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}
.portfolio-copy { align-self: center; }
.portfolio-copy h2 { margin-bottom: 16px; font-size: clamp(24px, 2.6vw, 32px); }
.portfolio-copy p:last-child { margin-bottom: 0; }
.project-tags { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.relay-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.projects-more { margin-top: 24px; }
@media (max-width: 900px) {
  .portfolio-project { grid-template-columns: 1fr; gap: 22px; }
  .portfolio-project-reverse .portfolio-media,
  .portfolio-project-reverse .portfolio-copy { order: initial; }
  .portfolio-media { min-height: 240px; }
}
@media (max-width: 560px) {
  .relay-media-grid { grid-template-columns: 1fr; }
}

.project-figure,
.project-image-cell {
  margin: 0;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid var(--line);
}
.project-figure img,
.project-image-cell img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  background: #e8e8e8;
}
.project-image-cell {
  display: grid;
  grid-template-rows: 1fr auto;
}
.project-image-cell img {
  min-height: 250px;
}
.project-image-cell figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
}

/* CONTACT DIALOG: v1 */
.contact-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.20);
}
.contact-dialog::backdrop { background: rgba(18, 18, 18, 0.55); }
.contact-dialog-panel {
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  padding: 28px;
}
.contact-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.contact-dialog-header h2 { margin: 0; font-size: 28px; }
.contact-dialog-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--muted-surface);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.contact-dialog-close:hover { background: #ededed; }
.contact-dialog .wireframe-form { gap: 14px; }
.contact-dialog .wireframe-form label { font-size: 14px; }
.contact-dialog .wireframe-form input,
.contact-dialog .wireframe-form textarea { border-radius: 2px; }
.contact-dialog .wireframe-form .button { justify-self: start; }
.contact-dialog .form-note { line-height: 1.5; }
.button:focus-visible,
.menu-toggle:focus-visible,
.contact-dialog-close:focus-visible,
.wireframe-form input:focus-visible,
.wireframe-form textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .contact-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .contact-dialog-panel { max-height: calc(100dvh - 22px); padding: 22px 18px; }
  .contact-dialog-header h2 { font-size: 24px; }
}

/* SITE UI PASS: v1 */
:root {
  --page-bg: #f2f3f4;
  --muted-surface: #f7f8f9;
  --line: #dfe2e5;
  --line-strong: #acb2b8;
  --text: #22282d;
  --muted: #5b636b;
  --button: #252c31;
  --radius: 4px;
}
body { line-height: 1.55; }
h1, h2, h3 { letter-spacing: -0.022em; }
h1 { line-height: 1.12; }
h2 { line-height: 1.22; }
p { line-height: 1.6; }
.brand { font-size: 15px; letter-spacing: -0.025em; white-space: nowrap; }
.site-header { box-shadow: 0 1px 8px rgba(20, 25, 30, .035); }
.button { border-radius: var(--radius); transition: background-color .15s ease, border-color .15s ease; }
.button-dark:hover { background: #40484e; }
.button-outline:hover { border-color: var(--text); background: #f4f5f6; }
.product-card, .link-card, .case-card, .result-card, .process-card,
.contact-card, .portfolio-project { border-radius: var(--radius); }
.product-card:hover, .link-card:hover { border-color: #8d969e; }
.link-card:hover { background: #fcfcfd; }
.product-card .card-body h3 { line-height: 1.3; }
.status-chip, .product-subnav a { border-radius: 3px; }
.product-subnav a:hover { background: var(--muted-surface); }

/* SITE UI TABLES: v1 */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.spec-table { font-size: 14px; }
.spec-table th, .spec-table td {
  border-top: 0;
  border-left: 0;
  border-color: var(--line);
  padding: 12px 15px;
}
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th:last-child, .spec-table td:last-child { border-right: 0; }
.spec-table th { background: #eef0f2; color: var(--text); }
.spec-table tbody tr:nth-child(even) { background: #fafbfb; }
.wireframe-form input, .wireframe-form textarea {
  border-radius: var(--radius);
  min-height: 42px;
}
.wireframe-form input:focus-visible, .wireframe-form textarea:focus-visible {
  border-color: #59636b;
  outline: 2px solid #66717a;
  outline-offset: 1px;
}
.button:focus-visible, .menu-toggle:focus-visible,
.primary-nav a:focus-visible, .footer-nav a:focus-visible,
.product-subnav a:focus-visible, .link-card:focus-visible,
.product-card:focus-visible {
  outline: 2px solid #29353d;
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .page-hero { padding: 52px 0 32px; }
  .section { padding: 52px 0; }
  .hero-grid, .development-grid, .page-hero-grid { gap: 26px; }
  .spec-table { min-width: 570px; font-size: 13px; }
  .spec-table th, .spec-table td { padding: 10px 12px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .cta-row { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}


/* FEATURED PROJECT CARDS: v1 */
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.section-heading-row h2 { margin-bottom: 0; }
.text-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration: underline; }
.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.featured-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s ease, transform .15s ease;
}
.featured-project-card:hover {
  border-color: #8d969e;
  transform: translateY(-2px);
}
.featured-project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e8e8e8;
  border-bottom: 1px solid var(--line);
}
.featured-project-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px 19px 20px;
}
.featured-project-card-body h3 {
  margin-bottom: 9px;
  line-height: 1.28;
}
.featured-project-card-body p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.project-card-tags {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.featured-project-grid-compact .featured-project-card img {
  aspect-ratio: 16 / 10;
}
@media (max-width: 900px) {
  .featured-project-grid { grid-template-columns: 1fr 1fr; }
  .section-heading-row { align-items: flex-start; }
}
@media (max-width: 620px) {
  .featured-project-grid { grid-template-columns: 1fr; }
  .section-heading-row { flex-direction: column; gap: 10px; }
  .featured-project-card:hover { transform: none; }
}

/* EMAIL-ONLY MVP CONTACT PANEL */
.contact-email-cta h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 14px;
}
.contact-email-cta p { line-height: 1.6; }
.contact-email-cta .button {
  margin-top: 20px;
  text-decoration: none;
}
.contact-email-cta .contact-email-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
#form { scroll-margin-top: 30px; }

/* Portfolio media normalization: review iteration */
.portfolio-project .project-figure {
  display:grid;place-items:center;aspect-ratio:4/3;
  min-height:0;padding:clamp(12px,2vw,26px);background:#e8e8e8;
}
.portfolio-project .project-figure img {
  width:100%;height:100%;min-height:0;max-height:440px;
  aspect-ratio:4/3;object-fit:contain;border:0;
}
.portfolio-project .relay-media-stack {
  display:grid;grid-template-columns:minmax(0,1fr);gap:14px;
  min-height:0;
}
.relay-media-stack .project-image-cell {min-width:0;}
.relay-media-stack .project-image-cell img {
  display:block;width:100%;height:auto;min-height:0;
  max-height:440px;object-fit:contain;padding:12px;
  box-sizing:border-box;background:#e8e8e8;
}
.relay-media-stack .project-image-cell:nth-child(2) img {
  max-height:360px;
}
.relay-media-stack .project-image-cell figcaption {
  font-size:12px;line-height:1.45;letter-spacing:.01em;
}
.featured-project-card img {
  box-sizing:border-box;padding:clamp(10px,1.5vw,20px);
  aspect-ratio:4/3;object-fit:contain;
}
@media(max-width:900px) {
 .portfolio-project .project-figure img {max-height:380px;}
}


/* Enlarged normalized CAD media: review iteration */
.portfolio-project .project-figure {
  padding: 0;
}
.portfolio-project .project-figure img {
  max-height: none;
}
.featured-project-card img[src*="-display.jpg"] {
  padding: 0;
}
.featured-project-grid-compact .featured-project-card img[src*="-display.jpg"] {
  aspect-ratio: 4 / 3;
  padding: 0;
}

/* KEYBOARD ACCESS: SKIP DIRECTLY TO MAIN CONTENT */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  background: #252c31;
  color: #fff;
  border: 2px solid #fff;
  text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }


/* TEAM SECTION: review iteration */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.team-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.team-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 260px;
  background: #e8e8e8;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.team-card-body {
  min-width: 0;
  align-self: start;
}
.team-card-body h3 {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.2;
}
.team-role {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.team-profile {
  display: grid;
  gap: 18px;
  margin: 0;
}
.team-profile > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.team-profile dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.team-profile dd {
  margin: 0;
  color: #414141;
  font-size: 14px;
  line-height: 1.6;
}
.team-card-pending .team-card-body {
  align-self: center;
}
.team-pending-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.team-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 980px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .team-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .team-photo-placeholder {
    width: min(100%, 280px);
    min-height: 0;
  }
}


/* TEAM PORTRAITS: v1 */
.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 260px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--line);
  background: #e8e8e8;
}
@media (max-width: 620px) {
  .team-photo {
    width: min(100%, 280px);
    min-height: 0;
  }
}

.team-portrait{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border:1px solid var(--line);}


/* TEAM PORTRAIT ASPECT FIX */
.team-card {
  align-items: start;
}
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  align-self: start;
  object-fit: cover;
  object-position: center center;
}


/* ABOUT PRINCIPLES: v1 */
.approach-intro {
  max-width: 860px;
  margin-bottom: 28px;
}
.approach-intro h2 {
  margin-bottom: 14px;
}
.approach-intro > p:last-child {
  margin-bottom: 0;
  max-width: 820px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.principle-card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.principle-card h3 {
  margin-bottom: 10px;
  line-height: 1.28;
}
.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) {
  .principles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 0; }
}


/* ABOUT SECTION RHYTHM: v2 */
.about-principles-section {
  padding-bottom: 28px;
}
.about-team-section {
  padding-top: 38px;
}
@media (max-width: 560px) {
  .about-principles-section { padding-bottom: 20px; }
  .about-team-section { padding-top: 30px; }
}


/* PROFESSIONAL REFERENCES: v1 */
.professional-references {
  max-width: 980px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.professional-references h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.professional-references-intro {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}
.professional-references-list {
  display: grid;
  gap: 8px;
}
.professional-references-list p {
  margin: 0;
  color: #414141;
  font-size: 14px;
  line-height: 1.55;
}
.professional-references-list a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.professional-references-list a:hover {
  text-decoration-thickness: 2px;
}


/* BRAND SYSTEM v0.2 — all-page design; DRAFT site content and release gates unchanged */
body.brand-site-v02 {
  --brand-accent: #7b1e2d;
  --brand-accent-hover: #681622;
  --page-bg: #f5f3ef;
  --surface: #ffffff;
  --muted-surface: #f5f3ef;
  --media: #ece9e4;
  --line: #c8cdd2;
  --line-strong: #a1a8ae;
  --text: #202020;
  --muted: #5f6368;
  --button: #7b1e2d;
  --button-text: #ffffff;
  --radius: 2px;
  background: var(--page-bg);
  color: var(--text);
}
.brand-site-v02 .site-header,
.brand-site-v02 .site-footer {
  background: var(--surface);
  box-shadow: none;
  border-color: var(--line);
}
.brand-site-v02 .header-inner,
.brand-site-v02 .footer-inner {
  grid-template-columns: 302px minmax(0, 1fr) auto;
  gap: 16px;
}
.brand-site-v02 .brand-mark,
.brand-site-v02 .footer-brand {
  display: flex;
  align-items: center;
  justify-self: start;
  width: 100%;
  min-width: 0;
}
.brand-site-v02 .brand-logo {
  display: block;
  width: 282px;
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
}
.brand-site-v02 .footer-brand .brand-logo { width: 268px; }
.brand-site-v02 .primary-nav a,
.brand-site-v02 .footer-nav a { color: var(--text); }
.brand-site-v02 .primary-nav a:hover,
.brand-site-v02 .footer-nav a:hover { color: var(--brand-accent); }
.brand-site-v02 .section-white { background: #ffffff; }
.brand-site-v02 .section-muted { background: var(--muted-surface); }
.brand-site-v02 .hero-copy h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 22px;
  background: var(--brand-accent);
}
.brand-site-v02 .button-dark {
  background: var(--brand-accent);
  color: #ffffff;
}
.brand-site-v02 .button-dark:hover { background: var(--brand-accent-hover); }
.brand-site-v02 .button-outline {
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  background: transparent;
}
.brand-site-v02 .button-outline:hover {
  color: #ffffff;
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}
.brand-site-v02 .button:focus-visible,
.brand-site-v02 .primary-nav a:focus-visible,
.brand-site-v02 .footer-nav a:focus-visible,
.brand-site-v02 .menu-toggle:focus-visible,
.brand-site-v02 .brand-mark:focus-visible,
.brand-site-v02 .footer-brand:focus-visible,
.brand-site-v02 .product-card:focus-visible,
.brand-site-v02 .featured-project-card:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}
.brand-site-v02 .product-card,
.brand-site-v02 .featured-project-card,
.brand-site-v02 .link-card { border-color: var(--line); }
.brand-site-v02 .product-card:hover,
.brand-site-v02 .featured-project-card:hover,
.brand-site-v02 .link-card:hover { border-color: var(--brand-accent); }
.brand-site-v02 .meta,
.brand-site-v02 .meta-line,
.brand-site-v02 .eyebrow,
.brand-site-v02 .project-tags,
.brand-site-v02 .project-card-tags { color: var(--muted); }
.brand-site-v02 .link-card { background: var(--surface); }
.brand-site-v02 .link-card:hover { background: #faf8f6; }
@media (max-width: 1250px) {
  .brand-site-v02 .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 60px;
  }
  .brand-site-v02 .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--muted-surface);
    padding: 7px 11px;
  }
  .brand-site-v02 .primary-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 16px;
  }
  .brand-site-v02 .primary-nav.is-open { display: flex; }
  .brand-site-v02 .header-contacts { display: none; }
}
@media (max-width: 900px) {
  .brand-site-v02 .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media (max-width: 560px) {
  .brand-site-v02 .brand-mark .brand-logo { width: min(245px, 100%); }
  .brand-site-v02 .footer-brand .brand-logo { width: min(268px, 100%); }
  .brand-site-v02 .hero-copy h1::after { width: 52px; margin-top: 18px; }
}
/* SITE-WIDE BRAND POLISH v0.2 */
.brand-site-v02 .spec-table th {
  background: var(--muted-surface);
  color: var(--text);
}
.brand-site-v02 .spec-table th,
.brand-site-v02 .spec-table td {
  border-color: var(--line);
}
.brand-site-v02 .spec-table tbody tr:nth-child(even) {
  background: #fcfbf9;
}
.brand-site-v02 .status-chip {
  color: var(--text);
  background: var(--muted-surface);
  border-color: var(--line);
}
.brand-site-v02 .product-subnav a {
  border-color: var(--line);
}
.brand-site-v02 .product-subnav a:hover,
.brand-site-v02 .product-subnav a:focus-visible {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  background: #faf8f6;
}
.brand-site-v02 .professional-references-list a:hover {
  color: var(--brand-accent);
}
.brand-site-v02 .text-link:hover {
  color: var(--brand-accent);
}
.brand-site-v02 .menu-toggle {
  color: var(--text);
  cursor: pointer;
}
.brand-site-v02 .primary-nav.is-open {
  z-index: 12;
}
/* END BRAND SYSTEM v0.2 — site-wide, pending release review */
