/* Compose the original gold symbol with AIZA; retain both source assets and theme-aware lettering. */
.brand-link{display:inline-flex;flex-shrink:0;border-radius:2px}
.brand-logo{display:block;position:relative;width:148px;aspect-ratio:1820/343}
.brand-logo::before,.brand-logo::after{content:"";position:absolute;display:block}
/* Widen P optically to match the broad AIZA lettering; preserve the shared baseline.
   Source symbol bounds: (273,151)-(1035,1111) in a 1254px square. */
.brand-logo::before{left:0;bottom:0;width:18.5%;height:94%;background:var(--logo-symbol-color,var(--brand-gold));-webkit-mask:url('/assets/favicon-paiza-gold.png') 55.488% 51.361% / 164.567% 130.625% no-repeat;mask:url('/assets/favicon-paiza-gold.png') 55.488% 51.361% / 164.567% 130.625% no-repeat}
/* Wordmark bounds: (229,206)-(1938,549). The angled clip removes only its old P. */
.brand-logo::after{top:0;right:0;bottom:0;width:93.901%;background:var(--logo-color);-webkit-mask:url('/assets/paiza-wordmark.png') 49.46% 54.068% / 127.092% 211.079% no-repeat;mask:url('/assets/paiza-wordmark.png') 49.46% 54.068% / 127.092% 211.079% no-repeat;clip-path:polygon(19% 0,100% 0,100% 100%,16% 100%,19% 75%)}
.footer .brand-logo{width:178px}
.contact-signature .brand-logo{width:188px;--logo-color:var(--brand-navy);--logo-symbol-color:var(--brand-navy)}
.contact-signature small{letter-spacing:1.5px;font-size:8px}
@media(max-width:760px){.header .brand-logo{width:116px}.footer .brand-logo{width:152px}}
@media(max-width:380px){.header .brand-logo{width:100px}}

