/* ==========================================================================
   Maniro — About Company Section
   ========================================================================== */

.about {
  padding-block: 100px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

/* --- Text side --- */
.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-sky-dark);
}

[data-theme="dark"] .about-eyebrow {
  color: var(--color-sky);
}

.about-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-sky);
}

.about-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--color-text);
}

.about-text {
  max-width: 480px;
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* --- Feature cards --- */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}

/* Schematic / blueprint corner marks — matches the site's industrial signature */
.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid transparent;
  transition: border-color 0.35s var(--ease), width 0.35s var(--ease),
    height 0.35s var(--ease);
  pointer-events: none;
}

.feature-card::before {
  top: 8px;
  inset-inline-start: 8px;
  border-inline-end: none;
  border-bottom: none;
}

.feature-card::after {
  bottom: 8px;
  inset-inline-end: 8px;
  border-inline-start: none;
  border-top: none;
}

/* Soft directional glow that sweeps in behind the icon/text on hover */
.feature-card-glow {
  position: absolute;
  top: -40%;
  inset-inline-end: -30%;
  width: 65%;
  height: 140%;
  background: radial-gradient(closest-side, var(--color-sky-tint), transparent);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--color-sky);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before,
.feature-card:hover::after {
  width: 18px;
  height: 18px;
  border-color: var(--color-sky);
}

.feature-card:hover .feature-card-glow {
  opacity: 1;
  transform: scale(1);
}

.feature-card:hover .feature-icon {
  background: var(--color-sky);
  color: #ffffff;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 0 6px var(--color-sky-tint);
}

.feature-card:hover .feature-icon img {
  filter: brightness(0) invert(1);
}

.feature-card:hover .feature-title {
  color: var(--color-sky-dark);
}

[data-theme="dark"] .feature-card:hover .feature-title {
  color: var(--color-sky);
}

.feature-card:hover .feature-title::after {
  width: 28px;
}

.feature-card:hover .feature-text {
  color: var(--color-text);
}

.feature-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-sky-tint);
  color: var(--color-sky-dark);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

[data-theme="dark"] .feature-icon {
  color: var(--color-sky);
}

.feature-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.2s var(--ease);
}

/* Uploaded icon set ships as solid-black glyphs on transparent PNG —
   recolor via filter instead of currentColor */
[data-theme="dark"] .feature-icon img {
  filter: invert(1);
}

.feature-title {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  padding-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.25s var(--ease);
}

.feature-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--color-sky);
  transition: width 0.3s var(--ease);
}

.feature-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  transition: color 0.25s var(--ease);
}

.about-cta {
  margin-top: 8px;
}

/* --- Visual side --- */
.about-visual {
  display: flex;
}

.about-image {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    transform 0.5s var(--ease);
}

.about-visual:hover .about-image {
  border-color: var(--color-sky);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-features .feature-card.reveal {
  transition-delay: var(--reveal-delay, 0s);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .about {
    padding-block: 72px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .about-image {
    max-width: 420px;
    margin-inline: auto;
    aspect-ratio: 16 / 10;
  }

  .about-text {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}
