/* Halfstep Core block styles. Uses theme presets when present, sensible fallbacks otherwise. */

/* Case studies: mosaic. Wide screens: first card spans 2 columns × 2 rows, the next two stack beside it. */
.hs-case-grid{display:grid;gap:var(--wp--preset--spacing--50,2rem) var(--wp--preset--spacing--40,1.25rem);grid-template-columns:1fr;margin:0;padding:0;list-style:none}
@media (min-width:640px){.hs-case-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.hs-case-grid{grid-template-columns:repeat(3,1fr)}.hs-case-grid>li:first-child{grid-column:span 2;grid-row:span 2}.hs-case-grid>li:first-child .hs-case-card__media{aspect-ratio:auto;flex:1;min-height:0}.hs-case-grid>li:first-child .hs-case-card__title{font-size:clamp(1.6rem,2.4vw,2.25rem)}}
.hs-case-card{position:relative;display:flex;flex-direction:column}
.hs-case-card__media{margin:0;aspect-ratio:16/10;overflow:hidden;border-radius:6px;background:var(--wp--preset--color--surface,#f1f1ee)}
.hs-case-grid .hs-case-card__media img{display:block;width:100%;height:100%;object-fit:cover}
.hs-case-card__body{padding-top:1rem}
.hs-case-card__client{margin:0;font-size:.9375rem;font-weight:600;color:var(--wp--preset--color--muted,#55555f)}
.hs-case-card__title{margin:.3rem 0 0;font-size:1.3rem;font-weight:650;line-height:1.15;letter-spacing:-.02em}
.hs-case-card__title a{color:inherit;text-decoration:none}
.hs-case-card__title a::after{content:"";position:absolute;inset:0}
.hs-case-card__title a:focus-visible{outline:none}
.hs-case-card:focus-within{outline:3px solid var(--wp--preset--color--ink,#15151a);outline-offset:6px;border-radius:6px}
.hs-case-card:hover .hs-case-card__title a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.15em}
.hs-case-card__metric{display:flex;align-items:baseline;flex-wrap:wrap;gap:.35rem .6rem;margin:.75rem 0 0;font-size:.9375rem;color:var(--wp--preset--color--muted,#55555f)}
/* The result number carries the accent: a marker stroke under the figure. */
.hs-case-card__metric strong,.hs-metrics dd{color:var(--wp--preset--color--ink,#15151a);background:linear-gradient(transparent 72%,var(--wp--preset--color--accent,#ff5b1f) 72%,var(--wp--preset--color--accent,#ff5b1f) 94%,transparent 94%);padding:0 .08em}
.hs-case-card__metric strong{font-size:1.6rem;font-weight:700;line-height:1.1;letter-spacing:-.02em}

/* Case study key metrics. */
.hs-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:var(--wp--preset--spacing--40,1.25rem);margin:0;padding-top:var(--wp--preset--spacing--40,1.25rem);border-top:1px solid var(--wp--preset--color--line,#e2e2dc)}
.hs-metrics__item{display:flex;flex-direction:column-reverse;align-items:flex-start}
.hs-metrics dd{margin:0;font-size:clamp(2.4rem,4.5vw,3.5rem);font-weight:700;line-height:1.05;letter-spacing:-.03em}
.hs-metrics dt{margin-top:.5rem;font-size:.9375rem;color:var(--wp--preset--color--muted,#55555f)}

/* Case and member detail lists. */
.hs-details{margin:0}
.hs-details__row{padding:.9rem 0;border-bottom:1px solid var(--wp--preset--color--line,#e2e2dc)}
.hs-details__row:first-child{border-top:1px solid var(--wp--preset--color--line,#e2e2dc)}
.hs-details dt{font-size:.875rem;font-weight:600;color:var(--wp--preset--color--muted,#55555f)}
.hs-details dd{margin:.25rem 0 0}

/* Team. */
.hs-team-grid{display:grid;gap:var(--wp--preset--spacing--50,2rem) var(--wp--preset--spacing--40,1.25rem);grid-template-columns:repeat(2,1fr);margin:0;padding:0;list-style:none}
@media (min-width:1000px){.hs-team-grid{grid-template-columns:repeat(3,1fr)}}
.hs-team-card{position:relative}
.hs-team-card__photo{margin:0 0 .9rem;aspect-ratio:1;overflow:hidden;border-radius:6px;background:var(--wp--preset--color--surface,#f1f1ee)}
.hs-team-grid .hs-team-card__photo img{display:block;width:100%;height:100%;object-fit:cover}
.hs-team-card__name{margin:0;padding-right:2.75rem;font-size:1.2rem;font-weight:650;letter-spacing:-.015em}
.hs-team-card__name a{color:inherit;text-decoration:none}
.hs-team-card__name a:hover,.hs-team-card__name a:focus-visible{text-decoration:underline}
.hs-team-card__role{margin:.2rem 0 0;padding-right:2.75rem;font-size:.9375rem;color:var(--wp--preset--color--muted,#55555f)}
.hs-team-card__linkedin{position:absolute;right:0;bottom:.15rem;display:inline-grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;color:var(--wp--preset--color--ink,#15151a);background:var(--wp--preset--color--surface,#f1f1ee)}
.hs-team-card__linkedin:hover,.hs-team-card__linkedin:focus-visible{background:var(--wp--preset--color--accent,#ff5b1f)}
.hs-member__role{margin:0;font-weight:600;color:var(--wp--preset--color--muted,#55555f)}
.hs-member__linkedin{display:inline-flex;align-items:center;gap:.5rem}

/* Brief and contact forms. */
.hs-form__grid{display:grid;gap:1.25rem}
@media (min-width:600px){.hs-form__grid{grid-template-columns:1fr 1fr}.hs-form__field--wide,.hs-form__actions{grid-column:1/-1}}
.hs-form__field{display:flex;flex-direction:column;gap:.4rem;margin:0;min-width:0}
.hs-form__field label{font-size:.9375rem;font-weight:600}
.hs-form__req{color:var(--wp--preset--color--muted,#55555f)}
.hs-form input,.hs-form select,.hs-form textarea{box-sizing:border-box;font:inherit;width:100%;padding:.85rem 1rem;border:1px solid #c9c9c2;border-radius:8px;background:#fff;color:inherit}
.hs-form input:focus-visible,.hs-form select:focus-visible,.hs-form textarea:focus-visible{outline:3px solid var(--wp--preset--color--ink,#15151a);outline-offset:1px}
.hs-form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin:0}
.hs-form__submit{cursor:pointer;border:0}
.hs-form__hint{font-size:.875rem;color:var(--wp--preset--color--muted,#55555f)}
.hs-form__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hs-form__notice{padding:1rem 1.25rem;border-radius:8px;margin:0 0 1.5rem;background:var(--wp--preset--color--surface,#f1f1ee)}
.hs-form__notice--error{background:#ffe4dc}
.hs-editor-empty{padding:1rem;border:1px dashed currentColor;opacity:.7}
.hs-team-grid .hs-team-card__photo{margin:0 0 .9rem}.hs-case-grid .hs-case-card__media{margin:0}
/* Two-column widths: the lead case spans the row; a lone last card spans too, photo beside its text. */
@media (min-width:640px) and (max-width:999px){.hs-case-grid>li:first-child{grid-column:1/-1}.hs-case-grid>li:first-child .hs-case-card__title{font-size:1.75rem}.hs-case-grid>li:last-child:nth-child(even){grid-column:1/-1;flex-direction:row;align-items:center;gap:var(--wp--preset--spacing--40,1.25rem)}.hs-case-grid>li:last-child:nth-child(even) .hs-case-card__media{flex:0 0 calc((100% - var(--wp--preset--spacing--40,1.25rem))/2)}.hs-case-grid>li:last-child:nth-child(even) .hs-case-card__body{flex:1;padding-top:0}}