/* Paiza's folded P is the cover illustration. Its light source also sets the brass accents. */
:root {
  --ink: #142028;
  --brass: #e6c489;
  --paper: #f6f4ee;
  --gutter: clamp(20px, 5.4vw, 108px);
  --display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.header { height: 76px; padding-inline: var(--gutter); background: var(--ink); color: var(--paper); border-bottom: 1px solid #ffffff26; --logo-color: #f5f0e7; }
.header .select-compact .select-trigger { color: var(--paper); }
.header .control-divider { background: #ddd5bf88; }
.header-contact { border-color: #ccbea4; }
.theme-control { position: relative; }
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 92px;
  width: 92px; height: 40px; min-width: 92px; min-height: 40px; padding: 7px 9px;
  color: var(--paper); background: #ffffff0b; border: 1px solid #ffffff24; border-radius: 999px;
  font-size: 11px; transition: background .18s, border-color .18s, transform .18s;
}
.theme-toggle:hover { background: #ffffff17; border-color: #ffffff55; }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle:focus-visible { outline-color: var(--brass); outline-offset: 2px; }
.theme-icon { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; color: var(--brass); }
.theme-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-label { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-align: center; text-overflow: ellipsis; }
.theme-chevron { margin-left: auto; color: #ffffff99; font-size: 12px; transition: transform .18s; }
.theme-toggle[aria-expanded=true] .theme-chevron { transform: rotate(180deg); }
.theme-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: min(168px,calc(100vw - 32px)); padding: 5px; color: var(--paper); background: #1b2931; border: 1px solid #ffffff24; border-radius: 8px; box-shadow: 0 18px 45px #0007; }
.theme-menu button { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 8px 10px; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 5px; font-size: 12px; text-align: left; }
.theme-menu button:hover { background: #ffffff10; }
.theme-menu button[aria-pressed=true] { color: #17242c; background: var(--brass); border-color: #f4dbaa; }
.theme-menu button[aria-pressed=true] .theme-icon { color: #17242c; }
.theme-option-label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mobile-nav { color: var(--text); }

.studio-hero { background: var(--ink); color: var(--paper); padding-inline: var(--gutter); overflow: hidden; }
.studio-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; color: #d5c8af; }
.studio-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; position: relative; padding-block: clamp(30px,4.2vw,76px); }
.studio-copy { z-index: 1; min-width: 0; }
.studio-copy h1 { font: 550 clamp(54px,6.95vw,128px)/.95 var(--display); letter-spacing: -.072em; }
.studio-copy h1 span { display: block; }
.studio-copy .highlight { font: italic normal 1.04em/.99 Georgia, serif; letter-spacing: -.075em; color: var(--brass); }
.studio-copy > p { max-width: 50ch; margin-top: 25px; font-size: clamp(15px,1.2vw,19px); line-height: 1.6; color: #c7cdd0; }
.brand-relief { align-self: stretch; position: relative; min-height: 330px; isolation: isolate; }
.brand-relief::before { content: ''; position: absolute; inset: -9% -7%; background: radial-gradient(ellipse at center, #85795632, transparent 69%); }
.brand-relief::after { content: ''; position: absolute; inset: -12% -7%; background: url('/assets/paiza-relief.svg') center / contain no-repeat; }
.brand-relief canvas { position: absolute; inset: -10% -5%; width: 110%; height: 120%; opacity: 0; }
.brand-relief.is-rendered canvas { opacity: 1; }
.brand-relief.is-rendered::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .brand-relief.is-rendered canvas { opacity: 0; }
  .brand-relief.is-rendered::after { opacity: 1; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin-top: 28px; }
/* A fine double rule frames the primary action like lettering on a book cover. */
.button-primary, .button-secondary, .submit-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 9px 22px;
  font: normal 18px/1.25 Georgia, serif; letter-spacing: -.025em;
  border-radius: 1px; border: 1px solid currentColor;
  transition: background-color .18s, color .18s;
}
.button-primary {
  color: var(--ink); background: #efdbb6;
  box-shadow: inset 0 0 0 2px #efdbb6, inset 0 0 0 3px #a48b61;
}
.button-primary:hover, .button-primary:focus-visible { background: #fff0d3; }
.button-secondary { color: #ede8dc; background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { color: var(--ink); background: #ede8dc; }
.button-text, .header-contact, .studio-service > a, .text-link {
  align-items: center; width: fit-content; min-height: 44px;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.button-text, .header-contact, .text-link { border: 0; }
.button-text { display: inline-flex; padding-block: 10px; color: #ede8dc; font-size: 14px; }
:is(.button-text, .header-contact, .studio-service > a, .text-link):hover { text-decoration-color: currentColor; }
.studio-showcase { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px 3%; border-block: 1px solid #ffffff35; padding-block: 24px; }
.hero-product { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 44px; }
.hero-product:hover, .hero-product:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.hero-product > img { width: 32px; height: 32px; border-radius: 5px; flex-shrink: 0; }
.hero-product strong { font-size: clamp(14px,1.3vw,20px); font-weight: 600; overflow-wrap: anywhere; }
.studio-showcase .antreflow-mark { width: 32px; background: #f7f2ea; border-radius: 4px; }

.section-pad { padding: clamp(52px,7vw,120px) var(--gutter); }
.section-heading h2, .studio-intro h2, .scope-heading h2 { font: 500 clamp(38px,4.4vw,77px)/1 var(--display); letter-spacing: -.065em; }
.studio-intro { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: 8%; }
.studio-intro-photo { position: relative; padding: 0 12% 18px 0; }
.studio-intro-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.photo-label { display: block; font: 10px/1.6 ui-monospace, monospace; letter-spacing: .06em; padding-top: 8px; }
.studio-intro h2 { margin: 18px 0; }
.studio-intro-copy > p:not(.eyebrow), .intro-paths p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.intro-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 24px; }
.intro-paths h3 { border-top: 2px solid var(--accent); padding-top: 12px; margin-bottom: 6px; font-weight: 500; }
.studio-services { background: var(--surface); }
.studio-service { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(120px,.55fr); gap: 8px 3%; align-items: baseline; padding-block: 24px; border-top: 1px solid var(--line); }
.studio-service h3 { font-size: clamp(22px,2.5vw,44px); letter-spacing: -.05em; font-weight: 500; grid-column: 1; grid-row: 1/3; }
.studio-service p, .steps p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.service-tags { grid-column: 2; font-size: 11px; color: var(--muted); }
.service-tags span + span::before { content: ' / '; }
.studio-service > a { grid-row: 1; grid-column: 3; display: inline-flex; font-size: 13px; }
.steps h3 { margin-top: 20px; }

.service-delivery { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }
.products .product-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px,5vw,90px); }
.product { display: grid; grid-template-columns: 1.5fr 1fr; gap: 7%; align-items: center; }
.product:nth-child(even) { grid-template-columns: 1fr 1.5fr; }
.product:nth-child(even) .product-stage { grid-column: 2; grid-row: 1; }
.product-stage { border-radius: 0; }
.product .product-stage { height: auto; min-width: 0; padding: clamp(20px,3vw,50px); }
.product .product-stage h3 { margin: 22px 0; font-size: clamp(25px,2.7vw,48px); }
.product .product-stage .real-product-preview, .product .product-brand-preview { position: static; margin: 0; }
.product .product-brand-preview { padding: 24px; }
.product .screenshot-viewport { height: auto; aspect-ratio: 16/9; }
.product-info h4 { font-size: clamp(32px,4.4vw,78px); line-height: 1; letter-spacing: -.07em; }
.product-description { font-size: 16px; }
.product-info .tags span { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; margin-right: 8px; font-size: 12px; }

.header .select-compact:is(:hover,.is-open) .select-trigger { background: #28353c; }
.header .select-options { color: var(--text); }
.project-scopes { background: var(--ink); color: var(--paper); }
.scope-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px 6%; align-items: end; margin-bottom: 36px; }
.scope-heading .eyebrow { grid-column: 1/-1; color: var(--brass); }
.scope-heading > p:last-child, .scope-panel-copy > p { color: #c5cccf; line-height: 1.6; }
.scope-layout { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,2.2fr); gap: 4%; }
.scope-tabs { display: flex; flex-direction: column; align-items: stretch; }
.scope-tabs button { display: flex; align-items: center; gap: 12px; padding: 18px 12px; text-align: left; color: var(--paper); background: transparent; border-top: 1px solid #ffffff35; }
.scope-tabs button:hover { background: #ffffff09; }
.scope-tabs button[aria-selected=true] { color: var(--brass); box-shadow: inset 3px 0 var(--brass); background: #ffffff09; }
.scope-tabs button:focus-visible { outline-offset: -3px; }
.scope-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5%; align-items: start; border-top: 1px solid #ffffff50; padding-top: 18px; }
.scope-panel-copy h3 { font-size: clamp(25px,2.4vw,40px); line-height: 1.1; letter-spacing: -.045em; font-weight: 500; margin: 16px 0; }
.scope-tags, .scope-flow { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.scope-tags, .scope-flow, .scope-output .eyebrow { color: var(--brass); font-size: 11px; }
.scope-output ul { list-style: none; margin: 16px 0; padding: 0; }
.scope-output li { padding: 12px 0; border-bottom: 1px solid #ffffff26; font-size: 14px; }
.scope-output li span { margin-right: 10px; color: var(--brass); }

.approach { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7%; }
.approach .section-heading { display: block; }
.approach .section-heading > p { margin-top: 22px; }
.steps { display: block; margin: 0; }
.steps article { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 20px 0; }
.steps h3 { margin: 0; font-size: clamp(24px,2.2vw,36px); }
.steps p { grid-column: 1; }
.reviews .section-heading { margin-bottom: 36px; }
.reviews { background: var(--surface); border-top: 1px solid var(--line); }
.review-grid { gap: 4%; }
.review-card { background: transparent; border: none; border-top: 2px solid var(--accent); border-radius: 0; padding: 16px 0; }
.review-media { display: grid; place-items: center; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: color-mix(in srgb,var(--accent) 10%,var(--surface)); border: 1px solid var(--line); }
.review-media img { width: 100%; height: 100%; object-fit: cover; }
.review-media > span { display: grid; place-items: center; width: clamp(58px,6vw,88px); aspect-ratio: 1; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; font: 500 clamp(16px,1.8vw,25px)/1 var(--display); letter-spacing: .04em; box-shadow: 0 12px 30px #00000010; }
.review-card blockquote { font: normal clamp(21px,1.9vw,33px)/1.35 Georgia,serif; margin: 18px 0 24px; }
.review-card figcaption { padding-top: 14px; }
.contact { background: var(--ink); color: var(--paper); margin: 0; border-radius: 0; }
.contact .status-dot { background: var(--brass); }
.contact h2 { font: italic normal clamp(49px,7.7vw,134px)/1 Georgia,serif; letter-spacing: -.065em; margin: 24px 0 48px; }
.contact h2 > span { color: var(--brass); }
.contact-grid { align-items: start; gap: 7%; }
.contact-signature .brand-logo { --logo-color: var(--paper); --logo-symbol-color: var(--brass); }
.contact .email-address { display: block; width: fit-content; min-height: 0; padding: 0 0 5px; color: inherit; font-size: clamp(19px,2.2vw,32px); letter-spacing: -1px; border-bottom: 1px solid var(--brass); }
.contact .email-address:hover { color: inherit; text-decoration: none; border-color: currentColor; }
.contact .email-address.is-copied { animation: email-copied .45s ease-out; }
.contact #copy-feedback { display: block; width: fit-content; height: 27px; margin-top: 10px; padding: 6px 10px; color: #fff8e9; background: #08243e; border-radius: 2px; font-size: 11px; line-height: 1.2; opacity: 0; visibility: hidden; }
.contact #copy-feedback.is-visible { visibility: visible; animation: copy-feedback-visible 2s ease both; }
@keyframes email-copied {
  0% { color: inherit; background: transparent; transform: scale(1); }
  40% { color: var(--paper); background: var(--ink); box-shadow: 0 0 0 4px var(--ink); transform: scale(1.01); }
  100% { color: inherit; background: transparent; box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}
@keyframes copy-feedback-visible {
  0% { opacity: 0; transform: translateY(-5px); }
  10%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .contact .email-address.is-copied { animation: none; }
  .contact #copy-feedback.is-visible { animation: none; opacity: 1; transform: none; }
}
#contact-form {
  gap: 20px; padding: clamp(24px,3.4vw,54px); background: var(--paper); color: var(--ink);
  border: 1px solid #d9cbb2; border-top: 5px solid var(--brass); border-radius: 3px;
  box-shadow: 0 24px 70px #00000024; color-scheme: light;
}
#contact-form label { gap: 8px; color: #42515a; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#contact-form :is(input,textarea) {
  padding: 13px 14px; color: var(--ink); background: #fffdf8; border: 1px solid #d7cdbb;
  border-radius: 4px; font-size: 15px; transition: border-color .18s, box-shadow .18s, background .18s;
}
#contact-form :is(input,textarea):hover { border-color: #ae9e82; }
#contact-form :is(input,textarea):focus { background: #fff; border-color: var(--brass); box-shadow: 0 0 0 3px #b8904f26; }
#contact-form textarea { min-height: 120px; }
#contact-form textarea::placeholder { color: #7b858b; font-size: 13px; }
.contact .email-address:focus-visible { outline-color: var(--brass); }
.footer { padding-inline: var(--gutter); }

.product-arrow {
  width: auto; min-height: 44px; height: auto; align-self: end; justify-self: end;
  gap: 6px; padding-inline: 4px; border: 0; border-radius: 0; font-size: 13px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.product-arrow:hover { background: transparent; color: var(--text); text-decoration-color: currentColor; }
.submit-button { width: 100%; min-height: 52px; justify-content: space-between; background: var(--ink); color: var(--paper); border-color: var(--ink); border-radius: 4px; }
.submit-button::after { content: '→'; font: 22px/1 Arial,sans-serif; transition: transform .18s ease; }
.submit-button:hover { background: #344750; }
.submit-button:hover::after { transform: translateX(4px); }
.select-compact .select-trigger, .select-options, .select-option { border-radius: 2px; }
.select-options { padding: 4px; box-shadow: 0 5px 14px #0002; }
.select-field .select-trigger { min-height: 50px; padding: 13px 14px; color: var(--ink); background: #fffdf8; border: 1px solid #d7cdbb; border-radius: 4px; font-size: 15px; }
.select-field .select-trigger:hover { border-color: #ae9e82; }
.select-field.is-open .select-trigger { background: #fff; border-color: var(--brass); box-shadow: 0 0 0 3px #b8904f26; }
.select-field .select-trigger[aria-invalid=true] { border-color: #792d18; }
.menu-button { min-width: 44px; min-height: 44px; padding: 6px; color: var(--paper); font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.scroll-top {
  position: fixed; right: clamp(16px,2.4vw,36px); bottom: clamp(16px,2.4vw,36px); z-index: 30;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  color: var(--paper); background: var(--ink); border: 1px solid #ffffff45; border-radius: 50%;
  box-shadow: 0 12px 30px #0004; font-size: 22px; opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s, background .18s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { color: var(--ink); background: var(--brass); }
.scroll-top:focus-visible { outline-color: var(--brass); }
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: none; }
}

@media (max-width: 1000px) {
  .scope-panel { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .header { padding-inline: var(--gutter); height: 68px; }
  .theme-toggle { flex-basis: 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .theme-chevron { position: absolute; right: 4px; bottom: 3px; margin: 0; font-size: 9px; }
  .theme-menu { right: -4px; }
  .mobile-nav { top: 68px; }
  .studio-hero-top { padding-top: 18px; }
  .studio-hero-top .eyebrow { font-size: 8px; letter-spacing: .07em; }
  .studio-hero-grid { grid-template-columns: 1fr; padding: 24px 0; }
  .studio-copy { display: grid; grid-template-columns: minmax(0,1fr); }
  .studio-copy h1 { font-size: clamp(40px,8.6vw,70px); max-width: 65%; }
  .brand-relief { position: absolute; inset: 18px 0 auto auto; width: 35%; aspect-ratio: 1; min-height: 0; }
  .brand-relief::after { inset: -5%; }
  .studio-showcase { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; }
  .hero-product { justify-content: flex-start; gap: 8px; }
  .studio-intro, .approach { grid-template-columns: 1fr; gap: 26px; }
  .studio-intro-photo { padding: 0; }
  .studio-intro-photo img { aspect-ratio: 16/9; }
  .studio-service { grid-template-columns: minmax(0,1fr); gap: 10px; padding-block: 20px; }
  .studio-service h3, .studio-service > a { grid-row: auto; grid-column: 1; }
  .studio-service p, .service-tags { grid-column: 1; }
  .product, .product:nth-child(even) { grid-template-columns: 1fr; gap: 0; }
  .product:nth-child(even) .product-stage { grid-column: 1; }
  .scope-layout, .scope-heading { grid-template-columns: 1fr; gap: 20px; }
  .scope-tabs button { padding: 13px; }
  .review-grid { gap: 18px; }
  .contact h2 { margin-bottom: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .intro-paths { grid-template-columns: 1fr; }
}

/* Translate the framed artwork as a unit so that the screen capture keeps its crop. */
@media screen and (prefers-reduced-motion: no-preference) {
  .section-pad, .product { --scroll-offset: 0; }
  .section-pad { --heading-travel: clamp(10px, 1.5vw, 22px); }
  .product { --art-travel: clamp(40px, 5.5vw, 90px); --entry-side: 1; }
  .product:nth-child(even) { --entry-side: -1; }
  .section-heading, .scope-heading, .studio-intro-copy, .contact > h2 {
    transform: translateY(calc(var(--scroll-offset) * var(--heading-travel)));
  }
  .studio-intro-photo { transform: translateY(calc(var(--scroll-offset) * var(--heading-travel) * -0.7)); }
  .product-stage {
    transform: translateX(calc(var(--scroll-offset) * var(--art-travel) * var(--entry-side)));
  }
  @media (max-width: 760px) {
    .product { --art-travel: clamp(14px, 3.8vw, 24px); }
    .section-pad { --heading-travel: 9px; }
  }
}
