/*
Theme Name: Ugoki Animation
Theme URI: https://github.com/oberonlai/shippress-themes/tree/main/themes/ugoki-animation
Author: ShipPress
Author URI: https://github.com/oberonlai/shippress-themes
Description: Ugoki Animation is a minimalist portfolio theme for independent animation studios, directors and craft-led ateliers. Inspired by editorial archives and digital atelier sites, it opens on a dark inset window with a tracked-caps statement and a film-grain photograph, a cyan strip of key-drawing frames and a mono HUD line, then runs a credit-ledger case wall and a contact-sheet pull-back. Built for the block editor with quiet Syne and Manrope typography, a cool paper ground and a single red recording dot. Sample content in English, Traditional Chinese, Japanese, French and German.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ugoki-animation
Tags: portfolio, block-patterns, full-site-editing, blog, custom-colors, editor-style, translation-ready, wide-blocks, block-styles
*/

:root {
	--ug-paper: var(--wp--preset--color--paper);
	--ug-window: var(--wp--preset--color--window);
	--ug-ink: var(--wp--preset--color--ink);
	--ug-wtext: var(--wp--preset--color--window-text);
	--ug-wmuted: var(--wp--preset--color--window-muted);
	--ug-muted: var(--wp--preset--color--muted);
	--ug-cyan: var(--wp--preset--color--light-table);
	--ug-rule: var(--wp--preset--color--rule);
	--ug-signal: var(--wp--preset--color--signal);
	--ug-display: var(--wp--preset--font-family--display);
	--ug-pad: 48px;
	--ug-sec: 160px;
	--ug-gap: 44px;
	--sp-dist: 16px;
	--sp-dur: .4s;
	--sp-ease: cubic-bezier(.25, .46, .45, .94);
	/* form contract tokens */
	--sp-form-accent: var(--wp--preset--color--window);
	--sp-form-on-accent: var(--wp--preset--color--paper);
	--sp-form-radius: 4px;
	--sp-form-focus: var(--wp--preset--color--ink);
	--sp-form-surface: var(--wp--preset--color--white);
	--sp-form-text: var(--wp--preset--color--ink);
}
html { scroll-behavior: auto; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; }
:root:lang(zh), :root:lang(ja) { --ug-pad: 48px; }
:root:lang(zh) { --wp--preset--font-family--display: "Syne", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; --wp--preset--font-family--body: "Manrope", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
:root:lang(ja) { --wp--preset--font-family--display: "Syne", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; --wp--preset--font-family--body: "Manrope", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", sans-serif; }
:root:lang(zh) body { font-family: "Manrope", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; line-height: 1.85; letter-spacing: .04em; }
:root:lang(ja) body { font-family: "Manrope", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", sans-serif; line-height: 1.85; letter-spacing: .04em; }
:root:lang(zh) :is(h1, h2, h3, .ug-band__h, .ug-brand) { font-family: "Syne", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
:root:lang(ja) :is(h1, h2, h3, .ug-band__h, .ug-brand) { font-family: "Syne", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
:root:lang(de) body, :root:lang(fr) body { hyphens: auto; }
:root:lang(de) :is(h1, h2, h3, .ug-band__h), :root:lang(fr) :is(h1, h2, h3, .ug-band__h) { hyphens: auto; overflow-wrap: break-word; }
:root:lang(zh) :is(h1, h2, h3, p, .ug-band__h), :root:lang(ja) :is(h1, h2, h3, p, .ug-band__h) { word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- header (overlay) ---------- */
.ug-head-part { position: relative; z-index: 20; }
.ug-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; height: 96px; }
.ug-bar { width: min(1280px, 100% - 2 * var(--ug-pad)); height: 96px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ug-brand { margin: 0; font-family: var(--ug-display); font-size: 1.375rem; font-weight: 700; letter-spacing: .02em; text-transform: lowercase; line-height: 1; }
.ug-brand a { color: var(--ug-ink); text-decoration: none; }
.ug-nav { flex: 1; justify-content: center; }
.ug-nav .wp-block-navigation__container { gap: 38px; flex-wrap: nowrap; }
.ug-nav .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--body); font-size: .6875rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ug-ink); text-decoration: none; padding: 8px 0; position: relative; transition: color .05s linear; white-space: nowrap; }
.ug-nav .wp-block-navigation-item__content:hover, .ug-nav .wp-block-navigation-item__content:focus-visible { color: var(--ug-signal); }
.ug-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child .wp-block-navigation-item__content { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ug-bar .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ug-ink); }
@media (min-width: 600px) and (max-width: 781px) {
	.ug-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.ug-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}
@media (max-width: 1023px) { .ug-nav .wp-block-navigation__container { gap: 20px; } .ug-nav .wp-block-navigation-item__content { letter-spacing: .2em; } }.wp-block-navigation__responsive-container.is-menu-open { background: var(--ug-paper); color: var(--ug-ink); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; align-items: flex-start; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: .875rem; }
@media (max-width: 781px) {
	:root { --ug-pad: 16px; --ug-sec: 80px; }
	.ug-header { position: relative; height: 64px; }
	.ug-bar { height: 64px; }
}

/* ---------- shared pieces ---------- */
.ug-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ug-signal); vertical-align: middle; }
.ug-label, .ug-credit__l, .ug-rail__d, .ug-rail__f, .ug-foot .ug-label { font-family: var(--wp--preset--font-family--body); font-size: .6875rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; line-height: 1.6; margin: 0; }
.ug-label, .ug-rail__f { color: var(--ug-muted); }
.ug-rail__d { color: var(--ug-ink); }
.ug-rail__f { margin-top: 8px; }
.ug-wrap { width: min(1280px, 100% - 2 * var(--ug-pad)); max-width: none; margin-inline: auto; }
.ug-sec { margin-top: var(--ug-sec); }
.ug-h2, h2.ug-h2 { font-family: var(--ug-display); font-size: var(--wp--preset--font-size--x-large); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; line-height: 1.4; margin: 0; }
.ug-h3, h3.ug-h3 { font-family: var(--ug-display); font-size: var(--wp--preset--font-size--title); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; margin: 0; }
.ug-h3 a { color: inherit; text-decoration: none; transition: color .05s linear; }
.ug-h3 a:hover { color: var(--ug-signal); }
.ug-lead { font-size: var(--wp--preset--font-size--large); }
.ug-more { margin: 0; text-align: right; font-size: .875rem; font-weight: 500; }
.ug-more a { text-decoration: underline; text-underline-offset: 4px; transition: color .05s linear; }

