/* DuoSite, aligned with the owner's TAODE visual language.
   Reference: TAODE home.css and apple-theme.css, inspected 2026-10-26.
   System fonts, neutral canvas, blue actions, white rounded content surfaces.
   Commerce content and the existing admin workflows remain DuoSite's own. */
:root {
  --ink: #1d1d1f;
  --muted: #626269;
  --accent: #0066cc;
  --mint: #eaf3ff;
  --surface: #f0f2f7;
  --taode-blue: #0a63e6;
  --taode-press: #0852c0;
  --taode-canvas: #f5f5f7;
  --taode-line: #e5e5e7;
  color: var(--ink);
  background: var(--taode-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 110px;
}
body { background: var(--taode-canvas); color: var(--ink); }
h1, h2, h3 { letter-spacing: -.035em; text-wrap: balance; }
.wrap { width: min(1180px, calc(100% - 48px)); max-width: 1180px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline-color: #0071e3; }
.brand { color: var(--ink); font-weight: 700; }
.brand-symbol, .brand-period { color: var(--taode-blue); }
.button { border-radius: 999px; min-height: 48px; padding: 12px 23px; font-size: 15px; font-weight: 600; gap: 14px; transition: background-color 160ms, transform 160ms cubic-bezier(.23,1,.32,1); }
.button:hover { transform: none; }
.button:active { transform: scale(.97); }
.dark { background: var(--taode-blue); color: #fff; }
.dark:hover { background: var(--taode-press); }
.light, .mint { background: #eaf3ff; color: #0a52c4; }
.light:hover, .mint:hover { background: #dcecff; }
.header {
  position: sticky; top: 12px; z-index: 20;
  width: min(1180px, calc(100% - 32px)); height: 60px;
  padding: 0 12px 0 20px; margin-top: 12px;
  border-radius: 22px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.06);
}
.header .brand { font-size: 25px; }
.nav { gap: 28px; color: #606068; }
.nav a { font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--taode-blue); }
.header-contact { min-height: 40px; padding: 9px 19px; font-size: 14px; }
.header > .light { min-height: 40px; padding: 9px 18px; font-size: 13px; }
.hero.wrap {
  width: 100%; max-width: none; margin-top: -72px;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: clamp(36px,5vw,76px);
  padding: 165px max(24px, calc((100% - 1180px)/2)) 96px;
  min-height: 760px; background: #0a5bd6; color: white;
}
.hero h1 { color: #fff; font-size: clamp(46px,5.1vw,72px); line-height: 1.08; font-weight: 700; letter-spacing: -.045em; }
.hero-copy > p { max-width: 31em; color: #fff; font-size: 18px; line-height: 1.75; font-weight: 450; margin-top: 26px; }
.hero-copy > .button { background: white; color: #0a52c4; min-height: 52px; padding-inline: 27px; font-size: 16px; margin-top: 30px; }
.hero-copy > .button:hover { background: #eaf3ff; }
.hero-checks { color: #f1f7ff; font-size: 13px; gap: 12px 20px; margin-top: 24px; }
.hero-checks .icon { color: white; }
.hero-workspace {
  background: #eaf2ff; border-radius: 28px; padding: 15px;
  box-shadow: 0 24px 60px rgba(0,33,106,.18);
  transform: none; animation: arrive .6s both;
  color: var(--ink);
}
.workspace-body { border-radius: 20px; padding: 28px; background: #fff; }
.workspace-bar { color: #5b6c85; font-size: 11px; padding: 5px 8px 15px; }
.workspace-bar > span:nth-child(2) { font-size: 11px; }
.window-dots i { background: #a7bedc; }
.workspace-heading .brand { color: var(--ink); font-size: 20px; }
.quiet-tag { color: #6e6e73; font-size: 11px; }
.path-switch { background: #ececf1; border-radius: 12px; margin-top: 26px; }
.path-switch button { font-size: 13px; color: #66666e; min-height: 39px; }
.path-switch button.selected { color: var(--ink); }
.switch-glide { border-radius: 9px; }
.workspace-message { padding-block: 27px; }
.workspace-icon { color: var(--taode-blue); margin-bottom: 15px; }
.workspace-message h2 { color: var(--ink); font-size: 23px; line-height: 1.3; font-weight: 650; }
.workspace-message p { color: #5f5f66; font-size: 13px; min-height: 48px; }
.workspace-receipt { border-radius: 14px; background: #f5f5f7; padding: 18px; }
.workspace-receipt > div { font-size: 12px; }
.workspace-receipt span { color: #65656c; }
.workspace-receipt strong { color: #1d1d1f; }
.workspace-receipt .icon { color: #0066cc; }
.workspace-action { color: #0066cc; font-size: 13px; }
.workspace-foot { color: #4e6381; font-size: 11px; padding-top: 15px; }
.workspace-foot .status-dot { background: #0a63e6; }
.promise-strip { background: #fff; }
.promise-strip > .wrap { min-height: 84px; }
.promise-strip span { color: #56565e; font-size: 14px; }
.promise-strip .icon { color: #0066cc; }
.catalog { padding-top: 82px; }
.section-top h2, .faq h2 { font-size: clamp(30px,3.1vw,42px); font-weight: 650; letter-spacing: -.035em; }
.section-top p, .catalog-empty p, .faq > div > p { color: #626269; font-size: 16px; }
.search { background: #fff; border-radius: 999px; padding: 14px 18px; width: 280px; }
.search .icon { color: #6e6e73; }
.search input { font-size: 14px; color: var(--ink); }
.category-list button { border-radius: 999px; color: #626269; padding: 11px 16px; font-size: 14px; }
.category-list button:hover { background: #e9e9ee; }
.category-list button.selected { background: #e7f0ff; color: #0a52c4; }
.catalog-tools select { color: #5f5f66; font-size: 13px; }
.catalog-result { color: #6e6e73; font-size: 13px; }
.catalog-empty { background: white; border-radius: 32px; padding: 54px 30px; }
.empty-motif { color: #0066cc; margin-bottom: 21px; }
.catalog-empty h3 { font-size: 25px; font-weight: 600; }
.catalog-empty p { max-width: 52ch; }
.product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.product { background: white; border-radius: 24px; overflow: hidden; padding-bottom: 23px; }
.product-picture { border-radius: 24px 24px 0 0; aspect-ratio: 1.35; background: #edf1f9; }
.product-picture > img { transition: transform 400ms cubic-bezier(.23,1,.32,1); }
.product-picture:hover > img { transform: scale(1.025); }
.product-featured { background: #fff; color: #0a52c4; border-radius: 999px; padding: 7px 11px; font-size: 12px; }
.picture-action { border-radius: 999px; color: #0a52c4; font-size: 12px; padding: 10px 13px; }
.product-head, .product-summary, .product-bottom { margin-inline: 22px; }
.product-head { align-items: flex-start; margin-top: 22px; }
.product-head h3 { font-size: 22px; font-weight: 650; line-height: 1.25; }
.product-head h3 a:hover { color: #0066cc; }
.product-head > span { color: #6e6e73; font-size: 12px; padding-top: 5px; }
.product-summary { color: #626269; font-size: 14px; margin-top: 11px; }
.product-bottom { margin-top: 21px; }
.product-bottom > strong { font-size: 21px; font-weight: 650; }
.demo-link { color: #0066cc; font-size: 13px; }
.demo-pending { color: #6e6e73; font-size: 12px; }
.missing-cover { background: #f0f3f9; color: #627798; }
.services { padding-top: 98px; }
.service-aside { color: #6e6e73; }
.service-grid { gap: 24px; margin-top: 34px; }
.service { background: #fff; color: var(--ink); padding: 40px; border-radius: 32px; }
.service-grid .service > h3 { color: var(--ink); font-size: 34px; font-weight: 650; }
.service > p, .code-service > p, .hosting-service > p { color: #626269; font-size: 16px; line-height: 1.75; }
.service li { color: #45454c; font-size: 15px; }
.service li .icon { color: #0066cc; }
.service .text-link { color: #0066cc; font-size: 15px; }
.hosting-amount > strong { color: #0066cc; font-weight: 650; }
.hosting-amount > span { color: #6e6e73; }
.faq { padding-block: 100px; gap: 66px; }
.faq details { background: #fff; border-radius: 20px; padding: 23px 25px; }
.faq summary { color: var(--ink); font-size: 15px; font-weight: 550; }
.faq details p { color: #626269; font-size: 15px; }
.contact { background: #0a5bd6; color: white; border-radius: 32px; padding: 48px; }
.contact h2 { color: white; font-size: 40px; font-weight: 650; line-height: 1.12; }
.contact p { color: #f2f6ff; font-size: 16px; }
.contact .mint { color: #0a52c4; background: white; min-height: 52px; font-size: 15px; }
.contact .mint:hover { background: #eaf3ff; }
.contact-unset, .contact-email { color: #f3f7ff; font-size: 14px; }
.footer { padding-block: 44px; }
.footer > span, .footer small, .footer .text-button { color: #626269; font-size: 13px; }
.dialog { border-radius: 24px; color: var(--ink); background: white; }
.dialog::backdrop { background: rgba(0,0,0,.3); }
.dialog-close { background: #f0f0f3; }
.dialog p { color: #626269; }
.request-message { background: #f5f5f7; color: var(--ink); border-radius: 14px; }
.status-text { color: #0066cc !important; }
.detail-page { padding-top: 44px; }
.breadcrumbs { color: #6e6e73; }
.breadcrumbs a { color: #0066cc; }
.detail-grid { gap: 32px; }
.detail-media { border-radius: 24px; background: #edf0f7; }
.gallery-thumbs button { background: #e9edf5; border-radius: 10px; }
.gallery-thumbs button.selected { outline-color: #0066cc; }
.purchase-panel { border-radius: 24px; padding: 32px; top: 96px; }
.purchase-panel h1 { font-size: 38px; line-height: 1.15; font-weight: 650; }
.detail-code, .purchase-panel > .summary, .purchase-panel > .tiny { color: #626269; }
.detail-prices { background: #f5f5f7; border-radius: 16px; }
.detail-prices strong { color: #0066cc; }
.detail-tabs { color: #0066cc; }
.detail-content section { background: white; border-radius: 24px; margin-bottom: 16px; padding: 27px; }
.detail-content h2 { color: var(--ink); font-weight: 650; font-size: 24px; }
.detail-content p, .feature-list { color: #53535b; font-size: 16px; }
.feature-list .icon { color: #0066cc; }
.detail-content a { color: #0066cc; }
.related h2 { font-size: 32px; font-weight: 650; }

/* Administration uses TAODE's white working surfaces and quieter chrome. */
.admin-body { background: #f5f5f7; color: #1d1d1f; }
.admin-body .sidebar { background: white; border-color: #e5e5e7; }
.workspace-label, .sidebar-bottom > span { color: #6e6e73; }
.sidebar nav a { color: #626269; border-radius: 12px; padding-block: 13px; }
.sidebar nav a.active { background: #eaf2ff; color: #0066cc; font-weight: 600; }
.sidebar nav a:hover { background: #f2f5fa; }
.sidebar-bottom > a, .sidebar-bottom > button { color: #626269; }
.sidebar-bottom > a:hover, .sidebar-bottom > button:hover { color: #0066cc; }
.admin-topbar { background: #fff; border-color: #e5e5e7; color: #6e6e73; }
.admin-topbar > a { color: #0066cc; }
.admin-topbar > button { background: #f0f0f3; }
.page-heading h1 { color: #1d1d1f; font-size: 29px; font-weight: 600; }
.page-heading p { color: #68686e; }
.admin-body .button { border-radius: 999px; font-size: 13px; }
.metrics, .panel, .data-table-wrap, .settings-panel { border: 1px solid #e5e5e7; border-radius: 22px; background: white; }
.metric + .metric { border-color: #e5e5e7; }
.metric > strong { font-size: 30px; color: #1d1d1f; font-weight: 550; }
.metric > span, .metric > small { color: #68686e; }
.panel-heading h2 { color: #1d1d1f; font-weight: 600; }
.panel-heading a { color: #0066cc; }
.panel-empty, .mini-row small { color: #68686e; }
.panel-empty a, .mini-row .text-button { color: #0066cc; }
.quick-start > a, .mini-row { border-color: #ebebee; }
.quick-start .icon { color: #6e6e73; }
.quick-start .done, .quick-start .done + .icon { color: #0066cc; }
.notice-panel { background: #eaf2ff; color: #334b70; border-radius: 18px; }
.notice-panel a { color: #0066cc; }
.list-toolbar .search { border-color: #e0e0e5; border-radius: 999px; }
.list-toolbar select { border-color: #e0e0e5; color: #53535b; border-radius: 12px; }
.data-table th { color: #68686e; border-color: #e9e9ee; }
.data-table td { border-color: #ededf0; }
.data-table tbody tr:hover { background: #fafafb; }
.table-name strong { color: #1d1d1f; font-weight: 600; }
.table-name .thumb-empty { background: #eff2f8; color: #6b7d99; }
.subtext, .list-count { color: #68686e; }
.row-actions button, .row-actions a { color: #0066cc; }
.row-actions .delete { color: #b3453c; }
.table-empty { color: #68686e; }
.table-empty h2 { color: #1d1d1f; }
.settings-description h2 { color: #1d1d1f; font-weight: 600; }
.settings-description p, .field small { color: #68686e; }
.field > label, .checkbox-field { color: #42424a; }
.field input:not([type=checkbox]):not([type=file]), .field textarea, .field select {
  border-color: #d9d9de; background: white; border-radius: 12px; color: #1d1d1f;
}
.checkbox-field input { accent-color: #0066cc; }
.editor-dialog { border-radius: 24px; background: white; }
.editor-heading, .editor-footer { background: #fff; border-color: #e5e5e7; }
.editor-heading h2, .field-group-title { color: #1d1d1f; }
.editor-heading p { color: #68686e; }
.icon-button { background: #f0f0f3; color: #53535b; }
.editor-context, .calculation { background: #f1f5fc; color: #485b79; border-radius: 14px; }
.calculation strong { color: #1d1d1f; }
.image-uploader { background: #fafafb; border-color: #cfd5e0; border-radius: 14px; }
.image-uploader input[type=file] { color: #68686e; }
.image-uploader input::file-selector-button { background: #eaf2ff; color: #0066cc; border-radius: 999px; }
.upload-status, .settings-status, .renew-preview { color: #0066cc; }
.customer-history > div { border-color: #dce3ee; }
.auth-card { border-radius: 28px; padding: 38px; }
.auth-card > p, .auth-back { color: #68686e; }
.auth-card h1 { font-weight: 650; }
.auth-card .button { min-height: 48px; font-size: 14px; }
.toast { background: #0066cc; border-radius: 16px; }
.toast.error { background: #a34136; }

@media (max-width:1100px) {
  .hero.wrap { gap: 36px; min-height: 710px; padding-top: 140px; padding-bottom: 76px; }
  .hero h1 { font-size: 60px; }
  .hero-copy > p { font-size: 17px; }
  .hero-workspace { padding: 12px; border-radius: 26px; }
  .workspace-body { padding: 23px; }
  .workspace-message h2 { font-size: 21px; }
  .product-grid { gap: 22px; }
  .product-head, .product-summary, .product-bottom { margin-inline: 19px; }
  .product-head h3 { font-size: 20px; }
  .product-bottom > strong { font-size: 19px; }
  .service { padding: 32px; }
}
@media (max-width:800px) {
  .header-contact { display: inline-flex; font-size: 12px; gap: 10px; }
  .header .brand { font-size: 23px; }
  .nav { gap: 20px; }
  .nav a { font-size: 12px; }
  .hero.wrap { gap: 28px; min-height: 640px; padding-top: 130px; padding-bottom: 64px; }
  .hero h1 { font-size: 49px; }
  .hero-copy > p { font-size: 16px; }
  .hero-copy > .button { font-size: 14px; min-height: 48px; padding-inline: 22px; }
  .hero-checks { gap: 9px; font-size: 12px; }
  .workspace-body { padding: 20px; }
  .workspace-message h2 { font-size: 19px; }
  .workspace-message p { min-height: 65px; font-size: 12px; }
  .workspace-receipt { padding: 14px; }
  .workspace-receipt > div { font-size: 10px; gap: 8px; }
  .workspace-bar > span:nth-child(2) { font-size: 9px; }
  .workspace-foot { font-size: 9px; }
  .path-switch button { font-size: 11px; }
  .promise-strip span { font-size: 12px; gap: 7px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-grid { gap: 20px; }
  .service { padding: 28px; border-radius: 28px; }
  .service-grid .service > h3 { font-size: 29px; }
  .service li { font-size: 13px; }
  .service .text-link { font-size: 13px; gap: 12px; }
  .faq { padding-block: 76px; gap: 30px; }
  .contact { padding: 34px; gap: 30px; }
  .contact h2 { font-size: 32px; }
  .contact .mint { font-size: 13px; gap: 12px; padding-inline: 20px; }
  .detail-grid { gap: 24px; }
  .purchase-panel { position: static; }
  .admin-body .metrics { border-radius: 20px; }
  .admin-body .metric:nth-child(n+3) { border-color: #e5e5e7; }
}
@media (max-width:560px) {
  :root { scroll-padding-top: 100px; }
  .wrap { width: calc(100% - 32px); }
  .header { top: 10px; height: 58px; padding: 0 10px 0 16px; width: calc(100% - 24px); margin-top: 10px; border-radius: 20px; }
  .header .brand { font-size: 24px; }
  .header-contact { display: none; }
  .menu-button { width: 40px; height: 40px; border-radius: 50%; background: #edf3fd; color: #0066cc; }
  .nav { top: 66px; left: 0; right: 0; background: white; border-radius: 20px; padding: 12px 21px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
  .nav a { font-size: 15px; }
  .hero.wrap { grid-template-columns: 1fr; width: 100%; margin-top: -68px; gap: 34px; padding: 122px 24px 48px; min-height: auto; }
  .hero h1 { font-size: clamp(42px,11.3vw,55px); line-height: 1.1; letter-spacing: -.04em; }
  .hero-copy > p { font-size: 17px; line-height: 1.7; margin-top: 22px; }
  .hero-copy > .button { font-size: 15px; min-height: 49px; padding-inline: 23px; margin-top: 26px; }
  .hero-checks { gap: 9px 14px; flex-direction: row; flex-wrap: wrap; font-size: 12px; margin-top: 22px; }
  .hero-workspace { margin: 0; padding: 12px; border-radius: 26px; }
  .workspace-body { padding: 23px; border-radius: 18px; }
  .workspace-heading .brand { font-size: 20px; }
  .workspace-message h2 { font-size: 21px; }
  .workspace-message p { font-size: 13px; min-height: 47px; }
  .workspace-receipt { padding: 16px; }
  .workspace-receipt > div { font-size: 11px; }
  .workspace-bar > span:nth-child(2) { font-size: 10px; }
  .workspace-foot { font-size: 10px; }
  .path-switch button { font-size: 12px; }
  .promise-strip > .wrap { padding-block: 23px; gap: 19px 12px; }
  .promise-strip span { font-size: 12px; }
  .catalog { padding-top: 53px; }
  .section-top h2, .faq h2 { font-size: 30px; }
  .section-top p, .catalog-empty p, .faq > div > p { font-size: 16px; }
  .search { width: 100%; }
  .category-list { gap: 5px; }
  .category-list button { font-size: 13px; padding: 10px 13px; }
  .catalog-tools { margin-top: 22px; }
  .catalog-result { margin-top: 8px; }
  .catalog-empty { padding: 36px 24px; border-radius: 26px; }
  .catalog-empty h3 { font-size: 23px; }
  .product-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-picture { aspect-ratio: 1.35; }
  .product-head, .product-summary, .product-bottom { margin-inline: 22px; }
  .product-head h3 { font-size: 24px; }
  .product-head > span { font-size: 12px; }
  .product-bottom > strong { font-size: 22px; }
  .services { padding-top: 65px; }
  .service-grid { margin-top: 25px; }
  .service { border-radius: 26px; padding: 30px; }
  .service-grid .service > h3 { font-size: 31px; }
  .service li { font-size: 14px; }
  .service .text-link { font-size: 14px; }
  .faq { padding-block: 67px; gap: 27px; }
  .faq details { padding: 19px 21px; border-radius: 18px; }
  .faq summary { font-size: 14px; }
  .faq details p { font-size: 15px; }
  .contact { padding: 32px; border-radius: 26px; gap: 27px; }
  .contact h2 { font-size: 32px; }
  .contact p { font-size: 16px; }
  .contact-unset { font-size: 13px; }
  .footer { padding-block: 33px; gap: 19px; }
  .footer > span { width: 100%; }
  .footer > span, .footer small, .footer .text-button { font-size: 12px; }
  .detail-page { padding-top: 30px; }
  .purchase-panel { padding: 26px; }
  .purchase-panel h1 { font-size: 34px; }
  .detail-content section { padding: 24px; border-radius: 22px; }
  .detail-content p, .feature-list { font-size: 15px; }
  .related h2 { font-size: 29px; }
  .admin-body .panel, .admin-body .settings-panel, .admin-body .data-table-wrap { border-radius: 20px; }
  .admin-body .page-heading h1 { font-size: 25px; }
  .admin-body .page-heading > .button { font-size: 12px; }
  .admin-body .metric > strong { font-size: 27px; }
  .auth-card { padding: 30px; }
  .editor-dialog { border-radius: 22px; }
}
@media (min-width:561px) and (max-width:700px) {
  .header-contact { display: none; }
  .hero.wrap { grid-template-columns: 1fr; padding: 130px 32px 56px; gap: 38px; }
  .hero h1 { font-size: 60px; }
  .hero-copy > p { max-width: 34em; font-size: 17px; }
  .hero-checks { flex-direction: row; flex-wrap: wrap; }
  .hero-workspace { width: 100%; max-width: 530px; margin-inline: auto; }
  .workspace-message p { min-height: 45px; font-size: 13px; }
  .workspace-message h2 { font-size: 22px; }
  .workspace-receipt > div { font-size: 12px; }
  .workspace-bar > span:nth-child(2), .workspace-foot { font-size: 11px; }
  .path-switch button { font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  :root { scroll-behavior: auto; }
  .hero-workspace { animation: none; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* Approved homepage direction: an editorial gallery, centered on real templates. */
.gallery-home .header { margin-top: 18px; }
.gallery-home .hero.wrap {
  display: block; width: min(1180px,calc(100% - 48px)); max-width: 1180px;
  margin-top: 0; padding: 65px 0 40px; min-height: auto;
  background: transparent; color: var(--ink);
}
.gallery-home .hero-copy { text-align: center; max-width: 920px; margin-inline: auto; }
.gallery-home .hero h1 {
  color: var(--ink); font-size: clamp(48px,5.1vw,72px); font-weight: 700;
  line-height: 1.08; letter-spacing: -.05em; max-width: 900px; margin-inline: auto;
}
.gallery-home .hero-copy > p {
  color: #626269; max-width: 600px; margin: 25px auto 0;
  font-size: 18px; font-weight: 400; line-height: 1.75;
}
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.gallery-home .hero-actions .button { background: #0066cc; color: white; min-height: 50px; padding-inline: 26px; font-size: 16px; }
.gallery-home .hero-actions .button:hover { background: #0056ad; }
.hero-consult { display: inline-flex; align-items: center; gap: 8px; padding-block: 12px; color: #0066cc; font-size: 15px; }
.hero-consult .icon { width: 16px; height: 16px; }
.hero-gallery { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: 22px; margin: 49px auto 0; }
.hero-poster { min-width: 0; border-radius: 24px; background: #fff; overflow: hidden; border: 1px solid #e3e5eb; animation: arrive .45s both; }
.hero-poster-preview { display: block; overflow: hidden; }
.hero-browserbar { height: 34px; display: flex; align-items: center; gap: 14px; padding-inline: 14px; background: #fafafd; color: #626977; font-size: 11px; }
.hero-browserbar > span:nth-child(2) { text-align: center; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-browserbar > .icon { width: 13px; height: 13px; }
.hero-browser-dots { display: flex; gap: 4px; flex-shrink: 0; }
.hero-browser-dots i { width: 5px; height: 5px; background: #bdc3ce; border-radius: 50%; }
.hero-poster img { width: 100%; height: 245px; object-fit: cover; object-position: top; transition: transform 350ms cubic-bezier(.23,1,.32,1); }
.hero-poster-featured img { height: 315px; }
.hero-poster:hover img { transform: scale(1.025); }
.hero-poster-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; padding: 19px 20px 20px; }
.hero-poster-caption > div { min-width: 0; }
.hero-poster-name { font-size: 18px; font-weight: 600; letter-spacing: -.025em; display: block; overflow-wrap: anywhere; }
.hero-poster-name:hover { color: #0066cc; }
.hero-poster-caption > div > span { display: block; font-size: 12px; color: #6e6e73; margin-top: 6px; }
.hero-poster-meta { text-align: right; flex-shrink: 0; }
.hero-poster-meta > strong { font-size: 13px; font-weight: 550; }
.hero-poster-meta > a { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 8px; color: #0066cc; font-size: 12px; }
.hero-gallery[data-count="1"] { grid-template-columns: minmax(0,1fr); max-width: 680px; }
.hero-gallery[data-count="1"] .hero-poster img { height: 350px; }
.hero-gallery[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 970px; }
.hero-gallery[data-count="2"] .hero-poster img { height: 285px; }
.hero-library-benefits { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px 28px; margin-top: 30px; font-size: 13px; color: #626269; }
.hero-library-benefits > span { display: flex; align-items: center; gap: 5px; }
.hero-library-benefits strong { font-weight: 400; }
.hero-library-benefits .icon { width: 15px; height: 15px; color: #0066cc; }
.hero-interest { min-width: 0; min-height: 255px; display: flex; flex-direction: column; gap: 23px; background: #fff; padding: 27px; border-radius: 24px; transition: transform 180ms cubic-bezier(.23,1,.32,1),background-color 180ms; }
.hero-interest:hover { transform: translateY(-4px); background: #fdfdff; }
.hero-interest-featured { min-height: 300px; padding: 34px; background: #eaf2ff; }
.hero-interest-featured:hover { background: #e5efff; }
.hero-interest-symbol { display: flex; color: #0066cc; }
.hero-interest-symbol .icon { width: 26px; height: 26px; }
.hero-interest h2 { font-size: 23px; line-height: 1.2; color: #1d1d1f; letter-spacing: -.035em; font-weight: 600; }
.hero-interest p { font-size: 14px; line-height: 1.7; color: #626269; margin-top: 12px; }
.hero-interest-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #0066cc; font-size: 13px; margin-top: auto; padding-top: 5px; }
.hero-interest-link .icon { width: 17px; height: 17px; }
.footer.studio-footer { display: block; width: 100%; max-width: none; margin-top: 88px; border-top: 1px solid #e1e7ef; padding-block: 38px 18px; background: #fff; }
.studio-footer > .footer-inner { display: block; width: min(1180px,calc(100% - 48px)); }
.studio-footer .footer-main { display: grid; grid-template-columns: minmax(0,1fr) 140px 160px; gap: 28px; align-items: start; }
.footer-intro > p { margin-top: 6px; margin-left: 40px; font-size: 12px; color: #626269; }
.footer-intro .footer-description { max-width: 440px; margin: 17px 0 0; font-size: 13px; color: #626269; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-links h2 { margin-bottom: 6px; font-size: 13px; line-height: 1.5; letter-spacing: 0; font-weight: 600; }
.footer-links > a, .footer.studio-footer .footer-links > button { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 2px 0; font-size: 13px; line-height: 1.5; color: #626269; text-align: left; }
.footer-links > a:hover, .footer.studio-footer .footer-links > button:hover { color: #0066cc; text-decoration: underline; text-underline-offset: 4px; }
.footer-links > .footer-zalo { color: #0066cc; }
.footer-zalo .icon { width: 15px; height: 15px; }
.studio-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; border-top: 1px solid #e1e7ef; padding-top: 18px; }
.footer.studio-footer .footer-bottom > small, .footer-bottom > span { font-size: 12px; color: #626269; line-height: 1.6; }
.footer-bottom a strong { font-weight: 700; }
.footer-bottom a:hover { color: #0066cc; text-decoration: underline; text-underline-offset: 3px; }
.gallery-home .catalog + .contact { margin-top: clamp(40px,6vw,80px); }
@media(max-width:700px) {
  .studio-footer > .footer-inner { width: calc(100% - 32px); }
  .studio-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-intro { grid-column: 1/-1; }
  .footer-intro .footer-description { max-width: none; }
  .footer.studio-footer { margin-top: 48px; padding-block: 30px 20px; }
  .footer-links > a, .footer.studio-footer .footer-links > button { min-height: 44px; }
  .studio-footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 26px; padding-top: 18px; }
}
.gallery-home .catalog { padding-top: 56px; }

/* The header and hero occupy the first browser viewport together.
   Dynamic viewport units also react to F11 and mobile browser chrome.
   A minimum, rather than fixed height, keeps short screens and larger text usable. */
.gallery-home { --hero-header-space: 78px; }
.gallery-home .hero.wrap {
  min-height: calc(100vh - var(--hero-header-space));
  min-height: calc(100dvh - var(--hero-header-space));
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(22px,3dvh,40px);
  padding-block: clamp(28px,4dvh,58px);
}
.gallery-home .hero-copy { width: 100%; }
.gallery-home .hero-gallery { width: 100%; margin-top: 0; flex-shrink: 0; }
.gallery-home .hero-library-benefits { margin-top: 0; flex-shrink: 0; }
/* Keep tall-screen cards compact; distribute viewport space around the group. */
@media(min-width:701px) and (min-height:801px) {
  .hero-interest { min-height: 220px; }
  .hero-interest-featured { min-height: 245px; }
  .hero-interest-link { margin-top: 0; }
}
@media(max-width:1000px) {
  .gallery-home .hero.wrap { padding-top: clamp(28px,4dvh,58px); }
  .hero-gallery { gap: 17px; grid-template-columns: 1fr 1.15fr 1fr; }
  .hero-poster-caption { padding: 16px; gap: 10px; flex-wrap: wrap; }
  .hero-poster-meta { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .hero-poster-meta > a { margin-top: 0; }
  .hero-poster img, .hero-poster-featured img { height: auto; aspect-ratio: 4/3; }
  .hero-gallery[data-count="2"] .hero-poster img { height: auto; aspect-ratio: 4/3; }
  .hero-interest { padding: 22px; }
  .hero-interest-featured { padding: 27px; }
  .hero-interest h2 { font-size: 21px; }
}
@media(max-width:700px) {
  .gallery-home .hero.wrap { width: calc(100% - 40px); padding-block: clamp(26px,4dvh,48px); }
  .gallery-home .hero h1 { font-size: clamp(37px,8.3vw,53px); }
  .gallery-home .hero-copy > p { font-size: 16px; max-width: 510px; margin-top: 22px; }
  .hero-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 36px; }
  .hero-poster img, .hero-poster-featured img { height: auto; aspect-ratio: 4/3; }
  .hero-browserbar { padding-inline: 10px; gap: 6px; }
  .hero-browser-dots { display: none; }
  .hero-poster-caption { padding: 14px; }
  .hero-poster-name { font-size: 16px; }
  .hero-poster-meta > strong, .hero-poster-meta > a { font-size: 11px; }
  .hero-interest, .hero-interest-featured { padding: 19px; min-height: 255px; border-radius: 21px; gap: 20px; }
  .hero-interest h2 { font-size: 19px; }
  .hero-interest p { font-size: 13px; }
  .hero-interest-link { font-size: 12px; }
}
@media(max-width:560px) {
  .gallery-home { --hero-header-space: 70px; }
  .gallery-home .header { margin-top: 12px; }
  .gallery-home .hero.wrap { width: calc(100% - 40px); padding: clamp(24px,4dvh,38px) 0; }
  .gallery-home .hero h1 { font-size: clamp(36px,10.5vw,46px); line-height: 1.1; letter-spacing: -.045em; }
  .gallery-home .hero-copy > p { font-size: 16px; line-height: 1.75; margin-top: 21px; }
  .hero-actions { gap: 12px 17px; margin-top: 24px; }
  .gallery-home .hero-actions .button { padding-inline: 20px; min-height: 47px; font-size: 14px; }
  .hero-consult { font-size: 14px; }
  .hero-consult .icon { width: 14px; height: 14px; }
  .hero-gallery { grid-template-columns: 1fr; gap: 17px; margin-top: 31px; }
  .hero-poster img, .hero-poster-featured img { height: 240px; }
  .hero-poster-caption { padding: 19px 20px; flex-wrap: nowrap; }
  .hero-poster-name { font-size: 20px; }
  .hero-poster-meta { width: auto; display: block; }
  .hero-poster-meta > strong { font-size: 14px; }
  .hero-poster-meta > a { font-size: 13px; margin-top: 8px; }
  .hero-browserbar { padding-inline: 14px; height: 33px; }
  .hero-browser-dots { display: flex; }
  .hero-gallery[data-count="1"], .hero-gallery[data-count="2"] { grid-template-columns: 1fr; }
  .hero-gallery[data-count="1"] .hero-poster img, .hero-gallery[data-count="2"] .hero-poster img { height: 250px; }
  .hero-gallery[data-count="3"] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding-bottom: 8px; scrollbar-width: thin; }
  .hero-gallery[data-count="3"] .hero-poster { flex: 0 0 calc(100% - 18px); scroll-snap-align: start; }
  .hero-gallery[data-count="0"] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .hero-gallery[data-count="0"] .hero-interest-featured { grid-column: 1/-1; grid-row: 1; min-height: 165px; }
  .hero-gallery[data-count="0"] .hero-interest:not(.hero-interest-featured) { padding: 20px; min-height: 180px; }
  .hero-gallery[data-count="0"] .hero-interest:not(.hero-interest-featured) h2 { font-size: 22px; }
  .hero-interest, .hero-interest-featured { min-height: 178px; padding: 24px; gap: 17px; }
  .hero-interest h2 { font-size: 24px; }
  .hero-interest p { font-size: 14px; margin-top: 9px; }
  .hero-interest-symbol { display: none; }
  .hero-interest-link { font-size: 13px; padding-top: 0; }
  .hero-library-benefits { gap: 12px 17px; font-size: 12px; margin-top: 25px; }
  .gallery-home .catalog { padding-top: 42px; }
}

/* Keep the full first frame readable on laptops with browser toolbars. */
@media(min-width:701px) and (max-height:800px) {
  .gallery-home .hero.wrap { padding-block: clamp(20px,3dvh,28px); gap: clamp(12px,2dvh,20px); }
  .gallery-home .hero h1 { font-size: clamp(36px,4vw,54px); }
  .gallery-home .hero-copy > p { font-size: 16px; line-height: 1.65; margin-top: 17px; }
  .hero-actions { margin-top: 20px; }
  .gallery-home .hero-actions .button { min-height: 44px; font-size: 14px; }
  .hero-interest { min-height: clamp(150px,26dvh,195px); padding: 23px; gap: 16px; }
  .hero-interest-featured { min-height: clamp(175px,30dvh,230px); padding: 25px; }
  .hero-interest h2 { font-size: 21px; }
  .hero-interest p { margin-top: 9px; }
  .hero-poster img, .hero-poster-featured img,
  .hero-gallery[data-count="1"] .hero-poster img,
  .hero-gallery[data-count="2"] .hero-poster img { height: clamp(145px,28dvh,220px); aspect-ratio: auto; }
  .hero-poster-caption { padding-block: 14px; }
}
@media(max-width:560px) and (max-height:900px) {
  .gallery-home .hero.wrap { padding-block: 22px; gap: 18px; }
  .gallery-home .hero h1 { font-size: clamp(34px,10vw,40px); }
  .gallery-home .hero-copy > p { margin-top: 17px; font-size: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 20px; }
  .hero-gallery[data-count="0"] .hero-interest-featured { min-height: 135px; }
  .hero-gallery[data-count="0"] .hero-interest:not(.hero-interest-featured) { min-height: 155px; padding: 18px; }
  .hero-interest, .hero-interest-featured { padding: 21px; gap: 12px; }
  .hero-interest p { font-size: 13px; }
  .hero-interest-link { font-size: 12px; }
  .hero-poster img, .hero-poster-featured img,
  .hero-gallery[data-count="1"] .hero-poster img,
  .hero-gallery[data-count="2"] .hero-poster img { height: clamp(160px,26dvh,220px); }
}
