@font-face {
  font-family: Akira;
  src: url('/bwe-lifestyle/identity/akira.woff');
}

@font-face {
  font-family: BWEHelvetica;
  src: url('/bwe-lifestyle/identity/helvetica.woff');
  font-weight: 700;
}

#bwe-lifestyle-scope {
  --navy: #0c2081;
  background: #fff;
  color: #282828;
  font: 400 1rem/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;

  * {
    box-sizing: border-box;
  }

  button,
  a {
    color: inherit;
    font: inherit;
  }

  a {
    text-decoration: none;
  }

  button {
    cursor: pointer;
  }

  a:focus-visible,
  button:focus-visible,
  select:focus-visible {
    outline: 3px solid #2662ea;
    outline-offset: 4px;
  }

  img {
    display: block;
    width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  figure {
    margin: 0;
  }

  .wrap {
    width: min(94%, 1770px);
    margin: auto;
  }

  .title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(1.7rem, 4vw, 5rem) 0 clamp(1.5rem, 2.5vw, 3rem);
  }

  h1,
  h2,
  h3 {
    line-height: 0.98;
    letter-spacing: -0.065em;
  }

  h1,
  h2 {
    font-family: Akira, Arial, sans-serif;
    letter-spacing: -0.045em;
  }

  h1 {
    font-size: clamp(4rem, 9vw, 10.2rem);
  }

  h2 {
    overflow-wrap: break-word;
  }

  .title-row p {
    max-width: 23em;
    font-size: clamp(1rem, 1.3vw, 1.4rem);
    line-height: 1.3;
    padding-bottom: 0.4rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.06fr 1fr 1fr;
    gap: 1vw;
  }

  .photo {
    background: transparent;
    padding: 0;
    border: 0;
    width: 100%;
    display: block;
    overflow: hidden;
  }

  .hero .photo {
    height: clamp(360px, 36vw, 700px);
  }

  .hero figure:nth-child(1) img {
    object-position: center 47%;
  }

  .hero figure:nth-child(2) img {
    object-position: center 55%;
  }

  .photo img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s;
  }

  .photo:hover img {
    transform: scale(1.025);
  }

  figcaption {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.88rem;
    align-items: baseline;
  }

  .hero figcaption,
  .spread figcaption {
    border-top: 1px solid #c8c8c8;
    padding-top: 7px;
  }

  figcaption b {
    font-family: BWEHelvetica, Arial, sans-serif;
    font-weight: 700;
  }

  .subtle {
    color: #595959;
  }

  .feature {
    padding: clamp(4rem, 8vw, 10rem) 0;
  }

  .feature-head,
  .archive-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .feature-head p,
  .archive-head p {
    max-width: 31em;
  }

  .feature h2 {
    font-size: clamp(3rem, 6.8vw, 8rem);
  }

  .archive h2,
  .work h2 {
    font-size: clamp(2.4rem, 4.9vw, 6.3rem);
  }

  .spread {
    display: grid;
    grid-template-columns: 1fr 0.68fr;
    gap: 9vw;
    padding: 0 4vw;
    align-items: center;
  }

  .spread figure:nth-child(2) {
    padding-top: 5vw;
  }

  .spread img {
    height: auto;
    max-height: unset;
    object-fit: contain;
  }

  .archive {
    background: #131313;
    color: #fafaf8;
    padding: clamp(3rem, 6vw, 7rem) 0;
  }

  .archive .subtle {
    color: #c0c0c0;
  }

  .controls {
    border-top: 1px solid #555;
    padding: 1.4rem 0;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }

  .controls select {
    font: inherit;
    padding: 0.5em 2em 0.5em 0.8em;
    background: #181818;
    color: white;
    border: 1px solid #777;
    border-radius: 0;
  }

  .count {
    margin-left: auto;
    font-size: 0.9rem;
  }

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

  .grid .photo {
    aspect-ratio: 4 / 5;
  }

  .grid figcaption {
    font-size: 0.9rem;
  }

  .more {
    display: block;
    margin: 2.5rem auto 0;
    background: none;
    color: inherit;
    border: 1px solid #777;
    border-radius: 2rem;
    padding: 0.65rem 1.6rem;
  }

  .more[hidden] {
    display: none;
  }

  .band {
    padding-block: clamp(3.5rem, 7vw, 8rem);
  }

  .band h2 {
    font-size: clamp(2rem, 4.3vw, 5.4rem);
    line-height: 1.14;
    overflow-wrap: normal;
  }

  .band h3 {
    font: 700 clamp(1.4rem, 2vw, 2.25rem)/1.1 BWEHelvetica, Arial, sans-serif;
    letter-spacing: -0.045em;
  }

  .band small,
  .kicker {
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.78rem;
  }

  .point {
    background: #141414;
    color: white;
    margin-top: clamp(3rem, 6vw, 7rem);
  }

  .point h2 {
    font-size: clamp(2.6rem, 6.5vw, 8rem);
    margin: 2.5rem 0;
  }

  .point em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px white;
  }

  .point-row {
    display: grid;
    grid-template-columns: 0.25fr 1.15fr 1fr;
    gap: 4vw;
    align-items: start;
  }

  .point-row p {
    font-size: clamp(1.15rem, 1.65vw, 2rem);
    max-width: 24em;
    line-height: 1.4;
  }

  .star {
    font-size: clamp(4rem, 7vw, 8rem);
    line-height: 0.9;
  }

  .point ul,
  .process ol {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .point li {
    padding: 1rem 0;
    border-top: 1px solid #555;
  }

  .service-grid,
  .process-grid,
  .metric-head {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 6vw;
  }

  .service-grid {
    margin-top: 3rem;
    align-items: start;
  }

  .service-art img {
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
  }

  .services details {
    border-top: 1px solid #bbb;
  }

  .services details:last-child {
    border-bottom: 1px solid #bbb;
  }

  .services summary {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.45rem 0;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.55vw, 1.8rem);
    cursor: pointer;
    list-style: none;
  }

  .services summary::-webkit-details-marker {
    display: none;
  }

  .services summary:after {
    content: '+';
    margin-left: auto;
    font-weight: 400;
  }

  .services details[open] summary {
    color: var(--navy);
  }

  .services details[open] summary:after {
    content: '−';
  }

  .services details div {
    margin: 0 0 1.5rem 2.5rem;
    max-width: 42em;
  }

  .services details div small {
    display: block;
    margin-top: 1.2rem;
    text-transform: none;
    letter-spacing: 0;
  }

  .process {
    background: var(--navy);
    color: white;
    border-radius: 0 0 22px 22px;
  }

  .process h2 {
    overflow-wrap: normal;
  }

  .process-grid > div > p {
    margin: 1.7rem 0;
    max-width: 31em;
    color: #e0e5ff;
  }

  .process li {
    border-top: 1px solid #ffffff55;
    padding: 1.7rem 0;
    display: flex;
    gap: 1.5rem;
  }

  .process li p {
    margin-top: 0.7rem;
    color: #e0e5ff;
    max-width: 35em;
  }

  .process small {
    padding-top: 0.2rem;
  }

  .lineart {
    width: min(75%, 310px);
    color: #b3c3ff;
    margin-top: 1rem;
  }

  .metric-head {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
  }

  .metrics em {
    color: var(--navy);
    font-style: normal;
  }

  .bars {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 45px;
    margin-bottom: 1.4rem;
    transform: skewY(-9deg);
    width: max-content;
  }

  .bars i {
    width: 14px;
    border: 1px solid var(--navy);
    height: 20%;
  }

  .bars i:nth-child(2) {
    height: 40%;
  }

  .bars i:nth-child(3) {
    height: 60%;
  }

  .bars i:nth-child(4) {
    height: 80%;
  }

  .bars i:last-child {
    height: 100%;
    background: var(--navy);
  }

  .metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid #bbb;
    margin: 3rem 0 1rem;
  }

  .metric-grid article {
    padding: 1.8rem 2rem 2rem 0;
  }

  .metric-grid article + article {
    border-left: 1px solid #bbb;
    padding-left: 2rem;
  }

  .metric-grid h3 {
    margin: 1.5rem 0 1rem;
  }

  .note {
    font-size: 0.88rem;
    color: #555;
  }

  dialog {
    background: #121212;
    color: white;
    border: 0;
    margin: auto;
    padding: 1rem;
    width: min(95vw, 1550px);
    max-width: 100vw;
    max-height: 97dvh;
  }

  dialog::backdrop {
    background: #000d;
  }

  .dialogbar,
  .dialogfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .dialogbar {
    margin-bottom: 10px;
  }

  .dialogfoot {
    margin-top: 10px;
  }

  .dialogbar button,
  .dialogfoot button {
    background: none;
    color: white;
    border: 1px solid #888;
    padding: 0.45em 1em;
    border-radius: 2em;
  }

  .dialogfoot button:disabled {
    opacity: 0.35;
    cursor: default;
  }

  dialog img {
    height: min(70dvh, 900px);
    object-fit: contain;
  }
}