/* ledger grid: rail / 712 centre / 240 credits */
.ug-head, .ug-case, .ug-step { display: grid; grid-template-columns: 240px minmax(0, 712px) 240px; column-gap: var(--ug-gap); align-items: start; }
.ug-head { margin-bottom: 64px; align-items: baseline; }
.ug-note, .ug-letter, .ug-foot { display: grid; grid-template-columns: 240px minmax(0, 712px) 240px; column-gap: var(--ug-gap); align-items: start; }
.ug-ledger { display: block; }
.ug-case, .ug-step { border-top: 1px solid var(--ug-rule); padding-top: 24px; }
.ug-ledger .ug-case + .ug-case { margin-top: 120px; }
.ug-case--intro { border-top: 0; padding-top: 0; margin-bottom: 56px; }
.ug-delivery p { margin: 0; }
.ug-delivery__go { flex: none; }
.ug-case__rail { align-self: start; }
.ug-ledger .ug-case__rail { position: sticky; top: 104px; }
.ug-case__main > * + * { margin-top: 1.4em; }
.ug-case__main > .ug-h2 { margin-top: 0; }
.ug-case__main > figure + .ug-case__title { margin-top: 44px; }
.ug-still, .ug-still img { border-radius: 4px; }
.ug-still { margin: 0; }
.ug-still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ug-case__title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ug-case__title .wp-block-html { margin: 0; }
.ug-arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #383D3E; color: #fff; text-decoration: none; transition: background .05s linear; }
.ug-arrow:hover, .ug-arrow:focus-visible { background: var(--ug-signal); color: #fff; }
.ug-credit { margin: 0; }
.ug-case__credits > * + * { margin-top: 28px; }
.ug-credit__l { color: var(--ug-ink); }
.ug-credit__v { margin: 10px 0 0; font-size: .875rem; font-weight: 500; letter-spacing: .04em; line-height: 1.5; }
.ug-hair { width: 24px; height: 1px; border: 0; background: var(--ug-muted); margin: 28px 0 20px; opacity: 1; }
.ug-delivery { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: .875rem; font-weight: 500; line-height: 1.5; }
.ug-delivery p { font-size: .875rem; }
.ug-delivery u { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ug-steps > .ug-step { padding: 28px 0; }
.ug-steps > .ug-step:last-child, .ug-steps > .ug-post:last-child { border-bottom: 1px solid var(--ug-rule); }
.ug-steps .ug-case__main > * + * { margin-top: .6em; }
.ug-step .ug-case__credits > * + * { margin-top: 14px; }
.ug-step .ug-credit__v { margin-top: 2px; }
.ug-people > * + * { margin-top: 20px; }
.ug-note .ug-case__credits > * + * { margin-top: 24px; }

/* ---------- hero window ---------- */
.ug-hero { width: min(87.4%, 1258px); margin-inline: auto; padding-top: 104px; }
.ug-window { display: grid; grid-template-columns: 38% 62%; height: 464px; background: var(--ug-window); border-radius: 4px; overflow: clip; }
.ug-window__text { display: flex; flex-direction: column; justify-content: center; padding: 0 24px 0 113px; min-width: 0; }
.ug-hero h1.ug-h1, h1.ug-h1 { font-family: var(--ug-display); font-size: var(--wp--preset--font-size--xx-large); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; color: var(--ug-wtext); margin: 0; }
.ug-h1 .ug-l { display: block; }
.ug-window__meta { margin: 24px 0 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; line-height: 1.7; color: var(--ug-wmuted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ug-window__photo { position: relative; overflow: clip; min-width: 0; }
.ug-window__photo figure { margin: 0; height: 100%; }
.ug-window__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; border-radius: 0; }
.ug-window__photo .wp-block-html { margin: 0; }
.ug-window__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #232A2B 0, rgba(35, 42, 43, 0) 22%), rgba(20, 26, 27, .18); }
.ug-strip { margin-top: 24px; height: 152px; background: var(--ug-cyan); border-radius: 4px; overflow: clip; display: flex; }
.ug-strip__set { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px; box-sizing: border-box; }
.ug-strip .ug-frame { margin: 0; flex: 1 0 171px; }
.ug-strip .ug-frame img { width: 100%; height: 128px; object-fit: cover; border-radius: 2px; display: block; }
.ug-strip .wp-block-html { display: contents; }
.ug-strip.sp-marquee > .ug-strip__set { flex: none; min-width: 100%; }
html:not(.sp-no-motion) .ug-strip.sp-marquee > * { animation-duration: 40s; }
.ug-strip:hover > * { animation-play-state: paused; }
/* HUD */
.ug-hud { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: var(--ug-muted); font-variant-numeric: tabular-nums; line-height: 1.4; }
.ug-hud p { margin: 0; }
.ug-hud__l { display: flex; align-items: center; gap: 10px; }
.ug-hud__l .wp-block-html { display: flex; align-items: center; margin: 0; }
.ug-hud__r { display: flex; align-items: center; gap: 14px; margin: 0; }
.ug-hud__frame { display: inline-block; height: 1.4em; overflow: clip; vertical-align: top; }
.ug-hud__roll { display: flex; flex-direction: column; transform: translateY(calc(-6 * 1.4em)); }
.ug-hud__roll i { font-style: normal; height: 1.4em; line-height: 1.4; }
.ug-hud__of { margin-left: -8px; }
.ug-hud--sheet { margin-top: 48px; }
.ug-hud--sheet p { margin: 0; }
.ug-hud + .ug-hud { margin-top: 12px; }
.ug-ticks { display: block; flex: none; }
.ug-hero .wp-block-html, .ug-hud .wp-block-html { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
	html.sp-js:not(.sp-no-motion) .ug-h1 .ug-l { animation: ug-step .12s steps(1) both; }
	html.sp-js:not(.sp-no-motion) .ug-h1 .ug-l:nth-child(2) { animation-delay: .12s; }
	html.sp-js:not(.sp-no-motion) .ug-h1 .ug-l:nth-child(3) { animation-delay: .24s; }
	html.sp-js:not(.sp-no-motion) .ug-h1 .ug-l:nth-child(4) { animation-delay: .36s; }
	@keyframes ug-step { from { opacity: 0; } to { opacity: 1; } }
	html.sp-js:not(.sp-no-motion) .ug-hud__roll { animation: ug-roll .6s steps(6) 1 both; }
	@keyframes ug-roll { from { transform: translateY(0); } to { transform: translateY(calc(-6 * 1.4em)); } }
	html.sp-js:not(.sp-no-motion) .ug-hero .ug-dot { animation: ug-blink 1.2s steps(2) infinite; }
	@keyframes ug-blink { 50% { opacity: 0; } }
}
html.sp-js:not(.sp-no-motion) .ug-sheet.sp-reveal--zoom:not(.sp-in) { transform: scale(1.18); }
html.sp-js .ug-sheet.sp-reveal--zoom { --sp-dur: 2s; --sp-delay: .5s; --sp-ease: cubic-bezier(.23, 1, .32, 1); }

/* ---------- contact sheet ---------- */
.ug-sheet { width: min(1128px, 100%); margin-left: auto; }
.ug-sheet__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 168px)); gap: 24px; justify-content: space-between; align-items: start; }
.ug-sheet__col:nth-child(1) { margin-top: 0; }
.ug-sheet__col:nth-child(2) { margin-top: 56px; }
.ug-sheet__col:nth-child(3) { margin-top: 16px; }
.ug-sheet__col:nth-child(4) { margin-top: 88px; }
.ug-sheet__col:nth-child(5) { margin-top: 32px; }
.ug-sheet__col:nth-child(6) { margin-top: 8px; }
.ug-sheet__lab { margin: 0 0 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: lowercase; color: var(--ug-ink); line-height: 1.4; }
.ug-plate, .ug-plate img { border-radius: 2px; }
.ug-plate { margin: 0; }
.ug-plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ug-sheet .ug-hud { margin-top: 48px; }
.ug-sheet .ug-hud p:first-child { margin: 0; }

