/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* --- Section headers --- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
}

.section-head h2 {
  margin-bottom: .2em;
}

.section-head .lead {
  max-width: 44ch;
}

/* --- Value / pillar icons row --- */
.pillar-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: .9em;
  padding-top: 1.4em;
  border-top: 2px solid var(--line-dark);
}

.on-forest .pillar,
.on-ink .pillar {
  border-top-color: var(--line-dark);
}

.pillar svg {
  width: 38px;
  height: 38px;
  color: var(--yellow);
}

.pillar h4 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.pillar p {
  font-size: .88rem;
  margin: 0;
}

/* --- Dashboard gauge counters (signature element) --- */
.gauge-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.gauge {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
}

.gauge svg {
  width: 132px;
  height: 80px;
  overflow: visible;
}

.gauge-track {
  fill: none;
  stroke: var(--line-dark);
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.4s var(--ease);
}

.gauge-value {
  font-family: var(--f-mono);
  font-size: 1.7rem;
  font-weight: 600;
  fill: var(--paper);
}

.gauge-suffix {
  font-size: 1rem;
  fill: var(--yellow);
}

.gauge-label {
  margin-top: .8em;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-light);
}

@media (max-width:900px) {
  .gauge-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:520px) {
  .gauge-strip {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .gauge svg {
    width: 100%;
    height: 64px;
  }
}

/* --- Business line / sector cards --- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sector-card {
  background: var(--paper);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  transition: background .3s var(--ease);
  position: relative;
}

.sector-card:hover {
  background: var(--forest);
  color: var(--paper);
}

.sector-card:hover p {
  color: var(--steel-light);
}

.sector-card:hover .sector-icon {
  color: var(--yellow);
}

.sector-icon {
  width: 44px;
  height: 44px;
  color: var(--forest-3);
  margin-bottom: 1.4em;
  transition: color .3s;
}

.sector-card h3 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5em;
}

.sector-num {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--steel);
}

.sector-card:hover .sector-num {
  color: var(--yellow);
}

.sector-link {
  margin-top: auto;
  padding-top: 1.4em;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .6em;
}

@media (max-width:960px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:620px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Process flow graphic --- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
  margin-top: 2rem;
}

.process-step {
  position: relative;
  text-align: left;
  padding-right: 24px;
}

.process-step .step-num {
  font-family: var(--f-mono);
  font-size: .75rem;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
}

.process-step h4 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: .98rem;
  margin-bottom: .4em;
}

.process-step p {
  font-size: .85rem;
  margin: 0;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(100% - 24px);
  width: calc(100% - 6px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, transparent 6px 12px);
}

.process-step:last-child::after {
  display: none;
}

@media (max-width:900px) {
  .process-flow {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .process-step::after {
    display: none;
  }
}

@media (max-width:560px) {
  .process-flow {
    grid-template-columns: 1fr;
  }
}

/* --- Project cards --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 34, 25, .14);
}

.project-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--forest);
}

.project-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4em .8em;
  border-radius: 2px;
}

.project-body {
  padding: 22px 22px 26px;
}

.project-body .loc {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: .6em;
}

.project-body h3 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: 1.08rem;
  margin-bottom: .3em;
}

.project-body .status {
  font-size: .85rem;
  color: var(--forest-3);
  font-weight: 600;
}

@media (max-width:960px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* placeholder texture used for photography slots not yet supplied */
.ph-photo {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(245, 183, 0, .16), transparent 55%),
    repeating-linear-gradient(45deg, #24503a 0 3px, #1f4633 3px 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-light);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1em;
}

/* --- Filter tabs --- */
.filter-row {
  display: flex;
  gap: .7em;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.filter-btn {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .7em 1.3em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel);
  border-radius: 20px;
  transition: all .25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--forest-3);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

/* --- Team cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: left;
}

.team-photo {
  aspect-ratio: 3/3.6;
  background: var(--forest);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.1em;
}

.team-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 2.6rem;
  color: var(--yellow);
  background: repeating-linear-gradient(135deg, #234a34 0 2px, #1e4130 2px 50px);
}

.team-card h4 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: 1.02rem;
  margin-bottom: .15em;
}

.team-role {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest-3);
}

@media (max-width:960px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Stat inline (about page) --- */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.4rem;
}

.mini-stat {
  border-left: 2px solid var(--yellow);
  padding-left: 1em;
}

.mini-stat .num {
  font-family: var(--f-mono);
  font-size: 2.2rem;
  font-weight: 600;
  display: block;
}

.mini-stat .lbl {
  font-size: .85rem;
  color: var(--steel);
}

/* --- Timeline (about page) --- */
.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2.6rem;
  border-left: 2px dashed var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.6rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.68rem;
  top: .2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
}

.timeline-item .yr {
  font-family: var(--f-mono);
  color: var(--forest-3);
  font-size: .85rem;
  margin-bottom: .3em;
  display: block;
}

