/* ==========================================================================
   ExcelyTech About Page Styles
   ========================================================================== */

/* Dark section defaults */
.about-hero,
.about-work-section {
  color: var(--white);
  background: var(--navy-950);
  --focus-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Section 1: Hero
   -------------------------------------------------------------------------- */
.about-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.6rem, 8.4vw, 7.5rem);
  background:
    radial-gradient(ellipse at 80% 45%, color-mix(in srgb, var(--page-accent) 7%, transparent), transparent 34%),
    var(--navy-950);
}

.about-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.about-hero-copy {
  max-width: 44rem;
}

.about-hero h1 {
  max-width: 14ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 1.02;
}

.about-hero-lede {
  max-width: 40rem;
  margin-bottom: 1.8rem;
  color: rgb(238 245 248 / 80%);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.about-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.about-hero-visual {
  position: relative;
  margin: 0;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius-panel);
  background: rgb(255 255 255 / 2.5%);
  box-shadow: none;
}

.about-visual-topline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  color: rgb(224 237 242 / 65%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.about-visual-topline-line {
  width: 2.2rem;
  height: 1px;
  background: var(--page-accent);
}

.about-hero-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-stack-item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0.8rem;
  border-radius: 0.25rem;
  background: transparent;
  transition: background-color 180ms ease;
}

.about-stack-item-highlight {
  border-left: 2px solid var(--page-accent);
  background: color-mix(in srgb, var(--page-accent) 7%, transparent);
}

.about-stack-num {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--page-accent) 55%, transparent);
  border-radius: var(--radius-panel);
  color: var(--page-accent);
  background: var(--navy-950);
  font-size: 0.66rem;
  font-weight: 750;
}

.about-stack-item strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.35;
}

.about-stack-item p {
  margin: 0;
  color: rgb(224 237 242 / 64%);
  font-size: 0.8rem;
  line-height: 1.45;
}

.about-stack-divider {
  padding-left: 1.05rem;
  height: 0.8rem;
  display: flex;
  align-items: center;
}

.about-stack-divider span {
  width: 1px;
  height: 100%;
  background: color-mix(in srgb, var(--page-accent) 32%, transparent);
}

.about-visual-caption {
  margin-top: 1.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: rgb(224 237 242 / 56%);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Section 2: Who We Are
   -------------------------------------------------------------------------- */
.about-who-section {
  background: var(--white);
}

.about-who-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.about-who-copy h2 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.about-who-text {
  margin-top: 1.2rem;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.65;
}

.about-profile-card {
  padding: 2rem 1.8rem;
  border: 1px solid var(--line);
  background: var(--canvas);
}

.about-profile-heading {
  margin: 0 0 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: #536878;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-profile-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.about-profile-item {
  display: grid;
  gap: 0.2rem;
}

.about-profile-item dt {
  color: var(--page-accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-profile-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 640;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Section 3: Why ExcelyTech Exists
   -------------------------------------------------------------------------- */
.about-why-section {
  background: var(--surface);
}

.about-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.about-why-intro h2 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.about-why-intro .principle-line {
  margin-top: 1.8rem;
}

.about-requirements-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.about-requirements-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.about-requirements-list li::before {
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #348e89;
  content: "";
}

.about-why-conclusion {
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid #c8d8df;
  color: var(--muted-ink);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Section 4: Operating Philosophy
   -------------------------------------------------------------------------- */
.about-philosophy-section {
  background: var(--white);
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.about-principle-card {
  padding: 2rem 1.8rem 1.8rem;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  box-shadow: none;
  transition: border-color 180ms ease;
}

.about-principle-card:focus-within {
  border-color: var(--page-accent);
  box-shadow: none;
}

.about-principle-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--page-accent) 40%, var(--line));
  box-shadow: none;
}

.about-principle-card-span {
  grid-column: 1 / -1;
  border-left: 2px solid var(--page-accent);
  background: var(--canvas);
}

.about-principle-num {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--page-accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.about-principle-card h3 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.about-principle-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Section 5: How We Work (Methodology Bridge)
   -------------------------------------------------------------------------- */
.about-work-section {
  color: var(--white);
  background: var(--navy-900);
}

.about-work-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.4rem;
}

.about-work-header h2 {
  max-width: 14ch;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.about-work-intro {
  max-width: 30rem;
  margin: 0 0 0.35rem;
  color: rgb(235 244 247 / 74%);
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-method-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2.8rem;
  padding: 0;
  list-style: none;
}

.about-method-card {
  position: relative;
  padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--page-accent) 38%, rgb(255 255 255 / 12%));
}

.about-method-card::before {
  position: absolute;
  top: -0.32rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--page-accent);
  border-radius: var(--radius-panel);
  background: var(--navy-900);
  content: "";
  transition: background-color 220ms ease;
}

.about-method-card:hover::before {
  transform: none;
  background: color-mix(in srgb, var(--page-accent) 22%, var(--navy-900));
}

