/* Mastheads use the same destinations, with a different hierarchy for each service. */
.site-mast { --header-line: color-mix(in srgb,var(--accent) 26%,transparent); z-index: 8; }
.site-mast .brand, .footer .brand { display: inline-flex; gap: .55rem; width: fit-content; align-items: center; }
.site-mast .brand-symbol { width: 49px; height: 49px; object-fit: contain; }
.wordmark { display: inline-flex; align-items: baseline; color: var(--accent); white-space: nowrap; line-height: 1; }
.wordmark b { font-size: 31px; letter-spacing: -.062em; }
.wordmark small { font-size: 15px; font-weight: 630; letter-spacing: -.035em; }
.palette .wordmark b { font: 700 34px/.95 Georgia,serif; letter-spacing: -.065em; color: #763921; text-shadow: 0 1px #ffdfb8,0 2px #c88d64; }
.assembly .wordmark { flex-direction: column; align-items: flex-start; gap: 2px; color: #ebf3fa; }
.assembly .wordmark b { font-size: 27px; font-weight: 790; text-transform: uppercase; letter-spacing: -.06em; text-shadow: 1px 2px #4278a0; }
.assembly .wordmark small { font: 600 12px/1 Consolas,monospace; letter-spacing: .12em; }
.edge .wordmark b { font-weight: 840; font-style: italic; letter-spacing: -.07em; text-shadow: 1px 1px #f4d396,2px 2px #a46b32; }
.nesting .wordmark { color: #d3edbd; }
.nesting .wordmark b { text-transform: uppercase; font: 750 28px/1 Geist,Inter,sans-serif; letter-spacing: -.055em; text-shadow: 0 2px #466852; }
.docket .wordmark { color: #683044; border-block: 1px solid #aa7785; padding: 3px 1px; }
.docket .wordmark b { font: italic 700 30px/.98 Georgia,serif; letter-spacing: -.055em; }
.fronts .wordmark { display: grid; justify-items: center; gap: 1px; color: #3c523d; }
.fronts .wordmark b { font: 600 31px/.95 Georgia,serif; letter-spacing: .035em; font-variant: small-caps; text-shadow: 0 1px #faf8db,0 2px #baa678; }
.fronts .wordmark small { letter-spacing: .15em; font-size: 11px; }
.assembly .footer .wordmark, .nesting .footer .wordmark { color: var(--ink); }
.assembly .footer .wordmark b, .nesting .footer .wordmark b { text-shadow: none; }
.section-nav a, .nav-group summary { line-height: 1.15; }
.item-index { font: 600 11px/1 Consolas,monospace; letter-spacing: .06em; }
.nav-sample { width: 12px; height: 12px; display: inline-block; flex: none; border: 1px solid #0002; border-radius: 50%; }
.s-palette { background: #d09b76; }.s-assembly { background: #82a2b7; }.s-edge { background: #c89542; }
.s-nesting { background: #7e9c85; }.s-docket { background: #be8994; }.s-fronts { background: #8d755c; }
.site-mast .mobile-menu summary { width: auto; min-height: 44px; padding: 0 11px; display: flex; gap: 7px; justify-content: center; align-items: center; font-size: 13px; font-weight: 650; color: var(--ink); background: var(--paper); }
.mobile-menu summary i { display: block; width: 14px; height: 8px; border-block: 1.8px solid currentColor; }
.mobile-menu[open] summary i { height: 1px; border-bottom: 0; }
.mobile-menu nav { text-align: left; }
.site-mast summary { cursor: pointer; list-style: none; }
.site-mast summary::-webkit-details-marker { display: none; }
.nav-group { position: relative; }
.nav-group summary { padding: 0 15px; min-height: 44px; display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 650; }
.nav-group summary::after { content: ""; height: 7px; width: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.nav-group[open] summary::after { transform: translateY(2px) rotate(225deg); }
.group-links { position: absolute; z-index: 2; top: 100%; left: 0; min-width: 190px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px #202a2336; border: 1px solid var(--header-line); border-radius: 0 0 10px 10px; padding: 6px; }
.section-nav .group-links a { display: flex; padding-inline: 10px; }
.mast-palette { background: #f9f0e2; border-color: #dbbda7; }
.mast-assembly { background: #20394c; color: #ecf1f4; border-color: #20394c; }
.mast-assembly .brand-symbol, .mast-nesting .brand-symbol { padding: 3px; border-radius: 10px; background: #f6f1db; }
.mast-assembly .brand-line, .mast-nesting .brand-line { color: #d4dfdc; }
.mast-edge { border-color: #cab994; background: #fbf7eb; }
.mast-nesting { background: #192b25; color: #e8eee8; }
.mast-docket { background: #f5eeee; border-color: #c5abb2; }
.mast-fronts { background: #f3f4e9; border-color: #bac6b2; }
.site-mast :focus-visible { outline: 3px solid #1877a5; outline-offset: 2px; }
.mast-assembly :focus-visible, .mast-nesting :focus-visible { outline-color: #edac59; }

@media (min-width:731px) {
  .mast .mast-inner { min-height: 73px; }
  .mast-palette { padding: 0 24px 8px; border-radius: 22px; }
  .mast-palette .section-nav { gap: 5px; border: 0; }
  .mast-palette .section-nav a { padding-inline: clamp(8px,1.3vw,19px); gap: 7px; border: 1px solid #d6bdab; border-radius: 30px; }
  .mast-palette .section-nav a[aria-current] { color: #f9eddc; background: #763b2a; box-shadow: none; }
  .mast-palette .section-nav .to-contacts { border-color: transparent; }
  .mast-assembly { border-radius: 3px; padding-inline: 0; display: grid; grid-template-columns: minmax(210px,25%) 1fr; }
  .mast-assembly .mast-inner { display: contents; }
  .mast-assembly .brand { grid-area: 1/1/3/2; width: 100%; height: 100%; padding: 15px; justify-content: center; border-right: 1px solid #78909f; }
  .mast-assembly .brand-line { grid-area: 1/2; margin: 8px 0 8px 17px; padding-left: 0; border: 0; }
  .mast-assembly .city { grid-area: 1/2; justify-self: center; margin: 0; }
  .mast-assembly .header-action { grid-area: 1/2; justify-self: end; align-self: center; margin: 5px 12px; min-height: 40px; background: #d5e8f3; color: #233848; }
  .mast-assembly .section-nav { grid-area: 2/2; display: grid; gap: 0; grid-template-columns: repeat(6,minmax(0,1fr)) auto; border-color: #627d90; }
  .mast-assembly .section-nav a { display: grid; align-content: center; gap: 4px; padding: 6px 9px; border-right: 1px solid #627d90; font-size: 13px; }
  .mast-assembly .section-nav a[aria-current] { color: #f6e3aa; box-shadow: inset 0 -3px #f0c16d; }
  .mast-assembly .section-nav .to-contacts { display: flex; margin: 0; border: 0; padding-inline: 8px; }
  .mast-edge { width: 100%; max-width: none; border: 0; border-radius: 0; margin: 0; padding-inline: var(--gutter); border-top: 5px solid #b57c3b; }
  .mast-edge .section-nav { border-top: 1px solid #c3ae8a; gap: 8px; }
  .mast-edge .nav-group { border-inline-start: 1px solid #c3ae8a; }
  .mast-edge .tool-shortcut { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; }
  .mast-edge .to-contacts { margin-left: 20px; }
  .mast-nesting { margin: 0; padding-inline: var(--gutter); width: 100%; max-width: none; border: 0; border-radius: 0; }
  .mast-nesting .mast-inner { min-height: 60px; }
  .mast-nesting .header-action { background: #bfdca6; color: #1d342a; }
  .mast-nesting .section-nav { display: grid; grid-template-columns: repeat(6,1fr) auto; gap: 0; border-color: #50665a; }
  .mast-nesting .section-nav a { position: relative; gap: 6px; color: #eaf3e9; }
  .mast-nesting .item-index { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #86a58e; }
  .mast-nesting .section-nav a[aria-current] { color: #d1eca9; box-shadow: none; }
  .mast-nesting .section-nav a[aria-current] .item-index { background: #d1eca9; color: #23392d; }
  .mast-nesting .section-nav a:not(:nth-last-child(-n+2))::after { content: ""; height: 1px; flex: 1 1 12px; background: #8caa93; margin-inline: 5px; }
  .mast-docket { border-radius: 0; border: 0; border-bottom: 2px solid #8a5264; margin-top: 0; }
  .mast-docket .section-nav { border-top: none; gap: 18px; }
  .folders { display: flex; align-self: end; align-items: end; }
  .mast-docket .folders a { border: 1px solid #c8adb4; border-bottom: 0; background: #eee3e5; border-radius: 10px 12px 0 0; padding: 8px clamp(8px,1.5vw,25px); }
  .mast-docket .folders a[aria-current] { background: #7b4154; color: #faf4ed; box-shadow: none; }
  .mast-fronts { border: 0; border-radius: 0; margin-top: 0; }
  .mast-fronts .mast-inner { display: grid; grid-template-columns: 1fr auto 1fr; justify-items: center; padding-block: 9px; }
  .mast-fronts .city { grid-area: 1/1; margin: 0; justify-self: start; font-family: Georgia,serif; font-size: 16px; }
  .mast-fronts .brand { grid-area: 1/2; }
  .mast-fronts .brand-line { display: none; }
  .mast-fronts .header-action { grid-area: 1/3; justify-self: end; background: transparent; color: var(--accent); border: 1px solid #75866a; border-radius: 22px; }
  .mast-fronts .section-nav { justify-content: center; position: relative; border-block: 1px solid #aeb8a1; gap: 26px; }
  .nav-cluster { display: flex; gap: clamp(10px,2.1vw,36px); }
  .nav-cluster + .nav-cluster { border-left: 1px solid #aeb8a1; padding-left: 26px; }
  .mast-fronts .to-contacts { position: absolute; right: 0; }
}
@media (min-width:731px) and (max-width:970px) {
  .mast-assembly { grid-template-columns: 170px 1fr; }
  .mast-assembly .brand { gap: 5px; padding: 8px; }
  .mast-assembly .brand-symbol { width: 35px; height: 35px; }
  .mast-assembly .wordmark b { font-size: 22px; }
  .mast-assembly .brand-line { display: none; }
  .mast-assembly .city { justify-self: start; margin-left: 12px; }
  .mast-assembly .section-nav a { padding-inline: 2px; font-size: 11px; }
  .mast-palette { padding-inline: 10px; }
  .mast-palette .section-nav a { padding-inline: 7px; font-size: 12px; }
  .mast-nesting .section-nav a { font-size: 12px; }
  .mast-nesting .section-nav a::after { display: none; }
  .mast-fronts .section-nav { justify-content: start; gap: 10px; }
  .nav-cluster + .nav-cluster { padding-left: 10px; }
}

/* The background marks stay behind the offer. Product studies are transparent Blender renders. */
.hero { position: relative; isolation: isolate; }
.field-pattern { pointer-events: none; position: absolute; inset: 0; }
.stage { z-index: 1; }
.palette .hero { background: linear-gradient(115deg,#fbf2df 0%,#f7e3cf 55%,#e9b38e 100%); }
.palette .field-pattern { background: repeating-radial-gradient(ellipse at 86% 85%,transparent 0 31px,#a44d3038 32px 33px,transparent 34px 49px); mask-image: linear-gradient(100deg,transparent 10%,#0007 43%,#000 85%); }
.assembly .hero { background: #e6eff1; }
.assembly .field-pattern { background: linear-gradient(#4879932a 1px,transparent 1px) 0 0/34px 34px,linear-gradient(90deg,#4879932a 1px,transparent 1px) 0 0/34px 34px; mask-image: linear-gradient(90deg,#000 22%,#0009 60%,transparent); }
.edge .hero { background: linear-gradient(125deg,#faf7eb 24%,#f0e9ce 72%,#ccad74); }
.edge .field-pattern { background: repeating-linear-gradient(124deg,transparent 0 8px,#89612436 9px 10px,transparent 12px 17px); mask-image: linear-gradient(24deg,#0009,transparent 44%,transparent 73%,#000); }
.nesting .field-pattern { z-index: 2; inset: auto 0 0; height: 14%; background: repeating-linear-gradient(130deg,transparent 0 8px,#bad6a74a 8px 10px,transparent 10px 18px); mask-image: linear-gradient(0deg,#000 2%,transparent 78%); }
.docket .hero { background: linear-gradient(110deg,#f9f4e8 0%,#f4e9e4 63%,#edd5dc 100%); }
.docket .field-pattern { background: linear-gradient(90deg,transparent 4%,#b77f845c 4.1%,transparent 4.25%),repeating-linear-gradient(0deg,transparent 0 28px,#95516b29 29px 30px); mask-image: linear-gradient(100deg,#000a,transparent 46%,#000a); }
.fronts .hero { background: linear-gradient(115deg,#cad6b7,#e6ebd9 53%,#f6f3e5); }
.fronts .field-pattern { background: repeating-radial-gradient(ellipse 52% 145% at 108% -24%,transparent 0 19px,#62806036 20px 21px,transparent 22px 33px); mask-image: linear-gradient(115deg,transparent 21%,#000a 75%,#000); }
.hero .scene { isolation: isolate; }
.inspect-model, .gallery .index-no img { flex: none; }
.inspect-model { display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: absolute; z-index: 3; left: 14px; bottom: 13px; min-height: 44px; padding: 6px 12px; border: 1px solid #ffffff94; border-radius: 22px; background: #252e2ef2; color: #faf6ea; font-size: 13px; font-weight: 650; text-decoration: none; box-shadow: 0 4px 12px #242b3029; }
.inspect-model svg { width: 19px; height: 19px; }
.inspect-model:hover { background: #454e4c; }
.hero .scene img.sculpture { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.scene .model-plinth { position: absolute; display: block; z-index: 1; width: 38%; height: 55%; left: 2%; bottom: 5%; pointer-events: none; }
.model-plinth img { filter: drop-shadow(0 10px 8px #2c201e52); }
.palette .hero .scene { overflow: hidden; border-radius: 999px 999px 24px 24px; background: repeating-radial-gradient(ellipse at 52% 75%,#0000 0 37px,#fde0b852 39px 40px,#0000 42px 60px),radial-gradient(ellipse at 53% 37%,#edbb87,#aa563b 78%); }
.palette .hero .scene .main-model { width: 79%; height: 95%; top: -1%; left: 9%; filter: drop-shadow(0 18px 14px #532f315c); }
.palette .scene img.finish-inset { position: absolute; inset: auto 4% 12% auto; width: 21%; height: 30%; border: 3px solid #f4dfbb; border-radius: 50% 50% 6px 6px; object-fit: cover; }
.assembly .hero .scene { border-radius: 5px; border: 2px solid #4f7180; background: linear-gradient(#d7f0ff28 1px,transparent 1px) 0 0/27px 27px,linear-gradient(90deg,#d7f0ff28 1px,transparent 1px) 0 0/27px 27px,radial-gradient(at 25% 12%,#557a86,#213f50 85%); }
.assembly .scene .main-model { inset: 1% 0 auto; height: 94%; filter: drop-shadow(6px 12px 10px #142b365c); }
.assembly .scene::before { content: ""; position: absolute; inset: 12px; border: 1px dashed #d1e6e363; pointer-events: none; }
.edge .hero .scene::after { background: linear-gradient(17deg,#70543880,transparent 66%); }
.edge .model-plinth { width: 40%; height: 52%; bottom: 9%; }
.edge .model-plinth::before, .docket .model-plinth::before, .fronts .model-plinth::before { content: ""; position: absolute; inset: 12% 0 -2%; border-radius: 50% 50% 10px 10px; background: linear-gradient(145deg,#fff1ce,#d6ac72); border: 1px solid #f6e5c4; box-shadow: 0 5px 16px #2d302541; }
.edge .model-plinth img,.docket .model-plinth img,.fronts .model-plinth img { position: relative; }
.nesting .model-plinth { width: 20%; height: 27%; left: auto; right: 7%; bottom: 36%; }
.nesting .model-plinth::before { content: ""; position: absolute; inset: 8% 2% 12%; border-radius: 12px; border: 1px solid #afc8af88; background: radial-gradient(#bddab666 1px,transparent 1.3px) 0 0/11px 11px,#243931da; }
.nesting .model-plinth img { position: relative; }
.nesting .scene .inspect-model { left: auto; right: var(--gutter); bottom: 23%; }
.nesting .scene figcaption { top: 14%; bottom: auto; }
.nesting .scene .film-toggle { right: auto; left: 56%; bottom: 25%; }
.docket .model-plinth { width: 55%; height: 56%; left: 0; bottom: 7%; }
.docket .model-plinth::before { border-radius: 4px; inset: 15% 2% 0 8%; transform: rotate(-6deg); background: repeating-linear-gradient(0deg,#0000 0 19px,#b1a49166 20px 21px),#f4e6ce; }
.fronts .model-plinth { width: 35%; left: auto; right: 3%; height: 62%; bottom: 7%; }
.fronts .model-plinth::before { background: linear-gradient(150deg,#eef0d6df,#b9c9aecf); border-color: #f1e7bc; }
.fronts .scene figcaption { right: 3%; left: auto; }
.gallery .index-no { display: flex; align-items: center; gap: 8px; }
.gallery .index-no img { width: 32px; height: 32px; object-fit: contain; }
.gallery .gallery-intro { background: radial-gradient(ellipse at 78% 12%,#bd9b7633,transparent 48%); }
.model-dialog { width: min(660px,calc(100% - 28px)); max-height: 92svh; padding: 0; overflow: auto; margin: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px #13211c55; }
.model-dialog::backdrop { background: #182622ad; }
.model-bar, .model-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.model-bar h2 { font-size: clamp(20px,4vw,27px); }
.model-dialog button { min-height: 44px; min-width: 44px; padding: 6px 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 9px; cursor: pointer; }
.model-stage { height: min(48svh,410px); min-height: 175px; position: relative; background: radial-gradient(ellipse at 50% 35%,var(--paper),var(--surface)); }
.model-stage > img, .model-stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.model-poster { pointer-events: none; }
.model-footer { font-size: 13px; }
.orbit-controls { display: flex; gap: 5px; }
.model-file { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 3px; }

@media (max-width:730px) {
  .site-mast { border-top: 3px solid var(--accent); }
  .site-mast .mast-inner { min-height: 65px; }
  .site-mast .brand-symbol { width: 35px; height: 35px; }
  .site-mast .wordmark b { font-size: 23px; }
  .site-mast .wordmark small { font-size: 11px; }
  .mast-assembly .wordmark small, .mast-fronts .wordmark small { font-size: 9px; }
  .mast-assembly .city, .mast-nesting .city { background: #3c5149; color: #f6faee; }
  .site-mast .mobile-menu nav { z-index: 5; grid-template-columns: 1fr 1fr; width: min(335px,calc(100vw - 32px)); max-height: min(66svh,440px); overflow: auto; padding: 8px; color: var(--ink); box-shadow: 0 12px 25px #28343232; }
  .mobile-menu .menu-work { grid-column: 1/-1; border-bottom: 1px solid var(--header-line); font-weight: 700; }
  .mobile-menu nav a { min-height: 44px; gap: 7px; }
  .mobile-menu a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
  .mast-assembly .mobile-menu nav { border-radius: 2px; border: 1px solid #688faa; }
  .mast-nesting .mobile-menu nav { grid-template-columns: 1fr; background: #cfded0; }
  .mast-docket .mobile-menu nav a:not(.menu-work) { border-bottom: 1px solid #d8c3cb; }
  .mast-fronts .mobile-menu nav { text-align: center; border-radius: 18px; }
  .mast-fronts .mobile-menu nav a { justify-content: center; }
  .mast-edge .mobile-menu nav { grid-template-columns: 1fr; border-top: 3px solid #956b29; }
  .hero .scene .inspect-model { left: 6px; right: auto; bottom: 6px; min-height: 44px; padding: 5px 9px; font-size: 11px; }
  .hero .scene .inspect-model svg { width: 15px; height: 15px; }
  .hero .scene figcaption { max-width: 46%; }
  .hero .scene .model-plinth { height: 58%; bottom: 17%; }
  .nesting .hero .scene .model-plinth { left: 3%; right: auto; width: 35%; bottom: 22%; }
  .nesting .hero .scene .film-toggle { left: auto; right: 6px; bottom: 6px; min-height: 44px; }
  .nesting .hero .scene figcaption { top: 8px; bottom: auto; left: 6px; right: auto; }
  .palette .field-pattern,.fronts .field-pattern { mask-image: linear-gradient(90deg,transparent,#000a); }
  .palette .hero .scene { border-radius: 50% 50% 12px 12px / 22% 22% 12px 12px; }
  .palette .hero .scene .main-model { height: 99%; inset: -2% auto auto 7%; }
  .assembly .scene .main-model { padding: 0 12px; }
}
@media (max-width:365px) {
  .site-mast .city { display: none; }
  .site-mast .mobile-menu { margin-left: auto; }
  .site-mast .mast-inner { min-height: 58px; }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  .site-mast a, .inspect-model { transition: background-color .22s,color .22s,box-shadow .22s; }
  .inspect-model:hover { box-shadow: 0 4px 17px #21383063; }
  .model-plinth img { transition: transform .3s ease-out; }
  .scene:has(.inspect-model:hover) .model-plinth img { transform: translateY(-4px); }
}
