/* Inner pages: the services, the work, the workshop, the one-off pieces. Builds on home.css. */

/* Hero: the answer first, then a photo */
.phero { position: relative; padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 6rem)) 0 clamp(3rem, 7vw, 6rem); background: radial-gradient(60% 55% at 90% 15%, rgba(255, 90, 31, .13), transparent 70%), var(--charbon); }
.phero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.phero__txt { display: grid; gap: 1.4rem; justify-items: start; }
.phero__txt .h2 { font-size: clamp(2.8rem, 6.6vw, 6.5rem); }
.phero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.phero__pic { position: relative; display: grid; gap: .8rem; }
.phero__pic .frame { height: auto; width: 100%; max-width: none; aspect-ratio: var(--ar, 4 / 5); }
.phero__pic .frame__z { opacity: 1; }
.phero__pic figcaption { font-size: .8rem; color: var(--cendre); }
.brief { display: grid; width: 100%; max-width: 38rem; border-top: 1px solid var(--line); }
.brief div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.brief dt { padding-top: .2rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--chene); }
.brief dd { font-size: .94rem; line-height: 1.45; color: #DDD2C4; }
@media (min-width: 1000px) {
  .phero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .phero__pic .frame { max-height: calc(100vh - var(--header-h) - 6rem); width: auto; justify-self: end; }
}

/* What I do */
.offer { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer > li { display: grid; align-content: start; gap: .7rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); background: var(--charbon); }
.offer__no { font-family: var(--ff-d); font-style: italic; font-weight: 340; font-size: 1.1rem; color: var(--braise); }
.offer h3 { font-family: var(--ff-d); font-weight: 360; font-size: clamp(1.45rem, 2vw, 1.95rem); letter-spacing: -.02em; line-height: 1.05; }
.offer p { font-size: .97rem; line-height: 1.55; color: #D5CABC; }
.offer .link { justify-self: start; margin-top: .2rem; }
@media (min-width: 700px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .offer { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Jobs: the story on the left, the photos on the right */
.jobs { background: var(--brule); }
.job { display: grid; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.job:first-child { padding-top: 0; border-top: 0; }
.job:last-child { padding-bottom: 0; }
.job__txt { display: grid; gap: 1rem; align-content: start; }
.job__txt h3 { font-family: var(--ff-d); font-weight: 360; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.025em; line-height: 1.02; }
.job__txt p { max-width: 34rem; line-height: 1.6; color: #DDD2C4; }
.job__txt .chap__tags { margin-top: .2rem; }
.job__txt .link { justify-self: start; }
.job__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; align-content: start; }
.job__pics .frame { height: auto; width: 100%; max-width: none; aspect-ratio: var(--ar, .75); }
.job__pics .frame__z { opacity: 1; }
.job__pics .frame--wide { grid-column: span 2; }
.job__pics--one .frame { grid-column: 1 / -1; }
.job__step { position: absolute; left: .6rem; top: .6rem; padding: .25rem .55rem; border-radius: 3px; background: rgba(11, 9, 8, .72); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--os); }
.job__step--hot { background: var(--braise); color: var(--charbon); }
@media (min-width: 1000px) {
  .job { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .job__txt { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .job__pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job__pics--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* How it is done, step by step */
.howto { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); counter-reset: how; }
.howto > li { display: grid; gap: .75rem; align-content: start; counter-increment: how; }
.howto .frame { height: auto; width: 100%; max-width: none; aspect-ratio: 4 / 5; }
.howto .frame__z { opacity: 1; }
.howto h3 { font-family: var(--ff-d); font-weight: 380; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.howto h3::before { content: counter(how, decimal-leading-zero); display: block; margin-bottom: .3rem; font-style: italic; font-weight: 340; font-size: 1.05rem; color: var(--braise); }
.howto p { font-size: .97rem; line-height: 1.55; color: #D5CABC; }
@media (min-width: 700px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .howto { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Explainers: a short read and a list of materials or rules */
.explain__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.explain__txt { display: grid; gap: 1.1rem; align-content: start; }
.explain__txt p:not(.label) { max-width: 40rem; line-height: 1.65; color: #DDD2C4; }
.explain__txt .h2 { font-size: clamp(2.2rem, 4.4vw, 4.25rem); }
.kit { display: grid; border-top: 1px solid var(--line); align-content: start; }
.kit > div { display: grid; gap: .35rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.kit dt { font-family: var(--ff-d); font-weight: 380; font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.15; }
.kit dd { font-size: .97rem; line-height: 1.55; color: #D5CABC; }
.kit .draw { width: 100%; max-width: 15rem; }
@media (min-width: 1000px) {
  .explain__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .kit > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; }
}

/* The other pages */
.more { background: var(--brule); }
.more__grid { display: grid; gap: .5rem; }
@media (min-width: 700px) { .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .more__grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .more__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .more__grid > li, .more__grid > li:last-child:nth-child(odd) { grid-column: span 2; }
  .more__grid:not(:has(> li:nth-child(6))) > li:nth-child(-n+2) { grid-column: span 3; }
}
.mcard { position: relative; isolation: isolate; display: grid; align-content: end; gap: .35rem; min-height: 19rem; padding: 1.4rem; overflow: hidden; color: var(--os); }
.mcard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.4s var(--ease); }
.mcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11, 9, 8, .05) 30%, rgba(11, 9, 8, .9)); }
.mcard:hover img, .mcard:focus-visible img { transform: scale(1.04); }
.mcard b { font-family: var(--ff-d); font-weight: 360; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.05; }
.mcard span { font-size: .9rem; line-height: 1.4; color: #DDD2C4; }
.mcard svg { position: absolute; right: 1.2rem; top: 1.2rem; width: 2.5rem; height: 2.5rem; padding: .75rem; border-radius: 50%; background: rgba(11, 9, 8, .6); color: var(--os); transition: background-color .3s, color .3s; }
.mcard:hover svg { background: var(--braise); color: var(--charbon); }

/* Closing call */
.pcta { background: radial-gradient(70% 80% at 100% 100%, rgba(255, 90, 31, .18), transparent 70%), var(--charbon); }
.pcta__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: end; }
.pcta__txt { display: grid; gap: 1.3rem; justify-items: start; }
.pcta__ways { display: grid; gap: 1.5rem; }
.pcta__ways .btn { justify-self: start; }
@media (min-width: 1000px) { .pcta__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* The workshop page */
.story__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.story__txt { display: grid; gap: 1.3rem; align-content: start; }
.story__txt p:not(.label):not(.lede) { max-width: 40rem; line-height: 1.65; color: #DDD2C4; }
.story__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; align-content: start; }
.story__pics .frame { height: auto; width: 100%; max-width: none; aspect-ratio: .75; }
.story__pics .frame__z { opacity: 1; }
.story__pics .frame:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
@media (min-width: 1000px) {
  .story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .story__pics { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* Work index: one card per job, linking into the strip */
.jobdex { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: jd; }
.jobdex li { counter-increment: jd; }
.jobdex a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1.1rem 1.25rem; background: var(--charbon); transition: background-color .3s, color .3s; }
.jobdex a::before { content: counter(jd, decimal-leading-zero); font-family: var(--ff-d); font-style: italic; color: var(--braise); }
.jobdex a:hover { background: var(--brule); color: var(--ambre); }
.jobdex b { font-family: var(--ff-d); font-weight: 380; font-size: 1.3rem; letter-spacing: -.015em; }
.jobdex span { font-size: .8rem; letter-spacing: .08em; color: var(--cendre); text-align: right; }
@media (min-width: 900px) { .jobdex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.phero .jobdex { grid-template-columns: minmax(0, 1fr); }
.phero .jobdex a { padding-block: .8rem; }
.chap__card .link + .link { margin-top: .5rem; }
.phero--solo { padding-bottom: 0; }
.phero--solo .phero__grid { grid-template-columns: minmax(0, 1fr); }
.phero--solo .phero__txt { max-width: 56rem; }