.motion-ready .about-method-strip > .about-method-card.is-visible::before {
  animation: about-stage-arrive 420ms var(--ease-out) var(--reveal-delay, 0ms) both;
}

@keyframes about-stage-arrive {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.about-method-index {
  color: var(--page-accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.about-method-card h3 {
  margin: 0.5rem 0 0.45rem;
  color: var(--white);
  font-size: 1.24rem;
  letter-spacing: -0.025em;
}

.about-method-card p {
  margin: 0;
  color: rgb(235 244 247 / 72%);
  font-size: 0.88rem;
  line-height: 1.55;
}

.about-work-cta {
  padding-top: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Section 6: Our Focus
   -------------------------------------------------------------------------- */
.about-focus-section {
  background: var(--surface);
}

.about-focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.about-focus-copy h2 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.about-focus-copy p:not(.eyebrow):not(.body-lede) {
  margin-top: 1.2rem;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.65;
}

.about-focus-cards {
  display: grid;
  gap: 1.4rem;
}

.about-focus-card {
  padding: 1.8rem 1.6rem;
  border: 1px solid #cfdde4;
  border-radius: 0.25rem;
  background: var(--white);
}

.about-focus-card-primary {
  border-color: color-mix(in srgb, var(--page-accent) 45%, var(--line));
  background: var(--canvas);
  box-shadow: none;
}

.about-focus-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.2rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #074744;
  background: rgb(52 142 137 / 20%);
}

.about-focus-badge-secondary {
  color: #496779;
  background: #e4edf1;
}

.about-focus-card h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.about-focus-card p {
  margin: 0 0 1rem;
  color: var(--muted-ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.about-focus-note {
  display: block;
  color: #536878;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Section 7: Founders / People
   -------------------------------------------------------------------------- */
.about-founders-section {
  background: var(--white);
}

.about-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.about-founder-card {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding: 2rem 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-elevated);
  box-shadow: none;
}

.about-founder-badge {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--page-accent) 55%, var(--line));
  border-radius: var(--radius-panel);
  color: var(--page-accent);
  background: var(--canvas);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-founder-info h3 {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.about-founder-role {
  margin: 0 0 0.4rem;
  color: var(--page-accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-founders-note {
  max-width: 48rem;
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  font-size: 0.88rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Section 8: CTA
   -------------------------------------------------------------------------- */
.about-cta {
  padding-block: 0 var(--section-space);
  background: var(--canvas);
}

.about-cta-panel {
  display: flex;
  min-height: 18rem;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 5.5vw, 4.5rem);
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(ellipse at 88% 15%, color-mix(in srgb, var(--page-accent) 6%, transparent), transparent 28%),
    var(--navy-950);
  box-shadow: none;
}

.about-cta-copy {
  max-width: 44rem;
}

.about-cta-panel h2 {
  max-width: 15ch;
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 1.1;
}

.about-cta-panel p:not(.eyebrow) {
  max-width: 38rem;
  margin: 0;
  color: rgb(235 244 247 / 75%);
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .about-hero-layout,
  .about-who-layout,
  .about-focus-layout {
    gap: 3.5rem;
  }

  .about-work-header {
    gap: 2rem;
  }
}

@media (max-width: 980px) {
  .about-hero {
    min-height: 0;
    padding-block: 4.5rem 5rem;
  }

  .about-hero-layout,
  .about-who-layout,
  .about-why-grid,
  .about-work-header,
  .about-focus-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
  }

  .about-hero-copy,
  .about-who-copy,
  .about-profile-card,
  .about-focus-copy {
    max-width: 48rem;
  }

  .about-method-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.2rem;
  }

  .about-principles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-principle-card-span {
    grid-column: auto;
  }

  .about-founders-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-cta-panel {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.8rem;
  }
}

@media (max-width: 700px) {
  .about-hero {
    padding-block: 3.8rem 4.2rem;
  }

  .about-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 10vw, 3.5rem);
  }

  .about-hero .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-hero .hero-actions .button-primary {
    width: 100%;
  }

  .about-hero-visual {
    padding: 1.3rem 1.1rem 1.1rem;
  }

  .about-method-strip {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    padding-left: 1.1rem;
  }

  .about-method-strip::before {
    position: absolute;
    top: 0.2rem;
    bottom: 1rem;
    left: 0.15rem;
    width: 1px;
    background: rgb(101 213 200 / 43%);
    content: "";
  }

  .about-method-card {
    border-top: 0;
  }

  .about-method-card::before {
    top: 0.2rem;
    left: -1.1rem;
  }

  .about-founder-card {
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.6rem 1.4rem;
  }

  .about-cta-panel {
    padding: 2rem 1.4rem;
  }

  .about-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta-actions .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .about-hero h1 {
    font-size: 2.45rem;
  }

  .about-profile-card,
  .about-principle-card,
  .about-focus-card {
    padding-inline: 1.1rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .about-principle-card,
  .about-founder-card,
  .about-stack-item {
    transition: none !important;
  }

  .motion-ready .about-method-strip > .about-method-card.is-visible::before {
    animation: none;
  }
}
