:root {
  --ink: #14171f;
  --muted: #667085;
  --line: #e5e8ef;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --soft-2: #eef1f5;
  --brand: #e95b00;
  --brand-2: #ff8a1c;
  --deep: #191919;
  --ok: #137447;
  --wait: #9a5b00;
  --shadow: 0 22px 58px rgba(16, 24, 40, .10);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #f8f9fb 58%, #eef1f5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.front-shell,
.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.front-nav,
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 232, 239, .86);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.nav-inner,
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar {
  padding: 0 min(5vw, 56px);
}
.front-brand,
.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo,
.brand-mark {
  width: 162px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .07);
}
.brand-logo img,
.brand-mark img {
  width: 140px;
  max-height: 40px;
  object-fit: contain;
}
.front-brand strong,
.brand-mark strong {
  display: block;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.front-brand small,
.brand-mark span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.front-links,
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.front-links a,
.topbar nav a,
.front-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}
.front-links a,
.topbar nav a.secondary,
.front-button.ghost,
.button.secondary {
  color: #344054;
  background: #fff;
  border-color: var(--line);
}
.front-links a:hover,
.topbar nav a:hover {
  border-color: #ffc49f;
  color: var(--ink);
}
.front-links a:last-child {
  color: #fff;
  border-color: var(--deep);
  background: var(--deep);
}
.front-links a:last-child:hover {
  color: #fff;
  border-color: var(--brand);
  background: #242424;
}
.front-button.primary,
.button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(233, 91, 0, .22);
}

.front-hero,
.hero {
  padding: 64px 0 38px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: center;
}
.front-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #9b2b00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.front-eyebrow::before,
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(233, 91, 0, .12);
}
.hero-copy h1,
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 76px;
  line-height: .98;
  letter-spacing: 0;
}
.front-lead,
.hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #4b5565;
  font-size: 20px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.institutional-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .82)),
    linear-gradient(135deg, rgba(233, 91, 0, .10), rgba(20, 23, 31, .04));
}
.institutional-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 9px;
  background: linear-gradient(90deg, var(--brand), #f8b24a 42%, var(--deep));
}

.portal-panel,
.hero-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-head span,
.hero-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.panel-head strong,
.hero-card strong {
  color: var(--ok);
}
.portal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.portal-metrics div,
.metric {
  min-height: 98px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.portal-metrics b,
.metric b {
  display: block;
  font-size: 34px;
  line-height: 1;
}
.portal-metrics span,
.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.executive-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)),
    linear-gradient(135deg, rgba(233, 91, 0, .12), rgba(25, 25, 25, .04));
}
.panel-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f1d3c0;
  border-radius: var(--radius);
  color: #693000;
  background: #fff8f2;
  font-size: 13px;
  line-height: 1.45;
}