/* Bloqueo de scroll cuando se abre el modal de fotos */
body:has(#bwe-lifestyle-scope dialog[open]) {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  #bwe-lifestyle-scope .photo img {
    transition: none;
  }
}

@media (max-width: 700px) {
  #bwe-lifestyle-scope {
    .wrap {
      width: 91.5%;
    }

    .title-row {
      display: block;
      padding: 2rem 0 1.25rem;
    }

    .title-row h1 {
      font-size: clamp(2.75rem, 10.8vw, 4.6rem);
    }

    .title-row p {
      max-width: 28em;
      margin-top: 1rem;
      padding: 0;
      font-size: 1rem;
    }

    .hero {
      grid-template-columns: 1fr 1fr;
      gap: 1rem 0.5rem;
    }

    .hero figure:first-child {
      grid-column: 1 / -1;
    }

    .hero figure:first-child .photo {
      height: 91vw;
      max-height: 550px;
    }

    .hero .photo {
      height: 54vw;
      min-height: 0;
    }

    .hero figure:first-child img {
      object-position: 50% 51%;
    }

    figcaption {
      display: block;
      font-size: 0.8rem;
    }

    .hero figcaption span + span,
    .grid figcaption span + span {
      display: none;
    }

    .feature-head,
    .archive-head {
      display: block;
    }

    .feature-head p,
    .archive-head p {
      margin-top: 1rem;
    }

    .spread {
      padding: 0;
      gap: 0.8rem;
      grid-template-columns: 1.1fr 1fr;
    }

    .spread figure:nth-child(2) {
      padding-top: 25%;
    }

    .archive h2 {
      font-size: clamp(2rem, 7.4vw, 3.1rem);
    }

    .grid {
      grid-template-columns: 1fr 1fr;
      gap: 1.3rem 10px;
    }

    .controls {
      gap: 7px;
    }

    .count {
      font-size: 0.8rem;
    }

    .controls label {
      display: none;
    }

    .controls select {
      max-width: 64%;
    }

    .point-row,
    .service-grid,
    .process-grid,
    .metric-head,
    .metric-grid {
      grid-template-columns: 1fr;
    }

    .star {
      display: none;
    }

    .point-row {
      gap: 1.5rem;
    }

    .service-grid {
      margin-top: 1.5rem;
    }

    .service-art img {
      aspect-ratio: 3 / 2;
      object-position: center 40%;
    }

    .lineart {
      width: 145px;
    }

    .process-grid,
    .metric-head {
      gap: 2rem;
    }

    .metric-grid article + article {
      border-left: 0;
      border-top: 1px solid #bbb;
      padding-left: 0;
    }

    .metric-grid article {
      padding: 1.3rem 0;
    }

    .metric-grid h3 {
      margin: 0.6rem 0;
    }

    .band h2 {
      font-size: clamp(1.65rem, 6.1vw, 3rem);
    }

    .point h2 {
      font-size: clamp(2.3rem, 8.4vw, 4rem);
    }

    .services summary {
      gap: 0.8rem;
    }

    .services details div {
      margin-left: 1.8rem;
    }
  }
}