.timeline-item h4 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: 1.08rem;
  margin-bottom: .25em;
}

/* --- CTA band --- */
.cta-band {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(48px, 7vw, 80px) 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0;
  max-width: 16ch;
}

.cta-band .btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.cta-band .btn-outline:hover {
  background: var(--ink);
  color: var(--yellow);
}

/* --- Forms (contact page) --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-grid .full {
  grid-column: 1/-1;
}

.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .6em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--line);
  background: transparent;
  padding: .7em .2em;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: .82rem;
  color: var(--steel);
  margin-top: 1.2em;
}

.form-success {
  display: none;
  align-items: center;
  gap: .8em;
  padding: 1.1em 1.3em;
  background: rgba(62, 117, 84, .1);
  border: 1px solid var(--forest-3);
  color: var(--forest);
  font-size: .92rem;
  border-radius: var(--radius);
  margin-top: 1.4em;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--forest-3);
}

@media (max-width:700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact info cards --- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-card svg {
  width: 30px;
  height: 30px;
  color: var(--forest-3);
  margin-bottom: 1em;
}

.contact-card h4 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: 1rem;
  margin-bottom: .5em;
}

.contact-card p {
  font-size: .92rem;
  margin: 0;
}

@media (max-width:820px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* --- Map placeholder --- */
.map-block {
  position: relative;
  aspect-ratio: 16/7;
  background:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    var(--forest);
  background-size: 36px 36px, 36px 36px, auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6em;
  color: var(--paper);
}

.map-pin svg {
  width: 40px;
  height: 40px;
  color: var(--yellow);
}

.map-pin span {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- Split panel (text + illustration) --- */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-panel .art-frame {
  position: relative;
  aspect-ratio: 5/4;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
}

.split-panel .art-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width:860px) {
  .split-panel {
    grid-template-columns: 1fr;
  }

  .split-panel .art-frame {
    order: -1;
  }
}

/* --- Mosaic gallery strip --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 140px);
  gap: 12px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-tile:nth-child(1) {
  grid-column: 1/3;
  grid-row: 1/3;
}

.gallery-tile:nth-child(2) {
  grid-column: 3/5;
  grid-row: 1/2;
}

.gallery-tile:nth-child(3) {
  grid-column: 3/4;
  grid-row: 2/3;
}

.gallery-tile:nth-child(4) {
  grid-column: 4/5;
  grid-row: 2/3;
}

.gallery-tile svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-tile .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(20, 34, 25, .88), transparent);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
}

@media (max-width:760px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 140px);
  }

  .gallery-tile:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/2;
  }

  .gallery-tile:nth-child(2) {
    grid-column: 1/2;
    grid-row: 2/3;
  }

  .gallery-tile:nth-child(3) {
    grid-column: 2/3;
    grid-row: 2/3;
  }

  .gallery-tile:nth-child(4) {
    grid-column: 1/3;
    grid-row: 3/4;
  }
}

/* --- Project media illustration base --- */
.scene-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Hero illustration layer --- */
.hero-art {
  position: absolute;
  right: 0;
  bottom: 100px;
  width: min(48vw, 640px);
  z-index: 1;
  opacity: .9;
  pointer-events: none;
}

@media (max-width:900px) {
  .hero-art {
    display: none;
  }
}

/* --- Reveal-on-scroll utility --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Sector details (sectors page) --- */
.sector-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.sector-detail:last-child {
  border-bottom: none;
}

.sector-detail-icon {
  width: 56px;
  height: 56px;
  color: var(--yellow);
  background: var(--forest);
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 1.2em;
}

.sector-detail .idx {
  font-family: var(--f-mono);
  color: var(--steel);
  font-size: .8rem;
  letter-spacing: .1em;
}

.capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6em 1.4em;
  margin-top: 1.4em;
  padding: 0;
}

.capability-list li {
  display: flex;
  gap: .6em;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--ink);
}

.capability-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--forest-3);
}

@media (max-width:820px) {
  .sector-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }
}

/* --- Team page specific --- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.leader-card .team-photo {
  margin-bottom: 1.1em;
}

.leader-card p.bio {
  font-size: .86rem;
  margin-top: .6em;
}

@media (max-width:960px) {
  .leader-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .leader-grid {
    grid-template-columns: 1fr;
  }
}

.dept-tag {
  display: inline-block;
  margin-top: .5em;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--forest);
  padding: .3em .7em;
  border-radius: 2px;
}

.on-forest .dept-tag,
.on-ink .dept-tag {
  background: rgba(255, 255, 255, .08);
}

.join-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 32px;
  border: 1px dashed var(--line);
  margin-top: 3rem;
}

.join-strip h4 {
  font-family: var(--f-body);
  text-transform: none;
  font-size: 1.1rem;
  margin: 0 0 .3em;
}

.join-strip p {
  margin: 0;
  max-width: 44ch;
}