/* Penman home page */

/* Hero */
.hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 540px; max-height: 1180px; overflow: hidden; background: #1d2731; color: #fff; isolation: isolate; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 78%; transform-origin: 50% 70%; transition: transform 1.7s var(--ease-out); }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 9, 13, .66) 0%, rgba(7, 9, 13, .46) 22%, rgba(7, 9, 13, .14) 40%, rgba(7, 9, 13, 0) 52%); }
.hero__in { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(26px, 4.6svh, 52px); }
.hero__title { color: #fff; font-size: min(var(--fs-hero), 8.4svh); max-width: 16em; text-wrap: balance; text-shadow: 0 1px 24px rgba(0, 0, 0, .18); }
.hero__row { display: flex; align-items: center; gap: 24px 48px; margin-top: clamp(18px, 2.8svh, 30px); padding-top: clamp(18px, 2.8svh, 28px); border-top: 1px solid rgba(255, 255, 255, .34); }
.hero__lead { flex: 1 1 0; max-width: 30em; font-size: 1.125rem; line-height: 1.5; color: rgba(255, 255, 255, .94); }
.hero__actions { display: flex; gap: 12px; flex: none; }
.hero__actions .btn { min-height: 54px; }
.hero__proof { flex: none; margin-left: auto; text-align: right; font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hero__proof a { transition: color .2s; }
.hero__proof a:hover { color: #fff; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.hero__proof .num { color: #fff; font-weight: 600; }

/* hero settles once as the loader lifts */
.hero__title, .hero__row { transition: opacity .9s var(--ease), transform 1.2s var(--ease-out); }
.is-loading:not(.is-lifting) .hero__media img { transform: scale(1.07); }
.is-loading:not(.is-lifting) .hero__title { opacity: 0; transform: translateY(28px); }
.is-loading:not(.is-lifting) .hero__row { opacity: 0; transform: translateY(18px); }
.is-lifting .hero__title { transition-delay: .38s; }
.is-lifting .hero__row { transition-delay: .52s; }

@media (max-width: 1199px) and (min-width: 760px) {
  .hero__row { flex-wrap: wrap; }
  .hero__proof { margin-left: 0; text-align: left; flex-basis: 100%; }
}

/* Services index */
.services { padding-block: var(--section); }
.services__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 4.6vw, 72px); }
.services__head h2 { grid-column: 1 / span 7; max-width: 13em; }
.services__intro { grid-column: 9 / span 4; color: var(--muted); }
.services__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
.services__list { grid-column: 1 / span 7; border-top: 1px solid var(--line); }
.srow { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.srow__thumb { display: none; }
.srow__name { grid-column: 1; font-stretch: var(--wide); font-weight: 600; font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem); line-height: 1.08; letter-spacing: -.016em; transition: color .3s var(--ease), transform .5s var(--ease); }
.srow__line { grid-column: 1; margin-top: 8px; color: var(--muted); max-width: 38em; transition: transform .5s var(--ease); }
.srow::after { content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 28px; height: 18px; background: var(--blue-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'%3E%3Cpath d='M0 9h26M18 1l8 8-8 8' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'%3E%3Cpath d='M0 9h26M18 1l8 8-8 8' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; opacity: 0; transform: translateX(-12px); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.srow:hover .srow__name, .srow:focus-visible .srow__name, .srow.is-active .srow__name { color: var(--blue-text); }
.srow:hover .srow__name, .srow:hover .srow__line { transform: translateX(10px); }
.srow:hover::after, .srow.is-active::after { opacity: 1; transform: none; }
.services__photo { grid-column: 8 / span 5; position: relative; overflow: hidden; background: var(--mist); min-height: 420px; max-height: calc(100svh - 170px); }
.services__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .55s var(--ease), transform 1.1s var(--ease); }
.services__photo img.is-on { opacity: 1; transform: none; }
.services__all { margin-top: 32px; }

/* The camera */
.camera { padding-block: clamp(72px, 7vw, 112px) clamp(72px, 7vw, 112px); overflow: hidden; }
.camera__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.camera__copy { display: contents; }
.camera__copy h2 { grid-column: 1 / span 7; grid-row: 1 / span 2; align-self: end; color: #fff; max-width: 12em; text-wrap: balance; }
.camera__text { grid-column: 9 / span 4; color: #c3cad0; font-size: 1.0625rem; line-height: 1.6; }
.camera__text + .camera__text { margin-top: 16px; }
.camera__kit { grid-column: 9 / span 4; }
.camera__kit img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.camera__kit figcaption { margin-top: 12px; font-size: .875rem; color: #9aa3ab; }

.run { margin-top: clamp(48px, 4.4vw, 72px); }
.run__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.run__hint { color: #aab2b9; font-size: .9375rem; }
.run__nav { display: flex; gap: 8px; }
.run__btn { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(230, 233, 235, .32); color: #fff; border-radius: 2px; transition: border-color .2s, background-color .2s, opacity .2s; }
.run__btn svg { width: 18px; height: 12px; }
.run__btn:hover:not(:disabled) { border-color: #fff; background: rgba(255, 255, 255, .06); }
.run__btn:disabled { opacity: .3; cursor: default; }
.run__track { --item: clamp(320px, 40vw, 580px); --gap-run: 40px; display: flex; gap: var(--gap-run); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-inline: max(var(--pad), calc((100% - var(--max)) / 2)); scroll-padding-inline: max(var(--pad), calc((100% - var(--max)) / 2)); padding-bottom: 6px; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.run__track::-webkit-scrollbar { display: none; }
.run__track.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.run__track::after { content: ""; flex: 0 0 1px; }
.run__item { position: relative; flex: 0 0 var(--item); scroll-snap-align: start; }
.run__item--kit { flex-basis: calc(var(--item) / 2); }
.run__item--kit img { aspect-ratio: 3 / 4; height: calc(var(--item) * .75); width: auto; max-width: none; }
.run__item--kit::before { left: 0; }
.run__item--kit::after { background: rgba(230, 233, 235, .6); }
.run__m--kit { font-size: 1.25rem !important; line-height: 2; letter-spacing: 0; }
.run__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; pointer-events: none; }
.run__item::before { content: ""; position: absolute; left: 0; top: calc(var(--item) * .75 + 22px); width: calc(100% + var(--gap-run)); height: 9px; border-top: 1px solid rgba(230, 233, 235, .42); background: repeating-linear-gradient(90deg, rgba(230, 233, 235, .32) 0 1px, transparent 1px 12px); background-size: 100% 6px; background-repeat: no-repeat; }
.run__item:last-child::before { width: 100%; }
.run__item::after { content: ""; position: absolute; left: 0; top: calc(var(--item) * .75 + 22px); width: 2px; height: 22px; background: var(--drop); }
.run__m { margin-top: 56px; color: #fff; font-stretch: var(--wide); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.1vw, 2.5rem); line-height: 1; letter-spacing: -.01em; }
.run__cap { margin-top: 12px; color: #b9c0c6; font-size: .9375rem; line-height: 1.5; max-width: 26em; }
.run__link { color: #8fd0f0; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; white-space: nowrap; }
.run__link:hover { color: #fff; }

/* Featured work */
.work { padding-block: var(--section); }
.work__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 4vw, 60px); }
.feat__media { display: block; overflow: hidden; background: var(--mist); }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feat:hover .feat__media img { transform: scale(1.025); }
.feat__place { margin-top: 18px; color: var(--blue-text); font-weight: 560; font-size: .9375rem; }
.feat__title { margin-top: 8px; font-size: var(--fs-h3); max-width: 22em; }
.feat__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.feat__title a:hover { background-size: 100% 1px; }
.feat__text { margin-top: 12px; color: var(--muted); max-width: 34em; }
.feat--lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-bottom: clamp(56px, 6vw, 96px); margin-bottom: clamp(56px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.feat--lead .feat__media { grid-column: 1 / span 7; aspect-ratio: 5 / 4; }
.feat--lead .feat__body { grid-column: 9 / span 4; padding-bottom: 6px; }
.feat--lead .feat__place { margin-top: 0; }
.feat--lead .feat__title { font-size: clamp(1.75rem, 1.15rem + 1.5vw, 2.625rem); line-height: 1.1; }
.feat--lead .feat__text { margin-bottom: 26px; }
.feat-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.feat-pair .feat:first-child { grid-column: 1 / span 6; }
.feat-pair .feat:last-child { grid-column: 7 / span 6; }
.feat-pair .feat__media { aspect-ratio: 5 / 4; }
.feat-pair .feat:first-child .feat__media img { object-position: 50% 55%; }

/* Reviews */
.reviews { background: var(--mist); padding-block: var(--section); }
.reviews__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-bottom: clamp(48px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.reviews__main { grid-column: 1 / span 8; }
.reviews__main blockquote p { font-stretch: var(--wide); font-weight: 540; font-size: clamp(1.75rem, 1rem + 2.1vw, 3.125rem); line-height: 1.14; letter-spacing: -.016em; color: var(--ink); text-wrap: pretty; }
.reviews__main blockquote p::before { content: "\201C"; }
.reviews__main blockquote p::after { content: "\201D"; }
.reviews__main figcaption { margin-top: 26px; color: var(--muted); font-weight: 500; }
.reviews__figures { grid-column: 10 / span 3; display: grid; gap: 30px; margin: 0; }
.figure { border-top: 1px solid var(--line); padding-top: 18px; }
.figure__num { font-stretch: var(--wide); font-weight: 600; font-size: clamp(2.5rem, 1.6rem + 2.3vw, 4rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.figure__num span { font-size: .38em; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.figure dd { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; }
.reviews__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); padding-top: clamp(40px, 4vw, 56px); }
.quote blockquote p { font-size: 1.125rem; line-height: 1.55; color: var(--text); }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.reviews__all { margin-top: clamp(36px, 4vw, 56px); }

/* About */
.about { padding-block: var(--section); }
.about__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.about__media { grid-column: 1 / span 5; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about__body { grid-column: 7 / span 6; }
.about__body h2 { margin-bottom: 26px; }
.about__body .lead { max-width: 30em; }
.about__text { margin-top: 18px; color: var(--muted); max-width: 34em; }
.about__quote p { margin: 22px 0 34px; font-stretch: var(--wide); font-weight: 560; font-size: clamp(1.4rem, 1.05rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -.012em; color: var(--ink); max-width: 18em; }

/* Areas */
.areas { background: var(--mist); padding-block: var(--section); }
.areas__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.areas__head { grid-column: 1 / span 4; }
.areas__head h2 { margin-bottom: 20px; }
.areas__head p { color: var(--muted); margin-bottom: 24px; max-width: 24em; }
.areas__list { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--line); }
.areas__list li { padding: 15px 0 16px; border-bottom: 1px solid var(--line); font-stretch: var(--wide); font-weight: 560; font-size: clamp(1.125rem, .95rem + .55vw, 1.5rem); letter-spacing: -.008em; line-height: 1.2; }
.areas__list li:first-child { color: var(--blue-text); }

/* Emergency band */
.sos { padding-block: clamp(64px, 7vw, 108px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sos__in { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.sos h2 { color: #fff; }
.sos__copy p { margin-top: 14px; color: #c3cad0; font-size: var(--fs-lead); }
.sos__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sos__call { min-height: 60px; padding: 0 1.8em; font-size: 1.125rem; }
.sos .btn--line { min-height: 60px; }

/* Tablet */
@media (max-width: 1023px) {
  .services__head h2 { grid-column: 1 / -1; }
  .services__intro { grid-column: 1 / span 9; margin-top: 18px; }
  .services__list { grid-column: 1 / span 7; }
  .camera__copy h2 { grid-column: 1 / -1; grid-row: auto; margin-bottom: 24px; }
  .camera__text { grid-column: 1 / span 9; }
  .feat--lead .feat__media { grid-column: 1 / -1; }
  .feat--lead .feat__body { grid-column: 1 / span 9; margin-top: 24px; }
  .reviews__main { grid-column: 1 / -1; }
  .reviews__figures { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .areas__head { grid-column: 1 / -1; margin-bottom: 32px; }
  .areas__list { grid-column: 1 / -1; }
}

/* Phone: its own edit */
@media (max-width: 759px) {
  .hero { height: calc(100svh - var(--bar-h)); min-height: 520px; max-height: none; }
  .hero__media img { object-position: 50% 22%; transform-origin: 50% 30%; }
  .hero__scrim { background: linear-gradient(to bottom, rgba(8, 20, 40, .68) 0%, rgba(8, 20, 40, .58) 34%, rgba(8, 20, 40, .22) 47%, rgba(8, 20, 40, 0) 57%), linear-gradient(to top, rgba(7, 9, 13, .6) 0%, rgba(7, 9, 13, .2) 18%, rgba(7, 9, 13, 0) 30%); }
  .hero__in { top: 0; display: flex; flex-direction: column; justify-content: space-between; padding-top: 26px; padding-bottom: 20px; }
  .hero__title { font-size: clamp(1.875rem, 8.2vw, 2.25rem); font-stretch: 106%; line-height: 1.06; max-width: none; text-wrap: wrap; text-shadow: 0 1px 18px rgba(10, 30, 60, .25); }
  .hero__row { display: contents; }
  .hero__lead { order: 0; flex: none; margin-top: 14px; font-size: 1.03125rem; max-width: 21em; text-shadow: 0 1px 12px rgba(10, 30, 60, .35); }
  .hero__in { justify-content: flex-start; }
  .hero__actions { margin-top: auto; }
  .hero__actions .btn--blue { flex: 1; min-height: 56px; font-size: 1.0625rem; }
  .hero__quote, .hero__proof { display: none; }

  .services__intro { grid-column: 1 / -1; font-size: 1rem; }
  .services__list { grid-column: 1 / -1; }
  .services__photo { display: none; }
  .srow { grid-template-columns: 76px 1fr; column-gap: 16px; align-items: center; padding: 12px 0; }
  .srow__thumb { display: block; grid-column: 1; grid-row: 1; width: 76px; height: 76px; object-fit: cover; }
  .srow__name { grid-column: 2; grid-row: 1; font-size: 1.375rem; }
  .srow__line { display: none; }
  .srow::after { display: none; }
  .srow:hover .srow__name, .srow.is-active .srow__name { transform: none; color: inherit; }

  .camera__copy h2 { grid-column: 1 / -1; margin-bottom: 18px; }
  .camera__text { grid-column: 1 / -1; }
  .camera__text { font-size: 1.0625rem; }
  .camera__kit { display: none; }
  .run { margin-top: 40px; }
  .run__bar { display: none; }
  .run__track { --item: 80vw; --gap-run: 20px; }
  .run__item::before, .run__item::after { top: calc(var(--item) * .75 + 16px); }
  .run__m { margin-top: 46px; font-size: 1.875rem; }
  .run__cap { font-size: .9375rem; }

  .work__head { margin-bottom: 28px; }
  .feat--lead { padding-bottom: 40px; margin-bottom: 40px; }
  .feat--lead .feat__body { grid-column: 1 / -1; margin-top: 18px; }
  .feat--lead .feat__text { display: none; }
  .feat--lead .feat__media { aspect-ratio: 4 / 3; }
  .feat-pair { grid-template-columns: 1fr; row-gap: 40px; }
  .feat-pair .feat:first-child, .feat-pair .feat:last-child { grid-column: 1; }
  .feat-pair .feat__media { aspect-ratio: 4 / 3; }

  .reviews__main blockquote p { font-size: 1.5rem; line-height: 1.22; }
  .reviews__main blockquote p::before { margin-left: 0; }
  .reviews__figures { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .reviews__top { padding-bottom: 0; border-bottom: 0; }
  .reviews__more { display: none; }
  .reviews__all { margin-top: 28px; }

  .about__media { grid-column: 1 / -1; aspect-ratio: 4 / 3; margin-bottom: 28px; }
  .about__body { grid-column: 1 / -1; }
  .about__body .lead { font-size: 1.0625rem; }
  .about__text { display: none; }
  .about__quote p { margin: 18px 0 24px; font-size: 1.375rem; }

  .areas__head p { margin-bottom: 18px; }
  .areas__list { display: flex; flex-wrap: wrap; gap: 4px 18px; border-top: 0; }
  .areas__list li { border: 0; padding: 0; font-size: 1.1875rem; }
  .areas__head { margin-bottom: 22px; }
  .areas__in { display: flex; flex-direction: column; }
  .areas__list { order: 1; }
  .areas__head a { order: 2; }

  .sos__actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .sos__call, .sos .btn--line { width: 100%; }
}

/* short laptop screens: keep the type on the dark lower part of the van and the road */
@media (max-height: 820px) and (min-width: 760px) {
  .hero__media img { object-position: 50% max(-67.7vw, 100%); }
  .hero__title { font-size: min(var(--fs-hero), 7svh); }
  .hero__row { margin-top: 14px; padding-top: 14px; }
  .hero__actions .btn { min-height: 48px; }
  .hero__in { padding-bottom: 24px; }
  .hero__scrim { background: linear-gradient(to top, rgba(7, 9, 13, .7) 0%, rgba(7, 9, 13, .5) 26%, rgba(7, 9, 13, .2) 46%, rgba(7, 9, 13, 0) 60%); }
}

/* short laptop screens: a job photo and its caption fit on one screen */
@media (min-width: 760px) {
  .feat--lead .feat__media { max-height: calc(100svh - 160px); }
  .feat-pair .feat__media { max-height: calc(100svh - 270px); }
}
