/* ==========================================================================
   components.css - Buttons, Status Lamp, Panel Frame, Projects, Services, Process
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons (Design.md 5.3)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.45rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-m);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #FDB913 0%, #E89E00 100%);
  color: var(--brand-navy);
  border-color: #DF9600;
  box-shadow: 0 2px 6px rgba(216, 142, 0, 0.25), 0 1px 2px rgba(20, 33, 44, 0.08);
}

.btn--primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(216, 142, 0, 0.35), 0 2px 4px rgba(20, 33, 44, 0.1);
  filter: brightness(1.02);
  color: var(--brand-navy);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(216, 142, 0, 0.2);
}

.btn--secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background-color: var(--surface);
  border-color: var(--steel);
  color: var(--steel);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-md);
}

.btn--secondary:active {
  transform: translateY(0);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.btn-group--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Status Lamp (Design.md 5.1)
   -------------------------------------------------------------------------- */
.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-round);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-lamp__text {
  white-space: nowrap;
}

.status-lamp__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-round);
  background-color: var(--ok);
  box-shadow: 0 0 0 3px rgba(27, 127, 83, 0.2);
  flex-shrink: 0;
  display: inline-block;
}

.status-lamp__dot--offline {
  background-color: var(--line);
  box-shadow: none;
}

@keyframes lampPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 127, 83, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(27, 127, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(27, 127, 83, 0.2);
  }
}

.status-lamp__dot.lamp-pulse {
  animation: lampPulse 1.2s ease-out 1;
}

/* --------------------------------------------------------------------------
   Panel Frame (Design.md 5.4)
   -------------------------------------------------------------------------- */
.panel-frame {
  background-color: var(--surface);
  border: 1px solid rgba(211, 218, 224, 0.8);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color 0.2s ease;
}

.panel-frame:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(35, 91, 131, 0.25);
}

.panel-frame__strip {
  height: 34px;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3);
  font-size: var(--step--1);
  color: var(--ink-soft);
  gap: var(--space-2);
}

