/* D8 presentation roles, shared by public pages, order/account and overlays.
 * Legacy component tokens were neutralized in place; this file owns brand roles.
 * Semantic status colors, artwork, material swatches and provider branding are exempt. */
:root {
  --color-wordmark: #8f3a0b;
  /* Legacy brand aliases now mean selection, never a brown UI surface. */
  --color-brand: #111111;
  --color-brand-bright: #111111;
  --color-brand-dark: #111111;
  --color-action: #1f7a3e;
  --color-warning: #ffcc00;
  --color-danger: #f95150;
  --color-positive: #33ff66;
  /* Signal hues stay source-faithful; text uses readable darker companions. */
  --color-warning-text: #111111;
  --color-danger-text: #d63b3a;
  --color-success: #1f7a3e;
  --color-ink: #111111;
  --color-muted: #6b6b6b;
  --space-field: 16px;
  --space-panel: 24px;
  --control-height: 48px;
  --color-subtle: #fbfbfb;
  --color-surface: #f6f6f6;
  --color-band: #ebebeb;
  --color-footer: #242424;
  --color-copyright: #111111;
  --radius-media: 4px;
  --motion: 250ms ease;
  --section-space: 80px;
  --heading-space: 32px;
  --card-space: 24px;
  --page-edge: 32px;
}
@font-face { font-family: "THEO Noto Serif KR"; src: url('../fonts/NotoSerifKR-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "THEO Spectral"; src: url('../fonts/Spectral-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
/* Exactly two editorial placements; controls and order headings stay sans-serif. */
body.home .hero .theo-home-banner-title, body.home .studio__copy > blockquote { font-family: "THEO Noto Serif KR",var(--font-sans); font-weight: 400; }
html[lang^=en] body.home .hero .theo-home-banner-title, html[lang^=en] body.home .studio__copy > blockquote { font-family: "THEO Spectral",var(--font-sans); }
html { accent-color: var(--color-brand); }
body { overflow-wrap: break-word; font-weight: 400; }
body :is(p,li,dd) { line-height: 1.7; }
body :is(input,button,select,textarea,label,dt) { font-weight: 400; }
body :is(.theo-price,.theo-summary-value,[data-quote-total]) { font-variant-numeric: tabular-nums; }
.theo-quality-badge.is-neutral { background: #f6f6f6; border-color: #dedede; color: #333; }
.theo-artwork-quality { font-size: 14px; font-weight: 400; line-height: 1.6; padding: 12px; background: #f6f6f6; border-left: 3px solid #6b6b6b; }
.theo-artwork-quality.is-warning { border-color: var(--color-warning); }
.theo-artwork-quality.is-blocked { border-color: var(--color-danger); }
.theo-artwork-quality.is-optimal { border-color: var(--color-positive); }
:is(h1,h2,h3,h4,h5,h6) { font-weight: 500; }
:is(button,.button,input,select,textarea) { font-family: var(--font-sans); }
:is(button,.button) { font-weight: 600; }
:focus-visible { outline-color: var(--color-brand); }
body .button, body .theo-order .button, body .theo-checkout-shell .button { font-size: 16px; line-height: 1.5; min-height: 48px; }
body .button--primary, body .theo-order .button--primary { color: #fff; background: var(--color-action); border-color: var(--color-action); }
body .button--primary:is(:hover,:focus-visible) { color: #fff; background: #176232; border-color: #176232; }
body :is(.button--ink,.button--secondary) { color: #111; background: #fff; border-color: #111; }
body :is(.button--ink,.button--secondary):is(:hover,:focus-visible) { color: #111; background: #f6f6f6; border-color: #111; }
body :is(.button--primary,.button--ink):disabled { opacity: 1; color: #6b6b6b; background: #ebebeb; border-color: #ebebeb; cursor: not-allowed; }
body .site-actions .floating-contact { color: #111; background: #fff; border: 1px solid #111; }
body :is(.text-link,.service-card__body a,.hero__b2b) { font-size: 16px; font-weight: 600; }
body :is(.text-link,.footer-intro__contact a):hover { color: var(--color-brand-dark); }
body :is(.field,.theo-contact-field,.theo-account-field) > :is(label,span), body label:not(.eyebrow) { font-size: 16px; line-height: 1.5; }
body :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=file]),select,textarea) { font-size: 16px; }
body :is(.eyebrow,.menu-label,.theo-order-kicker,.theo-studio-preview__header > p,.theo-artplacer-mode-card small) { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
body :is(.theo-badge,.theo-material-hint,figcaption,.field-help,.theo-field-help) { font-size: 14px; line-height: 1.6; }
body :is(.trust p,.cookie-banner p,.newsletter-form__status,.theo-tier-card p,.theo-membership-rules li p) { font-size: 16px; }
body :is(.section-heading,.service-section-heading) h2 { font-size: clamp(32px,3vw,40px); font-weight: 500; }
/* Balanced heading/intro columns share the title's top baseline, including English. */
body :is(.section-heading,.service-section-heading,.b2b-section-heading) { align-items: start; }
@media(min-width:1024px){
  body :is(.service-section-heading,.b2b-section-heading) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; }
  body :is(.section-heading,.service-section-heading,.b2b-section-heading) > p { padding-top: 30px; }
}
.layout--text { max-width: 1080px; }
.edition-route { max-width: 1080px; margin-inline: auto; }
/* White shell: no transparent-header switch and no duplicate light-logo layer. */
body .site-header, body .site-header.is-scrolled { color: #111; background: #fff; box-shadow: none; }
body .site-header::after { background: #dedede; }
/* Scroll direction controls the whole header, not separate flickering rows. */
body .site-header { transition: transform 220ms ease; will-change: transform; }
body .site-header.is-smart-hidden { transform: translateY(-100%); pointer-events: none; }
body .site-header:focus-within, body.menu-open .site-header, body.modal-open .site-header, body:has(dialog[open]) .site-header { transform: none; pointer-events: auto; }
.site-header--order .primary-bar--order { display: flex; justify-content: space-between; min-height: 64px; }
.order-header-actions { display: flex; gap: 12px; align-items: center; }
.order-header-icon { display: inline-flex; position: relative; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 10px; color: #111; border: 0; background: #fff; }
.order-header-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.order-header-icon [data-theo-header-cart-count] { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding-inline: 3px; border-radius: 50%; color: #fff; background: #111; font-size: 11px; line-height: 17px; text-align: center; }
body .brand .brand__logo--wordmark, body .theo-order-support .brand__logo { width: 224px; height: auto; max-height: none; object-fit: contain; opacity: 1; position: static; }
body .site-header--order .brand__logo--wordmark { width: 184px; }
.primary-bar .brand { flex: 0 0 auto; }
.primary-nav { min-width: 0; }
.primary-nav a[aria-current=page]::after { height: 2px; background: var(--color-brand); }
.utility-bar__note { font-size: 12px; font-weight: 500; letter-spacing: .08em; }
body .utility-bar { color: #444; background: var(--color-subtle); }
body .utility-nav :is(a,button) { min-height: 44px; font-size: 14px; }
body .site-header:not(.site-header--order) .primary-bar { min-height: 78px; }
body .site-header:not(.site-header--order) .primary-nav a { padding-block: 24px; }
body .site-header:not(.site-header--order) .primary-nav a::after { bottom: 16px; }
.hero__foot > span { display: none; }
body .hero__foot > .hero__scroll { display: block; }
.hero__foot > span::after { content: none; }
.hero__content { padding-bottom: 88px; }
/* Three full-width footer bands; branding is always on the light band. */
.site-footer { background: var(--color-footer); color: #d7d7d7; }
.footer-information { background: var(--color-band); color: #111; }
.footer-information .footer-intro { padding-block: 48px; align-items: center; border: 0; }
.footer-information .brand__logo { width: 224px; height: auto; max-height: none; }
.footer-information .brand__logo--combination { width: 184px; }
.footer-information .footer-intro p { font-size: 16px; color: #6b6b6b; }
.footer-information .footer-intro__contact { max-width: 540px; gap: 8px; }
.footer-information .footer-intro__contact strong { color: #111; font-size: 24px; font-weight: 500; }
.footer-information .footer-intro__contact span { color: #6b6b6b; font-size: 16px; }
.footer-information .footer-intro__contact a { margin-top: 8px; color: var(--color-brand-dark); border-bottom: 1px solid currentColor; font-weight: 600; }
.site-footer .footer-grid { padding-block: 48px; gap: 24px; }
.site-footer .footer-grid h2 { font-size: 16px; font-weight: 600; }
.site-footer .footer-grid :is(a,button) { font-size: 14px; line-height: 1.6; min-height: 32px; }
.footer-copyright { background: var(--color-copyright); border-top: 1px solid #3a3a3a; }
.footer-copyright .footer-bottom { border: 0; font-size: 14px; }
.theo-order-support { gap: 24px; }
.footer-business { padding-block: 0 32px; }
.theo-business { min-width: 0; width: 100%; padding-top: 24px; border-top: 1px solid #dedede; color: #444; }
.theo-business h2 { margin: 0 0 16px; color: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; }
.theo-business__details { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.theo-business__item { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; font-size: 14px; line-height: 1.7; }
.theo-business__item dt { flex-shrink: 0; font-weight: 500; }
.theo-business__item dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.theo-business__item--address { flex-basis: 100%; }
.theo-business__details a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .theo-business { border-color: #555; color: #d7d7d7; }
.site-footer .theo-business h2 { color: #fff; }
.theo-order-support { flex-wrap: wrap; }
.theo-order-support > .theo-business { flex: 0 0 100%; }
.theo-order-support .theo-business a { display: inline; min-height: 0; }
.theo-business--studio { margin-block: 24px; }
/* Common vertical rhythm. Container spacing belongs to the section, not each
   child's default paragraph margin; this also prevents doubled adjacent gaps. */
body :is(.section,.studio,.services,.clients,.process,.works,.reviews,.conversion,.b2b,.home-faq,.service-intro,.b2b-intro,.theo-client-gallery,.service-module,.service-route,.service-cta,.journal-archive,.faq-sections) { padding-block: var(--section-space); }
body :is(.section-heading,.service-section-heading,.b2b-section-heading,.theo-client-gallery__heading) { margin-bottom: var(--heading-space); gap: var(--heading-space); }
body :is(.section-heading,.service-section-heading,.b2b-section-heading) > p { margin-bottom: 0; }
body :is(.service-grid,.client-grid,.journal-grid,.theo-client-gallery__grid) { gap: var(--card-space); }
#frame-types .theo-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--card-space); }
body :is(.section,.theo-service-page,.theo-b2b-page) .layout .layout { width: 100%; }
body .button:hover { transform: none; }
/* R2 home reference: editable studio photography on restrained neutral bands. */
body.home .works { color: #111; background: linear-gradient(#f6f6f6 0 45%,#ebebeb 45% 82%,#fff 82%); }
body.home .works .eyebrow { color: #6b6b6b; }
.theo-home-mosaic { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: 88%; margin-left: auto; }
.theo-home-mosaic > a { display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; background: #ebebeb; }
.theo-home-mosaic :is(picture,img) { display: block; width: 100%; height: 100%; }
.theo-home-mosaic img { object-fit: cover; transition: transform var(--motion); }
.theo-home-mosaic > a:is(:hover,:focus-visible) img { transform: scale(1.03); }
@media(max-width:1199px) { .theo-home-mosaic { width: 100%; grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:767px) { .theo-home-mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* One predictable support location. It never reacts to passing page content. */
.site-actions { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: grid; gap: 8px; }
.site-actions :is(.floating-contact,.site-actions__top) { position: static; display: flex; align-items: center; justify-content: center; gap: 6px; width: 64px; min-height: 48px; height: auto; padding: 10px 6px; color: #111; background: #fff; border: 1px solid #dedede; border-radius: 0; box-shadow: 0 2px 10px #0000000d; font-size: 14px; font-weight: 500; line-height: 1.4; }
.site-actions .floating-contact { color: #fff; background: var(--color-brand-dark); border-color: var(--color-brand-dark); }
.site-actions .site-actions__top { flex-direction: column; gap: 2px; }
.site-actions__top > span:first-child { font-size: 18px; line-height: 1; }
.site-actions .b2b-mobile-ribbon { display: none; }
body.menu-open .site-actions, body:has(dialog[open]) .site-actions { visibility: hidden; pointer-events: none; }
.footer-copyright .footer-bottom { padding-bottom: 112px; }
@media(min-width:1280px) {
  body:has(.site-actions) .layout { width: min(calc(100% - 192px),var(--content-max)); }
  body:has(.site-actions) .layout .layout { width: 100%; }
}
@media(max-width:1279px) {
  :root { --section-space: 64px; --page-edge: 20px; }
  body .site-header:not(.site-header--order) .primary-bar { min-height: 72px; }
  .mobile-menu { padding-top: calc(var(--header-height) + 24px); }
  body .site-header:not(.site-header--order) { min-height: 72px; }
  .site-actions { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; padding: 8px 12px max(8px,env(safe-area-inset-bottom)); border-top: 1px solid #dedede; background: #fff; }
  .site-actions :is(.floating-contact,.site-actions__top,.b2b-mobile-ribbon) { position: static; display: flex; flex-direction: row; width: auto; min-height: 44px; height: auto; padding: 8px; gap: 6px; border: 0; border-radius: 0; background: #fff; color: #111; box-shadow: none; font-size: 14px; line-height: 1.4; text-align: center; }
  .site-actions .floating-contact { border-inline: 1px solid #dedede; color: var(--color-brand-dark); }
  .footer-copyright .footer-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .cookie-banner { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media(max-width:767px) {
  :root { --section-space: 48px; --heading-space: 24px; --card-space: 16px; --page-edge: 20px; }
  body :is(.section-heading,.service-section-heading,.b2b-section-heading) { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body :is(.section-heading,.service-section-heading,.b2b-section-heading) h2 { font-size: 28px; line-height: 1.4; }
  body :is(.section-heading,.service-section-heading,.b2b-section-heading) > p { padding-top: 0; }
  #frame-types .theo-material-grid { grid-template-columns: minmax(0,1fr); }
  .site-actions { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; padding: 8px 12px max(8px,env(safe-area-inset-bottom)); border-top: 1px solid #dedede; background: #fff; }
  .site-actions :is(.floating-contact,.site-actions__top,.b2b-mobile-ribbon) { position: static; display: flex; flex-direction: row; width: auto; min-height: 44px; height: auto; padding: 8px; gap: 6px; border: 0; border-radius: 0; background: #fff; color: #111; box-shadow: none; font-size: 14px; line-height: 1.4; text-align: center; }
  .site-actions .floating-contact { border-inline: 1px solid #dedede; color: var(--color-brand-dark); }
  .footer-copyright .footer-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .cookie-banner { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media(max-width:600px) {
  .theo-business__details { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .theo-business__item { display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; }
  .theo-business__item dt { font-size: 12px; opacity: .85; }
  .theo-order-support > .theo-business { flex-basis: auto; }
}
/* Shared alignment and typography across existing order states. No step changes. */
body .theo-order .theo-order-panel__heading h2 { font-size: 32px; font-weight: 500; }
body .theo-order .theo-order-steps button[aria-current=step], body .theo-order .theo-paper-filter button[aria-pressed=true] { background: var(--color-brand); border-color: var(--color-brand); }
body .theo-order-steps button { padding: 16px; gap: 12px; }
body .theo-order-steps button strong { font-weight: 500; font-size: 16px; }
/* English labels must wrap between words, not split into isolated letters. */
body .theo-order .theo-upload-rules li { grid-template-columns: minmax(90px,.9fr) minmax(0,1.1fr); gap: 12px; }
body .theo-order .theo-upload-rules li strong { font-size: 14px; overflow-wrap: normal; word-break: normal; }
body :is(.theo-order,.theo-checkout-modal,.theo-account) :is(h2,h3) { font-weight: 500; }
body .theo-order :is(.theo-cart-summary,.theo-quote-totals,.theo-studio-summary), body .theo-checkout-modal .theo-checkout-summary { border-top-color: var(--color-brand); }
body :is(.theo-artplacer-mode,.theo-artplacer-mode-card) { min-width: 0; }
body :is(.theo-global-dialog,.theo-checkout-modal,.theo-auth-modal) h2 { font-weight: 500; }
body :is(.theo-global-dialog,.theo-auth-modal) p { font-size: 16px; }
body :is(.theo-account-nav,.theo-account-navigation) a[aria-current=page] { background: var(--color-brand); color: #fff; }
/* Editorial rhythm: paired/asymmetric sections, not repeated four-column blocks. */
@media(min-width:1024px){
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .service-card { min-height: 420px; }
  .client-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:1279px){ body .brand .brand__logo--wordmark { width: 184px; } }
@media(max-width:767px){
  body .brand .brand__logo--wordmark { width: 160px; }
  body .site-header--order .brand__logo--wordmark { width: 140px; }
  .footer-information .footer-intro { padding-block: 32px; gap: 32px; }
  .footer-information .footer-intro__contact { align-items: flex-start; text-align: left; }
  .site-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body .theo-order .theo-order-panel__heading h2 { font-size: 28px; line-height: 1.4; }
  body .theo-order-steps button { padding: 12px 8px; gap: 8px; }
  body .theo-order-steps button strong { font-size: 14px; }
}
@media(prefers-reduced-motion:reduce){
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; }
}
