/* Executive / simplified portfolio (hang.design-inspired) */

.exec-portfolio {
  padding-bottom: var(--spacing-3xl);
}

.exec-hero {
  padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-2xl);
  background-color: var(--color-bg);
  text-align: center;
}

.exec-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--spacing-md);
  letter-spacing: -0.02em;
}

.exec-hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
  white-space: nowrap;
  max-width: none;
}

@media (max-width: 900px) {
  .exec-hero__subtitle {
    white-space: normal;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

.exec-projects {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-3xl);
}

.exec-projects .container {
  max-width: var(--container-max);
  margin-left: 0;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (min-width: 1024px) {
  .exec-projects .container {
    padding-left: var(--spacing-lg);
  }
}

.exec-project {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.exec-project:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 768px) {
  .exec-project {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: var(--spacing-2xl);
  }
}

.exec-project__content {
  min-width: 0;
}

.exec-project__image-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
}

.exec-project__image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .exec-project__image {
    max-width: 280px;
  }
}

/* iPhone frame (retail-bank-2 only) */
.exec-project__image-wrap--iphone .exec-project__image {
  max-width: 100%;
  border-radius: 0;
}

.iphone-frame {
  width: 100%;
  max-width: 320px;
  padding: 12px 10px 14px;
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
  border-radius: 44px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.iphone-frame__screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
}

.iphone-frame__screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  max-width: 100px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 0 0 18px 18px;
  z-index: 1;
  pointer-events: none;
}

.iphone-frame__screen .exec-project__image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

@media (max-width: 767px) {
  .iphone-frame {
    max-width: 280px;
    padding: 10px 8px 12px;
    border-radius: 38px;
  }
  .iphone-frame__screen {
    border-radius: 30px;
  }
  .iphone-frame__screen::before {
    height: 18px;
    border-radius: 0 0 14px 14px;
  }
}

.exec-project__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--spacing-sm);
  line-height: 1.4;
}

.exec-project__headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--spacing-md);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.exec-project__summary {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0 0 var(--spacing-lg);
  max-width: 72ch;
}

.exec-project__bullets {
  list-style: none;
  margin: 0 0 var(--spacing-lg);
  padding: 0;
}

.exec-project__bullets li {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: var(--spacing-md);
  padding-left: 0;
  position: relative;
}

.exec-project__bullets li:last-child {
  margin-bottom: 0;
}

.exec-project__bullets strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .exec-hero {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
  }
  .exec-projects {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-2xl);
  }
  .exec-project {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }
}

/* ======================================================
   Mobile reorder & spacing — MUST come after base styles
   so these overrides actually win on specificity/cascade
   ====================================================== */
@media (max-width: 767px) {
  .exec-project__image-wrap {
    justify-content: flex-start;
  }

  /* Reorder: label → headline → image → summary → bullets */
  .exec-project__content {
    display: contents;
  }
  .exec-project__meta   { order: 1; }
  .exec-project__headline { order: 2; }
  .exec-project__image-wrap { order: 3; }
  .exec-project__summary  { order: 4; }
  .exec-project__bullets  { order: 5; }

  /* Remove grid gap; use margin-top to match bullet-to-bullet spacing */
  .exec-project {
    row-gap: 0;
    column-gap: 0;
  }
  .exec-project__meta {
    margin: 0;
  }
  .exec-project__headline {
    margin: var(--spacing-sm) 0 0;
  }
  .exec-project__image-wrap {
    margin: var(--spacing-md) 0 0;
  }
  .exec-project__summary {
    margin: var(--spacing-md) 0 0;
  }
  .exec-project__bullets {
    margin: var(--spacing-md) 0 0;
  }
}
