/* =========================
   About (Page)
========================= */



#about-hero{
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;

  /* jos käytät taustakuvaa: */
  background-image: url("/asseets/img/puijjo.jpg"); /* vaihda polku */
  background-size: cover;
  background-position: top 30% right 0;

  transition: height 700ms ease;
}

/* Zoom/blur -kerros taustalle */
#about-hero::before{
  content:"";
  position:absolute;
  inset:0;

  background-image: inherit;
  background-size: inherit;
  background-position: inherit;

  transform: scale(1.08);
  filter: blur(0px);
  transition: transform 700ms ease, filter 700ms ease;

  z-index: 0;              /* TÄRKEÄ: jää tekstin alle */
}

/* Kevyt tumma overlay (helpottaa tekstin luettavuutta) */
#about-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.0);
  transition: background 700ms ease;

  z-index: 1;              /* overlay tekstin alle */
}

/* Teksti aina päällimmäiseksi */
.about-hero-text{
  position:absolute;
  left: 5%;
  bottom: 18%;

  z-index: 2;              /* TÄRKEÄ: tekstin päälle */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;

  pointer-events: none;
}

.about-hero-text h1{
  margin:0;
  padding: 20px 28px;
  border-radius: 12px;
  background: rgba(10, 25, 50, 0.75);
  color:#fff;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 800;
}

/* “Lukittu” tila (laukeaa scrollilla ja jää päälle) */
#about-hero.is-locked{
  height: 35vh;            /* HERO PIENENEE */
  min-height: 420px;       /* pidä järkevänä mobiilissa */
}

#about-hero.is-locked::before{
  transform: scale(1.00);  /* zoom out */
  filter: blur(6px);       /* blur */
}

#about-hero.is-locked::after{
  background: rgba(0,0,0,0.18);
}

#about-hero.is-locked .about-hero-text{
  opacity: 1;
  transform: translateY(0);
}






/* =========================
   ABOUT – Editorial layout
========================= */

/* Page wrapper for About content */
#about-content.about-editorial{
  background: var(--bg2--);
  color: #0f172a;

  position: relative;
  z-index: 2;

  margin-top: -30px;              /* same “lift” as career */
  padding-top: 110px;

  border-radius: 38px 38px 0 0;

  /* side space so panels never touch viewport edges */
  padding-left: 24px;
  padding-right: 24px;
}