.panel-frame__title-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-frame__dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.panel-frame__dot-item {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.panel-frame__dot--close { background-color: #FF5F56; }
.panel-frame__dot--min   { background-color: #FFBD2E; }
.panel-frame__dot--max   { background-color: #27C93F; }

.panel-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background-color: var(--line);
  flex-shrink: 0;
}

.panel-frame__dot--live {
  background-color: var(--ok);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: var(--step--1);
  font-weight: 500;
  border-radius: var(--radius-round);
  background: var(--wash);
  color: var(--brand-navy);
  border: 1px solid var(--line);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.tag-pill:hover {
  background: rgba(11, 34, 78, 0.08);
  border-color: rgba(212, 142, 0, 0.35);
  transform: translateY(-1px);
}

.tag-pill--xs {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}

.project-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.project-entry__tags--compact {
  margin: 0;
}

.panel-frame__title {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-frame__tool {
  font-size: var(--step--1);
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.panel-frame__body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.panel-frame__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-frame:hover .panel-frame__body img {
  transform: scale(1.03);
}

.panel-frame__empty-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #0B224E 0%, #0F2D6B 60%, #173B82 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
}

.panel-frame__placeholder-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  pointer-events: none;
}

.panel-frame__placeholder-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.panel-frame__placeholder-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(253, 185, 19, 0.4);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.panel-frame__placeholder-hint {
  font-size: var(--step--2);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Project Entries (Design.md 5.5)
   -------------------------------------------------------------------------- */
/* Featured Variant */
.project-entry--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  margin-bottom: var(--space-7);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

@media (min-width: 900px) {
  .project-entry--featured {
    grid-template-columns: 7fr 5fr;
    padding: var(--space-6);
    gap: var(--space-7);
  }
}

.project-entry--featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 142, 0, 0.4);
}

.project-entry--featured .project-entry__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.project-entry__category {
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-transform: none;
}

.project-entry__title {
  font-size: var(--step-2);
  margin-bottom: 0;
}

.project-entry__summary {
  font-size: var(--step-0);
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 0;
}

.project-entry__tools {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Standard Variant (Grid Cards) */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

.project-entry--standard {
  background-color: #FFFFFF;
  border: 1px solid var(--line, #E2E8F0);
  border-radius: var(--radius-l, 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(11, 34, 78, 0.05);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.project-entry--standard:hover {
  transform: translateY(-8px);
  border-color: rgba(253, 185, 19, 0.45);
  box-shadow: 0 20px 40px -10px rgba(11, 34, 78, 0.12), 0 8px 18px -4px rgba(11, 34, 78, 0.06);
}

.project-entry--standard .panel-frame--card {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.project-entry--standard .panel-frame__strip {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--line, #E2E8F0);
  padding: 0.65rem 1rem;
}

.project-entry--standard .panel-frame__body {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #F8FAFC;
}

.project-entry--standard .panel-frame__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-entry--standard:hover .panel-frame__body img {
  transform: scale(1.05);
}

.project-entry--standard .project-entry__content {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.project-entry--standard .project-entry__category {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand-navy, #0B224E);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-entry--standard .project-entry__title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.project-entry--standard .project-entry__title-link {
  color: var(--ink, #0B224E);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.project-entry--standard .project-entry__title-link:hover {
  color: var(--gold-deep, #D48E00);
}

.project-entry--standard .project-entry__summary {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft, #475569);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.project-entry--standard .project-entry__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--step--1);
}

.project-entry__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-navy, #0B224E);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.project-entry__footer-link .arrow-icon {
  display: inline-block;
  transition: transform 0.25s ease;
}

.project-entry--standard:hover .project-entry__footer-link {
  color: var(--gold-deep, #D48E00);
}

.project-entry--standard:hover .project-entry__footer-link .arrow-icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Service Rows (Design.md 5.6 - Modern Executive Bento Cards)
   -------------------------------------------------------------------------- */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  border-top: none;
  margin-top: var(--space-5);
}

@media (min-width: 768px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-list--full {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.services-list--full .service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-7);
}

@media (min-width: 900px) {
  .services-list--full .service-row {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-8);
  }
}

.service-row__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.service-row__deliverables-heading {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.service-row {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.service-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--gold-warm) 100%);
  opacity: 0.8;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.service-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(11, 34, 78, 0.12), 0 8px 16px -4px rgba(11, 34, 78, 0.06);
  border-color: rgba(212, 142, 0, 0.45);
  background-color: var(--surface);
}

.service-row:hover::before {
  opacity: 1;
  height: 5px;
}

.service-row__title {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.service-row__title-link {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.service-row__title-link:hover {
  color: var(--gold-deep);
}

.service-row__lead {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.service-row__deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-row__deliverable-item {
  position: relative;
  padding: 0.4rem 0.85rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--brand-navy);
  background-color: var(--wash);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-round);
  transition: all 0.25s ease;
}

.service-row:hover .service-row__deliverable-item {
  border-color: rgba(212, 142, 0, 0.35);
  background-color: rgba(253, 185, 19, 0.1);
  color: var(--ink);
}

.service-row__deliverable-item::before {
  display: none;
}

.service-row__cta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.service-row__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-row__cta-link:hover {
  color: var(--gold-deep);
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Process Steps (Design.md 5.7 - Connected Modern Pipeline Cards)
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
  position: relative;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
  .process-grid::before {
    content: "";
    position: absolute;
    top: 48px;
    left: 48px;
    right: 48px;
    height: 2px;
    background: linear-gradient(90deg, rgba(11, 34, 78, 0.15) 0%, rgba(253, 185, 19, 0.35) 50%, rgba(11, 34, 78, 0.15) 100%);
    z-index: 0;
  }
}

.process-step {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-navy);
  border-radius: var(--radius-l);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -4px rgba(11, 34, 78, 0.1), 0 4px 12px -2px rgba(11, 34, 78, 0.05);
  border-top-color: var(--gold-warm);
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-round);
  background: rgba(11, 34, 78, 0.05);
  border: 1px solid rgba(11, 34, 78, 0.12);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: var(--space-3);
  transition: all 0.3s ease;
}

.process-step:hover .process-step__number {
  background: var(--gold-warm);
  color: var(--brand-navy);
  border-color: var(--gold-deep);
  box-shadow: 0 0 14px rgba(253, 185, 19, 0.55);
  transform: scale(1.08);
}

.process-step__title {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.process-step__desc {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Testimonials (Design.md 6.1 - Modern Executive Quote Cards)
   -------------------------------------------------------------------------- */
.testimonials-section {
  background-color: var(--panel);
}

.testimonials-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 100%;
  margin-top: var(--space-5);
}

@media (min-width: 768px) {
  .testimonials-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .testimonials-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-item {
  margin: 0;
  padding: 2.25rem 2rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(11, 34, 78, 0.12), 0 8px 16px -4px rgba(11, 34, 78, 0.05);
  border-color: rgba(212, 142, 0, 0.45);
}

.testimonial-item__rating {
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.testimonial-item__stars {
  color: var(--gold-deep);
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.testimonial-item::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-warm);
  opacity: 0.25;
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  pointer-events: none;
}

.testimonial-item__quote {
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.testimonial-item__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  margin-top: auto;
  font-style: normal;
}

.testimonial-item__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  object-fit: cover;
  border: 2px solid var(--gold-warm);
  background-color: var(--wash);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.testimonial-item__avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1E3A8A 100%);
  color: var(--gold-warm);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold-warm);
  box-shadow: var(--shadow-xs);
}

.testimonial-item__cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
  gap: 2px;
}

.testimonial-item__name {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step-0);
}

.testimonial-item__meta {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.35;
}

.testimonial-item__cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
  gap: 2px;
}

.testimonial-item__name {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step--1);
}

.testimonial-item__meta {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Work Section Header & Project Card Helpers (No Inline Styles)
   -------------------------------------------------------------------------- */
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.work-header h2 {
  margin-bottom: 0;
}

.project-entry__title-link {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.project-entry__title-link:hover {
  color: var(--gold-deep);
}

.project-entry__cta {
  margin-top: var(--space-3);
}

.project-entry__cta-link {
  font-weight: 600;
}

.panel-frame--card {
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  border: none;
  border-bottom: 1px solid var(--line);
}

.panel-frame__empty-text {
  font-size: var(--step--1);
}

.project-entry__tools-text {
  color: var(--ink-soft);
}

.project-entry__footer-link {
  font-weight: 600;
}

/* Obsolete duplicate service-row styles removed in favor of modern executive bento cards */

/* --------------------------------------------------------------------------
   Timeline Component (Design.md 5.8: About & Resume)
   -------------------------------------------------------------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .timeline-item {
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
  }
}

.timeline-date {
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  padding-top: 0.2rem;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-title {
  font-size: var(--step-1);
  line-height: 1.3;
  margin-bottom: 0;
  color: var(--ink);
}

.timeline-role {
  font-weight: 600;
}

.timeline-company-sep {
  color: var(--line);
  margin: 0 var(--space-1);
}

.timeline-company {
  color: var(--ink-soft);
  font-weight: 400;
}

.timeline-bullets {
  list-style: disc;
  padding-left: var(--space-5);
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-bullets li {
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink);
}

.timeline-link-wrapper {
  margin-top: var(--space-1);
}

.timeline--compact {
  gap: var(--space-4);
}

.timeline--compact .timeline-title {
  font-size: var(--step-0);
}

/* --------------------------------------------------------------------------
   Condensed Timeline (About page, Design.md 6.5)
   -------------------------------------------------------------------------- */
.condensed-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.condensed-timeline__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.condensed-timeline__row:hover {
  background-color: var(--panel);
}

@media (min-width: 600px) {
  .condensed-timeline__row {
    grid-template-columns: 180px 1fr;
    gap: var(--space-5);
    align-items: baseline;
  }
}

.condensed-timeline__date {
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.condensed-timeline__role {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.condensed-timeline__company {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Skills Grid (Design.md 5.9: Plain Text Lists)
   -------------------------------------------------------------------------- */
.resume-skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .resume-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resume-skill-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.resume-skill-category {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
}

.resume-skill-list {
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Certifications Details Toggle (Pure Native HTML)
   -------------------------------------------------------------------------- */
.certifications-details {
  margin-top: var(--space-4);
}

.certifications-summary {
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  padding: var(--space-2) 0;
  user-select: none;
}

.certifications-summary:hover {
  color: var(--ink);
}

.certifications-collapsed-list {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line);
}

/* --------------------------------------------------------------------------
   Form Controls (Design.md 5.10)
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.form-label .req {
  color: var(--danger);
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background-color: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--step-0);
  padding: 0 var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.form-input {
  height: 50px;
}

.form-textarea {
  padding: var(--space-4);
  min-height: 140px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(11, 34, 78, 0.12), var(--shadow-sm);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: #FFF9F9;
}

.form-field-error {
  display: block;
  font-size: var(--step--1);
  color: var(--danger);
  margin-top: var(--space-1);
  font-weight: 500;
}

.form-hint {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: var(--space-1);
}

/* Radio Group & Fieldset */
fieldset.form-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-5);
  margin: 0 0 var(--space-5) 0;
  background-color: var(--wash);
}

fieldset.form-group legend {
  padding: 0 var(--space-2);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
}

.form-radios {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

@media (min-width: 600px) {
  .form-radios {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

.form-radio-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--step-0);
  color: var(--ink);
  user-select: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-s);
  transition: background-color var(--transition-fast);
}

.form-radio-label:hover {
  background-color: rgba(11, 34, 78, 0.04);
}

.form-radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-deep);
  cursor: pointer;
}

/* Form Error Summary */
.form-error-summary {
  border: 1px solid var(--danger);
  background-color: #FDF3F2;
  border-radius: var(--radius-s);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.form-error-summary__title {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--danger);
  margin-bottom: var(--space-2);
}

.form-error-summary__list {
  margin: 0;
  padding-left: var(--space-4);
  color: var(--danger);
  font-size: var(--step--1);
}

.form-error-summary__list li {
  margin-bottom: var(--space-1);
}

.form-error-summary__list a {
  color: var(--danger);
  text-decoration: underline;
}

/* Honeypot & Screen Reader Utility */
.visually-hidden,
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Floating Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--brand-navy, #0B224E);
  color: #FFFFFF;
  border: 1.5px solid rgba(253, 185, 19, 0.45);
  box-shadow: 0 4px 16px rgba(11, 27, 61, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background-color: #071530;
  border-color: var(--signal, #FDB913);
  color: var(--signal, #FDB913);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(11, 27, 61, 0.35), 0 0 14px rgba(253, 185, 19, 0.35);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--signal, #FDB913);
  outline-offset: 3px;
}

.back-to-top svg {
  transition: transform var(--transition-fast);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}

@media print {
  .back-to-top {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Latest Posts (Home Page Section)
   -------------------------------------------------------------------------- */
.latest-posts-section {
  background-color: var(--surface-alt, #F8FAFC);
  border-top: 1px solid var(--line, #E2E8F0);
  border-bottom: 1px solid var(--line, #E2E8F0);
  padding: var(--space-3xl, 5rem) 0;
}

.latest-posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: var(--space-2xl, 3rem);
  flex-wrap: wrap;
}

.latest-posts-header__text {
  max-width: 640px;
}

.latest-posts-header__badge {
  margin-bottom: 0.5rem;
}

.latest-posts-header__action {
  flex-shrink: 0;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Post Card Component */
.post-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid rgba(11, 27, 61, 0.08);
  border-radius: var(--radius-l, 16px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 27, 61, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 27, 61, 0.12);
  border-color: rgba(253, 185, 19, 0.45);
}

.post-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--brand-navy, #0B224E);
}

.post-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.post-card:hover .post-card__img {
  transform: scale(1.06);
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0B224E 0%, #153675 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  position: relative;
}

.post-card__placeholder-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(253, 185, 19, 0.35);
}

.post-card__placeholder-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal, #FDB913);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.75rem 1.75rem;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--ink-soft, #4B6382);
  margin-bottom: 0.75rem;
}

.post-card__date {
  font-variant-numeric: tabular-nums;
}

.post-card__meta-sep {
  opacity: 0.5;
}

.post-card__category {
  font-weight: 600;
  color: var(--steel, #235B83);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.post-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink, #0B1B3D);
  margin: 0 0 0.75rem 0;
  transition: color 0.2s ease;
}

.post-card__title-link {
  color: inherit;
  text-decoration: none;
}

.post-card__title-link:hover {
  color: var(--steel, #235B83);
}

.post-card:hover .post-card__title {
  color: var(--steel, #235B83);
}

.post-card__excerpt {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--ink-soft, #4B6382);
  margin: 0 0 1.25rem 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 27, 61, 0.06);
}

.post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy, #0B224E);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.post-card__cta-arrow {
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__cta {
  color: var(--signal, #FDB913);
}

.post-card:hover .post-card__cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .latest-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .latest-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .latest-posts-section {
    padding: var(--space-2xl, 3.5rem) 0;
  }
  .post-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}