/* ---------- band ---------- */
.ug-band.wp-block-cover { margin-top: var(--ug-sec); min-height: 680px; align-items: flex-end; padding: 0 0 72px; border-radius: 0; }
.ug-band .wp-block-cover__inner-container { width: 100%; }
.ug-band__in { width: min(1280px, 100% - 2 * var(--ug-pad)); margin-inline: auto; }
.ug-band__h, h2.ug-band__h { font-family: var(--ug-display); font-size: var(--wp--preset--font-size--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.05; max-width: 11ch; color: var(--ug-paper); text-transform: none; margin: 0; }
.ug-band__cap { margin: 20px 0 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: var(--ug-paper); }
.ug-band .wp-block-cover__background { background: #141a1b; }
.ug-band .wp-block-cover__image-background { object-fit: cover; }

/* ---------- rates ---------- */
.ug-rates { margin: 0; }
.ug-rates table { width: 100%; border-collapse: collapse; table-layout: auto; border: 0; }
.ug-rates td { border: 0; border-top: 1px solid var(--ug-rule); padding: 24px 0; vertical-align: baseline; }
.ug-rates tr:last-child td { border-bottom: 1px solid var(--ug-rule); }
.ug-rates td:where(:nth-child(1)) { font-family: var(--ug-display); font-weight: 700; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; width: 28%; padding-right: 24px !important; }
.ug-rates td:where(:nth-child(2)) { font-size: .875rem; color: var(--ug-muted); }
.ug-rates td:where(:nth-child(3)) { white-space: nowrap; text-align: right; width: 1%; padding-left: 32px !important; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ug-ink); }
.ug-note-line { margin: 24px 0 0 !important; font-size: .875rem; color: var(--ug-muted); max-width: 712px; }

/* ---------- quote window ---------- */
.ug-quote { width: min(87.4%, 1258px); margin-inline: auto; }
.ug-qwin { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; min-height: 360px; padding: 56px 64px; background: var(--ug-window); border-radius: 4px; color: var(--ug-wtext); }
.ug-h2--on-dark, h2.ug-h2--on-dark { color: var(--ug-wtext); }
.ug-quote__p { margin: 24px 0 0; color: var(--ug-wtext); max-width: 44ch; }
.ug-quote__act { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ug-quote__btns { margin: 0; }
.ug-quote__btn .wp-block-button__link { background: var(--ug-cyan); color: var(--ug-window); height: 56px; display: inline-flex; align-items: center; padding: 0 40px; border-radius: 28px; font-size: .875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .05s linear, color .05s linear; }
.ug-quote__btn .wp-block-button__link:hover, .ug-quote__btn .wp-block-button__link:focus-visible { background: var(--ug-wtext); color: var(--ug-window); }
.ug-quote__mono { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: var(--ug-wmuted); font-variant-numeric: tabular-nums; }
.ug-quote .ug-hud { margin-top: 24px; }
.ug-letter .ug-h2 { margin-bottom: 24px; }

/* ---------- footer ---------- */
.ug-footer { margin-top: var(--ug-sec); padding: 40px 0 56px; border-top: 1px solid var(--ug-rule); }
.ug-foot { width: min(1280px, 100% - 2 * var(--ug-pad)); margin-inline: auto; }
.ug-foot__info > * + * { margin-top: .6em; }
.ug-foot__addr { font-weight: 600; }
.ug-foot__small { font-size: .875rem; color: var(--ug-muted); }
.ug-foot__idx > * + * { margin-top: 6px; }
.ug-foot__idx p { margin: 0; font-size: .875rem; font-weight: 500; line-height: 1.6; }
.ug-foot__idx a { text-decoration: none; transition: color .05s linear; }
.ug-foot__idx a:hover { color: var(--ug-signal); text-decoration: underline; }

/* ---------- inner/default templates ---------- */
.ug-main { padding-top: 140px; }
.ug-main > * { width: min(712px, 100% - 2 * var(--ug-pad)); margin-inline: auto; }
.ug-main > .alignwide, .ug-main > .ug-wrap { width: min(1280px, 100% - 2 * var(--ug-pad)); }
.ug-main--front { padding-top: 0; }
.ug-main--front > * { width: auto; margin-inline: 0; }
.ug-main--front > .ug-wrap, .ug-main--front > .ug-hero { margin-inline: auto; }
.ug-main--front > .ug-hero { width: min(87.4%, 1258px); }
.ug-main--front > .ug-wrap { width: min(1280px, 100% - 2 * var(--ug-pad)); }
.ug-main--front > .ug-quote { width: min(87.4%, 1258px); margin-inline: auto; }
.ug-main--front > .alignfull { width: 100%; }

/* ---------- 1024-1279 ---------- */
@media (max-width: 1279px) {
	:root { --ug-pad: 48px; --ug-gap: 32px; }
	.ug-head, .ug-case, .ug-step, .ug-note, .ug-letter, .ug-foot { grid-template-columns: 180px minmax(0, 1fr) 200px; }
	.ug-hero h1.ug-h1, h1.ug-h1 { font-size: 2.5rem; }
	.ug-window__text { padding-left: 64px; }
	.ug-sheet { width: 100%; }
	.ug-sheet__cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
}
/* ---------- 782-1023 ---------- */
@media (max-width: 1023px) {
	.ug-head, .ug-case, .ug-step, .ug-note, .ug-letter, .ug-foot { grid-template-columns: minmax(0, 1fr) 200px; }
	.ug-head > .ug-label, .ug-case__rail, .ug-note > .ug-case__rail, .ug-letter > .ug-case__rail, .ug-foot > .ug-case__rail { grid-column: 1 / -1; }
	.ug-ledger .ug-case__rail { position: static; }
	.ug-case__rail { display: flex; gap: 0 16px; flex-wrap: wrap; margin-bottom: 12px; }
	.ug-rail__f { margin-top: 0; }
	.ug-hero { width: 92%; }
	.ug-window { grid-template-columns: 42% 58%; height: 400px; }
	.ug-window__text { padding: 0 24px 0 40px; }
	.ug-hero h1.ug-h1, h1.ug-h1 { font-size: 2rem; letter-spacing: .16em; }
	.ug-sheet { width: 100%; }
	.ug-sheet__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ug-sheet__col:nth-child(n) { margin-top: 0; }
	.ug-sheet__col:nth-child(even) { margin-top: 28px; }
	.ug-quote, .ug-main--front > .ug-quote { width: 92%; }
}
/* ---------- <782 ---------- */
@media (max-width: 781px) {
	:root { --ug-pad: 16px; --ug-gap: 0px; }
	.ug-nav { flex: none; justify-content: flex-end; }
	.ug-head, .ug-case, .ug-step, .ug-note, .ug-letter, .ug-foot { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
	.ug-head { margin-bottom: 32px; }
	.ug-more { text-align: left; }
	.ug-ledger .ug-case + .ug-case { margin-top: 64px; }
	.ug-case__credits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
	.ug-case__credits > * + * { margin-top: 0; }
	.ug-case__credits > .ug-hair, .ug-case__credits > .ug-delivery { grid-column: 1 / -1; }
	.ug-case__credits > .ug-hair { margin: 4px 0 0; }
	.ug-hero { width: calc(100% - 32px); padding-top: 8px; }
	.ug-window { grid-template-columns: 1fr; height: auto; }
	.ug-window__text { padding: 28px 24px 24px; }
	.ug-hero h1.ug-h1, h1.ug-h1 { font-size: 2.25rem; letter-spacing: .12em; line-height: 1.2; }
	.ug-window__photo { height: 220px; }
	.ug-window__shade { background: linear-gradient(180deg, #232A2B 0, rgba(35, 42, 43, 0) 18%), rgba(20, 26, 27, .18); }
	.ug-window__photo img { object-position: 35% 50%; }
	.ug-strip { height: 108px; }
	.ug-strip .ug-frame { flex-basis: 112px; }
	.ug-strip .ug-frame img { height: 84px; }
	.ug-strip__set { gap: 8px; }
	html:not(.sp-no-motion) .ug-strip.sp-marquee > * { animation-duration: 30s; }
	.ug-hud__c, .ug-hud .ug-ticks { display: none; }
	.ug-sheet__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.ug-sheet__col:nth-child(n) { margin-top: 0; }
	.ug-sheet__col:nth-child(2n) { margin-top: 24px; }
	.ug-sheet__col:nth-child(3n) { margin-top: 8px; }
	.ug-band.wp-block-cover { min-height: 480px; padding-bottom: 40px; }
	.ug-band__h, h2.ug-band__h { font-size: 2.5rem; }
	.ug-quote, .ug-main--front > .ug-quote { width: calc(100% - 32px); }
	.ug-qwin { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; min-height: 0; }
	.ug-quote__btn, .ug-quote__btn .wp-block-button__link { width: 100%; justify-content: center; }
	.ug-quote__btns { width: 100%; }
	.ug-h2, h2.ug-h2 { font-size: 1.25rem; letter-spacing: .2em; }
	.ug-rates table, .ug-rates tbody, .ug-rates tr { display: block; width: 100%; }
	.ug-rates tr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--ug-rule); }
	.ug-rates tr:last-child { border-bottom: 1px solid var(--ug-rule); }
	.ug-rates td, .ug-rates tr:last-child td { border: 0; padding: 0 !important; width: auto; }
	.ug-rates td:where(:nth-child(2)) { order: 3; flex-basis: 100%; margin-top: 8px; }
	.ug-foot__idx { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
	.ug-foot__idx > * + * { margin-top: 0; }
	.ug-qwin .ug-h2 { font-size: 1.25rem; }
}
@media (max-width: 781px) and (prefers-reduced-motion: no-preference) {
	.ug-window__photo.sp-parallax { --sp-par: 5%; }
	.ug-band.sp-parallax { --sp-par: 6%; }
}
.ug-window__photo.sp-parallax { --sp-par: 8%; }
.ug-band.sp-parallax { --sp-par: 10%; }

/* ---------- forms: tokens, dark panel ---------- */
.ug-panel--dark, .ug-qwin { --sp-form-surface: #2D3536; --sp-form-text: #F6F8F7; --sp-form-accent: #A2D7DD; --sp-form-on-accent: #232A2B; --sp-form-focus: #A2D7DD; }
.sp-newsletter-fallback input[type="email"] { min-height: 52px; border: 1px solid var(--ug-rule); border-radius: 4px; padding: 14px 16px; font: inherit; background: var(--sp-form-surface); color: var(--sp-form-text); }
.sp-newsletter-fallback input[type="email"]:hover { border-color: var(--ug-muted); }
.sp-newsletter-fallback label { font-size: .6875rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.sp-newsletter-fallback button, .sp-newsletter-fallback input[type="submit"] { height: 56px; padding: 0 32px; border: 0; border-radius: 28px; background: var(--ug-cyan); color: var(--ug-window); font: inherit; font-size: .875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .05s linear; }
.sp-newsletter-fallback button:hover, .sp-newsletter-fallback input[type="submit"]:hover { background: var(--ug-wtext); color: var(--ug-window); }
.sp-newsletter-fallback :focus-visible { outline: 2px solid var(--sp-form-focus); outline-offset: 2px; }

.ug-title, h1.ug-title { font-family: var(--ug-display); font-size: var(--wp--preset--font-size--display); font-weight: 700; letter-spacing: -.01em; line-height: 1; margin: 0 0 56px; }
@media (max-width: 781px) { .ug-title, h1.ug-title { font-size: 2.5rem; } .ug-main { padding-top: 48px; } }
.ug-main .wp-block-post-template { padding: 0; list-style: none; }
.ug-main .wp-block-post-template > li { border-top: 1px solid var(--ug-rule); padding: 28px 0; }

:where(.wp-block-post-content, .ug-main) > * + * { margin-top: 1.4em; }
.ug-main > .ug-title { margin-top: 0; }
.ug-steps > .ug-post { padding: 28px 0; }
.ug-steps > .ug-post .ug-case__credits .ug-credit__v { margin: 0; }
.sp-newsletter-fallback { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sp-newsletter-fallback label { flex: 1 0 100%; }
.sp-newsletter-fallback input[type="email"] { flex: 1 1 320px; width: auto; }
.sp-newsletter-fallback p { flex: 1 0 100%; margin: 4px 0 0; font-size: .875rem; color: var(--ug-muted); }
@media (max-width: 781px) { .ug-case__credits { align-items: start; } .ug-note .ug-case__credits > * { margin-top: 0 !important; } }
@media (max-width: 781px) { .ug-step .ug-case__credits > * { margin-top: 0 !important; } }

.ug-nav .ug-dot { position: absolute; top: -4px; right: -10px; display: block; }

/* film grain: fine static noise over photographs (no motion, no text) */
.ug-window__photo, .ug-sheet figure, .ug-case figure, .ug-strip .ug-frame { position: relative; }
.ug-window__photo::after, .ug-sheet figure::after, .ug-case figure::after, .ug-strip .ug-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .16 0 0 0 0 .17 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- inner pages: page window (S1 at page scale), HUD, panels ---------- */
.ug-hero--page { padding-top: 104px; }
.ug-window--page { grid-template-columns: 45% 55%; height: 400px; }
.ug-window--text { grid-template-columns: 1fr; }
.ug-window--page .ug-window__text { padding: 0 24px 0 64px; }
.ug-window__kick, .ug-window__kick a { margin: 0 0 20px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; line-height: 1.6; color: var(--ug-wmuted); font-variant-numeric: tabular-nums; text-decoration: none; }
.ug-window__kick { display: block; }
h1.ug-h1.ug-h1--page { font-size: 4.25rem; letter-spacing: -.01em; text-transform: none; line-height: 1; overflow-wrap: anywhere; hyphens: auto; }
.ug-window--page .ug-window__photo figure, .ug-window--page .ug-window__photo .wp-block-post-featured-image { margin: 0; height: 100%; }
.ug-sec.ug-pg { margin-top: 112px; }
.ug-hero--page + .ug-sec.ug-pg { margin-top: 96px; }
.ug-pg .ug-case__main > .ug-h3 { margin-bottom: 0; }
.ug-pg .ug-case__main > .ug-still { margin-top: 28px; }
.ug-pg .ug-case__main > .ug-lead { font-weight: 500; }
.ug-pg .ug-case__credits:empty { display: none; }
.ug-pg.ug-note > .ug-case__credits > * + * { margin-top: 24px; }
.ug-formpanel { background: var(--ug-window); color: var(--ug-wtext); border-radius: 4px; padding: 56px 64px; box-sizing: border-box; }
.ug-formpanel .ug-label { color: var(--ug-wmuted); }
.ug-formpanel .ug-h3, .ug-formpanel p { color: var(--ug-wtext); }
.ug-formpanel .ug-case__main > * + * { margin-top: 1.2em; }
.ug-formpanel .sp-newsletter-fallback p, .ug-formpanel .ug-quote__mono { color: var(--ug-wmuted); }
.ug-formpanel .sp-newsletter-fallback input[type="email"] { border-color: #4A5557; }
.ug-sheet--four .ug-sheet__cols { grid-template-columns: repeat(4, minmax(0, 252px)); }
.ug-sheet--four .ug-sheet__col:nth-child(n) { margin-top: 0; }
.ug-sheet--four .ug-sheet__col:nth-child(2) { margin-top: 56px; }
.ug-sheet--four .ug-sheet__col:nth-child(3) { margin-top: 16px; }
.ug-sheet--four .ug-sheet__col:nth-child(4) { margin-top: 72px; }
.wp-block-post-template.ug-steps { list-style: none; margin: 0; padding: 0; }
.wp-block-post-template.ug-steps > li { margin: 0; }
.wp-block-post-template.ug-steps > li:last-child .ug-step { border-bottom: 1px solid var(--ug-rule); }
.ug-article .ug-case__main > * + * { margin-top: 1.4em; }
.ug-article .ug-case__main { max-width: 712px; }
.ug-article .ug-credit__v, .ug-article .ug-credit__v a, .ug-step .ug-credit__v a { text-decoration: none; }
.ug-pager { margin-top: 48px; font-size: .875rem; font-weight: 600; letter-spacing: .1em; gap: 24px; }
.ug-hero--page + .ug-hero--page { margin-top: 0; }
@media (max-width: 1279px) {
	h1.ug-h1.ug-h1--page { font-size: 3.25rem; }
	.ug-window--page .ug-window__text { padding-left: 48px; }
	.ug-sheet--four .ug-sheet__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
	.ug-window--page { grid-template-columns: 48% 52%; }
	h1.ug-h1.ug-h1--page { font-size: 2.75rem; letter-spacing: -.01em; }
	.ug-window--page .ug-window__text { padding-left: 32px; }
	.ug-formpanel { padding: 40px 32px; }
	.ug-sheet--four .ug-sheet__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ug-sheet--four .ug-sheet__col:nth-child(n) { margin-top: 0; }
	.ug-sheet--four .ug-sheet__col:nth-child(even) { margin-top: 28px; }
}
@media (max-width: 781px) {
	.ug-window--page { grid-template-columns: 1fr; height: auto; }
	.ug-window--page .ug-window__text { padding: 28px 24px 24px; }
	h1.ug-h1.ug-h1--page { font-size: 2.5rem; letter-spacing: -.01em; line-height: 1.05; }
	.ug-sec.ug-pg, .ug-hero--page + .ug-sec.ug-pg { margin-top: 64px; }
	.ug-formpanel { padding: 28px 20px; }
	.ug-pg.ug-note > .ug-case__credits { display: grid; grid-template-columns: 1fr; }
}
