.g-hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-inline: var(--wp--custom--gutter); }
.g-hero.is-surface-dark { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.g-hero.is-surface-light { background: var(--wp--preset--color--lavender); color: var(--wp--preset--color--ink); }

.g-hero__row { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.g-hero.is-media-on .g-hero__row { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
	.g-hero.is-media-on .g-hero__row { grid-template-columns: minmax(0, 732fr) minmax(0, 500fr); gap: 3rem; justify-content: space-between; }
}

.g-hero.is-media-off .g-hero__title { max-width: 18ch; }
.g-hero__title { margin: 0; font-size: var(--wp--preset--font-size--display); line-height: 1.07; letter-spacing: -0.01em; }
.g-hero__text { margin: 1.75rem 0 0; font-size: var(--wp--preset--font-size--lead); line-height: 1.42; max-width: 33.75rem; }
.g-hero.is-surface-dark .g-hero__text { color: #e8e1f2; }
.g-hero .g-actions { margin-top: 2rem; }

.g-hero__media { position: relative; width: 100%; max-width: 500px; aspect-ratio: 500 / 600; justify-self: end; }
.g-hero__frame { position: absolute; left: 11.2%; top: 10%; width: 88%; height: 90%; border-radius: var(--wp--custom--radius--lg); background: linear-gradient(180deg, var(--wp--preset--color--violet), var(--wp--preset--color--magenta) 55%, var(--wp--preset--color--coral)); }
.g-hero__image { position: absolute; left: 16%; top: 3.33%; width: 84%; height: 90%; object-fit: cover; border-radius: var(--wp--custom--radius--lg); }
.g-hero__notice { position: absolute; left: 0; bottom: 30%; display: flex; gap: .75rem; align-items: center; padding: .875rem 1.25rem; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-radius: var(--wp--custom--radius--md); box-shadow: var(--wp--preset--shadow--float); font-size: var(--wp--preset--font-size--caption); line-height: 1.3; max-width: 80%; }
.g-hero__notice strong { display: block; font-size: var(--wp--preset--font-size--ui); }
.g-hero__notice small { color: var(--wp--preset--color--muted); font-size: inherit; }
.g-hero__notice-icon { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--wp--preset--gradient--signature); }

.g-hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 3rem; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--purple-900); }
.g-hero.is-surface-light .g-hero__trust { border-top-color: var(--wp--preset--color--line); }
.g-hero__trust-label { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--wp--preset--color--lavender); }
.g-hero.is-surface-light .g-hero__trust-label { color: var(--wp--preset--color--muted); }
.g-hero__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; margin: 0; padding: 0; list-style: none; flex: 1; justify-content: space-between; }
.g-hero__logo { display: block; width: 120px; height: 44.8px; object-fit: contain; }

@media (max-width: 1023px) {
	.g-hero__media { justify-self: center; }
	.g-hero__logos { justify-content: flex-start; }
}

@media (max-width: 767px) {
	.g-hero__trust { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
	.g-hero__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; justify-items: center; }
	.g-hero__notice { bottom: 22%; max-width: 88%; }
}