.front-section,
.section {
  padding: 34px 0;
}
.front-section.tight {
  padding-top: 10px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 40px;
  letter-spacing: 0;
}
.section-head p,
.muted {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.project-tile,
.card {
  grid-column: span 4;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .07);
}
.project-tile.featured {
  grid-column: span 8;
}
.tile-media {
  min-height: 185px;
  background:
    linear-gradient(135deg, rgba(20, 23, 31, .70), rgba(20, 23, 31, .10)),
    var(--cover, linear-gradient(135deg, #2d3139, #17191f));
  background-size: cover;
  background-position: center;
}
.tile-body,
.card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}
.tile-top,
.tile-foot,
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tile-top > span:last-child,
.tile-meta,
.tile-foot span,
.meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: #fff4ed;
  color: #9b2b00;
  border: 1px solid #ffd6bd;
}
.status-badge.is-done {
  color: var(--ok);
  background: #ecfdf3;
  border-color: #abefc6;
}
.status-badge.is-waiting {
  color: var(--wait);
  background: #fffaeb;
  border-color: #fedf89;
}
.tile-body h3,
.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}
.tile-body p,
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.tile-meta {
  display: grid;
  gap: 4px;
}
.progress-line,
.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf3;
}
.progress-line i,
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.special-project {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  overflow: hidden;
  color: #fff;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, .92), rgba(18, 18, 18, .62), rgba(18, 18, 18, .10)),
    var(--cover, #171717);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.special-project h3 {
  max-width: 720px;
  margin: 18px 0 10px;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
}
.special-project p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 17px;
  line-height: 1.5;
}
.special-project > span {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.evidence-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.evidence-mosaic a,
.evidence-mosaic figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.evidence-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.evidence-mosaic span,
.evidence-mosaic figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 23, 31, .78);
  font-size: 12px;
  font-weight: 900;
}
.evidence-section {
  background: linear-gradient(180deg, #fff, #f7f8fa);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.showcase-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .07);
}
.showcase-card.featured {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
}
.showcase-media {
  position: relative;
  min-height: 230px;
  background: var(--soft-2);
}
.showcase-card.featured .showcase-media {
  min-height: 100%;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}
.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 31, .06), rgba(20, 23, 31, .32));
  pointer-events: none;
}
.showcase-media .status-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, .94);
}
.showcase-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}
.showcase-kicker {
  color: #9b2b00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.showcase-body h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.12;
}
.showcase-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.showcase-stats span {
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fafbfc;
  font-size: 12px;
  line-height: 1.3;
}
.showcase-stats b {
  display: block;
  color: var(--ink);
  font-size: 20px;
}
.showcase-body small {
  color: var(--muted);
  font-weight: 800;
}
.service-showcase .showcase-body {
  align-content: center;
}
.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.showcase-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5565;
  background: #fafbfc;
  font-size: 12px;
  font-weight: 900;
}
.compact-head {
  margin-bottom: 14px;
}
.anonymous-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.client-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.client-list.enhanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.client-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.client-row strong { display: block; }
.client-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.empty-panel {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed #c8ced8;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
  color: var(--muted);
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  align-items: stretch;
}
.control-board,
.signal-card,
.method-grid article,
.value-grid article,
.contact-band {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
}
.control-board {
  padding: clamp(20px, 3vw, 28px);
}
.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.board-head h2 {
  max-width: 680px;
  margin: 0;
  font-size: 34px;
  line-height: 1.06;
}
.board-head > span {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #813300;
  background: #fff4ed;
  border: 1px solid #ffd6bd;
  font-size: 13px;
  font-weight: 900;
}
.board-rows {
  display: grid;
  gap: 12px;
}
.board-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(160px, 1fr) 54px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-label strong,
.board-row b {
  font-size: 14px;
}
.signal-stack {
  display: grid;
  gap: 14px;
}
.signal-card {
  padding: 18px;
}
.signal-card span,
.method-grid article span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #9b2b00;
  background: #fff4ed;
  border: 1px solid #ffd6bd;
  font-size: 12px;
  font-weight: 900;
}
.signal-card h3,
.method-grid h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.15;
}
.signal-card p,
.method-grid p,
.value-grid span,
.contact-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.method-section,
.values-section {
  background: rgba(255, 255, 255, .56);
}
.method-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.method-grid article {
  min-height: 230px;
  padding: 20px;
}
.value-grid article {
  min-height: 138px;
  padding: 18px;
  border-top: 4px solid var(--brand);
}
.value-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}
.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border-top: 5px solid var(--brand);
  background:
    linear-gradient(135deg, #fff, #f7f8fa 56%, #fff3eb);
}
.contact-band h2 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.08;
}

.front-footer,
footer {
  margin-top: 30px;
  padding: 28px 0;
  color: #a8b0bd;
  background: var(--deep);
}
.front-footer .front-shell,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 960px) {
  .hero-copy h1,
  .hero h1 {
    font-size: 56px;
  }
  .front-lead,
  .hero p {
    font-size: 18px;
  }
  .section-head h2,
  .special-project h3 {
    font-size: 34px;
  }
  .hero-grid,
  .operations-grid,
  .showcase-grid,
  .project-grid,
  .grid,
  .client-list,
  .client-list.enhanced,
  .evidence-mosaic,
  .method-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }
  .project-tile,
  .project-tile.featured,
  .showcase-card,
  .showcase-card.featured,
  .card {
    grid-column: auto;
  }
  .showcase-card.featured {
    display: block;
  }
  .nav-inner,
  .topbar,
  .section-head,
  .front-footer .front-shell,
  footer,
  .special-project,
  .board-head,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .board-row {
    grid-template-columns: 1fr;
  }
  .front-links,
  .topbar nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .front-shell,
  .shell {
    width: min(100% - 22px, 1180px);
  }
  .front-hero,
  .hero {
    padding-top: 38px;
  }
  .hero-copy h1,
  .hero h1 {
    font-size: 40px;
  }
  .brand-logo,
  .brand-mark {
    width: 138px;
  }
  .front-brand > span:last-child,
  .brand-mark + span {
    display: none;
  }
  .portal-metrics {
    grid-template-columns: 1fr;
  }
}
