/* ==========================================================================
   Kloena Digital — About page
   Builds on the tokens and header/footer styles in styles.css
   ========================================================================== */

/* Match the header's content box exactly: 1400px outer width, same inline
   padding, so the About cards line up with the logo and navigation. */
.page-about main.about {
  display: block;
  width: min(1400px, 100%);
  margin-inline: auto;
  padding: clamp(6px, 1.4vw, 18px) clamp(20px, 3vw, 44px) 0;
}

.about > section {
  width: 100%;
  margin-inline: auto;
}

/* 1. Hero
   ========================================================================== */
.about-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 46vw, 540px);
  padding: clamp(24px, 4.4vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  animation: about-in 0.9s var(--ease-soft) both;
}

.about-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.about-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.7) brightness(0.46) saturate(0.9);
  transform: scale(1.04);
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(7, 8, 10, 0.35) 0%, rgba(7, 8, 10, 0.1) 34%, rgba(7, 8, 10, 0.78) 78%, rgba(7, 8, 10, 0.96) 100%),
    linear-gradient(105deg, rgba(7, 8, 10, 0.82) 0%, rgba(7, 8, 10, 0.28) 58%, transparent 100%),
    radial-gradient(70% 80% at 2% 100%, rgba(255, 203, 0, 0.14), transparent 68%);
}

.about-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow__rule {
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.about-hero__title {
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  font-family: var(--font-display);
  font-size: clamp(38px, 6.6vw, 78px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.about-hero__title em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent-2);
}

.about-hero__lead {
  max-width: 54ch;
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 2. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #0b0c0e;
}

.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(255, 203, 0, 0.5);
  color: var(--accent-2);
  transform: translateY(-1px);
}

/* 3. Content sections
   ========================================================================== */
.about-section {
  margin-top: clamp(48px, 7vw, 96px);
  scroll-margin-top: 24px;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.section-head__title em {
  font-style: normal;
  font-weight: 300;
  color: color-mix(in srgb, var(--accent-2) 80%, #ffffff);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.about-copy p {
  max-width: 66ch;
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.about-copy p + p {
  margin-top: 1.15em;
}

.about-copy p:first-child {
  font-size: clamp(15px, 1.15vw, 18px);
  color: rgba(244, 246, 248, 0.82);
}

/* 4. Location
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3.6vw, 56px);
  align-items: stretch;
}

.location-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.location-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.8) saturate(0.95);
  transform: scale(1.01);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}

.location-media:hover img {
  filter: grayscale(0) brightness(0.9) saturate(1.02);
  transform: scale(1.035);
}

.location-media__link {
  position: absolute;
  inset: 0;
  display: block;
}

.location-media--map {
  height: 100%;
}

.location-media--map img {
  height: 100%;
  aspect-ratio: auto;
  filter: grayscale(0.2) brightness(0.9) saturate(0.95);
}

.location-media--map:hover img {
  filter: grayscale(0) brightness(0.96) saturate(1.02);
}

.location-body p {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.location-body p + p {
  margin-top: 1.15em;
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: clamp(20px, 2.4vw, 30px);
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.03);
  font-style: normal;
}

.location-card__info {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.location-card__label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.location-card__address {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink-dim);
}

.location-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.location-card__links a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 203, 0, 0.35);
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.location-card__links a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.location-card__links a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 5. Video
   ========================================================================== */
.about-section--video {
  scroll-margin-top: 24px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 44px 90px -56px rgba(0, 0, 0, 0.95);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

.video-facade__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.62) saturate(0.95);
  transition: filter 0.7s var(--ease), transform 1.2s var(--ease);
}

.video-facade:hover .video-facade__poster {
  filter: grayscale(0) brightness(0.74) saturate(1.05);
  transform: scale(1.025);
}

.video-facade__shade {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(60% 60% at 50% 50%, rgba(7, 8, 10, 0.1), rgba(7, 8, 10, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.32), transparent 38%, rgba(7, 8, 10, 0.58));
}

.video-facade__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(58px, 7vw, 78px);
  height: clamp(58px, 7vw, 78px);
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 203, 0, 0.92);
  color: #0b0c0e;
  box-shadow: 0 18px 46px -14px rgba(255, 203, 0, 0.75);
  transition: transform 0.4s var(--ease), background 0.3s ease;
}

.video-facade:hover .video-facade__play {
  transform: scale(1.06);
  background: var(--accent-2);
}

.video-facade__label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.62);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-facade:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.video-fallback {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-faint);
}

.video-fallback a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 203, 0, 0.4);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.video-fallback a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.video-fallback a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 6. Closing call to action
   ========================================================================== */
.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
  margin-top: clamp(48px, 7vw, 96px);
  margin-bottom: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 190% at 0% 0%, rgba(255, 203, 0, 0.13), transparent 56%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 40px 90px -62px rgba(255, 203, 0, 0.55);
}

.about-cta .eyebrow {
  margin-bottom: 8px;
}

.about-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
}

@keyframes about-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 7. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid,
  .location-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-media--map {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .about-hero {
    min-height: min(460px, 62svh);
  }
}

@media (max-width: 600px) {
  .about-hero {
    min-height: 420px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .about-hero__actions {
    width: 100%;
  }

  .about-hero__actions .btn {
    flex: 1 1 auto;
  }

  .about-cta {
    align-items: flex-start;
    border-radius: 18px;
  }

  .about-cta .btn {
    width: 100%;
  }

  .location-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }

  .location-card__links {
    flex-direction: column;
    gap: 10px;
  }
}