/* Signature gradient surface (confirmation pages). */
.g-hero.is-surface-gradient { background: linear-gradient(90deg, var(--wp--preset--color--violet) 0%, var(--wp--preset--color--magenta) 40%, #f05a9b 68%, #ff9a4d 100%); color: var(--wp--preset--color--white); }
.g-hero.is-surface-gradient .g-hero__text { color: var(--wp--preset--color--white); }

/* Landscape photo (no frame). */
@media (min-width: 1024px) {
	.g-hero.is-shape-landscape .g-hero__row { grid-template-columns: minmax(0, 776fr) minmax(0, 440fr); gap: 4rem; }
}
.g-hero.is-shape-landscape .g-hero__media { max-width: 440px; aspect-ratio: 440 / 300; }
.g-hero.is-shape-landscape .g-hero__image { position: static; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--wp--custom--radius--lg); box-shadow: var(--wp--preset--shadow--float); }
@media (max-width: 1023px) {
	.g-hero.is-shape-landscape .g-hero__media { justify-self: stretch; max-width: none; }
}

/* Device mockup: transparent image shown whole. */
@media (min-width: 1024px) {
	.g-hero.is-shape-mockup .g-hero__row { grid-template-columns: minmax(0, 640fr) minmax(0, 600fr); gap: 3rem; }
}
.g-hero.is-shape-mockup .g-hero__media { aspect-ratio: auto; max-width: none; }
.g-hero.is-shape-mockup .g-hero__image { position: static; display: block; width: 100%; height: auto; }

/* Design match, 24 Nov review (R2 Home v4: H1 80/84, frame + card per Figma). */
@media (min-width: 1024px) {
	.g-hero.is-size-xl .g-hero__title { font-size: 4.75rem; line-height: 1.1; letter-spacing: -0.02em; }
}
.g-hero__frame { background: linear-gradient(160deg, var(--wp--preset--color--violet) 8%, var(--wp--preset--color--magenta) 42%, #f45d9e 66%, #ff914d 92%); }
.g-hero__notice { gap: 1rem; padding: 1.25rem 1.75rem 1.25rem 1.25rem; border-radius: 20px; box-shadow: 0 24px 48px rgba(28, 15, 51, .28); font-size: .9375rem; line-height: 1.4; max-width: 376px; }
.g-hero__notice strong { font-size: 1.0625rem; }
.g-hero__notice-icon { width: 52px; height: 52px; background: linear-gradient(135deg, #8c3ef9 14%, #c03496 43%, #f45d9e 64%, #ff914d 86%); }

/* Device mockup: larger, with the gradient shape behind (Services v4). */
.g-hero.is-shape-mockup .g-hero__media { position: relative; isolation: isolate; padding: 1.5rem 0 2rem; }
.g-hero.is-shape-mockup .g-hero__media::before { content: ""; position: absolute; z-index: -1; inset: 12% -2% 0 18%; border-radius: var(--wp--custom--radius--lg); background: linear-gradient(160deg, var(--wp--preset--color--violet), var(--wp--preset--color--magenta) 45%, #ff914d); opacity: .9; }
@media (min-width: 1024px) {
	.g-hero.is-shape-mockup .g-hero__row { grid-template-columns: minmax(0, 600fr) minmax(0, 640fr); }
}
.g-hero__notice-icon { display: grid; place-items: center; } .g-hero__notice-icon .g-icon { width: 24px; height: 24px; }

/* Deep purple surface (Website Design v4). */
.g-hero.is-surface-purple { background: radial-gradient(120% 90% at 100% 100%, #5b21b6 0%, #3b1580 45%, var(--wp--preset--color--ink) 100%); color: var(--wp--preset--color--white); }
.g-hero.is-surface-purple .g-hero__text { color: #f3ecff; }
.g-hero.is-surface-purple .g-hero__frame { background: linear-gradient(160deg, var(--wp--preset--color--coral), #ff914d); }
/* Floating real-work card. */
.g-hero__workcard { position: absolute; left: 0; bottom: 12%; width: min(300px, 60%); margin: 0; padding: 8px 8px 10px; border-radius: var(--wp--custom--radius--md); background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); box-shadow: 0 24px 48px rgba(28, 15, 51, .3); }
.g-hero__workcard-img { display: block; width: 100%; aspect-ratio: 290 / 175; object-fit: cover; object-position: top center; border-radius: 10px; }
.g-hero__workcard figcaption { margin-top: .5rem; padding-inline: .25rem; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--muted); }
/* Compact logos beside the button. */
.g-hero__trust.is-compact { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.5rem; padding: 0; border: 0; }
.g-hero__trust.is-compact .g-hero__logos { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 0; padding: 0; }
.g-hero__trust.is-compact .g-hero__logo { width: 72px; height: 28px; object-fit: contain; }

.g-hero.is-surface-purple .text-accent { color: var(--wp--preset--color--coral); }
.g-hero .g-hero__workcard .g-hero__workcard-img { position: static; inset: auto; width: 100%; height: auto; max-width: none; aspect-ratio: 290 / 175; border-radius: 10px; box-shadow: none; transform: none; }

/* Portrait, no frame (service pages). */
.g-hero.is-shape-plain .g-hero__image { left: 0; top: 0; width: 100%; height: 100%; box-shadow: var(--wp--preset--shadow--float); }
.g-hero.is-shape-plain .g-hero__media { max-width: 588px; aspect-ratio: 588 / 500; }
@media (min-width: 1024px) { .g-hero.is-shape-plain .g-hero__row { grid-template-columns: minmax(0, 628fr) minmax(0, 588fr); gap: 4rem; } }

/* Square photo in a gradient frame with caption (Social Media & Content). */
.g-hero.is-shape-framed .g-hero__media { max-width: 588px; aspect-ratio: auto; }
.g-hero__framed { margin: 0; padding: 1.5rem 1.5rem 1rem; border-radius: var(--wp--custom--radius--lg); background: linear-gradient(160deg, var(--wp--preset--color--violet) 0%, var(--wp--preset--color--magenta) 45%, #f45d9e 70%, #ff914d 100%); box-shadow: var(--wp--preset--shadow--float); }
.g-hero.is-shape-framed .g-hero__image { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 62%; border-radius: var(--wp--custom--radius--md); }
.g-hero__framed figcaption { margin-top: .75rem; color: var(--wp--preset--color--white); font-size: var(--wp--preset--font-size--caption); }
@media (min-width: 1024px) { .g-hero.is-shape-framed .g-hero__row { grid-template-columns: minmax(0, 628fr) minmax(0, 588fr); gap: 4rem; } }

.g-hero.is-media-off .g-hero__text { max-width: 47.5rem; }

/* Work collage (About): one wide tile over two small ones. */
.g-hero.is-shape-collage .g-hero__media { max-width: 576px; aspect-ratio: auto; }
.g-hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.g-hero__tile { overflow: hidden; border-radius: var(--wp--custom--radius--lg); background: var(--wp--preset--color--white); box-shadow: var(--wp--preset--shadow--card); aspect-ratio: 276 / 176; }
.g-hero__tile.is-main { grid-column: 1 / -1; aspect-ratio: 576 / 320; }
.g-hero.is-shape-collage .g-hero__image { position: static; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; box-shadow: none; }
@media (min-width: 1024px) { .g-hero.is-shape-collage .g-hero__row { grid-template-columns: minmax(0, 640fr) minmax(0, 576fr); gap: 4rem; } }
.g-hero.is-surface-light .text-accent { color: var(--wp--preset--color--violet); }

/* Wide screenshot (case studies): headline on top, big framed screenshot below. */
.g-hero.is-shape-wide .g-hero__row { display: block; }
.g-hero.is-shape-wide .g-hero__title { max-width: 22ch; }
.g-hero.is-shape-wide .g-hero__media { max-width: none; aspect-ratio: auto; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.g-hero__wide { padding: clamp(.75rem, .5rem + 1vw, 2rem); border-radius: var(--wp--custom--radius--lg); background: linear-gradient(90deg, var(--wp--preset--color--violet), var(--wp--preset--color--magenta) 50%, #ff914d); }
.g-hero.is-shape-wide .g-hero__image { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; border-radius: var(--wp--custom--radius--md); box-shadow: none; }
.g-hero.is-shape-wide.is-surface-dark .text-accent { color: var(--wp--preset--color--coral); }
@media (max-width: 479px) { .g-hero .g-hero__title { font-size: 2.125rem; line-height: 1.1; } }
.g-picture { display: contents; }
@media (max-width: 599px) {
	.g-hero__wide.has-mobile { width: min(100%, 320px); margin-inline: auto; padding: 1rem; }
	.g-hero__wide.has-mobile .g-hero__image { aspect-ratio: auto; height: auto; max-height: none; }
}