/* Make each big section a rounded panel with big padding */
.about-editorial .about-hero-copy,
.about-editorial .about-body,
.about-editorial .about-photos{
  background: #ffffff;
  border-radius: 36px;

  padding: 64px 64px;
  margin: 0 auto 48px;

  max-width: 1200px;              /* panels don’t span full width */
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

/* Slightly lighter intro spacing */
.about-editorial .about-hero-copy{
  padding: 56px 64px 48px;
}

/* Body panel a bit more roomy */
.about-editorial .about-body{
  padding: 72px 72px;
}

/* Photos panel spacing */
.about-editorial .about-photos{
  padding: 72px 72px 88px;
}

/* Container (keep your site-wide one if already exists) */
.about-editorial .container{
  width: 100%;
  margin: 0 auto;
}

/* Typography */
.about-editorial .kicker{
  margin: 0 0 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  color: #475569;
}

.about-editorial .about-title{
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.02em;
  color: #0f172a;
}

.about-editorial .lead{
  margin: 0;
  max-width: 75ch;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
  color: #1e293b;  
  font-size: 18px;               /* stronger contrast */
}

.about-editorial p,
.about-editorial li{
  color: #1e293b;                 /* stronger contrast */
}

.about-editorial h2,
.about-editorial h3,
.about-editorial h4{
  color: #0f172a;
}

/* =========================
   Two-column editorial layout
========================= */

.about-editorial .about-grid{
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 64px;
  align-items: start;
}

/* Main article */
.about-editorial .about-article{
  max-width: 78ch;                 /* comfortable reading width */
}

.about-editorial .chapter{
  padding: 28px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.about-editorial .chapter:first-child{
  border-top: none;
  padding-top: 0;
}

.about-editorial .chapter h3{
  margin: 0 0 12px;
  font-size: 22px;
}

.about-editorial .chapter p{
  margin: 0 0 14px;
  line-height: 1.75;
  color: #1e293b;
}

/* Quote break */
.about-editorial .chapter.pull{
  padding: 36px 0;
}

.about-editorial blockquote{
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid rgba(79, 124, 255, 0.55);
  font-size: 20px;
  line-height: 1.6;
  color: #0f172a;
}

/* Inline media with caption (no “card” look) */
.about-editorial .inline-media{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.about-editorial .media-item{
  overflow: hidden;
  border-radius: 18px;
}

.about-editorial .media-item img{
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
  

  transform: scale(1);
  transition: transform 420ms ease;
  will-change: transform;
}

.about-editorial .media-item:hover img{
  transform: scale(1.07);
}

.about-editorial .media-caption p{
  margin: 0;
  color: #475569;
  line-height: 1.7;
  padding-top: 6px;
}

/* Side media: image + small list */
.about-editorial .side-media{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.about-editorial .side-text h4{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.about-editorial .focus-list{
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.about-editorial .focus-list li{
  margin: 8px 0;
}

/* Sidebar (sticky, editorial feel) */
.about-editorial .about-aside{
  position: static;
  top: auto;
}

.about-editorial .aside-block{
  padding: 18px 0 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.about-editorial .aside-block:first-child{
  border-top: none;
  padding-top: 0;
}

.about-editorial .aside-block h4{
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #475569;
}

/* Facts (definition list) */
.about-editorial .facts{
  margin: 0;
  display: grid;
  gap: 10px;
}

.about-editorial .facts > div{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.about-editorial .facts dt{
  color: #64748b;
  font-size: 13px;
}

.about-editorial .facts dd{
  margin: 0;
  color: #0f172a;
  font-weight: 650;
}

/* Tags */
.about-editorial .tag-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #475569;
}

.about-editorial .tag-list li{
  padding-left: 14px;
  position: relative;
}

.about-editorial .tag-list li::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.65);
  position: absolute;
  left: 0;
  top: 0.6em;
}

/* CTA row (uses your existing .btn styles if you already have them) */
.about-editorial .cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* If you DON’T already have buttons globally, keep these.
   If you DO have them, you can delete this block. */
.about-editorial .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  color: #0f172a;
}

.about-editorial .btn.primary{
  background: rgba(79, 124, 255, 0.14);
  border: 1px solid rgba(79, 124, 255, 0.30);
}

.about-editorial .btn.ghost{
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* =========================
   Photos grid (simple, clean)
========================= */

.about-editorial .subhead{
  margin: 0 0 18px;
  font-size: 18px;
  color: #0f172a;
}

.about-editorial .photo-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Wrapper zoom so it feels like a real zoom, not “cropping edges” */
.about-editorial .photo{
  overflow: hidden;
  border-radius: 18px;
}

.about-editorial .photo img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;

  transform: scale(1);
  transition: transform 420ms ease;
  will-change: transform;
}

.about-editorial .photo:hover img{
  transform: scale(1.07);
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px){
  #about-content.about-editorial{
    padding-top: 90px;
    border-radius: 32px 32px 0 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-editorial .about-hero-copy,
  .about-editorial .about-body,
  .about-editorial .about-photos{
    padding: 36px 24px;
    border-radius: 28px;
    margin-bottom: 32px;
    max-width: 100%;
  }

  .about-editorial .about-grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-editorial .about-aside{
    position: relative;
    top: auto;
  }

  .about-editorial .inline-media,
  .about-editorial .side-media{
    grid-template-columns: 1fr;
  }

  .about-editorial .photo-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce){
  .about-editorial .media-item img,
  .about-editorial .photo img{
    transition: none;
    transform: none;
  }
}

/* =========================
   ABOUT – Section hover
   (same feel as Career cards)
========================= */

.about-editorial .about-hero-copy,
.about-editorial .about-body,
.about-editorial .about-photos{
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
  will-change: transform;
}

.about-editorial .about-hero-copy:hover,
.about-editorial .about-body:hover,
.about-editorial .about-photos:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}
