@font-face {
  font-family: 'FK Grotesk';
  src: url('../../_next/static/media/hinted_FKGroteskNeue_Light-s.p.0y_7_-l_mvhf_.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'FK Grotesk';
  src: url('../../_next/static/media/hinted_FKGroteskNeue_Regular-s.p.008pbgvgxc.6_.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  --paper: #fff;
  --ink: #151515;
  --muted: #737373;
  --line: #dedede;
  --surface: #fff;
  --surface-alt: #f4f4f2;
  --inverse: #fff;
  --focus: #151515;
  --gutter: clamp(20px, 2.6vw, 44px);
  --ease: cubic-bezier(.22,.75,.22,1);
  --font: 'FK Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color-scheme: light;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
}
:root[data-palette=graphite] {
  --paper: #141518;
  --ink: #f0f1f3;
  --muted: #a4a8b1;
  --line: #363940;
  --surface: #1c1e21;
  --surface-alt: #292c30;
  --inverse: #17191d;
  --focus: #f0f1f3;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
h1, h2, p { margin: 0; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--inverse); }

/* Same visual vocabulary as the homepage; isolated to this package. */
.page-shell {
  height: 100svh;
  height: 100dvh;
  max-width: 1920px;
  margin: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-rows: 80px minmax(0,1fr) 60px;
}
.site-header { display: flex; align-items: center; gap: 32px; }
.wordmark { display: flex; align-items: center; gap: 14px; font-size: 16px; min-height: 44px; }
.wordmark > span { display: flex; }
.package-icon { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: middle; }
.benefit-links .package-icon { width: 16px; height: 16px; }
.benefit-links button[aria-expanded=true] { color: var(--ink); }
.benefit-links button[aria-expanded=true] > span { color: inherit; }
.desktop-footer-label, .tier-sheet nav a > span { display: inline-flex; align-items: center; gap: 8px; }
.page-label { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.menu-button { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 56px; font-size: 13px; }
.menu-button > span { font-size: 21px; font-weight: 300; }
.package-layout { min-height: 0; display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.75fr); gap: clamp(40px,6vw,110px); padding: 42px 0 26px; }
.package-info { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; }
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; min-height: 44px; margin: -12px 0 30px; }
.back-link > span { font-size: 22px; }
.package-heading h1 { font-size: clamp(34px,3.4vw,52px); font-weight: 300; line-height: 1.13; letter-spacing: -.04em; }
.package-kicker { margin-top: 10px; font-size: 11px; color: var(--muted); }
.price-row { display: flex; align-items: flex-end; gap: clamp(24px,3vw,50px); margin: 36px 0 25px; }
.price { font-size: clamp(56px,5.7vw,86px); line-height: .96; letter-spacing: -.07em; white-space: nowrap; }
.price > span { font-size: .3em; letter-spacing: -.02em; margin-left: 8px; }
.renewal { padding-bottom: 3px; white-space: nowrap; }
.renewal > span { color: var(--muted); font-size: 11px; }
.renewal p { font-size: 28px; letter-spacing: -.03em; line-height: 1.2; margin-top: 7px; }
.renewal small { font-size: 11px; letter-spacing: 0; margin-left: 4px; }
.package-summary { font-size: 13px; line-height: 1.7; }
.package-pages > .page-plus { color: var(--muted); padding: 0 3px; }
.package-server { color: var(--muted); margin-top: 6px; }
.infrastructure-summary { display: flex; flex-wrap: wrap; gap: 9px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.infrastructure-summary span + span:before { content: '/'; margin-right: 9px; }
.benefit-links { margin-top: auto; padding-top: 32px; display: grid; width: 100%; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.benefit-links button { min-height: 49px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 8px; font-size: 13px; }
.benefit-links button > span { color: var(--muted); font-size: 18px; }
.contact-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; font-size: 13px; min-height: 44px; }
.contact-button > span { font-size: 21px; }
.desktop-contact { margin-top: 20px; }

/* One case at a time; headings remain above the sliding preview. */
.case-gallery { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); gap: 18px; }
.case-carousel-header { display:flex; align-items:center; justify-content:space-between; gap:24px; min-width:0; }
.case-heading { min-width:0; }
.case-heading h2 { font-size:clamp(22px,2.1vw,30px); line-height:1.2; font-weight:300; letter-spacing:-.035em; overflow-wrap:anywhere; }
.case-heading p { margin-top:6px; color:var(--muted); font-size:11px; line-height:1.4; }
.case-visual .carousel-neighbor { pointer-events:none; }
.case-visual.is-dragging { cursor:grabbing; }
.case-visual img { user-select:none; -webkit-user-drag:none; }
.case-panel { grid-row: 2; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) 64px; gap: 12px; }
.case-visual { position: relative; min-height: 0; touch-action: pan-y; overflow:hidden; isolation: isolate; container-type: size; }
.preview-button { position: absolute; inset: 0; width: 100%; height: 100%; text-align: left; touch-action:pan-y; user-select:none; }
.desktop-preview { position: absolute; top: 0; left: 0; width: 64%; max-height: 77%; }
.desktop-preview > img { width: 100%; height: auto; aspect-ratio: 1.44; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 3px; }
.mobile-preview { position: absolute; right: 0; bottom: 22px; height: 86%; aspect-ratio: 390/844; max-width: 32%; }
.mobile-preview picture { display: block; width: 100%; height: 100%; }
.mobile-preview img { width: 100%; height: 100%; object-fit: contain; object-position: top right; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.media-label { display: block; color: var(--muted); font-size: 9px; line-height: 1; padding-top: 9px; }
.preview-open { position: absolute; left: 0; bottom: 20px; display: flex; align-items: center; gap: 28px; min-height: 44px; font-size: 12px; }
.preview-open > span:last-child { font-size: 26px; transition: transform .3s var(--ease); }
.case-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-width: 0; padding-top: 7px; }
.case-caption h2 { font-size: clamp(22px,2.1vw,30px); font-weight: 300; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.case-caption p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.case-status { color: var(--muted); font-size: 10px; line-height: 1.5; padding-top: 5px; white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer-note { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav { display: flex; gap: 30px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer [aria-current=page] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.mobile-benefits, .mobile-contact { display: none; }
.mobile-keyline, .case-open-link, .case-frost { display: none; }
.mobile-page-label, .mobile-primary-contact, .mobile-inclusions-label, .mobile-back-arrow, .mobile-footer-label { display: none; }

/* Real loading/failure states retain the direct link and retry action. */
.preview-state, .viewer-status { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: var(--paper); font-size: 14px; text-align: center; }
.preview-state button, .preview-state a, .viewer-status button { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; }
.loading-dot { width: 18px; height: 18px; border: 1px solid var(--muted); border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.case-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--surface-alt); padding: 30px; }
.empty-number { color: var(--muted); font-size: 11px; margin-bottom: 30px; }
.case-empty p[lang=en] { color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.case-empty h2 { font-size: 30px; font-weight: 300; }
.empty-rule { width: 40px; height: 1px; background: var(--line); margin: 20px 0; }
.case-empty p:not([lang]) { font-size: 14px; }
.case-empty > span:last-child { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Plain paper dialogs inherit the homepage type and spacing. */
.sheet { width: min(480px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 12px 60px #00000016; }
.sheet::backdrop, .case-viewer::backdrop { background: #1515154d; }
.sheet[open] { animation: sheet-in .24s var(--ease); }
.sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-eyebrow { font-size: 11px; color: var(--muted); }
.close-button { width: 44px; height: 44px; margin: -8px -8px -8px 0; font-size: 29px; line-height: 1; }
.sheet h2 { font-size: 28px; font-weight: 300; letter-spacing: -.035em; margin: 20px 0; }
.benefit-note { color: var(--muted); font-size: 12px; }
.tier-sheet nav { display: flex; flex-direction: column; }
.tier-sheet nav a { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 19px; }
.tier-sheet nav a > span { font-size: 13px; color: var(--muted); }
.tier-sheet [aria-current=page] { text-decoration: underline; text-underline-offset: 5px; }
.palette-options { display: flex; align-items: center; gap: 24px; font-size: 11px; color: var(--muted); margin-top: 24px; }
.palette-options button { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.palette-options [aria-pressed=true] { color: var(--ink); }
.palette-dot { width: 10px; height: 10px; border: 1px solid #999; border-radius: 50%; }
.palette-dot-white { background: #fff; }
.palette-dot-dark { background: #1c1e23; }
.case-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.case-viewer[open] { display: grid; grid-template-rows: 60px minmax(0,1fr); animation: sheet-in .32s var(--ease); }
.case-viewer > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid #dedede; background: #fff; color: #151515; font-family: "SiteSurfaceLight", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 300; color-scheme: light; }
.viewer-back { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; }

.case-viewer h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 300; }
.case-viewer h2 > span { font-size: 11px; color: #737373; margin-left: 10px; }
.case-viewer header > a { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.case-viewer header > a, .viewer-back { flex: none; white-space: nowrap; }
.case-viewer > header :focus-visible { outline-color: #151515; }
.viewer-body { position: relative; min-height: 0; }
.frame-host, .frame-host iframe { display: block; width: 100%; height: 100%; border: 0; }
.frame-host { background: #fff; }
.noscript-note { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px; background: var(--surface); font-size: 13px; text-align: center; z-index: 10; }
@keyframes sheet-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (hover:hover) {
  .preview-button:hover .preview-open > span:last-child { transform: translate(3px,-3px); }
  .benefit-links button:hover span, .menu-button:hover { color: var(--ink); }
  .site-footer a:hover, .back-link:hover, .wordmark:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (min-width:801px) and (max-height:780px) {
  .page-shell { grid-template-rows: 62px minmax(0,1fr) 48px; }
  .package-layout { padding: 20px 0 12px; gap: 40px; }
  .back-link { margin-bottom: 12px; }
  .package-heading h1 { font-size: 34px; }
  .price-row { margin: 24px 0 18px; gap: 22px; }
  .price { font-size: 62px; }
  .benefit-links { padding-top: 18px; }
  .benefit-links button { min-height: 42px; }
  .desktop-contact { margin-top: 10px; }
  .case-gallery { grid-template-rows: auto minmax(0,1fr); gap: 12px; }
  .case-panel { grid-template-rows: minmax(0,1fr) 57px; }
  .case-heading h2 { font-size: 24px; }
}
@media (max-height:500px) and (min-width:560px) {
  .page-shell { grid-template-rows: 48px minmax(0,1fr) 46px; }
  .package-layout { grid-template-columns: .8fr 1.2fr; grid-template-rows: minmax(0,1fr); padding: 10px 0; gap: 28px; }
  .package-info { display: flex; }
  .back-link, .benefit-links, .desktop-contact { display: none; }
  .package-heading h1 { font-size: 29px; }
  .price-row { flex-direction: row; align-items: baseline; gap: 18px; margin: 22px 0 8px; }
  .price { font-size: 44px; }
  .renewal { display: block; }
  .renewal p { font-size: 20px; margin-top: 4px; }
  .package-summary { margin-top: 10px; font-size: 11px; }
  .package-server { font-size: 10px; }
  .case-gallery { grid-template-rows: auto minmax(0,1fr); gap: 6px; }
  .case-panel { grid-template-rows: minmax(0,1fr) 41px; gap: 4px; }
  .case-caption { padding: 0; }
  .case-heading h2 { font-size: 19px; }
  .case-caption p { font-size: 9px; margin-top: 3px; }
  .case-status { font-size: 8px; }
  .desktop-preview { width: min(55%,calc((100cqh - 48px) * 1.44)); }
  .media-label { display: none; }
  .preview-open { bottom: 0; min-height: 36px; }
  .mobile-preview { height: 86%; }
  .mobile-contact, .mobile-benefits { display: flex; }
  .site-footer nav, .footer-note { display: none; }
  .mobile-benefits { align-items: center; gap: 30px; min-height: 44px; font-size: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
